Thursday, June 4, 2009

Yahoo messenger error : 81003004

Few days ago i experienced an interesting thing. Its about yahoo messenger and internet explorer . I like yahoo messenger and use it a lot and i have completely opposite feelings about internet explorer. I hardly use it and to be true i hate it.But unfortunately i found somewhere they are related to each other very much.Recently i have found another relation while i was trying to find solution of an strange error , yes it was error number 81003004.

People who use Yahoo Messenger , error:81003004 is not that much rare to them , often it pops up whenever there is a connection problem.And usually people try to reconnect to internet or if the connection is good enough then they double check the username and password . And i tried it too but in my case connection was pretty good , i could browse but i could not connect to YM, it was popping up the same message all the time , i thought my password is hacked and i felt so bad cause i have everything .. almost everything in the inbox , so immediately i logged in to the mail box and surprise!! i could enter . So my password was ok but YM, even though an active connection is there , it couldnot log me in . As i told earlier i am not an internet explorer fan so i was using Firefox all these time ,now i thought of browsing using internet explorer cause i know that ie and Yahoo messenger are related very much . And i was surprised again cause i was not able to browse using ie. And the reason is so simple that my ie has the work offline checked under file menu and when i unchecked it i could log in using yahoo messenger .

Then i found more activities between this two. I was looking for more information about the solution i have just found out and i found many nice blogs about it but i could not find even a single one which can give me a clear idea about what was happening and how i had solved it . I was surprised why my YM was not going for my default browser's (firefox) connection instead IE ? Then i come to find another trick to solve the error:81003004 that is using the "Connectoin Preferrence" in the Messenger Menu of Yahoo Messenger itself .By default it "Connect Directly to internet" is activated and in case of error:81003004 it has to be changed to "Connect Via Proxy Server" . Interesting part again while applying this new setting changes , the "work offline" menu setting of the internet explorer is also changed but the default browser (firefox in my case) is not affect at all.

Previously there was a problem that if you have clicked any links in yahoo messenger ,it was always opened with ie , whatever your default browser is . Now that problem is solved but still Yahoo Messenger is , in many cases , very much dependent on IE , If you wanna make a Firefox and YM lover's life hell just check the work offline menu of his IE and see what happens :D.

Monday, May 18, 2009

Registration Point Details(AS 3)

Registration Point is the (0,0) point of any display object . All the scaling , rotation etc take place with respect to this point . So its very much important to get a clear idea about registration point for any Action Script Developer. Sometimes when working with Action Script i faced several problems and recover them . Here i have tried to share my findings.

As i said earlier Registration point is the (0,0) point of any display object , so how to set it ? If the display object is not dynamically created then its a matter of dragging and dropping only. But if the display object is dynamically created then its a matter of calculation and planning.

Say you have to make a display object that is actually a rectangle that scales with respect to its center and you need it all dynamically . Here two points to be considered one Registration point is the point at (0,0) so to scale the object with respect to the center the rectangle should be drawn such way so the (0,0) point becomes the center of the rectangle so the display object scales or rotates around it .

But for complex display object or due to any other reason the Registration point may needed to be adjusted in many operations with many values . To do this only four steps are enough:
  1. get the value of the changed registration point with respect to the object where the display object under consideration is added .
  2. run the operation , rotate , scale
  3. get the value of the changed registration point with respect to the object where the display object under consideration is added after the operatoin .
  4. calculate the difference of the two points and minimize them in the x and y value of the display object
so a function like,

function doOperationRegChanged(op:String, val:Number,xreg:Number, yreg:Number):void {
var nrp:Point=new Point(xreg, yreg);
var bop:Point = this.parent.globalToLocal(this.localToGlobal(nrp));
this[op] = val;
var :Point = this.parent.globalToLocal(this.localToGlobal(nrp));
this.x -= b.x - a.x;
this.y -= b.y - a.y;
}
under a display object for which different registration point needed for different operation can be handled by calling
mc.doOperationRegChanged('scaleX',scaleX+1,-74,-22);
where mc is the display object.

For action script 3 i have found a blog from which i have found this idea , to know more about it click here .



Sound Sleep Really Helps!!!

I had a very busy Sunday and when i got back home at night i was having fever and headache . Somehow i managed to have shower and got my dinner and few sleeping pills . And i slept well, not a sound sleep though , i wont tell it sound sleep cause i was up in couple of occasions and in the morning when i was up finally nothing was changed , i was still having that bad headache so i called my office to grant me a day off and decided to sleep again. So i slept and this time when i woke up it was noon and i cant imagine how time ran that first!! Cause it seemed to me i just slept for 5 seconds and a bonus is that my headache was completely gone .

Being a webdeveloper and facing tough deadline sound sleep , to me, is a very rare thing !! But at least there are some times when i can have it and the most important part is after having that sort of sound sleep i felt very fresh to pass sometimes with blogs and cant resist to post something about the sound sleep .