Archive for October, 2012

Audio: Cheap or Free Royalty Free Music / Soundtrack / Loop

Friday, October 26th, 2012
  • JewelBeat: Very cheap ($.99 a track), ok interface, ok quality, not to easy to quick find what you need.
  • PremiumBeat: Very nice interface, good quality, various loops, kind of expensive ~$40
  • Jamendo: free to listen, pay for download. Relative expensive, ~$50.
  • Free Music Archive: all free, but very hard to search/browse. Hard to find quality things.
  • Free Stock Music: seems to be free (when registered), medium-hard to search
  • Moby Gratis: seems to be free for registered users (I did not try it)

Java: Performance monitoring Jamon to JavaSimon

Wednesday, October 24th, 2012

JAMONAPI was a great Java Library for programatic Java monitoring, but it is not really well maintained anymore

JavaSimon is relatively recent, similar to Jamon, and is actively supported. From a core monitoring point of view, it seems to have everything Jamon had, even more (nano second, nested monitor)

Here is the Jamon vs JavaSimon story

Postgresql: Changing Postgres user password

Tuesday, October 23rd, 2012

Three different ways

1. Change the password in single user mode
2. Edit pg_hba.conf and set it to trust mode, change your password,
change back to md5
3. Re-initdb your cluster.

For 1:
su - postgres (from root if you have to)
pg_ctl stop
postgres template1 (or some other database you know exists)
alter user postgres password 'newpassword';

For 2:
su - postgres
vi pg_hba.conf
// change entries at bottom to trust
pg_ctl reload
psql template1
alter user postgres password 'newpassword';

For 3:
su - postgres
pg_ctl stop
echo $PGDATA  // make sure this is set to something like /var/lib/pgsql
rm -rf $PGDATA/*
initdb // with whatever options you need.