Tuesday, 2 October 2012

Tagged under: , , ,

Creating a Barcode in PHP

Creating a Barcode in PHP
A barcode is an optical machine-readable representation of data relating to the object to which it is attached. Originally barcodes represented data by varying the widths and spacings of parallel lines, and may be referred to as linear or one-dimensional (1D). A Barcode is generally used to map a product to its characteristics. For example, a barcode is commonly used to identify the product code, and map the unique code to the price of the product in the database. This barcode is a widely used technique. Creating a barcode is a fairly easy...

Saturday, 14 July 2012

Tagged under: , , ,

Secure Login Code using PHP and MySQL / Preventing SQL Injection using PHP

Secure Login Code using PHP and MySQL / Preventing SQL Injection using PHP
Many Web pages accept parameters from web users and generate SQL queries to the database. SQL Injection is a trick to inject SQL script/command as an input through the web front end. Your application may be susceptible to SQL Injection attacks when you incorporate invalidated user input into the database queries. Particularly susceptible is a code that constructs dynamic SQL statements with unfiltered user input. Consider the following example code: Sql DataAdapter myCommand = new SqlDataAdapter( "Select * from Users Where UserName = ' "+txtuid.Text+" ", conn); Attackers can inject SQL by terminating...

Wednesday, 11 July 2012

Tagged under: , , ,

Auto Refresh a Web Page using AJAX

Auto Refresh a Web Page using AJAX
AJAX is nothing but Asynchronous JavaScript and XML. It is not a new programming language, but a new way to use the existing standards. It is the art of exchanging data with a server, and updating parts of a web page without reloading the whole page!! Ajax is not a single technology, but a group of technologies. HTML and CSS can be used in combination to mark up and style information. JavaScript and XMLHttpRequest object provide a method for exchanging data asynchronously between browser and server to avoid full page reloads.  Using JavaScript...

Sunday, 8 July 2012

Tagged under: ,

Checking if your Computer has been violated and infected with DNS Changer

Checking if your Computer has been violated and infected with DNS Changer
Domain name system (DNS) is the part of the internet that links a website name (say example.com) to its numerical internet protocol equivalent (say 123.456.789.098). As the cyber world awaits Monday, when the FBI will shut down servers affected by the DNS changer malware, there is still a day to check if your system has been affected. Various cyber security firms are offering free solutions. You can visit www.mcafee.com/dnsdetect to check if your computer is infected. You can also manually check if your DNS server has been changed. Step I: Open Command Prompt....

Monday, 2 July 2012

Tagged under: , , ,

How to create CAPTCHA using PHP

How to create CAPTCHA using PHP
CAPTCHA:  Completely Automated Public Turing Test To Tell Computers and Humans Apart. A CAPTCHA is a program that protects websites against bots by generating and grading tests that humans can pass but current computer programs cannot. For example, humans can read distorted text as the one shown alongside, but current computer programs can't: The term CAPTCHA (for Completely Automated Public Turing Test To Tell Computers and Humans Apart) was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas Hopper and John Langford of Carnegie Mellon University. Generating a simple CAPTCHA and its...

Friday, 15 June 2012

Tagged under: , , ,

Connecting C# to MySQL database / C# connection String for MySQL

Connecting C# to MySQL database / C# connection String for MySQL
In many cases it becomes imperative to connect C# to MySql, the prominent reason being the inherent simplicity of MySql. We have generally used the usual connection string to connect PHP to MySql. Connecting C# to MySql is similar. We first need to use the connection string to establish the connection with MySql. Then, we use the SQL queries to carry out the Creation, Insertion, Update & Delete operations. Before we do anything, first you need to download and install mysql-connector. You can get this connector from MySQL :: Download Connector/Net. Once you install...

Friday, 1 June 2012

Tagged under: , , , ,

Generating a Unique Hardware Fingerprint for Software Licensing

Generating a Unique Hardware Fingerprint for Software Licensing
Generating a hardware fingerprint is the most commonly sought technique to ensure security in case of softwares. There can be various methods of generating the hardware fingerprint, using different languages. However, the important thing to decide is, which devices to consider while generating the fingerprint. For licensing purposes, the best and secure way is to generate a unique key for the client's machine and provide a corresponding license key for that key. The key can be generated using the unique id of the client's computer motherboard, BIOS and processor. When you get these...

Tuesday, 1 May 2012

Tagged under: , , ,

Solution for "Installation Error 0X80004002"

I was having a tough time installing Google Drive. When the setup was run, it gave an error message saying Google Update Installation failed, with error 0X80004002. This error is very common & occurs while installing Google products, like Chrome, Drive. I tried to search for the solution but in vain. So I took a seemingly daring way, to solve this problem, and guess what...it worked!!! Though this seems to be a crude way, it worked for me: 1. I Uninstalled all the Google related softwares from my PC, like Chrome, GTalk, Google...

Saturday, 31 March 2012

Tagged under: , , , ,

Sending email using PHP...(PHPMailer)

Sending email using PHP...(PHPMailer)
Sending emails using PHP is an easy task...Just a few steps and you are through!! Step I: Download PHPMailer The very first thing that needs to be done is, downloading the PHPMailer package. This package contains all the methods for sending simple mails, to sending mails with attachments!! You can download the package from: PHPMailer Step II: Starting to Code Create a new php file test.php and copy the following code: (Note: test.php file should be in the same folder as the extracted PHPMailer package) <?php require("class.phpmailer.php"); //You need to include the PHPMailer...

Tuesday, 7 February 2012

