Archive for October, 2006

WordpressMu: Don’t allow new blogs

October 31st, 2006

If you’re using WordpressMu, the blog hosting tool used on Wordpress.com, you may want to disable the creation of blogs by your visitors.

Whatever your reasons for this are, I wanted to prevent this, because I (and my team of editors) want to maintain several blogs on different topics. Users are free to register and post comments, but creating new blogs is reserved for the administrator.

So, how do you implement this in WordpressMu? There is no checkbox (yet) that disables this feature. So, I had to hack the WordpressMu code a bit.

How does your site look on …?

October 30th, 2006

When designing a web site you always check how the site looks in different browsers, even maybe at different resolutions. But how many browsers do you really use? Firefox, Safari when on Mac, Internet Explorer when on Windows and that’s mostly it.

Confused about CSS Columns?

October 30th, 2006

I’m mainly confused on how to make different layouts with pure CSS. Back in the time when tables were okay, it was rather easy. But with CSS it’s gotten rather tricky.

Dynamic Drive has some great examples (with CSS code!) of different kinds of layouts. It’s great to use as a starting point for your design!

Cheat sheets? Look here!

October 30th, 2006

Getting confused of all the tools you use on a daily basis? Don’t remember all the exact method names and possibilities of SubVersion, Apache, HTML, CSS, MySQL, Ruby on Rails, CVS, AJAX, JavaScript, FireFox, Google, etc. etc.? There is a solution! Cheat sheets make your daily work easier by providing you all you need to know on a single paper!

Here’s a very comprehensive list of cheat sheets.

Cheat sheets are simple put a collection of all important (if not just all) functions and methods you can use for a given product, framework or language. They’re great to have on your desk if you just can’t quite remember what function to use. Check ‘em out, print ‘em out and start loving ‘em!

Adsense Resource Inventory

October 30th, 2006

In addition to my previous post I have gathered some popular resources from around the web that talk about making money off Google Adsense. I hope this sums up all you need to start making money yourself.

Please, let me know if I missed something.

Things to know about making money with Google Adsense

There are three things you need in order to make money off your site or blog.

  • Visitors
  • Content
  • Ads

This post is about the last part, Ads. I’ll talk about getting visitors and creating content in a later post, so stay tuned!

Do your ads pay your (blogging) bills?

October 29th, 2006

I’ve read many articles on earning money with Google’s AdSense. Some guru’s claim to recieve five figure checks from Google every month.

The trick with these people is that they have a lot of content. More content, means more visitors, which means more clicks and thus more money. The content is written to attract certain keywords which are known earn a lot of money. Of course, professionals don’t just have one site, they have several. In order to cope with all this content they have an almost full-time job. That’s not bad if you earn a five figure amount every month.

But, how about us, regular bloggers who just want to share our bit of knowledge with the rest of the world. Most of us have Google Ads on our site, including me. My site has been refurbished quite a few times in the past few months and the content I had is gone. So, I’m not really hot in this business.

Most bloggers post a few items every few days. Some of us are really cool and post several items a day. What I want to know is: can Google Ads pay your (blogging) bills?

I mean, is there really anyone, except the kick-ass professional bloggers, who can make a bit of money of their blog? And if so, do they have any tips they’d like to share with the world?

Please let me know or post any relevant articles here. I’m looking forward to your reponse!

Ruby On Rails for PHP: CakePHP

October 23rd, 2006

The framework has been around for some time, but I found out about it a few days ago: CakePHP.

I’ve been using Ruby on Rails for quite some time now. It’s a very cool framework and it’s fun to work with. However, there’s one big problem I have with it: I can’t host it anywhere!

Well, there are several hosting companies that offer Rails hosting, but the price is pretty steep when compared to my current hosting plan. I could get a VPS or dedicated server, but that just be overkill for the applications I want to run.

So, I started thinking. What can be done in Ruby could be done in PHP as well. Maybe not in such an elegant and intuitive way, but it should be possible. And I was right.

Happy birthday to me!

October 17th, 2006

Today I’m turning 26. Yes, call me an old fart, but I still feel like 25!

Anyway, I’m off celebrating with my friends.

Having fun with SPAM!

October 13th, 2006

I was just wading through my SPAM at Gmail to see if it flagged anything important. Then I came across this message:

Is your website www.gmail.com offline, or why can’t I find it on Yahoo?

Your website (www.gmail.com) on top positions on Google, Yahoo and MSN search!
We will get your website (www.gmail.com) to the top positions on all major search engines.

Use our great value offer:
We will submit your website (www.gmail.com) to 890 Search Engines, including Google, Yahoo and MSN.

Just keep an eye out for funny SPAM mails. Feel free to let me know if you ever read a funny or really stupid SPAM message.

Migrate SQLite3 to MySQL easily

October 13th, 2006

I’ve been using a simple Rails application locally with a SQlite 3 database for some time. Now I want to move to another host and use MySQL instead. But guess what? You can’t just migrate your data!

Here are some easy steps on how to migrate your data to MySQL. First of all you need to dump your SQLite3 database. This includes transaction statements and create commands. That’s fine. Since we also migrate the schema information, our RoR app will not know any difference after we change config/database.yml.

The biggest probem I encoutered was that the SQLite3 dump places table names in double quotes, which MySQL won’t accept.