Saturday, July 31, 2010

The great Indian Salesman

A keen immigrant Indian Marwadi lad applied for a salesman's job at London 's premier downtown department store. In fact, it was the biggest store in the world - you could get anything there.

The boss asked him, "Have you ever been a salesman before?" "Yes sir, I was a salesman in India ", replied the lad. The boss liked the cut of him and said, "You can start tomorrow and I'll come and see you."


The day was long and arduous for the young man, but he got through it. And finally 6:00 PM came around. The boss duly fronted up and asked, "How many sales did you make today?" "Sir, Just ONE sale." said the young salesman. "Only one sale?" blurted the boss. "No! No! You see here, most of my staff make 20 or 30 sales a day. "If you want to keep this job, you'd better be doing better than just one sale. By the way "How much was the sale worth?"


= 93300534.00 pounds" said the young Marwadi. "What"," How did you manage that?" asked the flabbergasted boss.


"Well", said the salesman, "This man came in and I sold him a small fish hook, then a medium hook and finally a really large hook. Then I sell him new fishing rod and some fishing gear. Then I asked him where he was going fishing and he said down the coast. So I told him he'd be needing a boat, so I took him down to the boat department and sold him that twenty-foot schooner with the twin engines. Then he said his Volkswagen probably wouldn't be able to pull it, so I took him to our automotive department and sold him that new Deluxe 4X4 Blazer.


I then asked him where he'll be staying, and since he had no accommodation, I took him to camping department and sold him one of those new igloo 6-sleeper camper tents. Then the guy said, while we're at it, I should throw in about $100 worth of groceries and two cases of beer.



The boss took two steps back and asked in astonishment, "You sold all that to a guy who came in for a fish hook!!"

"No" answered the salesman, "he came in to buy a headache relief tablet and I said to him, "Si r, fishing is best headache pain removal"


Boss - "You sit in my chair.......

Tuesday, July 27, 2010

Should You Farm out Your Data Protection?

As a smart engineer, the biggest problem to contend with in regards to cyber criminals is that they're smart engineer, too. They're highly motivated and technically proficient hard workers.

What they're after isn't fame or notoriety. It's about money. Specifically, that means stealing data--personal and business facts and figures that can be used to generate illegal profits. It also means hijacking the computing power of your PCs and servers to steal other people's data in order to generate more profit.

Tuesday, July 20, 2010

How to Prevent a Directory Listing of Your Website with .htaccess

If you create a new directory (or folder) on your website, and do not put a "index.html" file in it, you may be surprised to find that your visitors can get a directory listing of all the files in that folder. For example, if you create a folder called "incoming", you can see everything in that directory simply by typing "http://www.example.com/incoming/" in your browser. No password or anything is needed.

This article shows you how you can configure your web server so that it does not show a directory listing by default.

Prerequisites
Your Website Must Be on an Apache Web Server
Your Web Host Must Have Enabled .htaccess Server Overrides


Steps to Preventing a Directory Listing

1. Get Your Existing .htaccess File, If Any
2. Make a Backup of the .htaccess File
3. Create or Open the .htaccess File (only with ascii editor)
4. Disable Indexing, Type "Options -Indexes "
5. Saving and Uploading the File make sure you save it as ".htaccess"
6.Test Your Site

Tuesday, July 13, 2010

Tips

To operate PC without mouse

Press shift+alt+numlock then use number keys to operate

Trick to create your own icon

Goto paint->select image->resize to 32×32 pixel and save as filename.ico

.LOg to use notepad as diary

Should type in notepad not as extension

Speed up folder browsing

Go to tools->folder option->view tab->uncheck automatically search for network folders,reboot!

Nanotechnology

Nanotechnology, shortened to “nanotech“, is the study of the controlling of matter on an atomic and molecular scale. Generally nanotechnology deals with structures of the size 100 nanometers or smaller in at least one dimension, and involves developing materials or devices within that size. Nanotechnology is very diverse, ranging from extensions of conventional device physics to completely new approaches based upon molecular self-assembly, from developing new materials with dimensions on the nanoscale to investigating whether we can directly control matter on the atomic scale.

PARAM Padma

