Archive for January, 2008

BugLabs Lego Gadgets

Thursday, January 10th, 2008

Well these aren’t your tipical Lego parts. Here, a part is actually a piece of hardware that you can combine with other pieces to build something.

There are parts for a camera, gps and other stuff. And the interesting thing is that all of them communicate via HTTP, which makes it easy to use and programm.

I’ll go and read about these a lot more later. Don’t wait like me, check it out now.

Cocaine vaccine

Thursday, January 10th, 2008

Now, I don’t do cocaine ;) but I like to read about things like these. Some geniuses actually thought about using cholera proteins and putting cocaine on them.

What this does is create an immune response to cholera proteins but also to cocaine. The immune system attacks it and you can’t get high ;)

Smaaart. But… I wouldn’t want any cholera in my bloodstream, inactivated or not ;)

The vaccine is up for approval, read about it here.

Sokobanja pics

Thursday, January 10th, 2008

I saved some pics of Soko Banja and I thought this should be really on my blog ;)

So here it is
dsc02592.jpg

dsc02595.jpgdsc02598.jpgdsc02593.jpg

PayPal shipping

Thursday, January 10th, 2008

I am doing this PayPal project and a client asked me to set a fixed shipping regardless of the number of items ordered or their quantity.

The problem is, there is no form variable for a product item where you can define this behaviour.

After bumping my head for a while I realized the only way was to setup fixed pricing in PayPal profile.

And since that paypal account is used by multiple websites, the other websites have to override the shipping in form code.

NFS

Tuesday, January 8th, 2008

It’s so easy to setup NFS server. I needed NFS so I could export my OGG files to my dbox.

I’m runing Ubuntu.

Here are the commands

root@warlock:/etc# apt-get install portmap nfs-kernel-server

After that, I had to edit my /etc/exports file

root@warlock:/etc# cat /etc/exports
/exports dbox(ro,sync)

And now, whenever I change the contents of /etc/exports I need to do exportfs -ra

Cpanel/WHM 11 DNS Resolve problem

Tuesday, January 8th, 2008

Happy new year!

I took a few days off from writing since I started my own hosting (more on that later) and I’ve been busy.

Cpanel 11 on CentOS 5 (and 5.1) has DNS issues. Actually from what I’ve read the problems exist also on CentOS 4.something and Fedora. I was reading the posts from here.

The problem is that Cpanel is only concerned about the external view. Now, I’m talking Spanish, let me explain.

The new bind (named) server now has by default 3 views, localhost_resolver, internal and external.

View is actually a separate config. It means I want to have this config for the local box (localhost_resolver), this setup for my network (internal) and this for all other boxes (external).

Now, when you define a domain in Cpanel they add it only to internal and external views, but not to localhost_resolver

And if you’ve put the ip of the local box in your /etc/resolv.conf (as I have did) then you do not get anything about your local domains, DNS ain’t working!

It’s a big problem.

The last time I found a “solution” on the net that advised to remove the first two and leave only the external view. I did that and it worked great.

But then, I guess some auto update process kicked in and it overwrote my changes to named.conf

Whaaaat!

Then I figured it out… They actually do not want you to have localhost ip or the ip’s of your server box in the /etc/resolv.conf

They want you to put there the ip of your ISP. So I did just that and guess what? Everything works!

So I guess you should do the same and fix this issue :)