Monday, July 30, 2007

How to retrive the images from Databaase?

this code is used to store the images in database usign stored procedures and this code also proved practically proved

1. go to sqlserver then
create table InsertPhoto(eid int identity(1,1),ename varchar(30),photo image)then excute it
after that write procedues in sql serever only


we should write like that

CREATE PROCEDURE sp_InsertPhoto(@ename varchar(30),@photoclip_IM image )ASINSERT INTO insertphoto ( ename,photo )VALUES ( @ename,@photoclip_IM )GO

then excute it sqlsever only

after that go to asp.net page

go to html controles

in that
take input(file) drop on the asp.net page


go to html source page make it runat="server" beside input file control and then

in that control only we should take input (submit) button

drop on the page

we should include this namespaces

using System.Data.OleDb;
using System.Drawing.Imaging ;
using System.IO;using System.Drawing;

in submit button_click event we write like this

Stream imagestreame = File1.PostedFile.InputStream;

int len = File1.PostedFile.ContentLength;
byte[] imagecontent = new byte[len];
imagestreame.Read(imagecontent, 0, len);

if (cn.State == ConnectionState.Closed)

{ cn.Open();
}
cmd=new OleDbCommand ("sp_InsertPhoto",cn);

cmd.CommandType = CommandType.StoredProcedure;
OleDbParameter pr = new OleDbParameter("@ename", OleDbType.VarChar);

pr.Value = File1.Value;
cmd.Parameters.Add(pr);
OleDbParameter primage = new OleDbParameter("@photoclip_IM", SqlDbType.Image );
primage .Value= imagecontent;
cmd.Parameters.Add(primage);
cmd.ExecuteNonQuery();
Response.Write("image stored");
}}

for retriving the same image from database we should write like this
you must include this name spaces


using System.Data.OleDb;
using System.Drawing.Imaging ;
using System.IO;using System.Drawing;

in button_click event
OleDbDataAdapter adp=new OleDbDataAdapter ();

DataSet ds=new DataSet ();
int i=0;
try{

cn .Open();cmd=new OleDbCommand ("select photo from insertphoto where eid=1",cn);

adp.SelectCommand =cmd ;
ds=new DataSet("st");
adp.Fill(ds);
byte [] bits= (byte [])(ds.Tables[0].Rows[i][0]);

//converting the data to byteMemoryStream memorybits= new MemoryStream(bits);
Bitmap bitm =new Bitmap(memorybits);
Response.BinaryWrite(bits);}catch(Exception ex){Response.Write(ex.Message);
}
finally
{
cn.Close();

}
}

}
}

Search engine optimization (SEO)


Search Engine Optimization [SEO]

is the process of improving the volume and quality of traffic to a web site from search engines via "natural" ("organic" or "algorithmic") search results. Usually, the earlier a site is presented in the search results, or the higher it "ranks", the more searchers will visit that site. SEO can also target different kinds of search, including image search, local search, and industry-specific vertical search engines.

As a marketing strategy for increasing a site's relevance, SEO considers how search algorithms work and what people search for. SEO efforts may involve a site's coding, presentation, and structure, as well as fixing problems that could prevent search engine indexing programs from fully spidering a site. Other, more noticeable efforts may include adding unique content to a site, ensuring that content is easily indexed by search engine robots, and making the site more appealing to users. Another class of techniques, known as "Black Hat" SEO or spamdexing, use methods such as link farms and keyword stuffing that tend to harm search engine user experience. Search engines look for sites that employ these techniques and may remove their listings.

The initialism "SEO" can also refer to "search engine optimizers", a term adopted by an industry of consultants who carry out optimization projects on behalf of clients, and by employees who perform SEO services in-house. Search engine optimizers may offer SEO as a stand-alone service or as a part of a broader marketing campaign. Because effective SEO may require changes to the HTML source code of a site, SEO tactics may be incorporated into web site development and design. The term "search engine friendly" may be used to describe web site designs, menus, content management systems and shopping carts that are easy to optimize.

Saturday, July 28, 2007

UML






UML for SOC DesignBy Grant Martinhttp://mihd.net/irkqgt




UML for Java ProgrammersBy Robert C. Martinhttp://mihd.net/oa2j8y




UML 2 for DummiesBy Michael Jesse Chonoleshttp://mihd.net/2wqz5b




