Monday, July 30, 2012

IC 555 and IC 556

All the persons who is professional or hobbyist with electronics are well acquainted with IC 555. It is one of the most useful ICs ever made.
IC 555 is popularly know as timer IC and 556 is popularly know as dual timer IC.
IC 555 comes with 8 pins its recommended power supply is 4.5V to 15V and 18V is maximum amount that can be supplied. IC 556 comes with 14 pin package, the power supply specification is same as 555.
The main difference between 556 and 555 is 556 is dual timer which shares the same power supply, just like there is 2 555 ICs inside 556 IC sharing same pin for power supply
The various outputs of IC 555 and IC 556 are:
  1. Astable producing a square wave
  2. Monostable producing a single pulse when triggered
  3. Bistable a simple memory which can be set and reset
  4. Buffer an inverting buffer (Schmitt trigger)

Sunday, April 8, 2012

Maths tricks part 1

The 11 rule for 2 digit number:
All of you know the simple rule of multiplying a number with 10 or 10^x. Now I am going to tell you the rule for multiplication by 11.
I am using 34 for example purpose
1. Separate the two digit 3__4
2. Add the digits 3+4=7
3. Put that 7 in the gap of 3__4.
4. The number becomes 374.
5. Now 11*34=374
Note: If the sum of the digits is > than 9. Then take the digit in the unit's place and put it into the hole and take the digit in the ten's place and add it to the digit in ten's place of the original number.
For example: 75
1. 7__5
2. 7+4=12
3. (7+1)   2 _5
4. 74*11=825



Square a two digit number:
I am using 72 for example
1. Look for the nearest 10 boundary. In this case it is 70.
2. So the distance from 72 is 2 down.
3. Now go 2 up from 72, i.e. 74
4. Multiply 70 and 74. It would be easy if you take it as 74*10*7=5180
5. Now square the distance i.e. 2*2=4
6. Add it to 5180, i.e. 5180+4=5184
7. Now 72*72=5184


More tips and tricks soon.

Saturday, March 10, 2012

AIEEE registration is a threat to candidates' privacy

All of you know about the recently update website of AIEEE, now you can check the data for verification which you have given during registration. While i was checking my details i found a technical mistake in AIEEE's website. The candidates' picture from their databases to your machine is not encrypted. They allow open indexing on IIS. So i thought lets hack it. I just wrote a PHP script and i am all set. I found more than 2 corer pictures. Till now i have downloaded 26935 pictures. I am not going to tell you the algorithm, because some bad minded people may do some thing wrong with those pictures. As i have an exam knocking at the door, i don't have so much time to download those 2 corer pictures. I can also download all the data of all the candidates, such as their address, phone number, etc etc. But right now i don't have the time to do that, it will more complex scripting. So guys who have registered for AIEEE, keep in mind that your data are not secure in AIEEE's databases. I am not going to do some bad things with that pictures, so don't worry. If any one want the proof that i have really done this, then send me an email to shirshendubhowmick@theinec.com with your registration numbers and i will send your pics that i have got from AIEEE's databases.

Wednesday, March 7, 2012

Exam

Have exam from March 14 (IST), so blogs will be irregular. Best of luck to all my friends and all the students, who are going to appear for the board exams.

Thursday, March 1, 2012

MTV Roadies

I think you all know about MTV Roadies. In my view Roadies is simply wastage of money. India can't develop by this type of shows. You all know about this line "Apni Gali Me Kutta Bhi Sher Hota Hai", Raghu and Rajiv is like that, they can do everything within MTV Roadies, without MTV Roadies, they are 0. Once people used to say, "I would like to be an engineer" or "I would like to be a doctor" etc etc. Today people says "I would like to be a roadie.". I think in future there will be books like How to be a Roadie, Roadies in 30 days, Face Raghu and Rajiv, and last and famous one "THE COMPLETE REFERENCE MTV ROADIES", by Mc Graw Hill.

Tuesday, February 28, 2012

PHP

PHP stands for PHP Hypertext Preprocessor. Yeah it is little bit confusing the 1st 'P' of PHP stands for PHP again. This type of acronym is called recursive acronym.
PHP was created by Rasmus Lerdorf in 1994. It became very popular from the year 1995.
PHP is a server side scripting language, that means unless JavaScript it executes on the server. PHP can interact with server's resources, such as Databases. The main salient features of PHP is it is free and open source, its supports all most all Databases such as MySQL, MS SQL Server, Oracle etc etc. It also supports Ajax, it is available for Linux, Windows and Mac platforms.
Many websites use PHP, one of the famous website Facebook also uses PHP.
From the beginning PHP was not object oriented but later object orientation feature was added to PHP 5.
PHP supports all programming tools such as variables, all operators, if-else statements, elseif statements, switch case, for loops, while loop, do while loop, continue and break statement, Arrays, user defined functions, include statement, global and static variables, file handling etc etc.
Some special features of PHP are reading data from web pages, server variables, session variables, cookie variables, HTTP headers, checking data with regular expressions, FTP, Email, Drawing images on server and at last XML and RSS.
I will recommend PHP to all web designers. If you need more support then please check www.php.net, the official site of PHP.
If you have any questions the please write to me at shirshendubhowmick@theinec.com

