Sunday, May 17, 2009

1 reason not to host jQuery by Google

There are tons of articles on the web that tell you why you should load JS libraries from Google. All of them are based on the trust that Google never goes down, never fails. It's a true assumption - they have so many data centers in so many places around the world that if one of them goes down next one will just pick up traffic and users will not notice anything.

This week this belief was turned down. On Thursday, May 14th Google services were very slow or inaccessible for at least two hours in the morning. Some experienced this for even longer time. Some felt like apocalipsis is here - the Great Google is not working...

Basically we could survive without some of Google services - at least there's Yahoo.
But for those who had their sites depend on Google it was a big disaster! Forget about Google Analytics that almost everyone has on their site - this is usually loaded in the bottom of the page code so it didn't have much of impact on performance. But if you have used one of Google Ajax Libraries - you'd probably load that one in the header of your page. Or Google Ajax Search which is usually located on the top of the page. This is where things were going wrong! Lucky people like I had a high chance that their page will never load because browser locks all processes on the page while any JS script is loading....

What did we learn from here? There's no ideal service that doesn't fail. Until this Thursday I could barely understand why my company would not go for Google hosted code - "If we fail there's not much you could do. If Google fails - you're f**ked up!". It's better to depend on yourself and have your page load 50 miliseconds slower than have it not loaded at all...

Wednesday, May 13, 2009

My Workspace

So here comes a pic of my current workspace (carefully cleaned out two days ago). Included: a hooked up laptop Dell Inspiron 1420 (bought in Jan '08), monitor Acer AL1917W (Jan '07), Microsoft Bluetooth Notebook Mouse 5000 (if MS does something very good - that's mice!) and some 4 y/o speakers Creative (from Staples).

Sunday, May 3, 2009

Web Hosting experience overview

Updated in less than one hour after posting - dreamhost'ed website is down again. Down, i.e. not accessible from anywhere!


Here's a list of web hosts I've ever dealt with:

Bluehost (ref link, why not?) - Shared Hosting

4 years with them. Were questionable in the beginning due to thin network pipes but over the time they've built trust to them. These days I track them with Pingdom and they provide average uptime of 99.9% on a medium-to-high trafficked site. They come out to around $100/year which is cheap. Although they give you everything unlimited, you are limited to one IP address ($30/y) and one SSL certificate ($45/y from Comodo).

One of great things about them is their Live Chat and Phone Support - you can get most questions answered within 5-30 minutes and most things done withing 30-60 minutes. Unfortunately recently I started noticing some rudeness from time to time but it's still livable.

Other well known human beings on Bluehost - Frum Satire - the guy is on Wordpress and it seems he didn't optimize his set up well so his website is slow sometimes.

Server Beach - Dedicated Servers

My first official employee used them for Win based platform. They give you everything you want - private network, private IP addresses and so on. Very good connection in NY. Not so expensive to start in any level

Media Temple - Shared (GS, Grid Servers)

Not cheap, but highly praised by many customers. They are truly a temple - many people using them are as religious as apple users... I tried them but having a very low trafficked domain only fir testing ended up in slow access time.

Noticeable features - great custom Control Panel with great support for iPhone, Urchin software for stats (free for shared Grid Servers, gotta pay for DV - Dedicated Virtual). Very flexible. Ticket system is not very fast or at least for non urgent questions you have to wait for few hours to get reply sometimes.

Rochen - Shared Hosting

Give less give better - i think it's their headline. You get just 300MB for $8/mo but this is promised to be on Raid 10 - not bad for shared hosting. And you are limited to 1 domain! But do you really need more? Get 500MB and three domains for $12. There are few more options, if you are interested you can find it out by yourself, i'm not going to do full advertising for free :) Anyway I was with them for few month but have never launched there anything high loaded to try them out. Good memory anyway except i couldn't figure out why I had problems with file permissions.

1 and 1 (ref) - shared hosting and other options