PARAM Padma is C-DAC’s next generation high performance scalable computing cluster, currently with a peak computing power of One Teraflop. The hardware environment is powered by the Compute Nodes based on the state-of-the-art Power4 RISC processors, using Copper and SOI technology, in Symmetric Multiprocessor (SMP) configurations. These nodes are connected through a primary high performance System Area Network, PARAMNet-II, designed and developed by C-DAC and a Gigabit Ethernet as a backup network.

The PARAM Padma is powered by C-DAC’s flexible and scalable HPCC software environment. The Storage System of PARAM Padma has been designed to provide a primary storage of 5 Terabytes scalable to 22 Terabytes. The network centric storage architecture, based on state-of-the-art Storage Area Network (SAN) technologies, ensures high performance, scalable and reliable storage. It uses Fibre Channel Arbitrated Loop (FC-AL) based technology for interconnecting storage subsystems like Parallel File Servers, NAS Servers, Metadata Servers, Raid Storage Arrays and Automated Tape Libraries, achieving an I/O performance of upto 2 Gigabytes/Second.

The Secondary backup storage subsystem is scalable from 10 Terabytes to 100 Terabytes with an automated tape library and support for DLT, SDLT and LTO Ultrium tape drives. It implements a Hierarchical Storage Management (HSM) technology to optimize the demand on primary storage and effectively utilize the secondary storage.

The PARAM Padma system is also accessible by users from remote locations.

Firebug

The Firebug extension for Mozilla Firefox allows the debugging, editing, and monitoring of any website’s CSS, HTML, DOM, and JavaScript, and provides other Web development tools. It also has a JavaScript console for logging errors and watching values, as well as a “Net” feature which monitors the amount of time in milliseconds it takes to load and execute scripts and images on the page. Firebug’s official website has a complete guide to what it can do. Firebug is free and open source, licensed under the BSD license.

Fix Corrupted File in XP

Load XP cd in CD Drive, go to run and type cmd then type Sfc/scan in command promt. Copy lost file from cd.

CHDSK

Step:1 Go to Run

Step:2 Type CHKDSK and press enter.

This checks your disks and tells if there are any errors.

Increase Virtual memory and Speed up your PC

Go to property of My Computer

>Advance

>First Settings

>Advance

>Change

>Reset the virtual memory

>restart

Top 16 Best Practices for Writing Super Readable Code

1. Commenting & Documentation

2. Consistent Indentation

3. Avoid Obvious Comments

4. Code Grouping

5. Consistent Naming Scheme

6. DRY Principle

7. Avoid Deep Nesting

8. Limit Line Length

9. File and Folder Organization

10. Consistent Temporary Names

11. Capitalize SQL Special Words

12. Separation of Code and Data

13. Alternate Syntax Inside Templates

14. Object Oriented vs. Procedural

15. Read Open Source Code

16. Code Refactoring

Changing the Float Property with JavaScript

To change a CSS value in JavaScript, you would access the style object, converting the intended CSS property to “camel case”. For example, the CSS property “margin-left” becomes marginLeft; the property background-color becomes backgroundColor, and so on. But with the float property, it’s different, because float is already a reserved word in JavaScript. So, the following would be incorrect:

myDiv.style.float = “left”;

Instead, you would use one of the following:

// For Internet Explorer

myDiv.style.styleFloat = “left”;

// For all other browsers

myDiv.style.cssFloat = “left”;

Aligning an Field with a Button

Default styling on form elements across different browsers can be a pain to deal with. Often times, in a single-field form like a search form, it is necessary to place the element next to the submit button.

In every browser, the result is the same: The button appears slightly higher than the input field. Changing margins and padding does nothing. The simple way to fix this is to float the input field left, and add a small right margin.

The Overflow Property

By far the best, and easiest solution to resolve the collapsing parent issue is to add overflow: hidden or overflow: auto to the parent element. It’s clean, easy to maintain, works in almost all browsers, and does not add extra markup.

You’ll notice I said “almost” all browsers. This is because it does not work in IE6. But, in many cases, the parent container will have a set width, which fixes the issue in IE6. If the parent container does not have a width, you can add an IE6-only style with the following code:

// This fix is for IE6 only
.clearfix {
height: 1%;
overflow: visible;
}

In IE6, the height property is incorrectly treated as min-height, so this forces the container to enclose its children. The overflow property is then set back to “visible”, to ensure the content is not hidden or scrolled.

