Friday, December 31, 2010

Remington Sps Varmint Vs Tikka

Mail-it: do you speak Python?


La cosa più difficile per un Programmatore è “parlare” un linguaggio different. The most challenging thing is to know how to say "speak" many languages \u200b\u200b(no matter if you have the linguistic dexterity of a coconut seller apprentice). But the only smart thing for a program and choose a language based on the context, well, do not believe that it is rare to hear a programmer Italian speaking German while on holidays in the Red Sea?



In my life as a programmer I can say Multilingual: Basic, Visual Basic, Assembler, C, C + +, Visual C, ASP, PHP, HTML, CSS, Bash, SQL, and various dialects, but I have a tendency to spin everything to chew slop incomprehensible and computer "not working". And then, of Strong Computer Guru, I can help my selective memory, deprecated and low that early makes me forget all the other languages. Well

from inevitable smart programmer I have not seen fit to speak in German, but to learn to speak the "Mar Rossonese" for my future vacation I do not know when I can do!
Metaphors aside, I decided to learn a new language for the creation of a "banal desktop program" for Linux. The choice of language has slipped up Python.


Mail-it: a tender heart, born from the "Hello World"

Programmer rude learn a new language without manuals, without inquiry and without a flow sheet, as it is a necessity that stimulates a need that pushes the programmer to write software in the language in which you want to head, sooner or later, learn, or at least this was my curriculum.

The need
A colleague of mine spent a few hours a month to take pictures, open GIMP to reduce the required size and crop them, save them in JPEG optimization for the web, open an HTML document with complex Kate , find the point where to write the news, write, being careful not to damage the code layout and formatting of copying and pasting him loosely packed (HTML tags), open the file with a web browser, IceWeasel to verify all the mistakes he made without being able to see the images that are still on your local disk, open an obscure FTP client, Filezilla , to upload the HTML document and all images in the right folder, make sure the online version of functions and, finally, open Icedove and copy the HTML document to send the sweaty newsmail to a mailing list.

solution
From fervent Programmer I thought it was time to streamline those routine, and potentially dangerous operations creandogli interface to automate some processes to do his job to concentrate solely on his real task: to write the news!
Solutions as PHPlist focus primarily on the mechanism of sending the mailing, while my colleague was mainly used a guide to help him load properly, and occasionally the news and images within a HTML template (crafted by a specialist) to compose a newsmail.
And, working out, upload online publication and send the mailing.

Creating
Python I learned watching the Net code examples, the famous "Hello World . Peeps peeps here and there, the code is stacked in a functional form of the program. Software to version 0.9 sees his release under the GPL license on SourceForge under the name of Mail-it . Now my colleague

looming on the horizon .. save many hours of work that could easily invest in lavish and generous enough to offer me coffee while I cradle with moisturizing compliments. Here is a screenshot

:




Well, now I can say I speak as an apprentice pynthonese coconut seller on those beaches of the Red Sea where my colleague will spend his holidays at my face. Enjoy
Python


PS: But my colleague, who is packing his bags, he does not know that I have not yet created a module to manage the sending of newsmail ;-)


For More Information, download, use and implement mail.it: -mail it.sourceforge.net

If anyone would like to report bugs or contribute to the development and / or improve the translation (it is now only in Italian and English) ... write (somewhere there should be my email address)

If someone wants to create a logo nicer than what I Oxygen icons from the cloning can send their contributions in formato SVG

Se qualcuno volesse offrirmi un caffè... beh, mi venga a trovare, qui ci sono dei validi bar ;-)

Wednesday, December 15, 2010

Grannies In High Heels

Un'installazione di ordinaria follia: Internet Explorer 6.0 per Linux


Ci sono cose nella vita che vanno ben oltre il traffico in tangenziale; una di queste è la necessità di far funzionare un obsoleto software proprietario su un sistema operativo fuori dal suo raggio di azione.


Il perché di questa necessità anacronistica bisognerebbe chiederlo a quei Programmatori che hanno creato soluzioni informatiche accessibili unicamente da un browser proprietario, limitato ed esclusivo a un solo sistema operativo e assolutamente non conforme agli standard.

Se you do not want to hurt and you can overcome the obstacles of those programmers obsolete, I urge you not continue reading, remembering that there are many web browsers for Linux (and not), here is a range of activities:




The wrong solution

If you have not stopped a uno dei link sopra citati significa che siete disperatamente schiacciati dal potere di vecchie soluzioni gestite da ottusi amministratori incompetenti; a tal demerito accetto la vostra compagnia in questo cammino lungo una selva oscura * .


Se cercate in Internet una soluzione per installare Internet Explorer 6.0 sotto Linux, troverete sicuramente la soluzione che ci ha guidato per anni: IE4Linux .
Purtroppo non si sono più visti aggiornamenti dal 2008 e, anche se l'installazione va a buon fine, capita che un demone, wineserver , impazzisce bruciando tutte le risorse della CPU e obbligandoci infine a riavviare la macchina ** .

Qualora si chiedessero explanations for this anomaly the programmers Wine engine that makes this black magic, you get the right answer but insipita:
"IE4Linux is not a solution supported by Wine"

The wrong solution and running after

the arms of Morpheus I was close (troppo!) all night, in the morning, aching like a wool sweater spun, I find the way "right": winetricks .


Here the monster running on my Linux desktop KDE:


With a pang, I will explain the installation
Notes: Tested on Debian Squeeze (both 32bit and 64 bit)

As root you have to add the following repository to install the latest version of wine.
repositoruy Open the file with your favorite editor (I use VI, you do as you please):
> vi / etc / apt / sources.list

Add the following lines: # wine

http://wine.sourceforge.net/apt/ deb binary /

Then install the following packages
> aptitude install wine cabextract libxxf86dga1 libxxf86vm1

Only for 64-bit systems you must also install the following package:
> aptitude install-lib32nss mDNS

Then login as normal user will use the application and the home run the following commands:

IMPORTANT: Give programs ( System-> Configure Wine ) Wine run configuration tab and click on Drive Automatically detect . Save and exit.

# download the latest version of the script winetricks
> wget http://www.kegel.com/wine/winetricks
# check the attributes of the script execution
> chmod + x winetricks
# proceed with the installation of Internet Explorer 6 (you can also install other version of the familiar browser ... see the documentation for the site )
> sh winetricks ie6_full


After the operation can proceed with the ' installing the Flash Player browser plugin:
> winetricks sh flash

Finally, launch Internet Explorer 6 to run the command:
> wine c: \\ \\ Program Files \\ \\ Internet \\ Explorer \\ \\ IEXPLORE.EXE


If you do not work are three cases:

  1. you are among those who copy and paste commands without reading carefully
  2. Qualcuno da lassù vi sta guardando e vi vuol guidare sulla via corretta (lascia perdere IE6)
  3. ritenta tutti i passaggi: forse sarai tra gli sfortunati che vedranno la schermata di accettazione della licenza di Microsoft Internet Explorer






Note:
* Il riferimento (per chi ha letto Dante) lascia intendere la destinazione ultima dell'installazione
** quella in garage, per andare a farci un giro lontano dal computer e nel traffico della città per maledirci della nostra stoltezza: Internet Explorer 6 sotto Linux ….brrr!!