May
12
2012

Drupal quick install guide

Hi there, here it comes a quick instillation guide for Drupal, there you can find several steps for download and install this cms (content management system). Before you begin the installation, you need to know:

  • To install and run Drupal, your server host must meet certain minimum requirements. Must web hosts meet these requirements, at this link, you can check the system requirements.
  • Drupal provides an installation script that automatically populates database tables and configures the correct settings in the settings.php file. This section covers preparing for installation, running the installation script itself, and the steps that should be done after running the installation script has completed. It also explains how to do a “multi site” installation, where a number of different Drupal sites run off the same code base.
  • It is considered a good practice to do all development work on a separate test site before making changes to a production site. A test site allows you to evaluate the impact of upgrades, new modules, modifications to themes etc. without causing disruption to your live site.

Quick install with FTP

  1. Download
    • Download the latest or stable version for Drupal.
    • You will get a file called drupal-7.x.tar.gz. Extract the compressed files.
    • Log into your server using your SFTP client and navigate to the web root directory. Upload all of the files inside your Drupal folder into the web root folder on your server.
  2. Create a database
    • Create a new database: MySQL 5.0.15 or higher with PDO, PostgreSQL 8.3 or higher with PDO, SQLite 3.3.7 or higher. Note: Microsoft SQL Server and Oracle are supported by an additional module.
    • Create a user, add that user to the database, and grant the user full rights on the database.
  3. Make the /sites/default directory writable
    • For example, with *nix command line chmod a+w sites/default or with a ftp or file manager right click and set to 777.
    • Drupal should reset this when it’s completed the installation (chmod a-w sites/default or 555).
  4. Run the installer
    • Browse to your new Drupal site. This will take you to the Drupal installer, which starts with: “Select an installation profile.” Save and continue.
    • Choose “Standard.” Save and continue.
    • Choose English or learn how to install Drupal in other languages. Save and continue.
    • Choose the type of database you created (e.g. MySQL or SQLite). Enter the name of the database you created, the username, and password. Save and continue.
    • On the site information page, you can set the site name and email from which the site will send out mail. You also set the username, email, and password of the first administrator account. Save and continue.
    • You will now be automatically logged into your new site with the administrator account and can begin to configure your site.

Note: you can also install Drupal using command line, for this please check the Drupal reference guide at Quick install for developers (command line), there you’ll find all needed information for install Drupal using command line.

References:

May
9
2012

How to manipulate css using jquery

It’s really simple to manipulate css using JQuery. JQuery has the “.css()” method and its syntax is:

.css( propertyName, value )


propertyNameA CSS property name.

.css( propertyName, function(index, value) )


propertyNameA CSS property name.
function(index, value) A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.

.css( map )


mapA map of property-value pairs to set.

When using .css() as a setter, jQuery modifies the element’s style property. For example, $(‘#mydiv’).css(‘color’, ‘green’) is equivalent to document.getElementById(‘mydiv’).style.color = ‘green’. Setting the value of a style property to an empty string — e.g. $(‘#mydiv’).css(‘color’, ”) — removes that property from an element if it has already been directly applied, whether in the HTML style attribute, through jQuery’s .css() method, or through direct DOM manipulation of the style property. It does not, however, remove a style that has been applied with a CSS rule in a stylesheet or style element.

Check the references and examples at jQuery site.

May
8
2012

Generating PHP Documentation With NetBeans IDE

This screencast shows how to generate PHP documentation using PHPDocumentor with NetBeans IDE. Built-in support for PHPDocumentor was added in NetBeans IDE 7.0. The screencast includes details of installing PHPDocumentor with PEAR and configuring PHPDocumentor, NetBeans IDE and your php.ini file. This video is especially useful for developers using NetBeans on a Microsoft Windows operating system.

At this link you can watch / download the video created by Jeff Rubinoff.