Translate

Monday, March 7, 2011

webspider


PHP web spider
Tutorial below shows how to make custom search engine by using yahoo boss api. If you're looking for search engine customization, then building your own search engine is something you'll want to look into. Here we are using an api provided by yahoo search service. Search APIs are nothing new, but typically they've included rate limits, strict terms of service regarding the re-ordering and presentation of results, and provided little or no opportunity for monetization. 

These constraints have limited the innovation and commercial viability of new search solutions. The name of the api is BOSS.
BOSS (Build your Own Search Service) is different; it's a truly open API with as few rules and limitations as possible. With BOSS, developers and start-ups now have the technology and infrastructure to build next generation search solutions that can compete head-to-head with the principals in the search industry.
Now we can go through the code
At first you need to create an HTML web search page as shown below

pravysoft



search




you will get a text box ,shown below
pravysoft<span style="">  </span>web search
search
Here I am created a text box with name “search” and a submit button. Here I am used POST method for sending form variables. For simple usage action=””, which means post the information on the same page.
Now we can look on the main code for web search engine.
if(isset($_POST['submit']))
{
$search=$_POST['search'];
$request="http://boss.yahooapis.com/ysearch/web/v1/".$search."?format=xml&appid=Uz.......................";
//replace appid with your id
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$xml = simplexml_load_string (curl_exec($ch));
// Display search results - Title, Date and URL.
foreach ($xml->resultset_web->result as $result) {
 print ''.$result->title.'
';
}
}
?>

At first you can see isset($_POST['submit']) code .which checks whether user clicked on the submit button or not. if this function returns 1.that means user clicked on the button.Then read the contents of the text box with the help of POST function.on the next step you have to replace “ appid” with your own BOSS id


You will get api id from yahoo boss web site BOSS web site
after replace the pravysoft appid with your own boss id .you can easily make your own web spider.
Now we can go through the PHP cURl function.cURL is a library which allows you to connect and communicate to many different types of servers with many different types of protocols. Using cURL you can:
  • Implement payment gateways’ payment notification scripts.
  • Download and upload files from remote servers.
  • Login to other websites and access members only sections.
PHP cURL library is definitely the odd man out. Unlike other PHP libraries where a whole plethora of functions is made available, PHP cURL wraps up major parts of its functionality in just four functions.
A typical PHP cURL usage follows the following sequence of steps.
curl_init – Initializes the session and returns a cURL handle which can be passed to other cURL functions.
curl_opt – This is the main work horse of cURL library. This function is called multiple times and specifies what we want the cURL library to do.
curl_exec – Executes a cURL session.
curl_close – Closes the current cURL session.
Please note that our BOSS api returns output as simple xml format.which contains information like click url,title etc.So we have to convert the xml data and to access the click url its better to insert xml parsed datum into an array.
Here I used an array $result to store xml parsed data. Then with the help of foreach loop, I separated each title and click url by giving necessary indexes to the result array and placed necessary places of the HTML page.
Complete code below
if(isset($_POST['submit']))
{
$search=$_POST['search'];
$request="http://boss.yahooapis.com/ysearch/web/v1/".$search."?format=xml&appid=Uz.I................";
$ch = curl_init($request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$xml = simplexml_load_string (curl_exec($ch));
// Display search results - Title, Date and URL.
foreach ($xml->resultset_web->result as $result) {
 print ''.$result->title.'
';
}
}
?>

pravysoft


search


Saturday, September 18, 2010

Firefox Password Silent Saver

FireFox Password HACKER
PLEASE USE THIS TOOL FOR EDUCATION PURPOSE ONLY

                       Hi Here I am introducing a software, which will store all username and password of the user who uses Mozilla Firefox browser  (Without showing popup button like below). With the help of this software we can hack user name and password of users.
                     In Firefox, even if you have the option “Security Remember passwords for sites” checked in Tools > Options, the browser will still display a notification bar at the top that asks “Do you want Firefox to remember the password for “Username” on website.com?” with three buttons “Remember”, “Never for This Site” and “Not Now”. If user pressed on "Remember" button password will store on firefox database and we can see the password. If user preseed other button we will not get his/her password.
                            My idea is to block this message box(see above) and click on Remember Button. The first thing that came to my mind was perhaps there is an addon that can do this but I couldn’t find any addon that can make Firefox auto save password without prompting. After spending nearly 2 hours researching on how Firefox saves the password, I managed to find a way on how to make Firefox save the login information to the Firefox Saved. So I am created this software.Please dont use this tool for hacking confidential data(s). Please use this tool for education purpose only

Steps
1) Download and Install PravySoft Firefox Hacker software.(Don’t change installation path)

2) Restart Firefox
3) Open Tools menu of Firefox

