Posts

eclipse - Getting started with a cross platform C++ project -

eclipse - Getting started with a cross platform C++ project - i starting c++ project compile as in eclipse (linux) , vs2010 same repository , utilize help getting started. while many of aspects can individually google'd, hoping advice on how approach problem on whole. for example, maintain library sources, how construction create file, , how integrate googletest (finding novice tutorial on googletest lone hard). link tutorial addresses these aspects great, or series of tutorials help. my background in c# , i'm trying maintain "cleanness" , organization of vs projects. i have done cross platform projects used "native" build systems on both platforms (vsproj files on windows , makefiles on linux), pain maintain both project files. so, yes, agree other suggestions should seek start solid cross platform build utility. cmake or perchance boost build seem decent options - there many others. when comes 3rd party libraries, you'll wan...

xaml - How to access Generated WPF controls after Data Binding -

xaml - How to access Generated WPF controls after Data Binding - please consider next xaml code: <listbox name="listbox1" itemssource="{binding}" > <listbox.itemtemplate> <datatemplate> <border name="border1"> <textblock text="{binding}" /> </border> </datatemplate> </listbox.itemtemplate> </listbox> and assign simple array it: listbox1.datacontext = new[] { "a", "b", "c" }; now question how can access generated objects border (or textblock instances)? it not possible "border1". not exist. listbox1.itemcontainergenerator.containerfromindex(0) returns listboxitem content of listboxitem of type string. findname("border1") returns null update: expect find 3 instances of border (and 3 textblocks, 1 in each border). once listboxitem, need walk visual tree...

java - How to create a generic JavaFX XYChart with Number or String Axes? -

java - How to create a generic JavaFX XYChart with Number or String Axes? - now work javafx charts, need create generic class each chart type. example, need create scatterchart can create class scatterchart x = number , y= number axes, x = string , y = number axes, x = number , y = string axes or x = string , y = string, see mandatory define type of chart before work it, , not possible alter types of axes @ same chart. i tried create this, methods manipulate info not work: public class jfxpanelscatterchartns extends jfxpanel.... ..... private scatterchart chart; ....... public jfxpanelscatterchartns(string[] xaxiscategories, string[] yaxiscategories ){ if(xaxiscategories != null && yaxiscategories != null){ xaxiscategory = new categoryaxis(fxcollections.observablelist(arrays.aslist(xaxiscategories))); yaxiscategory = new categoryaxis(fxcollections.observablelist(arrays.aslist(yaxiscategories))); chart = new scatte...

batch file - ( goto was unexpected this time error -

batch file - ( goto was unexpected this time error - my code below throwing error.please help.i new batch file scripts.it showing syntax error , (goto unexpected time error. motive create batch file take parameter user.based on parameter, perform tasks. if input sql, execute sql script.if input foldercreation, create new folder. @echo off cls set /p filetype=type of file : if "%filetype%==sql" (goto sql) if "%filetype%==txt" (goto text) if "%filetype%==bat" (goto bat) if "%filetype%==foldercreation" (goto foldercreation) if "%filetype%==ftp" (goto ftp) :sql set /p sname=server name : set /p dbname=database name : if exist _deploy.txt del _deploy.txt @echo on sqlcmd -s %sname% -e -d %dbname% -i -i "d:\script\execute_script.sql" >>_deploy.txt 2>&1 @notepad _deploy.txt exit /b :text if exist _deploy.txt @echo on move /-y "d:\artifacts\art1\test1.txt" "d:\artifacts\art2\">>_deplo...

SAS stored processes in HTML -

SAS stored processes in HTML - how html able understand output , run sas stored processes ? i understand if have "sas integration technologies" there module within software uses java instruct html talk stored process server, true ? apparently code work , run stored process requested user. <!-- welcome page mywebapp --> <html> <head><title>welcome mywebapp </title></head> <body><h1>welcome mywebapp</h1> <form action="/sasstoredprocess/do"> please come in first name: <input type="text" name="fname"><br> <input type="hidden" name="_program" value="/webapps/mywebapp/ask color"> <input type="submit" value="run program"> </form> </body></html> you need have metadataserver , stored process webapplication. if these nowadays in environmen...

scroll - Keep the JavaScript loading even on scrolling -

scroll - Keep the JavaScript loading even on scrolling - i building chrome extension loads javascript place image in front end of tweets urls. code below achieves desirable, on scrolling page urls arent marked. any thought on this? linkslist=document.body.getelementsbyclassname("js-display-url"); var i=0; (var index=0;index<linkslist.length;index++) { console.log(linkslist[index]); arrayoflinks[i]=linkslist[index].getattribute("data-expanded-url") ; linkslist[i].innerhtml=linkslist[i].innerhtml+"<img src='"+chrome.extension.geturl("green.png")+"' alt='green'/>"; i++; } javascript scroll

javascript - Supressing or resolving compiler errors in goog.base -

javascript - Supressing or resolving compiler errors in goog.base - i utilize closure compiler on sources , decided enable strict mode via --jscomp_warning=reportunknowntypes . alas, triggered lot of warnings within goog.base itself! i've fixed problems in own code , i'm looking way silence/remove errors in closure library code. i tried prepare errors in base.js realized it's infeasible. there approximately 108 errors in file , in cases real errors becasue of goog.base doesn't care much types: it's mutual practice there define type {?} or {*} . i tried utilize --warnings_whitelist_file quiet warnings don't care didn't work either. error: ..\js\google\base.js:204: warning - not determine type of look cur[part] = opt_object; ^ i tried different forms in whitelist file none has worked: ..\\js\\google\\base.js:204 not determine type of look ..\\js\\google\\base.js:204 warning - not determine type of look ..\js\google\ba...