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

Facebook API error #341 Feed Action request limit reached

January 11th, 2011 No comments

I was having an issue with this error after noticing that I wasn’t able to publish a status to a user’s wall using the Facebook API, but could still do it with another user.

Found out that this error #341 Feed Action request limit reached happens because the publishing feature of the Facebook API has limits per user and per day (or more).

So if you are doing some tests with the Facebook API and having the same error you know that you have reached your limits with that user!

Categories: Web technologies Tags:

How to configure a Mail client with Gmail and Google Apps emails

January 1st, 2011 No comments

General instructions to how to configure a client with IMAP with Google.

Specific instructions for Google Apps users (and differences with gmail users).

Configuration of popular mail clients:

- Outlook 2003
- Outlook 2007
- Thunderbird 3.0

—-
SMTP
—-
smtp.googlemail.com
Port: 465
Username: name@domain.com
—-
IMAP
—-
imap.googlemail.com
Port: 993

Technical configuration parameters:

SMTP
smtp.googlemail.com
Port: 465
Username: name@domain.com

IMAP
imap.googlemail.com
Port: 993

Instructions en français:

Suivez les liens donnés précédemment, et en bas de la page vous pourrez trouver un menu déroulant vous permettant de choisir la langue de votre choix pour l’affichage des instructions.

Search Engine Optimization Starter Guide – How to improve your visibility on Google

December 23rd, 2010 No comments

This ebook is available for free and has been released by Google. The purpose is to answer one simple question: “How can I improve my website’s performance in Google?”

This guide will list some of the best practices that you can apply to your websites. It’s available in 40 languages on the Google Webmaster Central Blog.

Download the english version of the Search Engine Optimization Starter Guide.

Download the french version of the Search Engine Optimization Starter Guide.

Categories: SEO Tags: ,

How to install the plugin “YouTube Channel WPress”

December 20th, 2010 No comments

Once you have downloaded the “YouTube Channel WPress” plugin, follow these steps:

Step 1: Transfer the plugin folder to your WordPress “plugins” folder and activate it from the WordPress plugins page.

Step 2: Go the the “widgets” page and drag the “YouTube Channel WPress” box to the inactive widgets zone then update your YouTube channel username.

Step 3: Create a custom page template and add the following code just before the “the_content()” function is called.

<?php
if (class_exists(“Youtube_channel_wpress”)) {
$vbox1 = new Youtube_channel_wpress();
$vbox1->display_channel_videos();
}
?>

Step 4: Create a new page and chose the template you have just created previously.

Step 5: Go to your page. You should see all your YouTube videos.

If you need assistance please contact us.

Categories: How to Tags: ,

Count the rows in a Flex list (or) number of List items

December 7th, 2009 No comments

Let’s say you have a list that looks like that:

<mx:List id=”usersList” width=”100%” allowMultipleSelection=”true” dataProvider=”{docCenterModel.returnEvaluatorsList}” labelField=”displayName” />

How would you count and display the number of list items?

By using this: usersList.dataProvider.length

Binded to a label component it would look like this:

<mx:Label text=”Users ({usersList.dataProvider.length})” fontWeight=”bold” />

Simple, isnt it?