Thursday 22 January 2015

Premium Link Generators

http://www.exrapidleech.info/index.php
http://generatorlinkpremium.com/
http://debridx.com/download

Wednesday 21 January 2015

Fix : Google Chrome can not be run as Root user

" Google Chrome can not be run as Root user Please Start Google Chrome as a normal user. To run as Root, you must specify an alternate –user–data-Dir for storage of profile information. "
Edit file: #vim /opt/google/chrome/google-chrome
change the line:
exec -a “$0″ “$HERE/chrome” “$PROFILE_DIRECTORY_FLAG” \
to: exec -a “$0″ “$HERE/chrome” –user-data-dir “$PROFILE_DIRECTORY_FLAG” \

Make Firefox for Linux use Dolphin to ‘Open Containing Folder’

KDE --> System Settings --> File Associations --> inode/directory --> move Dolphin up to the first position

Monday 19 January 2015

git diff showing a weird output

Source: http://www.jpichon.net/blog/2013/05/git-diff-showing-weird-output/ Either of these commands things works well: $ git --no-pager diff # No paging $ git diff --color | less -R # With paging #export LESS='-M -R'

Monday 12 January 2015

Django - Translation check list

1. Mark your text for translation. ex: a. In template: using {% load i18n %} (at the top but have to be after the 'extends' tag) and {% trans 'text to be translated' %} b. in your code: from django.utils.translation import ugettext as _ ; _('Your text to be translated here') 2. Build the message file for language translations (creating .po files: ./manage makemessages -l vi (my django-admin.py doesn't work for me) You can run this again to reexamine the other text 3. Compile messages files ./manage compilemessages (do this again after you make changes to your po file 4. settings file LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), ) LANGUAGE_CODE = 'vi' 5. use URL international with i18n_patterns and set_length() add django.middleware.locale.LocaleMiddleware to MIDDLEWARE_CLASSES Use this form to set user's language preference
{% csrf_token %}
6.Others: TEMPLATE_CONTEXT_PROCESSORS += ( 'django.core.context_processors.request', ) add this to use request.get_full_path in your template

Friday 9 January 2015

Activating Unicode/UTF-8 Support and Changing Default Locale Language in Slackware

Source: http://gnu-linux-slackware.blogspot.com/2009/06/changing-system-wide-default-language.html For a list of locales which are supported by your Slackware box, type: $ locale -a If you have full installation of Slackware, all languages will be listed. To get UTF-8 support, edit lang.sh file as root by: # nano /etc/profile.d/lang.sh Comment default locale and add uncommented line export LANG=en_US.UTF-8 After modifying lang.sh file, save it and reboot your computer.

Thursday 8 January 2015

Konsole command -the text starts from the same line overwriting the prompt

Try enclosing each of the colour escape sequences in escaped square brackets. ex: PS1='\[\e[0;31m\]\t\[\e[m\]-\[\e[0;32m\]\u\[\e[m\]@\[\e[0;36m\]\h\[\e[m\]:\[\e[0;23m\]\w\[\e[m\e[0;32m\]\$\[\e[m\]'