Sunday, 17 February 2013

A simple Python web-crawler.

The soup is beautiful:
BeautifulSoup is a HTML/XML parser that we use for Python.This little Python library is very useful when we are using Python to parse HTML code of a website.In this project we have used it to build our tiny web-crawler in Python.If you do not have BeautifulSoup I suggest you download it form here(DOWNLOAD).
The serious work:


The entire code is as given below.


#This Program is created by Aritra Sanyal use and reproduction of this code is allowed.But misuse of this code is not supported by the author.#


from BeautifulSoup import *
from urlparse import *
import urllib2
linksarray=[]
page='http://www.mathsisfun.com/' #this value will be use to complete the link.
c=urllib2.urlopen('http://www.mathsisfun.com')
data=c.read()
soup = BeautifulSoup(data)

links=soup.findAll('a')#finds all the links in the page.
for link in links:
    str_links=link.get('href')
    linksarray.append(page+str(str_links))
linkstr=str(linksarray)
file_links=open('links2.html','w')
for linking in range (len(linksarray)):
    hyperlink="<a href="+linksarray[linking]+">"+linksarray[linking]+"</a>"
   
    linkstr=str(hyperlink)
    file_links.write(linkstr)
file_links.close()
for i in range (len(linksarray)):
    try:
        nextdata=urllib2.urlopen(linksarray[i])
        namestr=str(i)
        name=namestr+".html"
        data2=nextdata.read()
        file1=open(name,'w')
        file1.write(data2)
        file1.close()
        print i
    except:
        i=i+1
        print "could not open link:",linksarray[i]
   
What this code does is to get the data(full page HTML) from a given website  and search for all the links in it and saves it in a html file links2.html and then those links get opened and the data on those pages get saved by their index names.

Sunday, 19 August 2012

how to search data from access databse in VB6

In Visual Basic 6 if someone trying to access some data from a table from a column the best way is to use SQL.
Lets say the ADO control is named is dat1.So the SQL looks something like this 

dat1.RecordSource = "SELECT * FROM Table1 WHERE ID LIKE  '" & Text9.Text &"%'"      
dat1.Refresh
dat1.Caption = dat1.RecordSource

here 'Table1' is name of the table from where one want to search data,'ID' is the name of the column and 'Text9' is the name of the text box.The data entered in the  Text9 text box will be the search input.
I have used wildcard.For MS Access '&' is used as a wildcard.
This is the MS Access database table that i have connected to my VB project and from whare i want to search for data.
This is the application that search the ID and gives the relevant data.
 
GOOD LUCK!

Thursday, 28 June 2012

WBUT ECE 3rd year syllabus


Wednesday, 27 June 2012

Reclaim your DVDs.


Many times we face a very common yet unrecoverable problem and that problem is read error or CRC error while reading a DVD. 
Today I will show you different methods of overcoming this problem.
 First of all if you are installing from the DVD or playing directly from DVD then don’t do that. Copy it to your local hard drive. And eventually you will get the error message while copying from normal Window copy pest. You must use Tera copy (click on the link to download) or similar software which can error freely copy from a DVD.
The other thing that you can do yet the risky one is to clean you DVD read write side (i.e the glossy side which you are told not to touch) some time when a DVD is left for a long time due to moisture the glossy side becomes opaque due to dust deposition. Hence laser can not read correctly. So follow these steps.
1. Spray Collin or other cleaner that is used to clean tables or TV screen.(i.e used to clean glass) on the glossy side.
2. Leave it for a second and the rub the glossy side with cotton, rub it until all the Collin is dry.
3. DVD is ready for use.

Friday, 23 March 2012

Nokia 808 PureView 41 mega pixel Camera