Wanted to set up a blog for my friend. Something what would be independent from my movements from hosting to hosting and to make it all under her name so in case of something. Back then they were giving options for less $2/mo + free domain what was more than enough for her. I didn't like the way some things were arranged and managed in their system, but in overall I was satisfied. Never heard complaints from my friend either

Other human beings using it - Moshe. I spoke to him, he sounds happy

DataPipe - managed dedicated and colocation

Hosting provider at my current employee. Nothing much to say but IMO they are another example of old school overpriced a bit stagnated service.

Linode - VPS

There are companies that gain your trust somehow without these loud words anywhere. This is the case. For $20/mo an up you can get as much as you need. They give you self-managed system - on a given space you can build in minutes one or many of given systems. You are free to do almost anything including breaking your things. They've got data-centers in couple of different places in US so you can often choose the most closest and appropriate location. Good place to start with your VPS.

Dreamhost (ref) - shared and VPS

I used to think of this company as a very good service which has earned so many praises from their users for good. Recently I was looking for a hosting option for my shul's website. I couldn't host it on my main account because it required own IP address and SSL. On erev Yom Tov Pesach I somehow end up on dreamhost's frontpage where they offered first year for less than $10 (code 777). Obviously I went for it because I've read many good words about them from people who used them. Unfortunatelly two weeks later the server site was hosted on went down. Obviously shared hosting doesn't provide you email or sms notifications so I didn't know about this issue until on friday I was told to check website. All what was there - "It works" - one of standard apache pages. They have status blog but the last update was from the day before that they are working on backing things up. I filed a ticket and was replied backup process is still running. So I decided not to touch anything although it didn't make sense that backup is taking that long. Ok, it's Shabbos soon and I can't do much from work anyway - all backups are only local at home. Motzei Shabbos first thing I check website and find empty index of files in the top directory of website. All I had to say was "Mo*Fu*ers". No updates on my ticket. Coming home I checked out their status blog - updated lately on friday night all it said was sorry for lost data you'll get a message about refund. Great! Thanks for not f-ing up something more serious with thousands of visitors even on saturday. I file another ticket and only about 15 hours later I get reply saying that their backup was running broken and it's for good that it happened. Now I'm still in thought of switching from them...

Just few hours later after their last reply I notice that website is down again. Not accessible from anywhere, no pings, trace route, nothing helps. Soon after filing ticket with highest priority things went up again and I'm again in deep thoughts of wasting few hours to switch to another host. Because I'm not a kid to play Up and Down games anymore.

From good side they've got some interesting options in their custom Control Panel, easy set up for SSH, IP address and SSL. Many other options. 50GB of dedicated space for backups (managed by you, access by FTP) on another server. DB is also on another server - in my case DB was left untouched and I didn't have to rebuild it.

Hostings I'd like to try:

  • Mosso - cloud servers - sounds not expensive to try. From $11/mo and up. Backed up by Rackspace, sounds impressive... Who knows...
  • SliceHost - another not expensive self-managed VPS. Also backed up Rackspace
  • MediaTemple - middle-priced managed VPS from a highly praised company, still eager to try.
  • PinchHost - they followed me today on one of my Twitter accounts after I complained about dreamhost. They look like a not expensive but so far they have there some trust. I don't know why.
  • Yahoo Hosting - large company that gives some trust, but only when they switch to PHP 5. Come on guys PHP 4 is dead!!!

I'm going to add more stuff here when there will be something and update this post from time.
What if you change your mind and the way you of a person after every conversation with them? Not in a bad way, but just like your talking to a person you don't know and get a first impression of them, but here it's someone you know for a while and it's still like someone you don't know at all?

Friday, May 1, 2009

Lolcats!


it doesn't really matter what text in russian say here.

More!

Thursday, April 30, 2009

Unfortunate iPhone effect


You can quote them, disagree with them,
disbelieve them, glorify or vilify them.
About the only thing that you can’t do, is ignore them.
Because they change things.
They push the human race forward.



