Posts

Installing Powerbuilder IDE 8 in win 7 -

has had success in installing powerbuilder 8 ide in win 7 without issues? steps follow can install in win 7. right can install not debug or build. resolved : installed xp mode in win7 , in installed pb related stuff , works fine.

indexing - Solr won't add my fields : schema.xml -

i working solr 5.2.1 , got working fine can't add field index. here schema.xml <schema name="example" version="1.5"> <fields> <field name="cotid" type="string" indexed="true" stored="true" required="true"/> <field name="cotref" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottyperef" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottype" type="string" indexed="true" stored="true" required="true" multivalued="false"/> <field name="cottexte" type="string" indexed="true" stored="true" required="false" multivalued="tr...

perl - Memory leak in program that uses LWP::UserAgent to download a file -

i trying revive perl script using long time ago. downloading files cloud storage local client. i'm pretty sure worked fine then, having issue lwp::useragent downloads file entirely memory before writing disk. expected , former behaviour should write chunks of received file target during download. i'm trying on osx perl 5.16.3 , 5.18 , tried on windows not know perl version more. pretty confident related perl version, not know used , want know changed. sub downloadfile { $url = shift; $filename = shift; $temp_filename = shift; $expected_size = shift; ( $download_size, $received_size, $avg_speed, $avg_speed_s, $avg_speed_q, $speed_count, $speed, $byte_offset, $http_status ) = ( 0, 0, 0, 0, 0, 0, 0, 0, 0 ); if ( -e $temp_filename , !$options{'no-resume'} ) { @stat = stat($temp_filename); if ( $expected_size > $stat[7] ) { $byte_offset = $stat[7]; $rec...

sql - Accessing multidimensional array in the WHERE clause -

i have function pass in multidimensional array used in clause. think may have use loop not sure. how access passed in parameter inside query? create or replace function public.select_locations(coordinates text[][]) returns setof public.locations $body$ declare item public.locations; begin select * item public.locations latitude, longitude not in coordinates; return item; end $body$ language plpgsql volatile cost 100; test call: select * public.select_locations (array[array['42.449630','-123.758012'],array['42.456591','-123.844708']]); to return every row in locations isn't in coordinates arg (if understand want), can following: create or replace function public.select_locations(coordinates text[][]) returns setof public.locations $body$ declare item public.locations; begin item in select * public.locations array[latitude,longitude] not in (select array[coordinates[i][1], coordinates[i][2]] generate_se...

javascript - Push text to array then append to div - displaying text in div twice in IE8 -

using mouseup, i'm appending multiple values array. var myarray = []; $("#button").mouseup(function() { myarray.push("&nbsp;play contact sports"); ]); then appending div using button $("#button2").mouseup(function() { $('#output').append(myarray+''); ]); it works fine in browsers apart ie8 text push after 1 click display twice. play contact sports play contact sports there no comma. know cause might be? or alternative might work? i'm not clear on want do, i'd wrap each text node you're appending element , more explicit array-to-string conversion. in click handler ensure event stopped: $("#button2").mouseup( function(event) { event.stoppropagation(); event.preventdefault(); $('<p></p>').html( myarray.join(',') ).appendto('#output'); return false; } );

ios - How could I launch non-hosted test in Xcode 7.3? -

i have unit test (not ui tests) , launching app along tests undesirable. read so-called non-hosted tests , sounds suitable here. however, trying launch non-hosted test on xcode 7.3 faced 1 serious problem - complains classes in app being tested couldn't found linker. what have read , tried: app delegate substitution based on launch arguments - undesirable since forces app know tests (tight coupling, broken encapsulation etc...) , launch app along test (even though doing nothing) xcode 5 unit testing: starts app - tried every answer here , don't work except changing classes target membership not option since changing target membership manually error-proned , becomes difficult when project grows apple's outdated guide - nope xcode test target host application forces wrong target build section of scheme - nope https://stackoverflow.com/a/22024428/2305175 - nope manually creating unit test target explicitly setting target tested none - nope how run ...

c# - How do I use SuperAgent in a simple MVC 5 app? -

okay, know should able figure out, can't. trying use superagent.js in simple html page in mvc 5 app building. project standard vs 2015 project mvc , blank html page more or less. i able create bower.json , reference superagent package. get: javascript runtime error: module name "emitter" has not been loaded yet context: _. use require([]) i have code, think wrong: <script src="~/wwwroot/lib/requirejs/require.js"></script> <script src="~/wwwroot/lib/superagent/lib/client.js"></script> <script> var superagent = require('superagent'); var data = superagent .get('/api/v1/actualhourlyvalues') .end(function (err, res) { // calling end function send request }); alert(data); </script> i guess don't know steps involved in using bower or npm bring in package superagent can use make ajax calls. i need steps creation of html! :)