Cant believe your own eyes?well, guess what i didn't too and lost bet with one of my dearest friend.But it is true, Nokia has announced a phone that will come with an 41 MP camera.They announced it at MWC 2012 and named it 808 PureView.
The technology means that taking typically sized shots (say, 5 megapixels) the camera can use oversampling to combine up to seven pixels into one “pure” pixel, eliminating the visual noise found on other mobile phone cameras. On top of that, you can zoom in up to 3X without losing any of the details in your shot – and there’s no artificially created pixels in your picture, either.
                                     some says that it will be available in india for Rs.30,000/-
Nokia 808 Pure View Features:
  • 41 Megapixel Camera With Xenon Flash And LED Flash
  • 1.3 GHz Processor
  • 512MB RAM
  • 1080p 30fps Recording
  • 5.1 Dolby Surround Support
  • Symbian Belle fp1
  • 16 GB On-Board Storage
  • USB OTG
  • FM Transmitter
  • HDMI
Nokia 808 Pure View Specifications:
Network
Technology / Frequency Bands
GSM : 850/900/1800/1900 MHz HSDPA : 900/2100 MHz
Battery
Type Li – Ion
Capacity 1400 mAh
Standby 465 hours
Talktime 660 mins
Built
Dimensions 123.9×60.2×13.9 mm
Weight 169 g
Form Factor bar
Colors Black,White and Red
Display
Size 360×640 pixels
Type color : LCD
Colors 16000000 colors
Secondary Display no
Camera / Imaging / Video
Camera Yes 12MP
Resolution 4000×3000 pixels
Zoom yes
Flash yes
Video Out yes
Secondary Camera yes
Connectivity
Bluetooth Yes
Irda No
Wlan/Wi-fi Yes
USB yes
GPS yes
Data
GPRS Yes
EDGE Yes
3G Yes
Internet Browsing Yes , Symbian Browser
Media
Audio Playback Yes
Video Playback Yes
Ringtones 64 polyphonic MP3/MIDI/WAV/AMR
FM Radio Yes
3.5mm Headphone Jack yes
Memory
Inbuilt 16 GB
Memory Slot Yes microSD/TransFlash
Messaging
SMS Yes
MMS Yes
Email Yes
Software
Operating System Symbian 3

Friday, 17 February 2012

Custom Domain for Blogger

Its been a long time since i posted anything.But 'a am bahk!' and today i will be posting about free Domain name services like dot.tk.It is free domain name provider that enables you to use .tk as your domain name.
According to some .tk and other free domains are very prone to attacks,physing and viruses.But new study shows that this attacks has been lowered.But one may askh how to use it with my existing blogger account.So here it is.
  1. Find the control panel on your domain registrar’s website, and locate your DNS (Domain Name System) settings. In order to link your blog to your custom domain, follow the instructions below to enter your "CNAME" and "A-records."
    CNAME
    Where it says Name, simply enter "www" and list ghs.google.com as the Host Name. See our detailed instructions on providing CNAMEs for various registrars. If yours isn't listed, or if you run into other difficulties, contact your registrar directly and they can help you out.
    A-records (optional)
    The following action links your naked domain (example.com) to your actual site (www.example.com). If you skip this step, visitors who leave off the "www" will see an error page.
    Enter your domain name in the format example.com, and list the I.P. addresses shown below in the "A" section. You'll need to create four separate A-records which point to four different Google IPs. 216.239.32.21
    216.239.34.21
    216.239.36.21
    216.239.38.21


  2. Update your Blogger settings
    Before you move onto this step, wait about an hour for your DNS settings to activate. If you attempt to change the publishing settings before the DNS changes activate, then we'll let you know with a warning message.
    Now it’s time to make sure Blogger knows about your custom domain so that Google can direct readers to your blog. Just head back to Blogger and update the information on your Settings | Basic tab. Find the area for "Publishing," and click the link to add a custom domain.
    Add a custom domain
    Then, click on "Switch to advanced settings."
    Advanced Settings
    Enter in the URL for your custom domain in the text box provided, and click Save. That’s it! Your blogspot.com address will soon redirect to your new custom domain -- be patient, as it might take up to 24 hours for the redirect to start working.
    Enter URL and save
    Congratulations, you’re all set!
    For dot.tk users follwo these steps.
    1.First go to dot.tk and register for a new domain.
    2.Then go to my dot tk and click on 'modify'
    3.Then add your Host name and Id as directed below
    use only these IP Addresses: 
  3. 216.239.32.21
    216.239.34.21
    216.239.36.21
    216.239.38.21
  4. And for CNAME use:
 
