-
how to mount a CD/DVD image under Linux
How to mount a cd/dvd image under GNU/Linux. I don’t use so frequently this command, so I tend to forget it. # mkdir /media/iso # mount -o loop=/dev/loop0 “/path/to/iso/my_iso.iso” \ /media/iso -t iso9660
-
collapsible content using contemplate
How to make a collapsible content body with Contemplate and the Drupal core “collapsible” function? Make sure you’ve Contemplate enabled (through admin/build/modules) Go to admin/content/templates and choose the type you want to display collapsible content within. Enable body contemplate checking “Affect body output” and write (change field names): <?php drupal_add_js(‘misc/collapse.js’); drupal_add_js(‘misc/drupal.js’); ?> <fieldset class=”collapsible collapsed”> […]
-
i can patch this!
*nix command of the day: diff -Naur old new > new.patch Where “old” and “new” are files or directories to patch. Example (a Drupal patch for IDs duplication): $ patch -p0<fapi-5.x-dupe-id_111719-151.patch patching file includes/form.inc $ Creating patch for Drupal: diff -up original.php new.php > filename.patch another example: diff -up path/to/file/example.module path/to/file/exampleNew.module > mypatchname.patch See also: […]
-
How to listen webpages with Konqueror
In Italian: apt-get install festival apt-get install festvox-ita* Open Konqueror, go to the speech option in the tools menu (in Italian localization: Strumenti > Configura testo). Set a voice at your choice and check the sound settings. After that, you can listen webpages through the speech tool menu via festival, it’s good to check website […]
-
Enable Drupal clean URLs on tophost.it
Supposing you have uploaded the Drupal codebase on htdocs, you have to: Verify that htdocs/.htaccess files is present Modify htdocs/.htaccess: uncomment the RewriteBase line and set it to: RewriteBase / Run the Clean URL test on admin/settings/clean-urls and then Enable clean URLs Job done! See also: Tophost Clean URLs FAQ Clean URL con Tophost