Stories

Mostly programming stories. And linux stories.

 
  • Home
  • Programming
    • Python
      • Django
    • PHP
    • CSS
    • Javascript
  • Linux
  • Other stories
  • Sublime Slack
Menu
  • Home
  • Programming
    • Python
      • Django
    • PHP
    • CSS
    • Javascript
  • Linux
  • Other stories
  • Sublime Slack
  • Improve font rendering for IntelliJ IDEA / Pycharm in Ubuntu

    Stock font rendering in Pycharm / Intelliji IDEA is horrible on Ubuntu. To improve it, change the following:   First of all, we need to install Infinality fonts:

    Shell
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    sudo add-apt-repository ppa:no1wantdthisname/ppa
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install fontconfig-infinality
     
    sudo /etc/fonts/infinality/infctl.sh setstyle linux
    sudo gedit /etc/profile.d/infinality-settings.sh
    # and set
    USE_STYLE="UBUNTU"
     

    Installed the patched OpenJDK with fontfix:

    Shell
    1
    2
    3
    4
    5
     
    sudo apt-add-repository -y ppa:no1wantdthisname/openjdk-fontfix
    sudo apt-get update
    sudo apt-get install openjdk-7-jdk
     

    In $IDEA_HOME/bin/*.vmoptions  add the following: (PS: $IDEA_HOME is the path to IntelliJIdea or Pycharm)

    bin/*.vmoptions
    1
    2
    3
    4
    5
     
    -Dawt.useSystemAAFontSettings=lcd
    -Dswing.aatext=true
    -Dsun.java2d.xrender=true
     

    and in  $IDEA_HOME/bin/pycharm.sh or idea.sh  change the following line

    Shell
    1
    2
    3
     
    eval "$JDK/bin/java" $ALL_JVM_ARGS -Djb.restart.code=88 $MAIN_CLASS_NAME "$@"
     

    […]

    26 November, 2014 / simion / No Comments

    Read More »
  • Ubuntu – Fix large fonts for Google Chrome in Address Bar and Bookmarks bar

    Since version 35, chrome switched to Aura framework and does not follow GTK theme anymore. This leads to large font size in address bar, and bookmarks bar. However, it grabs font size settings from org.gnome.desktop.interface “font-name” property. To fix this, run the following command:

    Shell
    1
    2
    3
    4
    5
    6
     
    gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
    # or
    gsettings set org.gnome.desktop.interface font-name 'Ubuntu 11'
    # depending on your preferences
     

    You must restart chrome for this to work. FacebookTwitterGoogle+

    24 November, 2014 / simion / No Comments

    Read More »
  • Ubuntu 14.04 ctrl+alt+del shutdown dialog

    Currently , in Ubuntu 14.04 if you press Ctrl+Alt+Del, it pops out the logout or lock dialog. Many of us were used to have the shutdown/restart dialog prompted on Ctrl+Alt+Del. Here’s how you get the shutdown dialog: open System Settings -> Keyboard, click on the second tab “Shortcuts“,  and then click on the “+” icon to […]

    25 April, 2014 / simion / No Comments

    Read More »
  • Wine – Diablo 3 via Battle.net launcher error on Ubuntu 14.04

    This error occurs on ubuntu 14.04 when trying to run Diablo III from battle.net launcher: Wine – Diablo 3 via Battle.net launcher error: Please try again after logging on as an administrator To avoid this error, you must launch Diablo 3 using the following command:

    Shell
    1
    2
    3
     
    setarch i386 -3 -L -B -R wine '/path/to/Diablo III.exe' -launch -opengl
     

    Alternatively, if you want to create a shortcut, run:

    Shell
    1
    2
    3
     
    sudo gedit /usr/share/applications/diablo.desktop
     

    […]

    24 April, 2014 / simion / No Comments

    Read More »
  • Fix ugly Skype theme on Ubuntu 14.04

    Because Skype is a 32bit app and the GTK theme engine is not installed by default for 32bit, skype uses Clearlooks theme instead of the ubuntu’s gtk Ambiance theme. To fix this, install the following:

    Shell
    1
    2
    3
     
    sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386
     

    Before: Before fixing skype After: After FacebookTwitterGoogle+

    19 April, 2014 / simion / 1 Comment

    Read More »
  • Ubuntu 14.04 installing external .deb fails “Package operation Failed”

    For some reason, installing external .deb files from ubuntu software center fails. The bug is reported on launchpad. It doesn’t really matter why it is not working, because the Ubuntu Software Center itself is slow and heavy. The workaround given on launchpas is to use “dpkg -i <file.deb>” but the issue with this is that […]

    10 April, 2014 / simion / No Comments

    Read More »
  • Ubuntu 14.04 lock screen asking password twice

    So, everyone loves the new Ubuntu 14.04 lock screen, which looks exactly as the login screen. But there is an issue with it. If you lock your screen manually (Ctrl + Alt + L) and leave your computer a couple of minutes (untill it locks the screen automatically), when you unlock it, it will ask […]

    10 April, 2014 / simion / No Comments

    Read More »
  • Ubuntu – resize window with alt-right click

    To enable this functionality in ubuntu, install gconf-editor:

    1
    2
    3
     
    sudo apt-get install gconf-editor
     

    run it, and navigate to apps/metacity/general and enable "resize_with_right_button"  key.   In Ubuntu 14.04

    1
    2
    3
     
    sudo apt-get install compizconfig-settings-manager
     

    1
    2
    3
     
    ccsm
     

    Click Window Management and Resize Window. Set the key to “<Alt>Button3″   For Linux Mint (version now: 17):

    1
    2
    3
     
    gsettings set org.cinnamon.desktop.wm.preferences resize-with-right-button true
     

      FacebookTwitterGoogle+

    23 January, 2014 / simion / 1 Comment

    Read More »
  • Slow SSH login on Ubuntu

    I have recently experienced a slow ssh login issue on ubuntu 13.10 (xubuntu actually). Tried all kind of solutions from internet, nothing worked, except this: Edit the following file:

    1
    2
    3
     
    sudo nano /etc/nsswitch.conf
     

    Find the following line: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 replace with hosts: files dns Voilà! Ssh authentication working like a charm! FacebookTwitterGoogle+

    12 January, 2014 / simion / No Comments

    Read More »

Categories

  • CSS (2)
  • Django (7)
  • Javascript (1)
  • Linux (12)
  • Other stories (5)
  • PHP (1)
  • Pics (1)
  • Plugins (5)
  • Programming (10)
  • Python (7)
  • Sublime Slack (2)

Recent posts

  • Improve font rendering for IntelliJ IDEA / Pycharm in Ubuntu
  • Ubuntu – Fix large fonts for Google Chrome in Address Bar and Bookmarks bar
  • Django `CheckboxSelectMultiple` with `ModelMultipleChoiceField` generates too many queries (solution)
  • South migrations and MariaDB
  • Command/Shortcut to Lock Screen with “away message prompt” in Linux Mint 17 / Cinnamon
  • Install Skype 4.3 in Arch Linux / Manjaro
  • Sublime slack – preformatted text
  • Django get current user globally in the project
  • Invalidate template fragment cache in Django 1.5
  • Sublime Slack 1.4.3 Changelog
  • Ubuntu 14.04 ctrl+alt+del shutdown dialog
  • Wine – Diablo 3 via Battle.net launcher error on Ubuntu 14.04
  • Fix ugly Skype theme on Ubuntu 14.04
  • Ubuntu 14.04 installing external .deb fails “Package operation Failed”
  • Ubuntu 14.04 lock screen asking password twice
  • Sublime Slack 1.4.0 released
  • Sublime Slack 1.3.3 bugfixes
  • Sublime Slack 1.3.2 changelog
  • Sublime Slack 1.3 released
  • Manually generate Django password reset token
 

Recent Posts

  • Improve font rendering for IntelliJ IDEA / Pycharm in Ubuntu
  • Ubuntu – Fix large fonts for Google Chrome in Address Bar and Bookmarks bar
  • Django `CheckboxSelectMultiple` with `ModelMultipleChoiceField` generates too many queries (solution)
  • South migrations and MariaDB
  • Command/Shortcut to Lock Screen with “away message prompt” in Linux Mint 17 / Cinnamon
  • Install Skype 4.3 in Arch Linux / Manjaro
  • Sublime slack – preformatted text
  • Django get current user globally in the project
  • Invalidate template fragment cache in Django 1.5
  • Sublime Slack 1.4.3 Changelog

Tag Cloud

    14.04 apache2 archlinux battle.net bootstrap cache carousel diablo django fabric google-chrome intelliJ jqplot jquery jquery-ui kde linux manjaro mint php pycharm python shutdown-dialog skype slack social ssh sublime sublime-text-3 ubuntu ubuntu-fonts ubuntu-software wine

Pages

  • Contact
  • Sublime Text 3 Slack.com integration plugin

Categories

  • Linux
  • Other stories
  • Pics
  • Plugins
  • Programming
    • CSS
    • Javascript
    • PHP
    • Python
      • Django
  • Sublime Slack

Copyright © 2014 StoriesTheme created by PWT. Powered by WordPress.org