The UML Profile for Framework ArchitecturesBy Marcus






Software Evolution With UML and XMLBy Hongji Yanghttp://mihd.net/1r3bkx




Secure Systems Development with UMLBy Jan Jürjenshttp://mihd.net/y4ifge


UML Weekend Crash CourseBy Thomas A. Penderhttp://rapidshare.de/files/22034391/0764549103.zip




The Elements of UMLBy Scott W. Amblerhttp://mihd.net/je9qkh




Building Web Applications with UMLBy Jim Conallenhttp://rapidshare.com/files/28901020/bldwappuml2.rar




UML 2.0 in a NutshellBy Dan Pilonehttp://mihd.net/3cqwms




Business Modeling With UML Business Patterns at WorkBy Magnus Penkerhttp://rapidshare.com/files/23186737/busmoduml.rar.html




Mastering UML with Rational RoseBy Wendy Boggshttp://rapidshare.com/files/29406917/mastumlrr2k2.rar




Professional UML with Visual Studio .NETBy Andrew Filevhttp://mihd.net/iapkrf

RFID [Radio Frequency Identification]

Radio frequency identification (RFID) is a method of remotely storing and retrieving data using devices called RFID tags. An RFID tag is a small object, such as an adhesive sticker, that can be attached to or incorporated into a product. RFID tags contain antennae to enable them to receive and respond to radio-frequency queries from an RFID transceiver.

History of RFID tags


Although some people think that the first known device may have been invented by Leon Theremin as an espionage tool for the Russian Government in 1945, the first real usage of RFID devices predates that. During World War II the United Kingdom used RFID devices to distinguish returning English airplanes from inbound German ones. RADAR was only able to signal the presence of a plane, not the kind of plane it was.
Perhaps the first work exploring RFID is the landmark 1948 paper by Harry Stockman, entitled "Communication by Means of Reflected Power" (Proceedings of the IRE, pp1196-1204, October 1948). Stockman predicted that "...considerable research and development work has to be done before the remaining basic problems in reflected-power communication are solved, and before the field of useful applications is explored." It required thirty years of advances in many different fields before RFID became a reality.

Types of RFID tags
RFID tags can be either active or passive.
Passive RFID tags do not have their own power supply: the minute electrical current induced in the antenna by the incoming radio-frequency scan provides enough power for the tag to send a response. Due to power and cost concerns, the response of a passive RFID tag is necessarily brief, typically just an ID number (GUID). Lack of its own power supply makes the device quite small: commercially available products exist that can be embedded under the skin. As of 2004, the smallest such devices commercially available measured 0.4 mm × 0.4 mm, and thinner than a sheet of paper; such devices are practically invisible. Passive tags have practical read ranges that vary from about 10 mm up to about 5 metres.

Active RFID tags, on the other hand, must have a power source, and may have longer ranges and larger memories than passive tags, as well as the ability to store additional information sent by the transceiver. At present, the smallest active tags are about the size of a coin. Many active tags have practical ranges of tens of metres, and a battery life of up to several years.
As passive tags are much cheaper to manufacture and do not depend on a battery, the vast majority of RFID tags in existence are of the passive variety. As of 2004 tags cost from US$0.40. The aim is to produce tags for less than US$0.05 to make widespread RFID tagging commercially viable. However, chip manufacturers supply of integrated circuits is not sufficient and demand is too low for prices to come down soon. Analysts from independent research companies like Gartner and Forrester Research agree that a price level of less than $0.10 is only achievable in 6-8 years.
There are four different kinds of tags commonly in use. They are categorized by their radio frequency: Low frequency tags (between 125 to 134 kilohertz), High frequency tags (13.56 megahertz), UHF tags (868 to 956 megahertz), and Microwave tags (2.45 gigahertz). UHF tags cannot be used globally as there aren't any global regulations for its usage.
See also for some Transponder devices which deliver a similar function, and contactless chipcards.
The RFID System
An RFID system may consist of several components: tags, tag readers, tag programming stations, circulation readers, sorting equipment, and tag inventory wands. Security can be handled in two ways. Security gates can query the ILS to determine its security status or the tag may contain a security bit which would be turned on and off by circulation or self-check reader stations.
The purpose of an RFID system is to enable data to be transmitted by a portable device, called a tag, which is read by an RFID reader and processed according to the needs of a particular application. The data transmitted by the tag may provide identification or location information, or specifics about the product tagged, such as price, color, date of purchase, etc. The use of RFID in tracking and access applications first appeared during the 1980s. RFID quickly gained attention because of its ability to track moving objects. As the technology is refined, more pervasive - and invasive - uses for RFID tags are in the works.

