Posts

How to get multiresult with multicondition in Sql Server -

i need solve this. hopefully can giving me advices. for sample, i've got data : proclib.march 1 first 10 rows flight date depart orig dest miles boarded capacity ----------------------------------------------------------------- 114 01mar94 7:10 lga lax 2475 172 210 202 01mar94 10:43 lga ord 740 151 210 219 01mar94 9:31 lga lon 3442 198 250 622 01mar94 12:19 lga fra 3857 207 250 132 01mar94 15:35 lga yyz 366 115 178 271 01mar94 13:17 lga par 3635 138 250 302 01mar94 20:22 lga 229 105 180 114 02mar94 7:10 lga lax 2475 119 210 202 02mar94 10:43 lga ord 740 120 210 219 02mar94 9:31 lga lon 344...

c# - How to maintain consistancy of Header being on page top throughout all Page Sizes? -

i have set page header (using itextsharp library) along margins set a4 page size (according orientation) -because have set document's page size a4 only- , works a4 page , shows on top. can tell me how make header consistant throughout page size whatever user selects? should print header on top of each , every predefined page size a4 because when select pagesize.halfletter, header gets vanished goes out of page boundaries. help? updated question! my code is: using system; using system.collections.generic; using system.linq; using system.text; using itextsharp; using itextsharp.text; using itextsharp.text.pdf; using itextsharp.text.exceptions; using system.windows.forms; using system.io; namespace pdfgeneration { public class events : itextsharp.text.pdf.pdfpageeventhelper { private string header; private itextsharp.text.pdf.pdftemplate total; private pdfcontentbyte cb; private pdftemplate template; protected font foote...

android - how can i add an app widget to home screen automatically? -

i have searched many results google, find use app widget. after learned how write widget, new problem appeared. how can add app widget home screen automatically? why third party app can this? confused it. can me resolve problem? you can't add widgets programatically home screen. can create widget host , let user add widgets that.

rss - How can I get my android app reviews and info Feed into my site from Google play -

how can android app reviews , info. feed site google play... same http://www.appbrain.com , other android play store doing... getting latest app info. directly google play store get reviews google app. https://still-plateau-10039.herokuapp.com/reviews?id=mytown.preschool id={google-app-id} the service return reviews on app or simple host locally source code of service can found @ https://github.com/tohir87/googleplay-reviews

Why this sqlite python 3x code is not compatible with python 27 -

i´m new on python , developing app python 2.7, , got nice code python 3.x doesn´t work in version. i´ve been trying adapt it´s beauty couldn´t see issue causing compatibility problem. message is: attributeerror: database instance has no attribute '_db' in line 9.please me solve issue. #!/usr/bin/python3 import sqlite3 class database: def __init__(self, **kwargs): self.filename = kwargs.get('filename') self.table = kwargs.get('table', 'test') def sql_do(self, sql, *params): self._db.execute(sql, params) self._db.commit() def insert(self, row): self._db.execute('insert {} (t1, i1) values (?, ?)'.format(self._table), (row['t1'], row['i1'])) self._db.commit() def retrieve(self, key): cursor = self._db.execute('select * {} t1 = ?'.format(self._table), (key,)) return dict(cursor.fetchone()) def update(self, row): self._db.exe...

Android: Cache image by android class or manual way? -

when develop android app download , caching image internet, see many app use memorylrucache or disklrucache cache image after download. want know why use them, why don't use way like: download image, save image sd card , after image sd card show it( manual way). i'm newbie in android dev. please me understand it? many many times. well downloading list of images url consume time , fill user memory also....so better dynamically load images url , make cache , preview images cache.. i hope did got point....check example of lazy loading of image

iphone - ios: What is the efficient and recommended way to reverse geocode? -

i reverse geo code latitude , longitude of location , want address of location. have done through google web service takes time. want know if there other , efficient approach. currently calling service, nsstring * getaddress = [nsstring stringwithformat:@"http://maps.googleapis.com/maps/api/geocode/json?latlng=%@,%@&sensor=true",lattitude,longitude]; you can use clgeocoder : [self.geocoder reversegeocodelocation:location completionhandler:^(nsarray *placemarks, nserror *error){ clplacemark *placemark = placemarks[0]; nslog(@"found %@", placemark.name); }]; this still take time though, since both methods use web services convert lat / long place