Source Guru

Interweb

Cheese Nibbles and Podcasts

by Mez on Mar.07, 2009, under Geeky, Interweb, Personal, Ubuntu

So, fanatical readers of my blog (are there any?) may remember a long time back that I got bored and wrote a little script that amused me.

While testing something out yesterday, I needed to find a domain that I wasn’t using in production so I could test on it. I stumbled across Cheese Nibbles which had a lovely “We’ll be back with something cool soon” message on it.

So, I did my tests, and they worked. Everything’s good. I’d actually forgotten what was on Cheese Nibbles in the first place, so I started rooting round in the code. I found the old site, and I decided to resurrect it.

I posted in a couple of IRC channels, to see if other people found the site amusing, and got the following back in response

<Daviey> neat
<Daviey> Mez: rss feed needed
<Mez> Daviey: *chuckles*
<Mez> but then it’d be twitter
<Daviey> sure, but a shared account :)
<Daviey> Or.. make it twitter when changed

So, well, thanks to Dave Walker’s suggestion, I did a quick google, and within 6 minutes, had it working. You can find the twitter feed at http://twitter.com/cheesenibbles

Also, over the last couple of weeks I’ve been working with Zeth from my local LUG (and the tech, who shall remain anonymous, like “The Stig“) on a podcast, which we are, for now calling “The Podcast” (imaginative I know).

I was interviewed in the first podcast (which Zeth did alone, and I (apparently) provided the comedy element for) and presented with Zeth for the second one. Also, as the second one was recorded during the Ubuntu Global Bug Jam, of which I was running one of the venues, I actually allowed myself to be interviewed for it aswell. The podcast is very rough around the edges at the moment, and well, we haven’t got a website, or an RSS feed yet, but you can find the show notes here, and download the podcast episode in either MP3 Format, or OGG Format

All comments/thoughts/suggestions welcome!

2 Comments :, , , , , more...

Dutch PHP Conference

by Mez on Jun.13, 2008, under Geeky, Interweb

So, am sittig in my hotel room, after spending way too long getting here, drinking tea, and using up the Wifi.

It doesn’t actually start till tomorrow, so not much to say – but I shall probably blog some more.

