i use sync adapters in application sync changes server periodically. no matter value put in pollfrequency sync runs every 30 seconds. i checked on forum , tried changes suggested in replies , pass 'false' synctonetwork parameter when raise notifychange on contentresolver. on going through training again in detail, stumbled upon difference. on google developer site -> training section sync adapters training see addperiodicsync -> pollfrequency parameter passed in milliseconds public class mainactivity extends fragmentactivity { ... // constants // content provider authority public static final string authority = "com.example.android.datasync.provider"; // account public static final string account = "default_account"; // sync interval constants public static final long milliseconds_per_second = 1000l; public static final long seconds_per_minute = 60l; public static final long sync_interval_in_minutes = 60l; //this line i'm referring...
i take list of files php glob(."*.pdf") . files have cyrillic names. example: ООО «Рога и копыта» then load company names database , try find them in file names: preg_match("/$firm_name/ui", $file_name, $match); i have problem: firms if $firm_name visually similar $file_name , preg_match says there no match. mb_detect_encoding both variables return utf-8. there problem in file name, or maybe there encoding or something, can not understand, ask help. upd: $file_name='ООО «Рога и копыта»'; preg_match("/... .Рога и копыта./ui", $file_name, $match); as result, ОО «Рога и копыта» , 1 О missing
i may tired, can't seem figure out happening. have 2 queries. query 1 has 10 fields. query 2 has 5 fields. fields 1 through 3 same in both queries. trying write select query , simple add field 5 query2 query1 result should query1 additional field (query2.field5). i join first 3 fields both queries , choose select records in query1 , in query2 match. don't know sql, use query designer. expect same number of records have query 1 instead have 3 times or more. can tell me doing wrong. tried reversing joins still seem same records. thanks in advance. here query: the fields in common divisionname , supplierid = vendorid , commodityname . select [part revenue exposed query p1].divisionname, [part revenue exposed query p1].commodityname, [part revenue exposed query p1].suppliername, [part revenue exposed query p1].partnumber, [part revenue exposed query p1].partdescription, [part revenue exposed query p1].bucode, ...
Comments
Post a Comment