Paolo Granada Lim

I am a programmer in Cebu, Philippines.

  • Ubuntu
  • Music
  • Running
  • Books
    • 0
      7 Oct 2011

      Garmin Forerunner 305 on Ubuntu 11.04

      • Edit
      • Delete
      • Tags
      • Autopost

      This is a simple way to get data from a Garmin Forerunner 305 under Ubuntu (only tested it under 11.04 natty narwhal).

      Install the plugin:

      sudo add-apt-repository ppa:andreas-diesner/garminplugin
      sudo apt-get update
      sudo apt-get install garminplugin

      After that, you go to connect.garmin.com and the forerunner will now be automatically detected.

      Source here.

      --update 11-4-2011-- I can't get this to work in ubuntu 11.10 oneiric ocelot

      • views
      • Tweet
    • 4
      25 Jan 2011

      How I setup my Emacs in Ubuntu

      • Edit
      • Delete
      • Tags
      • Autopost

      install emacs

      sudo apt-get install emacs23

      initialize config files
      Using a bare emacs install is not very exciting, so I add some custom configs. There's a lot in the web, people usually boast their emacs configs with each other. Currently I really like technomancy's config files which is in github. Maybe someday when I learn lisp I'll be able to make some configs of my own.

      Get technomancy's emacs config.
      git clone https://github.com/technomancy/emacs-starter-kit.git

      Turn it into the emacs config folder
      mv emacs-starter-kit .emacs.d

      I also install haml support since I code rails a lot.
      sudo apt-get install haml-elisp

      I also add a few custom bindings.

      Add this line to ~/emacs.d/init.el
      (add-hook 'before-save-hook 'delete-trailing-whitespace)
      This will delete all trailing whitespace when you save a file.

      give emacs a shortcut
      I use emacs a lot so I find it much better to give it an alias instead of typing "emacs -nw" all the time. I bind it to "e" since this character is always available.

      Add this line in ~/.bashrc.
      alias e='emacs -nw'

      Then reload your settings
      . ~/.bashrc

      And I'm set!

      • views
      • Tweet
    • 2
      9 Jan 2011

      How to setup Xmonad with Gnome in Ubuntu 10.10

      • Edit
      • Delete
      • Tags
      • Autopost

      Xmonad is a cool tiling window manager for ubuntu. Though there are lots of other window managers out there (like dwm and scrotwm). The main reason why I liked Xmonad more is because you can combine it with gnome. This means that you can still drag windows around and you get to keep the panels. And also because I really like the new ubuntu font in 10.10. :D

      I also used kupfer so I can quickly search and startup programs. There is also gnome-do, which has prettier UI, though I like kupfer more since it doesn't create new instances of a program when one is already running.

      First you install Xmonad and Kupfer

      sudo apt-get install xmonad kupfer

      Then you set your default window manager to Xmonad

      gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string

      Then create this file in your home directory (~/.xmonad/xmonad.hs)

      import XMonad import qualified XMonad.StackSet as W import XMonad.Config.Gnome import XMonad.Util.EZConfig import XMonad.ManageHook import XMonad.Actions.CycleWS import XMonad.Hooks.EwmhDesktops import XMonad.Hooks.SetWMName import XMonad.Hooks.ManageHelpers import XMonad.Layout.NoBorders myManageHook :: [ManageHook] myManageHook = [ resource =? "Do" --> doIgnore , isFullscreen --> doFullFloat ] main = xmonad $ gnomeConfig { modMask = mod4Mask , terminal = "urxvt" , borderWidth = 2 , manageHook = manageHook gnomeConfig <+> composeAll myManageHook , logHook = ewmhDesktopsLogHook >> setWMName "LG3D" -- java workaround , layoutHook = smartBorders $ layoutHook gnomeConfig } `additionalKeysP` [ ("M-S-q", spawn "gnome-session-save --gui --logout-dialog") -- display logout-dialog -- Lock Screen , ("M-S-l", spawn "gnome-screensaver-command -l") , ("M-p", spawn "kupfer") , ("M-", spawn "kupfer") , ("", nextWS) , ("", prevWS) , ("M1-", windows W.focusDown) , ("M-", nextScreen) , ("M-", prevScreen) ]

      ...thanks to @poymode and @engwan for helping me with setting this up on my pc. And also to markjeee for brainwashing us with these cool stuff. :D

      • views
      • Tweet
    « Previous 1 2 3 Next »
    • Search

    • Tags

      • life
      • running
      • music
      • books
      • tutorials
      • programming
      • emacs
      • work
      • ideas
      • productivity
      • thoughts
      • fun
      • linux
      • places
      • travel
    • Archive

      • 2012 (15)
        • April (2)
        • March (9)
        • January (4)
      • 2011 (46)
        • November (3)
        • November (10)
        • October (4)
        • September (7)
        • August (5)
        • July (3)
        • June (1)
        • April (1)
        • March (3)
        • February (4)
        • January (5)
      • 2010 (36)
        • November (1)
        • October (1)
        • September (3)
        • August (2)
        • July (4)
        • June (5)
        • May (9)
        • April (3)
        • March (5)
        • February (1)
        • January (2)
      • 2009 (2)
        • December (2)
    • Obox Design
  • Paolo Granada Lim

    I currently work at:
    http://caresharing.ph

    My current side project
    http://uberder.com

    My side team
    http://codecampr.com

    My other links
    http://facebook.com/paologlim
    http://twitter.com/paologlim
    http://www.linkedin.com/in/paologlim

    Stuff I've been reading
    http://www.google.com/reader/shared/paologlim

    I also contribute to these blogs
    http://buhaystartup.com
    http://stuffwageesays.com
    http://runnroo.com

    49012 Views
  • Get Updates

    Subscribe via RSS