This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| AdrianH | |
| re: what is the difference between int& and int | |
| hello, | |
| In some code i see some definitions like that "int& a" and I wonder what is the difference with "int a". | |
| By the way, is it different between "char* c" and "char *c " | |
| Thank you very much and best regards, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ${COMMAND} ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add this into your Template.php drupal theme | |
| function getTerm($vid, $link, $node, $tagsymbol, $labelname) { | |
| foreach((array)$node->taxonomy as $term){ | |
| if ($term->vid == $vid){ | |
| if ($link){ | |
| $link_set[] = l((($tagsymbol)?$tagsymbol:'') . $term->name, taxonomy_term_path($term)); | |
| } else { | |
| $link_set[] = (($tagsymbol)?$tagsymbol:'') . $term->name; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Errore: | |
| in Admin o any other query to models | |
| TypeError: coercing to Unicode: need string or buffer, long found | |
| solution: | |
| da | |
| def __unicode__(self): | |
| return self.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # You can put any custom options you would normally want in settings.py into | |
| # this file. If you want to add middleware or applications, precede a setting | |
| # name with "EXTRA_". | |
| # Use a local PostgreSQL database. | |
| DATABASE_ENGINE = 'postgresql_psycopg2' | |
| DATABASE_NAME = '' | |
| DATABASE_USER = '' | |
| DATABASE_PASSWORD = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo /etc/init.d/apache2 stop | |
| sudo /etc/init.d/apache2 start | |
| or | |
| sudo /etc/init.d/apache2 restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install imagemagick | |
| cd /home/user/photos/Vacanze | |
| mkdir ridimensionate | |
| cp /home/user/photos/Vacanze/* /home/user/photos/Vacanze/ridimensionate/ | |
| cd ridimensionate | |
| mogrify -resize 640 *.jpg | |
| mogrify -resize 640×480 *.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install apache2 libapache2-mod-php5 php5-gd | |
| sudo apt-get install libapache2-mod-security php5-ldap php5-odbc | |
| sudo apt-get install openssh-server unattended-upgrades | |
| sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es | |
| sudo apt-get install curl php5-curl php5-xmlrpc | |
| sudo apt-get install clamav-base clamav-freshclam clamav | |
| sudo apt-get install mysql-server php5-mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python manage.py reset_db --router=default | |
| python manage.py syncdb | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python manage.py runserver_plus |