Host Name/Alias Value/Destination
www ghs.google.com
* This is the part of your website's address that you designated. For instance, if you chose www.mydomain.com as the address, www is the host name.

Saturday, 17 September 2011

The Master of All Games




It is the year 2027, and the world is divided into two. Peoples who want to be super human by body augmentations and one those who think that their flesh is one that makes them human.
No, this is not a script for an upcoming sci-fi film, this is Deus-Ex: Human Revolution. This is the most anticipated game of 2011 and while it is on the store let me tell you this game is the one you should spend your money on.

STORY:
You play as Adam Jensen, a security expert in sheriff industry, a major player in the Augmentation business. You are left for dead at the Sheriff’s headquarter, and you are rehabilitated by augmentation. And while you are a man -machine you find the cause behind the attack that nearly killed you. As you walk through levels you find twist and terns in the story, which makes you sticking to the computer screen. I will give this game’s story line 4.5 out of 5.

GAMEPLAY:
The game play is awesome because it doesn’t force you to play in a particular type i.e. you can play through the mission stealthily or you can go in front of your enemy and shoot them. It’s completely your choice.  I will give this game’s game play a straight 5 out of 5.

SYSTEM REQUIRMENT :( minimum)
·         OS: Windows XP, Windows Vista or Windows 7 with DirectX 9.0c
·         PROCESSOR: 2 GHz dual core
·         RAM: 1 GB RAM (Windows XP) / 2 GB (Windows Vista and Windows 7)
·         GRAPHICS: NVIDIA GeForce 8000 series or ATI Radeon HD 2000 series or better
·         REQUIRED DISC SPACE: 8.5 GB


Tuesday, 13 September 2011

WINDOWS 8 User Interface

Windows 8 is back with new rumors.
They say that it will be a OS that will be made both for the Tablet PCs and for Desktops and Laptops.
The extra features includes:

Fast launching of apps from a tile-based Start screen, which replaces the Windows Start menu with a customizable, scalable full-screen view of apps.

Live tiles with notifications, showing always up-to-date information from your apps.

Fluid, natural switching between running apps.

Convenient ability to snap and resize an app to the side of the screen, so you can really multitask using the capabilities of Windows.

Web-connected and Web-powered apps built using HTML5 and JavaScript that have access to the full power of the PC.

Fully touch-optimized browsing, with all the power of hardware-accelerated Internet Explorer 10.

From the picture it is clear that Microsoft is aiming to replace their "Start" button with these onscreen app.Although Windows 8 is made for touch operations it will work completely fine with conventional mouse and keyboard.   

 Windows 8 will have a robust USB3 support which will result in faster data transfer through USB devices...

ADD:*****************************************************************************

GENUINE INCOME SOURCE FROM INTERNET JUST FOR   REGISTERING  
**********************************************************************************

Tuesday, 6 September 2011

How to change your computer e-address

What is IP address?
IP address stands for Internet Protocol Address.By the name you can tell that it is not like your street address.But,It acts like one.IP address is a binary value assigned to a computer which is unique in the netsphear.
It is of 127.0.0.1 form which is a decimal form of that binary code.Below is your IP  


What can a IP address reveal?
ip address can reveal your physical address
IP can reveal where are you from and your server address.While you surfing the net you left lots of usable information behind.Let's say some one knows your IP he can pinpoint your location.It can be your office desk,your home computer or your own server.And if they know your address they can rob you.By the mean "rob you" doesn't mean getting into your house and taking whatever they want,it means 'breaking into your computer or network and taking everything they want'.
Change your IP address.
ip address can be changed by following the below steps:

