This week on twitter 2010-02-21
- Should You Pay Up and Shut Up? http://ff.im/fWqYM #
- Moblin and Maemo to merge http://ff.im/fZnFQ #
- Viral growth trumps lots of faux followers http://ff.im/fZnGw #
- Google Buzz Security Flaw http://ff.im/g6io0 #
Powered by Twitter Tools
Mod_rewrite quick tip
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
RewriteCondwith 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
This week on twitter 2010-02-14
- State of phpMyAdmin – FOSDEM 2010 http://ff.im/fyGnc #
- WordPress.com Introduces Import from Posterous http://ff.im/fDRj6 #
- RT @NotAProBlog: This cartoon sums up what I think of most comments on many blogs: http://bit.ly/auIItl #
- First Impressions of Custom Post Type http://ff.im/fKULu #
- The hidden power of a gift http://ff.im/fN9lu #
- Headcount http://ff.im/fNOIB #
- @MarcPerel I guess that means the cellphone company is trying to screw you more then your bank
in reply to MarcPerel #
Powered by Twitter Tools
This week on twitter 2010-02-07
- 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
This week on twitter 2010-01-31
- @Gluster I had performance translators but there was no improvement. Writing to glusterfs was slower then transferring the file over scp in reply to Gluster #
- @vbellur Hi Vijay we had an email conversation about this back in October. If you want I can send you my config over email in reply to vbellur #
- @Gluster no, I was using the latest 2.x version that was available at the time in reply to Gluster #
- Be sure to know your my.cnf [sections] http://ff.im/eTHrr #
- Jumping the gun http://ff.im/eTHDM #
- Japanese Scientists Create Elastic Water | Disinformation http://ff.im/eVpVB #
- A Device That Lets You Type With Your Mind | Disinformation http://ff.im/eVpVx #
- A proposal to extend the DNS protocol http://ff.im/eZnwq #
- joel comm just spammed me about giving away his ebooks. Sure if no one buys them anymore why not giving them away? at least create some buzz #
- Micro PHP LFI Backdoor http://ff.im/f0UVF #
- The Secret Diary of Steve Jobs : If you work at Google, you should read this quote http://ff.im/f1d4K #
- Email Marketing Benchmarks and Stats (Open Rates and Bounce Rates) | MailChimp.com http://ff.im/f3H6Q #
- Vim Plugins You Should Know About, Part VI: nerd_tree.vim http://ff.im/f6lm1 #
- what's up with #echofon ? doesn't let me compose messages anymore #
- the cleanPlaces extension makes firefox a LOT faster. Especially the address bar http://bit.ly/cBXQAW #
- MesQuilla & Blog Archive & Inherited Folder Properties - revisited http://ff.im/f6CCv #
- I can finally use #thunderbird 3.0 now that I managed to exclude some folders from indexing. I like how fast it can delete messages
# - Cell Size and Scale http://ff.im/f7Jj6 #
Powered by Twitter Tools
This week on twitter 2010-01-24
- Unrealized projects http://ff.im/esxAT #
- Dominic Sayers - RFC-compliant email address validator http://ff.im/ew1Q1 #
- @problogger thanking a regular windows user would be too easy...thanking a regular linux user would be something great in reply to problogger #
- @Gluster I tried that last year in October 2009 and it doesn't really work. No performance improvement. Has it improved since then? in reply to Gluster #
- Writing a custom unix style tail in PHP using Libevent API on Mac OS X 10.5.x and other platforms | Abhi http://bit.ly/4qg8I9 #
- wikileaks needs your help: http://wikileaks.org/ #
Powered by Twitter Tools
This week on twitter 2010-01-17
- Core Plugins http://ff.im/eagfm #
- Why I Believe Printers Were Sent From Hell To Make Us Miserable http://theoatmeal.com/comics/printers from @oatmeal #
- Why Its Better To Pretend You Dont Know Anything About Computers - The Oatmeal http://ff.im/eajGc #
- @djzaf this one : http://patchlog.com/php/xml-sitemaps-pligg-module-v09/ seemed to work with pligg 1.0 #
- @djzaf if that doesn't work leave a comment on that page with more details about what's not working for you #
- gmail allows you to remotely log out your other sessions. That's one feature every web app should have http://tinyurl.com/pffmva #
- @andreisavu if it would make it faster then it wouldn't be bad code anymore
...but I may be wrong, sometimes bad code means faster dev # - Wait, Google - I Thought You Were Evil! http://ff.im/egv1L #
- wpmu 2.9.1 to be released tomorrow - RT @donncha: Please add commentmeta first: http://ocaoimh.ie/wpmu-add-commentmeta/ #WordPress #wpmu #
- @Stammy watch http://patchlog.com/ I'll release a new version of my free hidden affiliate links plugin for #wordpress in a few days. in reply to Stammy #
- #amazon #ec2 volume refuses to detach even if the instance to which is attached is already terminated. That's just #stupid #
- RT: @jakemgold: RT @smashingmag: jQuery 1.4 Released: The New Features you Must Know - http://bit.ly/8MFVpi #
- How To Be Funny Without Even Trying http://ff.im/elp6t #
- @NotAProBlog lol, of course. Congrats for the problogger article. in reply to NotAProBlog #
Powered by Twitter Tools
This week on twitter 2010-01-10
- @alicam it's also an example of "ugly sites can still be popular"
in reply to alicam # - @vegasgeek xsane, works on linux and windows #
- #wordpress supports #SSH for automatic updates if the ssh2 #php extension is installed! No reason to run a ftp server anymore #
- seems like twitter tools is having a problem. added a tweet for my new blog post but no link to it #
- here's the link : http://tinyurl.com/ye8tkhy just in case you want to build your own dynamic dns service #
- @JMChia nah I was talking about a problem with the twitter-tools plugin for wordpress in reply to JMChia #
- @JMChia the thing is the plugin actually posted the update but it didn in reply to JMChia #
- @JMChia it didn't have the link in it so I don't think this is a twitter api problem in reply to JMChia #
- @JMChia also, the update was yesterday but I just noticed the problem today in reply to JMChia #
- WordPress MU 2.9.1 RC http://ff.im/dQLnp #
- Upgrading MySQL http://ff.im/dQLSj #
- Virtualmin custom dynip : http://patchlog.com/patches/virtualmin-custom-dynip/ #
- Want a Tesla Model S for free? follow @auto and you might get one #
- @joshfraser what's worse is that a lot of times there's no separation between sections in reply to joshfraser #
- over 25000 signatures on the save #mysql petition http://www.helpmysql.org/en/stats #
Powered by Twitter Tools
Virtualmin custom dynip
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)Build your own dynamic DNS service
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.
PatchLog


