Varia - Good applications

InstallWatch records modifications made to your PC during the installation of software, hardware, or configuration changes.

IsoBuster is a highly specialized and easy to use CD, DVD and blu-ray (BD, HD DVD) data recovery tool.

Varia - Salome TMF

-- Replace a string in the action steps.
UPDATE action_test SET description_action=REPLACE(description_action, 'Pubication', 'Publication');

Drupal - Draft, approval, publication, revision

The basic use case of a content management system where contents need to be validated before they are being published is being implemented in the Revisioning module. Obviously, the module offers much more fonctionnalities than that but for this tutorial, I will stick to the following use case described on their project's website:

DOS - Rename filenames without special characters

REM *******************************************************************************
REM Description: Rename filenames(*.pdf and *.xls) without 
REM               specials characters(e.g. spaces, double underscores).
REM Author: Xuan Ngo
REM Note: Command Prompt's code page is different than Windows' code page. 
REM       Therefore, I switched Command Prompt's code page to be the same 
REM       as Windows' so that I can replace accent characters(e.g. à, é, â, etc ).
REM *******************************************************************************

Bash - Print the full path of the current directory

pwd

Drupal - Create a sub-theme

In this tutorial, we will create a sub-theme of the Garland theme.

  1. Create a directory for your sub-theme(e.g. .../sites/all/themes/mySubTheme)
  2. Create an .info file for your sub-theme(e.g. .../sites/all/themes/mySubTheme/mySubTheme.info)
    name = Mysubtheme
    description = A tutorial showing how to create a sub theme.
    core = 6.x
    engine = phptemplate  
     
  3. Add the following line in your sub-theme's .info file to declare that your theme is the sub-theme of another.
     

Drupal - Install modules and themes

Install modules and themes

General steps to install modules, unless otherwise stated in the README.txt

  1. Decompress modules that you downloaded from http://drupal.org/project/modules.
  2. Put it in .../sites/all/modules.
  3. Go to Administer->Modules, check the modules.
  4. Click on the Save Configuration button.
  5. Click on the update.php link, located at the beginning of the page and follow the instructions.

General steps to install themes, unless otherwise stated in the README.txt

SQL - Search and replace string

UPDATE tableName SET fieldname = REPLACE(fieldname, 'replace this string', 'with that string');
 
--Replace Smth with Smith
UPDATE Person SET lastname = REPLACE(lastname, 'Smth', 'Smith');

Drupal - Themes development

Java - Use ResourceBundle and properties files to add multilanguage support to your application

import java.util.Locale;
import java.util.Properties;
import java.util.ResourceBundle;
import java.io.FileOutputStream;
 
/**
 * Show how to use ResourceBundle and properties files to add multilanguage 
 * support to your application.
 * Note: You will get the following error message:
 * java.util.MissingResourceException Can't find bundle for base name, locale...
 * If the properties are not placed at the right place. Here are the solutions:
 * 
 * 1)
 * Copy all properties into the build folder(e.g. bin\ folder)
 * or
 * 2)

Syndicate content