Posts

c++ - Increase stack size of a program -

i'm looking way increase stack size of program, reason i've recursive call casusing stack overflow. there anyway can change default stack size? if *nix, use ulimit -s <number_in_kb> you'd set in environment before running program. can set programatically described in this answer . you can view current value running ulimit -a .

ios - Tab Bar Not Showing -

i have specific view opening when opening app notification. navigation bar shows , navigation works correctly. problem i'm having getting tab bar show up. here didfinishlaunchingwithoptions method. - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // prevents ua library registering uiapplcation default when // registerforremotenotifications called. allow prompt // users @ later time. gives app opportunity explain benefits // of push or allows users turn on explicitly in settings screen. // if want prompted push, can // leave line out. // [uapush setdefaultpushenabledvalue:no]; //create airship options dictionary , add required uiapplication launchoptions nsmutabledictionary *takeoffoptions = [nsmutabledictionary dictionary]; [takeoffoptions setvalue:launchoptions forkey:uairshiptakeoffoptionslaunchoptionskey]; // call takeoff (which creates uairship singleton), passing...

node.js - how to execute custom javascript code in webdriverjs -

how execute custom javascript code in webdriverjs ( https://code.google.com/p/selenium/wiki/webdriverjs ) found execute method it`s purpose completly different. here go: var yourclientjsfunction = function (param1, param2) { // js code want run in browser } driver.executeasyncscript(yourclientjsfunction, param1, param2).then(function (res) { // deal response });

Java Bean Persistence with XMLEncoder -

i've written bean class containing hashmultimap (from guava library). xml encode bean using jre's xmlencoder. using custom persistencedelegate i've written bean file. however, when attempt deserialize xml exception: java.lang.nosuchmethodexception: <unbound>=hashmultimap.put("pz1", "pz2") what doing wrong? // create bean somebean sb = new somebean(); // add data hashmultimap<string, string> statemap = hashmultimap.create(); statemap.put("pz1", "pz2"); statemap.put("pz3", "pz4"); sb.setstatemap(statemap); // encode xml fileoutputstream os = new fileoutputstream("myxmlfile.xml"); xmlencoder encoder = new xmlencoder(os); encoder.setpersistencedelegate(hashmultimap.class, new custompersistencedelegate()); encoder.writeobject(sb); // decode xml fileinputstream = new fileinputstream("myxmlfile.xml"); xmldecoder decoder = new xmldecoder(is); object deserializedobject ...

jsf 2 - Reference a managedBean inside Controller bean -

i want pass reference of managedbean inside controller bean argument. domain entity brand. , want set properties of brand jsf page component. , want pass managedbean reference in controller method , controller addbrand method getbrandservice , save respective brand bean. please guide me. :) managed bean code: @managedbean @requestscoped public class brandbean implements serializable{ private static final long serialversionuid = 1l; private string brandname; private string branddecription; //getters , setters } and controller bean brand: // addbrand method takes brand instance parameter. brand model object. @managedbean @requestscoped public class brandcontroller extends abstractcontroller{ private ibrandservice brandservice; public ibrandservice getbrandservice() { brandservice = new brandservice(); return brandservice; } public void setbrandservice(ibrandservice brandservice) { this.brandservice = brandservice; } ...

xamarin.ios - Issues while using Stylecop addin for Monodevelop -

i trying use stylecop addin monodevelop - http://addins.monodevelop.com/project/index/54 . have custom policy file use in visual studio (its settings.stylecop file), , want use same in monodevelop (xamarin studio). put settings.stylecop file in solution directory, stylecop not seem use policies file. has used stylecop addin monodevelop (xamarin studio)? stylecop read policies in case? much! well, able working restarting xamarin studio, , putting settings.stylecop file solution. picks rules now.

Manually trigger receive event for jquery-ui sortable -

here's working demo of code far. when drag open space, empty group created. may going wrong way, item dragged new group populated list. there way call receive event jquery-ui sortables widget achieve this. alternately, should prepopulate group being added item un drop method of droppable item drop: function (event, ui){ $(element).append($(ui.helper).clone()); } or that? you can manually trigger sortable event using jquery's .trigger() event so: $('#sortable-name').trigger('sortreceive'); i think code looks bit strange, perhaps because have never seen use jquery ui in widget format. josh