Набираем
"su"
"data2ext --enable" (без кавычек и пробел перед двумя --).Должно написать data to ext enabled.
"reboot"
понедельник, 16 декабря 2013 г.
пятница, 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:
- google.com/search (old format)
- google.com/url (new format)
- google.com/ie (mobile search)
- google.com/webhp (contains #hash query)
- google.com/aclk (adwords)
#hash query example: http://www.google.com/webhp#hl=en&q=flowers&btnG=Google+Search&aq=f&oq=flowers&fp=g9hIhDHDw6.
Resume
Here described new google’s url
construction for finding differences between “organic” and “paid” referrals
using URL.
Sources:
- https://gqs-decoder.appspot.com/
- https://github.com/beschulz/ved-decoder
- https://www.drivingbusinessonline.com.au/articles/whats-the-difference-between-seo-and-google-adwords/
- http://jwebnet.net/advancedgooglesearch.html#imgRestrict
- https://developers.google.com/search-appliance/documentation/50/xml_reference
- http://www.rankpanel.com/blog/google-search-parameters/
- http://analytics.blogspot.co.uk/2009/04/upcoming-change-to-googlecom-search.html
- http://www.t75.org/2012/06/deconstructing-googles-url-search-parameters/
- http://www.seomanontroppo.com/google-news-analytics-stuff/
- http://moz.com/blog/decoding-googles-referral-string-or-how-i-survived-secure-search
- https://support.google.com/adwords/answer/2404246?hl=en
- https://www.en.adwords-community.com/t5/Manage-ads/Dynamic-Destination-URL/td-p/200110/page/2
- 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
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:
Подписаться на:
Сообщения (Atom)