Author Archives: Mark

Server monitoring & snmpd in messages log

After installing monitoring host to track performance of our boxes and report any load / accessibility issues I noticed that SNMP daemon on monitored machines is filling up the logs with messages: snmpd[5082]: Connection from UDP: Several connections every minute … Continue reading

Posted in SysAdmin | Leave a comment

Have you seen Messi?

I was just watching a compilation of this guy’s goals for Barcelona. This dude never makes mistakes, its crazy! 2:0 with Real Madrid, and the second goal he went through the wall of four defenders and defeated the goal keeper, WTF! definitely worth the money they pay him :) Too bad did not help Argentina beat Germans in last World Cup. Continue reading

Posted in Sports | Leave a comment

Thank you Rachel Maddow

I would like to thank Rachel for excellent source of information and eduction at the same time with a smack of political debate her show is. Its very hard to find a “news” program in US, rather than policial agenda here they broadcast flagged as “news”. Most of us realize than there are conservative and liberal media and they all have “their own news” story. Kinda about the same thing, but somehow ends up reported different on other channels.

Some news channels I’ve seen promote nothing but their political agenda, still branding it as “news”.

So, whats really a news nowadays? Something somebody did that made you angry and you can fire back starting off political debate? Or something different? Like something that we should all listen and learn for common good, not let our civilization fall into ruins.

I think real “news” pay vey important role in social connected society. Even “little” reported bad can spark a revolution. A revolution can die, if not supported and reported as “news”.

Rachel you not only touch important topics, but make them exciting for others, probably because it obviously truly excites you :) But you can pass it on. Stories we could never hear anywhere – like last super secret CIA operation to protect loose nukes. Nobody knows whats really going on out there, but you deliver fact and only fact applying your take as a logic explanation. Instead of mean propaganda pushed by others as “news channels”. Continue reading

Posted in Politics | Leave a comment

mktime date range: last week, last month

Cannot believe you have to do extensive search on google for this. Ended up writing myself. $this_week_fr  = mktime(0, 0, 0, date(‘n’), date(‘j’),   date(‘Y’)) – ((date(‘N’)-1)*3600*24); $last_week_fr  = mktime(0, 0, 0, date(‘n’), date(‘j’)-6, date(‘Y’)) – (date(‘N’)*3600*24); $last_week_to  = mktime(24,0, … Continue reading

Posted in PHP | Leave a comment

Nexus S

I’ve seen many posts on the internet people sharing their experience of getting of the hook of AT&T. I think Apple with their great product which definitely iPhone is, is hurting a lot lately because AT&T predatory plans. Its the same reason people move away from iPhone like mine. Not iPhone itself, but because AT&T charges and plan restrictions OS X may loose its dominant position on mobile market. Continue reading

Posted in Android | Leave a comment

I want Gingerbread!

Well turns out Im not the only one googling for Gingerbread, but it looks like getting OS updates with Android isn’t as smooth ride like with iPhone. Im a coder so I understand hardware compatibility issues, ble ble ble. Fuck that man, dont give me that bullshit. Dudes, you want to create a platform that supposed to beat iPhones OSX ass, keep up with the reality! Do you expect people to wait for handset manufacturer to approve and mod each new OS version, then go through the same with the carrier. Who are you kidding. That will take months if ever happens. Bottom line is that if you have an Android device you are stuck with what you have now. Continue reading

Posted in Brainfarts | Leave a comment

CentOS VPN setup

Quick guide to setup VPN in CentOS (my platform i386): wget http://poptop.sourceforge.net/yum/stable/rhel5/i386/pptpd-1.3.4-2.rhel5.i386.rpm rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm nano /etc/pptpd.conf Go to the end of the file where you can see examples of localip and remoteip. Below them add your own values for … Continue reading

Posted in SysAdmin | Leave a comment

Acer Aspire One CentOS 5 – network problem

Acer Aspire One running CentOS 5, network card problem solved with rpm -Uvh kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm module-init-tools-3.3-0.pre3.1.60.el5.elrepo.i386.rpm
This post explains where to download necessary files from and how to install them. Continue reading

Posted in SysAdmin | Leave a comment

Lighttpd mod rewrite with file exists condition

You know apache conditional re-writing rules, like:

RewriteCond %{REQUEST_FILENAME} !-s

How do you do it with lighttpd? Seems that the guys did not wanted to have a take on it for some performance reasons, but its also a condition rule that many PHP framework cannot live without.

Yes you can redirect everything to PHP and then handle it there, but then essentially you everything needs to be handle by PHP – even static files and headers and and and and becomes a headache. Continue reading

Posted in SysAdmin | Leave a comment

Lighttpd & Apache on the same port 80

Recently one of the domains I host got under DOS attack fire. Im talking serious traffic that the box could not handle and apache pumped up 99% CPU. Well its time for an upgrade there I thought, and turned to my hosting company to get new one.

In the meantime I tried to handle the situation and installed mod_evasive with APF firewall to put DROP rules for incoming IPs. Anyways it seemed not to make much difference in my case, so I ended up crawling site into static html and putting it on my CDN for now. Continue reading

Posted in SysAdmin | Leave a comment