Retrieve D-Link Router WPA Password via Firebug
Well I’ve done it a million times, I forget my WPA password and each time a new device comes along I have to change it for them all. Well no more!
jQuery 1.4.2 Released
Such quick turn around for the last two point releases are building my confidence in jQuery! I love to see the huge performance improvements, its almost becoming an issue to try and fit each release into our codebase at work. Love jQuery nonetheless… keep up the good work.
Relase notes: http://blog.jquery.com/2010/02/19/jquery-142-released/
Quick Summary:
- New Methods
- Performance Improvements:
- Event Rewrite: Internal Changes (not much affect our end)
- Bugs Fixes: 40 bugs fixes
Api Changes: http://api.jquery.com/category/version/1.4.2/
Automating MySQL Database Backups on the Command Line via mysqldump
Are you tired of manually running backups when you remember to?
If you are running your own server, or have access to the shell and cron jobs this tip is for you!
First off for a better understanding of mysqldump check out the MySQL reference manual. All mysqldump really does is output the necessary queries to rebuild your database to the current state it is at when run.
First I’m going to create a test database and some tables as examples:
Testing WordPress for Blackberry
Downloaded WordPress for Blackberry, seems awesome and runs well. It’s almost easier to use than the web interface. There is support for tags, categories, custom fields, excerpts, spell check, photos and more… Check it out (search google for WordPress Blackberry as I don’t have a link)
Apache: How to redirect all root domain traffic to www subdomain
Problem: Traffic comes to http://aknosis.com/something/ but they really need to go to http://www.aknosis.com/something/.
Solution: 301 Redirect via Apache with mod_rewrite.
Simple easy addition to your httpd.conf or .htaccess, I placed mine right above my wordpress mod_rewrite rules. If you are using .htaccess just dump it in that file above the wordpress redirect, if you having your rewrite rules in your httpd.conf then it needs to go inside the container:
<Directory /www/mydir/>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.aknosis\.com$ [NC]
RewriteRule ^(.*)$ http://www.aknosis.com/$1 [R=301,L]
#WordPress Here
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>
Breakdown:
RewriteCond %{HTTP_HOST} !^www\.aknosis\.com$ [NC]
If the HTTP_HOST header doesn't equal www.aknosis.com then :
RewriteRule ^(.*)$ http://www.aknosis.com/$1 [R=301,L]
Use the rewrite rule to push the request to http://www.aknosis.com/
^ - Beginning of request uri
() - Means group this into $1
$ - End of request uri
http://www.aknosis.com/$1 - Rewrite to this ($1 = the request uri)
[R=301 - Use a 301 Redirect
,L] - Make this the final rewrite rule and go
Try it out, go here (http://aknosis.com/) and you end up here (http://www.aknosis.com/). You can see the actual redirect in firebug’s net tab:
A ton of Web Developer Cheat Sheets
Stop digging in your notebook for all your hand written notes, or jumping around your My Computer, because anything you ever wanted it probably listed here: http://www.tripwiremagazine.com/tools/tools/55-seriously-useful-front-end-web-developer-cheat-sheets.html
Fun with jQuery – Checkboxes!!!
Another day with jQuery, this time we are talking about checkboxes. Just like I stated in my previous post about select boxes, jQuery and checkbox integration, if you will, isn't cut and dry but damn near close. So how can jQuery assist with checkboxes? Lots of ways, here are a few examples to keep you entertained. Try and manually select a checkbox and it will still toggle them correctly (turn them off it they are on and vice versa).jQuery selector for checkboxes
Just like any input you can choose your checkbox(es) with any standard selector.- By Class
//Selector $('.cb_class')<!-- Input Html --> <input type="checkbox" class="cb_class" />
- By Id
//Selector $('#cb')<!-- Input Html --> <input type="checkbox" id="cb" />
- By tag and attribute
//Selector $('input[type=checkbox]') //Note: This would select all checkboxes //(same code in the Toggle Checks button above)<!-- Input Html --> <input type="checkbox" />
- By tag and attribute
//Selector $('input[name=checkBoxname]')<!-- Input Html --> <input type="checkbox" name="checkBoxname" />
Google Ads
Tags
Categories
- Hardware (1)
- Information Security (2)
- Scams (1)
- Programming (13)
- JavaScript (7)
- jQuery (4)
- MySQL (2)
- php (3)
- JavaScript (7)
- Quick Tips (8)
- Ramblings (30)
- System Administration (4)
Recent Posts
Recent Comments
- Aknosis on Automating MySQL Database Backups on the Command Line via mysqldump
- brittany on Automating MySQL Database Backups on the Command Line via mysqldump
- Aknosis on More jQuery Fun – Auto Populating a Select Box
- zkilz on More jQuery Fun – Auto Populating a Select Box
- Aknosis on More jQuery Fun – Auto Populating a Select Box