In a typical RFID system, individual objects are equipped with a small, inexpensive tag which contains a transponder with a digital memory chip that is given a unique electronic product code. The interrogator, an antenna packaged with a transceiver and decoder, emits a signal activating the RFID tag so it can read and write data to it. When an RFID tag passes through the electromagnetic zone, it detects the reader's activation signal. The reader decodes the data encoded in the tag's integrated circuit (silicon chip) and the data is passed to the host computer for processing.


Current usage
Low -frequency RFID tags are commonly used for animal identification, beer keg tracking, and automobile key-and-lock, anti-theft systems. Pets are often embedded with small chips so that they may be returned to their owners if lost. In the United States, two RFID frequencies are used: 125kHz (the original standard) and 134.5kHz, the international standard.
High-frequency RFID tags are used in library book or bookstore tracking, pallet tracking, building access control, airline baggage tracking, and apparel item tracking. High-frequency tags are widely used in identification badges, replacing earlier magnetic stripe cards. These badges need only be held within a certain distance of the reader to authenticate the holder.
UHF RFID tags are commonly used commercially in pallet and container tracking, and truck and trailer tracking in shipping yards.

Microwave RFID tags are used in long range access control for vehicles, an example being General Motors' OnStar system.
Some toll booths, such as California's FasTrak and Illinois' I-Pass system, use RFID tags for electronic toll collection. The tags are read as vehicles pass; the information is used to debit the toll from a prepaid account. The system helps to speed traffic through toll plazas.
Sensors such as seismic sensors may be read using RFID transceivers, greatly simplifying remote data collection.
In January 2003, Michelin announced that it has begun testing RFID transponders embedded into tires. After a testing period that is expected to last 18 months, the manufacturer will offer RFID-enabled tires to car-makers. Their primary purpose is tire-tracking in compliance with the United States Transportation, Recall, Enhancement, Accountability and Documentation Act (TREAD Act).
Cards embedded with RFID chips are widely used as electronic cash, e.g. Octopus Card in Hong Kong and the Netherlands to pay fares in mass transit systems and/or retails.
Starting from the 2004 model year, a "Smart Key" option is available to the Toyota Prius and some Lexus models. The key fob uses an active RFID circuit which allow the car to acknowledge the key's presence within 3 feet of the sensor. The driver can open the doors and start the car while the key remains in a purse or pocket.

In August 2004, the Ohio Department of Rehabilitation and Correction (ODRH) approved a $415,000 contract to trial the tracking technology with Alanco Technologies. Inmates will wear "wristwatch-sized" transmitters that can detect if prisoners have been trying to remove them and send an alert to prison computers. This project is not the first such rollout of tracking chips in US prisons. Facilities in Michigan, California and Illinois already employ the technology.


Implantable RFID "chips", originally designed for animal tagging are being used and contemplated for humans as well. Applied Digital Solutions proposes their chip's "unique under-the-skin format" as a solution to identity fraud, secure building access, computer access, storage of medical records, anti-kidnapping initiatives and a variety of law-enforcement applications. Combined with sensors to monitor body functions, the Digital Angel device could provide monitoring for patients. The Baja Beach Club in Barcelona, Spain uses an implantable Verichip to identify their VIP customers, who in turn use it to pay for drinks. The Mexico City police department has implanted approximately 170 of their police officers with the Verichip, to allow access to police databases and possibly track them in case of kidnapping

Potential uses

RFID tags are often envisioned as a replacement for UPC or EAN bar-codes, having a number of important advantages over the older bar-code technology. RFID codes are long enough that every RFID tag may have a unique code, while current UPC codes are limited to a single code for all instances of a particular product. The uniqueness of RFID tags means that a product may be individually tracked as it moves from location to location, finally ending up in the consumer's hands. This may help companies to combat theft and other forms of product loss. It has also been proposed to use RFID for point-of-sale store checkout to replace the cashier with an automatic system which needs no barcode scanning.


