PHP, MySQL, SEO, Wordpress, Web-marketing

Hostgator, 10 bucks of overselling

August 25th, 2008 by patlatyj

Hi, I’d like to share with you my experience of using the hostgator services (this blog is currently running on it), *00 gigs of storage for 10 bucks per month? Cute… The fact is, 99,9% of users won’t use more then 1 gb and this allows hostgators to sell 1000 gb server to 1000 people, each having *00 gigs of space - this is called overselling and all of the big hosters do it, it’s not bad. However, if you happen to have that much of space, traffic and so on, why don’t use it 100%? Long story short, you can’t fill it with text or images, and if you try to do something serious on this space, you’ll get your database blocked (and scripts too, if necessary), ok, when you manage to lower the usage they get the DB up, usually it takes ~12 hours to make something with your site, write them a ticket, and get the DB unlocked (which is pretty fast, thanks hostgator support), but the really dumb thing is that they don’t notify you AT ALL. You can just notice that seeing your site down… This sucks… However the service is ok and IMHO, you gotta try to make your scripts lightweight or something (Wordpress is ***ing not lightweigth) and to always use as many databases as possible (remember WP option to just prefix the tables and put them in the same DB - forget it) - ’cause in case you get your DB suspended, you’ll get only one site down, and not all of them

Filed under Uncategorized having No Comments »

Wordpress multiple languages support?

August 25th, 2008 by patlatyj

Hello there! Have you ever thought of having your blog display in multiple languages? Seems like no existing plugin combines the perfect set of features:

  • Nice permalink handling, with domain.com/ in default language and domain.com/de in German
  • Automatic IP-based detection of the preferred language
  • Option to show only relevant posts on the category, index etc pages
  • Compliance with the latest WP version (hello, gengo)
  • A button to switch languages for misdetected-language users
  • Cookie to store preferred language
  • Ability to provide default-languaged content in case no translation found

In case I don’t have a plugin to fit my needs, I usually write my own, but writing this one would be more difficult, then usually, so does anybody need it too? Or do you happen to know already written one?

Filed under Uncategorized having No Comments »

Perl multithreading: threads vs. POE

August 25th, 2008 by patlatyj

I’ve coded some POE-using project recently and discovered, that if you use the sleep function in one sessions, all of them are going be sleeping, thus causing you to have no multithreading at all. Googling this stuff I’ve found an interesting page answering the sleep in POE question. Long story short, you need new handlers, ok, it can be used in some strainghtforward situations, but I still can’t imagine a good way to handle e.g. the while { while {#here I want to sleep}} situation. Threads work just as intended to (though having some subtle dangers inside).
However, accessing variables with POE is maximally easy, in threads you have to use the shared modifier to enable that - and it’s not very safe - recent versions even had serious memory problems while using a shared array, etc.
Talking about DBI, it seems to be impossible to use it multithreaded without some additional modules - just search CPAN for “poe dbi” or “threads dbi”

Filed under Uncategorized having No Comments »