Posts

Android-KSOAP Java.IO.IOException error -

Image
please refer attached screenshots. i'm new in android , trying hands on accessing web-service android. ws in .net. tried code accessing ws using ksoap (the same code available in website @ many qa). i'm getting error @ final step of calling ws, i.e. androidhttptransport.call(soap_action, envelope); step. please me understand might have caused this. let me know if need more details. try line, response = (soapobject) envelope.bodyin;

php - How to get only email value from HTML files using DOM ? Only Email value not like link -

http://www.frosher.com/schools/acme-academy-burdwan/contact this page link saved in folder , address contact information of school. seen email , web link before google map block. want email value. just save html page in scrapping folder. here's code: <?php include('simple_html_dom.php');//required $i = 0; $dir = 'scrapping/';//folder name in html file if ($handle = opendir($dir)) { while (($file = readdir($handle)) !== false){ if (!in_array($file, array('.', '..')) && !is_dir($dir.$file)) $i++; } } $filenames = array(); foreach(glob('scrapping/*.*') $filename){ $filenames[] = $filename;//get files name in folder } $i = 1; foreach($filenames $val){ $doc = new domdocument(); $doc = file_get_html($val); $ret = $doc->find('div[class=span5]'); foreach($doc->find('.span7') $element){ $contact = $element->plaintext; if (preg_match...

ios - Updating core data performance -

i'm creating app uses core data store information web server. when there's internet connection, app check if there changes in entries , update them. now, i'm wondering best way go it. each entry in database has last updated timestamp. of these 2 more efficient: go through entries , check timestamp see entry needs updated. delete whole entity , re-download again. sorry if seems obvious question , thanks! i'd option 1 efficient, there case downloading (especially in large database large amounts of data) more efficient downloading parts need.

iphone - Core Data Migration: Do I Need a new Mapping Model for each new Model Version I Add? -

i've done custom core data migration several versions when doing structure changes in app. (so created new model version, , mapping model custom policy class). now, want more changes. i've created model version. now, i'm not sure whether need create mapping model change? if do, core data figure out appropriate 1 use based on users version? will need create custom policy class, or can somehow add new logic first one? lastly, need add logic migrating original database straight current database? or core data figure out me, , migrate median version first, , current version when user loads app version original data structure? thanks! i guess answer whether or not need create mapping model is... depends. see apple's docs here (specifically comments on lightweight migration): https://developer.apple.com/library/ios/documentation/cocoa/conceptual/coredataversioning/articles/vmmigrationprocess.html#//apple_ref/doc/uid/tp40004399-ch6-sw1

in SciTE, how to make the whole block of code have less margin in python -

my english programming, not good, apologize. i'm using scite run python code. added while statement outside of block of code. then, in order indent next block of code, selected , pressed tab . after more coding, want delete while statement , dedent (unindent) block of code that's in while-loop. how can dedent block of code? hope people can understand poor description, man. thanks! highlight block of code , press shift + tab

Drupal prevent unauthorized access -

how prevent unauthorized url access in drupal? i tried 'access arguments' => array('access administration pages') didn't work its given in drupal documentation on how use access arguments .this example per drupal documentation,just make more clear on how use this. $items['test/mypage'] = array( 'title' => 'mypage', 'description' => 'welcome', 'page callback' => 'mypage_info', 'access arguments' => array('anyone can access this'), ); //define user permissions. function hook_perm() { return array('anyone can access this'); } now go permissions page [administer --> user management -->permissions) , there can see list of strings used access arguments .you find access argument named 'anyone can access this' in corresponding module .give necessary permission required user roles . you more information on followi...

process - How do I create a pipe between two processes in Guile? -

i want create 2 process in guile , send output (stdout) 1 of them input (stdin) other. using following example, how can done? echo "foo bar" | wc output: 1 2 8 yes, can using open-output-pipe : (let ((p (open-output-pipe "wc"))) (display "the quick brown fox jumps on lazy dog.\n" p) (close-pipe p)) there is, of course, open-input-pipe analogue. read pipes section of guile manual more details.