An organization called EPCglobal is working on a proposed international standard for the use of RFID and the Electronic Product Code (EPC) in the identification of any item in the supply chain for companies in any industry, anywhere in the world. The organization's board of governors includes representatives from EAN International, Uniform Code Council, The Gillette Company, Procter & Gamble, Wal-Mart, Hewlett-Packard, Johnson & Johnson, and Auto-ID Labs. Some RFID systems use alternative standards based on the ISO-classification 18000-6.
In July 2004, the Food and Drug Administration issued a ruling that essentially begins a final review process that will determine whether hospitals can use RFID systems to identify patients and/or permit relevant hospital staff to access medical records.


Also, the FDA recently approved the country's first RFID chips that can be implanted in humans. The 134.2kHz RFID chips, from VeriChip Corp., a subsidiary of Applied Digital Solutions Inc., can incorporate personal medical information and could save lives and limit injuries from errors in medical treatments, according to the company. The FDA approval was disclosed during a conference call with investors.


Some in-home uses, such as allowing a refrigerator to track the expiration dates of the food it contains, have also been proposed, but few have moved beyond the prototype stage.
Another proposed application is the use of RFID as intelligent traffic signals on the road

Friday, July 27, 2007

Java eBOOKS


Java Programming Language HandbookBy Anthony Potts David H., Jr. Friedelhttp://www.megaupload.com/?d=UA74O9I7




Hacking Java: The Java Professional's Resource KitBy Mark Wutkahttp://rapidshare.de/files/31425972/Hacking_Java_-_The_Professiona_sl_Resource_Kit.rar




XML Programming Bible (Bible)By Brian Benzhttp://rapidshare.com/files/18946967/0764538292.rar






password:ebooksclub.orgJava 2 Micro EditionBy David Hemphillhttp://rapidshare.de/files/22587710/1930110332.zip







Java Language Reference, 2nd Edition, 1997-08By Mark Grandhttp://rapidshare.de/files/31220346/Java_Language_Reference.rar



Developing Web Services with Java APIs for XMLBy Robert Hablutzelhttp://www.megaupload.com/?d=4LU3SBORhttp://mihd.net/bsdmny

Genetic Engineering


Genetic Engineering ?

Genetic engineering is the science of modification of genes in cells. Genes are collections of DNA molecules that comprise the code that determines the function and reproductive pattern of cells. Together with hormones and other chemical messengers, developed and naturally recombined over millions of years, genes determine everything about an organism.


Genetic engineers modify gene patterns in cells by implanting genes or DNA from one organism into another organism. For instance, Monsanto Corporation found a gene somewhere that made a plant resistant to a Monsanto weed-killer called Roundup. Monsanto then took that gene and implanted it into soybeans, instantly creating a new species of soybean that could be sprayed with Roundup weed killer without fear of killing the soybean plant. At first glance, this sounds like a great idea, using science to help farmers grow their crops. But this technology has a very dark side.
Why is it an environmental threat?

Over millions of years, a natural order of plant species variation and interbreeding in the wild has developed that has structural boundaries. Normally, the transfer of genes from one species to another is naturally regulated. If it were not, there would be species havoc - tree seeds that would grow into something completely different, grass seed that would grow 20 feet tall (or 20 millimeters tall), 50-leaf clovers, etc. There would be no way for the many forms of life on earth to survive and regenerate.

Genetic engineering has destroyed that natural barrier. The new Monsanto soybeans, called Roundup-Ready Soybeans (RRS), now have non-soybean genes in their cell nucleus. Thus in a tiny instant of time Monsanto crossed a genetic boundary that could not be crossed naturally. We know that these new genes have cross-pollinated to non-genetically-altered crops, and to similar species. We do not know know whether these genes are easily transferrable to other plant species. What Monsanto has created, is a plant "monster" - an unnatural species - that can reproduce through its seeds.
Some scientists in the early days of genetic engineering (about 1975) worried about super-germs (the first genetic engineering was done with E. coli bacteria) and cross-species contamination, but the claim was made that new species would be carefully confined to laboratories where they would be used to generate hormones or life-saving drugs. It was assumed that this containment would prevent cross-species contamination. Agricultural genetic engineering violated that assumption. Concerned scientists and others all over the world worry that this kind of artificial genetic manipulation may indeed cause biological havoc because it exposes the new cells and genes to other plant species.