Store images in MySql


To store image in MySQL, open MySQL workbench start a connection. After that select your desired database, i am using test database. Now execute query:

CREATE TABLE `test`.`pic`
(
`idpic` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`caption` VARCHAR(45) NOT NULL,
`img` LONGBLOB NOT NULL,
PRIMARY KEY(`idpic`)
) ;

SELECT * FROM pic;

Now in the object browser, expand test -> Tables -> pic, right click on pic select edit table data, double click on idpic, caption to add value to those. Then right click on img attribute select load value from file, browser your picture then click open, then click on apply changes to data from the upper menu. Now you have stored data in the table.


To view your data execute SELECT * FROM pic; right click on img attribute select load value in editor switch to image tab, now you should be able to view your image.

SOPA


SOPA stands for Stop Online Piracy Act. The SOPA is a United States bill introduced by US representative Lamar S. Smith (R-TX) to expand the ability of U.S. law enforcement to fight online trafficking in copyrighted intellectual property and counterfeit goods. Provisions include the requesting of court orders to bar advertising networks and payment facilities from conducting business with infringing websites, and search engines from linking to the sites, and court orders requiring Internet service providers to block access to the sites. The law would expand existing criminal laws to include unauthorized streaming of copyrighted content, imposing a maximum penalty of five years in prison. A similar bill in the U.S. Senate is titled the PROTECT IP Act (PIPA).
Proponents of the legislation state it will protect the intellectual-property market and corresponding industry, jobs and revenue, and is necessary to bolster enforcement of copyright laws, especially against foreign websites. Claiming flaws in present laws that do not cover foreign-owned and operated sites, and citing examples of "active promotion of rogue websites" by U.S. search engines, proponents assert stronger enforcement tools are needed.
Opponents state the proposed legislation threatens free speech and innovation, and enables law enforcement to block access to entire internet domains due to infringing content posted on a single blog or webpage. They have raised concerns that SOPA would bypass the "safe harbor" protections from liability presently afforded to Internet sites by the Digital Millennium Copyright Act. Library associations have expressed concerns that the legislation's emphasis on stronger copyright enforcement would expose libraries to prosecution. Other opponents state that requiring search engines to delete a domain name could begin a worldwide arms race of unprecedented censorship of the Web and violates the First Amendment.
On January 18, 2012, the English Wikipedia, Reddit, and an estimated 7,000 other smaller websites coordinated a service blackout, or posted links and images in protest against SOPA and PIPA, in an effort to raise awareness. In excess of 160 million people viewed Wikipedia's banner. A number of other protest actions were organized, including petition drives, with Google stating it collected over 7 million signatures, boycotts of companies that support the legislation, and a rally held in New York City.
In response to the protest actions, the Recording Industry Association of America (RIAA) stated, "It's a dangerous and troubling development when the platforms that serve as gateways to information intentionally skew the facts to incite their users and arm them with misinformation", and "it's very difficult to counter the misinformation when the disseminators also own the platform."
The sites of several pro-SOPA organizations such as RIAA, CBS.com, and others were slowed or shut down with denial of service attacks started on January 19. Self-proclaimed members of the "hacktivist" group Anonymous claimed responsibility and stated the attacks were a protest of both SOPA and the United States Department of Justice shutdown of Megaupload that same day.
Opponents of the bill have proposed the Online Protection and Enforcement of Digital Trade Act (OPEN) as an alternative. On January 20, 2012, House Judiciary Committee Chairman Smith postponed plans to draft the bill: "The committee remains committed to finding a solution to the problem of online piracy that protects American intellectual property and innovation ... The House Judiciary Committee will postpone consideration of the legislation until there is wider agreement on a solution."

Transistors


Transistors:

A junction transistor id formed by sandwiching either 'p' type semiconductor in between two 'n' type semiconductors or 'n' type in between two 'p' semiconductor. The 1st type of transistor is called n-p-n and 2nd type is called p-n-p transistor. In the actual design the middle layer is very thin generally 1 μm. The middle layer is called base it is lightly doped with impurities and heavily doped layer is called emitter and moderately doped layer is called collector. Thus a transistor is a 3 terminal device.

 

p-n-p 
n-p-n 
 
 

These are the circuit symbols of a transistor. The emitter base junction is always forward biased and the collector base junction is always reversed biased. The arrow on the symbols shows the direction of current emitter base junction. An n-p-n transistor's emitter contains the largest number of electrons base contain largest number of holes, and collector contains electrons more than base but less than emitter.

Biasing of a transistor: Suitable potentials should be applied across the two junctions to operate the transistor. This is called biasing. A transistor can be operated in 3 different modes. Common emitter (CE), Common base (CB) mode and Common collector (CC) mode. In CE, CB, CC mode, the emitter, the base and the collector are kept at zero potential respectively. 







The emitter current is IE, the base current is IB and the collector current is IC.Using Kirchhoff's law we can write IE = IB + IC. IB may be 1% to 5% of IE.
 There are two parameters of a transistor called alpha and beta, defined as:
= IC/IE  and   β = IC/IB.
 The relation between 
and β is β = /(1-)
Thats all for today, if you have any question email me at
shirshendubhowmick@theinec.com.

Facebook Badge