Archive for Software

Fix: For When Cron Job Leave Mess in the Home Directory

Q: Why do I always get crap in my home directory even though my cron job looks like this:

*/15 * * * * wget http://site.com/cron.php >/dev/null 2>&1

A:

*/15 * * * * wget -O /dev/null http://site.com/cron.php >/dev/null 2>&1
This puts the output (-O) down the [unix] drain.

A “Y2K bug” in a Modern App?

Yes, it isn’t a Y2K Bug per se

This shows that there are some stupid people out there:

Y2K Bug Image

Note what is really happening is str = ‘19′+’106′;

Two things come to mind:

a) They stole some really, really, really old code

b) They are just plain stupid!

Well it turns out that it was b):

The code:

<script language=”JavaScript1.2″>
var mydate=new Date()
var year=mydate.getYear()
if (year<2000) year=”19″+year var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate()
if (daym<10) daym=”0″+daym var dayarray=new Array(”Sun”,”Mon”,”Tues”,”Wed”,”Thur”,”Fri”,”Sat”)
var montharray=new Array(”January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”)
document.write(”<font size=”2″ face=”Arial” color=”#000000″>”+dayarray[day]+”, “+montharray[month]+” “+daym+”, “+year+”</font>”)

The problem was that they wrote if(year<2000). The year is the number of years after 1900.

So it should be:

year = year+1900

Problem Fixed! (It was just really funny to see it, in this day and age! :) )

Steven

WP-Cache Blank Page of Doom

If any of you have tried to enable caching because when you site hits the frontpage, you site just can’t handle the traffic.

The WP-Cache for Wordpress is an excellent option for PHP 4 and a almost perfect option for PHP 5 with one tiny exception. The Blank Page of Doom. Fortunately there is an extremely easy fix.

Edit: /wp-content/plugins/wp-cache/wp-cache-phase2.php

And do a simple find and replace on:

Find: ob_end_clean(); Replace: ob_end_flush();

This is because WP-Cache was built for PHP 4.

Now enjoy the blazing fast speed WP-Cache provides!

Regards,

Steven Roddis

SSH Clients for your PDA

How many times have I been around a WiFi spot and wanted to remotly administer a computer but only had my PDA with me?

Well to many times, so I searched around for some free pocket SSH Clients and I also included a VNC Viewer for PDA’s too.

PocketPutty (http://pocketputty.duxy.net)

This SSH Client doesn’t require installation on your pocket pc and can be run straight away. It supports SSH1/SSH2 and Telnet. It also has a compression option that helps conserve bandwidth.

OpenSSH CE (http://www.eskimo.com/~webguy/service/openssh.html)

OpenSSH CD Doesn’t not require instalation aswell, but does require the user to configure it. (Putty doesn’t) OpenSSH CE does support secure file transfer whereas Putty doesn’t.

Putty = Fast Setup
OpenSSH CE = More Things

VNC Viewer for Pocket PC (http://www.cs.utah.edu/~midgley/wince/vnc.html)

Works on:

* PocketPC 2000 [ARM] [MIPS] [SH3]
* PocketPC 2002 [ARM]
* PocketPC 2003 [ARM]

Steven

Official Windows Vista Hardware Requirements

It states a minimum of 512Mb of RAM, however it says that you would want at least 1gb of RAM. A “A graphics processor that will support Windows Display Driver Model (WDDM)”PC systems with GPUs that do not support WDDM will only be able to provide a Windows XP-comparable desktop graphics experience, with regards to features, stability and performance. For storage Microsoft hasn’t stated anything yet. Ok, now for the CPU, AMD’s list of cpus is here:

  • AMD Athlon™ 64 FX Processor
  • AMD Athlon™ 64 X2 Dual-Core Processor
  • AMD Athlon™ 64 Processor
  • AMD Sempron™ Processor
  • AMD Turion™ 64 Mobile Technology
  • Mobile AMD Athlon™ 64 Processor
  • Mobile AMD Sempron™ Processor
  • Single and Dual-Core AMD Opteron™ Processors

Intel’s list (<-- Click) Read the rest of this entry »

Recent Comments

  • Josir Gomes: Hi Steve, the meta-package ubuntu-desktop is bloated with huge softwares like OpenOffice, Evolution,...
  • hannah: your that good! ha ha, but seriously.
  • Wiras Adi: Yeah, mathematic operation in text-based CAPTCHA is very easy to break. And I don't think that many sites...
  • Gary: Phew! You saved me lots of hassle :-) The only problem I had was that $_SERVER[’HTTP_AUTHORIZATION ’]...
  • Stephen: To touch on the issue Vinay raised, I had to use the -wholename option on the find command to delete files...

Else wheres