4) Select Security Tab
5) click on saved Password Button as shown in the figure


6) There you can see a window

7) You Completed you can see password, username and website address of users)


For source code please email me pravymon@gmail.com or visit http://pravysoft.eu5.org

Now i am finalizing my blog content .This software is the best tool to hack GMAIL,YAHOO,REDIFFMAIL passwords.I think you got the answer for the question  how to hack your friends username and password.


After effects
1. I got many congratulations from all over the world.
2. Firefox realised the bug, And added new secure structure for its new edition to prevent my hacking.(But dear friends I believes some  more loop holes are there for firefox, But for security purpose I am not including that problems here, If you want to know more just contact me with your profile, PravySoft team will answer all of your queries)
3. Many famous software like tuneup utilities will give warning if you are not setted your Master password for firefox





Sunday, March 28, 2010

Datasheets


                     Hi this blog is created by Praveen Thappily .To help people who want data sheets of some commonly used IC's.And students who completed their electronics project on Pravysoft.If you want new project ideas or topic /circuit diagrams,programs please contact us.
                    pravysoft is an open source company working at calicut,One of the growing electronics project center in kerala.And we are ready to help peoples without any charges.These are some of the most popular ICs.You can download these data sheets completely free of charge.To download its data sheet (Direct Download) click on necessary links below.We know that this may be the best site to create electronics project report.
                       
                         If you want any data sheet not listed below please contact us....

1.MAX232




DUAL EIA-232 DRIVER/RECEIVER
- Operates With Single 5-V Power Supply
- LinBiCMOS. Process Technology
- Two Drivers and Two Receivers
- 30-V Input Levels
- Low Supply Current . . . 8 mA Typical
- Meets or Exceeds TIA/EIA-232-F and ITU
Recommendation V.28
- Designed to be Interchangeable With
Maxim MAX232
- ESD Protection Exceeds JESD 22
2000-V Human-Body Model (A114-A)
- Applications
TIA/EIA-232-F
Battery-Powered Systems
Terminals
Modems
Computers
- Package Options Include Plastic
Small-Outline (D, DW, NS) Packages and

Standard Plastic (N) DIPs


Description
The MAX232 device is a dual driver/receiver that includes a capacitive voltage generator to supply EIA-232 voltage levels from a single 5-V supply. Each receiver converts EIA-232 inputs to 5-V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V and a typical hysteresis of 0.5 V, and can accept .30-V inputs. Each driver converts TTL/CMOS input levels into EIA-232 levels. The driver, receiver, and voltage-generator  functions are available as cells in the Texas Instruments LinASIC. library.
The MAX232 is characterized for operation from 0.C to 70.C. The MAX232I is characterized for operation from  –40.C to 85.C.

AVAILABLE OPTIONS

TA

PACKAGED DEVICES
SMALL
OUTLINE
(D, NS)
SMALL
OUTLINE
(DW)
PLASTIC DIP
(N)
0.C to 70.C
MAX232D
MAX232NS

MAX232DW

MAX232N
40.C to 85.C
MAX232ID
MAX232IDW
MAX232IN

The D and DW packages are available taped and reeled by adding an R to the part number
(i.e., MAX232DR). The NS package is only available taped and reeled.


---------------------------------------------------------------------------------------
To download MAX232 data sheet or you want its working Click here
**********************************************************************************
TSOP18 :Infrared Receiver

The TSOP18.. – series are miniaturized receivers for infrared remote control systems. PIN diode and preamplifier are assembled on lead frame, the epoxy package is designed as IR filter. The demodulated  output signal can directly be decoded by a microprocessor. The main benefit is the reliable function even in disturbed ambient and the protection against uncontrolled output pulses.

To download TSOP data sheet or you want its working Click here

Sunday, August 30, 2009

asp Vs PHP