In the United States, primarily because of the influence of Monsanto and other bio-technology firms in our regulatory agencies and the media, discussion of the topic has been limited, and the labeling of seeds and products with regard to whether they are or contain genetically modified organisms was, until recently, discouraged by threat of lawsuit by Monsanto. The only way for someone in the U.S. to avoid genetically modified grain is to buy products marked organic. The Food and Drug Administration even attempted several years ago to redefine the organic label to include genetically modified organisms, but public opposition prevented this change.

In Europe, and especially in Great Britain, a movement has developed that opposes the development and use of these genetically modified organisms (GMOs). The EEU has passed a regulation requiring that grain containing genetic modifications and products containing such grain that are imported into Europe be labeled as such. Because of the strong opposition to GMOs, this makes the grain and products less saleable. The U.S. Department of Agriculture and the U.S. Export Agency, supporting Monsanto's commercial interests, has threatened trade sanctions against the EEU. In Great Britain, environmental activists have protested agricultural genetic engineering, and some have taken part in civil disobedience, uprooting experimental plots belonging to Monsanto and other biotech firms.
What Can You Do?

If you agree that this technology is dangerous to the environment, call the Food and Drug Administration and the U.S. Department of Agriculture and register your concern. Ask the FDA to require labeling of GMO products and grain. Tell your friends and neighbors about the threat. Join with them and request that your supermarket supply more organically raised food, which is currently the only way to avoid GMO products.

Thursday, July 26, 2007

How to make the CV’s


Writing CVs

You are looking for a job and want to present yourself in the best possible manner to an employer. What do you do? You write a 'CV' (Curriculum Vitae - Latin for 'Life Story' called in some countries as a 'Resume'.CVs are looked at differently depending upon the nature of the employer. Principally, it is important to follow the correct practice of your culture and country but balance it with the employers' needs

What are CVs used for


CVs or Resumes are about presenting an impressive image of you to an employer. Employers look at a hundred CVs for the same job and finally choose only one.So what would make them choose you?

Tips for a writing a CV


Be Innovative!Consider finding out more about the job you are applying for. Analyze your personal skills, talents, education, work experience and compare them with skills required for that job. Do you have enough information about the job?Spend some time researching details about the job(s) that interest you and information about the employer


Personal Details


Include your name, home address, college address, phone number, email address, date of birth and also your gender if it is not obvious form your name! Also include your homepage URL if you have a good one. (It makes an impression)


Education Include the different places where you have studied- (most recent education first). Include subjects, courses taken in each year of study. Include any special project, thesis or other work completed during this period.The Pre-college courses (Junior college, high school, etc.) details should be included.


Work Experience

List out your most recent experience first. Give the name of the employer, job title and your own job function. Part-time work experience should be included.


Interests


Employers will be particularly interested in your leadership qualities and your ability to innovate and contribute to their company's success. They would like to know the various responsibilities you have previously taken up and completed. Personal hobbies do not interest them as much as your role as a leader. Give details if any, of your participation as an organizer for any social event.




Skills

Ability in other languages, computing experience and extra curricular like debates, etc. should be included.


References


Include two names - one from your place of study and one from any work situation you have had. Make sure eligible people who have worked with you or have corresponded with you give these references. Also give their contact numbers.


Length


Try using space as liberally as possible. Do not clog your CV onto one A4 size page. Take two pages but give enough area for your track record!



Style
There are two main styles of CV, with variations in them.Chronological:Information is included under general headings - education, work experience, etc., with the most recent events first.


Skills based


You apply through the necessary skills required for the job. List all your personal details under these skill headings. This is called 'targeting your CV'. But it is best to prepare a CV, which suits the workplace environment and the nature of the people in the organization and country.


Presentation


You can present your CV depending on the company you are applying to. A big company would generally expect a formal CV on a white paper. But if it is a television production job, or a graphic designer, the paper could be less formal and the CV, a bit unconventional.A CV can be constructed on a Word Processor (MS Word, WordPerfect or Lotus). It has to be well laid out and printed on a good quality printer. Do not use bold and/or underline print for headings. Avoid using different font types and sizes. Use plenty of white paper and a good border round the page. Use a spell check on your computer and consider using 'bullets' to start sub-sections or lists.Imagine yourself as an employer and write a CV which is easy to understand, short and attractive.