Archive for the ‘General’ category

Quick CSS Hack for IE 7/8

November 7th, 2009

As a developer you know how painful this IE shit is. If you are required to change a large amount of css classes just for IE 7/8 then it’s better to create a file with ie7.css or ie8.css and include the css file in your application. That will overwrite all classes for your IE 7/8 only and well don’t forget to keep “!important” to get the priority over existing properties. 

But, what if you just want to change only one or 2 properties just for IE? 
As an example let’s say you want to keep height of a DIV for IE8 in “auto” but for other browsers you want to keep it like height:10px; this is how we can do it…

.something {

    height:10px;  /* will work for rest of the browsers except IE8*/
    height /***/: auto9;   /* this will just change the IE8*/
 }

And what about IE7 ? just modifying the above class 
.something {
    height:10px;  /* will work for rest of the browsers except IE7*/
    *height: auto   /* this will just change the IE7*/
 }

Cool! i liked to get these hacks from online, certainly not a very good practice but hey, it’s not bad to use some hack instead of getting lost in nowhere? 

I’m Not Using Posterous to Blog on Wordpress as It Creating Duplicate Content

October 17th, 2009

I was exited when i figured out that i could use email to post blog on my WP blog using posterous. Though i could have used email to post on WP from it’s own setting but i noticed that it was too complicated and there weren’t all features available like a rich text editor could provide. As an example, you can’t use inline image and you always have to use plain text if you post via email from WP’s email settings. That sucks! But why i was so interested to use email instead of WP’s own editor? Well, i just don’t like that editor and i feel more comfortable to use email or a desktop blog editor client. If i was a windows user i could use “Windows Live Writer” for sure. But linux doesn’t have that much good desktop blog editor client. Anyways, let’s come to the point….

So, why i’m not gonna use Posterous to post on WP blog anymore? First i thought maybe it just posts on my WP blog when i use it like #junalontherun@posterous.com but no, i was wrong. It posted on my posterous blog as well. I searched their help forum to get rid of this duplicate content but didn’t find any solution. So, i emailed to their help center and they replied immediately saying that posterous will always post the blog or whatever on it’s own site and i can’t remove it. What the hell? 
Why i’m worried about this duplicate content? Well, i don’t want to destroy my own blog page rank for using a cool service. I searched google web master forums and tried to understand how Google Crowler actually handles duplicate contents. Interesting thing is, i found 100s posts related to duplicate content …seems like webmasters are really worried about it? But this post says ”There’s no such thing as a “duplicate content penalty. There are some penalties that are related to the idea of having the same content as another site—for example, if you’re scraping content from other sites and republishing it, or if you republish content without adding any additional value. These tactics are clearly outlined (and discouraged) in our webmaster guide
So this is something discouraged by Google eh. and well, don’t forget duplicate content can make your readers confused specially when you are posting exact thing in 2 different locations. I just wanted to find an alternative of posterous email service and found this cool tool called “Thingamablog“,  I haven’t tried it yet but i believe it will meet lots of fetures that Windows Live Writer provides. But for me i found another solution
What is that?
Good docs! Screenshot is kinda self explanatory but still if you want to know more about it then have a look here 

Now what, i can use all the features of Google Docs? Or you think i have better solution? Then tell me :)  

Web is My Computer

October 10th, 2009

Day before yesterday, i lost all data from my computer that i saved by last 5/6 years! How? I was using this tool called GParted on Ubuntu to add some free space on existing drive. That wasn’t logical at all, but why i had curiosity? if you can do that in Vista or XP then why can’t you do the same on Linux. There was a solution, that you copy the existing drive to an unallocated space and then partition the original drive and then add the space and later get the files back from where you copied files to. Instead of doing that, unintentionally, i clicked on “partition table” and clicked on “Apply” when it clearly says “this will erase ALL the data from your /dev/sda” drive! I don’t know maybe i was drunk or something….i read it! That was all my fault. No blame to anyone.

Then what happened? My whole drive became “Unallocated” – meaning i broke the whole partition of the HD. I stared at the screen for at least 2 minutes, what? that means i lost all the data? Maybe, if i tried i could have recovered some data…but then waited and i thought what i lost from my computer…..
I had, important documents, my projects! tools, Music, tutorials etc….
Now, let me tell you why i said “Web is my computer


Documents:: I saved most of the important documents on Google Docs. Documents that i couldn’t upload for limit on Google docs, i uploaded them on Windows Live SkyDrive. Same goes for Pictures, my all memorable pictures are saved on SkyDrive.


My projects:: Most of them are stored on remote servers. Just needed to get the FTP/SFTPs access info that i saved on Gmail.


Tools: As i’m a linux user, i didn’t worry about any saved softwares or anything. Just reinstalled Ubuntu and used Synaptic or command prompt to get all the software i used. But some tool like Tweetdeck where i had columns of groups? yes, thankfully i had account on tweetdeck where i synchronized my columns. Just used the accounts and got all columns back :)


Music:: Unfortunately, i dint save them anywhere. There were around 10 Gb music in my HD, this is one think that made me upset cuz i had my all favorite musics. But again, it doesn’t let me worry that much when i think that i can listen to music online from Internet radio channel like radiodhaka.net. Plus i can get these songs from my friends, of course :)


Tutorials/Links:: My twitter/Friendfeed and bookmarking tools are there to save my important links. And when i get something interesting i Favorite them on twitter which is kinda like special bookmark for me :)  There wasn’t any worries for my important links.


Ok….just spent 2/3 hrs to get all these downloaded and updated. Other then that, i actually didn’t loss anything big.
Lesson learned? Do stuff more on web, save them online…..there are lots of tools to do that. Such as, DropBox, SkyDrive, Box…etc. But personally, im waiting for Google’s GDrive. Probably it will come out with Google Chrome OS? i’m not sure but i’m preparing myself for Google Chrome OS, what about you?

Posted via email from junal’s posterous

Digging Posterous

October 10th, 2009
Probably, I haven't discovered Posterous fully yet. I'm trying to dig it now and noticing lots of amazing services. Posterous is enabling to post all over via email…which is awesome. Take this post as a test as im posting via email. 

Was looking for a tool to use on Linux similar to Windows Live Writer. Unfortunately, didn't find any promising tool that would full fill that part. But i guess this way using Posterous, i can manage or write easier way and post to my WP blog? 

Will see hows it goes….let me dig Posterous now…. 

Posted via email from junal’s posterous

So…Wassap?

August 20th, 2009

I haven’t been regular on my blog or any other social applications for last 2 months.

well….

I have traveled approximately 15,000 Kms in last 2 months! I had to visit my hometown Sylhet in each weekend and then come back to Dhaka after the weekend for my office work.

Why?

Because I was getting married:)

Certainly, physically, i’m very much tired after all these marathon running in last 2 moths. But I had no regret or complain as I had the best moments in my life in last 2 months with someone I really love.

I have also noticed few things ….

that, I have some true friends all over who like me a lot. Their messages (to cell, twitter, facebook…etc)and heart touching wishes made me feel that I should be here and all the time for all these people, if anyhow I can help them. I really want to say “Thank you” for being so nice, you guys mean a lot to me!

I have also realized, how much im addicted to this web world and what it really means to me.

At last, i’m fully back to work and back to this old days that I was missing. So wassap? What’s new? Tell me, tell me … :)

Get Adobe Flash playerPlugin by wpburn.com wordpress themes