Marco Monacelli
Document Freedom Day 09 
Thursday, March 12, 2009, 02:49 PM
Posted by Administrator
FSUGitalia "Free Software User Group Italy" organize the Document Freedom Day 09 for italy.
the event will be March 25 at the "Centro Polifunzionale, Opera(MI) Italy", Street Gramsci 21.
Is a very important event.



add comment   |  permalink   |   ( 3 / 291 )
Proxy Asio implementation SOCKS5 
Friday, October 31, 2008, 01:03 PM
Posted by Administrator
Today i study rfc 1928 for proxy SOCKS5 and i try to implement a cross platform implementation of SOCKS5 protocol with ASIO library.

Asio is a Cross Platform Networking library very interesting.

Asio comes in two variants: (non-Boost) Asio and Boost.Asio.

Boost is a Strong C++ Cross Plattform framework.

I want write a little tutoria for Asio Programming.

add comment ( 11 views )   |  permalink   |   ( 2.9 / 353 )
TIps of the day:XPM compile warning 
Sunday, August 31, 2008, 07:09 PM
Posted by Administrator
SO: All posix
Type: Resource Compilation
Language: C\C++
Title: XPM compile warning


Recently with new versions of gcc, when trying to compile an image XPM, at compile time you receive the following error:

warning: deprecated conversion from string constant to `char*

Solution:

This is because some image editor save the xpm images as struct of char pointers, for remove warning simply edit a XPM image and change the struc as follows:

/* XPM */
static char * myimage_xpm[] = {

to

static const char * myimage_xpm[] = {

add comment ( 1 view )   |  permalink   |   ( 2.9 / 320 )
TIps of the day: NetBeans 6.1 where is my jsf component? 
Saturday, July 26, 2008, 02:20 PM
Posted by Administrator
SO: Java
Type: Tips
Language: Java
Title: NetBeans 6.1 where is my jsf component?

Yesterday i have upgraded some project from NetBeans 6 to NetBeans 6.1.

Question:
When i insert a new component in a jsf page with the visual web plugin the new component is not automatically declared in the page bean. Where is my jsf component?

Solution:
With NetBeans 6.1 the "automatic" binding of component with page bean is not really automatic. This improves the performances of the page and allows the programmer to create bindings only if they are necessary for the business logic. It is also possible to click on the component with the rigth button and automatically enable\disable the binding attribute for the component.
add comment   |  permalink   |   ( 3.1 / 365 )
Snippets of the day: Random Number in C++ 
Tuesday, July 22, 2008, 12:08 PM
Posted by Administrator
SO: Microsoft Windows\Posix
Type: Random Number
Language: C++
Title: Random Number in C++

To generate random number in C\C++ we can use the functions rand() and srand().

The first function generate a pseudo\random number and srand set the start of random generation, this information are a integer.

WARNING: if you use only rand function the result of the function are predictable. A good example are this.

#include <stdio.h>
#include <strlib.h>
#include <time.h>

int main()
{
srand(time(0));
int rand1 = rand() % 10; //random number da 0 - 9
return 0;
}

add comment   |  permalink   |   ( 3 / 327 )

| 1 | 2 | 3 | Next> Last>>