1: open command prompt.and type ipconfig and press enter.



2. Go to local area connection.then right click on your existing connection and go to property.Then networking tab now enter any IP you want in the range of

10.0.0.0 through 10.255.255.255
172.16.0.0 through 172.31.255.255
192.168.0.0 through 192.168.255.255





if you scrued up then go back to the networking tab and select TCP/IP and hit property and select obtain IP address automatically.You will get a new IP address.
Want to Browse The net Anonymously? Try TOR

Thursday, 1 September 2011

Blogger new UI


Seems like Google is decorating their sits and apps with the look we saw in G+.And now they have changed by blogger blog too.
New Dashboard 
And they made it quite elegant.with the rounded look and eye soothing appearance they have added

a very handy UI.
New Post Option 
But if any one like the older version they can easily switch back to the older version 















Monday, 22 August 2011

Earth's last chance is in hand of China


Earth’s last chance
99942 Apophis is a well known name to astronomers and scientists. If you are not then know that this is a word that made scientists a little bit worried around 2004. This is an asteroid which has a small probability (up to 2.7%) that it would strike the Earth in 2029.
Additional observation predicted that this asteroid is not going to smash with our planet or our dear moon. But it will cross through a gravitational keyhole which can cause this rock to divert from its original path and force it to crash into our planet.

