unix
Bash support tcp connection out of the box :) So you can write something like #!/bin/bash webhost="gioorgi.com" exec 5<>/dev/tcp/$webhost/80 echo -e "GET / HTTP/1.1\r\nHost: $webhost\r\nContent-Length: 0\r\n\r" >&5 # get reply: HTTP/1.1 301 Moved Permanently^M cat <&5
Evolution of Service Architecture
Assembly: the only way In principle there was only one: assembly machine language. Hardware and software engineer was a one-role. The guy who was able to project a chip, was the one who was able to program it. Then Fortan (1957), the first high level language compiler was created. C the write once of ’70 …
dos2unix for poor basic unix
Do you have cygwin base install right? So no dos2unix…you can convert a windows file to unix format with a small tr command like tr -d '\15\32' < winfile.txt > unixfile.txt I prefer the awk way of life: [bash] awk ‘{ sub("\r$", ""); print }’ winfile.txt > unixfile.txt awk ‘sub("$", "\r")’ unixfile.txt > winfile.txt [/bash] …
RaspberryPi 2 Model B SD Life Extender
“The most dangerous phrase in the language is, We’ve always done it this way” – Grace Hopper I am a very happy owner of a RaspberryPi Model B 2, a quad core ARMv7 computation unit for a price between 45 and 35 €. If you plug only a network cable it can be powered by …
Debian perfect work environment
Working in a big company, my work laptop came with MS-Windows7 Enterprise installed. But as you imagine, Unix is my preferred desktop environment. So let’s how to configure a perfect Debian Linux for a old wolf consultant like me. You will be able to install commercial software mubmo jumbo like Oracle Express and IBM Websphere …
Bash secret powers
Bash scripting has evolved a lot in the last ten years. I get used to relay on bash for all normal “data domination” tasks (like file system refactorings, database extraction and reporting and so on) and switching to python/ruby/perl when the complexity gets bigger. I didn’t imagine bash is even more powerful :) This article …
Fare il cloud da zero: cloudStorm
A Gioorgi.com ci siamo già occupati di argomenti prettamente sistemistici come la virtualizzazione di ambienti Unix. Visto il successo del Cloud Computing, abbiamo pensato di tornare sull’argomento. In questo articolo mostrerò come creare insieme di macchine configurate in modo omogeno, con il minor effort sistemistico possibile. Si tratta di un primo esercizio molto semplice. Seguiteci…
Dos to unix in emacs
To convert an Emacs buffer from DOS line endings to Unix, type C-x [ENTER] f unix [ENTER].
quicklook – Project Hosting on Google Code
Quick Look is a package to collect system statistics and output pretty graphics and (X)HTML pages. It allows system administrators to have a quick look on the status of their systems, without going for a more advanced (and heavier) solution. Quick Look currently shows… CPU and memory usage Load average and process spawning rates I/O …
Java HttpClient and Load Balancer bad interactions
Working for a very big customer, I found a very nasty interaction between Sun HttpClient (JDK 1.4) and Http Load Balancers. In a complex network environment, sometimes you can experience low level TCP/IP comunication errors, because sometimes HttpClient get confused and hangs. The bad behavior of Sun HttpClient is well known: some guys suggested me …
Java HttpClient and Load Balancer bad interactions Read More »
A very good hosting provider
After my past experience with bad hosting provider, I am happy to say I have find a very good hosting service. If you need VPS hosting, Rimuhosting is a very good choice. After about two years with Rimuhosting, I can summarize their feature here: They have a very good entry-price for a virtual hosting System …
Dynamic languages troubles
I have read http://www.manageability.org/blog/stuff/chandler-failure and I think it is very danger way of exposing concepts.
In the article pointed out, the quite dead Chandler project is compared to the multi-billion Eclipse project. And then a too easy analysis is done against dynamic languages, where Java is the absolute winner.
I will try to fix some of the things said there, and to add also my two cents here :)
better unix life2
If you need to work on cluster, is nice to have syncronized terminals to send the same commands in parallel. Is it also doungerous, so do some test before sending a bunch of vi commands! On Unix, a cheap and fast solution is Kde “konsole” which has such option. Look under “View/Send input to all Sessions” …
Better unix life: mass replace and xargs
Some unix tips and tricks for an easy life