The only drawback to using the overflow method (in any browser) is the possibility that the containing element will have scrollbars or hide content. If there are any elements with negative margins or absolute positioning inside the parent, they will be obscured if they go beyond the parent’s borders, so this method should be used carefully. It should also be noted that if the containing element has to have a specified height, or min-height, then you would definitely not be able to use the overflow method.

So, there really is no simple, cross-browser solution to the collapsing parent issue. But almost any float clearing issue can be resolved with one of the above methods.

Adding Extra Markup

This is an outdated method, but is an easy option. Simply add an extra element at the bottom of the container and “clear” it. Here’s how the HTML would look after this method is implemented:

some content


And the resulting CSS applied to the new element:

.clearfix {
clear: both;
}

You could also do this by means of a
tag with an inline style. In any case, you will have the desired result: the parent container will expand to enclose all of its children. But this method is not recommended since it adds nonsemantic code to your markup.

Excel Macro

Excel macro programming is also known as VBA or Visual Basic for Application. The term Macro Programming originates from Lotus 1-2-3 spreadsheet program. It was also used in the early version of Excel. The term was gradually replaced by the name VBA. VBA is the short form for Visual Basic for Application. VBA is different from Visual Basic. A good Visual Basic Programmer is rarely a good VBA programmer.

The 4 main purposes of learning VBA are to

  1. automate repetitive tasks and reduce the need for human intervention;
  2. create and add your own (customised) worksheet functions to the library of worksheet functions;
  3. create an interactive program that automates complex and tedious calculations in Excel;
  4. interact with other office applications such as Ms Word, Ms Access and MS Powerpoint.

Record a Macro

Record a macro is the simplest way to enhance the power of excel. And you do not have to know programming to make use of macros to enhance the your productivity. In this example, we are going to share with you how you can record a macro that will format the cell with a number format that is not provided by any of the Excel icons. To make it complete, we need to create an icon and assign the macro to the icon, First let us show you how to record the macro and save it such that you can use it in all the worksheets.
  1. Enter a number in the active cell. Make sure this cell is selected before you record the macro.
  2. Go to the menu, click on Tools –> Macro –> Record New Macro.
  3. Enter a name for the macro e.g. Custom_Num_Format (note: spaces are not allowed), select to store the macro in “Personal Macro Workbook”.
  4. Once macro recording starts, try not to touch the worksheet. If you accidentally select a cell in the porcess, the action will be captured and the macro will always include this action of selecting the cell.

  5. Go to the menu bar and select Format -> Cells.
  6. In the Format Cell window, select the Number Tab.
  7. Select the number category, check the box “Use 1000 Separator (,)”, select the negative number format with bracket. In this step, you can choose your own number formatting.
  8. Go to the Patterns Tab and select the color RED to colour the selected cell. You can choose to skip this step if you do not want format the cell RED.
  9. Click OK to exit Format Cell Dialog box.
  10. Stop the Macro Recorder by click on the pop up box. Alternatively, goto to menu, click on Tools –> Macro –> Stop Recording.
  11. Close the Excel Application. You can click on the big RED X on the top right hand corner. There will be a number of prompts depending on how many worksheets are opened. Look out for the prompt on whether you want to save the changes made to the personal macro workbook. Click Yes. This will save the macro and make it available for use every time you open Excel.

What is solid code?

Solid code is code that:

  • Is easy to read and easy to maintain;
  • Is reusable by you and by others;
  • Performs as expected, each time.

Flat File

Much of the information available today is contained in some type of database. Blogs use databases to store posts and user information, discussion sites use them to store information about members, and organizations use them to store useful data for their business — from financial records to customer information.

The majority of the databases used today are relational databases that use structured queries to retrieve information and present it to the user. This was not always the case, and flat file databases were created to store information in a non-structured way.

A flat file is a collection of data stored and accessed sequentially. A comma separated values (CSV) sheet in Microsoft Excel is a flat file. There are no application specific formats applied to the data contained within the file and only a comma denotes the end of one field in a record. Each record is written on a line in the file, allowing all data for a single record to be stored separately from other records.

International Workers’ Day