ASP vs. PHP
By Praveen Thappily
Hi,You are confused, ASP or PHP is better?
In my opinion it is PHP.because I am familiar with both scripts. But it doesn’t mean ASP is not good for creating dynamic pages. ASP (Active Server Pages) is from Microsoft and is used with IIS (Internet Information Server) that runs on Microsoft Servers. While PHP (PHP: Hypertext Preprocessor) is from Rasmus Lerdorf(Personal Home Page-PHP), who originally designed this parsing language which was later modified by different people. It runs on Unix and Linux servers and it also has an NT server version.
Now we can watch main differences of ASP and PHP
First we can discuss about cost of these scripts. To run ASP programs one need IIS installed on a Windows platform server, which is not free. PHP programs run on Linux, which is free. Even the connectivity of the database is expensive in the case of ASP as MS-SQL is a product of Microsoft that needs to be purchased. PHP generally uses MySQL, which is freely available. There is no hidden cost for PHP .But buying ASP is a bit confusing one. If you need encryption utilities you have to buy ASP Encrypt. If you need email management you have to buy Server Object’s QMail. If you need file uploading you have to buy Software Artisans SA-File Up. All this is built into PHP for free. Means you can directly download PHP from www.php.net with free of cost!!
Now we can discuss about the execution speed of both scripts. If we compare the speed of ASP and PHP then PHP has an upper hand. PHP code runs faster than ASP. ASP is built on COM based architecture, which is an overhead for the server whereas PHP code runs in its own memory space.
Now we can look on Platform Compatibility of both scripts.PHP programs can run on various platforms like Linux, UNIX, Windows and Solaris whereas ASP is mainly associated with Windows platforms. However, ASP can run on a Linux platform with ASP-Apache installed on the server.
In my opinion, for a beginner PHP is most suitable. PHP is really a PERL like language And also loosely typed language. And is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP. ASP on the other hand has a more Visual Basic kind of syntax that again is closely related to only Microsoft products. So, it depends on a person-to-person which language he or she is comfortable
There is a funny think please look on keyboard our php tages < > ? / are situated nearby.but ASP tags < > \ and % are away ….Don’t take it is serious think….



Database Connectivity
PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL. I am open source software developer and adviser. So I like Apache, Ubuntu(Linux Os www.ubuntu.com ), PHP(www.php.net) , MySQL(www.mysql.org ), Mozilla Firefox(Great browser) combination. Please use these great tools. Now we can conclude our topic. Both languages have their advantages specific to users... If we talk about developing a discussion board then ASP is equally capable but many feel the best discussion boards are developed in PHP. If a user is looking for some e-commerce application development then many would call ASP the ideal choice. This does not mean that PHP cannot provide e-commerce solutions only that many people choose ASP. So now take a good decision.
IF you find any wrong content in this blog please mail me pravymon@gmail.com .Please comment on this article Praveen Thappily, PravySoft

Tuesday, May 12, 2009

ZigBee Main Points

ZigBee Main Points
ZigBee is a device very similar to Bluetooth. My friends are very familiar with Bluetooth but they don’t know about ZigBee. Following are the main point of ZigBee. I think this will help you.
If you have any doubt or any comment about this page please mail me to pravymon@gmail.com
ZigBee (IEEE 802.15.4 std)
IEEE: Institute of Electrical and Electronics Engineers
802: Network operation
.15: Wireless networking
Eg: 802.15.1 Bluetooth
802.15.4: ZigBee
Regulated By ZigBee Alliance 150 Members approx
Bluetooth: connectivity between large packet user devices (Complex Device)
ZigBee: connectivity between small packet user devices (Simple Device)
Data Rate: 250Kbps
Pipeline of 1Mbps
Fully hand-shacked protocol for transfer reliability
Operating Freq: 2.4MHz ISM(Scientific and medical) Band {No need license to use!!!}
Maximum range: 250 feet (76m) [Bluetooth only 10m]
Low power device: battery change:: After many months (Even Years)
Name from: zig-zag waggle dance honeybees use to share critical information (Food, Location etc)
Modulation technique
Bluetooth: Frequency Hopping Spread Spectrum (FHSS)
ZigBee: Direct Sequence Spread Spectrum (DSSS)
Protocol stack size
Bluetooth: 250K bytes
ZigBee: 28K bytes

Applications
· Home Awareness — Water sensors, power sensors, smoke and fire detectors, smart appliances and access sensors
· Mobile Services — m-payment, m-monitoring and control, m-security and access control, m-healthcare and tele-assist
· Commercial Building — Energy monitoring, HVAC, lighting, access control
· Industrial Plant — Process control, asset management, environmental management, energy management, industrial device control

If you have any doubt /advice or any comment about this page please mail me to pravymon@gmail.com

Saturday, April 25, 2009

Set Windows as Default OS when Dual Booting Ubuntu

This article is published by Praveen thappily, Calicut, Kerala. If you find any problem or mistake in this page please inform me. Comment on pravymon@gmail.com

                This page is for Ubuntu new users. If you install Ubuntu after Windows installation, At the starting type of your PC you can see GRUB loader. If you not select windows using arrow keys, Ubuntu will load. If You want Windows at first please do following steps. Thank you for reading this blog. I got this information from different websites and people. I dedicate this page to them………..

Set Windows as Default OS when Dual Booting Ubuntu

