Pages
-
Recent Posts
- Which Would You Rather Have: The Planet, Or A Patent?
- How Copyright Would Make The ‘Singularity’ Infringement If It Ever Arrived
- Network Analysis Reveals Apparent (And Legally Questionable) Attack On Torrent Networks
- Court Dumps Patent Lawsuit Against Tons Of Online Retailers
- Java: Jury Says Google Did Not Infringe / Comprehensive JVM Options List
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
Meta
Category Archives: Tools
PHPHOST BLOG
Web Hosting Related Articles You May Need
Creating a Google Chrome Extension is as Easy as 1-2-3
Chrome Extension allows 3rd-party developers to add new functionality to the Google Chrome browser. Did you know, all that it takes to develop a Google Chrome Extension is HTML, CSS, JavaScript and an icon. Sounds doable right? Let’s see how easy it … Continue reading
Posted in JavaScript, Syndicated, Tools
Leave a comment
Test New Fonts using HTML 5 and CSS 3
Yesterday, I was reading a post on ycombinator about the New free monospace programming font by Mark Simonson: Anonymous Pro. I decided to check out this new font using a cool HTML 5 application called font dragr.font dragr is a HTML 5 and CSS 3 web ap… Continue reading
Posted in Syndicated, Tools
Leave a comment
Developers, there are Better Ways to Maintain your Notes
I have been developing applications over the past 10 years, and I admit I do not have a long term memory, especially not when it comes to remembering a piece of code or technique, I had used in my previous projects. My memory acts alien especially at t… Continue reading
Posted in Syndicated, Tools
Leave a comment
Free Bug Tracking Software for your Projects
A couple of days ago, I had shared a collection of Free SVN Repositories to Host your Projects. Software contains bugs and this is the inevitable truth. This week, I will share some open source bug tracking software that will streamline the process of … Continue reading
Posted in Syndicated, Tools
Leave a comment
Free SVN Repositories to Host your Projects
We are planning to start work on an open source project soon. As a result, we were looking out for a free SVN repository [what is SVN?] with the following main features:reliable version control systemmailing lists, forums, issue tracker, pages, downloa… Continue reading
Posted in Syndicated, Tools
Leave a comment
Free Text Editors to Open Large Text files
Every week in my company, we go through the process of opening large log files (over 200 MB) and search and edit text. We searched out a few Text Editors that can make our lives easier and open these large files without hanging the system. Here are some Text Editors that are free with an impressive feature list:
Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor ‘Vi’, with a more complete feature set.
Platform Supported: Windows, MAC OS X, Linux, BSD and Unix.
Cream is a modern configuration of the powerful and famousVim, You can check it’s lengthy feature list here
Platform Supported: Windows, GNU/Linux, and FreeBSD.
GNU Emacs is an extensible, customizable text editor—and more. Amongst other features, it has syntax highlighting, can open large files and has Unicode support.
Platform Supported: Windows, MAC OS X, Linux, BSD and Unix.
JujuEdit is a file/text editor with syntax highlighting and advanced find/replace algorithms. Amongst other features, this editor can open very large files and has Unicode support.
Platform Supported: Windows
Notepad2 is a fast and light-weight Notepad-like text editor with syntax highlighting. This program can be run out of the box without installation, and does not touch your system’s registry. We have tried opening a 200MB file with this editor and have no issues so far.
Platform Supported: Windows
You may also want to read this – Comparison of Text Editors
Posted in Syndicated, Tools
Leave a comment
Understanding YSlow – A Firebug Extension to Analyze and Improve Webpage Performance
Yahoo’s YSlow is a ‘must have’ Firefox add-on and is an extension (for performance) to the Firebug tool. YSlow analyzes web pages and suggests ways to improve the performance of web pages based on a set of rules for high performance web pages laid out by Yahoo. There are 34 rules laid out by Yahoo and YSlow is capable of testing 22 of them.
The 22 rules testable by YSlow and as listed in the YSlow user guide, are:
- Minimize HTTP Requests
- Use a Content Delivery Network
- Add an Expires or a Cache-Control Header
- Gzip Components
- Put StyleSheets at the Top
- Put Scripts at the Bottom
- Avoid CSS Expressions
- Make JavaScript and CSS External
- Reduce DNS Lookups
- Minify JavaScript and CSS
- Avoid Redirects
- Remove Duplicate Scripts
- Configure ETags
- Make AJAX Cacheable
- Use GET for AJAX Requests
- Reduce the Number of DOM Elements
- No 404s
- Reduce Cookie Size
- Use Cookie-Free Domains for Components
- Avoid Filters
- Do Not Scale Images in HTML
- Make favicon.ico Small and Cacheable
Assuming you have downloaded YSlow and installed it in Firefox, let us quickly run the YSlow tool on a website and then dissect the results to understand the tool better. Once installed, the YSlow tool can be invoked from Firefox. Just open your web page in Firefox and click the YSlow tool (lower right corner of the Firefox status bar). Here are the results of running YSlow on a sample webpage from my site.
As you can observe, the results consists of 4 Tabs – Grade, Components, Statistics and Tools. The screenshot also shows the rulesets applied as well as the the Grade received by the website. Let us understand these terms one by one.
Rulesets
Let us first understand the rulesets that YSlow uses to grade pages (we will understand grading shortly). There are 3 predefined rulesets that you can choose to apply on a webpage:
YSlow(V2) – This ruleset contains the 22 rules listed in the beginning of this article.
Classic (V1) – This ruleset contains rules from 1 to 13.
Small Site or Blog – This ruleset contains 14 rules that are applicable to
small websites or blogs. These are Rule 1, 4, 5, 6, 7, 9, 10, 11, 12, 16, 17, 20, 21 and 22.
In addition to these rulesets, you can also create your own set of rules. For more information on creating custom set of rules, read Customizing Rulesets.
Grade
‘Grade’ is one of the four tabs as shown below and depicts a report card on our page’s performance.
YSlow examines all the components of a webpage and then grades the web page based on one of three predefined ruleset or even a custom-defined ruleset, we discussed about in the Rulesets section. How the grading works, is when YSlow analyzes a webpage, it deducts points for every breach of a rule and then applies a grade to each rule. Here’s a sample screenshot of the grades received by the webpage for each rule and the suggestion for improvement, shown on the right.
Then a final grade is computed (in our case ‘B’) by summing up the values of the points gained for each rule, weighted by the rule’s importance.
Components
Components is the second of the four tabs as shown below:
The Component tab shows the various components on the page (javascript, css etc) and information related to each component (click the ‘+’ icon or ‘Expand All’ link). This will give you an idea which component takes more time to load and you can consider to gzip it and improve performance.
Statistics
Statistics is the third tab and provides a graphical representation of the number of HTTP requests made to the server and the total weight of the page in kilobytes for both Empty Cache and Primed Cache scenarios.
The Empty Cache scenario is when the browser makes the first request to the page and the Primed Cache scenario is when the browser has a cached version of the page. In a Primed Cache scenario, the components are already in the cache, so this will reduce the number of HTTP requests and thereby the weight of the page.
Tools
Tools is the last tab and contains a list of various tools that YSlow suggests to run on the webpage resources (images, JavaScript, CSS) to improve the performance of the page.
With this, I hope this quick guide explained what YSlow is all about and how you can use it to analyze and improve the performance of your web pages. I am going to apply this tool on my web pages and follow the recommendations made by this tool to improve performance. I hope you do the same for your web pages too! You can read more about YSlow in the YSlow User Guide.
Posted in Syndicated, Tools
Leave a comment
Free Antivirus Software for your Windows OS
I am a Windows power user and have the habit of regularly backing up my data, use a firewall, understand the pitfalls of bad internet behavior, regularly keep my OS updated with patches and do a lot of other stuff that other power users do to keep the system safe. However in addition to all of these points, I also use an Antivirus for my machine, just to add an extra layer of security.
Here is a short review and list of FREE Antivirus Programs if you are running Windows OS. Please note that this list is not comprehensive and contains only the Antivirus programs that I have used and tested on my machine.
IMHO, Microsoft Security Essentials is one of the best Antivirus solutions (in the freebee category) to guard your PC against viruses, spyware, and other malicious software. The automatic upgrades are smooth, the software is lightweight, runs quietly without constant interruptions and is very easy to use. You should have genuine Windows to install Microsoft Security Essentials. There’s also a new Beta for Next Version of Microsoft Security Essentials Now Available
Terms of Use: As mentioned in the Eula, “You may install and use any number of copies of the software on your devices in your household for use by people who reside there or for use in your home-based small business”
OS Supported: Windows XP (Service Pack 2 or Service Pack 3)/Windows Vista (Gold, Service Pack 1, or Service Pack 2)/ Windows 7 (32/64 bit)
avast! provides good protection against viruses, spyware and other forms of malicious software. One of the features that I specifically liked was that avast runs in Safe Mode too, has a Boot time scanner, is easy to use and does not take a lot of my system resources. It’s free edition does not contain a spam filter nor does it provide any technical support, which I feel is a serious limitation.
Terms of Use: avast! Free Antivirus is free only for personal and non-commercial use
Features: http://www.avast.com/free-antivirus-download#tab2
OS Supported: Microsoft Windows 2000, Microsoft Windows XP/Vista/7 (32/64 bit)
Avira AntiVir Personal is a free antivirus solution against malicious programs such as viruses, Trojans, backdoor programs, hoaxes, worms, dialers etc. It’s free edition supports Netbook with low resolution, comes with a Generic Repair option for your PC and also includes customer support. Although I haven’t personally used their support, friends have given me a feedback that their support is very prompt. I found that at times it gives out false alerts ‘too frequently’ but that can be controlled by
Terms of Use: Free of charge virus protection to home-users, for personal use only, and is not for business or commercial use.
OS Supported: Unix/ Windows 2000, SP4 and update rollup 1, Windows XP, SP2/ Vista (SP 1 recommended)/ Windows 7 (32/64 Bit)
Other Free Antivirus Softwares
Apart from the ones listed above, a quick search reveals some free antivirus solutions like AVG, ClamWin, Comodo etc. There is also a good thread on superuser.com that discusses free antivirus solutions.
If you are looking out for a paid Antivirus solutions then I strongly recommend to try ESET NOD32 Antivirus 4
Posted in Syndicated, Tools, Windows 7
Leave a comment
Test Regular Expressions in Your Browser
After you have created a regular expression, you usually write a script or use a tool to test if the Regex works as expected. Alternatively, if you are using Firefox or Google Chrome, then here are some plug-ins that make it very simple to test regular expression directly from your browser. I had recently written a post on Validate US Zip Code using JavaScript where I had used the Regex ^[0-9]{5}(?:-[0-9]{4})?$ We will use the same regex for this post and test it using the add-ons for Firefox and Chrome.
Regular Expressions Tester 3.0
This is a Firefox add-on for regular expressions with color highlighting (including submatches) and helpers for creating expressions. Observe in the screenshot shown below how the color changes to yellow as soon as the Regex matches a valid US zip code.
This is a simple add-on for Google Chrome and is inspired by Regular Expressions Tester 3.0. You can save a regular expression and the tool also shows the number of matches, sub patterns etc. The only thing that I was not comfortable with was that this tool wanted access to my browser history to work properly. Now I am not sure why was that required. Nevertheless, here’s a screenshot of the results after testing my Regex.
I could not find any add-ons for Internet Explorer that can test Regular Expressions. If you know of any such add-on, let me know and I will add it to this list.
Posted in Syndicated, Tools
Leave a comment
‘Copy To Clipboard’ functionality for your Website
‘Copy Text To Clipboard’ is a frequently requested feature. Different browsers have different security implications when it comes to manipulating the clipboard. For example Firefox by default, does not allow you to store data in the clipboard, although you can override this setting.
Users have used JavaScript and Flash as a workaround. Until Flash 9, you could set data on the system clipboard at any time. However with the changes in Flash 10, you can manipulate the clipboard only through ActionScript that originates from user interaction, i.e. an explicit mouse click or through the keyboard.
I recently came across a free and open source library that is fully compatible with Flash Player 10 and provides an easy way to copy text to the clipboard using an ‘invisible’ Adobe Flash movie and a JavaScript interface. The library is called ‘zeroclipboard’. How this library works is that it overlays a Flash object over a button or any other DOM element that initiates the copy. So when the user clicks the element, the Flash object registers an explicit action and copies text into the clipboard, which sounds perfectly ‘legal’ as I may say so.
This library requires that the browser has JavaScript enabled and FlashPlayer installed. You can learn how to use the library through the Instructions Wiki. Also see a working Demo.
As always, I would love to hear some alternate solutions. Feel free to drop in your comments!
Posted in Syndicated, Tools
Leave a comment
LATEST NEWS
