You may have heard that current IP address space (4 billion of IPs) is already fully assigned and there is no free ip addresses left. There is no big panic since ISP and hosting companies have some internal IP reserve. But this definitely leads to quicker deployment of IPv6 protocol.
The main issue is: IPv6 must be supported on both ends of connection: user-end and server-end. It is a classic chicken and egg problem, top few users use IPv6 -> no IPv6 services exists and no services support IPv6 means, why should clients switch to it?
Since there is no IPv6 alternative, service owners must do a big first step and some of them did. Google, Amazon, Rackspace and many others added IPv6 as alternative to IPv4.
Is you site or blog ready to be accessible via IPv6? I think its time to think about it. I did a switch of my WordPress based blog hosted on Rackspace and here is the story…
I have some servers on Rackspace cloud platform. Having full control over OS allows to make many useful testing, even if its virtualized Recently while doing some server hardening work I discovered not an obviously thing with iptables. In fact some of my firewall rules where completely ignored!!
I am not the iptables newbie and was very surprised by such behavior. Find the story below…
CDN is abbreviation for Content Delivery Network. Hard to believe that like 5 years ago it sounded like a rocket science in WWW. Only huge sites were able to afford it and configure it right. Now things have completely changed and today’s question is: Why you still do not use CDN for your site or blog?
There’s also an SEO benefit in using a CDN…at least indirectly. Faster sites get more traffic from Google and Bing than slower sites. By making your site faster, you increase the likelihood Google will refer people to your site.
I am really happy using WordPress for blogging. Plugins are one of the killer feature helps to conquer the world. They really extend it into various, useful, sometimes unexpected ways 🙂
There are tons of plugins available, so you can find almost whatever you want. I want to share my list of plugins used.
Gary shows some nice caveats of some modern dynamic languages, have fun!
WordPress has its own cron job implementation that allows you to schedule your posts and events. It was done in a way to be simple and it works in most cases.
WP-Cron is not a real cron job, it only works when a page is loaded. When a page is requested, it will then check the database to see if there is anything scheduled and after displays to your reader.
However, in some situations, the WP-Cron does not work well and this leads to posts that missed publication schedule and events not executed. May be you have seen the “Missed Schedule” status.
WordPress has a interesting oddity, it stores site path with domain name in its settings in database. If you are moving your WP site, you have to change that setting before! I do not judge is it a good or bad decision, but it works this way.
If you forget to change Siteurl, WP installation won’t work on new location. Here is how to fix it!
Its right from UI design point of view to show user some kind of progress in case site or application is busy with some internal processing. Especially with AJAX requests, because they take time!
In jQuery its very easy to hook all AJAX requests into one start/stop functions, so there is no need to show and hide progress indicator on each $.ajax request.
ImageMagic library not without reason is called magic, it can handle image operations like scale,resize,rotate,filter,clip and 1000+ others.
PDF -> JPEG
Here is simple CLI command to extract one page from PDF file and save it as JPEG image
convert -density 300 doc.pdf page.jpg
- 300 is DPI, more better quality
-  is page number, starting from zero. Can be list [0,1,2] or range [1-10]
- page.jpg is output file, image type is based on extension
CodeIgniter is great framework by its simplicity. But when I moved from CakePHP, I really missed layout pattern.
CodeIgniter documentations offers this way to include non-changing site header and footer
For sure it isn’t flexible and does not show page structure in a clear way. For many years I use layout pattern. Layout describes whole page as a template with blocks for header, menu, content, etc like on figure below. On page rendering these blocks are filled with data.
I found a small code snipped for CI and improved it. You are welcome to try!