Posts

Specifying Sd card mountable as removable disk in android manifest -

my android app requires device has sdcard , sdcard mountable on pc or mac filesystem (removable disk) . because there program windows mobile app writes sd card user has run pc , program works on files on mounted sd card , disks on pc windows. this problem on tablets because not of them can mount sdcard removable disk on pc without requiring special drivers on pc tablet. majority of ics phones pc seems mount disk removable storage limit app api 8 - api15 (phones only) is there way specify in manifest of android app app should work ics android phone , not ics tablets users having tablets can not download android market ? thanks, you try specifying screen sizes in manifest file http://developer.android.com/guide/topics/manifest/supports-screens-element.html . reason it's hard differentiate because tablets , phones run same software. might want why devices don't mount removable disks.

write data to excel file in java using apache POI -

i having problem here while writing data excel sheet using apache poi. want call function several times write data excel sheet have created. is there way can move pointer next row every time @ end of function??? my code given below... public static void excellog(string filename , string message) { string dest="d:\\testexcel.xls"; hssfworkbook myworkbook = new hssfworkbook(); hssfsheet mysheet = myworkbook.createsheet(); hssfrow myrow = null; hssfcell mycell = null; string exceldata [][] = new string [1][2]; exceldata[0][0]=filename; exceldata[0][1]=message; myrow = mysheet.createrow(rownum); (int cellnum = 0; cellnum < 2 ; cellnum++){ mycell = myrow.createcell((short) cellnum); mycell.setcellvalue(exceldata[rownum][cellnum]); } rownum++; try{ fileoutputstream out = new fileoutputstream(dest); myworkbook.write(out); out.close(); }catch(exception e){ e.pri...

How to export users from oracle database. (Oracle 10g express edition) -

Image
i trying export user database, showing but if trying export entire database completing. want export 1 user. how fix problem oracle character set. thanking you! to export 1 user can type following: exp system/<system_password>@<database> file=<user>.dmp owner=<user> the export utility ask no further questions.

javascript - Overriding jquery .load() function - handle callback -

i have overloaded .load() funciton of jquery meet crossdomain requirements. (function ($) { var _load = $.fn.load; $.fn.load = function(url, params, callback) { if (url.match('^http')) { $(this).load("read_page.php?p="+url); return this; } else{ return _load.apply(this, arguments); } } })(jquery); the "read_page.php" calls php curl page crossdomain. the part of code calling above overrided function is: $(trg).load(user_folder+shw+qs, function(){ showerr("updation successfull", trg); $(".diverr").css("border-color","#4f8a10"); $(".diverr").css("background","url(images/img_suc.png) no-repeat 10px 50%, left;"); $(".diverr").css("background-color","#dff2bf"); ...

Linq to ... and Lambda Expressions -

i have big question has been puzzling me long time , can't seem straight answer anywhere , sure if can answer authority , examples not me thousands of developers come. want know characteristics of following concepts , differences between them linq linq sql linq entities linq objects lambda expressions also, in particular, can tell constructs such these fall above categories construct 1 var result = n in nums n < 5 orderby n select n; construct 2 entities.person.where(p => p.firstname == "john").first(); your learned clarifications eagerly awaited. i'm sure there over-simplifications here, it's worth: linq api designed dealing data sets. iqueryable , instance, comes system.linq namespace. linq ... different implementations parse same linq instructions perform different operations based on how data stored. linq sql parse .where instruction produce sql query where clause, while ...

objective c - CGContextStrokePath triggers EXC_BAD_ACCESS in iOS > 5 -

this question has answer here: assigning existing cgcolor cgcolor property works in ios simulator, not ios device. why? 3 answers i have custom uibutton class adds gradient , gloss effect uibutton code works in ios 4 , on ios5 simulator when run on ios 5 devices gives me exception exc_bad_access , exception triggered line : cgcontextstrokepath(context); any appreciated , here's code - (void)drawrect:(cgrect)rect { cgcontextref context = uigraphicsgetcurrentcontext(); cgfloat actualbrightness = _brightness; if (self.selected) { actualbrightness -= 0.10; } cgcolorref blackcolor = [uicolor colorwithred:0.0 green:0.0 blue:0.0 alpha:1.0].cgcolor; cgcolorref highlightstart = [uicolor colorwithred:1.0 green:1.0 blue:1.0 alpha:0.7].cgcolor; cgcolorref highlightstop = [uicolor colorwithred:0.0 green:0.0 blue:0.0 alpha:0.0]....

How to display only specific div with python webkit -

i got: self.webview = webkit.webview() self.scrolledwindow = self.builder.get_object("scrolledwindow") self.scrolledwindow.add(self.webview) self.webview.open(advsearchuri) self.webview.show() and it's displaying whole site right, want show content's of specific div , hide rest. simplest way this? using execute_script can inject javascript webview. show or hide divs would: js_code = "document.getelementbyid('foo').style.display = 'none';" self.webview.execute_script(js_code)