Notemonk for schooling and NCERT Book Tutorials

Posted by admin on April 25th, 2010 filed in Uncategorized
4 Comments »

This is the first site I found for school and NCERT book tutorials, here we can found the discussion and conclusion on the important topics. I found almost all the NCERT and schooling material

NoteMonk


Awesome way of learning Text Book

Posted by admin on April 25th, 2010 filed in Uncategorized
1 Comment »

I found an interesting web site in the internet world that is really an awesome idea for grabbing the depth conclusion of the topic, we can cover all the corners of our desired topic.

For example I need to cover all the stuff belongs to the Triangle which is belongs to the Mathmatics Class-9 e-Book So if I want to finish that book it may takes 3-days of time for single glance but if I go through the http://www.notemonk.com/node/2584/Angle.Sum.Property.of.a.Triangle/ I finished in very less time because there they are providing the stuff in video tutorial.

Understanding the conclusion is better than reading from beginning and understanding that stuff, I think these Notemonk guys understand one universal truth that is “Don’t try to reinvent the wheel” .

So try this processed content save your time and increase your strength of the topic.

Use Notemonk and become TechMonk


Highly Irritating Russell Peter’s comedy show

Posted by admin on April 5th, 2010 filed in General
3 Comments »

Hi, I am an Indian. when I look at his comedy shows in the Youtube I got hyper angry and irritation at the same time I am really enjoying the show. Actually in the Indian films also we see this kind of comedy everyday but at this time some outsider doing a comedy about the real situations, I don’t know how I am enjoying it alot not only me many of like me are getting angry and at the same time enjoys the show. After looking more videos I started to looking around the comments, it is like very strange everyone is like me, I read Chinese comments and other Indian comments, really everyone gets angry and enjoyment. I think Russell Peter is very lucky fellow, otherwise he might be imprisoned for encouraging racism, any way even he is also making blunder mistakes in his shows, Ex: In one show he made fun about Indian’s English accent, actually English is not our own language even if we ask any English man to speak Sanskrit(Indian Language), can he really pronounce properly?

Ok ok he is making fun about Asian countries but it might make bad opinion about  Asian countries, I never likes to point out others mistakes and problems, to judge a mistake we need to analyze more on the situation.

Anyway he is the real comedy king, Very very funny fellow.


Maska Full movie watch and Download

Posted by admin on April 5th, 2010 filed in Uncategorized
5 Comments »

Maska Full movie for Download and Watch online


List of full length Telugu movies caught by the crawler program

Posted by admin on March 27th, 2010 filed in General, Python, crawler
1 Comment »

Writing crawler programs is my hobby, last few days I am keep on listening, that my friends are watching Telugu  full length movies on Youtube first I thought how the you tube is allowing to publish the authorized content by the unknown person after that I got the deadly truth, that is not only Telugu all film industry movies are available there on the Youtube. Actually I thought to list out the total number of available Telugu movies are there on the Youtube. To list list out the full length movies I wrote a crawler program in Python, we can use that crawler program to bring any kind of full length movie.

Full List


Simple python program for crawling Youtube

Posted by admin on March 24th, 2010 filed in Python, crawler
2 Comments »

I thought writing a crawler program for youtube is very difficult but after looking gData API which is provided by Google, I changed my opinion. Really it is very much easy to write a crawler program for Youtube. Just look at the sample code then you will get understand that how easy to write a crawler for Youtube by using gData. gData API is available in different flavors.

Code:

import gdata.youtube
import gdata.youtube.service

client = gdata.youtube.service.YouTubeService()
query = gdata.youtube.service.YouTubeVideoQuery()

#query.vq = “2005 telugu full movie”
query.vq = “yogi telugu full movie”
query.max_results = 50
query.start_index = 1
query.racy = “exclude”
#query.format = 5
query.orderby = “relevance”
feed = client.YouTubeQuery(query)
resultsCount = int(feed.total_results.text)
print “Debug0: “,resultsCount
i = 0
while resultsCount > int(query.start_index):
print “Debug1:”
print “\n The total results for the given query: “, feed.total_results.text
for entry in feed.entry:
duration = int(entry.media.duration.seconds)
#print “count: “,i
i = i + 1
if duration > 500:
print “************ start *************”
print “URL: “,entry.media.player.url
print “Duration: “,entry.media.duration.seconds
print “Title of the video: “,entry.title.text
print “************ End  **************”
query.start_index = int(query.start_index) + int(query.max_results)
feed = client.YouTubeQuery(query)

There are many issues to consider when we write a crawler program in that getting total number of results for our query and pagination etc… These two are solved very easily by gData’s well implementation.  For more info about gData python. Even we can log into the youtube through gData and can create, edit and update the Youtube data.


Regular Exp usage in different Programming Laguages

Posted by admin on March 8th, 2010 filed in Python
1 Comment »

Regular Expression is an expression for identifying patterns, it is very easy and very powerful for data processing. Almost every language and most advanced editors are giving Regular Expression support.  Even we can write Regular Expression in Database queries, all most all database engines are supporting regular expressions in database queries. we can see these regular expressions in Dos scripts also.

