Posts

iphone - NSXML Parsing through objective C -

i working on xml parsing through objective c. getting trouble following part. please me out. using nsxmlparser class , delegates. how trace out "url", "type", "height" these tags below xml code. <image url="http://d.img.com/a/r/rids/20110203/i/r32323.jpg? x=130&amp;y=91&amp;q=85&amp;sig=bjdeybrqfsyuuzj.ffwa8g--" type="image/jpeg" height="91" width="130"/> implement delegate function - (void)parser:(nsxmlparser *)parser didstartelement:(nsstring *)elementname namespaceuri:(nsstring *)namespaceuri qualifiedname:(nsstring *)qualifiedname attributes:(nsdictionary *)attributedict and inside nslog(@"url: %@", [attributedict valueforkey:@"url"]); etc.

ssrs 2008 - How do I make wildcards work in a like operator in SQL Server reporting services? -

i have added filter expression using operator. put in value field? parameter named @test , i'd filter function %@test% in sql. want act %@test% can pass '' values query. i got work adding filter expression operator , setting value this: ="*" + parameters!roles.value + "*" to values pass ''.

security - Whats a valid strategy for a secure image upload from a flash client? -

i'm creating flash application post images url saving disk/display later. wondering suggested strategies making secure enough upload verified coming application , not random form post. is reliable enough check referring location realizing don't need bulletproof security, or perhaps setting authentication headers better strategy though seems unreliable have read. the application , server script reside on same domain , in java - there way check 'session' or that? another thought had sort of simple hashed key type system, hard-code key flash application , pass server based on - server know key , able verify if value passed based on that? thanks advice , examples - naive in area -b the app public app, authenticating users not option. after more research thinking using hard coded salt key on both ends, sending md5 hash of base64 encoded image bytearray+salt matched on server side. thoughts on strategy? your question can generalized 'how can sure im...

asp.net - MaintainScrollPositionOnPostback not working with javascript:__doPostBack -

hi have gridview , records can long. have command field update records. when click "edit" command button makes javascript postback. javascript:__dopostback('gridsubcategories$ctl02$ctl00',''); even set maintainscrollpositiononpostback="true", after postback page not scrolling previous point. can do?

c# - samsung api how to call -

does knws how call it? public struct smiaccelerometervector { public float x; public float y; public float z; } i want x,y,z values , paste label. samsung's documentation unclear on exact dll contains these functions, believe this: public struct vector { single x; single y; single z; } [dllimport("smisdk.dll", setlasterror=true)] public static extern int smiaccelerometergetvector(out vector vector);

How to load an image in active document? (Photoshop Scripting) -

i new photoshop scripting. i want load image image (from hard disk) active document new layer positioning. how can done? can please share code? thanks you can open photoshop file dialog searching image , adding layer file = app.opendialog();//opens dialog,choose 1 image if(file[0]){ //if have chosen image app.load(file[0]); //load documents backfile= app.activedocument; //prepare image layer active document backfile.resizeimage(width,height); //resize image given size i.e 640x480 backfile.selection.selectall(); backfile.selection.copy(); //copy image clipboard backfile.close(saveoptions.donotsavechanges); //close image without saving changes doc.paste(); //paste selection document doc.layers[0].name = "backgroundimage"; //set layer's name } there example of making calendar photoshop javascript extension (.jsx). please check here

CSS inheritance, aliases and other cool stuff -

the other day randomly browsing web , found program lets write css aliases , other cool stuff (which can't remember right now). as example, remember can this: .myclass { background-color: red; greenfont } where greenfont defined somewhere else somekind of alias greenfont { color: green; } then program generate resulting css based on alias , other stuff. does has used this? or did dreamed it? cannot find :p sorry reply such old thread 1 check out less http://lesscss.org