GNU Wget patch which adds a –config option.

This patch allows wget to take in configuration files specified by the user, for example
wget --config /la/de/dah/mylovelywgetrc http://vivithemage.co.uk
The patch has already been submitted and should be appearing in the wget trunk sometime soon, however, the FSF are taking some time to process the copyright assignment papers (apparently they're on holiday
). So I thought I'd put it up so people can use it.
Here is the patch:
http://vivithemage.co.uk/sourcecode/config_wget_0808.patch
Here is revision 2414 with the patch applied.
http://vivithemage.co.uk/sourcecode/wget_2420_withconfigoption.tar.gz
All you need to do is
tar -xzvf wget_2420_withconfigoption.tar.gz
cd trunk
sh bootstrap
./configure
make
./src/wget --config /la/de/dah/mylovelywgetrc http://vivithemage.co.uk
Hope this helps and don't hesitate to ask if you need help.
FreeBSD mascot also the mascot for a sex toy vending machine company; my word!
Seems the BSD daemon has a side job.....
I was in Durham yesterday and went to the lavatory in Yates and as soon as I opened the door, there was a big metal box with the freeBSD daemon on, now if we think about this; a restaurant lavatory is arguably the last place most people would think to find a large image of the FreeBSD daemon.
On closer inspection I found it to be a sex toy dispenser, and sad as it may be the first thing I thought of was the copyright issues. Others appear to have questioned it:
http://www.mail-archive.com/freebsd-questions@freebsd.org/msg83250.html
However it's probably likely that the author is not aware of this or doesn't care. It's probably under the gnu equivalent for images anyway, whatever that may be. I took a few few snaps and went away amused but unimpressed by the selection and questionable quality of the goods in the machine. I informed the gf when arriving at the table but she was -.- and directed the conversation elsewhere.
Here's the FreeBSD mascot

And here's the place to download the OS: http://www.freebsd.org/
Server monitoring with conky (or any other tool you may fancy)
I've always liked conky because of the abundance of themes and the extent to which you can customize them. In addition, it is embedded into the desktop in the sense that it doesn't take any room away from windows; like gkrellm does for example. It also seemed great to keep a constant eye on a server with.
Tunneling conky over ssh and running a script at the startup of the desktop seemed the best way. First, follow this great tutorial which basically goes over how to "Run Commands Remotely via SSH with No Password".
Then to set conky to run at startup, save the following c code as conky_startup.c, change the username and ip and compile it with "gcc conky_startup.c -o conky_startup" in the cli.
#include
int main(void)
{
sleep(5);
system("ssh username@ip -X conky");
return 0;
}
I set it to sleep for a while as there have been times when I used the startup options with gnome and conky started underneath the desktop, which is not really what you want. Anyway, set this program to run at startup, check the documentation of whatever desktop you're using for instructions. In kde4's case you can add it to autostart which should be under computer >> system settings >> advanced tab >> autostart
Then click add program and locate the program you just compiled (conky_startup). Log out and log back in and if all is well conky should pop up after 5 seconds telling you all about the remote machine
.
Here's the result
Teenage girls and Linux/BSD
I have found a certain consistency regarding the reasons for dissatisfaction among teenage girls with Linux or BSD operating systems. I'm sure there are many teenage girls who know there way round Linux/BSD. I've listed three of the main requirements that I think most girls would want if they are to use a Linux/BSD machine.
1. Use KDE
KDE is nice and bubbly, plenty of icons and you can get quite far without using the command line. Don't use something like blackbox, it will piss them off severely.
2. make sure flash is installed, sound is working, it plays dvd's and recognizes whatever music player they have.
3. When you install open office, make sure to provide instructions on how to save the files as docs. If you fail to do this, be sure to tell them about the online conversion sites which can convert odt's to docs.
If all these requirements are met (summed up as GUI, Media and Work), there should be an increased likelihood they'll be satisfied with their new OS. I may add some additional points later, but these seem to be the main three. (*Hides and braces himself for flames by female FOSS developers*) ;p
Tutorial: Using the K800i phone on the 02 network as a modem on debian GNU/Linux
O2 currently offers 'unlimited' Internet and texts on one of their plans for a month if you top up £15 a month. It's pretty simple to set up and only consists of a few steps.
On the phone:
1. go to the menu
2. Go to the bottom right and click settings
3. move along the tabs until you reach 'connectivity'
4. go down and click on 'usb', then 'usb internet'.
5. Then just click 'turn on'.
5. connect the phone to the computer with usb.
Ok so the phones set up, now on the computer
1. You need to install wvdial so: 'apt-get install wvdial'. This is the software which dials into the phone and connects to the internet.
2. You need to edit the /etc/wvdial.conf to looks something like this. The only thing you should need to change is the 'Phone' option to *99***1# . The rest you can leave as they are.
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***1#
Password = password
Username = username
3. Now all you need to do is type wvdial as root and you should see something like this:

4. Type 'ping -I ppp0 vivithemage.co.uk' and you should should get a reply. All done. This is a pretty lean howto so any questions feel free to ask them in the comments.
The only con is that the speeds suck very badly, but it's not too much of a problem if; like me, you're using your laptop to access something else though a terminal.
Take a look at the times compared to wifi (pipex) times:

