Detecting errors on flight with emacs

The “classic” editors like Emacs and VIM may seem a far surpased thing when nowadays IDEs like NetBeans or Eclipse can detect errors on the code without having to wait to manually compile it to find them (even though this happens mostly with Java, for some strange reason...), nev­er­the­less the modularity of these editors allows to do this fairly simply.

Emacs includes by defaun a “minor-mode” named flymake which allows to do this but some con­fig­u­ra­tions may be needed depending on the language, the Emacs wiki describes how to do i for a number of languages.

But, what if the language is not supported, like Flex or assembler? The solution continue.

Detecting a texts language

Sometimes may be useful to detect a text language, *NIX systems usually have a directory containing the mostly used words of various languages, simply comparing the numbers yielded from checking which words of the text appear there seem to give a sig­ni­fica­tive number regarding which language the text is written in.

continue.

Resolving names with Tor

The DNS protocol has some time, the RFC which define it, 1034 (concepts and facilities) and 1035 (im­ple­men­ta­tion and spec­i­fi­ca­tion) are from 1987 and like in all the protocols of that time, security in the co­mu­ni­ca­tion wasn't a priority, anyone sniffing the network can see which domains visit everyone, let alone the providers of the DNS service, but it has little solution in the short run, Internet depends on this name sistem and there isn't another better with the required in­fra­struc­ture, right?

Well, it seems that the Tor SOCKS proxy interface offers a non standard option (point 2) which allows to use this network to resolve names, this func­tion­al­i­ty can continue.

scripting a torrent tracker with twisted

Some weeks ago I knew about Twisted, a asyn­chro­nous networking library... something like to node.js for python.

Among a lot of protocols (including SSH, client and server) it suports, of course, HTTP, which allows us to get a dinamic web server running without con­fig­ur­ing any apache, nginx or something like that, just doing

pip install twisted

And what web ap­pli­ca­tion can be built fast on a web server? a Bittorrent tracker!

continue.
Previous » « Next