Mac OSX on a NetBook
April 21st, 2010Here is a comprehensive guide on how to successfully install Mac OSX on various models of Netbooks
Enjoy,
Rob.
![]() |
![]() |
|
Roberto Rocco AngeloniMy technical blog
Mac OSX on a NetBookApril 21st, 2010Here is a comprehensive guide on how to successfully install Mac OSX on various models of Netbooks Enjoy, [Off topic] Iceland volcanoApril 20th, 2010A webcam on the Iceland volcano: http://e3b4e99b.zxxo.net Executing an external program in Python…November 19th, 2008There are several ways of executing an external program from Python, but I had After a while I came to the following solution: import os # Executing a shell command mycmd = "python mycode.py" child_stdin, child_stdout, child_stderr = os.popen3(mycmd) # Reading the output streams my_output = child_stdout.read() my_error = child_stderr.read() print "my_output:", my_output print "my_error:", my_error Enjoy, Hardened PHPOctober 10th, 2008In a (SUSE) server I’ve got this error message. ALERT - configured request variable limit exceeded - dropped variable 'XXXX' (attacker 'XX.XX.XX.XX', file 'XXX'), referer: XXX It looks like it has the “Suhosin Extension” of the Hardened-PHP Project. So I configured the following variables in my .htaccess file: php_value suhosin.get.max_vars 500 php_value suhosin.request.max_vars 500 php_value suhosin.post.max_vars 500 and everything worked fine again. Enjoy, ObjectiveC on Ubuntu LinuxAugust 7th, 2008Hi, First, I’ve downloaded all the packages for ObjectiveC and GNUstep I’ve found on Synaptic. Second, I’ve tried to compile a classical Hello World file with gcc. Here’s the code (’Ciao mondo’ stands for ‘Hello world’ in Italian): #import and i saved the source in a file called main.m After that I’ve tried: gcc main.c -o hello and I soon got the following error message: main.m:2:34: error: Foundation/Foundation.h: No such file or directory main.m: In function ‘main’: main.m:5: error: cannot find interface declaration for ‘NXConstantString’ Converting SVG -> PNG with transparent backgroundsJuly 29th, 2008I’ve tried to convert an SVG image with transparent background to a PNG using the Image Magick’s convert command line tool. The result was an image with a white filled background. After struggling with Yahoo search for about half an hour, I came across to this simple and useful tip: convert -background none folder.svg folder.png That’s it! No more white background Enjoy Web DevelopmentJuly 3rd, 2008
Enjoy, PyQt4 TutorialJune 26th, 2008PyQt4 is the wrapper for Trolltech’s Qt4 libraries. On the riverbank site you can find the sources and the windows binary; ubuntu seems to ship the binary on the official release, simply look for pyqt in synaptic. Here is a good PyQt4 tutorial: zetcode And here another good in Italian: un tutorial facile facile Anybody knows about the binary on mac? I’ve found something on finkproject: anybody tested it? Regards, Scripting Second MessengerJune 13th, 2008I’m extending the Second Messenger by adding scripting capabilities. I already have embedded a python engine in it and I’m working on a wrapper of the client object (I can’t give you all the power, sorry ;-). I’m currently struggling with architectural issues and I hope to have a public version soon… …maybe so soon that will have at first the ability to automatically answer to ScriptDialog messages. What for? Many camping chairs prompts the user with questions and possible answers: why not letting an automatic script to respond instead? The next step could be to monitor group messages and automatically ban spamming people from your group. Nice, huh? Xmlrpclib with cookie aware transportJune 13th, 2008Using Python made me fall in love with XmlRPC. The python xmlrpclib is great and I’m using this protocol with C# and PHP too. The problem The solution Here’s the code: |
||
![]() |
![]() |
![]() |
![]() |
|
|
Roberto Rocco Angeloni is proudly powered by
WordPress
Entries (RSS) and Comments (RSS). |
||
![]() |
![]() |