Thursday, September 04, 2008

Firefox bugged with caption tag

I discovered this bug after install Google Chrome Beta 2. The label <caption> in Firefox is placed outside of Table, but <caption> is a subelement of <table>.

How I discovered this bug?

If I set a margin-top and margin-bottom for a <table> with <caption>, among them there will be a space, which is the margin of the table. This problem will not be introduced in other browsers such as Internet Explorer 7, Opera and Google Chrome Beta 2.

Resource

Friday, July 11, 2008

img.onload Error with Internet Explorer

The following javascript codes doesn't work in IE when loading a second time:

var i = new Image(); i.src = "image address"; i.onload = function() { /* function */ }

Solved by Codetrinis:

This problem is because the second time that loads the image is read from the cache, therefore is loaded complete before reaching img.onload. The solution is as follows:

var i = new Image(); i.onload = function() { /* function */ } i.src = "image address"

Saturday, May 31, 2008

How to make Gmail open the mailto link in Firefox

Firefox 3 have a very useful feature, which allows users to decide how to handle certain protocol, for example, we can specify use Gmail to open the mailto link. But the options in Firefox only Yahoo! Mail can be elected, how can do it?

First, in the address bar type "about:config", and then in the top of the "filters" enter "gecko.handlerService.allowRegisterFromDifferentHost".

Then in the screen should only see one information, double click under it and let it become a value from the false to true.

If you use the Gmail, please copy under the code to address bar and press "Enter" key.

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail");

If you use the Google Apps (such as CGT World mail), please copy under the code to address bar and press "Enter" key. We should remember replace the "example.com" with your mailbox domain name (CGT World mail as an example, is replaced cgtworld.com).

javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s","GMail")

Press the "Enter" key will be to see Firefox after asking if you set to handle mailto Links Gmail applications, we certainly have to press the "New application" button.

Sunday, February 24, 2008

Problem with Router

Today I repared 2 problems on the Internet connection.

First, the problem was, when I shared the internet connection type PPPoE by a router, could only access some Web sites, such as Google, but can not be accessed elsewhere. This problem was resolved by the end modifying the value MTU of the router to 1480 (default 1498).

Then came another problem, some computers have speed of 2.4 mbps that is normal, and others are accessed by only 1.2 mbps, half of the connection. This problem was resolved modifying the value of the TTL, 64 to 128.

Saturday, May 19, 2007

About fotos_posse.zip malware

Today, I can see a lot of people have a HEUR/Malware infected, so I will publish some information about this malware and how can clear it.

Information

This malware is a Visual Basic project, made by a user named Fire Angel. The user is using operation system Microsoft Windows XP in Spanish, has registed a site in lycos.es (already deleted).

The malware is copied to "C:\fotos_posse.zip", "C:\server.exe" and "C:\WINDOWS\System32\sp2.exe"

That create 2 key in register:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\WindowsSp2

How can I clear the virus? (OS in Spanish)

You only need to download this "antimalware": 3Cv2.zip

Or clear it manual:

First, open "Inicio" -> "Ejecutar", type "cmd".

In the "black window" type that:

@ECHO OFF @ECHO @ECHO OFF > C:\AUTOEXEC.BAT @ECHO @ECHO CODETRINIS COMPUTER CENTER >> C:\AUTOEXEC.BAT @ECHO @DEL C:\fotos_posse.zip /F /Q >> C:\AUTOEXEC.BAT @ECHO @DEL C:\server.exe /F /Q >> C:\AUTOEXEC.BAT @ECHO @DEL C:\WINDOWS\System32\sp2.exe /F /Q >> C:\AUTOEXEC.BAT @ECHO @REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskmgr /f >> C:\AUTOEXEC.BAT @ECHO @REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f >> C:\AUTOEXEC.BAT @ECHO @DELETE C:\AUTOEXEC.BAT >> C:\AUTOEXEC.BAT @ECHO @ECHO OFF > C:\3C.BAT @ECHO @ECHO CODETRINIS COMPUTER CENTER >> C:\3C.BAT @ECHO @DEL C:\fotos_posse.zip /F /Q >> C:\3C.BAT @ECHO @DEL C:\server.exe /F /Q >> C:\3C.BAT @ECHO @DEL C:\WINDOWS\System32\sp2.exe /F /Q >> C:\3C.BAT @ECHO @REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskmgr /f >> C:\3C.BAT @ECHO @REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f >> C:\3C.BAT @ECHO @DELETE C:\3C.BAT >> C:\3C.BAT @REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v 3CProj /d C:\3C.BAT @ATTRIB C:\3C.BAT +S +H

In finish, restart your computer and all clear.

Saturday, March 17, 2007

Test my IQ again

My IQ Point

My IQ Point

Today I was bored, so let my mother do the IQ test, and then I was tested my IQ again: above 145 point!

I think I already have the correct answers, but the page say that is not available to published, so I don't will published the correct answers, you can publish your point here with comment.

Tuesday, March 13, 2007

Test your IQ

My IQ Point

My IQ Point

Today I was tested my IQ: 133 point!

You can test your IQ in: http://www.iqtest.dk/