Work experience, daily problem solving |
Hi,
In my work I administrate linux, windows, write some programs (php commonly) and other stuff. I finished my studies in high school, but as you allready noticed learning doesnt finish on that. Whole your life you learn something and enlarge your working skills, experience. This site is aimed to my works experience, problems I solved or things learned. Some of my hints will be very simple, but I will write them because sometimes I need to get some piece of code or algorithm and think, that copy/paste is faster way than writing from 0.
Note: If you want to put my article or its fragment on your website, add link to my page, or direct link to article. Allso I will appreciate if you inform me about that by e-mail
Fighting url spam
Recently I've noticed there are lots of spam with just text and URL. This spam passed through spamassassin's checks all the time. Good news, there are some fabulous URL block lists. I've used two of them:
SURBL and URIBL
These two checks url bl...
Author:
Vaidas
— 2009-05-01
backup partition
Jus a link to remember. If you want to backup your entire partition using dd:
Creating_a_hard_drive_backup_directly_to_another_hard_drive
Creating_a_hard_drive_backup_directly_to_another_hard_drive
Author:
Vaidas
— 2008-12-02
Regexp generator
In my experience to-do list one of points are "To know regular expressions better". But until I can write regexp with my closed eyes, I use very useful resource on web:
RegExr
P.S. Sorry comments does not work. Something changed in new etomite cm...
Author:
Vaidas
— 2008-11-13
PHP exec time
Sometimes, I need to optimize pieces of code, especially mysql query execution time. But how to check if some piece of code is faster than other?
I use PHP function microtime(). Thats how it looks like:
$code_starts = microtime(true);
...
<som...
Author:
Vaidas
— 2008-10-21
Website speed
If your website, blog or portal gets bigger with time, or has/will have huge traffic, you need to find its weakest spots.
This free online tool is very useful, when speach comes to speed. http://tools.pingdom.com/fpt/.
Pingdom tools - a free ...
Author:
Vaidas
— 2008-08-25
Optimize MySQL
MySQL is powerfull enough to make almost anything in web development. Even wikipedia uses it. Of course, I am not guru to understand and make such a big system. But even most of small projects need optimisation. By optimising MySQL queries, you get f...
Author:
Vaidas
— 2008-04-11
GPG in cron
I have data recieved from ftp, which is encoded using GnuPG software.
To get files nightly, I used cron task scheduler. But there were problem when decoding gpg files (when ran shell script, everything went ok, but when cron initialised, no decrypt...
Author:
Vaidas
— 2008-02-11
Crontab paths
If you use linux crontab to automate some processes, allways use full path to scripts or other executable files.
Recently, I was writing one script, which uses munpack utility. Tested it - worked with no problems. After adding script to crontab, t...
Author:
Vaidas
— 2007-12-11
Bash file names
Recently I was writing Bash shell script, which moves files and directories from one server to other. As files and folders are created by end users, there are problems about file names.
Users create folders with spaces e.g. very important and Bash s...
Author:
roota
— 2007-10-01
Gentoo pwconv
After Gentoo update (the big one:) crontab stopped working to non-root users.
I use crontab as postgres user to make my daily database backups. After checking messages log in /var/log/messages I found this line:
cron: Authentication ser...
Author:
Vaidas
— 2007-05-08
Additional Recent Articles:
Ubuntu TP600
dpi problems
SA rules
Changing hosting
USB win98SE
php-XML
IE blank
CP to Unicode
Explorer bug
Free Antivirus
Linux date
Cyrus reconstruct
Delphi threads
Directory size
WinXP profile
Amavisd whitelist
Logrotate
Ext2fs reader
Win95 winsock
CBL listing
DB Backup
TightVnc
Kvirc irc client
Linux bridge
Emerge portage
HijackThis
Win 98 Registry
WinXP refresh
OpenOffice 1.x
Phpmailer
CSS ul pos.
FREEping
HTTrack
JSP tutorial
SSMTP for PHP
mail()
6 clicks or ?
Strings




