Archive for the ‘Web’ category

What Are You Missing As a Developer?

June 18th, 2010

There is a well known verse in software engineering that says “eat your own dog’s food” or “dogfooding”. Meaning, use your own product you make. That’s true for developers and company itself no doubt. In my opinion, as a developer

  • if you don’t study, then you are missing something.
  • If you don’t try something new to learn then you are missing something.
  • if you don’t follow the current trend then you are missing something.
  • if you don’t share your ideas/thoughts with other developers then you are missing something.
  • if you don’t work with a better developers then you are missing something

BUT,

to me, you are missing MOST important thing IF you don’t communicate or stay in touch with general USERS who are mainly eating your product! I’m lucky enough to work on some exciting projects in my short career. Most of them had thousands of daily active users. I had chance to stay in touch with those users and communicate with them. Specially when i was in tripperlabs. But poor me, i was such a lazy ass who never took that chance seriously.

And,

I wouldn’t realize this truth until i worked on NoobFeed. I worked on this project for 3 months and i must say that was a great experience for me. I can assure you that it wasn’t my best work but it was one of the best experience in my career!

Why?

because this is such a project that opened my eyes different way and gave me the idea that interactions with the users is one of the most important things for a developer. I would read users feedback everyday, i would reply their queries everyday, i would share my own ideas [which wasn't the same as i would share with a developer] and all these interactions gave me such feelings that i never got from anywhere else before. They would criticize for any mistake and they would appreciate for any kind of good work! This is such an experience that made me thing how important it is for a developer to interact with the users. Because you will get a PURE idea by this about the real environment and you can imagine how your own product going to work in the market.

So what about you?

Let’s Meet Masum Aka Kind Hacker.

May 2nd, 2010

He is known as Kopa masum for creating an annoying virus called “Kopa Virus”. But as a guy he is a wonderful and kind person. Following interview will show it by the way. Masum is working at Trippertlabs as an action script developer. I had a chance to take his interview regarding this virus and what happened later. Let’s follow the interview…

Q : You are known as “Kopa Masum” among your BUET friends, colleagues etc. How does it feel it to be kopa Masum :)
A: Well the name dosn’t sound good, but when somebody says that about me, i feel like yah, i might have done something good! though it was not a good thing for people suffering due to some annoying features of the virus

Q : Was it just for fun…
A : Yah it was just for fun

Q : Did you have fun when you saw the effect?
A : Well initially the effects in my class and university was quite funny, my friends did enjoyed those things too. but when it started to propagate through the country, first in Dhaka and then outside of the country. i was getting impressions of general users that it was very annoying and harmed their work and regular use of the computer. then someday i found it to propagate outside of the country, even in network

Q : Wow, how many computers were infected, any guess?
A : I don’t have any exact count as not every computers infected have internet connections and sometimes it was difficult for me to track where it is going. but as it was traceable, i guess it’s about 1/2 millions

Q : Holy cow!
A : It was spreading like real viruses and it’s growth rate increased day by day before i stopped everything from my control unit hosted in a server

Q : So it was YOU who stopped the virus first?
A : I stopped it for mainly the complain i got from many users that it was really annoying and harmed their daily works. i had no intentions of harming people with my creations. it was made just for fun. so i decided to stop that

Q : Of course not! But then why did you keep the name “Kopa” ? you know lots of friends asked me this question on twitter
A : Well that was the funny story about one of our teachers of buet

Q : Would you like to share
A : We had a teacher in buet i don’t want to spread his name, but students including my friends named him as Mr. Kopa. we all enjoyed his classes due to his funny attitude

Q : I see, so was there any reason behind creating this virus to annoy that teacher?
A : Well before i created the virus, i helped many friends to remove viruses from their pc. i liked to fight against viruses without using any help from the anti viruses. and then i decided to make one which will be different and will not be detected by the anti viruses. so i tried the other way. but doing the rnd helped me a lot in finding some severe security holes in windows xp service pack 2

Q : Would you like to share how technically it worked, or you want to keep it as a secret? :)
A : Sure , it was built using c. i started with a basic windows program with a message loop. then i just created the program such that it runs as a normal program but is invisible but also not a service. windows services needs to have access rights. then running the program in background. i build my own scripting language, which the program was able to compile and run in the infected machine. the script i wrote and saved in my server. all the programs infecting different computers download the script and compile that script. then they know what is the command sent to them by me. they find their job to do for the session the computer is running script was very much customizable and if i wanted to format user’s hard disks i could have done it easily with my scripts written in the server

