Monday, June 21, 2010

SBT

SBT is a great tool, it is great like maven did to java and now SBT over maven
  • Making own repository for maven using SBT is at link (GOOD)
  • checkout and read more/build from
  • SBT commands ref
  • install scala from scala-lang.org download lzPak and use java -jar to install and setup bin in PATH install sbt
    java -Dhttp.proxyUser=username -Dhttp.proxyPassword=mypassword -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"
    $ chmod u+x ~/bin/sbt

creating Project and Plugin file to generate IDEA
SBT IDEA plugin
and Eclipse project files:
  • mkdir project/build
  • mkdir project/plugins
  • nano project/build/MyProject.scala

  • nano project/plugins/MyPlugins.scala

  • uncomment 2 lines in "MyProject.scala" for "Eclipse/Idea" plugin to get effective
  • sbt] reload
  • sbt] update
  • sbt] eclipse (this will generate .classpath and .project file for eclipse)
  • sbt] idea (this will generate .ipr and .iml file for IntelliJ Idea IDE)
  • rerun the eclipse/idea when there is change in dependencies in Project.scala this will regenerate the project files , then refresh project in IDE, all will be fine !

Sunday, June 20, 2010

ubuntu install

This is how I installed ubuntu for my dev machine

  1. if you ever get complain of installer about "dpkg" pakage installer
    run this as "sudo rm /var/lib/dpkg/lock"
  2. system = admin = update manager will take some 30+ mins, 
  3. to move window buttons to right
    run alt+E2 = gconf-editor = apps/metacity/general change buttons=menu:min,max,close
  4. install tree command: sudo apt-get install tree
  5. install "terminator" (MY FAVORITE) split-pane terminal like "PowerCmd" for Windows

    sudo add-apt-repository ppa:gnome-terminator
    sudo apt-get update
    sudo apt-get install terminator

  6. sudo apt-get install ubuntu-restricted-extras
    will get codecs too

    install "community-themes"
    install "ttf-droid" for Droid fonts
    install msttcorefonts

  7. install ubuntu-tweak as follows

    sudo add-apt-repository ppa:tualatrix/ppa
    sudo apt-get update
    sudo apt-get install ubuntu-tweak

  8. right-click desktop = appearance Prefs
    = fonts tab (set all to 9px from 10 px)
    = special effects tab (select 3rd option)
    (will work better for better drivers/video cards)
  9. (optional) awn-settings for fish-eye icons
    APT Line: ppa:kupfer-team/ppa kupfer
    APT Line: ppa:do-core/ppa gnome-do
  10. clipboard manager parcellite
  11. gedit plugins here
  12. APT Line: ppa:chromium-daily/beta chromium-browser
  13. (optional) desktop-webmail
  14. (optional)Time Tracking hamster-applet alarm-clock
  15. (optional)APT Line: ppa:inkscape.testers/ppa inkscape
  16. (optional)gimp or kolourPaint (is best like MSPaint)
  17. (optional)Backup tool - backintime-gnome
  18. (optional)DVD playback libdvdread4

    Then, within a Terminal window, enter:
    sudo /usr/share/doc/libdvdread4/install-css.sh
  19. sudo apt-get purge flashplugin-installer nspluginwrapper
  20. *ettercap = sniffer/logger/interceptor
  21. *shutter = screen capture program
  22. *luckybackup = backup and sync tool
  23. *DVD burner "BraSero" sudo apt-get install ubuntu-restricted-extras
    sudo /usr/share/doc/libdvdread4/install-css.sh