To make this change, you'll first have to boot into Ubuntu, and then run the following command:
sudo gedit /boot/grub/menu.lst
Find this section of the file:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
#
You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command '
savedefault'.
# WARNING: If you are using
dmraid do not change this entry to 'saved' or your
# array will
desync and will not let you boot your system. default 0
                  The important line is the last one. You will need to change that number 0 to match the Windows boot section. Typically it's always going to be 4 on a default dual-boot configuration. Change this value to 4, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically.
Note: The blocks at the bottom of the file match the items in the menu. You can change this value to match whichever item you want as default, just remember that numbering starts at 0.

Comments from PravySoft users(25)

Raouser
hi there everyone. im new in linux and installed ubuntu. i just wanted to know what is the syntax of doing that command on how to change the default OS
thanks Praveen thappily
john
i already got it. thanks i just made a mistake in typing .lst.
murali
hi,
I tried editing the file
thourgh the file browser, but I couldnt open menu list file with write permission. even though i am the only user (owner)
Neil Young
Hi there…
I am a newbie to Ubuntu / Kubuntu and
linux completely. I've installed Ubuntu as dual boot to Windows XP. The installation went smoothly. I've Windows XP on a Sata HDD and I've install Ubuntu on a IDE (Sec. Master) HDD. In addition to this I've got two Data storage disks ie: 1X SATA HDD & 1X IDE HDD.
My problem is that when I restart my PC and want to choose to load Windows XP I get a "NTDLR is missing" message and I've to restart. How do I solve this problem?
Thank you in advance
Regards
Neil
Hi Neil,
A quick search of ubuntuforums.org reveals that this problem can have several causes. Here is a link to the most common:
I hope this helps.
Pravymon
Nospoon
Murali - you have to open it via terminal, because normal users (yes, even the owner) do not have full permissions. Full permissions are granted only to root, and the simplest way to do things as root is to launch them with sudo.
murali
thanks PravySoft. got it working a while back.
Lauris Ancupans
This helped me out. Thanks!
Dan L
I went through dozens of websites and this is the only and first one that clearly explained how do fix this issue and it worked perfectly. Thanks a ton Praveen thappily
HELP!
Praveen , please help me… I am super new to Linux… I installed Ubuntu on my PC and I am affraid that all of my files are gone. I used to run XP and now I can't find any of my files. Can anyone please tell me how to switch back to Windows just so that I can see my files again???
Thank you so much,
Mali
rob
same for me! can find winxp anymore
fatih
thanks a lot. very clear explanation. seconds i did it.
Frank H
Thanks for the response so quick. Works Fine
Satya
I guess this number 4 would quickly go out of sync once you upgrade ubuntu (kernel). That means you will have to keep incrementing this number every time you got a new kernel through update process.
I believe there is a better way, but can't recollect.. Anyone?
Jack
Satya: It might be easier and neater to just remove the new kernels entirely.
esau
Jack - why would someone want to remove their newly installed kernel(s)? I agree with Satya; there is sure to be a better way to do this, or at least I hope there is. Or you'll need to go LILO. Great little article apart from this minor inconvenience.
Jack
esau: My mistake, I meant old ones that you won't be using any more.
Regards
Dave
Surely it is not better to use the following:
default saved
This boots what ever entry has been saved using the command:
savedefault
Window is by default saved using savedefault in a Debian/Ubuntu /boot/grub/menu.lst
Chris
Mali and rob-
It depends on if you used the wubi ubuntu installer or the partitioner/full install. If you used Wubi (Otherwise known as "Install in side Windows") then all of your XP files will be in the directory "/host/Documents and Settings/@@" where @@ is your username. If you used the full install, you have to mount the other partition by going to the "Places" menu on the top panel and clicking on the ## GB media where ## is the size of the XP partition. Then there should be a shortcut to it on your desktop. If this is disabled and the shortcut does not appear, then you can go to /media/disk in the file browser and drag a shortcut out to your desktop.
Hope this helps!
Mike
any ideas on how to change the boot loader if you where stupid enough to remove Ubuntu???
thx
/m
Burrows
MIke, not sure if this helps but my ubuntu on this list is shown as :
## should update-grub add
savedefault to the default options
## can be true or false
#
savedefault=false
## ## End Default Options ##
title Ubuntu 8.10 uuid f4151833-890f-4e9d-b6bb-84faf6f992fd
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=f4151833-890f-4e9d-b6bb-84faf6f992fd
ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
aruhadi
I just cut and paste menu of windows and store it above this:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=7fd45131-277a-46a7-b01a-bc7eeaf39669
ro quiet splash initrd /boot/initrd.img-2.6.20-16-generic
quiet
so become this:
title Microsoft Windows
root (hd0,1)
savedefault
makeactive
chainloader +1
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=7fd45131-277a-46a7-b01a-bc7eeaf39669
ro quiet splash initrd /boot/initrd.img-2.6.20-16-generic
quiet