Posts

objective c - JSON POST Request on the iPhone (Using HTTP) Problems -

im having problems request asp .net mvc web service. read in thread while ago possible find out server wants the request's content-type etc. no error when compiling when actual request nothing happens , in log of server says (null) (null). there no problem doing request , fethcing objects in list. can please me irritating bug? here code: //----------------get request webservice works fine---------------------------------------- nsmutableurlrequest *request = [[nsmutableurlrequest alloc] initwithurl: url]; [request sethttpmethod: @"get"]; nsdata *response = [nsurlconnection sendsynchronousrequest: request returningresponse: nil error: nil]; nsstring *stringresponse = [[nsstring alloc] initwithdata: response encoding: nsutf8stringencoding]; //nslog(@"stringresponse %@", stringresponse); //-------------------------------------------------------------------------------------------- nsstring *twittertrendsurl=@"http://search.twitter.com/trends.json"; ...

android - How to resize AlertDialog on the Keyboard display -

Image
okay have alertdialog box approximately 10 controls (text , textview) on it. these controls in scrollview alertdialog, plus got 2 buttons positive , negative. issue have when soft keyboard pops 2 buttons hidden behind keyboard. i looking redraw function on inner view or dialog box. if 1 has idea please help. below screen shot of talking about. if dialog activity using 1 of dialog themes effect behavior setting adjustresize flag windowsoftinputmode parameter of activity. i'm using: android:windowsoftinputmode="adjustresize|statehidden" i think can still use flag regular dialogs, i'm not sure how apply it. may have create alertdialog custom theme inherits right parent theme , sets flag, or might have use contextthemewrappers , stuff. or maybe can use window#setsoftinputmode . alertdialog.getwindow().setsoftinputmode( windowmanager.layoutparams.soft_input_adjust_resize);

Looking for documentation on the "right" way to install apps on Windows 7 -

i'm working legacy applications (10-15 years old), , trying find guidance on "right" way install , run them (and user application) on windows 7 without requiring full admin privileges. in other words, executable/read-only should files go, user-data/read-write should files go, registry entries should go, avoid issues uac , windows 7 file/registry virtualization during both installation , @ run-time. i seem remember, years ago, microsoft white paper on subject, unable find relevent information now. have found information on user side (how legacy applications run on windows 7 via compatibility tweaks), none on developer side (how create/install applications play nicely on windows 7 natively). any pointers such information appreciated. thanks. marc you're thinking of windows logo requirements . install correct folders default users should have consistent , secure experience default installation location of files, while maintai...

Moving objects from code in Silverlight for Windows Embedded 7 (SWE) -

i desperately looking code sample allow me dynamically create , move graphic objects in silverlight windows embedded 7 (swe). have found several examples of application pre-defined storyboard compiled c++ application using swi , animation started using storyboard. not looking for. need application internally have list of objects can dynamically set position. application showing how implement snowfall several types of snowflakes dynamically animated or ballons flying randomly closest see.

How do you calculate program run time in python? -

this question has answer here: how time of python program's execution? 19 answers how calculate program run time in python? you might want take @ timeit module: http://docs.python.org/library/timeit.html or profile module: http://docs.python.org/library/profile.html there additionally nice tutorials here: http://www.doughellmann.com/pymotw/profile/index.html http://www.doughellmann.com/pymotw/timeit/index.html and time module might come in handy, although prefer later 2 recommendations benchmarking , profiling code performance: http://docs.python.org/library/time.html

Sybase to equivalent oracle -

below sybase query :: select id, + "|", + substring(name, 1, 35), + "|", + substring(convert(datetime,dateadd(ss, dt,"01/01/1900")),1,20) + " time" + "|" + isnull(crnumber," ") alertmods modtype = 1 i have migrated oracle:: used concat , substr.these changes alternative.please suggest me whether using right alternative in oracle. thanks

ASP.NET MVC Multiple data inside actionlink -

i want create link using action link: <%= html.actionlink(item.forename item.surname, "details", "members", new { member = item.memberno }, new {})%> want create link using persons forename , surname link. how can this? thanks you perform following ugliness: <%= html.actionlink( string.format("{0} {1}", item.forename, item.surname), "details", "members", new { member = item.memberno } )%> but correct way use view model. way correct way in mvc use view model: public class personviewmodel { public string fullname { get; set; } public string memberno { get; set; } } include properties needed view in view model , map model view model in controller simply: <%= html.actionlink( item.fullname, "details", "members", new { member = item.memberno } )%>