Okay, this is gonna be fun. I just finished my own version of the User class in php. I know there are millions of others around, but I didn’t find one that would suit my project – they’re all too complicated and unflexible. I’ll start off by explaining some of the requirements and a couple of examples. I’ll introduce you to the class at the end. I had to slice the...
PHP: Logger and Timer Snippets
Hey. I’ve just started writing my simplest classes for a new content management micro-system in php, and I’d like to share some moments with you. These classes will probably be good for php noobs out there struggling in the world of object-oriented programming – go for the basics. The Logger class is just a text logger with simple functionality good for logics debugging. The...
Wired News & Twitter
I’ve read an entry in the livejournal webdev community today – a link to a great blog post on Wired News about “the battle of the browsers”. Following the link I got onto the Wierd News Blogs website, and with a timeout of about 5 seconds I received a javascript popup message asking for my Twitter username and password. This looks like scam. Why the heck would a PR9 news...
Gnome Keyboard Shortcuts
… and the Super key. I don’t know if everybody knew about this trick already, but it seems that Gnome has got this bug, that doesn’t let you bind keyboard shortcuts with the Super (windows key) combination, except the Super key itself (alone). Anyways, the work-around is using the Gnome Configuration Editor and just type in the combination in text. Browse to /apps/metacity/...
Websites That Suck!
A couple of weeks ago I made a new friend on Twitter – Aaron, a web developer from Severna Park, MD. He posted a link to his new blog post on his website about websites that suck. I loved the idea and subscribed to his RSS feed. Yes, there are billions of webs out there that really suck, and I’m glad that Aaron’s getting them all in once place. Aaron describes the things done...
Working in Web 2.0
Somebody on Twitter yesterday posted a link to UADDit with photos of workplaces in web 2.0 companies, such as Twitter, Facebook, Flickr, Last.fm, Mozilla and others. I just couldn’t resist, so here they are:
The last.fm pictures are my favourite! The original post is at uaddit.com discussions.
Running Coltrane
The upgrade went great, spent about 10 minutes on everything. Here’s my version of a quick guide, assuming you have SSH access. Start off by disabling all your plugins through the wordpress administration panel and doing a complete backup (including database). Then load up your putty or whatever SSH client you are used to. My wordpress is running from /home/kovshenin/wordpress/ and here is...
Twitter on Fedora Linux
I got tired of using my web browser for twittering, so I looked for some twitter applications for linux. A list of the best ones can be found in the Twitter Fan Wiki. I’ve tried a couple, but Twitux suited me best. It looks pretty good, runs under Gnome and supports gui-notifications. To install Twitux on a Fedora machine change to root and yum install it: su - yum install twitux That will...
MySQL Charset Issues
And yet another MySQL character set problem solved. I had a remote FreeBSD server running MySQL 4.0 and a local Windows server running MySQL 5.0 (the XAMPP web servers package). I had no problems doing an export from MySQL 4.0 (running on cp1251 charset) to MySQL 5.0 (running utf8 charset) with something like this: mysqldump -u -p --default-character-set=cp1251 dbname tablename > table.sql...
Fedora Linux 10 Partitioning
Okay, so I had my Fedora 10 system running out of disk space a few days ago, so I started looking for solutions to re-partition my hard drive. Yeah, GParted seemed like a good one, but it hasn’t got the power to resize currently mounted partitions, nor to run batch-scripts like Symantec Partition Magic (windows) does. The structure of my hard-drive looked something like this in the exact...