The archives for `Programmazione'


Down 3

New rails 2.1

For the fans of programming here version 2,1 of this splendid one framework that it answers to the name of ruby on rails.  This version of rails is the result of 6 months of collaboration with sviluppatori of all the world, that it has produced more than 1600 patches, a truly considerable number. On http://weblog.rubyonrails.org the directory of the new is present features, while regarding the installation on my Ubuntu hardy here the procedure:

  • I sudo apt-get install ruby irb rivers rdoc ruby1.8-dev libzlib-ruby libyaml-ruby libreadline-ruby libncurses-ruby libcurses-ruby libruby libruby-extras libfcgi-ruby1.8 build-essential libopenssl-ruby libdbm-ruby libdbi-ruby libdbd-sqlite3-ruby sqlite3 libsqlite3-dev libsqlite3-ruby libxml-ruby libxml2-dev (this is the procedure of installation through apt, than not council, as a series of not necessary members installs all and can give configuration problems).

This instead the procedure through gem, the package manager of rails

  1. I sudo apt-get install ruby rubygems irb rivers rdoc ruby1.8-dev build-essential;
  2. I sudo gem update - system;
  3. I sudo gem install rails.

It does not remain to you that to program.

P.S. If after I sudo gem update - system you receive an error of the type: /usr/bin/gem: 23: uninitialized constant Gem:: GemRunner (NameError), launch gedit /usr/bin/gem and, after the line to require `rubygems', inserted to require `rubygems/gem_runner'.

Mar 13

Solution to the error of the bookcase deviceman.cc

figotip.jpg

As the fans of the compilation at this point know all, during the execution of make, cmake or emulate, it is easy to imbattersi in the most varied problems: satisfied dependencies, modernized packages or lacking and who more of it do not have more put some. Ergo the compilation is an absolute activity thrilling, but risky for coronary, liver and bile. The last “bilious” attack of this morning has had to this error:
extragear/multimedia/kmid/libkmid/deviceman.cc: 61: 2: error: #error HAVE_ALSA_ASOUNDLIB_H or HAVE_SYS_ASOUNDLIB_H should be defined.
In short the bookcase deviceman.cc tries the header of alsa, but it does not find it. Control in usr/includes/alsa and finds the rows in issue calmly: asounddef.h, asoundlib.h… .
This the content of deviceman.cc that it interests to us:

56#ifdef HAVE_ALSA_ASOUNDLIB_H
57# it includes
58#elif defined (HAVE_SYS_ASOUNDLIB_H)
59# it includes
60#else
61#error HAVE_ALSA_ASOUNDLIB_H or HAVE_SYS_ASOUNDLIB_H
62#endif

Enough to eliminate the line completely line 61 and, to satisfied pact of having all the dependencies, the compilation go to good aim.
P.S I have had to compile Amarok2 to part, because kdesvn-build it did not succeed to us, but this will be object of the next one post.
I hope of being useful to someone, and at the same time I hope that you help to understand me because of this problem.
The union of the minds multiplies the acquaintance…

Mar 5

A collection of guides for GUI designers.

My usual to girovagare for the net this time has produced this collection of guides for GUI designers; a document collection actions to supply the lines guides for experts of usabilità, GUI and Visual designers:

 

  • Apple Human interface guidelines - Mac OS X are equipped of Aqua, one of most famous and better structured interfaces customers. These lines guide have been planned in order to assist the sviluppatore in the software construction that allows to the customers of Mac OS X an pleasant visual experience and an advanced level of operation.

  • GNOME Human Interface guidelines 2,0 - This document describes like creating applications that totally integrate with the interface GNOME customer. It is written for graphical and sviluppatori planners of interfaces, artists of software and is rich of councils in order to render effective and originates them the action of these, stops remaining the philosophy and the principles it generates them of planning that are behind the GNOME interface.

  • 4,0 KDE Human Interface guidelines - These lines guide are proposed to specify the use and the models of interaction and of “look-and-feel” for KDE applications. The objective is that one to supply some rules for the GUI designers that the sviluppatori can help to plan and to write applications that are of easy I use and coherent with K Desktop Environment.

  • Sun Web applications guidelines 4,0 - Created from GUI designer, experts of usabilità, planners and diagrams, these lines guides proposes the objective to delineate a series of rules of behavior in the creation of an application usable web and works them, that the other applications can be then continuations constantly for all. Thoughts originally for internal use only to Sun Microsystems, come now shared with all the interested sviluppatori.

[Article of reference: To collection of usability guides for You add “a collection of guides for GUI designers.” to Of the .icio.usYou add “a collection of guides for GUI designers.” to redditYou add “a collection of guides for GUI designers.” to TechnoratiYou add “a collection of guides for GUI designers.” to Stumble UponYou add “a collection of guides for GUI designers.” to DiggitaYou add “a collection of guides for GUI designers.” to Wikio

Feb 18

Like creating a connection in the menu in order to execute an application.

figotip.jpg

This tip is particularly interesting for who wishes to try the last innovationes as regards applications not still pacchettizzate and wants to create a connection in the menu “Applications” to the eseguibile of the installed program. The example that I have reproduced is that one of a connection to the IDE of development Netbeans 6,0 of which they are occupied to me in post a precedence. It is made thus:

  • from root creating with editor rows netbeans.desktop on /usr/share/applications (gedit /usr/share/applications/netbeans.desktop);
  • to insert quese inside lines of the rows:
  • [Desktop Entry]
    Name=Netbeans 6.0
    Comment=IDE
    Exec=/usr/local/netbeans-6.0/bin/netbeans
    Icon=/usr/local/netbeans-6.0/nb6.0/netbeans.png
    Type=Application
    Categories=Application; Development;

  • to save, in the menu Applications will come addition the voice Programmazione->Netbeans 6.0

Here the screencast:

Gen 3

Tuxmind in creams?

The fans readers of tumind will sure have seen, if one may use the expression, that this afternoon the situated era unattainable. The effect has been the classic, hateful “internal error serveur… “, the cause a banal problem of memory allocation. I do not want certainly to make the sapientone, I write this post for giving a hand to how many were found in future of forehead to this situation. Stamani I have upgradato (ugly in Italian, but since we are in times from inglecismi…, also this then) to wordpress 2.3.2 and all it has seemed to proceed smooth. I re-enter in house to the 19:30 and “puff”, Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allotted…). (more…)