понедельник, 16 декабря 2013 г.

ZTE Blade CyagenMod 7 ExtSD=>IntSD

Набираем
"su"
"data2ext --enable" (без кавычек и пробел перед двумя --).Должно написать data to ext enabled.
"reboot"

пятница, 13 декабря 2013 г.

Google ‘ORGANIC’ versus ‘PAID’ using only referrer's url

‘ORGANIC’ VS ‘PAID’


Paid Adwords
Organic (Natural)

For differentiate paid keywords (from google adwords)  from organic keywords (from natural google search) using referral URL we must look at URL path if it contain “aclk” then it AdWords, also “sa=l” or “sa=L” must be set, also look at “adurl” (but it only for new).

Example : http://www.google.ru/aclk?sa=L&ai=CGQe9IKiqUre0Dcb57Abu64CABqmNzboEmeuhqXvPyIIJCAAQASgCUNCU__78_____wFghAXIAQGpAq-L8S2ZvUQ-qgQlT9Ddw9sbMjt6r62EdrGu_psl8xtrz1o3ltazQPTiTFX1Yrd6BboFEwiSy4-fyKy7AhUyBtsKHYoMAPPKBQCAB8Gp0i6QBwE&ei=IKiqUpK7BrKM7AaKmYCYDw&sig=AOD64_1pMv15FgOb54PR1JPhxPdW5MkL_Q&rct=j&q=buy+used+cars&sqi=2&ved=0CCgQ0Qw&adurl=https://www.tqmbazaar.com

In addition to the new google url format there are three others:

  1. google.com/search (old format)
  2. google.com/url (new format)
  3. google.com/ie (mobile search)
  4. google.com/webhp (contains #hash query)
  5. google.com/aclk (adwords)

Resume

Here described new google’s url construction for finding differences between “organic” and “paid” referrals using URL.

Sources:

  1. https://gqs-decoder.appspot.com/
  2. https://github.com/beschulz/ved-decoder
  3. https://www.drivingbusinessonline.com.au/articles/whats-the-difference-between-seo-and-google-adwords/
  4. http://jwebnet.net/advancedgooglesearch.html#imgRestrict
  5. https://developers.google.com/search-appliance/documentation/50/xml_reference
  6. http://www.rankpanel.com/blog/google-search-parameters/
  7. http://analytics.blogspot.co.uk/2009/04/upcoming-change-to-googlecom-search.html
  8. http://www.t75.org/2012/06/deconstructing-googles-url-search-parameters/
  9. http://www.seomanontroppo.com/google-news-analytics-stuff/
  10. http://moz.com/blog/decoding-googles-referral-string-or-how-i-survived-secure-search
  11. https://support.google.com/adwords/answer/2404246?hl=en
  12. https://www.en.adwords-community.com/t5/Manage-ads/Dynamic-Destination-URL/td-p/200110/page/2
  13. http://gqs-decoder.blogspot.com/2013/08/google-referrer-query-strings-debunked-part-1.html

вторник, 10 декабря 2013 г.

Delphi's TDateTime to unixtime using PHP

if we have binary file wich was created using Delphi, and it's contain binary representation of TDateTime, you may read data using php the next way

function DelphiTimeToUnix(){
$fp = fopen("./dumped/file-1007.sta", "rb");
    if ($fp) {
        $i = 8;
        $data = fread($fp, $i); //Data
        $number = unpack("d", $data);
        $current_tz = date_default_timezone_get();
        date_default_timezone_set('UTC');
        $unix_start =  25569.0; //Unix start representation in a Delphi's format
        echo date("F j, Y, g:i a", ($number[1] - $unix_start + 0.00000001) * 86400) . PHP_EOL;
}
}

function UnixToDelphiTime(){
        $current_tz = date_default_timezone_get();
        date_default_timezone_set('UTC');
        $unix_start =  25569.0; //Unix start representation in a Delphi's format
        echo date( ($number[1] - $unix_start + 0.00000001) * 86400) . PHP_EOL;
}

The delphi dumps date as "double" which allocate 8 bytes for store

sources:

  1. http://en.kioskea.net/faq/998-parsing-a-binary-file-in-php
  2. https://igor.io/2012/09/24/binary-parsing.html
  3. http://delphidabbler.com/tips/30