<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-23424625</id><updated>2009-12-24T19:36:04.969+01:00</updated><title type='text'>Esperimenti informatici</title><subtitle type='html'></subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default?start-index=26&amp;max-results=25'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.bonifazi.eu/appunti/atom.xml'/><author><name>Marco</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-23424625.post-8450054972605127888</id><published>2009-11-04T12:45:00.001+01:00</published><updated>2009-11-06T14:18:14.265+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='gtkglext'/><category scheme='http://www.blogger.com/atom/ns#' term='glade'/><category scheme='http://www.blogger.com/atom/ns#' term='gl2ps'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenGl'/><category scheme='http://www.blogger.com/atom/ns#' term='binaries'/><title type='text'>Gtk+, Glade, GtkGlExt all in one Windows installer</title><content type='html'>I created an all in one Windows installer,&lt;br /&gt;for using Gtk+ libraries,&lt;br /&gt;also with Glade 3.6.7 (GUI visual creation) and&lt;br /&gt;GtkGlExt (OpenGl embedded in a GtkDrawingArea).&lt;br /&gt;&lt;br /&gt;You can download the Gtk+, Glade, GtkGlExt global installer from this links:&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/gtk_installer.exe"&gt;Gtk+, Glade, GtkGlext all in one Windows installer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The installer simply copies the files into a Gtk directory, updating PATH environment variable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Optionally, you can also get the different parts of the dlls which form the previous installer from the following links:&lt;br /&gt;&lt;a href="http://www.gtk.org/download-windows.html"&gt;Gtk+ for Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/glade3.zip"&gt;Glade 3.6.7 zip for Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/gtkglext-win32-1.2.0.exe"&gt;GtkGlExt installer for Windows&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.xmission.com/%7Enate/glut.html"&gt;Glut OpenGl for Windows&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;All the libraries are updated to the last version of today, and they seem to be perfectly useful (my project works very well).&lt;br /&gt;I'll try to mantain here the most updated files.&lt;br /&gt;&lt;br /&gt;You can view the licenses from those links.&lt;br /&gt;&lt;br /&gt;The installer was created using&lt;br /&gt;&lt;a href="http://nsis.sourceforge.net/"&gt;NSIS (Nullsoft Scriptable Install System&lt;/a&gt;&lt;br /&gt;with its &lt;a href="http://nsis.sourceforge.net/EclipseNSIS_-_NSIS_plugin_for_Eclipse"&gt;Eclipse plugin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The script file generated and compiled to create the installer is the following&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/setup_gtk.nsi"&gt;setup_gtk.nsi&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Updating this installer is easy!&lt;br /&gt;It is simple to maintain by everybody.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You must only install NSIS,&lt;/li&gt;&lt;li&gt;take the Windows binaries of the different tools from the official links,&lt;/li&gt;&lt;li&gt;put them in c:\program files\GTK directory,&lt;/li&gt;&lt;li&gt;compile setup_gtk.nsi file here aboveI updated.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Updated to the date of this post with the latest libraries:&lt;br /&gt;&lt;br /&gt;Glade    3.6.7!&lt;br /&gt;Libglade 2.6.4&lt;br /&gt;GLib   2.22.2&lt;br /&gt;GTK+  2.16.6&lt;br /&gt;Pango  1.26.0&lt;br /&gt;ATK  1.26.0&lt;br /&gt;cairo  1.8.8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-8450054972605127888?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.bonifazi.eu/appunti/gtk_installer.exe' title='Gtk+, Glade, GtkGlExt all in one Windows installer'/><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/8450054972605127888/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=8450054972605127888&amp;isPopup=true' title='15 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8450054972605127888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8450054972605127888'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2008/02/gtk-glade-gtkglext-all-in-one-windows.html' title='Gtk+, Glade, GtkGlExt all in one Windows installer'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-8563735738997222743</id><published>2009-11-01T12:45:00.000+01:00</published><updated>2009-11-02T21:59:17.396+01:00</updated><title type='text'>Glade 3.6.7 for Windows, installer</title><content type='html'>I've compiled Glade 3.6.7 for Windows.&lt;br /&gt;&lt;br /&gt;Also the new libglade 2.6.4 has been compiled for Windows and included in the package.&lt;br /&gt;&lt;br /&gt;You simply have to unzip the following file into Gtk directory:&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/glade3.zip"&gt;glade3.zip&lt;/a&gt;&lt;br /&gt;I've created an installer, but it you have to remember that Glade works only with GTK libraries properly installed.&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/Glade3_Setup.exe"&gt;Glade-3.6.7_setup.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For compiling I've used the guide in this link:&lt;br /&gt;&lt;a href="http://gpz500.wordpress.com/2008/04/18/glade3-per-windows/"&gt;http://gpz500.wordpress.com/2008/04/18/glade3-per-windows/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you need an all in one installer you can use the Gtk one of mine, I've update including Glade:&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/gtk_installer.exe"&gt;GTK-2.16.5 installer&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-8563735738997222743?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/8563735738997222743/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=8563735738997222743&amp;isPopup=true' title='4 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8563735738997222743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8563735738997222743'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2009/04/glade-362-for-windows.html' title='Glade 3.6.7 for Windows, installer'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-5780800236535806639</id><published>2009-04-17T20:15:00.000+02:00</published><updated>2009-04-17T23:16:19.478+02:00</updated><title type='text'>Python, PyGtk, PyOpenGL, PyGtkGlExt, PyWin32 all in one installer</title><content type='html'>After Gtk+ Installer, I realized also a PyGtk all in one installer, for Python 2.5.4 only.&lt;br /&gt;&lt;br /&gt;You can download it from here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe"&gt;pygtk_windows_installer.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is simply an assembling of all the different installers I previously downloaded (which are executed step by step), and you can choose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I realized this installer using EclipseNSIS and compiling the script generated by &lt;a href="http://nsis.sourceforge.net/"&gt;NSIS.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, the script I created and that you can compile and modify using NSIS is the following:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/pygtk_windows_installer.nsi"&gt;pygtk_windows_installer.nsi&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/www.bonifazi.eu/appunti/2008/02/gtk-glade-gtkglext-all-in-one-windows.html"&gt;Gtk all in one installer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/"&gt;pygtk-2.12.1-1.win32-py2.5.exe&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/"&gt;pygobject-2.14.1-1.win32-py2.5.exe&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/"&gt;pycairo-1.4.12-1.win32-py2.5.exe&lt;/a&gt;&lt;br /&gt;&lt;a href="http://pyopengl.sourceforge.net/"&gt;PyOpenGL-3.0.0.win32.exe&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.k-3d.org/gtkglext/Main_Page"&gt;pygtkglext-1.1.0.win32-py2.5.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I'll try to keep update this installer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-5780800236535806639?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/5780800236535806639/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=5780800236535806639&amp;isPopup=true' title='21 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5780800236535806639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5780800236535806639'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2008/04/pygtk-all-in-one-installer.html' title='Python, PyGtk, PyOpenGL, PyGtkGlExt, PyWin32 all in one installer'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-4432055469570514724</id><published>2008-03-24T11:28:00.004+01:00</published><updated>2008-04-02T11:05:40.059+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='gtkglext'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='glade'/><category scheme='http://www.blogger.com/atom/ns#' term='gl2ps'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenGl'/><category scheme='http://www.blogger.com/atom/ns#' term='installer'/><category scheme='http://www.blogger.com/atom/ns#' term='binaries'/><title type='text'>Simple C Gtk Project in DevCpp</title><content type='html'>I tried to compile a simple C Gtk Project in DevCpp.&lt;br /&gt;There are many things to do, especially about Include dirs, Lib dirs.&lt;br /&gt;I updated also a new &lt;a href="http://www.bonifazi.eu/appunti/gtk_installer.exe"&gt;Gtk installer&lt;/a&gt;, because I insert new include files that there weren't before and that created errors in compiling.&lt;br /&gt;&lt;br /&gt;The fastest way to explain, I think, is to upload the &lt;a href="http://www.bonifazi.eu/appunti/Simple_gtk_project.dev"&gt;Simple_gtk_project.dev&lt;/a&gt; with the source &lt;a href="http://www.bonifazi.eu/appunti/simple_gtk_main.c"&gt;simple_gtk_main.c&lt;/a&gt;&lt;br /&gt;This file was used on my Italian Windows XP pc, then it has wrong links that you must substitute with yours.&lt;br /&gt;Then you must change, in .dev, file all "C:\Programmi\Gtk" with your Gtk home dir (for example "C:\Program files\Gtk").&lt;br /&gt;&lt;br /&gt;If you want to do by yourself I can suggest some hints:&lt;br /&gt;&lt;br /&gt;you must enter in "Project Options" menu&lt;br /&gt;&lt;br /&gt;in "Parameters" tab, you must set Compiler and Linker options:&lt;br /&gt;&lt;br /&gt;in Compiler area insert "-mms-bitfields"&lt;br /&gt;&lt;br /&gt;in Linker area you must insert all libraries (dll) which are in your "GTK\bin" dir:&lt;br /&gt;-lm&lt;br /&gt;-lbzip2&lt;br /&gt;-lcharset&lt;br /&gt;-lfreetype6&lt;br /&gt;-lglut32&lt;br /&gt;-liconv&lt;br /&gt;-lintl&lt;br /&gt;-ljpeg62&lt;br /&gt;-lart_lgpl_2-2&lt;br /&gt;-latk-1.0-0&lt;br /&gt;-lcairo-2&lt;br /&gt;-lcroco-0.6-3&lt;br /&gt;-lexpat&lt;br /&gt;-lfontconfig-1&lt;br /&gt;-lfreetype-6&lt;br /&gt;-lgdk-win32-2.0-0&lt;br /&gt;-lgdkglext-win32-1.0-0&lt;br /&gt;-lgdk_pixbuf-2.0-0&lt;br /&gt;-lgio-2.0-0&lt;br /&gt;-lglade-2.0-0&lt;br /&gt;-lgladeui-1-7&lt;br /&gt;-lglib-2.0-0&lt;br /&gt;-lgmodule-2.0-0&lt;br /&gt;-lgobject-2.0-0&lt;br /&gt;-lgsf-1-114&lt;br /&gt;-lgsf-win32-1-114&lt;br /&gt;-lgthread-2.0-0&lt;br /&gt;-lgtk-win32-2.0-0&lt;br /&gt;-lgtkglext-win32-1.0-0&lt;br /&gt;-lpango-1.0-0&lt;br /&gt;-lpangocairo-1.0-0&lt;br /&gt;-lpangoft2-1.0-0&lt;br /&gt;-lpangowin32-1.0-0&lt;br /&gt;-lpng12&lt;br /&gt;-lpng13&lt;br /&gt;-ltiff3&lt;br /&gt;-lxml2&lt;br /&gt;-lzlib1&lt;br /&gt;-l_gl2ps_sw&lt;br /&gt;&lt;br /&gt;in Files/Dirs tab you must set:&lt;br /&gt;in Library dirs subtab: your "GTK\bin" dir&lt;br /&gt;&lt;br /&gt;In my case&lt;br /&gt;c:\Programmi\Gtk\bin&lt;br /&gt;&lt;br /&gt;in Include dirs subtab you must set all the subdirs in "GTK\include"your "GTK\include" dir&lt;br /&gt;&lt;br /&gt;In my case they are:&lt;br /&gt;c:\Programmi\Gtk\include\gtk-2.0;&lt;br /&gt;c:\Programmi\Gtk\include\cairo;&lt;br /&gt;c:\Programmi\Gtk\include\glib-2.0;&lt;br /&gt;c:\Programmi\Gtk\include\atk-1.0;&lt;br /&gt;c:\Programmi\Gtk\include\libxml;&lt;br /&gt;c:\Programmi\Gtk\include\pango-1.0;&lt;br /&gt;c:\Programmi\Gtk\include\libgladeui-10&lt;br /&gt;&lt;br /&gt;Nothing else, it seems to compile and execute fine.&lt;br /&gt;&lt;br /&gt;The exe file I generated is here:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/Simple_gtk_project.exe"&gt;Simple_gtk_project.exe&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-4432055469570514724?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/4432055469570514724/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=4432055469570514724&amp;isPopup=true' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4432055469570514724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4432055469570514724'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2008/03/simple-c-gtk-project-in-devcpp.html' title='Simple C Gtk Project in DevCpp'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-4017299138881496917</id><published>2008-03-18T11:50:00.006+01:00</published><updated>2008-03-24T11:54:41.718+01:00</updated><title type='text'>Stupid file list</title><content type='html'>Creates a dir.txt with the content list (files and dirs) of the current dir.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/file_list.py"&gt;file_list.py&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-4017299138881496917?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/4017299138881496917/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=4017299138881496917&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4017299138881496917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4017299138881496917'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2008/03/stupid-filelist.html' title='Stupid file list'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-6217983782248498146</id><published>2007-05-19T03:23:00.000+02:00</published><updated>2007-05-19T03:25:37.445+02:00</updated><title type='text'>Distro Linux Time Line</title><content type='html'>&lt;a href="http://img242.imageshack.us/img242/6591/44218linuxdistrotimelingu6.png"&gt;Distro Linux Time Line&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-6217983782248498146?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/6217983782248498146/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=6217983782248498146&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6217983782248498146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6217983782248498146'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/05/distro-linux-time-line.html' title='Distro Linux Time Line'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-5963830544330946790</id><published>2007-05-02T22:47:00.001+02:00</published><updated>2008-04-02T11:06:44.725+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='gtkglext'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenGl'/><category scheme='http://www.blogger.com/atom/ns#' term='binaries'/><title type='text'>PyGtkGlExt, a simple OpenGl box in a PyGtk Window</title><content type='html'>It is an example of a Python application with a Gtk GUI with an embedded OpenGl box.&lt;br /&gt;This fusion is allowed thanks to GtkGlExt library and all Python wrappers of these ones.&lt;br /&gt;&lt;br /&gt;GUI and run application &lt;a href="http://www.bonifazi.eu/appunti/Draw.py"&gt;Draw.py&lt;/a&gt;&lt;br /&gt;Glade file &lt;a href="http://www.bonifazi.eu/appunti/first_example.glade"&gt;first_example.glade&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To draw the OpenGl area is fundamental to remember the connection of expose/realize/configure events (without them I had serious troubles).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-5963830544330946790?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/5963830544330946790/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=5963830544330946790&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5963830544330946790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5963830544330946790'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/05/pygtkglext-simple-opengl-box-in-pygtk.html' title='PyGtkGlExt, a simple OpenGl box in a PyGtk Window'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-6459454699345097865</id><published>2007-04-21T16:54:00.002+02:00</published><updated>2008-03-07T01:00:35.877+01:00</updated><title type='text'>Vettori in C</title><content type='html'>Gruppo di posizioni di memoria, stesso nome, stesso tipo di dato.&lt;br /&gt;Dichiarazione:&lt;br /&gt;       int array[5]&lt;br /&gt;Dichiarazione e inizializzazione:&lt;br /&gt;       int array[5] = { 1, 2, 3, 4, 5}&lt;br /&gt;Dichiarazione mancante ma inizializzazione:&lt;br /&gt;       int array[] = { 1, 2, 3, 4, 5}&lt;br /&gt;Azzeramento automatico degli elementi del vettore quando ci sono meno inizializzatori della lunghezza dell'array (ma ne serve almeno uno).&lt;br /&gt;&lt;br /&gt;       int array[5] = {1,2,3}; corrisponde a&lt;br /&gt;       int array[5] = {1, 2, 3, 0, 0};&lt;br /&gt;&lt;br /&gt;Le stringhe sono array di caratteri:&lt;br /&gt;       char* prova = "ciao"; corrisponde a&lt;br /&gt;       char* prova = {'c', 'i', 'a', 'o', '\0'}&lt;br /&gt;dove '\0' e' il carattere che termina le stringhe&lt;br /&gt;&lt;br /&gt;All'interno di funzioni, se l'array e' "static" allora viene automaticamente inizializzato dal compilatore&lt;br /&gt;&lt;br /&gt;static int a[5]; corrisponde a int a[5] = {0,0,0,0,0} ma solo la prima volta che la funzione viene chiamata (successivamente conserva i valori precedenti, static serve proprio a svincolare la "localita'" della variabile).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Passaggio di vettori a funzioni.&lt;br /&gt;&lt;br /&gt;Passaggio vettori e' per riferimento, in pratica il nome del vettore e' l'indirizzo del primo elemento&lt;br /&gt;&lt;br /&gt;char array[4] ="ciao";&lt;br /&gt;passo(array);&lt;br /&gt;corrisponde a passare&lt;br /&gt;&amp;amp;array[0] oppure&lt;br /&gt;&amp;amp;array&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;modifica_vettore(mio_array, lunghezza_mio_array);&lt;br /&gt;...&lt;br /&gt;void modifica_vettore(int array[], int lunghezza_array);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Passaggio e' per riferimento (il vettore e' modificabile).&lt;br /&gt;Per rendere il vettore non modificabile la funzione deve essere definita avendo parametro del vettore con const&lt;br /&gt;&lt;blockquote&gt;void modifica_vettore(const int array[], int lunghezza_array);&lt;/blockquote&gt;&lt;br /&gt;Array con permanenza in memoria statica e automatica&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;a href="http://www.bonifazi.eu/appunti/array.c"&gt;array.c&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-6459454699345097865?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/6459454699345097865/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=6459454699345097865&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6459454699345097865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6459454699345097865'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/04/vettori-in-c.html' title='Vettori in C'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-5471057061345949221</id><published>2007-03-31T21:10:00.000+02:00</published><updated>2007-04-01T00:31:35.903+02:00</updated><title type='text'>Script vari Gentoo/Linux</title><content type='html'>HP Pavilion 8051dv, Xpress 200, Amd Turion64&lt;br /&gt;XOrg 7.2&lt;br /&gt;Ati-drivers 8.35&lt;br /&gt;Mesa 6.5.2&lt;br /&gt;Kernel 2.6.19, gentoo-sources&lt;br /&gt;&lt;br /&gt;Xgl&lt;span style="font-size:85%;"&gt;&lt;blockquote&gt;Xgl -fullscreen :1 -audit 0 -ac -accel glx:pbuffer -accel xv:pbuffer &amp; sleep 4&lt;br /&gt;LD_PRELOAD=/usr/lib/opengl/ati/lib/libGL.so LD_LIBRARY_PATH=/usr/lib/opengl/ati/lib/ DISPLAY=:1 beryl-manager&lt;br /&gt;DISPLAY=:1 heliodor &amp;amp;&lt;/blockquote&gt;&lt;/span&gt;Problema Ethernet a soli 10 Mbit&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;ethtool -s eth0 speed 10 duplex full autoneg on&lt;/span&gt;&lt;/blockquote&gt;&lt;a href="http://www.bonifazi.eu/appunti/xorg.conf"&gt;xorg.conf&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;a href="http://www.bonifazi.eu/appunti/fstab"&gt;fstab&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/grub.conf"&gt;grub.conf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/make.conf"&gt;make.conf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Kernel&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/config"&gt;config&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-5471057061345949221?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/5471057061345949221/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=5471057061345949221&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5471057061345949221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5471057061345949221'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/03/script-vari-gentoolinux.html' title='Script vari Gentoo/Linux'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-6447031300292742242</id><published>2007-03-31T20:50:00.000+02:00</published><updated>2007-03-31T21:05:16.801+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gtk'/><category scheme='http://www.blogger.com/atom/ns#' term='gtkglext'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenGl'/><category scheme='http://www.blogger.com/atom/ns#' term='binaries'/><title type='text'>GktGlExt 1.2.0 Windows</title><content type='html'>Binari GtkGlExt compilati per Windows32&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/gtkglext-win32-1.2.0.exe"&gt;gtkglext-win32-1.2.0.exe&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-6447031300292742242?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/6447031300292742242/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=6447031300292742242&amp;isPopup=true' title='2 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6447031300292742242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/6447031300292742242'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/03/gktglext-120-windows.html' title='GktGlExt 1.2.0 Windows'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-105261456126556419</id><published>2007-03-31T18:09:00.000+02:00</published><updated>2007-03-31T18:31:02.885+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Xgl'/><category scheme='http://www.blogger.com/atom/ns#' term='Cube'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenGl'/><title type='text'>Strani anelli Xgl</title><content type='html'>Qualche screenshot Xgl&lt;br /&gt;&lt;br /&gt;&lt;img style="width: 776px; height: 484px;" src="http://www.bonifazi.eu/appunti/immagini/xgl-2.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="width: 777px; height: 483px;" src="http://www.bonifazi.eu/appunti/immagini/xgl-4.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="width: 777px; height: 485px;" src="http://www.bonifazi.eu/appunti/immagini/xgl-1.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="width: 777px; height: 485px;" src="http://www.bonifazi.eu/appunti/immagini/xgl-5.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="width: 776px; height: 483px;" src="http://www.bonifazi.eu/appunti/immagini/xgl-6.jpg" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-105261456126556419?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/105261456126556419/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=105261456126556419&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/105261456126556419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/105261456126556419'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/03/strani-anelli-xgl.html' title='Strani anelli Xgl'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-4793554004820666590</id><published>2007-03-05T17:15:00.000+01:00</published><updated>2007-04-08T22:07:21.434+02:00</updated><title type='text'>Java plugin in Firefox su Gentoo a 64 bit</title><content type='html'>Non esiste un Java Plugin per Firefox a 64 bit.&lt;br /&gt;Pertanto occorre installarsi Firefox a 32 bit (in un Gentoo a 64 bit quindi si fa "emerge mozilla-firefox-bin").&lt;br /&gt;&lt;br /&gt;Poi occorre prendersi un JRE a 32 bit e installarselo da qualche parte (supponiamo /opt/jre-1.5.11).&lt;br /&gt;&lt;br /&gt;Si va nella directory dei plugin di Firefox: /opt/firefox/plugins/.&lt;br /&gt;&lt;br /&gt;Si fa in link simbolico&lt;br /&gt;ln -s /opt/jre1.5.0_11/plugin/i386/ns7/libjavaplugin_oji.so ./&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-4793554004820666590?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/4793554004820666590/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=4793554004820666590&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4793554004820666590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/4793554004820666590'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/03/java-plugin-in-firefox-su-gentoo-64-bit.html' title='Java plugin in Firefox su Gentoo a 64 bit'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-7758448139120069818</id><published>2007-01-17T17:12:00.000+01:00</published><updated>2007-01-17T18:18:11.592+01:00</updated><title type='text'>Casi d'uso (use cases)</title><content type='html'>Collezione di storie delle interazioni col sistema per incontrare gli obiettivi delle parti interessate.&lt;br /&gt;&lt;br /&gt;Attore: caratterizzazione di un modo di comportarsi&lt;br /&gt;Scenario: sequenza di azioni e interazioni attori e sistema.&lt;br /&gt;&lt;br /&gt;Uno scenario e' un'istanza di un caso d'uso, una storia, una sequenza di azioni che produce un risultato osservabile ad uno o piu' attori.&lt;br /&gt;I casi d'uso quindi sono formati da scenari di successo e di fallimento, vanno considerati nel pensare alla maniera, al modo in cui il sistema cerca adempiere agli obiettivi.&lt;br /&gt;&lt;br /&gt;I casi d'uso sono requisiti (spesso quelli funzionali).&lt;br /&gt;&lt;br /&gt;Non scendere in dettagli, pensare solo al COSA, non al COME (analisi contro progettazione).&lt;br /&gt;&lt;br /&gt;Tipi di casi d'uso:&lt;br /&gt;&lt;br /&gt;Brevi, storia scritta in un paragrafo lungo.&lt;br /&gt;Informali, diversi paragrafi, eventuali casi d'uso alternativi.&lt;br /&gt;Completi, struttura formata da&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Prefazione&lt;/li&gt;&lt;li&gt;Parti interessate e relativa lista di interessi&lt;/li&gt;&lt;li&gt;Precondizioni e postcondizioni.&lt;/li&gt;&lt;li&gt;Scenario di successo (happy scenario), senza condizioni formato da interazioni tra attori, validazione del sistema o cambiamento dello stato del sistema.&lt;/li&gt;&lt;li&gt;Scenari alternativi, estensioni, formate dalla condizione e dalla gestione dello scenario. C'e' eventuale ritorno a scenario di successo. Scenari alternativi complessi potrebbero essere un altro caso d'uso&lt;/li&gt;&lt;li&gt;Requisiti speciali (non funzionali, ad es. "tecnologici")&lt;/li&gt;&lt;li&gt;Lista variabilita' tecnologiche e dati (eventuali vincoli a priori)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Livello di dettaglio: riferirsi principalmente a Elementary Business Process&lt;br /&gt;&lt;br /&gt;Task di una persona in un luogo ad un certo tempo in risposta ad un evento che aggiunge un valore misurabile lasciando i dati in stato consistente.&lt;br /&gt;Cosa fare.&lt;br /&gt;Quali sono gli obiettivi. Quale e' l'obiettivo padre, ricorsione.&lt;br /&gt;&lt;br /&gt;Sottoobiettivi vanno considerati come caso d'uso quando sono precondizioni di piu' scenari di casi d'uso.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dominio del sistema&lt;br /&gt;Attori primari e obiettivi: trovare attori primari (tra cui i "sistemi", il computer)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-7758448139120069818?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/7758448139120069818/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=7758448139120069818&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/7758448139120069818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/7758448139120069818'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/01/casi-duso-use-cases.html' title='Casi d&apos;uso (use cases)'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-5709902598638520443</id><published>2007-01-17T15:03:00.000+01:00</published><updated>2007-01-17T15:40:41.983+01:00</updated><title type='text'>Analisi e progettazione</title><content type='html'>Analisi: capire problema e requisiti&lt;br /&gt;Progetto: soddisfare requisiti, soluzione concettuale, non implementazione&lt;br /&gt;&lt;br /&gt;Fare le cose giuste (analisi) e farle correttamente (progetto).&lt;br /&gt;&lt;br /&gt;Analisi a oggetti: trovare e descrivere gli oggetti.&lt;br /&gt;Progetto a oggetti: capire come oggetti software collaborano per soddisfare i requisiti.&lt;br /&gt;&lt;br /&gt;UML:&lt;br /&gt;&lt;br /&gt;linguaggio per specificare, visualizzare, costruire, documentare artefatti di sistemi software.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-5709902598638520443?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/5709902598638520443/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=5709902598638520443&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5709902598638520443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/5709902598638520443'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/01/analisi-e-progettazione.html' title='Analisi e progettazione'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-1739412833145586417</id><published>2007-01-15T01:01:00.000+01:00</published><updated>2007-01-15T01:03:48.188+01:00</updated><title type='text'>C, OpenGl: glCallList, Quads</title><content type='html'>&lt;a href="http://www.bonifazi.eu/appunti/gl2.c.html"&gt;gl2.c.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-1739412833145586417?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/1739412833145586417/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=1739412833145586417&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/1739412833145586417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/1739412833145586417'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/01/c-opengl-glcalllist-quads.html' title='C, OpenGl: glCallList, Quads'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-8731187805543763357</id><published>2007-01-06T12:23:00.000+01:00</published><updated>2007-01-06T22:54:43.875+01:00</updated><title type='text'>C - OpenGl, create a stupid Window</title><content type='html'>This is a segment in an example OpenGl window.&lt;br /&gt;It is written to remember all the steps to create a window and give an Ortho perspective, and managing coordinates system.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bonifazi.eu/appunti/gl.c.html"&gt;gl.c.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To compile in Linux:&lt;br /&gt;&lt;br /&gt;cc -o gl gl.c -lglut -lGL -lGLU -lm  -L/usr/X11R6/lib&lt;br /&gt;&lt;br /&gt;In WIndows it is important to compile and link with math, gl, glu, glut library.&lt;br /&gt;For example in DevC++ we must insert -lm, -lglu, -lgl, -lglut in linker options.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-8731187805543763357?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/8731187805543763357/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=8731187805543763357&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8731187805543763357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/8731187805543763357'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2007/01/include-core-library-include-function.html' title='C - OpenGl, create a stupid Window'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-116600543087199044</id><published>2006-12-13T10:42:00.000+01:00</published><updated>2007-01-06T11:18:51.170+01:00</updated><title type='text'>PyInstaller: creare un eseguibile per Windows (ma il procedimento dovrebbe esser simile per altri Sistemi Operativi)</title><content type='html'>Sito ufficiale (nuovo) di&lt;br /&gt;&lt;a href="http://pyinstaller.python-hosting.com/"&gt;PyInstaller&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;PyInstaller trasforma programmi scritti in Python in eseguibili a se stanti, la cui esecuzione diventa indipendente dall'interprete Python.&lt;br /&gt;&lt;br /&gt;La mia applicazione prevede uso di PyGtk.&lt;br /&gt;&lt;br /&gt;Passi da compiere:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Scompattare lo zip scaricabile dal sito in una directory a piacere, da console ("cmd.exe") mettere python.exe nel PATH di Windows ("SET PATH=$PATH;C:\Python25\")&lt;/li&gt;&lt;li&gt;Solo per comodita' conviene spostare la cartella appena scompattata nella cartella genitore del nostro progetto (ad es. se il progetto e' in C:\Padre\Progetto, conviene che PyInstaller sia nella cartella C:\Padre\PyInstaller)&lt;/li&gt;&lt;li&gt;Creare un file di tipo .spec, che "imposta" la configurazione del progetto, al seguente modo:&lt;blockquote&gt;python Makespec.py -w ..\Progetto\programma.py&lt;/blockquote&gt;&lt;br /&gt;Cosi' facendo verra' creata nella directory di PyInstaller una directory "programma" con all'interno altre directory e il file spec appena creato.&lt;/li&gt;&lt;li&gt;Per creare infine l'eseguibile:Python Build.py Progetto\programma.spec Verra' quindi creata la directory "distProgramma" in cui all'interno si avra' il file exe con tutti i dll a cui si  appoggia eventualmente il nostro programma Python.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-116600543087199044?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/116600543087199044/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=116600543087199044&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/116600543087199044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/116600543087199044'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/12/pyinstaller-creare-un-eseguibile-per.html' title='PyInstaller: creare un eseguibile per Windows (ma il procedimento dovrebbe esser simile per altri Sistemi Operativi)'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114614934291591181</id><published>2006-04-27T16:48:00.000+02:00</published><updated>2006-07-23T16:14:04.116+02:00</updated><title type='text'>Makefile di esempio</title><content type='html'>&lt;span style="color: rgb(102, 102, 102);font-size:85%;" &gt;&lt;span style="font-family: courier new;"&gt;OBJS=params_main.o params_print.o&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;EXE=params&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new; color: rgb(102, 102, 102);font-size:85%;" &gt;$(EXE): $(OBJS)&lt;br /&gt;$(CC) -o $@ $^&lt;br /&gt;@echo "Obiettivo "$@   # $@ Rappresenta l'obiettivo (in questo caso params)&lt;br /&gt;@echo "Dipendenze "$^  # $^ e' una macro che rappresenta tutte le dipendenze dell'obiettivo, in questo caso params_main.o eparams_print.o&lt;br /&gt;@echo "Dipendenze recenti " $?  # $? Rappresenta l'elenco di quelle dipendenze che sono state cambiate recentemente (calcolate automaticamente)&lt;br /&gt;@echo "boh "$&lt;   # $&lt;&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114614934291591181?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114614934291591181/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114614934291591181&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114614934291591181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114614934291591181'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/04/makefile-di-esempio.html' title='Makefile di esempio'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114600509133141829</id><published>2006-04-26T00:44:00.000+02:00</published><updated>2006-04-26T00:44:51.343+02:00</updated><title type='text'>Linux Scripting: CUT</title><content type='html'>cat /etc/passwd |cut -d ':' -f1|tr "\n" ","&lt;br /&gt;&lt;br /&gt;Mette la lista utenti in una lista con virgole.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114600509133141829?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114600509133141829/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114600509133141829&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114600509133141829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114600509133141829'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/04/linux-scripting-cut.html' title='Linux Scripting: CUT'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114372769301871579</id><published>2006-03-30T15:51:00.000+02:00</published><updated>2006-09-19T00:33:21.976+02:00</updated><title type='text'>Creare gl2ps in Python con Swig (in Windows)</title><content type='html'>&lt;ul style="color: rgb(0, 0, 0);"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Scaricare gl2ps dal sito &lt;a href="http://www.geuz.org/gl2ps/"&gt;www.geuz.org/&lt;b&gt;gl2ps&lt;/b&gt;/&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Scaricare Swig dal sito &lt;a href="http://www.swig.org"&gt;www.swig.org&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Creare il file interfaccia gl2ps.i, e' possibile scaricare e usare &lt;a href="http://www.bonifazi.eu/appunti/gl2ps/gl2ps.i"&gt;questo&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Digitare i comandi di Swig &lt;span style="color: rgb(204, 0, 0);"&gt;swig -python gl2ps.i&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Verrà creato un file gl2ps_wrap.c e un file gl2ps.py, immergere gl2ps_wrap.c nei sorgenti scaricati di gl2ps, creare un progetto (ad esempio con Dev). Ecco il file del progetto dev:&lt;a href="http://www.bonifazi.eu/appunti/gl2ps/gl2ps_sw.dev"&gt;gl2ps_sw.dev&lt;/a&gt;. Il file gl2ps.py va usato nel progetto Python&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Compilare il progetto gl2ps con gl2ps_wrap.c, prendere il dll e metterlo in %PYTHON_DIR%\Dlls&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=""&gt;&lt;span style="font-size:100%;"&gt;Usare gl2ps.py in Python&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Nel mio progetto il file gl2ps_wrap.c deve essere rinominato in gl2ps_sw.c per far funzionare il gl2ps_sw.dev.&lt;br /&gt;Occorre far coincidere il nome del file .dll e il nome del file Python importato all'interno del modulo creato (ossia all'inizio di gl2ps.py c'e' un import: verificare che sia uguale al dll)&lt;br /&gt;Per usarlo si devono usare fopen e fclose (e fput) classici del C.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114372769301871579?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114372769301871579/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114372769301871579&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114372769301871579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114372769301871579'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/creare-gl2ps-in-python-con-swig-in.html' title='Creare gl2ps in Python con Swig (in Windows)'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114273163242753552</id><published>2006-03-19T02:15:00.000+01:00</published><updated>2007-04-26T10:12:32.876+02:00</updated><title type='text'>Pattern Observer (Publish/Subscribe)</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style="font-style: italic;"&gt;GoF : singleton, strategy, observer, facade, composite&lt;/span&gt;&lt;br /&gt;&lt;/i&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;i style=""&gt;Modello non deve conoscere la presentazione&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Problema&lt;/span&gt;: Differenti oggetti subscriber sono interessati a cambiamenti di stato o eventi per reagire eventualmente, mantenendo basso accoppiamento con publisher&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Soluzione:&lt;/b&gt; interfaccia Subscriber/Listener implementata da tutti gli interessati&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Observer (Property Listener) ha un metodo &lt;span style="font-weight: bold;font-family:courier new;" &gt;Update &lt;/span&gt;che poi viene implementato dalle classi della Presentazione figlie ,&lt;/li&gt;&lt;li&gt;il Subject (Modello) può inserirsi e togliersi i riferimenti di Observer di ogni figlia e ad ogni notifica li scansiona, i metodi della classe Subject hanno la stessa implementazione per tutte le istanze, per cui Subject viene ovviamente derivata,&lt;/li&gt;&lt;li&gt;l’istanza vista (ConcreteObserver), usando l’evento aggiorna la propria Presentazione.&lt;/li&gt;&lt;/ul&gt;      &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;Inizializzazione&lt;/span&gt;:&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Il programma principale crea il Modello e &lt;st1:personname productid="la Vista" st="on"&gt;la Vista&lt;/st1:personname&gt; (passando ad essa il Modello), &lt;st1:personname productid="la Vista" st="on"&gt;&lt;/st1:personname&gt;&lt;/li&gt;&lt;li&gt;&lt;st1:personname productid="la Vista" st="on"&gt;la Vista&lt;/st1:personname&gt; fa attaccare (tramite il riferimento appena passato) se stessa al Modello,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;chiama un metodo creaController e gli passa il Modello e &lt;st1:personname productid="la Vista" st="on"&gt;la Vista&lt;/st1:personname&gt;,&lt;br /&gt;&lt;/li&gt;&lt;li&gt;il Controller tramite il riferimento al Modello passa al Modello se stesso.&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:310.5pt;"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\IMPOST~1\Temp\msohtml1\01\clip_image001.jpg" title="observer"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;   &lt;img src="http://www.bonifazi.eu/appunti/immagini/observer.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/131499"&gt;Esempio: Python Observer&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114273163242753552?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114273163242753552/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114273163242753552&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114273163242753552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114273163242753552'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/pattern-observer-publishsubscribe.html' title='Pattern Observer (Publish/Subscribe)'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114212097387758232</id><published>2006-03-12T00:46:00.000+01:00</published><updated>2006-03-12T00:49:33.876+01:00</updated><title type='text'>Linux Scripting: Standard error, output</title><content type='html'>cat marco&gt;prova 2&gt;&amp;1&lt;br /&gt;&lt;br /&gt;Redirige lo standard error verso lo standard output (al posto di &amp;amp;1 puo' esserci un file)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114212097387758232?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114212097387758232/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114212097387758232&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114212097387758232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114212097387758232'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/linux-scripting-standard-error-output.html' title='Linux Scripting: Standard error, output'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114212055476267373</id><published>2006-03-12T00:40:00.000+01:00</published><updated>2006-03-12T00:42:34.763+01:00</updated><title type='text'>Scripting Linux: Control</title><content type='html'>Nella console la pressione di Control insieme a un carattere provoca diverse reazioni:&lt;br /&gt;&lt;br /&gt;B sinistra&lt;br /&gt;F destra&lt;br /&gt;P comando precedente, sopra&lt;br /&gt;N successivo, sotto&lt;br /&gt;A inizio riga&lt;br /&gt;E fine riga&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;W cancella parola precedente&lt;/span&gt;&lt;br /&gt;U cancella intera riga&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114212055476267373?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114212055476267373/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114212055476267373&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114212055476267373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114212055476267373'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/scripting-linux-control.html' title='Scripting Linux: Control'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114211995926772205</id><published>2006-03-12T00:30:00.000+01:00</published><updated>2006-03-12T00:37:45.573+01:00</updated><title type='text'>Scripting Linux: variabili ambiente e shell</title><content type='html'>Differenza: quelle di ambiente sono accedibili ai programmi (che le usano per le loro comodita', ad esempio un CLASSPATH di Java)&lt;br /&gt;&lt;br /&gt;PROVA=ciao&lt;br /&gt;export PROVA&lt;br /&gt;&lt;br /&gt;export trasferisce a spazio memoria per variabili ambiente&lt;br /&gt;&lt;br /&gt;Esempio&lt;br /&gt;Creando una variabile di shell e poi avviare una subconsole e una di ambiente con subconsole, la variabile di ambiente "passa", quella di shell no (provare con un echo)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Nella prima console&lt;/span&gt;&lt;br /&gt;MARCO=io&lt;br /&gt;GINO=tu&lt;br /&gt;export GINO&lt;br /&gt;&lt;br /&gt;konsole&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Nella seconda&lt;/span&gt;&lt;br /&gt;echo MARCO&lt;br /&gt;&lt;br /&gt;echo GINO&lt;br /&gt;tu&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114211995926772205?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114211995926772205/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114211995926772205&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114211995926772205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114211995926772205'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/scripting-linux-variabili-ambiente-e.html' title='Scripting Linux: variabili ambiente e shell'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-23424625.post-114211931078102808</id><published>2006-03-12T00:08:00.000+01:00</published><updated>2006-03-12T00:29:32.630+01:00</updated><title type='text'>Linux Scripting: LS</title><content type='html'>&lt;pre&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;ilgenio@ZemanLandia Desktop $ ls -ltFira&lt;br /&gt;totale 167&lt;br /&gt;2317 -rw-r--r--   1 ilgenio users   4298 21 dic  2004 Home.desktop&lt;br /&gt;6042 -rw-r--r--   1 ilgenio users     69 21 dic  2004 .directory&lt;br /&gt;16421 drwxr-xr-x   2 ilgenio users    216 30 gen 20:35 Python/&lt;br /&gt; 112 drwxr-xr-x   3 ilgenio users    192 30 gen 20:35 Altro/&lt;br /&gt;3343 drwxr-xr-x   2 ilgenio users    168  7 feb 17:43 Banca/&lt;br /&gt; 194 drwxr-xr-x   2 ilgenio users    456  7 feb 17:43 calcoloparallelo/&lt;br /&gt; 772 drwxr-xr-x  11 ilgenio users    656  7 feb 17:44 DisCo/&lt;br /&gt;16325 drwxr-xr-x   5 ilgenio users    152 21 feb 22:29 Universita'/&lt;br /&gt;57864 -rw-r--r--   1 ilgenio users 155389 22 feb 00:27 prospetto_spese_commissioni_hb.pdf&lt;br /&gt;59190 drwxr-xr-x   2 ilgenio users    336 11 mar 14:43 Sistemi operativi/&lt;br /&gt;  52 drwx------   9 ilgenio root     368 11 mar 14:44 ./&lt;br /&gt;   4 drwxr-xr-x  50 ilgenio root    2784 12 mar 00:20 ../&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Primo carattere dei dieci dopo l'inode:&lt;br /&gt;      The file types are as follows: - for an ordinary file, d  for  a&lt;br /&gt;        directory,  b for a block special device, c for a character spe-&lt;br /&gt;        cial device, l for a symbolic link,  p  for  a  fifo,  s  for  a&lt;br /&gt;        socket.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Opzioni&lt;/span&gt;&lt;br /&gt;l: lista dettagliata&lt;br /&gt;t: ordina per timestamp&lt;br /&gt;F: aggiunge / per le directory, | per le pipe, * per gli eseguibili&lt;br /&gt;i: inode&lt;br /&gt;r: ordine inverso&lt;br /&gt;a: file dot&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23424625-114211931078102808?l=www.bonifazi.eu%2Fappunti%2Findex.html' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/114211931078102808/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=23424625&amp;postID=114211931078102808&amp;isPopup=true' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114211931078102808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23424625/posts/default/114211931078102808'/><link rel='alternate' type='text/html' href='http://www.bonifazi.eu/appunti/2006/03/linux-scripting-ls.html' title='Linux Scripting: LS'/><author><name>Marco</name><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06297530991873769122'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>
