by http://webgeektutorials.blogspot.com

Saturday, December 31, 2011

Photoshop Convert photo to sketch/line draw

This tutorial is just the first video of a multi video session that will show how to turn a photo into a drawing and adding a lil jazz to the image.



Friday, December 23, 2011

TOP 5 Sql Server Scripts


/* 1 -------------------------------Script------------------------------

This script captures CPU Utilization Percent using TSQL. It uses system functions @@CPU_BUSY and @@IDLE
to see what is the CPU Utilization % at a particular instant. You can then use this number in a table or variable
to trigger other events.


@@CPU_BUSY  shows the time SQL Server has been busy
@@IDLE shows the time SQL Server has been idle


--------------------------------------------------------------------*/


DECLARE @CPU_BUSY int
DECLARE @IDLE int

SELECT @CPU_BUSY = @@CPU_BUSY, @IDLE = @@IDLE

WAITFOR DELAY '000:00:01'

SELECT
(@@CPU_BUSY - @CPU_BUSY)/((@@IDLE - @IDLE + @@CPU_BUSY - @CPU_BUSY) * 1.00) *100 AS CPU_Utilization_Pct

Wednesday, December 21, 2011

2 Nodes RHEL6 Cluster Configuration

Step by Step 2 Nodes RHEL6 Cluster Configuration

Virtual Lab Environment
1.    Two Nodes
2.    SAN Storage Server (software iscsi-taget)


Two Nodes
1.    Rhelsrv1
      OS: RHEL6 Server
       IP :172.168.100.101
Iscsi-initiator – iscsi-client

2.    Rhelsrv2
      OS: RHEL6
      IP : 192.168.100.102
Iscsi-client

3.    Client1
       OS: RHEL6 Desktop
        IP : 172.168.100.103

4.    Cluster Name: iscsicluster
        IP : 172.168.100.200

Required Software
Set up yum repo in all three nodes
From Vbox interface , attach rhel6 iso as cdrom and reboot the VMs.
Mount /dev/sr0 /media
/etc/yum.repos.d/rhel6dvd.repo
[Server]
name=Server
baseurl=file:///media/rhel6/Server
enabled=1
gpgcheck=0
[HighAvailability]
name=HighAvailability
baseurl=file:///media/HighAvailability
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///media/LoadBalancer
enabled=1
gpgcheck=0
[ScalableFileSystem]
name=ScalableFileSystem
baseurl=file:///media/ScalableFileSystem
enabled=1
gpgcheck=0

Install Python3 on RHEL

One of my frined was facing trouble while installing Python3 on RHEL. I followed the following steps to install it on RHEL:

One thing i would like to say,It is very easy to install  manually:

STEPS :

1. To download python3 Download:

wget http://www.python.org/ftp/python/3.2.2/Python-3.2.2.tar.bz2

2. Now Unzip

bzip2 -cd Python-3.2.2.tar.bz2 | tar xvf -

3. Its time to Prepare compilation

./configure

4. Now start Build

make

5. start Installation

make install

Happy installing :)

Friday, November 11, 2011

Great business tips from Steve Jobs

1. Be innovative
Steve Jobs was committed and dedicated to technological innovation, Moaiyad Hossenally, senior industry manager for Asia-Pacific ICT practice at Frost & Sullivan, noted in an e-mail.
Pointing to one of Jobs' quotes, "Innovation distinguishes between a leader and a follower", he said the former Apple CEO worked at marrying art and science to bring about technological innovation. "This was the biggest difference in Apple as compared to other PC manufacturers."
Jan Dawson, chief telecoms analyst, said Jobs was not constrained by what has been done before, what is available in the market, or what consumers think they want. Under his leadership, Apple had been very good at reinventing categories in a way consumers could not have articulated "ahead of time" but responded to "enthusiastically", the analyst explained in an e-mail.
Bryan Ma, associate vice president of client devices at IDC Asia-Pacific, shared that even though Apple had not been at the "forefront" of technology, they were innovative in making the product easy enough to use and attractive enough for the mass market.
"Apple made technology cool by simplifying technology and making it cool," he said in a phone interview.
Apple customer Tan Dezhong praised Jobs' for daring to be different and challenging the status quo. "Jobs could tap his inner creativity to create products that change the world," said the banker. "If I could, I'd like to pick up that ability."
2. Have both foresight and confidence
In his tribute to Jobs, Frost & Sullivan Chairman David Frigstad wrote: "Many claim the title of a true visionary, but Jobs set the standard by which all others will be measured."
IDC's Ma noted that Jobs' most striking trait was that he did not get "too caught up" in corporate bureaucracy when making decisions. It was always an intuitive decision--Jobs knew what consumers wanted even if "data told him otherwise", he noted.
Van Baker, research vice president of retail and consumer technologies at Gartner, added that Jobs always knew where he wanted the company to go and was completely confident in the vision the company had.
The veteran also did not resort to outside polling to determine product directions, which allowed the company to deliver products to consumers that they didn't know they need until they saw them, the U.S.-based analyst told ZDNet Asia in an e-mail.
"The premise of the film 'Inception' is that it is possible to seed an idea within a person's dream to persuade them that the genius of a particular course of action stems from their own unconscious desires," Windsor Holden, research director at Juniper Research wrote in a blog post. "Jobs was the mobile industry's [version of] Cobb, the film's central character--the man who planted the seeds."

