Posts

vb.net - How to solve code conversion issue? -

public function savecommentstreecomments(byref f system.windows.forms.form) integer dim isnewsubcomment boolean dim isnewcommentwithsub boolean dim sql string dim rs new adodb.recordset dim commentid short dim subcommentid short dim index short 'wmb 1/28/2004 nextval dim csql string dim crs new adodb.recordset dim cseq double on error goto savecommentstreecommentserror savecommentstreecomments = -1 if not validatecommentstreecomments(f) savecommentstreecomments = -2 exit function end if if f.commentstext(commentstextabbreviation).enabled , f.commentstext(subcommentstextdescription).enabled isnewcommentwithsub = false i getting error below above code while upgrading vb6 vb.net. don't know class missing. 'commentstext' not member of 'system.windows.forms.form' you should change: public function savecommentstreecomments(byref f system.windows.forms.fo...

gruntjs - Visual Studio 2015: Destination wwwroot/css/site.css not written because no source files were found. -

i'm trying use grunt in asp project, whatever reasons have stupid warning-message visual studio. how can see down, bower-task has been executed, haven't uglify- , less-tasks. gruntfile.js , folder "wwwroot" in same folder. what's wrong ? this console output in visual studio 2015: > cmd.exe /c grunt -b "c:\t\bw\src\bw" --gruntfile "c:\t\bw\src\bw\gruntfile.js" bower running "bower:install" (bower) task >> installed bower packages >> copied packages c:\t\bw\src\bw\wwwroot\lib done, without errors. process terminated code 0. > cmd.exe /c grunt -b "c:\t\bw\src\bw" --gruntfile "c:\t\bw\src\bw\gruntfile.js" uglify_default running "uglify:uglify_target" (uglify) task process terminated code 0. >> destination wwwroot/lib/angular/angular.js not written because src files empty. >> no files created. done, without errors. > cmd.exe /c grunt -b "c:\t\bw\sr...

activerecord - In the rails 4 console, how do I log all sql activity to file BUT not to the console output? -

lots of similar questions ask how hide sql logs in console window, , answers suggest changing log level of active record or turning off ar logging altogether. however still want ar log everything, wanted log file only, , not console output window (as makes console noisy can't see manual logs). how achieve want? this activerecord::railtie code says broadcast logger messages console: # when loading console, force activerecord::base loaded # avoid cross references when loading constant # first time. also, make output stderr. console |app| require "active_record/railties/console_sandbox" if app.sandbox? require "active_record/base" console = activesupport::logger.new(stderr) rails.logger.extend activesupport::logger.broadcast console end so 1 thing when first console set activerecord::base.logger new logger not broadcast messages console. example: activerecord::base.logger = activesupport::logger.new("log/development.log")...

javascript - Sencha Touch 2-How to removeAll() in a controller from a store in a view? (SOLVED) -

i want use function removeall() of stores in controller, delete content of store in view.is possible? here code: my view: ext.define('demoapp.view.mainmenu',{ extend:'ext.form.panel', requires:['ext.titlebar','demoapp.store.ccaa'], alias:'widget.mainmenuview', config:{ layout:{ type:'fit' }, items:[{ xtype:'fieldset', items:[{ xtype:'titlebar', title:'menú principal', docked:'top', items:[{ xtype:'button', text:'desconectar', itemid:'logoffbutton', align:'right' }] }, { xtype:'fieldset', items:[{ xtype:'selectfield', itemid:'ccaacombo', label:'comunidad autonoma', store:'st...

java.lang.LinkageError using spring and gradle -

i'm trying deploy spring mvc project on tomcat 8.0.22 . user gradle project builder. when try lunch project have error code 500 . this how project : build.gradle file : buildscript { ext { springbootversion = '1.2.3.release' } repositories { mavencentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springbootversion}") classpath("io.spring.gradle:dependency-management-plugin:0.5.1.release") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' apply plugin: 'io.spring.dependency-management' jar { basename = 'demo' version = '0.0.1-snapshot' } sourcecompatibility = 1.7 targetcompatibility = 1.7 repositories { mavencentral() } dependencies { compile("org.springframework.boot:spring-boot-starter-web") testcompile(...

javascript - Time-series data in JSON -

i need model 1,000,000+ data points in json. thinking of 2 ways of doing this: a) array of objects: [{time:123456789,value:1432423},{time:123456790,value:1432424},....] or b) nested arrays [[123456789,1432423],[123456790,1432424],....] naively comparing these 2 approaches, feels latter faster because uses less characters less descriptive. b faster ? 1 choose , why ? is there 3rd approach ? {time:[123456789,123456790,...], value:[1432423,1432424,...]} why? iterating on primitive array faster. comparable "json size" b) not lose "column" information this npm of interest: https://github.com/michaelwittig/fliptable

sorting - logstash-elasticsearch: sort data by timestamp -

i centralize logfiles 1 logfile using logstash , each event have timestamp(the original one). now, last challenge data sorted timestamp(if possible on real-time thats better). my timestamp format is: yyyy-mm-dd hh:mm:ss now, can make change in format/ file format in order make work, long stays on our servers. what's best way sort data? ideas? thanks in advance!