Compress CSS using PHP

October 9th, 2011 by Tony de Jesus | 1

image of a compressor with a CSS boxOne of the most important things to consider when creating a website is its loading time. The loading time of a website is as important as its functionality. What’s the point in having a great website if it takes too long to load? Who wants to wait for it? There are a lot of resources that you can optimize on your website and one of them is the CSS code. In this post I’ll show you a way to compress your CSS code using PHP.

RIP Steve Jobs: Stay hungry, stay foolish

Apple co-founder Steve Jobs, who changed the daily habits of millions by reinventing computing, music and mobile phones, died Wednesday at the age of 56. His death after a long battle with pancreatic cancer sparked an outpouring of tributes as world leaders, business rivals and fans alike lamented his premature passing and celebrated his monumental achievements.

Sites of the Week #23

This week my list contains Slavery Footprint, a lifestyle survey that shows consumers how many forced laborers have contributed to make the stuff you might find in a medicine cabinet or in a gym bag; Dentsu Network, an advertising, marketing, media and technology agency network; Dunnellon Depot, a website concerned about preserving the history of Dunnellon; Fork, an open-source CMS; and JuiceBox Creative, a Perth-based brand and web agency in North Perth, Western Australia.

Sites of the Week #22

For this Sites of the Week I have selected some great sites such as lega-lega, a very nice online shop; Waldschmidt | Arp, two business strategist consultors; Team Fannypack, a group of young adults helping to bring about a cure for Multiple Sclerosis; The Photoshop Etiquette Manifesto for Web Designers, a collection of ways to improve the clarity of a PSD when transferred and Marie Catribs, a fantastic restaurant in Grand Rapids, Michigan.

Sites of the Week #21

In this week's collection, I have designs from Moods of Norway, a Norwegian clothing brand; Multicolr Search Lab, a free online image search utility; Birrificio Irpino, an Italian brewery; Million Trees, an initiative to plant one million trees in London over the next ten years; and nGen Works, an American web development company.

How to Prevent SQL Injection Attacks

SQL injection is a technique that exploits a security vulnerability from the database layer of an application. This technique consists in inserting malicious code into strings that are later passed to the database management system for parsing and execution. The main goal of this attack is to expose hidden data, to override valuable one, or even to execute dangerous system level commands on the database host. It happens from using poorly designed query language handlers. In this article I’ll show how you can enhance your code in order to prevent such attacks .

Sites of the Week #20

This week my collection of websites contains portfolios from Alex Buga, Loïc “Kiluka” Dupasquier and Tim Potter. It also contains a website that sells vector resources, very useful for designers; and Team Viget, a web design company.

Mac OS Lion: How To Ungroup Conversations in Mail 5

Mail (aka Mail.app or Apple Mail) is the e-mail program included with Mac OS X operating system. The version 5 was introduced with Mac OS X v10.7 Lion. This version features, among other things, a redesigned iPad-like fullscreen User Interface and a more powerful search engine. It also groups messages from the same conversation and displays them in a streamlined feed, like in Mail on iOS 4. However, this feature can sometimes be confusing, especially when we were already accustomed to the old interface. In this post I'll show you how to turn off this option.

Sites of the Week #19

This week my list contains the amazing App Galaxy by Google where you can learn some techniques to promote your mobile website/application, the hiring page from Campaign Monitor inspired in the Nike Better World website (already posted here in the edition #5), Alertful and much, much more!

Progress Bar Using Mootools

One of the most important things, from a usability point of view, is to know what percentage of a task is complete. I've developed a customizable MooTools progress bar class that "moves" to the desired value. In this post, I describe all the methods provided by this class.

Sites of the Week #18

This week my collection of websites contains amazing designs from: Design One, Dirt Brokers USA, the personal portfolio of Keenan Wells, Next Tuesday and Prince Street International Films.

15 Websites All Web Developers And Designers Should Know

Web designers and developers have the difficult task of creating web applications. It is not enough to design the pages and create and implement a layout. There are other aspects to consider, such as performance. What about having some awesome tools to make your web developer life easier? I have compiled a must-read list for you.

Sites of the Week #17

For this Sites of the Week I have selected some great sites such as Bristles and Infinity Web. Also I'm featuring an amazing photography portfolio from Rickard Sund, and much, much more!

How To Enable FTP Server on Mac OS X Lion

One of the most notable changes (at least for developers) on Mac OS X Lion is the removal of FTP from the available protocols in System Preference's File Sharing. Probably this is due to fact that FTP is a protocol that provides little or no security. However, in a development and testing environment, it is often convenient to have a local FTP server. In this post I'll show you how to enable/disable the FTP Server on Lion by using the Terminal.

Sites of the Week #16

In this week’s collection I have designs from Polecat, iutopi, Photosheep.me, PTARMAK and Ryan Scherf.

WordPress: How to Fix Conditional Tags Problem

In WordPress you can use Conditional Tags in your Template files in order to change the way of displaying content and what content is displayed on a particular page. A very common example is if you want to display a snippet of text but only on the main page of your blog, you can use is_home() Conditional Tag. However, sometimes it seems that these tags stop working. In this post I'll show you how to fix this problem.

Sites of the Week #15

This week, my list contains mainly one-page websites which use an effect called Parallax. Parallax is an apparent displacement or difference in the apparent position of an object viewed along two different lines of sight. In web design, the parallax effect is a relatively new trend. It's very common on website's portfolios but it started being used in other types of websites.

Facebook: Restore the old chat on Chrome, Firefox and Opera

Some days ago, I posted an article explaining how to see who is online on the new version of the Facebook chat. Today I've found out a simpler method to do this. Fortunately, a developer created an extension that works in Google Chrome, Firefox and Opera that allows you to disable the newly introduced Chat Sidebar and return to the old good Facebook Chat.  

Sites of the Week #14

This week, my list contains some HTML5 websites, so remember to use a HTML5 capable browser like Google Chrome or Safari. The list shows some personal portfolios, a bakery website and a website to help you to find a sponsor to develop your app.

Apple Unleashed Its Lion

Don't be scared with this article's title or the image on the left. I'm not talking about the King of the Jungle. "Lion" is the name of the eighth and current major release of Apple's Mac OS X (version 10.7). It was released on July 20 2011, as announced during Apple's third quarter 2011 earnings report. In the space of 24 hours, Mac owners in 123 countries around the world downloaded more than 1 million copies of the operating system. Lion is priced at $29.99 in the US Apple App Store - meaning that Apple earned close to one million dollars each hour during the first day.

Sites of the Week #13

This week, my collection of websites contains an excellent example of the use of WebGL (I advise you to use Google Chrome to check it out). It also contains some personal/company portfolios.