http://scpd.stanford.edu/knuth/
CategoryUncategorized
Plugins & gems lists
Associations
http://www.workingwithrails.com/railsplugin/4801-has-many-polymorphs
Versioning of AR
http://github.com/fatjam/acts_as_revisable/tree/master
http://opensoul.org/2006/7/21/acts_as_audited
Scafolding
http://streamlinedframework.org/pages/about
Ajax pagination with JQuery
http://ozmm.org/posts/ajax_will_paginate_jq_style.html
Find_by_param is a nice and easy way to handle permalinks and dealing with searching for to_param values
http://github.com/bumi/find_by_param/tree/master
Asset Plugin – better than rails 2.0 integrated
Image Magic
http://vantulder.net/rails/magick/
OpenID
http://wiki.rubyonrails.org/rails/pages/OpenidLoginGenerator
http://github.com/technoweenie/restful-authentication/tree/master
http://github.com/mrflip/
Model graph visualize
Article on franzens.org
- http://visualizemodels.rubyforge.org/
- http://rav.rubyforge.org/
- http://railroad.rubyforge.org/
Simple Captcha
http://expressica.com/simple_captcha/
Memcached stuff
http://townx.org/rails_and_memcached
memcached -vv -l 127.0.0.1 -p 11211 -m 256 -P /tmp/memcached.pid -u mongrel
memcached-tool 127.0.0.1
monitor the connections with the hidden option in the memcached-tool
echo $(($(netstat -nt | grep 11211 | grep -v WAIT | wc -l)/2)); ./memcached-tool 127.0.0.1:11211 dump > memdump; cat memdump
PDF Output
http://ruby-pdf.rubyforge.org/pdf-writer/
http://rubyforge.org/projects/railspdfplugin/
Somone example report
Need to be checked: http://code.rubyreports.org/
Reporting
ruport & acts_as_reportable
some java reporting into rails
Sending Email
Inline email attachments plugin: http://flow.handle.it/past/2007/11/5/inline_attachment_now_official_rocks/
Wiki integration
http://github.com/queso/signal-wiki/tree/master
Repositories
http://github.com/mrflip/
Tutorials
Rails2.0 Video http://www.vimeo.com/425800
http://media.rubyonrails.org/video/rails_take2_with_sound.mov
http://akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
http://akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial-part-2
Performance and Loging
Announcing Clientperf: Simple Client-Side Rails Performance
web statistics
http://www.railstat.com/wiki/FAQ
http://haveamint.com/about/feature_highlights – not free
production log analyzers
webstat like: http://watson.rubyforge.org/
speed: http://github.com/wvanbergen/request-log-analyzer/wikis
speed: http://ckhsponge.wordpress.com/2006/10/11/ruby-on-rails-log-analyzer-rawk/
pl-analyse: http://seattlerb.rubyforge.org/production_log_analyzer http://seattlerb.rubyforge.org/production_log_analyzer
Open source rails projects
- Search engines
- http://www.opensourcerails.com/
- http://github.com/repositories
- E-Commerce solutions
- http://code.google.com/p/substruct/
- http://spreehq.org/demo
- search google
Server setup
capistrano
- capistrano-multistage
- gem install seesaw – restart app without loosing connections
- mongrel_rails seesaw::configure –server nginx
mod_rails
- http://www.sysadminschronicles.com/articles/2008/05/13/ubuntu-8-04-rails-server-using-passenger-part-2
nginx
- check my post
- gem install nginx_config_generator
Tools
- Statistics
- InoDB monitor, Mysqlreport
- phpmyadmin OR http://phpminiadmin.sourceforge.net/
- CPU load info script
- http://www.maatkit.org/
- SQLite manager – http://iqk.sourceforge.net/
Status
SHOW status where Variable_name like ‘Th%’ or Variable_name like ‘%Connec%’ ;
SHOW [GLOBAL | SESSION] STATUS [LIKE ‘pattern’ | WHERE expr]
Check/Repair tables
mysqlcheck -u root -p***** –auto-repair –check –optimize –all-databases
Profiling
watch -n 0.5 ‘mysql -u root -ppass -e “SHOW FULL PROCESSLIST” | grep Query’
http://opendba.blogspot.com/2008/03/mysql-finally-ability-to-traceprofile.html
mysql> set profiling=1; mysql> select count(*) from mysql.user; mysql> show profile;
Dump
pg_dump -U test arachnid_archiv_test –inserts -h chaos.spider.bg –encoding=utf8 -f pgsql.sql
mysqldump -c -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASS -r $tfile --add-drop-table $DB
mysqldump -c -h localhost -u system3 system3_production -psomepassword -r system3_production.sql --add-drop-table $DB
Dump for full backup with flushing of the log files
mysqldump -h $MYSQL_HOST -u $MYSQL_USER -p$MYSQL_PASS
–single-transaction –all-databases –delete-master-logs –flush-logs –master-data=2
> backup_sunday_1_PM.sql
Encoding problems
http://www.hostbulgaria.com/tutorials/mysql-charset-encoding.aspx
SHOW VARIABLES LIKE ‘character_set_%’;
curl -i http://system3.spider.bg
Creating a database
create database re_production DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
Creating a user
GRANT ALL PRIVILEGES ON arachnid_production.* TO ‘payak’@’%’ IDENTIFIED BY ‘payakpassword’ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON system3_production.* TO ‘payak’@’%’ IDENTIFIED BY ‘payakpassword’ WITH GRANT OPTION;
mysqladmin -u [user] -h localhost -p password ‘[new_password]’
SQL for a table
SHOW CREATE TABLE tblname;
mysql tunel to another machine
ssh -N -f -l root -L 0.0.0.0:3307:91.196.240.132:3306 s1
open port 3307 on the local machine to 91.196.240.132:3306 and login into s1 with root
Replace text
UPDATE script_histories SET cod_script = replace(cod_script,”observer.ArchiveObserver(siteId)”,”observer.ArchiveObserver(siteId, script_id, owned_source_id)”);
Copy from one table to another
DELETE FROM system3_production.articles;
INSERT INTO system3_production.articles SELECT * FROM arachnid_from_screen.articles;
Sessions for Rails
select count(*) from sessions where updated_at < DATE_SUB(now(), INTERVAL 3 DAY);
Binnary loging
http://dev.mysql.com/doc/refman/5.0/en/recovery-from-backups.html
Check this attachment here: mysql-presentation on replication etc.
- See the status of the log files
SHOW BINARY LOGS;
SHOW MASTER STATUS; - Clean the binary logs instantly
RESET MASTER; - Clean binary logs to date/name
PURGE BINARY LOGS TO ”mysqld-bin.00XXXX’; - Configurations in my.cnf
log-bin
server-id = 1
expire_logs_days = 1
max_binlog_size = 100M
Configuration
max_allowed_packet = 50M
wait_timeout=720
max_connections=1000
connect_timeout=20
query_cache_limit=8M #~~~ removed, 1M def. max pozwl. razmer za cache-hirane na edna zajawka
query_cache_size=128M #~~~ 32M, 0 def.
query_cache_type=1
Restoring the maintian Debian User
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION; Replace <password> with your debian-sys-maint password.
Once in the dark DOS ages I have one game with which you can make wonderfull animations. In the “Windows” era I miss this game a lot….until I found this nice replacement.
http://phun.cs.umu.se/wiki/Download
Незнам защо но успях да открия в интернет само тази рецепта за тези вкусни бонбони и се изуших да я запазя за ентусястите, в момента бадемите са в хладилника и побеляват активно.
200 гр. сурови бадеми
90 гр. захар
130 гр. вода
1 ч. л. лимонов сок
Бадемите се накисват във вряла вода, която да ги покрие два пръста. Престояват така около 20-30 минути и се обелват, като се натискат леко в края на ядката.
Слагат се върху домакинска хартия и така престояват една нощ в хладилника, за да се изтегли водата от тях и за да побелеят.
На другият ден бадемите се смилат фино в машинка за кафе или в кухненски комбайн, до консистенция почти на брашно. За по-добър резултат се слагат по малко бадеми, защото при по-големи количества долния пласт става на паста, а горният е едро смлян. Прави се захарен сироп от захарта и водата по следния начин-слагат се двете съставки в дълбок съд и се оставя да заври сместа. После се намаля котлона на средна степен и се оставя сиропа да ври докато не стане със следната консистенция-като се капне капка от него в чаша със студена вода, то капката трябва да падне цяла на дъното,
Когато този момент (Punto di masapan) е достигнат, смлените бадеми се прибавят и вече на съвсем слаб котлон се превъртат заедно със сиропа, докато не стане хомогенна тестообразна смес. Тенджерата се отсранява от котлона, хубаво се смесва с лимовият сок и се приготвят бонбони с помощта на метална формичка и найлоново опаковъчно домакинско фолио-фолиото се слага във формичката, отгоре се натъпква плътно сместта и се обръщат така получените бонбони върху пекарска домакинска хартия.
След като се стегнат се нареждат в празна картонена кутия от бонбони и преседяват още една нощ в хладилника.
На другият ден можете да опитате този невероятно вкусен еврейски сладкиш, който се приготвя за сватби, раждане на деца, Брит мила или Бар или Бат мицва.
Той има особен статут в еврейската култура, защото приготвянето му отнема много време и е относително скъп за направа.
- IPTables
- Linux firewall with packet string-matching support
- http://www.securityfocus.com/infocus/1531
- Firewall scripts
- http://linuxfirewall.start.bg/
- http://www.puschitz.com/FirewallAndRouters.shtml
- Debian Kernel how-to
- http://myfreesoft.net/phpBB2/viewtopic.php?t=52 * in Bulgarian *
- Source: http://www.howtoforge.com/forums/showthread.php?t=21
- http://www.howtoforge.com/kernel_compilation_debian
- Active Ports (Windows)
- http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx
- Security and Audits Checks & updates
- http://sourceforge.net/projects/advchk
- RedHat – http://www.redhat.com/spacewalk/
WebGoat
WebGoat is a deliberately insecure J2EE web application designed to teach web application security concepts
You can download it from sourceforge or from google
The package contains a tomcat server and you can run it from the distribution. But in my case there was only windows configuration files so I have to take the war file and put in the standalone tomcat installation. Also move the permissions for the roles/users to my tomcat installation.
After manage to run it you will need some sniffer/proxy to monitor the requests. I have tried it with WebScarab but there is another one here and this one here
- Run WebGoat in tomcat
- Run you proxy/sniffer/pluging or what ever monitoring tool.
- Start your browser
- Setup your browser to use the proxy in case you choose to use proxy
- Redirect your browser to WebGoat application (http://127.0.0.1:8080/WebGoat/attack )
You are ready to pass all the tests. Here are the options extracted from the lates WebGoat version:
- Admin Functions
- General
- Code Quality
- Concurrency
- Unvalidated Parameters
- Access Control Flaws
- Authentication Flaws
- Session Management Flaws
- Cross-Site Scripting (XSS)
- Phishing with XSS
- LAB: Cross Site Scripting
- Stage 1: Stored XSS
- Stage 2: Block Stored XSS using Input Validation
- Stage 3: Stored XSS Revisited
- Stage 4: Block Stored XSS using Output Encoding
- Stage 5: Reflected XSS
- Stage 6: Block Reflected XSS
- Stored XSS Attacks
- Cross Site Request Forgery (CSRF)
- Reflected XSS Attacks
- HTTPOnly Test
- Cross Site Tracing (XST) Attacks
- Buffer Overflows
- Injection Flaws
- Command Injection
- Blind SQL Injection
- Numeric SQL Injection
- Log Spoofing
- XPATH Injection
- LAB: SQL Injection
- Stage 1: String SQL Injection
- Stage 2: Parameterized Query #1
- Stage 3: Numeric SQL Injection
- Stage 4: Parameterized Query #2
- String SQL Injection
- Database Backdoors
- Improper Error Handling
- Insecure Storage
- Denial of Service
- Insecure Configuration
- Web Services
- AJAX Security
- Challenge
The apache module that will do the job is called mod_dosevasive. The installation is easy.
- Download from http://www.nuclearelephant.com/projects/dosevasive/
- extract it
- apxs2 -i -a -c mod_dosevasive20
Configure the apache2
Edit your httpd.conf (usually located in /usr/local/apache/conf/httpd.conf):
Add:
<IfModule mod_dosevasive20.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10 DOSEmailNotify someuser@somedomain.com DOSSystemCommand "/dir/command %s" </IfModule>
Then you can restart
- /etc/init.d/apache2 restart
Be carefull because the options are extremly important. For example if your web application use one file as a controller all the requests will go to this file you will got very often such errors:
client denied by server configurationHere is a short help on the configuration options
- DOSHashTableSize: is the size of the table of URL and IP combined - DOSPageCount: is the number of same page requests from the same IP during an interval that will cause that IP to be added to the block list. - DOSSiteCount: is the number of pages requested of a site by the same IP during an interval which will cause the IP to be added to the block list. - DOSPageInterval: is the interval that the hash table for IPs and URLs is erased (in seconds) - DOSSiteInterval: is the intervale that the hash table of IPs is erased (in seconds) - DOSBlockingPeriod: is the time the IP is blacked (in seconds) - DOSEmailNotify: can be used to notify by sending an email everytime an IP is blocked - DOSSystemCommand: is the command used to execute a command when an IP is blocked. It can be used to add a block the user from a firewall or router. - DOSWhiteList: can be used to whitelist IPs such as 127.0.0.1
ВСИЧКИ GPS устройства, които се продават в България трябва да вървят с включена в цената карта на България – уви това в момента не е така.
Освен това би било редно при покупката на ново устройство да можеш да започнеш да го ползваш с актуални карти от момента на закупуването му или да можеш да ги обновиш до датата на закупуване на устройството.
И тъй като аз не можах да се размина от това да стана “специалист” по PNA устройства ще се опитам в този пост да помогна на ощетените потребители на IGO в България.
Така, че като купувайте гледайте версията на картата!
Малко бележки по качването на IGO 8 в/у Prestigio 350
- Първо си намирате IGO8 PNA
- Карта поне 2гигабайта
- Копирате го иго-то там.
- слагате Autorun.inf файл на SD картата и вътре в него
navigation=\MMC_Storage\igo\igopna.exe- Евентуално да смените резолюцията от sys.txt
В никакъв случай не patch-вайте или пипайте IGO-то на самото устройство, следват псувни…
sys.txt
ако е екрана не е 480х272 трябва да стане на 320х240;
също така ако е казано, че е за друго PNA може да се наложи да си изкопираш настройките за гпс-а boud rate и разните му там други от оригиналният ти sys.txt
За 350 prestigio e:
[gps]
port=5
baud=9600
Ако имаш проблеми със звука в SYS.txt слагаш тези редове:
[sound]
queue_length=200
[rawdisplay]
class=”portrait”
обръща екрана, но с хоризонталните картинки и става мазало ![]()
трябва да намерим съответните файлове от data.zip\ui_igo8\240_320\*.*
В SYS.txt файла му укажи в коя директория ти е ексето в ред:
[folders]
app=”%SDCARD%/iGO8″
app=”%FLASH_STORAGE%/IGO8″
Преди да я стартираш наново , ако имаш папка “save”я изтрий.
Карти
Линкове за актуални карти за целият свят включително и за България можете да си намерите от форумите на 4pda.ru и по специално от:
- тази тема тук 4pda.ru или по-точно тук
- Карти и POI-та от (http://forum.pocketbulgaria.com/viewtopic.php?t=21042)
- Kамери: http://forum.pocketbulgaria.com/viewtopic.php?t=20939_url
- Скинове: http://forum.pocketbulgaria.com/viewtopic.php?t=19224
- http://www.volny.cz/sstopar/mio_mapy_igo8_3.html
- http://thepiratebay.org/search/igo8/0/5/0
- Фен сайт за IGO http://www.i-go8.com/search/label/SKINS
- BG POI http://forum.pocketbulgaria.com/viewtopic.php?t=21244
- http://forum.ppcwarez.org/viewforum.php?f=256
менюта
- различни карти и ПРОГРАМИ за виндовс це
- http://gpspassion.com/forumsen/topic.asp?TOPIC_ID=126303
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=109690 - http://xdevice.ru/testforum/viewtopic.php?t=139
- http://forum.pocketz.ru/index.php?showtopic=45165&st=20
Самата програма
За HTC Diamond инсталация (браво момчета).
И темата която ме шашна с това че и в България може да е като в Русия:
http://forum.pocketbulgaria.com/viewtopic.php?t=15468
Описание на файловете
3dc – 3D cities
3dl – 3D landmarks
DEM – digital elevatiom model
УПЪТВАНЕ ЗА КОНВЕРТИРАНЕ НА ЛИЧНИТЕ СИ POI КОИТО СМЕ
ЗАПАМЕТИЛИ В НАШЕТО PDA, PNA
взето от http://forum.pocketbulgaria.com/viewtopic.php?t=21244
1. Файла който ни трябва от нашето устройство е user.upoi, който си го създава програмата сама, когато по картата създадеш собствен POI. Намира се в
\iGO8\save
Тя е различна по структура от kml файловете и за това неможе да се преименува и да се използва като готов KML фаил.
2. Зареждате тази страничка и след много кратка първоначална регистрация вече може от лявата страна да избирате необходимите ви опции.
3.Отивате от ляво в Import след което бутона Browse… и му показвате пътя до необходимия ви файл. Може да се импортват:
Google Earth (*.KML)
iGO POI Explorer CSV (*.CSV)
iGO 8 user edited (*.UPOI)
iGO 8.3 user edited (*.UPOI)
След като натиснете Upload се зареждат и долу в ляво browse by groups се появява директория с името на Вашите POI. След като щракнете на тях те се отварят и може да ги видите, редактирате (бутона за редактиране е в най-ляво на екрана и при мен едва се вижда), добавяте нови.
4.След като приключите работа с тях, пак горе в ляво избирате Export който може да е в:
Google Earth (*.KML)
iGO POI Explorer CSV (*.CSV)
iGO 8 user edited (*.UPOI)
iGO 8.3 user edited (*.UPOI)
и натискате Download записвате го на компютъра си и след което го споделяте с нас ![]()
Щастлив собственик съм на Prestigio. Въпреки, че вообще не ми се занимаваше успях да кача най-новата карта за България на IGO в PNA-то и потеглих с колата към Чепеларе през междинен пункт POI-то Беленташ.
Навигацията беше безупречна. В Асеновград пътя, по който трябваше да минем беше затворен за ремонт, но бързо се оправихме по обходен маршрут благодарение на IGO.
С изкачването на баирите и отдалечаване от населените места картата ставаше все по-неточна. В един момент пътя изчезва и започваш да се движиш в празното пространство. Този ефект го получих при Беленташ-а, при Кръстова гора и вообще във всичките ми крайни точки, които разбира се бяха доста отдалечени от населени места.
Това, че пътя просто свършваше вообще не ми попречи, защото за мой късмет пътищата не се разклоняваха и водеха до едно и също място.
Единственото място където картата (от 2008-01) се издъни много гадно беше като се опита да ме прекара през един много черен път от Смолян към Могилица. Въпреки, че му бях задал да не използва черни пътища, така ни оплете че видяхме не една а три Могилици на куп в махалите на с. Турян, който между другото местните го наричат Турен.
С GPS-а не мисля къде съм и кога трябва да завия. Горещо препоръчвам на всички да ползват GPS. Кефиш се като знаеш кога ще пристигнеш и винаги знаеш колко още остава.
© 2026 Ivo Bardarov
Theme by Anders Norén — Up ↑