Tagged under: , , ,

Macromedia Flash 8

Macromedia Flash 8
Flash is a drawing and animation package designed to work with vector graphics. It creates animations which can include sounds, music and interactivity, and which are optimised for use on the web. Hence, the files it produces are small and designed for streaming. Furthermore, all the elements which form part of a flash movie are embedded within the movie. This means that, unlike a standard web page which relies on the fonts and resources on the client machine, as long as the user has the flash player installed, the movie will play exactly...

Sunday, 5 February 2012

Tagged under: , ,

Autodesk MAYA

Autodesk MAYA
Introduction: Maya is the 3-D animation software that provides a number of tools for creating complex characters and animations. Maya's powerful feature set gives us the flexibility to create any kind of animation. The functionality of the Maya software can be extended with the use of MEL (Maya embedded language). MEL can be used to customize the user interface and write scripts and macros.  Maya can create objects, lights, cameras and textures. Any object, light, camera, or just any entity can be animated by changing the value of its parameters in time. We can use...

Friday, 3 February 2012

Tagged under: , , , , ,

Client Server Chat

Client Server Chat
In this tutorial we will learn how to write a simple client server chat program in java. We will right both the server and client side of this program. One of the ways computers can communicate to each other through the internet is by using TCP/IP. A network socket is an endpoint of an inter-process communication flow across a computer network. Today, most communication between computers is based on the Internet Protocol; therefore most network sockets are Internet sockets. A socket address is the combination of an IP address and a port number, much like one end of a telephone connection is the combination of a...

Thursday, 26 January 2012

Tagged under: , , ,

...straight from the heart of an INDIAN

...straight from the heart of an INDIAN
“With the dawn of a new day, came a new stage, With determined agitation, we broke a white cage, India rose to freedom, when the world was asleep, The jailor had to back off, before our leap.” At the dawn of history, India started on her quest, and trackless centuries are filled with her striving, and the grandeur of her success and her failures. Through good and ill fortune alike, she has never lost her sight of that quest, or forgotten the ideals, which gave her the strength. The achievement which we celebrate...

Monday, 23 January 2012

Tagged under: ,

Computer Engineering SEM VIII Question Papers

Computer Engineering SEM VIII Question Papers
You can download the question papers from the download box present on my blog. Optionally, you can download it from the link COMP_ENGG_SEM_VIII You can Contact Me for further assistance. (function(w) { if (!w.SharexyWidget) { w.SharexyWidget = {};} if (!w.SharexyWidget.Params) { w.SharexyWidget.Params = {}; } w.SharexyWidget.Params['980623'] = {'code_id':'980623','publisher_key':'undefined','design':'sharexy','layout_static':'h','type':'st','mode_float':'','size_float':'60','size_static':'32','buzz':'0','services':['facebook', 'twitter', 'linkedin', 'google_plus', 'blogger'],'url':'current','allways_show_ads':'0','show_ads_sharing':'0','show_ads_cursor':'0','bg_float':'0','bg_color':'#f1f1f1','labels':'0','counters':'0', 'counters_float':'0'} })(window); ...

Saturday, 21 January 2012

Tagged under: , , , ,

C# code for connecting to a Web Page & Obtaining its Source Code/ Web Crawler Algorithm in C#

C# code for connecting to a Web Page & Obtaining its Source Code/ Web Crawler Algorithm in C#
HTTP is the primary mechanism for communicating with resources over the Web. It is a Stateless protocol, used for simple Request-Response communication.  A developer may often want to obtain web pages & their source codes, for different reasons like: building a spider, obtaining info on a particular page, etc. For this purpose, the .NET Framework includes classes that aid in this respect. Requesting & Obtaining an HTTP page: (function(w) { if (!w.SharexyWidget) { w.SharexyWidget = {};} if (!w.SharexyWidget.Params) { w.SharexyWidget.Params = {}; } w.SharexyWidget.Params['980623'] = {'code_id':'980623','publisher_key':'undefined','design':'sharexy','layout_static':'h','type':'st','mode_float':'','size_float':'60','size_static':'32','buzz':'0','services':['facebook', 'twitter', 'linkedin', 'google_plus', 'blogger'],'url':'current','allways_show_ads':'0','show_ads_sharing':'0','show_ads_cursor':'0','bg_float':'0','bg_color':'#f1f1f1','labels':'0','counters':'0', 'counters_float':'0'} })(window); ...

Thursday, 12 January 2012

Tagged under: , , , , , ,

Live Search / AutoComplete Using XML & PHP

Live Search / AutoComplete Using XML & PHP
Many a times, we need to build a search engine for our website, which can serve various purposes like searching through your site! In such cases, live search option is the most sought after, for the ease of searching!! The code for live search can be broken down in three parts viz: HTML file PHP file XML file (function(w) { if (!w.SharexyWidget) { w.SharexyWidget = {};} if (!w.SharexyWidget.Params) { w.SharexyWidget.Params = {}; } w.SharexyWidget.Params['980623'] = {'code_id':'980623','publisher_key':'undefined','design':'sharexy','layout_static':'h','type':'st','mode_float':'','size_float':'60','size_static':'32','buzz':'0','services':['facebook', 'twitter', 'linkedin', 'google_plus', 'blogger'],'url':'current','allways_show_ads':'0','show_ads_sharing':'0','show_ads_cursor':'0','bg_float':'0','bg_color':'#f1f1f1','labels':'0','counters':'0', 'counters_float':'0'} })(window); ...
Pages (20)1234567 »