chirale

IT and beyond

Following code is useful when installing a module that create a new content type programmatically on Drupal 6.x. Basically, it adds two variables setting default values for comments (core Comment module) and attachments (core Upload module). Code to write on my_funny_module/my_funny_module.install. function my_funny_module_install() { // Disable attachments // Read http://api.drupal.org/api/function/upload_nodeapi/6 on “load” variable_set(“upload_my_content_type”, 0); // …

Continue reading

This howto requires: mplayer mkvtoolnix your Linux box 😉 Audio from Avi files (es. Xvid + MP3): mplayer -dumpaudio “mymovie.avi” -dumpfile mymovie_audio_track.mp3 Tracks from Matroska MKV file: List all tracks: mkvmerge -i mymovie.mkv File ‘mymovie.mkv’: container: Matroska Track ID 1: video (V_MS/VFW/FOURCC, XVID) Track ID 2: audio (A_VORBIS) Track ID 3: audio (A_VORBIS) Track ID …

Continue reading