Saturday, January 22, 2011

Install Lingoes translator tool in Ubuntu/Linux ... or give it a try to a Linux native dictionary software: Goldendict

1) Install Wine Compatibility Layer (WineHQ):
winetricks should be also installed as default, if not also install winetricks.

2) Install Internet Explorer 7 via winetricks:
Open terminal and type "sh winetricks ie7" then follow the instructions.

3) Copy "mfc42u.dll" file to system and system32 folders:
http://www.dll-files.com/dllindex/dll-files.shtml?mfc42u

4) Download and install Lingoes translator tool (version 2.7.1 tested):
http://www.lingoes.net/en/translator/download.htm

5) Open "Internet Explorer" with Wine and edit "ActiveX Controls" settings:
Tools -> Internet Options -> Security
Click "Custom Level" for "Internet" zone and enable ActiveX Controls
Enable "Download signed ActiveX Controls"
Probably Internet Explorer will not be your default Internet browser in Linux, therefore security warnings due to those settings might not be so important.

6) You may also install the fonts like following way:
sh winnetricks fakejapanese
sh winnetricks fakekorean
sh winnetricks fakechinese

7) You can add speech functionality, if you like:
Go to http://www.lingoes.net/en/translator/speech.htm and follow the instructions.

Except hot-keys and text capturing from the screen Lingoes might work well.

GoldenDict:
GoldenDict is a great dictionary software and natively supported in Linux Distributions.

Supported dictionary files:
  • Babylon .BGL files,
  • StarDict .ifo/.dict./.idx/.syn dictionaries,
  • Dictd .index/.dict(.dz) dictionary files, and more.

GoldenDict official website:
http://goldendict.org

Friday, September 10, 2010

Playing with Django 0.96 - Class Meta & Class Admin

>>> for m in ModelName._meta.__dict__:
...       m
...
'unique_together'
'order_with_respect_to'
'installed'
'auto_field'
'has_auto_field'
'many_to_many'
'ordering'
'one_to_one_field'
'object_name'
'parents'
'db_tablespace'
'pk'
'verbose_name'
'get_latest_by'
'db_table'
'permissions'
'admin'
'fields'
'verbose_name_plural'
'app_label'
'module_name'
'aka'



>>> for m in ModelName._meta.admin.__dict__:
...       m
...
'list_select_related'
'save_as'
'save_on_top'
'list_per_page'
'ordering'
'fields'
'list_display'
'search_fields'
'js'
'date_hierarchy'
'list_filter'
'list_display_links'
'manager'


... Class Admin:
...       list_select_related = True
...       list_per_page = 20
...       manager = MyAdminManager()


Class MyAdminManager(models.Manager):
...       def get_query_set(self):
...             query_set = super(MyAdminManager, self).get_query_set().filter(id__gte=5)
...       return query_set

Thursday, July 22, 2010

Avidemux : Crossplatform free video editor

Avidemux is crossplatform free video editor.
Split, cut and remove the unwanted scenes, join or convert your video files without any hassle.

Download links:

http://download.cnet.com/Avidemux/3000-13631_4-10829933.html
http://fixounet.free.fr/avidemux/

Friday, June 25, 2010

Fan speed control of a Dell PC in Linux Distrubition

1. Install gkrellm application from the package manager or the link below:
http://linuxappfinder.com/package/gkrellm

2. Install gkrellm-i8k or i8kutils plugins:
Here the links for download, you can also search them from your package manager:
* Debian package - gkrellm-i8k_2.5-1_i386.deb
http://packages.debian.org/lenny/i386/gkrellm-i8k/download
* Red Hat package - i8kutils-1.25-16.i586.rpm
http://fr.rpmfind.net/linux/rpm2html/search.php?query=i8krellm.so

3. Then try following:
Type in terminal sudo modprobe i8k force=1
Edit /etc/modulesand add i8k force=1 to the end of the file.
Another way if /etc/modules does not exist is editing the file /etc/rc.local and adding modprobe i8k force=1

You may also need to configure your GKrellM application for Dell I8K Plugin.

Saturday, March 21, 2009

Saturday, March 14, 2009

Some linux stuff

httpd.conf
/etc/apache2/httpd.conf

crontab usage

crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)


visudo

List of who can run what
/etc/sudoers

Lock file for visudo
/etc/sudoers.tmp