Entries from September 2008
Nice tip from TUAW : Add recent Applications … simply
> defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
> killall Dock
if you’ve mis-typed and the Dock would no start again you can remove this domain(com.apple.dock) and key(persistent-others) by using
> defaults delete com.apple.dock persistent-others
and redo the above…. you can also use
> defaults read com.apple.dock persistent-others
to see the current values
defaults man page and more excellent tips from MacOSXTips.co.uk
Categories: System
Tagged: defaults, Mac OSX
I am trying to use maven release plugin to cut releases, I really like maven’s dependency management, and here’s trying to use maven to manage releases. Special thanks to John and Nick.
It’s really just 3 steps :
mvn release:prepare -DdryRun=true
mvn release:clean release:prepare
mvn release:perform
But here are some things I learnt though…
- Upon release:prepare errors, use
release:rollback before release:clean (wipe out all the pom.* release.properties that’s needed for release plugin)
- Undoing subversion changes using
svn merge -r 999:998 http://subversion/project/dir to revert back to the last working version. This is because release:prepare errors might have occurred after copy checked into subversion.
And finally, some pre-requisites :
Working copy must be SNAPSHOT
Dependencies must NOT be SNAPSHOT – to overcome this I had to download and install a ’special version’ into your own (local) maven repository :
mvn:deploy
will deploy to my scm definition in my pom.xml
<scm>
<connection>scm:svn:http://subversion/project/dir</connection>
<developerConnection>scm:svn:http://subversion/project/dir</developerConnection>
<url>http://subversion/project/dir</url>
</scm>
and reference to it in your repository
<repository>
<id>vocanic-m2</id>
<url>http://subversion/m2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Mac OS subversion 1.4.4 – use this version because on Leopard, subversion 1.5.1 has a problem and somehow can’t create tags on subversion causing the release:prepare to check in the release copy but cannot move/create a tag copy – that’s where I learn (2) above – see here also
Categories: Development
Tagged: maven
Just learn t something today…
FireFox will cache your form values when you refresh a page…. I had this problem and was causing my animation to go haywire…. if you need to turn this auto caching off you can do :
<form autocomplete="off" /> or <input ... autocomplete="off" />
Categories: Development
Tagged: autocomplete, Firefox
josh@wombat:/etc/network$ more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
## Network interface(s)
## You should (un)comment and edit according to your needs.
# The primary network interface (dhcp)
#auto eth0
#iface eth0 inet dhcp
# The primary network interface (static IP)
auto eth0
iface eth0 inet static
address 192.168.1.45
netmask 255.255.255.0
#gateway 192.168.1.1
gateway 192.168.1.254
broadcast 192.168.1.255
Categories: System
Tagged: *nix, Ubuntu