Wednesday, November 2, 2011

Deploy a web app linux / win

I work for a small company, which means that at any given time, we could have 3 or 4 different versions of code on developer machines that have not yet been committed to the repository. Nowadays, I would certainly go with a distributed version control system. Setup is faster since you don't need to set up a version control server and everything, all you usually need to do is initialize a certain directory within your development box for version control and you're good to go. They also seem like the way to go these days. If it were 2001, I would recommend a centralized system like Subversion. But it's 2011, everyone is moving to distributed systems and user interfaces and supporting tools tend to get better.

Some suggestions:
Git: Powerful. May take some time to understand but evolves rapidly
Tortoise svn: TortoiseSVN is an easy-to-use SCM / source control software for Microsoft Windows
Darcs: Easy to learn and has all the features you will usually need
Mercurial: Mercurial is a distributed version control system. Mercurial is dedicated to speed and efficiency with a sane user interface. It is written in Python.



Sunday, October 30, 2011

Google is retiring google Buzz


Google Buzz is a social networking, microblogging and messaging tool from Google. In a few weeks google is retiring Google Buzz .with google buzz  you start conversations about the things you find interesting. Share updates, photos, videos and more with your friends. At that time you won't be able to create any new posts, but your existing content will remain accessible in two ways:
I'm gonna miss you  google buzz..

    Monday, October 24, 2011

    Facebook tips: Secure Facebook

    As per alexa.com, Facebook is the world number 1 most popular social networking site, and its world wide ranking is 2nd after google.com. It stores our personal data like contact info, images etc. and now it is your open ID, So it becomes necessary to secure our accounts.

    Facebook provides HTTPS secure browsing by default. If you use HTTPS browsing, all the data shared between your web browser and Facebook server will be in encrypted.













    How to enable https in facebook: ( in simple 4 steps )


    Aakash Tablet : Worlds cheapest


    Aakash is an Android-based tablet computer designed and developed by DataWind and work done by IIT Rajasthan.It is manufactured in India as a low cost and launched by the Telecom and Education Minister, Kapil Sibbal. The commercial version of the tablet will be retailed under the brand name UbiSlate 7. Aakash will be assembled at DataWind's new production centre in Hyderabad. Initially, the device will be sold to the Government of India at $50. It is expected to be sold for $60 in the retail stores.

    The tablet powered by Android 2.2 (Froyo) and comes with a 7-inch resistive touchscreen with 800x480 resolution and weighs 350 grams.It supports popular file formats like  video web conferencing facility, multimedia content viewer for example .pdf, .docx, .ods, .adp, .doc, .xls, .txt, .jpeg, .gif, .bmp, .odt, .zip, AVI, AC3, etc.; searchable PDF reader; unzip tool to unzip zip files; possibility to install suitable firmware upgrades; computing abilities such as Open Office, SciLab, cups (for printing support); media player able to play streamed and stored media files; Internet browsing, JavaScript, PDF plug-in Java; wireless communication for audio/video I/O; cloud computing option; remote device management ability; rendering YouTube and other online video services (open source Flash players, e.g., gnash or swfdec).



    Tuesday, October 18, 2011

    Adding Calendar control using jQuery

    The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.
    By default, the datepicker calendar opens in a small overlay onFocus and closes automatically onBlur or when a date is selected. For an inline calendar, simply attach the datepicker to a div or span.
    You can use keyboard shortcuts to drive the datepicker:
    • page up/down - previous/next month
    • ctrl+page up/down - previous/next year
    • ctrl+home - current month or open when closed
    • ctrl+left/right - previous/next day
    • ctrl+up/down - previous/next week
    • enter - accept the selected date
    • ctrl+end - close and erase the date
    • escape - close the datepicker without selection

    DEMO: How to Add Calendar using jQuery.


    Click on textbox to select date

    Source code:

    <!DOCTYPE html>
        <html>
        <head>