chuso.net

Fighting Firefox password reminder

The situation is as follows: a website which, after logging in with a username and a password, allows you to register new users and a Mozilla Firefox user with the option to remember passwords enabled.

The case: the user adds a new account or logs in with an account and then edits this account from another account.

The problem: When the user is adding the new account Firefox will fill the fields with the user and password of the current account. When the user is editing an existing account Firefox will fill the fields with the username and password from the account being edited —which is also in the password reminder— if the user is not editing the account with the intent to change its password will not notice that only the first of the two fields "Password" and "Repeat password" is filled, so when the user tries to save it will display "Passwords don't match" error.


Linux kernel module that allows you to set events on pressed keys

As a probe of the use of kprobes for Extension of Operating Systems I have made a Linux module that allows you to execute a command for every pressed key and see its keycode.

It includes some sample scripts that can be used as the command to be executed on every key pressed, these scripts are:

  • keylogger

    Registers every pressed key in a file.

  • printscr

    If framebuffer is enabled it allows doing a console screenshot using print screen key.


Portage sound notifications

The context: you run emerge with --ask parameter and, since it can take some time to calculate dependencies, you do some other thing. After a while, when you've forgotten it, you discover that emerge have ended calculating dependencies time ago and it's waiting for your confirmation when it could be already done. Has this ever happened to you? Me too. This is why I added sound notifications to some Portage events.


George Parr explains financial crisis


D Crepes Maker

Fonzu @ work.

Chuso Gentoo Overlay

The fact is that, with ebuilds for new packages that I submitted to Bugzilla, the ones I modified with patches of my interest, those removed from Portage, some I made for my scripts and others, I collected a few ebuilds now I compile and release in an overlay for Portage.

Some of the included packages are:

In order to see the full list of packages and installation instructions visit the project web page.


Looking for modified files in Gentoo packages

Did you know that teTeX development was abandoned more than two years ago? And it's recommended to migrate to TeX Live. When I was doing so by reading the Gentoo Linux guide I found that it says: if you have modified configuration files under /etc/texmf.... How will I know that? I modified many configuration files and I can't remember which ones I've modified. I thought about using equery to check that, but I only know the command to check all the files in a package, not a single file, so I thought that it would be easier to do my own script than to read the whole equery man page. So here it is, the script that checks if certain files in a package were modified:


RapidShare premium download with Opera

I must blame Fonso again, because he asks me about something like FlashGot but for Opera in Linux, i.e., a way to be able to select a block of RapidShare URLs to download them with a premium account with a download manager. So when I didn't find anything, I started with it.

I finally got a bash script that receives a list of links as parameters and adds them to Aria with a RapidShare premium account. Using aria was not a choice, since it was the only one, apart from wget, that supports RapidShare premium accounts (i.e., HTTP authentication) without problems.


Advertising creativity

OK, I can't boast about my creativity since it tends to zero, but this why I'm not a publicist.


Looking for the perfect hosting

This is a post that was in my ToDo list 'cause I said I will leave SDF-eu to be hosted at HyperPHP because I've read they offer free PHP and MySQL without advertisements. And according to my latest comment, it seems that I was satisfied with that server, but the story didn't finish yet. This server does include banners and pop-ups in hosted pages, but I didn't notice because I had blocked their advertisements.