Archive for March, 2008

March 24th 2008

Multiple Instances of Mozilla Thunderbird

I have been searching for this solution off and on for about a month and finally found it. Found it through ‘J’s post, Multiple Instances of Mozilla Thunderbird? at http://www.wynia.org, off of a comment by ‘Bortel’. Bortel linked to ‘Run multiple copies of Thunderbird at the same time‘ on the MozillaZine Knowledge Base.

Basically, all you have to do is set the environment variable MOZ_NO_REMOTE to 1 (obviously this is a windows thing and you mac people can figure it out for yourself). If you don’t know how to set an environment variable then learn how to.

If you don’t use the thunderbird email client you can download it for free:

Download Thunderbird

No Comments yet »

March 21st 2008

Free Smilies for Your Wordpress Blog - SquareSmilies

I’ve been kind of a dick lately ranting in the last few posts so decided I should be nicer. Here are some free smilies for your wordpress blogs (or what ever you want to use them for). These are fun to make! Learn how to make and install them here.

Download SquareSmilies in zip format:
Square Smilies (43)

icon text text full text icon full text
smile :)

:-) :smile: lol :lol:
biggrin :D :-D :grin: redface :oops:
sad :( :-(

:sad: cry :cry:
surprised :o :-o :eek: evil :evil:
eek 8O 8-O :shock:

twisted :twisted:
confused :? :-? :???: rolleyes :roll:
cool 8) 8-) :cool: exclaim

:!:
mad :x :-x :mad: question :?:
razz :P :-P :razz: idea :idea:

neutral :| :-| :neutral: arrow :arrow:
wink ;) ;-) :wink: mrgreen :mrgreen:

No Comments yet »

March 20th 2008

For The Love of God, Rotate Your Logs

Ok, so this is going to be another post where I rant, but I’ll keep it short. A client called me to tell me that she thought her server was having issues and was acting strange. They were experiencing dramatically high hits to their website in what was supposed to be a down time for them, so I told her that I would take a look at the apache access log to see if there was anything strange. This particular client runs a dedicated server and does all of their server admin themselves (except for when they need me).

When I opened the log folder I think my jaw hit the keyboard - there was a 980MB access_log file in there! Almost a gig of logs. Since this client doesn’t run any statistical software, I was forced to download the file and process it with my local version of AWStats. It took 3 hours to download. Aaaahhhh. For the love of God, rotate your logs!!

Anyway, here are two handy links to learn how to process logs on your local computer with AWStats or a text editor.

  • AWStats Mini Tutorial - AWStats can be kind of intimidating for those that don’t know perl (php’s super geek cousin), but this tutorial will get you everything that you need. You’ll need to have apache set up on your machine, and there is a tutorial there for that as well.
  • Max Splitter - here is the tool I used to split that huge file into manageable chunks. Notepad++ can handle some pretty large files, but it crashed on this one.

Why do you need both?

Well it’s easier to just look at the log file to see if someone is trying to hack your site. It’s pretty obvious when one ip is hogging the server (as was the case in this instance). In the past I’ve also spotted XSS hacking attempts by looking at the log…it’s pretty obvious when some script kiddie is trying to hack your site.

AWStats will help you once you think you’ve found the ip that is causing the problem. You can filter the visitors list by ip and see stats on just that IP. In my case it showed that the IP in question had use as much bandwidth in the last day and a half as 430,000 visitors had used in the last 2 months. I wonder why their site was slow?

No Comments yet »

Next »