This week on twitter 2010-02-21

February 21, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

Mod_rewrite quick tip

February 17, 2010 · Posted in Web · Comment 

This may be obvious for some mod_rewrite experts but I spent a lot of time to figure it out and I get the feeling I hd this problem before and I forgot what the solution was so here it is:

Mod rewrite does NOT match your pattern on the query string but only on the path part of the URL.
To match the query string you must use the RewriteCond rule.

From mod_rewrite documentation:

Note: Query String

The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable. You can, however, create URLs in the substitution string, containing a query string part. Simply use a question mark inside the substitution string, to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine a new query string with an old one, use the [QSA] flag.

That last  part about QSA was the one that made me rediscover this :)

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-02-14

February 14, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-02-07

February 7, 2010 · Posted in General · Comment 
  • Hunters and Farmers http://ff.im/fjQws #
  • xvidcap is the best screencasting software for #linux, but why doesn't it capture audio? #
  • @problogger that's my policy too, and tweetdeck makes it easy too with both actions on the same button. in reply to problogger #
  • #chrome may be a bit faster but for some reason I keep coming back to #firefox. #
  • @bensonk42 firebug, working session save/restore, all those saved passwords :) #chrome seems like just an experiment good to play with in reply to bensonk42 #
  • @wpvibe why is a vulnerability in joomla called "wordpress iframe injection" it makes it sound like it's wp's fault. in reply to wpvibe #

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-01-31

January 31, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-01-24

January 24, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-01-17

January 17, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

This week on twitter 2010-01-10

January 10, 2010 · Posted in General · Comment 

Powered by Twitter Tools

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

Virtualmin custom dynip

January 6, 2010 · Posted in Patches · 1 Comment 

Virtualmin has this nice feature where you can enable dynamic host and virtualhost updates so when your ip changes virtualmin updates the ips in the virtualhosts definitions. Without this feature your sites would not work anymore if your ip changes and you would have to update the ips manually.

The problem with this feature is that it only supports the DynDNS service and not everyone is using this service to update their host when their ip changes.

I'm using my own dynamic dns service and the good news is that this service is using the same protocol as DynDNS so virtualmin needs little change in order to support it.

All I had to do was add a way of specifying the hostname and port of the dynip update server.

Here's the patch for virtualmin ( tested with 3.75 and 3.76 ) :

Virtualmin custom DynIP patch-1.0 (3.74 KB)
  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

Build your own dynamic DNS service

January 4, 2010 · Posted in Patches · 1 Comment 

Q: Why would you want to run your own dynamic DNS service?

A: Because you have your own domains that you want to use as the parent domains for your hosts and you already have all required ingredients ( a linux server with a static ip that's always up and runs bind and apache with php )

Q: How do you run your own dynamic DNS service?

A: get DDNS Server, read the README file and set it up. The nice thing about this script is that it uses the same protocol as the popular DynDNS service so any dynamic ip update client like ddclient would work with this script. Of course the client would have to allow you to specify the hostname or ip and port of the dynamic dns server.

Oh and one more thing, if you're running bind you're probably running it in a chroot environment so you'll have to apply the following patch to DDNS Server ( current version 1.0.0 ) to make it work with the chrooted bind :

DDNS Server Bind chroot patch-1.0 (3.3 KB)

This patch adds a new configuration option named BIND_CHROOT ( in config.php ) that has to be set to the path of the chroot environment where bind runs. Eg. on centos 5.3 this is /var/named/run-root .

For any questions or suggestions hit the comments.

  • Twitter
  • Digg
  • Reddit
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • DZone
  • NewsVine
  • Technorati
  • Simpy
  • email
  • Facebook
  • Google Bookmarks
  • Live
  • Sphinn
  • co.mments
  • SphereIt
  • Wikio
  • FSDaily
  • Mixx
  • RSS
  • Tumblr
  • Yahoo! Bookmarks

Page 1 of 2012345...Last »