Follow me
-
Recent Posts
calendar
Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
Monthly Archives: March 2011
VirtualBox (installation on Fedora 14)
I was trying to install VirtualBox using the yumex Fedora tool (or yum) but I was getting dependencies errors. Moreover, it was as if it was not installed, whereas the executable was available. This may have been a previous version … Continue reading
Mount Android folder under linux (fedora)
If you have an Android and you want to access its folder from Linux, or you simply want to copy some data from your computer to your android, then you will need to find a mechanism to connect them. Under … Continue reading
What is a Python descriptor
In Python, if any of the methods __get__, __set__, and __delete__ is defined for an object, then this object is said to be a descriptor. Descriptors are the mechanism behind properties, methods, static methods, class methods, and super(). Note that … Continue reading
Sphinx and ReST syntax for Python documentation
Sphinx is a tool that ease the creation of documentation for computer languages such as Python but also C/C++. The Sphinx syntax is an extension to the ReST (or RST) syntax. The drawback is that you need to learn another … Continue reading
Python ressources
Python is a script language that has evolved into a “do whatever you want”. It is now a versatile tools, which is really powerful and contains more and more modules to really do whatever you want. Python documentation provides a … Continue reading
Posted in Uncategorized
Leave a comment
Awk: how to convert PNG files into PDF
Here is a method to convert a bunch of PNG files into another format (here PDF). This method works under linux and uses both awk and convert commands (the conversion is made with the convert command). The following script generates … Continue reading
Language C: resources
GNU Coding Standards Here is a link to Thinking in C++ Another complete guide to C (in french) here.
How to include HTML within another HTML
To include another HTML document within a n HTML document, use this command: <! –#include virtual=”temp.xml”–> Tip: the main HTML file should have a shtml extension.
Install Apache and test PHP
Under fedora, install apache sudo yum install php Then, you should edit httpd.conf in /etc/httpd/conf and add AddType application/x-httpd-php3 .php3 or equivalent Then, under Fedora, go to system/service and start the httpd service. Alternatively type sudo service httpd start Finally, … Continue reading