Author Archive

Sendmail says “domain does not exist”

February 13, 2010
By silviu
Sendmail says “domain does not exist”

Recently I set-up a machine in my closet to act as a backup server. One of it’s jobs is to download via pop3 all the email from our Gmail accounts just in case the cloud goes puf . For this job I used fetchmail to fetch the emails to local users on the...
Read more »

Tags: , , , ,
Posted in *nix, Networking | No Comments »

Rename all files in a folder from upper to lower case.

February 12, 2010
By silviu

Sometimes is needed to have all files in a folder in the same case. Here’s a small script to rename all files in the folder to lower case: for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
Read more »

Posted in Bash scripting | No Comments »

Uploading big files via php

February 11, 2010
By silviu
Uploading big files via php

I’m updating a site for a client that only has file access to his hosting account via a php file manager (extPlorer for Joomla to be precise). He needed uploaded a few flash videos (in excess of 15 Mb each) but extPlorer stated that the file limit for php was set to 8 Mb. I...
Read more »

Tags: , , , ,
Posted in Tips and tricks, Web | No Comments »

Export a MySQL database using the command line.

February 2, 2010
By silviu
Export a MySQL database using the command line.

Sometimes it’s easier to just drop to the command line then browse for fancy tools like phpMyAdmin. This is useful, especially for quick jobs. mysqldump -u user -ppassword your_database > database_backup.sql Of course you need to replace: user – mysql username password – the password your_database – the database you want to backup Adding -h host.domain.com would allow to backup...
Read more »

Posted in Bash scripting | No Comments »

How to mount a windows share (samba) from the linux command line

January 24, 2010
By silviu

As you know Linux does not use drive letters like Windows does. All files are organized under a big tree hierarchy. We use the mount command to mount partitions and this is the same command used to mount remote windows partition or windows shares. Please note that you’ll need to know the following: Windows username and...
Read more »

Tags: , , , ,
Posted in *nix, Networking, Tips and tricks, Windows | No Comments »

Old Soundblaster Live 5.1 on windows 7

January 20, 2010
By silviu
Old Soundblaster Live 5.1 on windows 7

I tried running Windows 7 on a machine that had a Creative Sound Blaster Live 5.1 card inside. Since the 5.1 is a decent card I see no reason to replace it just because windows 7 came along. Please note that these unofficial updated drivers also bring along Windows 64 bit support. A quick...
Read more »

Tags: , , , , , ,
Posted in Tips and tricks, Windows | No Comments »

Checking directory sizes from the BASH prompt

January 18, 2010
By silviu
Checking directory sizes from the BASH prompt

The command ls can be made to show directories and permission but it will not display directory sizes. Then it’s time for other commands. For example on my hosting account there is no file manager installed and evidently x and kde is missing too so, to find out directory sizes I can use the...
Read more »

Tags: , , , ,
Posted in Bash scripting, Tips and tricks | No Comments »

Wake on LAN a machine using Python – WOL

January 16, 2010
By silviu
Wake on LAN a machine using Python – WOL

This is something useful: code to wake up a machine on lan using python. Since python is available on most devices now (symbian, maeom, windows, linux and so on) it’s pretty usefull. So, if you have machines that you want to be able to start this is the code to do it. I found...
Read more »

Tags: ,
Posted in *nix, Maemo, Symbian, Tips and tricks, Windows | No Comments »

Memory limits of various Windows versions

January 16, 2010
By silviu
Memory limits of various Windows versions

Thinking of a memory upgrade? An operating system upgrade? Here’s a table from msdn stating the limits imposed by 32 and 64 bit editions of various Windows versions. Physical Memory Limits: Windows 7 The following table specifies the limits on physical memory for Windows 7. Version Limit in 32-bit Windows Limit in 64-bit Windows Windows 7 Ultimate 4 GB 192 GB Windows 7 Enterprise 4 GB 192 GB Windows 7 Professional 4...
Read more »

Tags: , ,
Posted in Windows | No Comments »

Put an Online – Offline Yahoo Messenger button on your website

January 16, 2010
By silviu
Put an Online – Offline Yahoo Messenger button on your website

If you run an online business like an e-store or something similar you might want to show a button showing if your are available to chat via Yahoo Messenger. This is a fairly easy job to do. All you have to do is to show this code somewhere on your site: <a href="ymsgr:sendIM?YOUR_YM_ID"> <img src="http://opi.yahoo.com/online?u=YOUR_YM_ID&m=g&t=1" border="0" alt=""...
Read more »

Posted in Tips and tricks, Web | No Comments »

Follow me: