Monday, January 5, 2015

Python Web scrapping with BeautifulSoup-Get all the links from website


#code for printing all the link from website using beautifulsoup4
import urllib2
from bs4 import BeautifulSoup
#import webbrowser


redditFile = urllib2.urlopen("http://www.oceanwebtech.com")
redditHtml = redditFile.read()
redditFile.close()

soup = BeautifulSoup(redditHtml)
redditAll = soup.find_all("a")
for links in soup.find_all('a'):
    print (links.get('href'))
    #webbrowser.open(links.get('href'))#for opening all the links

Opening All the links in list-Python

Opening All the link in list.
import webbrowser
urls =['http://odesk.com','http://elance.com','http://freelancer.com','http://twitter.com','http://facebook.com']
for i in urls:
    webbrowser.open(i)
   

Sunday, January 4, 2015

How To: Change Your Ip In Less Then 1 Minute

Follow the  steps to change your IP in less 1 minute.
1. Click on "Start" in the bottom left hand corner of screen
2. Click on "Run"
3. Type in "command" and hit ok

You should now be at an MSDOS prompt screen.

4. Type "ipconfig /release" just like that, and hit "enter"
5. Type "exit" and leave the prompt
6. Right-click on "Network Places" or "My Network Places" on your desktop.
7. Click on "properties"

You should now be on a screen with something titled "Local Area Connection", or something close to that, and, if you have a network hooked up, all of your other networks.

8. Right click on "Local Area Connection" and click "properties"
9. Double-click on the "Internet Protocol (TCP/IP)" from the list under the "General" tab
10. Click on "Use the following IP address" under the "General" tab
11. Create an IP address (It doesn't matter what it is. I just type 1 and 2 until i fill the area up).
12. Press "Tab" and it should automatically fill in the "Subnet Mask" section with default numbers.
13. Hit the "Ok" button here
14. Hit the "Ok" button again

You should now be back to the "Local Area Connection" screen.

15. Right-click back on "Local Area Connection" and go to properties again.
16. Go back to the "TCP/IP" settings
17. This time, select "Obtain an IP address automatically"
tongue.gif 18. Hit "Ok"
19. Hit "Ok" again
20. Now you have a new IP address

With a little practice, you can easily get this process down to 15-20 seconds.

Note:
This only changes your dynamic IP address, not your ISP/IP address. If you plan on hacking a website with this trick be extremely careful, because if they try a little, they can trace it back

Get User details Just by Entering Username-Facebook Scraping

Here is the code for Obtaining User Details
import urllib2
import json
def main():
    username_input =raw_input("Username: ")

    #e.g. http://facebook.com/sentiking, sentiking is the username

    #list_username = ["sentiking", "nasjay", "jumbogiant", "sagarsharma"]
    list_usernames = []
    list_companies.append(username_input)
    graph_url = "http://graph.facebook.com/"
   
    for user in list_usernames:
    #make graph api url with company username
        current_page = graph_url + user
       
        #open public page in facebook graph api
        web_response = urllib2.urlopen(current_page)
        readable_page = web_response.read()
        json_fbpage = json.loads(readable_page)
       # print json_fbpage
       
        #print page data to console
        print " Username: " + user
        print " User_id: " +json_fbpage["id"]
        print " Name: " +json_fbpage["name"]
        print " First_name: " +json_fbpage["first_name"]
        print " Last_name: " +json_fbpage["last_name"]
        print " Gender: " +json_fbpage["gender"]
        print " URL: " +json_fbpage["link"]
        print "            "
       
       
if __name__ == "__main__":
main()



####OUTPUT###
Username: smilingsenti
 Username: smilingsenti
 User_id: 100001307691331
 Name: Sentiking
 First_name: Sentiking
 Last_name: Sentiking
 Gender: male
 URL: https://www.facebook.com/smilingsenti

Tuesday, November 18, 2014

How to make an Account in tsu(https://www.tsu.co)

tsu (https://www.tsu.co/sentiking) pronounced as "Sue" is a free social network and payment platform that shares up to 90%  of revenue with its user.(source official tsu site)

Follow the points to make an account in tsu in easiest  way.
1.click the link below

https://www.tsu.co/sentiking

now you are redirected to the page as in below


2. Fill the information in the form to complete your registration.

 for further information visit https://www.tsu.co/faq

Monday, March 25, 2013

LOCUS 2013" ENGINEERING RURAL DEVELOPMENT"


In the 21st century, technology has become a byword for change, for development. It has become essential to embrace technology as a part of our day to day life. Technology provides sustainability; it provides means to improve our efficiencies and room for innovation. Taking this in account, LOCUS attempts to provide a platform for technological innovation and take it from engineers and students and present it in palatable form to the general public. Pulchowk Campus is the first and one of the best engineering campus in the country. LOCUS is a student body of Pulchowk Campus working for promotion of technology and the spirit of competition among students. LOCUS Committee, since 2003, has been organizing the LOCUS Technology fest with the motto ‘Competition Builds Qualitiy’ to promote the technical skills of the students associated to the technological field. Electronic Hardware, Computer Software Exhibitions and Competition are the highlights of the three days locus festival. LOCUS Committee also conducts seminars, workshops, and competitions on variety of topics suited for both the technical and the non-technical crowd. Science students of the higher secondary school level are also encouraged to take part in the tech fest as a means to stimulate the interest in the field of technology in students from a young age. Software and hardware companies also participate in the tech fest as a means to promote their product and to help people understand the various products available in the market to cater to their needs. LOCUS 2013 is organizing the “10th NATIONAL TECHNOLOGICAL FESTIVAL” with aim of providing a platform to showcase innovative ideas and creativity in the field of technology. Keeping up with the current scenario of Nepal , where there is a large disparity in the access to and the use of technology, our theme “ENGINEERING RURAL DEVELOPMENT” aims to encourage clever ideas and designs which will help in taking technology from selected institutes and urban sector to every household of the rural sectors of the nation. Objectives The basic objectives of the LOCUS are summarized as: i. To provide platform for interaction and healthy competition among the creative minds in technical fields and marketing management. ii. To develop professionalism, team spirit, integrity and communication skills among students of different technical colleges. iii. To present interactive programs for students such as seminars, talk-programs and workshops. iv. To familiarize people of different backgrounds and interests with latest developments and improvisations at the students’ level. v. To provide a nationwide exposure to the young engineering talent of our nation. vi. To boost confidence in the engineering students in tackling real life problem
for more details visit locus.com.np

Saturday, June 23, 2012

Introduction to Locus And The Theme"Bridging The Digital Divide"





Locus :"Competition Buidls Quality"Asadh 22-24, 2069. 

In the 21st century, technology has become a byword for change, for development. It has become essential to embrace technology as a part of our day to day life. Technology provides sustainability; it provides means to improve our efficiencies and room for innovation. Taking this in account, LOCUS attempts to provide a platform for technological innovation and take it from engineers and students and present it in palatable form to the general public.
Pulchowk Campus is the first and one of the best engineering campus in the country. LOCUS is a student body of Pulchowk Campus working for promotion of technology and the spirit of competition among students. LOCUS Committee, since 2003, has been organizing the LOCUS Technology fest with the motto Competition Builds Qualitiy’ to promote the technical skills of the students associated to the technological field.
Electronic Hardware, Computer Software Exhibitions and Competition are the highlights of the three days locus festival. LOCUS Committee also conducts seminars, workshops, and competitions on variety of topics suited for both the technical and the non-technical crowd. Science students of the higher secondary school level are also encouraged to take part in the tech fest as a means to stimulate the interest in the field of technology in students from a young age. Software and hardware companies also participate in the tech fest as a means to promote their product and to help people understand the various products available in the market to cater to their needs.
LOCUS 2012 is organizing the “9th NATIONAL TECHNOLOGICAL FESTIVAL” with aim of providing a platform to showcase innovative ideas and creativity in the field of technology. Keeping up with the current scenario of Nepal , where there is a large disparity in the access to and the use of technology, our theme “BRIDGING DIGITAL DIVIDE aims to encourage clever ideas and designs which will help in taking technology from selected institutes and urban sector to every household of the rural sectors of the nation.

Objectives

The basic objectives of the LOCUS are summarized as:
i. To provide platform for interaction and healthy competition among the creative minds in technical fields and marketing management.
ii. To develop professionalism, team spirit, integrity and communication skills among students of different technical colleges.
iii. To present interactive programs for students such as seminars, talk-programs and workshops.
iv. To familiarize people of different backgrounds and interests with latest developments and improvisations at the students’ level.
v. To provide a nationwide exposure to the young engineering talent of our nation.
vi. To boost confidence in the engineering students in tackling real life problem


Bridging The Digital Divide

While the Information and Communication Technologies (ICT) in general, and the Internet and the world wide web in particular, have made life easier by facilitating easy communication with virtually everyone, and easy access to information located virtually anywhere in the world, they have also widened the gap between the rich and the poor, the ‘have’ and the ‘have nots’.The "digital divide" is the also a gap between the technology haves and have-nots.There are other inequities — times and places where things are not equal and fair — in Internet and technology access that can also be viewed as part of "the digital divide.
" Rural households are less likely to have Internet access than suburban households.  The young are haves; the old and disabled are have-nots.Simply  ,The Digital Divide refers to any inequalities between groups, broadly construed, in terms of access to, use of, or knowledge of information and communication technologies (ICT)Technology.In other words, new technologies, while improving our life in many ways have created what is called the ‘Digital Divide’. The rift between the ‘have’ and ‘have nots’ is even greater in the developing countries. The Digital Divide has become a popular phrase to describe the perceived disadvantages of those who are either unable, or do not choose, to use the appropriate ICT in their day-to-day activities, decision making, learning and pleasure.

How Prove yourself as Original Author of the Blog Post ?


Original Author of the Blog Post
Lot of Copy paste activities are being used by bloggers in order to become famous. Though Google is capable to find copy paste activity , we being an site administrator we must do something which will prevent illegal activities played with our blog. We must have something to prove yourself as original author of the post , below are the few points that will help you to prove yourself as Original Author -

A. Using Pubsubhubbub Service for You Wordpres Blog

  • Activate Pubsubhubbub plugin on your wordpress site which will ping your article instantly after publishing to major search engine to tell them strongly that you are the “original author” of the article.
  • Using this plugin you can prove yourself as Author of the published Article .

B. By Commenting On Your Post

  • Someone may stole your article and publish it on there blog with older date to prove that article was first published by him/her before you.
  • Generally we can change publish date of WordPress / Blogger post by changing publish date from admin panel, but we cannot update time stamp of the comment once set.
  • Its is better to create one alternate account and comment on your article to set time stamp , so that we can have proof of originality.
  • This method is generally used by newbies in order to maintain their uniqueness.

C. Maintaining Screenshot of Google Copy

  • Google creates cached copy of your post/page as soon as crawler visits your account.
  • So we can maintain our screenshot database of cached copy .
  • This is not the best option if crawl rate on your site is less for your site .

Wednesday, June 20, 2012

Convert HTML to WordPress Step by Step

 Converting HTML to wordpress a little but tidy but once you start you can get easily the output in wordpress. converting a html into wordpress makes your site not only dynamic but also convert to accept all the feature you will have.

we searched for many tutorial on wordpress finally I got a tutorial on wordpress, I learn enough but still hard to find the easiest solution yet what makes a begginner to understand how wordpress work
How WordPress Works
WordPress works in a rather straightforward manner but it may seem confusing if you are completely new to the concept. WordPress relies on PHP to call on different parts of your content from the database management system it stands on. For example, look in your /wp-content/themes/twentyten/ directory and open the header.php file. As you scroll through the code notice the PHP calls, they start with a <?php and end with a ?>. Look at line 37 and notice the call for your stylesheet URL:
<link rel=”stylesheet” type=”text/css” media=”all” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” />
This line uses PHP to look-up your stylesheet’s location from the database. This basic function of retrieving or calling some kind of data from your database and using PHP to display it in your HTML is how WordPress works. Throughout this process you will be substituting PHP for different parts of your content and your code. This will make editing easier in the long run, as you will find out. Now that you understand the basics of how WordPress works, lets get started.
First Things First
The first step is to create a new folder and name it whatever you want your theme to be called. Next, create two new files, style.css and index.php and place them in the folder. Believe it or not, these are the only two files you actually need for a WordPress theme. Now copy and paste the code from your original CSS file into the style.css file you just created. At the top add the following code:
/*
Theme Name: Replace with your Theme’s name.
Theme URI: Your Theme’s URI
Description: A brief description.
Version: 1.0
Author: You
Author URI: Your website address.
*/
These comments simply help WordPress properly identify the theme. Your stylesheet is now ready to go.

Robots -world best robots

1.  Asimo: Asimo is a humanoid robot created by Honda. Standing at 130 centimeters (4 feet 3 inches) and weighing 54 Kilograms (114 pounds), the robots resembles a small astronaut wearing a backpack and can walk or run on two feet at speed varying up to 6 Km/h (4.3 mph), matching EMIEW, ASIMO was created at Honda’s Research and Development Wako Fundamental Technical Research Center in Japan. It is the current model in a line of eleven that (genan) in 1986 with EO.
Officially the name is an acronym for “Advanced Step in Innovation Mobility” Honda’s officials claim that robot’s name is not a reference to science fiction writer and inventor of Three Laws of Robotics, IssaAsimov. (Source: Wikipedia)
 Asimo Robot has following capabilities:
  1. Recognition of moving objects
  2. Recognition of postures and gestures
  3. Environment recognition
  4. Distinguishing sounds
  5. Facial recognition
  6. Integration with user’s network system
  7. Internet connectivity.
 2.Kismet: Kismet is a robot which was made in the later 1990s at Massachusetts Institute of Technology with auditory, visual and expressive system intended to participate in human social interaction and to demonstrate simulated human emotion and appearance. The name Kismet comes from the Arabic Turkish, Urdu, Hindu and Punjabi word meaning “fate” or something “luck”.
 
In order to interact properly with human being. Kismet contains input devices that give it auditory, visual, and perception abilities. Kismet simulates emotions through various facial expressions, vocalization, and movements. Facial expressions are created through movements of the ears, eyebrows, eyelids, lips, and head. The cost of physical materials is estimated US$25,000.