Q : That’s really scary, i should call you a “Kind hacker”
A: The agents (the virus infecting the pcs) don’t have any harmful codes. so it was difficult for the anti viruses to detect it as a harmful program. all the instructions for it to do was written in a text script file, which is also not understandable by the anti viruses. because the language is defined by me. so i was successful in this case that no anti virus could detect it when i checked with them. and i was feeling like i’m the winner in the battle :p

Q : Does it mean you can create lots of annoying viruses that dont create any harm for computers, as anti-virus can’t detect them?
A: Not really, anti viruses check for many other things. and to make a successful virus u need to behave just like a useful program the user is using :p it could write anywhere, a textfield was enough for it to start writing automatically. for example one of my friend told me that he was chatting with his gf. while the kopa started to chat with her :p and it took some time for my friend to make her understand the fact. two classes in buet were suspended due to this

Q : Ha ha ha ok lets come to latest windows OS…What’s your opinion about Win7 security system
A : Well Microsoft always things about there business. they have the capability to secure, but i think they won’t. vista disappointed us all in terms of security. though bill tried to say that it was more secure than xp. but not actually. win 7 is much better but still is not enough to defend against virus makers. windows is still vulnerable to network attacks and that is the most scary thing

Q : So are you up to any RnD on Win7 security hole? ;)
A : well i can tell you, for now i don’t have any intention to create troubles for general users, and see them cursing me rather if i do something, i might try to help people to secure their systems against these type of attacks. but actually anti viruses can’t do much to secure u. if the user have some knowledge about hoe these things work, then they can protect themselves

Q : Ok, a different question, do you use any anti-virus on your computer?
A : No i don’t

Q : Which OS do you use?
A : I Use xp, i prefer that and Ubuntu is my favorite

Q : Ubuntu is my favorite too, we are at the end of our conversation, do you have anything else to say?
A : Another thing i missed. the security hole was named as “Remote code execution vulnerability” by Microsoft, they released a patch later

Q : You made them work man! Thanks for your time…
A : Thanks a lot for taking my interview

That’s it, I know you might have lot more questions to Masum, he promised me if you ask any questions, he will answer here. So shoot with more questions here :)

Buzz Is Already Successful!

February 15th, 2010

I’m surely going against lots of tech pundits and social media experts by saying this…let me take a long breadth..phew!

You may disagree, and you can definitely debate here. I will put my thoughts here why I think buzz is already successful.

First of all, if you are using buzz you might noticed that you see some people on your list, not idle but sharing some stuff and most of them not even on your twitter/friendfeed or facebook followers list. Interestingly, most of them don’t use twitter/friendfeed even facebook but they are using buzz right? But you know them very well, don’t you? Well, in my case I have noticed around 60% people don’t even have twitter or friendfeed accounts. Interesting eh….So what’s happening here, buzz is bringing new people in this (technically) social world as well as twitter/facebook/friendfeed friends. It’s allowing you to be more public with people you know already. Automatically, I had around 60+ people followed and followed back and I noticed buzz didn’t make any mistake to choose them for my followers list. To me this is one of the biggest success for buzz that it’s bringing new people for me in social world and letting me know what they are up to…

 

 

Buzz - not just status message

Buzz - not just status message

 

 

Now think, people who are using this social tools for the first time, is there any chance they will start switching to twitter and never use buzz again? I don’t think so…so these new users are an asset for buzz, How many users will be like that out of tens of (approximately) millions of gmail users? Even if it’s 25% new social network users come out of it that will be huge thing for buzz. That means buzz is already starting it’s journey with a huge users base.

I have been stopped using friendfeed since the day I got buzz enabled in my gmail, why? Because buzz got the same features with improved ideas and easy sharing facilities. And people I follow on friendfeed are already on my twitter friends list, so I didn’t lose anything there…don’t you think there will be more users from friendfeed to buzz like me? I have already seen lots of people switching to buzz from friendfeed.

Buzz allows you to make your post public or private, though as an user you didn’t have much control over privacy at the beginning but buzz updated their status on privacy and gave more control to users’ hand. Certainly, this going to bring more users to buzz.

It’s certainly not twitter, its better than twitter! You can share almost everything on buzz which you can’t do on twitter. So these need will make users to use buzz, no? And why not when you want to share the things from google itself?

