How to use freebsd-update to update your FreeBSD kernel and world system
Information
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-freebsdupdate.html
Keep in mind, if you have a custom kernel that you need to upgrade your kernel manually!!!
Usage
The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 7.[01234]-RELEASE, 8.[01]-RELEASE, 8.2-BETA1, or 8.2-RC[123] can upgrade as follows:
# freebsd-update upgrade -r 8.2-RELEASE
During this process, FreeBSD Update may ask the user to help by merging some configuration files or by confirming that the automatically performed merging was done correctly.
# freebsd-update install
The system must be rebooted with the newly installed kernel before continuing.
# shutdown -r now
After rebooting, freebsd-update needs to be run again to install the new userland components:
# freebsd-update install
At this point, users of systems being upgraded from FreeBSD 7.4-RELEASE or earlier will be prompted by freebsd-update to rebuild all third-party applications (e.g., ports installed from the ports tree) due to updates in system libraries.
After updating installed third-party applications (and again, only if freebsd-update printed a message indicating that this was necessary), run freebsd-update again so that it can delete the old (no longer used) system libraries:
# freebsd-update install
Finally, reboot into 8.2-RELEASE:
# shutdown -r now
How to use the exec() and system() function and capture the returned output in Perl
When you want to execute a program you sometimes want to use the result of the program you executed.
exec(PROGRAM); $result = system(PROGRAM);
Both Perl's exec() function and system() function execute a system shell command. The big difference is that system() creates a fork process and waits to see if the command succeeds or fails - returning a value. exec() does not return anything, it simply executes the command. Neither of these commands should be used to capture the output of a system call. If your goal is to capture output, you should use the backtick operator:
$result = `PROGRAM`;
Found this information in a post by Kirk Brown.
How to add week numbers to iCal on Mac OS X
To make Mac OS X show week numbers in iCal is actually not that difficult.
You simply need to add the week number to the full date notation and your done.
Goto the System preferences

Path: » System Preferences...
Goto Language & Text

Path: » System Preferences... » Language & Text
Goto the tab Formats and then click Customize...

Path: » System Preferences... » Language & Text » Formats
You will see a window where you can modify your notation format for date and time.
Now you have to put the week number of the year in the right place. Follow the red arrows
Drag the week number to the full date field

Path: » System Preferences... » Language & Text » Formats » Customize...
Finally close all windows and check the clock on the top right.

Now start your iCal and check the date bar at the top.

As you see, its really simple to get this done
NOTE: Offset in the week number
Be sure you have the right country selected for your formats. Else you might end up with a week number with an offset. In my case the week number would be one week ahead. This cause my main country is The Netherlands and I have my system on United Kingdom. The thing you have to do is first select Dutch -> Nederlands and then change the week number. It might show weird having Dutch day names in iCal but hey... Apple made it work like this out of the box
Update 26-07-2011:
This works only for iCal versions below 5.0 which runs on 10.7 Lion, due the iPad layout the week numbers are not possible in this way!
As a temporarily solution subscribe to one of these (open page, click subscribe button):
- For European: http://icalshare.com/calendars/195
- For Norwegian: http://icalshare.com/calendars/190




