rglob.php
Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions.
I chose the rglob() function. Read the rest of this entry »
Have I helped you? Please consider my wishlist or donating. Thanks!
Don't forget to follow me on twitter.
Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions.
I chose the rglob() function. Read the rest of this entry »
It should be easy right? Just “yum install subversion”.
Nope. You get this error message:
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package
I’ve recently had some fun installing Trac project management software on CentOS5.
After finally getting it successfully installed and setup I decided to have a play around with a TCL script for eggdrop.
This eggdrop script will allow you to return ticket information from Trac to an IRC channel.
Read the rest of this entry »
How important is link building for SEO? Link building is verified by Google to be a major factor in how a website ranks
[root@coffee ~]# yum install mod_pythonLoaded plugins: fastestmirrorerror: no dbpath has been seterror: cannot open Packages database in /%{_dbpath}Traceback (most recent call last):File “/usr/bin/yum”, line 29, in ?yummain.user_main(sys.argv[1:], exit_code=True)File “/usr/share/yum-cli/yummain.py”, line 309, in user_mainerrcode = main(args)File “/usr/share/yum-cli/yummain.py”, line 157, in mainbase.getOptionsConfig(args)File “/usr/share/yum-cli/cli.py”, line 187, in getOptionsConfigself.confFile “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 664, in <lambda>conf = property(fget=lambda self: self._getConfig(),File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 239, in _getConfigself._conf = config.readMainConfig(startupconf)File “/usr/lib/python2.4/site-packages/yum/config.py”, line 804, in readMainConfigyumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)File “/usr/lib/python2.4/site-packages/yum/config.py”, line 877, in _getsysveridx = ts.dbMatch(‘provides’, distroverpkg)TypeError: rpmdb open failed
[root@coffee ~]# rm /dev/urandomrm: remove regular file `/dev/urandom’? y[root@coffee ~]# mknod -m 644 /dev/urandom c 1 9
Nothing else seems to work, but this does indeed seem to solve the problem.
Perhaps I’ll finally get Trac installed…
f you received this message when you try and stop the VE…
[root@server ~]# vzctl stop 104 Container already locked
So your favorite site is now displaying the following message:
This domain name has been seized by ICE – Homeland Security Investigations
In this example we will use the recently seized domain “torrent-finder.com”.
What “ICE” have done is changed the IP address that the domain resolved to, to one of their own.
The easiest way to see what the IP address currently is, is by using the “ping” command:
[hm2k@server~]$ ping torrent-finder.com
PING torrent-finder.com (74.81.170.110) 56(84) bytes of data.— torrent-finder.com ping statistics —
1 packets transmitted, 0 received, 100% packet loss, time 0ms
When a business I know had trouble with their broadband I was fortunately able to get them back online by using the redundant mobile broadband on the router.
The only issue then was that they couldn’t send email on port 25 through the Three mobile network.
The solution is to change the outgoing SMTP from port 25 to port 587.
Because I keep forgetting myself, here’s how you do it on cPanel:
We recently had an issue with a US based company who asked us for the following:
Copy of your business license via PDF/JPG scanned (preferred) and emailed or faxed
We went on to explain that we don’t have a business license, they clearly didn’t understand and they proclaimed: Read the rest of this entry »
I was trying to work out how to estimate how much fuel was costing me per mile at the moment based upon my car’s average mpg.
It’s not so easy because you have to convert from miles per gallon to pence per liter, not only that but it’s an imperial gallon.
Surely there’s a calculator out there that could do this for me to save me having to remember how to work it out.
There wasn’t, but I had an idea.
If you’ve not heard of TinySong, you’re missing out!
TinySong allows you to share music using a short URL using Grooveshark.
I have created a very simple script that connects to the TinySong API.