Archive

Archive for March, 2011

jQuery UI icons sets cheatsheet

March 14th, 2011 1 comment

The official jQuery UI theming module is great to get a custom CSS and see all the icons available with the jQuery UI CSS framework. There is over 100 icons available and could be hard to get their class name.

On the official website you need to put your mouse over the icons, to be able to view the name to be used to display that icon.

We have created a tool (that could be improved in the future) that displays all the icons, and you just need to click on the chosen one to have its name displayed bellow inside a input box. So that you can just copy paste it.

Here is the link: http://yougapi.com/freebies/jqueryui-icons/

Categories: Useful resources Tags:

How to calculate the execution time in a PHP page

March 9th, 2011 No comments

//start time
$start = (float) array_sum(explode(‘ ‘,microtime()));

/*
Your code comes here
*/

//end time
$end = (float) array_sum(explode(‘ ‘,microtime()));

//display
echo “Processing time: “. sprintf(“%.4f”, ($end-$start)).” seconds”;

Categories: How to, Web technologies Tags:

Immigration laws blocking economic potential in USA?

March 7th, 2011 No comments

Visit msnbc.com for breaking news, world news, and news about the economy

Categories: Entrepreneurship, Videos Tags:

Introduction to the SQLite database

March 6th, 2011 2 comments

Connect to your server with SSH (putty is a perfect tool for that). Once on the server you can create an SQLite database by typing this:

sqlite my_database.db

Once done you will get something that looks like that:

sqlite >

Technically your database is not yet created. If you check with your FTP client you will not see any new file. To have the database really created you need to add to it at least one table.

You can type in this command to create the “article” table:

CREATE TABLE article (id integer primary key, title varchar(10), description text);

To view the list of all the database tables you can type this command:

.tables

You should see your new created table name (article in our example).

Try to insert some data to this table by typing this:

INSERT INTO article (title, description) VALUES ('title 1', 'my description 1');
INSERT INTO article (title, description) VALUES ('title 2', 'my description 2');

Don’t forget to end each SQL statement with a “;” or else you will get an error !

You can after select all table rows by typing this command:

SELECT * FROM article;

As you can see it’s pretty simple to create an SQLite database and create and interact with its tables. The SQL syntax is mainly used so if you are familiar with MySQL you should be fine working with an SQLite database.

More information:
http://www.sqlite.org/docs.html

Categories: How to Tags: ,

Mark Zuckerberg, Moving Fast And Breaking Things

March 4th, 2011 No comments

A year ago we interview Facebook CEO and founder Mark Zuckerberg about the early days of the company, dealing with its user base, managing operations, etc. We have decided to republish the interview here, along with a never before published transcript below.

While Facebook has grown even more since we spoke with Mark last, the interview features his general thoughts about running the company and about his qualities as a young but very talented CEO that are forth revisiting.

Read more: http://www.businessinsider.com/mark-zuckerberg-2010-10#ixzz1Fh4TE5Oz