This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.timest,a.level, a.isinvalid, (select round(avg(a1.level)) from air_sofia a1 where a1.station=a.station and a1.param=0 and a1.isinvalid=0 and a1.timest>=a.timest - interval 12 hour and a1.timest<a.timest + interval 12 hour) level24,(select count(a2.level) from air_sofia a2 where a2.station=a.station and a2.param=0 and a2.isinvalid=0 and a2.timest>=a.timest - interval 12 hour and a2.timest<a.timest + interval 12 hour) validcount FROM air_sofia a where param=0 and station=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Open http://registry.plovdiv.bg/eDogs/default.aspx | |
2. Select 50 entries per page | |
3. Copy JS in console and run | |
4. Back up the downloaded data file | |
5. Extract all addresses: | |
awk -F '\t' '{print $4}' plddogs.tsv | grep -v address | sed 's_,\? \?\(ет\|ап\)\.\? \?[0-9]\+ \?__g;s_ \?№ \?_ _' |sort -u > addr | |
6. Geotag the addresses: | |
php geotag.php addr > addrg | |
7. Merge geotagged addresses with scaraped data and exclude columns: | |
for i in `sed 's_\t_|_g;s_ _\__g' plddogs.tsv | grep -v address`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I updated my permalink structure from .../Y/m/d/title to .../Y/title. | |
Naturaly the share button count was set to 0 due to the new URL. My | |
solution was to use the old URL structure for the share buttons only | |
for posts before the update. The downside of this is that old posts | |
will be shared with the old url structure. Thus when shared, there'll | |
be another 301. Upside - share count is kept. | |
Also, I wanted to optimize the scripts written to the footer by the | |
share module of jetpack. The registered js file includes all the | |
scripts for opening the share dialogs in a new window. These are the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These are a few commands that could be used to scrape a full group page | |
from Facebook. One can use the Graph API, but there some users would be | |
hidden. The JS commands should be run in a browser and scroll through | |
the page opening up hidden content and comments. I used Chrome. Once | |
enough content is opened, you should save the page as any other and | |
analyse it's contents. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24102 | |
39493 | |
83017 | |
73780 | |
35746 | |
65543 | |
07257 | |
35064 | |
05009 | |
72693 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a an abstract description of the loopback algorythm that @govalerteu uses to RT tweets from a selection of accounts. | |
The database keeps a list of all the accounts that are monitored with the timestamp of the last RT and check (run of this algo), the number of all tweets that were RT and the sum of their RT and fav. | |
For each account on regular intervals: | |
1. List all the tweets since the last check | |
2. Exclude all that are newer than 2 hours | |
3. Exclude all the answers | |
4. Sort them in 3 categories - tweets in Bulgarian, tweets mentioning Bulgaria and others. Sort these categories by the number of RTs and then by the number of fav. | |
5. Get the one on the top and check if it has more fav+RT than 2/3 of the average of those RT-ed until now for this account, but not less than 3. If the account hasn't been retweeted for over 4 days and 2 hours, RT the top tweet if it has more than 3 RT+fav. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ekatte | neighbors | |
---|---|---|
00014 | 04399|04707|12499|22616|39726|56109|72268|77058|77222 | |
00028 | 07260|15552|35198|43579|44241|77311 | |
00031 | 00268|21470|38618|57858|63094|65906 | |
00045 | 04337|15237|17436|23337|30898|32915|58966|65958|66682|69660|81582 | |
00059 | 32603|55631|63687 | |
00062 | 37085|63402|68240 | |
00084 | 03719|10611|21419|30627|35208|61741|65125|66490|73393 | |
00093 | 04306|15878|20393|20403|81027 | |
00103 | 06536|17244|17542|20420|39431|40943|46509 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ekatte | forests | canopy_closure | gain2000 | loss2000 | loss2000_s2011 | |
---|---|---|---|---|---|---|
00014 | 0.3091 | 0.216 | 0.0445 | 0.0041 | 0.00084 | |
00028 | 0.7951 | 0.3148 | 0.0043 | 0.0273 | 0.00546 | |
00031 | 0.0497 | 0.141 | 0.008 | 0.0022 | 0.00161 | |
00045 | 0.5988 | 0.3039 | 0.0079 | 0.0083 | 0.00002 | |
00059 | 0.5396 | 0.2832 | 0.0083 | 0.008 | 0.00252 | |
00062 | 0.5591 | 0.2441 | 0.0083 | 0.0003 | 0 | |
00084 | 0.4435 | 0.2803 | 0.0015 | 0.0018 | 0.00007 | |
00093 | 0.7846 | 0.316 | 0.0145 | 0.0026 | 0.0004 | |
00103 | 0.3307 | 0.2802 | 0.0365 | 0.2392 | 0.04472 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = $argv[1]; | |
echo date('H:i:s')."\n"; | |
$image = new Imagick($file); | |
echo date('H:i:s')."\n"; | |
$image->cropImage(25000,11900,9440,23160); | |
$image->writeImage('cut_'.$file); | |
echo date('H:i:s')."\n"; |