It’s in the browser! You don’t have to start another application or you don’t have to open another tab on your browser to use it. You don’t even have to sign in to use it…isn’t it cool? No worries about what platform you are using….i know Desktop client like Seesmic and TweetDeck will integrate buzz soon but buzz web client itself is already a good one, no doubt about it.

You have inbox integration, you can email any content to anyone like you use gmail with the same interface. You can read all comments in your gmail and reply them from right there…cool eh…

Last but not the list, it’s Google dude. There will be less chance to see buzz is down like twitter ;)

I know I’m just talking about all these positive things of buzz, well that’s all I think and I know there are some negative things of buzz as well. Like if we think it as a twitter, then we will see some features are missing. We will see how buzz comes up with their updates in near future. But to me, buzz is already successful. What do you think? Let me hear you…

Dear Brac Bank Internet Service, You Suck!

December 6th, 2009

Really pissed off at Brac Bank internet banking service. I have been using it for last 1 year to see my transaction, debit, credit etc. Link that they gave me to log in, wasn’t even with a domain name. But anyways, that’s not my headache. I’m happy as long as I get the proper information that I registered for.

Few days back, I tried to log in to see my transaction and stuff and it said site is down or moved to a new address.

Site was moved in a new address

Site was moved in a new address

I tried it after 2 days again, but no information regarding the change. Shouldn’t have the informed me that they moved to a new location? Don’t I deserve it as their customer? So I sent an email to their IT dep and asked about it, they replied saying …

“….This requires a higher level of security for our systems and processes. Therefore, we are asking all previous I-banking subscribers to register once again to ensure that the new security standards are maintained.

after reading this, first thing came in my mind was like “WTF”, why the hell I have to register or fill up a form again? Don’t you already have my all information. I have never seen this kind of service before from any site!

But what could I do, I went to Brack Bank and registered for it again. And today they sent me a new link and log in information to use the internet banking service. I was happy yay! But hey, when I went to log in from the actual link it says “This site only supports Internet Explorer”! What?!? I don’t use IE and when I have to use I use it in VB XP. Do you think I should login to XP just to use your service dear BB?

Sorry i dont use IE for browsing...

Sorry i dont use IE for browsing...

I’m sorry, but this is complete bullshit. Don’t Firefox and Chrome have Anti-fishing capability? Or .NET framework (site is developed on .NET) always asks you to restrict users with IE?

I don’t know what option I should choose now. But Brac Bank should be careful about their customer serive. Till now it sucks!

Javascript: Object Detection or Browser Detection?

November 21st, 2009

This question can be answered easily with “object detection” – why? Because some obscure browsers won’t be treated correctly and browsers that appear after you’ve written the page may not be adequately covered either as a result you will end up with some error in some browsers. Object detection works fairly in all browsers.

But, certain features of Javascript don’t work in all browsers. As an example “innerText” property doesn’t work in Firefox but in IE, Chrome Etc…this problem could be solved easily like the following ..

var text = x.innerText || x.textContent
//innerText for IE or other browsers and textContent for Firefox that works well.

Now, consider the following statement

Google Chrome doesn’t read encoding information that’s declared with document.write(). If you’re using this method to declare encoding in iframes, for example, you may see garbled characters when the iframe is rendered. Instead of:

document.write("<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">");
    ... other JavaScript code ...
</meta>

and when it might arrived? Let’s say you are using a Rich Text Editor where you will have onload events with document.write() and you will notice that iframe attribute (e.g name) value is not getting in the browser. Rather Chrome is setting name attrribute value from itself.

There is a tricky way to get it solved, in my case I used Firebug extension to get the attribute value and then detect the browser. Well in that case object detection doesn’t work for me. I must use browser detection right.

Let’s have a look at the following codes to get some idea about what I have been talking…

function notEmpty(){
 
        var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
        var textvalue = '';
        var framename = '';
        var elementValue = ''; 
 
        if(is_chrome) {
            elementValue = window.frames['Rich text editor'].document.body.innerText;
        }
        else if(navigator.appName =="Microsoft Internet Explorer") {
            elementValue = window.frames['myIframe'].document.body.innterText;
        }
        else {
            elementValue = window.frames['myIframe'].document.body.textContent;
        }
 
        if(elementValue =='')
        {
            //do what you want
            return false;
        }    
        return true;
    }

Conclution: It depends, generally it’s always good to use object detection no doubt. But when you have no option? Well then don’t wait to use browser detection eh… ;)

Get Adobe Flash playerPlugin by wpburn.com wordpress themes