O2......>.<
libmagic/magic.h library tutorial with example. (It’s magic!)
Libmagic is generally used to determine a file type, for example if it's a jpg, avi, or whatever, you can point it to a file and it will determine what sort of file it is using magic numbers.
I found only a few links on the library and the majority were all clones of the man file with this one being the best I found.
http://swoolley.org/man.cgi/3/libmagic
My googling skills/patience failed me it seems as I couldn't find anything more detailed. However, I looked at some other projects that used it and experimented and got it working. Here is some example code, which takes "/file/you/want.yay" and returns a mime to it (e.g. text/x-c; charset=us-ascii). You can get it to return different stuff, check the previous link for more details.
#include <stdio.h>
#include <magic.h>
int main(void)
{
char *actual_file = "/file/you/want.yay";
const char *magic_full;
magic_t magic_cookie;
/*MAGIC_MIME tells magic to return a mime of the file, but you can specify different things*/
magic_cookie = magic_open(MAGIC_MIME);
if (magic_cookie == NULL) {
printf("unable to initialize magic library\n");
return 1;
}
printf("Loading default magic database\n");
if (magic_load(magic_cookie, NULL) != 0) {
printf("cannot load magic database - %s\n", magic_error(magic_cookie));
magic_close(magic_cookie);
return 1;
}
magic_full = magic_file(magic_cookie, actual_file);
printf("%s\n", magic_full);
magic_close(magic_cookie);
return 0;
}
To compile it do: "gcc magic_test.c -o magics -lmagic". Furthermore make sure the libmagic library is installed. "apt-get install libmagic-dev" should do it if you're using a machine with debian/ubuntu.
Apologies for the bad formatting, it seems eclipse and wordpress don't agree with each other.
Debian Linux 64 installing flash firefox howto – much easier than it seems.
Jesus christ, people make it seem much harder than it actually is. A lot of the tutorials are old and from the dark ages when Adobe didn't have flash for 64 bit Linux machines and instruct 64 bit users to use nspluginwrapper etc. Well Adobe have one now, so hooray. The release is pretty new at the time of writing but works well.
Check out this page:
http://labs.adobe.com/downloads/flashplayer10_64bit.html
Then execute these commands, remember to change line 3 to reflect your username.
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz
tar xzvf libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz
mv libflashplayer.so /home/<<<yourusername>>>i/.mozilla/plugins/
Then restart firefox and go to edit > preferences > manage add-ons > plugins then right click "shockwave flash" and enable it. Remember to disable any other flash plugins that may be enabled such as gnash.
Voila, firefox should be enabled with flash. Simple isn't it.
HAF 932 review with pictures! (bought from ebuyer.co.uk)
Looks
I'm pretty sure it's the industrial and 'solid' look that attracted me to the HAF 932. I was pleased when I first saw it, it was probably one of the biggest desktop cases I had seen, it completely dwarfed anything else I had. For an idea of the size- that's the case next to a 17 inch lcd monitor.
Pretty lights
I initially thought that the red led's at the front fan would be really bright and something that would be distracting, but they're fine. The led's that are completely blinding are the hdd and power led's at the top of the case, they're extremely powerful, so don't stand in front of the case and look directly at them (if you buy the case). Maybe they'll dim with time.
Ignorance is strength
The case feels nice and solid, most of it is steel apart from the front of the case which is plastic. It would have been nicer if the front panel was steel as well. I'm not sure about everyone else but, for me, the front of a pc is usually the part that gets bashed about the most, it has to deal with people brushing past and general scrapes and bashes. So if any part of the case was steel, the front would probably be the best place for it to be!
Internal exposure
No qualms about it at all, nice and spacious, installing everything was easy, there was plenty of room to move and the hard drive caddy's keep the drives nice and firmly in place. There's also a lot of space between the back of the motherboard plate and the case and a great place to route all the cabling.
The small plastic square thing is a hard drive caddy.
Eunix user group grand theft auto 4 (GTA4) – hilarious!
I was browsing the web on GTA4 (yes, yes, sad but amusing) and came across the "EUNIX user group" website by looking through 'craplist' and then going to meet ups section or something like that. I literally threw my head back and let out a kingly laugh. The stuff they say on it is hilarious. It basically takes the piss out of linux, but it's all good fun! I have yet to go to the place where it says they meet up, not sure if they do.
Here are some badly taken shots (click images if you want to read).
It's really quite detailed which is nice to see, but it just seems wrong to "browse the internet" in a game, I'm not sure why.
Some people seem to have been angered by this, which seems bizzare to me e.g.
Overall the website portrays Linux users as middle class, young white males who won't accept arguments against the kernel. Amusing stuff!
Battle programmer shirase http download!!!!
A hilarious anime, it was lying around on one of my servers so i thought I'd put it up
BATTLE PROGRAMMER SHIRASE DOWNLOAD NOW!
By the final episode, the creators seem to endorse file sharing and apologize if you had to download it and couldn't buy it in shops. And to date, you can't buy it in shops in England which is not very good. I'd buy the series to encourage the production of the second series. Unfortunately at the moment it's not looking good for BPS.































