Abstract form

Don’t put comments at the first line of a HTML document

Posted in Company, Internet by Homam Hosseini on June 27, 2009

Here’s a funny problem we faced:

When Lionel, a graphic designer in the company, added new graphics to a page of the website he noticed that there’s something terribly wrong in IE. All the contents of the page had been aligned left, and the layout has been disturbed. The diagnostic process was straightforward, because all the other pages were working properly before, we started removing the contents of this new page, to find what exactly caused the problem.

After the page’s been nearly totally robbed, and we didn’t find a clue, we noticed the only difference between it and other pages was that this page had a comment line automatically being generated at the first line. So that’s it, don’t put any comment before the declaration in HTML.

This is what happens when you have a comment in the first line

This is what happens when you have a comment in the first line


The fate of Iran is linked to Twitter

Posted in Internet by Homam Hosseini on June 21, 2009

I know it may seem rude for Iranians but it’s funny and true.

“The fate of Iran, is strangely entwined with the sleep schedules of the geeks that maintain the servers at Twitter and YouTube” – Hodgman (aka the PC)

Tagged with: , , ,

Iran, Internet, People and Me

Posted in Me by Homam Hosseini on June 19, 2009

Honestly, nobody knows how much I love to sit somewhere in the darkness and think. Thinking about the past, the mistakes I’ve done, I’m making and thinking and thinking of every aspect of life that matters for me. Not surprisingly it’s often very sad, hey common it’s life, sometimes I blowup, sometime I wish I had belief in a superstition, a religion, you know something to rely on.

I was thinking on how internet influenced these current events in Iran. Yes I know I’m not the first one here, but given the fact that Iran was the nation I flee from, simply because I wasn’t able to fit in the society, the behaviors, the beliefs of the people and the society as a whole was unacceptable for me, and vice versa I’ve seen myself totally unacceptable for the society, my family and even some of my close friends, and when I think of why and how that difference originated, I find internet was very influential on me, this subject that how these days internet is so significant in Iran is very interesting for me. I remember I was spending all my after-school time in my uncle’s office to browse the web and Yahoo clubs. My English was terrible, I had to print my e-mails, and read them at home using a dictionary. I started learning how life is outside Iran. What’s important for people in the world and you can expect by the world I mean the US. Almost every resource that was interesting for me and available in English, every Yahoo club I joined, every website I browsed was in the US. As a matter of confession, the internet has changed my life twice: first when it opened my eyes to the more-real-world and second when I found online dating. Simply I met people who I had much in common. The ones I felt I was comfortable with happened to be in two groups: people like me who’d started using internet in Iran early, before the censorship starts, they like me have been really influenced by the net, and the people who were living or had been lived in the west. It was me a to-some-extend virgin high school student facing a world very different than what I’ve learnt it is and the people who I was most comfortable with, more than I was in the family.

OK, It can be a long story, I just wanted to say the internet made me think twice about the customs, especially the strict religious ones, internet helped me know myself, gave me confidence, internet was where I first tasted the feeling of self expression, being myself, I have my life, my love, my job because of the internet.

I’m certainly pessimistic about what’s happening in Iran, people there aren’t ready for a reform, at least something that make me trust my nation again. The internet hasn’t had an influence on them similar to what it has done to me. People are not using internet to see what the world really is, they’re just joining local communities, browsing Persian language resources. I think Iran cannot have a democratic government, Iran is years back to have basic civil rights recognized in, not because a strong Islamic system is governing now, but because it is the will of people. People are not ready to accept a more liberal style of governance and especially its consequences. Don’t forget people of Iran, including my very family are very religious, and they strongly believe in Shia thesis.

For now, for people like me, it doesn’t really matter what would be the outcome, I believe whatever it would be it hardly affect my view on Iran (and vice versa), I can’t live a safe, enjoyable life, with the people I love in my preferred life style there.

Tagged with: , , , , ,

How to use cursors in web pages, painless

Posted in Coding, Development, Internet by Homam Hosseini on June 14, 2009

The shortcoming of current edition of HTML and the whole technologies we build the user interface of our websites on is no secret. Here is an example: If you want to put a custom cursor on an element use this markup:

element { cursor: url('pointer.cur'), default }

I know you may think custom cursors are not being supported in FireFox, but it’s not the case if you append a ‘, default’ (or any other standard CSS cursor value instead ‘default’).

If you are looking for a painless software to create mouse cursors, we fond AniTuner easy and useful. Don’t get it wrong it can be easily used to create static .cur files that can be displayed in major browsers.

Generally as a user experience point of view, it is not a good idea to have custom cursors  in web pages, but when you are developing an online game, a smart use of cursors can make it simply more attractive.

When was the last time somebody told you that destiny is not determined by forces beyond our control

Posted in Me, Politics by Homam Hosseini on June 6, 2009

Human destiny is not determined by forces beyond our control. You remind us that our future is not shaped by mere chance or circumstance. Our history has always been the sum total of the choices made and the actions taken by each individual man or woman. It has always been up to us.

Can it come out of an atheist mouth?

Tagged with: , , ,

Protected: Parental rights

Posted in Me by Homam Hosseini on June 5, 2009

This content is password protected. To view it please enter your password below:

Enter your password to view comments.