Regular Expressions in Dos:

1. open dos and type cd \

2. cd docu*, press Enter

3. In findstr(dos command ) /R attribute is to use Regular expression mode

Regular Expressions in c++:

RegEx Engine is implemented through RegExpr Class.

Code:

       RegExpr re;
       re.compile("a*(cb|c*)d");

Regular Expressions in Visual C++:
The Visual C++ also implements the RegEx Engine with RegEx class.

Code:
     #include <regex>
     basic_regex<char> regex("[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}"
           ,basic_regex<char>::icase);
     cout<< std::boolalpha
           << regex_match("GoOD@DOMAIN.COM", regex)<< std::endl;

Regular Expressions in Java:
Java uses   java.util.regex Package for pattern matching, even we can use regular expressions on
String class for splitting and matching desired data. For more examples we can visit
sun web site RegEx doc

code:

 Pattern pattern = Pattern.compile(console.readLine("%nEnter your regex: "));
 Matcher matcher = pattern.matcher(console.readLine("Enter input string to search: "));
 matcher.find()

Even all scripting languages are providing RegEx Engine for on fly Data processing.

Regular Expressions in JavaScript:
We can execute regular expressions in JavaScript with RegExp.exec function,
Here RegExp means an expression

Code:
  /s(amp)le/i.exec("Sample text")

Regular Expressions in Python:
Python provides RegEx Engine with re package.

Code:
   import re
   p = re.compile('[a-z]+')
   m = p.match( 'tempo')

Even for more information Python re.

Regular Expressions Usage in DataBase Queries:
We can embed Regular Expressions in the Database Sql queries, like this
 Query:
    SELECT description FROM testTable WHERE REGEXP_LIKE(description,'[mn]');
 click Here for more support

RegEx usage minimizes lot of work for Data processing but we should be very careful at usage,
we should minimize the usage of RegEx other wise it may effect on Project maintainance we should
write a comment for every part of the expression other wise in the future it takes more and more
time for modifications in the RegularExpression 

The below links are helpful for checking Regular Expressions in on-line.
        http://www.gskinner.com/RegExr/    - Best site for Checking Reg Ex


I did vim conf for Python

Posted by admin on March 5th, 2010 filed in Uncategorized
1 Comment »

Now a day I got interest on Python programming, when I start write program in vim I am keep on facing indentation error problem. Really I am not able to concentrate on tabs and number of spaces thats why I configured my vim Editor for .py files. Now it is working pretty good. Really vim is like a gelly chacolate, we can mould as per our wish.

For python I added the below text to the .vimrc file. .vimrc is located at ~/.vimrc(Home directory).

set term=builtin_ansi
syntax on
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufRead *.py inoremap # X^H#
autocmd BufRead *.py set tabstop=4
autocmd BufRead *.py set shiftwidth=4
autocmd BufRead *.py set smarttab
autocmd BufRead *.py set expandtab
autocmd BufRead *.py set softtabstop=4
autocmd BufRead *.py set autoindent
autocmd BufRead *.py highlight BadWhitespace ctermbg=red guibg=red
autocmd BufRead *.py match BadWhitespace /^\t\+/
autocmd BufRead *.py match BadWhitespace /\s\+$/
set incsearch
set ignorecase
set num
set history=1000

Now I am getting smart indentation for conditional blocks, loop blocks and even for classes and methods .


Proxy Auth in Python

Posted by admin on March 4th, 2010 filed in Python
2 Comments »

Some times Our crawler programs needs to satify Proxy Authentication, Generelly we get this situation when we work under Proxy Server. So we can authenticate the Proxy Server through Program.

In Python we can handle the proxy with urllib2 package, so if we look deep into the program urllib2.ProxyHandler and urllib2.HTTPBasicAuthHandler functions helps for authentication.

Code:

import urllib2
from lxml import html

proxy_handler = urllib2.ProxyHandler({’http’: ‘http://www.ragalahari.com/wallpapers.asp’})
proxy_auth_handler = urllib2.HTTPBasicAuthHandler()

Now we need to append our User Name,Password and Proxy Name to the realm.

Code:

proxy_auth_handler.add_password(’realm’, ‘Proxy Name’, ‘User Name’, ‘Password’)

opener = urllib2.build_opener(proxy_handler, proxy_auth_handler)

opener.addheaders = [('User-agent', 'Mozilla/5.0')]


Comparison between wxPython and any other GUI Frame works

Posted by admin on February 13th, 2010 filed in Uncategorized
Comment now »

I am a beginner level wxPython programmer, This is my first article about wxPython. Just I am writing an article with my basic knowledge.

wxPython is a cross-platform GUI API, it is very simple and easy to develop a GUI Application by using wxPython API. It has rich wxWidget component set for building forms,  only we need to understand how to use them for our application need. In programmers view really this is very flexible API, rapidly we can develop forms with minimum effort and with minimum time factor.

Now we start comparison

FULL ARTICLE