Skip to Content

How to create SVN user

I never remember how to create SVN user, so here it goes:
 
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd <username>
(-c only for the first user)

 

Dangerous name made safe

Just a fast and easy way to remove any strange character from string (in php):
preg_replace('/[^a-z0-9_]/', '_', strtolower($my_string);

MySQL regexp to filter invalid email addresses, in Propel

Two lines to make sure there are no invalid email addresses in the returned result of a propel query. To use in Symfony... The expression ensures that the string starts with at least one character which is not @, then a @, then another non-@ non-empty sequence, then a dot, then at least two non-@ characters (ie. TLD) and end of string. I.e. not RFC822 conformant, but most of the time sufficient.
$regex = UserPeer::EMAIL . " REGEXP '^[^@]+@[^@]+\.[^@]{2,}$'";
$criteria->add(UserPeer::EMAIL, $regex, Criteria::CUSTOM);

Suits

Trying to figure out how to write playing cards suits using unicode characters, I found out that the absolutely easiest way is to simply copy/past them and not write them at all. Though one must have a source to copy from and to easily have that in the future, I post them here:
♠♣♥♦
If interested in using unicode anyway - here's a chart: http://www.unicode.org/charts/PDF/U2600.pdf (also attached to this post)

DS207+ and A-110 - let's talk NFS

Ok, so I am getting closer and closer to The Über Media System (NAS and a simple media player). I have now connected a Popcorn Hour A-110 to my Synology DS207+.

Not within the allowed path

I found out that there was a new firmware for my Synology DS207+ NAS - of course I had to upgrade! After downloading and installing DSM 2.0-0722 some old errors were kind enough to return again... I had solved them once already, but my gold-fish memory prevented me from remembering exactly how. So I figured I better put the instructions here for the next time...

Installing symfony on Synology DS207+

Time install Symfony on the NAS.
I decided to follow the Symfony tutorial My first symfony project. So I downloaded the sf_sandbox_1_1.zip, unzipped and copied to the /web folder. A happy page congratulated me when visiting http://192.168.x.x/sf_sandbox/web/index.php/ but when I tried the command php symfony propel:build-model the happy time was over.

The start

Ok, after installing Drupal 6.4 (so I can track what I am doing by... blogging...) it is now time to start installing Symfony on my Synology DS207+. Oh, note to self, next time - remember to remove .htaccess when installing Drupal on One.com account.

Syndicate content