Syndicate content

Attack by ZmEu

Who is ZmEu?

An image showing ZmeuThe name Zmeu (no capital E) is the name of a fantastic creature of Romania. There are so many stories that there isn't a clear understanding of what it is... but it is human like, can spit fire and wants to marry young women.

If you're wondering, it is generally a bad guy.

ZmEu Attack

Today, I noticed a lot of traffic on one of my servers. Looking into what was happening, I immediately found out that an attacker was looking for a loophole in that system. That attack was being performed from China.

HP Printer options not offering "Color: Off" option anymore

As I upgraded to Ubuntu 13.10, I noticed that I lost the option to turn off the color when printing.

Looking around all the available options, no one to make it black and white (although the old option was saying something like: Color: Off; it was somewhat weird.)

Now that option is completely gone. There is no way for me to turn off my HP Printer color when I am in Acrobate or LibreOffice. I searched on the Internet to see whether that was just HP trying to get you to use colors on your printer or whether the option was available... somewhere else.

Indeed, I had to go to the System ...

My JavaScript code does not get the correct widget size, why?

As I am developing a set of pages for a customer, I ran in an intersting problem: my JavaScript function could not properly define the sizes of a box.

That box is heavily tweaked with the CSS assigned to it, as well as all of its neighbors. So I thought that may have something to do with it.

What I hadn't realized so far is that the ready() function of jQuery() is called once the script that includes it is ready (as in loaded) and not once the document as a whole is ready (done loading, i.e. onload event.)

With that knowledge it was easy to understand that I was actually finding myself ...

RJ45 and crossover cable

I got a cross over CAT6 cable and somehow the computers on which I used it do not like it... So I thought maybe it was not a valid crossover cable. Searching on the net I found a page with the following images which gave me the answer. You have to look for the colors of the wires in the RJ45. It's not very easy to see, but it is different enough (assuming you see colors...) that you should be able to tell exactly.

The easiest is simply to look for the "red" (orange) cable. If it is close to the edge in one RJ45 and far from the edge on the other, then you have a crossover ...

SANE cannot find any scanners

As I upgrade to 13.10 of Ubuntu, I'm having to do work to get my system back to normal...

Today I stumble on the fact that USB ports are now not accessible by everyone by default. So when I tried to scan a document, it told me that I had no scanner. Panic... and then I found out that the permissions were changed, widely, so only users who are root (by default) can access the scanner.

I changed the group to a group I'm in and it worked without having to reboot or relog in. However, it is not unlikely that the group won't stick... TBD!

To find the USB port that has your scanner, ...

Setting tag attributes in a dynamic way in XSLT with XQuery

I wanted to dynamically manage the attributes of the HTML tag. As I'm working on the Snap! C++ system, I thought that should be done with the standard XSLT feature: <xsl:attribute-set name="...">. Unfortunately the the XQuery implementation does not currently support such, at all.

There is a way, though, to still make it work with a central template definition which can be used to decide what should be and what should not be added to the HTML tag.  Especially, in this way we can make use of one template that is a system defined template. This being said, if you use ...

Console color: dark blue on black unreadable

As I work in consoles every now and then, I run in that one problem:

Some text is written in Dark Blue over the Black background:

This is a good example of what I'm talking about.

And if you can read that text, wow! (without selecting it first.

So... how could you change the color of that blue to make it readable? There is a way by sending some escape command to the console:

echo -e "\\e]R\\e]PC6495ed"

That command changes the color of the blue to a light blue (somewhat "cyan", although not light cyan.)

The "\\e]R" part is to reset the colors to ...

Using non-default private key for Launchpad

As I was looking around for the way to specify the correct key for launchpad, I could not find it. Luckily the ssh process is running when it asks for the passphrase so I could see the URL used to access the launchpad server from Bazaar. It is:

bazaar.launchpad.net

The address is not visible by default because you use the lp: protocol instead of a full URI to access launchpad.

  Host bazaar.launchpad.net
    HostName bazaar.launchpad.net
    User <your launchpad username>
    PasswordAuthentication no
    HostbasedAuthentication no
    IdentitiesOnly yes
    IdentityFile ...

Classes in JavaScript (from complex objects to proper classes)

When creating objects (commonly called JavaScript classes) in your JavaScript code, you want to use the prototype. This is the only clean way of doing it. In JavaScript, you can create objects on the fly, but those are not considered safe.

Quick and Dirty

The quick way is to create an object directly. This works, but it has potential problems with used against a powerful optimized such as the Google Closure Compiler.

All the Quick and Dirty examples can make use of this in their myFunc examples. However, the closure compiler will warning about all of them because it doesn't know for ...

Large scale Linux console

As I am working on our Snap! C++ CMS, I created a set of virtual systems to test the compilation on "clean" system (yeah! my main computers has all sorts of things that I don't even know about...)

In those virtual system, I only install the basic server and then do a sudo apt-get install of anything else the server needs to get compiled. This includes libraries such as libmagic, boost, and Qt and some tools like xmllint. This is pretty cool, but when working in a console, and that console is very small, it makes it a bit difficult, so I looked into making it big.

For this ...

Syndicate content