Multiple SSL Virtual Hosts in Apache
I looked a long time for a working example of multiple SSL Virtual Hosts in Apache. Finally i found one that was working, so here you have it:
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/server.crt
SSLCertificateKeyFile /etc/ssl/apache2/server.key
ServerName domain.tld
SSLOptions StrictRequire
SSLProtocol all -SSLv2
DocumentRoot /path/to/ssl/enabled/site
<Directory /path/to/ssl/enabled/site/>
SSLRequireSSL
Order Deny,Allow
Allow from All
</Directory>
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/otherserver.crt
SSLCertificateKeyFile /etc/ssl/apache2/otherserver.key
ServerName otherdomain.tld
SSLOptions StrictRequire
SSLProtocol all -SSLv2
DocumentRoot /path/to/other/ssl/enabled/site
<Directory /path/to/other/ssl/enabled/site/>
SSLRequireSSL
Order Deny,Allow
Allow from All
</Directory>
</VirtualHost>
Source: en.gentoo-wiki.com
For the creative person that isn’t satisfied with the beauty of the C++ code itself, check out openFrameworks toolkit for artist and interaction designers (and everybody else to). This is by far the easiest way to create graphical projects in C++! Everything is taken care of, it takes to seconds to get started, and it supports all big platforms.
Love in a Lib!
Source: openframeworks.cc
C++11 Intro
Currently working a lot with C++ and thought it was time to update to C++11! Found this amazing article that goes through the basic changes in an easy way. The worlds best language just got better!
http://www.softwarequalityconnection.com/2011/06/the-biggest-changes-in-c11-and-why-you-should-care/
Source: softwarequalityconnection.com
Assembly OS X Hello World
Hello world in assembly explained in a good and easy way. Exciting stuff..
Mount a HFS+ Journal Enabled drive in Ubuntu
I had some problems with this, and didn’t find any good answers on teh internetz. But after some thinking/more googling I came up with a solution. But first, the problem:
If you want HFS+ support in ubuntu, install the following packages:
$ sudo apt-get install hfsplus hfsutils hfsprogs
I had a FAT32 external usb disk, that showed up on /dev/sdb1 on my ubuntu 10.10 server. Mounting went fine and all was dandy, but then I got the bright idea to reformat the drive to HFS+ to support my Mac. After the HFS+ reformat (on my Mac) and recopying of files, putting it back in to my ubuntu computer and trying to mount it gave me some strange errors:
$sudo mount -f hfsplus /dev/sdb1 /media/external
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail
And dmesg took me to a “unable to find HFS+ superblock” message, witch took me to this page:
http://ubuntuforums.org/archive/index.php/t-991328.html
The clue I found here was that HFS+ had two partions, and for everything to work again I had to mount the SECOND partion, not the first, in otherwords /dev/sdb2 instead of /dev/sdb1. Simple, stupid, but very frustrating if you didn’t know.
Mounting the second partion worked, but the drive was still in read only mode. That was fixed with a flag:
$ sudo mount -f hfsplus /dev/sdb2 /media/external -o forced
and a chmod and chown:
$ sudo chmod 777 -R /media/external
$ sudo chown gordito:gordito -R /media/external
Now everything works fine, and Journaling is NOT tured off! Good luck!
Beautiful Tintin animation that catches something from all 24 Tintin books.
RIP Steve!
Very cool house ad from Svensk Fastighetsförmedling, nice move!
http://www.svenskfast.se/Hemnet/Pages/ObjectView.aspx?objectid=3OK3LB3QRS6LJJ6U
Source: svenskfast.se
Putin is one busy prime minister. Where does he find time to work, I wonder?
http://www.theatlantic.com/infocus/2011/09/vladimir-putin-action-man/100147/
Source: The Atlantic
POCO C++ Lib <3
My love for this very well coded lib is unmatched for the moment!
For some Poco love in Ubuntu do this:
$ sudo apt-get install libpoco-dev
A good solution to an unsloved OS X problem!
http://itunes.apple.com/se/app/moom/id419330170?mt=12
Check out more good stuff at ManyTricks.com
Source: itunes.apple.com