International Workers’ Day is the commemoration of the Haymarket Massacre in Chicago in 1886, when Chicago police fired on workers during a general strike for the eight hour day, killing several demonstrators and resulting in the deaths of several police officers, largely from friendly fire. In 1889, the first congress of the Second International, meeting in Paris for the centennial of the French Revolution and the Exposition Universelle, following a proposal by Raymond Lavigne, called for international demonstrations on the 1890 anniversary of the Chicago protests. These were so successful that May Day was formally recognized as an annual event at the International’s second congress in 1891. The May Day Riots of 1894 and May Day Riots of 1919 occurred subsequently. In 1904, the International Socialist Conference meeting in Amsterdam called on “all Social Democratic Party organizations and trade unions of all countries to demonstrate energetically on May First for the legal establishment of the 8-hour day, for the class demands of the proletariat, and for universal peace.” As the most effective way of demonstrating was by striking, the congress made it “mandatory upon the proletarian organizations of all countries to stop work on May 1, wherever it is possible without injury to the workers.”

Through all this turmoil in the northern hemisphere, the Stonemasons Society in the then colony of Victoria, now the State of Victoria in Australia led the battle for the ’8 Hour Day’, the most dramatic achievement of the early trade Union Movement. By 1856, Australian workers were benefiting from the results of a decision by the Collingwood Branch of the Stonemasons Society of Victoria. The same year it was recognized in New South Wales, followed by Queensland in 1858 and South Australia in 1873. A memorial statue with the numerals 888, representing 8 hours of work, 8 hours of recreation, and 8 hours of rest, sits on the corner of Lygon Street and Victoria Parade in Melbourne, Australia to this day.

May Day has long been a focal point for demonstrations by various socialist, communist, and anarchist groups. In some circles, bonfires are lit in commemoration of the Haymarket martyrs, usually right as the first day of May begins. It has also seen right-wing massacres of participants as in the Taksim Square massacre of 1977 in Turkey.

Due to its status as a celebration of the efforts of workers and the socialist movement, May Day is an important official holiday in Communist countries such as the People’s Republic of China, Cuba, and the former Soviet Union. May Day celebrations typically feature elaborate popular and military parades in these countries.

In countries other than the United States and Canada, resident working classes sought to make May Day an official holiday and their efforts largely succeeded. For this reason, in most of the world today, May Day is marked by massive street rallies led by workers, their trade unions, anarchists and various communist and socialist parties.

In the United States, however, the official Federal holiday for the “working man” is Labor Day in September. This day was promoted by the Central Labor Union and the Knights of Labor organized the first parade in New York City. The first Labor Day celebration was held on September 5, 1882, and was organized by the Knights of Labor. The Knights began holding it every year and called for it to be a national holiday, but this was opposed by other labor unions who wanted it held on May Day (as it is everywhere else in the world). After the Haymarket Square riot in May, 1886, President Cleveland feared that commemorating Labor Day on May 1 could become an opportunity to commemorate the riots. Thus he moved in 1887 to support the Labor Day that the Knights supported.

India

The first May Day celebration in India was organised in Madras by the Labour Kisan Party of Hindustan on May 1, 1923. This was also the first time the red flag was used in India. The party leader Singaravelu Chettiar made arrangements to celebrate May Day in two places in 1923. One meeting was held at the beach opposite to the Madras High Court; the other meeting was held at the Triplicane beach. The Hindu newspaper, published from Madras reported,

The Labour Kisan party has introduced May Day celebrations in Chennai. Comrade Singaravelar presided over the meeting. A resolution was passed stating that the government should declare May Day as a holiday. The president of the party explained the non-violent principles of the party. There was a request for financial aid. It was emphasized that workers of the world must unite to achieve independence.

May Day is a nationwide bank holiday in India. The holiday is tied to labour movements for communist and socialist political parties. In Maharashtra and Gujarat, it is officially called Maharashtra Day and Gujarat Day respectively, since on this day in 1960 each attained statehood, after the old Bombay State became divided on linguistic lines.

If you want to list all the files in a directory in Excel or in notepad, then…

Assume you want to find for dir test in c:

In the command prompt window, change the current path to the required folder path

Type:

Dir /b > file.csv or Dir /b > file.txt

Or

C:\Test /b > c:\files.csv