It's almost 2 and half years after iPhone was first announced. It is almost 2 years after iPhone was released. It is almost 1 year after iPhone 3G was released and I've got one (16Gb, black). It's less than two month before next iPhone to be announced officially.

There's one problem about it. In the past two years there was no phone released that would be better than iPhone, but only iPhone 3G. Seriously without any bias look at the market - there's no phone to really compete with iPhone. To say that, you'll have to use iPhone for a while and then try other phones. I did. I've had my hands on Samsung, Blackberry and LG. I've seen people use G1. You can't compare them by neither quality of build/materials nor quality of software. I am not talking about applications - at some point there will be quality apps for Android and Storm which can compete or be better in some functionality than same apps for iPhone - just give it some time and drive more interest of users. But I can't believe no one was able to come up with at least near quality even without being better! Well, you may think, there is Palm Pre. We'll see that one, but so far it looks that it's less intuitive and more messy. We can confirm it possibly on May 17th. But again in less then a month new iPhone is to be announced and Pre will lose it's pedestal (if it will ever gain it).

Until that date I have a problem with iPhone. Actually two. One is minor cuz I don't care about that much - too many people around have the same phone as you have. It's like everyone driving Bentley. What's the point in fancy thing if everyone has it?
Second problem is bigger - for the past 5 or 6 years I've got used to that there are phones and there are better ones. I have cellphone for four years and for three years there was always some better phone that you can plan on getting.
That's not the case with iPhone!!! If you get it you're stuck when there's nothing better. It's not ideal at all, it has a crappy camera (if you use it a lot) and no music over bluetooth (have you seen quality BT headphones?). But there's just nothing better! There's nothing you can dream about! Isn't that lame?

Addictions and addicts, with music on the background

There are many types of addictions one may have. Unfortunately it could be too well known smoking, alcohol and drugs. Besides these there could be sexual addiction (anyone?), music, computer games, internet, computer in general, long sitting in "beis a-kisei" and others.

From noted here I can highlight two as I am highly addicted to them - music and computer in general.

I always start from the end - especially magazines and books are most interesting in the end. I'll start from the second here too.
If I wasn't addicted I would be simply in the bed for the past two hours. I just can't live without computer. I can't concentrate if I don't sit by it for few minutes. There are times when I tell myself I'm done with work for today or no work today at all but I still get back to the screen every few minutes.
While looking up a link to my comment, i've noticed a relevant topic about life without technology.

Another addiction I mentioned is music. This is not a big deal on regular days - it's just almost 24/6 me listening to music would that be in my earphones or blasting so it's sounds well in the whole apartment. You could hardly see me outside without headphones - it helps me turn from surrounding world and bring some peace to my mind. I listen to music when I program - it helps me concentrate. I listen to music as a noise canceler in the train so I can sleep. I listen to music when I'm depressed and when I'm in a good mood.
These days are hard since it's sfira time when it's customary not to listen to music. There people who say you can listen to recorded music but I hardly accept these leniences. However it doesn't stop me from giving up sometimes and turning on something. Every year it's different (read my comment to get more details on previous years so i don't have to repeat myself). This year it's a choice of only listening to when it's really depressing or when I really need to concentrate on work. Either way it's only part of my playlist which contains depressive music and nothing happy; plus it could not go loud meaning that I would hear anyone talking to me when I wear both headphones.

So yesterday I was having really hard time on concentrating on my work and I turned on music. First it was a set of Eminem (just few songs) but soon it was switched to Dark Tranquility album "The Mind's I" - something I was rarely listening to unless it was in a random play of my entire iPhone playlist. Few hours later I realized that although this music did really help me to concentrate I can't recall most of what I was listening to - i.e. it was just making a comfortable background that didn't not bother me but at the same time it didn't get my attention. Something nearly perfect.
Something I was noticing before too but this time I made me think again on it's meaning - most of the time I don't listen to the music. I breath it. Like we don't notice how we breath i listen to music, but if we stop breathing we'd die - same if i stop music I'm not feeling comfortable anymore.