Code Clarity (TM) offers handcrafted and elegant Small Business Websites and Web Applications. We ar Web Development and Design firm based out of Boulder, Colorado. We specialize in W3C Standard complaint websites, SEO Marketing, PHP, Ruby on Rails, and much more. We also contribute to many open-source projects with interest and passion for Linux and Android.
This post originated on Forrst at, http://forr.st/~Vfg.
This is a very handy little PHP script. It allows you to perform a simplesearch and replace on your SQL database. Very helpful with Wordpress domain transfers among other usages when it comes to modifying your database.
When you’re migrating WordPress (or any other platform using serialized PHP strings in the database) between domains, you must use a safe search and replace method that preserves the integrity of the serialized string lengths. A simple of a dump file for localhost to, for example, thenewdomain.com is problematic because the length of the string changes but the indexes for the serialized strings does not. Consequently settings are lost and widgets disappear. Not good.
This script can now also handle multiply nested serializations, which can happen in transient values in WP at times, and it can also handle multi-byte Unicode changes safely. This is important now that internationalised domain names are allowed.
IT’S NOT ONLY FOR WORDPRESS
It’s worth mentioning that the code will work for any platform that stores PHP serialized arrays in a MySQL database. You can easily use this script on Drupal, Joomla and many other systems where you need to change items across a database without messing up your stored arrays.
This post originated on Forrst at, http://forr.st/~VxM.
Please note that this is not MY CSS Guidelines. This is a Repository I found on GitHub that I wanted to share with the Forrst Community. So what is stated in the repo, is not necessarily my opinion or thoughts.
Now we all have our own view on the best practices and best way to approach a stylesheet. Some of us live and breathe the W3C Standardsand others use them but explore beyond that— and that’s fine. I ran across this document on GitHub and I felt that it was really right up my alley. Talked about some really good do’s and dont’s as-well as some basic advice and general tips when it comes to working with CSS.
Of course, feel free to leave constructive feedback and your thoughts on this file and what methods and tips when using CSS makes for a good Web Developer.
From the CSS Wizardry GitHub Repository-
CSS Guidelines by @csswizardry
A high-level overview of CSS best practices
This document covers a very high-level overview of what makes for good, performant, maintainable, manageable CSS over large projects. If you’re looking for round corners and drop-shadows, turn back now…
These guidelines are a culmination of the past several years of my career as a web developer. They are also a part the same guidelines I wrote for developers at Sky.
This document is a personal one, and for use at my place of work. I decided to share it in the hope that it might be useful to others but if you disagree with anything please remember; this is a document for me and Sky. You do not have to follow the advice given, nor do I provide any guarantee.
Copyright 2012 Harry Roberts
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This post originated on Forrst at, http://forr.st/~VcB.
Now I know this happened a little over a week ago, but I figured this was a good link to point out to the Forrst Community. PHP has moved their official repository over to Github. I think that’s a great move as we all like (okay, love) GIT (okay, most of us do).
Github Repository
PHP Git Repositories
The migration of the PHP source code from Subversion to Git is complete. You can clone or fork the source from our GitHub mirror, and we also now support pull requests made via GitHub. The source is also available via git.php.net, and full instructions on cloning the php-src tree can be found at php.net/git.
One immediate benefit is that future PHP release tags will be signed by the PHP development team. We will be releasing GPG keys for verification purposes in the next few days.