Good night out tonight, with a few of the Speakers, some good conversation, though really dissappointed that everywhere stops selling food at like – 10pm. Which is about when we got to the hotel. I think I’ve had a single bitterballe (or however it’s spelt) – roll on breakfast tomorrow morning is all I can say – and dissapointed that the place we went to only had two kinds of beer, or wine…. :(

Still, all good fun, looking forward to tomorrow. Just not liking the fact I have a single bed. I haven’t slept in one for 6 years!

1 Comment :, , , , , more...

Annoyances

by Mez on May.29, 2008, under Geeky, Interweb, Rants

Annoyances

So – today I decided that I needed a “conference laptop”

Basically, at the moment, I have my main desktop, (custom built monster) and an eeePC.

While the eeePC does exactly what I need it to, which is be portable, and have wifi – so I can check email etc etc on the fly, it doesn’t lead itself very well to developing on the move. If I try to compile anything but the most basic, it dies. So, I thought that I’d take some of my paycheck and invest a few Quid in a lower end laptop.

What I need is

  • At least 1Gb RAM
  • A Processor around the 1.7 GHz mark
  • As much disk space as possible
  • Wifi
  • 15″ Screen size minimum

What I’d also LIKE is

  • Compatible Video card for stuff like Compiz, etc
  • Wifi Chipset that’s compatible with Linux without me having to hack away for hours to get it working (preferably something that works out the box)
  • Something where I’m not paying extra for the privilege of having Windows installed before I wipe it

Ok, so – these things, espescially in the “What I need” – are fairly standard. So I went around a few websites and started trying to find the best deals. I went to ebuyer, dabs, Dell and PC World (not linked – I’ll explain why in a moment!)

Well, looking through these sites, one thing came to me pretty much instantly, and that’s that none of them seem capable of telling me what chipset the Wireless cards are running. and pretty much all of them (in most cases) lack sufficient information for a tech savvy person to actually decide whether it meets their specifications. It’s a bit like buzzword bingo on some of the sites. They give you all the weird and wonderful wacky names that come along with the technologies, without even giving you details about it. Dell is one of the few sites that gives you the information you need. But it still doesn’t tell you what chipset it’s running.

Well, anyways – that’s my first annoyance. My second… is one of putting “bling” ahead of usability, or in some cases, using technologies where it’s not even needed. The PC World website uses Javascript extensively. I, out of habit – tend to middle-click on pretty much everything when I’m browsing (ending up with my record of 37 tabs open in Firefox today!) but, when a link links to a javascript: URL – it doesn’t work. So, I goto the PC world website, click on “Laptops” and see a selection of types – I middle click on a couple of them to get the different choices, but no such luck. The tabs open to about:blank cause they don’t know what to do with Javascript.

Now, as a web developer – I know that this is a bad thing. I know that a link should have a static URL, and an onclick handler (or event listener, or whatever) if it wants to do Javascript stuff. This isn’t purely for the people who want to surf the web with Javascript turned off (which I’m sometimes tempted to do!) – but it also makes the site accessible for those who want to open a link in a new tab, in a new window, etc etc.

I’ll stop my griping now. But, please, for the love of god, if you create a website, make sure it’s accessible to anyone who doesn’t want to just stick around in a single window. If I wanted to do that – I’d use Prism (or whatever it’s called!)

Leave a Comment :, , , , more...

Setting up networking on an ubuntu server

by Mez on Apr.14, 2008, under Geeky, Interweb, Linux, Rants, Ubuntu

Ok, by popular demand (aka ompaul) I’ve decided to do a mini-howto on setting up networking on an ubuntu server, for those who are new to it.

In Ubuntu itself, when you install the desktop version, you get a nifty little tool called “Network Manager” (you may have noticed the icon, espescially if you have wireless) which pretty much does everything for you. However, if you’re using the server, without a GUI then this isn’t generaly available.

So, where to start?

It really depends on your network setup, you need to know a few things about your network before you start this.

The first and most important question you need to find out is whether there is a DHCP server on your network that will assign you an IP address. If so, your networking setup is very very simple, so I’ll start off with that.

Networking with an available DHCP server

When you have a DHCP server available on your network, things are made a lot simpler. Cut short, a DHCP server sits on your network and hands out configurations to the different computers that ask for them. I won’t go into detail, but, generally you’ll find these on small home networks (your router will generally work as a DHCP server, which is why you (usually) magically find your way onto the internet when you plug yourself into a network with a router on it)

First of all, find out whether you actually already have an internet connection. I’ll assume for now that you have a keyboard and monitor hooked up to the computer you’re setting up as a server, and have logged in as a user with sudo rights.

Type in the command “ifconfig” (without the quotes) and you should hopefully see something like this:-

mez@stupor:~$ ifconfig

eth0      Link encap:Ethernet  HWaddr 00:16:3E:7F:AC:B2
inet addr:212.13.30.94  Bcast:212.13.30.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:3576458 errors:0 dropped:0 overruns:0 frame:0
TX packets:1886783 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:836607596 (797.8 MB)  TX bytes:291514569 (278.0 MB)

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
RX packets:73611 errors:0 dropped:0 overruns:0 frame:0
TX packets:73611 errors:0 dropped:0 overruns:0 carrier:0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
collisions:0 txqueuelen:0
RX bytes:15252378 (14.5 MB)  TX bytes:15252378 (14.5 MB)

The important bit we see here is the block of text starting with “eth0″ and espescially the line

inet addr:212.13.30.94  Bcast:212.13.30.255  Mask:255.255.255.0

This generally means that the computer already has an IP address! yay!

Next, try the command

ping google.com

Hopefully, you’ll get back a response saying something along the lines of

PING google.com (64.233.187.99) 56(84) bytes of data
64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=1 ttl=245 time=100 ms

If so, you have a working internet connection! Go you! you can now start using your computer on the internet (though the IP address given above might only be accessible from an internal network, depending on your setup – going into howto get this IP available on the internet proper is beyond the scope of this blog post)

If not, you’ll get one of two errors, either a “no route to host” or a “cannot resolve google.com”.

The first issue is a complex one, which again, is beyond the scope of this article (though feel free to email me to ask questions – or catch me on IRC – I will *try* to answer them)

The second one generally means that you do not have a nameserver setup.

Open DNS is a project that provides Accessible DNS resolvers for the whole world to use. More information can be found out about OpenDNS here

For now however, lets open up your DNS resolver settings

sudo nano /etc/resolv.conf

This file should be edited to contain the following lines only

nameserver 208.67.222.222
nameserver 208.67.220.220

Hit Ctrl + O then enter, then Ctrl + X to get back to your command prompt.

Try pinging google again, and hopefully it should work. If not, something went wrong somewhere, again, try emailing me or poking me on IRC.

So, what if you don’t have an IP address?

Well, assuming that you DO have a DHCP server running on your network, lets first of all check that we have a working interface on our system

ifconfig -a

You should hopefully see a couple of lines here, one starting with “lo” and another starting with “eth0″ (or similar) – remember this name

Now, open up your /etc/network/interfaces file (sudo nano /etc/network/interfaces) and make sure it contains the following

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

Assuming that it does, we should be able to do the following

sudo ifup eth0

Which will (hopefully) bring the interface up. Go back a step if you cannot resolve google.com when trying to ping it. You might have to setup a resolver (though your DHCP server should provide these details for you!)

Voila! hopefully you now have a working network interface

Networking without an available DHCP server

Now, here is where things get more interesting. To be able to setup a network without having a DHCP server readily available, you need to know the following

  • The IP address that will be assigned to your host
  • The netmask for the IP addresses being used
  • The default gateway’s IP address (usually the IP address of your router)

It may differ how you get this information, however, I cannot tell you how to do so, I’d ask your network administrator if I were you (or your hosting provider)

So, I’m assuming here that you have the above details, are logged in at your machine and ready to go

I’ll only be brief about this setup, as a lot of the details are covered above.

First of all, make sure that your interface is down

sudo ifdown eth0

next, edit your /etc/network interfaces, replacing the information between < and > with
the information from above

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address <IP Address>
	netmask <Network Mask>
	gateway <Default Gateway>

So, you should have something like this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 212.13.30.94
	netmask 255.255.252.0
	gateway 212.13.30.1

Now head back to your console, and try

sudo ifup eth0

To bring your interface up. Hopefully, now, everything should be working (if not, go have a look at the DNS stuff above)

If you have any questions, feel free to leave me a comment here, or email me (martin AT sourceguru DOT net) and I will try and answer, though I make no guarantees!

Thus concludes Mez’s basic guide to server networking on ubuntu – I’ll try and add some more interesting stuff in a later blog post (IPv6, IP Aliases, etc etc)

12 Comments :, , , , more...

Notes to self

by Mez on Apr.11, 2008, under Geeky, Interweb, Personal

  • postfix reload does not change the listening interface settings for postfix
  • postfix really should listen on 127.0.0.1 if you are running mailman
  • when things go wrong, it’s usually your own fault
Leave a Comment :, more...

A case of mistaken identity?

by Mez on Apr.18, 2007, under Geeky, Interweb, Rants

I just recieved a pingback for my latest blog post from opencontent.info.

It seems that they think I’m someone called Randy Charles Morin.

I like the name, I think I might use it.

It’s nice to be syndicated :D even if I don’t get credit for my work

1 Comment more...

Open Wifi Access

by Mez on Apr.18, 2007, under Geeky, Interweb

Recently, Baz blogged about 2 people being arrested for using other people’s wifi for free access.

I actually read this in the Metro on the bus on the way home today, and I think it’s ludicrous. OK, some people don’t like it, but then most if not all Wireless Devices have the ability to use something along the lines of WEP/WPA etc. Surely, you can either blame the people setting up the wireless router for not setting it up in a secure way, or blame the manufacturers for not getting across the point of how WEP/WPA are good, and should be enabled? I can find a basic description in my routers manual, which doesn’t explain what these technologies are, just where to type in a key in the routers configuration screen.

I purposely leave my wireless open to the public (allbeit with traffic shaping so that my bandwidth doesn’t get molested!) And so far, have had 7 “visitors” with one actually taking the time out to research who I was and email me telling me I had an open access point, and how to fix it. How kind of them, but I replied and explained to them what I was doing.

I urge anyone out there to have a look at Fon – free wireless for those who share theirs :D Enjoy!

15 Comments more...

Source Guru returns

by Mez on Apr.15, 2007, under Geeky, Interweb, Linux, Personal

So, after a few issues with Paypal (damn them!) I’ve finally managed to be able to actually send my payment(s) for my VPS, and it has now returned.

Over the years, I’ve been hosted in many places, from Tripod, to Freedom2surf, to lyximer (man, I miss that place!) enhosting, one&one, and now to bitfolk and over all that time -I’ve used many a different Control Panel (except for lyximer – those were the good old days of getting down and dirty with the configuration files)

Well anyway, in Source Guru’s past implementation, I used ISPConfig which did exactly what I wanted, to an extent. It automated the creation of new domains, including mail, DNS etc etc. However, it lacked in a few features. It was horridly coded, and well, cause me more hassle than was worth (espescially when trying to upgrade)

So, now I’m using webmin, usermin, and virtualmin, and I’m surprised at how well Webmin actually interfaces with the config files actually on your server. You can add as many obscure settings as you want and webmin either recognises them, or just leaves them alone.

Unfortunately, It’s still not up to scratch, for me probably more than most. As I’m hosted by bitfolk I have access to 5 other DNS secondaries. It’s nice to know that you’ll be able to access your DNS even if things go wrong. However, using VirtualMin to create sites (for things like Realist Anew) it doesn’t actually create the proper Nameserver records, meaning that the Secondary Nameservers won’t take the transfer requests.

If I use Webmin’s DNS settings to create it, I can add in a nice bit that will add all the nameservers for me, but it seems that Virtualmin doesn’t interface with this! Gah!

So well, yeah, it’s getting down and dirty again in the config files to make things work (Many thanks to Andy Smith for helping me out with this one)

Anyways, other than a nice swap death, my server’s been up and playing nicely, now I just need to import all the old websites I had on there!

But it does lead me to want to start making my own “Control Panel” software … … …

Leave a Comment more...

Bored

by Mez on May.27, 2006, under Geeky, Interweb, Personal

It’s not often that I get so bored I start actually doing something.

Usually, I’ll just end up moaning and whining at people on [Insert name of preffered IM protocol here]

But, you know – I actually did something today. Nothing that’s really of any use to anyone… and nothing that’s really worthwhile for anything other than my own personal amusement – but hey – I took an hour or so – I hacked away – I played around a little, and this is what I came up with – Impressive huh? Didn’t think so – but it kept me amused for a while. As I hope will some of the comments that are left :D

 However, in writing the code, it did take me on a trip down memory lane, back to when I first got into web programming. My first ever website I set up over on tripod, back when I was learning HTML and thought marquee’s were cool. (though thankfully I never thought flashing text was!)

Back then – one of the websites I visited regularly was dogbomb (NSFW) – and I still do – on occasion – it has a couple of interesting forums I enjoy reading through (particularly the jokes forum – check it out) and has a few…. how shall I say… intriguing (?) topics on there.

Anyway – I’ve strayed from the point. Way back then – Simon (the webmaster) had a little thing you could click on and change a bit of writing on his main page, which I found very very cool (remember I was a newbie back then). He called this graffitti. Well, being the eager little beaver I was… I wanted it. I wanted it for my own, and, that’s how I got into it – I pored the web, yahoo searched, and eventually taught myself perl, and managed to get my own copy up and working. Of course, being a “featured site” at the time on dogbomb, I got a hell of a lot of abuse for “ripping” the code, but – I knew that I’d done it all myself – not stolen anything and well…. I was proud – it was the first time I’d sat down and programmed anything decent (apart from a few really basic RPGs on my old MSX!) and then I started getting into other things – forum software etc etc etc etc.

It all led me to where I am today.

Thing is – with all the innovations already being made – what can we do except copy them? Ok. it may be a different way of doing the same thing, but if it wasnt for the fact that there are so many restrictive licences, patents, etc etc out there, then surely we wouldn’t need all this re-making of things…. GnuPG and PGP for example… I don’t see the point in any of it. Which is why I advocate Open Source Software. Lets all work together instead of duplicating effort – and maybe we can move faster!

2 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!