living in the question...

Thursday, November 17, 2011

Colors: Combination of Red with different Colors

By on 7:36 AM
 
Some interesting combinations of Red
Red color is used very frequently in graphics. I like red with mostly white and black. Some other experimentation of few combinations are mentioned. Hmmm, Interesting :)

Wednesday, November 16, 2011

graphics: Understanding general concept of masking in desingning tools e.g. Photoshop, Fireworks etc

By on 9:38 PM
Have you ever come across the word masking. I always used to get scared to hear the word when I started using different designing tools. Actually, the concept of mask is very simple and powerful. The following illustration will make it clear why we use masks in designing.
1. How to entangle these, The simplest application of masking
2. Oops Not entangled

3. Lets Duplicate the blue and sandwich the red...
4. Here comes in the concept of Mask why not mask. Mask equivalent to Hiding a portion...



5. Drag the unmasked or the unhidden portion of duplicate pic over orignal
6. Yup. There it is. The portion overlapping is masked away...

Friday, November 4, 2011

wordpress: How to make your own wordpress Dashboard Widget

By on 10:59 AM
Wordpress is one of the leading open source php CMS. It is very simple and highly customizable. Within the dashboard of Wordpress the whole cms can be customized very easily. Different themes can very easily be applied to your website through the Wordpress dashboard. Advance user can develop their own theme and put the files in \site\wp-content\themes folder to apply it to the website from the Wordpress dashboard. http://www.wordpress.org provides a very comprehensive documentation on Wordpress development and implementation.

In this article I will just show you how easily you can make your own custom Wordpress Dashboard widgets. For the purpose you just need to edit only one file from the theme base folder and that is functions.php. The file can also be edited from the wordpress dashboard editor sub-menu under the appearance.
For the Custom Dashboard Widget you just need to include the following functions into your functions.php file and thats all...

//What your Widget Does
function yourDashboarFunction() {
    // This is the space where you can do anything you want to include in the widget.
    echo "For now just say Hello World";
}

//Creat your hook
function yourDashboardwidget() {

 wp_add_dashboard_widget('YourWidget', 'Your Widget Title', 'yourDashboarFunction');
}

//hook your widget
add_action('wp_dashboard_setup', 'yourDashboardwidget' );
Now go to your Wordpress Dashboard and there it is your widget among the Dashboard widgets. You can Do complex things inside yourDashboardFunction().

php: Setting up your pc for php development

By on 8:41 AM
Hello! The post is especially for fellow developers who want to set up PHP development environment in windows 7 or xp. There are a number of platforms which provide easy php development environment in windows. But I am going to discuss which I prefer the most for a smooth and well managed php project management. Just follow the following steps and get started with a comfortable environment to put your programming capabilities to work...
 1. Download and Install latest wampServer from their official website. WampServer is an open source project created by a team of PHP developers. It includes all the basic applications for web development e.g.
 - Apache
  - Php
  - Mysql
  - PhpMyadmin
  - SQLBuddy etc.

2. The second thing needed for smooth php or any web development is an editor to write the php codes. The simplest can be Notepad provided with any windows. For better development I would prefer one of the following editors.
  Eclipse IDE for PHP developers or NetBeans IDE.
Eclipse is an open source community as well as NetBeans Community Distributions are available under a Dual License consisting of the Common Development and Distribution License (CDDL) v1.0 and GNU General Public License (GPL) v2. See the third-party readme for external components included in NetBeans and their associated licenses
Both of the IDE provide awesome intellisense for any kinds of development including PHP development. If you plan development as career than personally I would recommend complete setup of any one of them as must have.

Now when both of them are successfully installed. Your computer is ready for a smooth web development. Open a new PHP project in NetBeans IDE and publish it to the WWW folder created in the wamp installed folder. That's all now you are ready to make use of your previous programming knowledge to implement in PHP with minor modifications which any easy tutorial from the web would guide through.

Saturday, October 29, 2011

graphics: Here is how we make those curled objects we see in ads

By on 1:37 PM
2. Flip once horizontal and once verticle
1. Cut a circle from any side you want to curl...
3. Add some shadows...

4. Put some gradient and thats it to get a nice curl...

Friday, October 28, 2011

Colors: My favorite combination of black with different colors

By on 12:02 PM
Although black is used very often everywhere but I usually prefer black in these combinations, be it colorful fonts over black background or div colors, if carefully selected the colors create a beautiful impact on the viewers mind, at least for me :P

wordpress: Changing wordpress password from phpMyadmin

By on 9:33 AM
What if you have forgot your password and to the distress your mail server is down to change it through email. Don't worry if you have access to the database of the site.

1. Go to your phpMyadmin interface
2. Run the following SQL with necessery modifications
 
UPDATE `wp_users` SET `user_pass` = MD5('newPassword') WHERE `wp_users`.`user_login` ="yourUserName" LIMIT 1;
Thats all! enjoy