“How Can A STUDENT Pass ???”

It’s not the fault of the school STUDENT if they fail, because the year has only 365 days. Typical academic year for a dull STUDENT.

1. Sundays-52,Sundays in a year, which are rest days. Balance 313 days.

2. Summer holidays-50 where weather is very hot and difficult to study. Balance 263 days.

3. 8 hours daily sleep-means 122 days. Balance 141 days.

4. 1 hour for daily playing-(good for health) means 15 days. Balance 126 days.

5. 2 hours daily for food & other delicacies(chew properly & eat) means 30 days. Balance 96 days.

6. 1 hour for talking (man is a social animal)means 15 days. Balance 81 days.

7. Exam days per year atleast 35 days. Balance 46 days.

8. Quarterly, Half yearly and festival (holidays)40 days. Balance 6 days.

9. For sickness atleast 3 days. Balance 3 days.

10. Movies and functions atleast 2 days. (Entertainment is a must) Balance 1 day.

11. That 1 day is birthday of the STUDENT.

“HOW CAN A STUDENT PASS…?”

Friday, July 2, 2010

Open eBay Apps

Open eBay Apps allows developers to integrate applications directly in the eBay.com interface where US sellers can subscribe to them and use them.

eBay's professional sellers benefit from a streamlined and trusted site experience with access to advanced selling tools that meet their specific needs. Developers benefit by integrating, promoting, and monetizing their applications on the world's largest e-commerce site.

Amazon Kindle

Amazon Kindle is a software and hardware platform developed by Amazon.com the rendering and displaying of e-books and other digital media. Three hardware devices, known as “Kindle”, “Kindle 2″, and “Kindle DX” support this platform.

ASP.NET is the next generation ASP

ASP.NET is the next generation ASP, but it’s not an upgraded version of ASP. ASP.NET is an entirely new technology for server-side scripting.

ASP.NET is a part of the Microsoft .NET framework, and a powerful tool for creating dynamic and interactive web pages.

Firebug

The Firebug extension for Mozilla Firefox allows the debugging, editing, and monitoring of any website’s CSS, HTML, DOM, and JavaScript, and provides other Web development tools. It also has a JavaScript console for logging errors and watching values, as well as a “Net” feature which monitors the amount of time in milliseconds it takes to load and execute scripts and images on the page. Firebug’s official website has a complete guide to what it can do. Firebug is free and open source, licensed under the BSD license.

“How Can A STUDENT Pass ???”

It’s not the fault of the school STUDENT if they fail, because the year has only 365 days. Typical academic year for a dull STUDENT.

1. Sundays-52,Sundays in a year, which are rest days. Balance 313 days.

2. Summer holidays-50 where weather is very hot and difficult to study. Balance 263 days.

3. 8 hours daily sleep-means 122 days. Balance 141 days.

4. 1 hour for daily playing-(good for health) means 15 days. Balance 126 days.

5. 2 hours daily for food & other delicacies(chew properly & eat) means 30 days. Balance 96 days.

6. 1 hour for talking (man is a social animal)means 15 days. Balance 81 days.

7. Exam days per year atleast 35 days. Balance 46 days.

8. Quarterly, Half yearly and festival (holidays)40 days. Balance 6 days.

9. For sickness atleast 3 days. Balance 3 days.

10. Movies and functions atleast 2 days. (Entertainment is a must) Balance 1 day.

11. That 1 day is birthday of the STUDENT.

“HOW CAN A STUDENT PASS…?”

Online Proxy

Online proxy is a free utility service which can be used by anybody around the world to surf the World Wide Web anonymously without any security fears.

It utilizes a mirrored server with the help of which your IP and other details are always concealed to the intermediary who is providing the proxy server service. It might happen that when you are at work, your employer has blocked certain sites like My Space, Facebook, Twitter so that you don’t indulge in them and concentrate fully on work.

In such a situation you can use an anonymous proxy server to visit these sites without leaving a trace of the pages you were viewing using this service. It will always come to your aid if you don’t want to unblock a site but still want to view it. It’s an easy and convenient way to view the website of your choice.

What this service actually does is that it re-routes your website request via the proxy server that the service provider has installed at a remote location. So the person who is blocking the website will interpret that this request is coming from another IP and not yours.