MAC 10.7 Lion on Macbok – disk cannot be used to start up your computer

August 13, 2011

Today i tried to upgrade Mac Snow Leopard 10.6.8 to 10.7 Lion.

Installer ended up with an error: disk cannot be used to start up your computer.

After browsing around the internet, i found a simple solution that worked – i just had to shrink my mac partition from 250gb to 100gb :)

MRTG: SNMP V3 libraries not found, SNMP V3 disabled

July 25, 2011

While configuring MRTG for the first time after installation, i ran on the following error message from cfgmaker:

WARNING: SNMP V3 libraries not found, SNMP V3 disabled. Falling back to V2c.

Missing libraries were the problem, so on Ubuntu, this solved my problems:

sudo  apt-get -y install libnet-snmp-perl libcrypt-hcesha-perl libcrypt-des-perl libdigest-hmac-perl

Restart PostgreSQL sequence – how to?

September 16, 2010

I thought this would work:

ALTER SEQUENCE users_id_seq  RESTART WITH (SELECT MAX(id) FROM users);

but it doesn’t! :O It throws “ERROR:  syntax error at or near “select” “!

If you have this problem, try the other approach:

SELECT SETVAL(‘users_id_seq’,(SELECT MAX(id) FROM users));

Tested on version 8.4.0, on FreeBSD 8.0…


Follow

Get every new post delivered to your Inbox.