Posts

Adding a checkbox symbol using OOo API VB.NET and UNO -

i've been searching solution quite time no luck. i have pdf generating using vb.net, openoffice api , uno. generating text document , need able insert checkbox in code. one possible solution change font wingdings , type 'o' solution neither elegant nor easy implement given environment (using company created code text document creation , manipulation, have write command write document (strings)). if it's possible add checkbox string of text perfect. have tried use image of checkbox (one checked , other unchecked) , inject pdf, this: caveat - have worked itextsharp following code relevant itextsharp , concept should translate whatever pdf generating library/framework using method #1 - put checkbox image table cell dim imgcheckboxchecked image = image.getinstance(httpcontext.current.server.mappath("checkbox_checked.gif")) dim imgcheckboxunchecked image = image.getinstance(httpcontext.current.server.mappath("checkbox_unchecked.gif...

jquery - Removing part of an image src -

using jquery, i've created simple lightbox loads image upon clicking thumbnail. i'm trying lightbox work storing thumbnail src variable load main gallery image. variable however, needs '/thumbs' part of src removing find larger gallery image. i've followed numerous answers given variants of question, none of attempts emulate results seem work. i've gotten far this: $("#attractions-dave li a").live("click", function showattraction(e){ var example = $(this).children('img').attr('src', $(this).children('img').attr('src').replace('/thumbs','')); }); for reference, associated html is: <ul id="attractions-dave"> <li> <a href="../attractions/attractions.php"> <img src="../images/photos/bouncy-castles/thumbs/happyclown.jpg" alt="happy clown castle" /> </a> </li> </ul> once have got varia...

appstore approval - When ios7 releases, will apps with iOS 6 and older style UI be rejected? -

i have developed app customer live on app store. app should support ios v4.3 , later. when build app in xcode 4.5 ios sdk 6, , install on device running ios 7 beta 3, app works without issues. appearence of app pre-ios7 opaque status bar. question how strict ios 7 ui guideline.. app in existing state rejected app store after ios7 release?? regards maybe, maybe not. no 1 knows except of people @ apple , won't tell you. answer definite: maybe.

json - Multi level dictionary error in c# -

im using following code make json filtermodel f = new filtermodel(); f.filtername = "educationlevel"; f.filtervalue = new list<string>(); f.filtervalue.add("be"); f.groupname="education"; filterdictionary d = new filterdictionary(); d.filtervaluse = new dictionary<string, list<string>>(); d.filtervaluse.add(f.filtername, f.filtervalue); filterselectmodel ff = new filterselectmodel(); ff.filters = new dictionary<string, dictionary<string, list<string>>>(); ff.filters[f.groupname].add(f.filtername, f.filtervalue); var json = new javascriptserializer().serialize(ff); response.write(json); but shows exception in bellow line ff.filters[f.groupname].add(f.filtername, f.filtervalue); it shows following error the given key not present in dictionary what went wrong ? 1 can me change code: ...

c# - How to force camelcase with JavaScriptSerializer? -

is possible? i have class this: public class abc { [key] [scriptignore] public int id { get; set; } public string name { get; set; } public string anotherfield { get; set; } [scriptignore] public virtual user user { get; set; } } but serialize { "name":"foo", "anotherfield":"bar" } instead of { "name":"foo", "anotherfield":"bar" } . this how use: return request.createresponse(httpstatuscode.ok, new javascriptserializer().serialize(obj)); you can use camel case resolver newtonsoft.json.serialization; on global.asax register on application start using newtonsoft.json.serialization; protected void application_start() { config.formatters.jsonformatter.serializersettings.contractresolver = new camelcasepropertynamescontractresolver(); }

php - Yii TbButtonGroup wont work -

<?php $this->widget('bootstrap.widgets.tbbuttongroup', array( 'type'=>'success', 'buttons'=>array( array('label'=>'action', 'url'=>'#'), array('items'=>array( array( 'label'=>'set approved', 'url'=>$this->createurl('controller/dostuff'), 'buttontype'=>'ajaxbutton', 'ajaxoptions'=>array( 'beforesend' => 'function( request ) { alert(request); }' , 'success' => 'function( data ) { alert(data); }' , ), ), array('label'=>'set blocked', '...

replace - iOS: copying an object from oldArray to newArray -

i have oldarray consists of many small arrays. want take 1 of these objects (one small array), modify it, , (if user hits button) replace it. that: step 1 - made new array initialized newarray 1 small object. openedcartproduct = nil; openedcartproduct = [nsmutablearray array]; [openedcartproduct addobjectsfromarray: [sharedappdelegate.myengine.shoppingcart objectatindex:indexpath.row]]; step 2 - modify array. [[openedcartproduct objectatindex:0] setobject:[nsnumber numberwithfloat:[inputrabatlabel.text floatvalue]] forkey:krabat_key]; step 3 - replace object in oldarray. in step 2, modification happening in oldarray before replacing object. missing here? thanks in advance guys! :) edit: object modified small array consisting of nsmutabledictionary @ index 0 modifying. edit seems need deep copy here. found solution of hack, works fine, , simple enough: openedcartproduct = [nskeyedunarchiver unarchiveobjectwithdata:[nskeyedarchiver archiveddatawithrootobject...