But, a recent research in Tsinghua University, Beijing, China, reveals a project call Kamikaze (from Kami - "god" and kaze - "wind”) .It is a   satellite that will smash a soler sail into Apophasis and divert its path away from the gravitational keyhole.

By analysing the trajectory, speed and impact of a spacecraft, Gong says, “The results show that a 10 kg solar sail with a lead-time of one year can move Apophis out of a 600-m keyhole area in 2029.” The craft would also be sent into a retrograde orbit of the Earth to build up speed, so it will be moving at a super fast 90km/s by the time it collides with the asteroid.

European space agency is also thinking about smashing a rocket into Apophasis.







Saturday, 20 August 2011

Samsung Cheatcode



Tweaking your phone with codes is a well known process for unlocking your Phones hidden talents.Some hidden menus can be unlocked using this Chit codes.But using them requires expert knowledge over tech and other stuffs. SO,BE CAREFUL BEFORE USING THEM...

CODES
RESULT
*#06#
IMEI CODE
*#9998*4357#
Help Menu
*#9998*5282#
Java MANUE(GRPS/CSD settings for JAVA server)
*#9999#0#
MONITOR MODE
*#9999# or *#9998*9999#
SOFTWARE VERSION
*#8888# or *#9998*8888#
HARDWARE VERSION
*#9998*746# or *#9998*0746# or *#0746#
SIM INFO
*#9998*523# or *#9998*0523# or *#0523#
Display Contrast
*#9998*842# or *#9998*0842# or *#0842#
Vibration On (until you push OK)
*#9998*289# or *#9998*0289# or *#0289#
Buzzer On (until you push OK)
*#9998*288# or *#9998*0288# or *#0288#
Battery & Field Infos
*#9998*377# or *#9998*0377#
Error log
*#9998*778# or *#9998*0778# or *#0778#
Sim Service table
*#9998*782#
show date and alarm clock
*#8999*638#
show network information
*#9998*5646#
change operator logo at startup
*#9998*76#
production number
*#9998*968#
view melody for alarm
*#9998*585#)
Non-Volatile Memory (NVM
USE WITH CAUTION*

*#3243948#
Digital Audio Interference Off*
*#32436837#
Digital Audio Interference On*
*#1234#
Firmware Version
*#8999*8376263#
All Versions Together
*#4777*8665#
GPSR Tool



All of the code above are fully working and tested by me.........
<<<<TO MAKE MONEY WHILE AT HOME CLICK HERE>>>><<<<TO MAKE MONEY WHILE AT HOME CLICK HERE>>>>

Monday, 15 August 2011

what will i Phone 5 look like


i have collected bunch of i Phone 5 gimmick picture and i am uploading them in here.Don't know which one will be the real i Phone 5 but they all looks eye catching to me.
Since there is a buzz that i Phone 5 will be public in September 6Th so it will be a surprise to all of us if we see something different.




Scroll Bar Example





Grasslands
default
This is the description for the first image. Here will be where we give details on the image that is currently being viewed.
<< Previous Next >>

Sunday, 14 August 2011

i Phone5 on the horizon


i Phone 5, is the word i doubt, will soon be indexed into dictionary. I am writing this because I uploaded an i phone pic recently and it was downloaded 300 times in 2 days.
I phone 5 some call it I Phone 4s is being manufactured by Pegatron. Reportedly Pegatron is ordered a massive amount of 15miilion i Phone 5 production by Jobes and co. While Apple confirmed that a new I phone is on the horizon it is unclear when it will be available. Some says that it will be in our hand in this September.

People are talking about iOS 5 and iCloud. And Apple’s CFO   Peter Oppenheimer said that “a lot going on in the fall with iOS 5 and iCloud”  but he also confirmed that “future product transition that we will not talk about today” .



According to T3 apple is recruiting more employee for this September. From a source of China Times , Apple will launch i Phone 5 on September 6th.
Adding all the equation we can say that we will be lucky enough to see i Phone 5 in this September .At least we can get our finger crossed.





The new Secure Google


Google has recently launched their secure search option. It is an SSl search option which enables you to search more securely while protecting your search hidden from third party. It provides you more secure search option.
What is SSl?
SSL stands for Secure Sockets Layer. It is a web service which is made for secure web browsing, mailing, instant messaging. When you use this service the search queries and other information becomes encrypted so this info can’t be read by third party such as Internet Service Provider (ISPs), and employees.
When you use SSL search the browser does not send referrer info to any HTTP site you visit. But unfortunately at this time the SSL search only support web search. You won’t be able to see the typical image search and other option while on SSL search. But if you have a Google+ account you can see your notifications on your search page as it is secure page.

Monday, 8 August 2011

Facebook can make you narcissistic



Facebook can herm our social behavior and make us antisocial, sarcastic manic. At least Dr. Larry Rosen says so.
A recent study conducted by Dr. Larry shows that ‘Over Facebooking’ can cause lots of behavioral problems. In a talk named “Poke Me: How Social Networks Can Both Help and Harm Our Kids “ Dr. Larry Rosen pointed out that over Facebooking can cause-

          
              Narcissistic tendencies among teens and mania, aggression and other behavioral problems among young adults at Facebooking.
       
             Daily overuse of media and technology has a negative effect on the health of all children, preteens and teenagers by making them more prone to anxiety.
                      
             And last of all can hamper your study by causing distraction. He said that studying while Facebook is open on their PC shows lower retention rate than normal.

Rosen presented this finding by conducting surveys on 1000 adolescents and 15 min of observation in act of study.  
But not all study was negative. There is some positive side too. According to him introvert adolescents can improve socialism by interacting with online friends. 

Sunday, 7 August 2011

iPhone APP for NASA's Space shuttle launch.


DR. Craig Hunter, an Aerospace engineer has developed an iPhone app to determine shuttle flight path.
As Atlantis going to be the last space shuttle to be launched Hunter research and development developed this app. They invited over 11 people and collected information of flight path.
Result compared to NASA
Compared to the NASA’s and CBS News’s info about flight path the result looks satisfactory. After all it’s an iPhone not a supercomputer.
They have created Theodolite Free, Theodolite Basic, Theodolitepro and Theodolite HD. Theodolite Free doesn’t support capturing. After installing any one of this you have to capture the flight path and then submit it to Hunter Facebook fan page. Each person who submitted their info will be automatically chosen for $50 iTunes gift certificate (They'll give away a certificate for every 50 participants, up to a maximum of 5 certificates ).