Posts

Showing posts with the label How to

HOW TO EXTRACT ALL THE LINKS of A GIVEN WEBPAGE (with python)

Image
Websites are made of web pages. Every webpage is made of html tags. And every webpage has a unique address called URL which stands for Uniform Resource Locator. Using which we can request the webpage html code from the server. Once we send the request, the server will give us the html file for the webpage and our browser translates the code into readable English. This is the process that takes place every time we browse the internet. In today’s post, we will see how to do that without the browser and rather through python. And also we will see how to grab all the links present on a website. A link is another URL. There can be many uses of doing this. For example, a web crawler does this all the time. It goes through the html code of a website and copies the links. And it visits those individual links and looks for other links in that page too. This is how the Google indexes pages. It crawls the whole of the internet every day. Python is very easy, as is this process. So let’s get star...

HOW TO SHARE APPS ON ANDROID

Image
Sending or sharing apps from one android device to another is actually not as simple as one would think. Android apps are of the format '.apk' which are not meant to be shared from one device to another. These files are designed in such a way that if a user wants to use it, he has to visit the website or the play store to get it. But not many of us have the patients to go and actually download it. Or some of us might not have a mobile internet subscription to download apps on the go. So if was possible for a friend, who already has the app you want, to send the .apk file to you, it would be amazing wouldn't it? It would. Not many people know this, but there are many apps that let you share apps to other phones. I don't know how these apps work, but they magically let you send apps. Who cares about how it works anyway? As long as it's getting the job done. Nobody ask how chocolate is made, they just eat it. As I said, there are many apps in the play store, bu...

HOW TO KEEP YOUR LAPTOP COOL (without any fancy devices)

Image
Hello!! You probably hate your laptop for heating up like a grumpy ol man every time you use any form of multimedia. And badly seeking a solution. Or you wouldn't be on this blog for any other reason, would you? I know what it feels like, having to work on a box of fire. It heats up like crazy and gradually it starts to lag (grumpy ol man again). It gets really annoying sometimes. You feel like throwing a glass of cold water on it. But don't (science reasons). It is important to calm yourself down before you become the grumpy ol man (that's exactly what it wants).

HOW TO CONNECT A GUITAR TO A PC (in under $6, no amp required)

Image
(Source : http://strumsounds.blogspot.com/   ) Playing the guitar is a passion shared by many people. Be it acoustic or electric guitar. Its always nice to play the guitar either for yourself or in front of other people. When it is just played for yourself or in front of other on stage, it is simple. Just plug the guitar to the amplifier and play. But when you want to record it and playback, it gets a little tricky. But not hard. When we usually want to record something from the guitar at home, we usually do it with our cell phone or a microphone connected to the computer. That will do to some extent but it cant be used professionally due to a lot of noise in the record. The noise could either be because of the bad quality of the microphone or because of the surrounding. Now my room faces the main road, so everytime i try to record something there is always some or the other vehicle honking in the background. So i have never been able to use the audio files that i have ...

HOW TO CUSTOMIZE THE USER INTERFACE OF YOUR PC

Image
Windows has a trademark desktop setup, wherein the shortcuts are all neatly arranged in a grid-like manner. Well, after a while, we tend to get bored of this layout... I presume that's why Windows tried to apply the new Metro layout. (Whether it was successful or not, is a different debate entirely.) Now, here's an easy way to upgrade your user interface!

How to activate Godmode in Windows 7

Image
Hello! As the phrase God Mode suggests, it refers to complete power! Although in this case it means you get to view and control everything about your PC at one place! Controlling your PC is not that easy. But if you have a basic knowledge of windows terminologies, you can literally dictate to your computer. 

HOW TO GET SYMBIAN ANNA FOR NOKIA 5800

Image
Hello readers!! The other post on "how to get symbian belle for nokia 5800" became pretty damn famous. So I decided to make one for N8 as well. With Symbian belle your phone will look something like this :                                                 The features of symbian belle :

HOW TO ACCESS BLOCKED SITES

Image
Hello readers!! We all know how irritating it is to have internet access but not be able to go on certain sites. There a couple ways of doing this but my favourite is by opening the website via a translation website. And it's as easy as 1,2,3...! For this purpose we will be using Facebook as the blocked site, quite easily the most blocked website at the workplace and educational institutes. And use Google translate as our translation website; the most commonly used online translation service. Steps : 1. Go to  http://translate.google.com/

HOW TO MAKE A PRANK VIRUS ( using notepad)

Hello!! Today I decided to teach you readers something cool. You might have seen many websites talking about this. but this is a little different from what you see in other websites. In this version of the virus, the comp will hang and shut down.  Follow the instructions to make the virus:- open notepad  and type "@echo off" on the next line type "start" again in a new line type "start" repeat this for a long time save it as a " .bat " file done!! wasn't that easy? what basically happens is, for every time you have typed "start", a new command prompt window opens. the more the number of times you type "start", the ram usage will increase and eventually hang. To change the icon of the file you have created:-         Right click on the file > properties > change icon > select the icon you want. That's it. Enjoy playing the prank on your friends. You can even test it on your ...

HOW TO GET SYMBIAN BELLE CUSTOM FIRMWARE FOR NOKIA 5800 xm

Image
Nokia has a reputation for making very durable phones. Their built quality is good, the lifetime of the device is good, it has a perfect size for human hands etc. The battery life of the phone is also way better than many android phones. They last for 2-3 days when charged completely. Adding to the physical features, the customer service is also good. Because of their durability the don't in fact need a customer care service. Even if they fall many times, they don't give up. They will still work. And that's the best part of Nokia. Apart from all the good things, there are a lot of bad things as well. Like the UI. The UI of the Nokia phones are all the same. And they have stayed the same for years! Also when they come up with the new software they don't release it for all devices. This is the only complaint a Nokia user will have. The phone is hard rock, but the UI and the firmware are stone age. All the user expects from the phone is that it looks cooler. T...

HOW TO SHUT DOWN YOUR PC USING C++

Want to do something cool with c++.How about shutting down a computer with a simple code. The Basics : main() {           system("c:\\WINDOWS\\System32\\shutdown /s /t 0");           return 0;  } The following code will shut down the computer instantly . Variations : This must be the first option.(instead of /s): /l Log off. /s Shutdown the computer. /r Shutdown and restart the computer. /a Abort a system shutdown. To set the time before action: /t xxx Set the time-out period before shutdown to xxx seconds. The valid range is 0-600, with a default of 30 Misc: /c "comment" Comment on the reason for the restart or shutdown. Maximum of 512 characters allowed . /f Force running applications to close without forewarning users. (Note -  /f is automatically set when used in conjunction with /t xxx) This is a perfectly HARMLESS piece of code that shuts down the computer without a...

HOW TO CLEAR OUT PHONE MEMORY IN NOKIA S60 PHONES

Image
The phone memory is the most irritating part of many Nokia phones. Nokia S60 phones use the phone memory or the flash memory as the RAM, so they are very important. More the memory left, faster is the device. In Nokia S60 phones, the phone memory is very less, it's about 88 MB.  Almost half the space will be occupied by a third party and Nokia apps. So it is very important that we regularly keep clearing out unwanted stuff to make some space for the things that matter. This space can be easily cleared. One method is by clearing the cookies and other private data from your web browser. Sometimes we don't notice that a lot of space is occupied by the cookies and temp files in of the browser. Clearing it will make a lot of space. But sometimes that's not enough to make a difference. So we have to use another technique to free more space. Sometimes restarting the phone will also free some space. The other method is by hard resetting the phone. This will just delete every...

HOW TO SIMULATE A BOUNCING BALL USING C++

HEllo!! Bouncing ball simulation is really interesting in C++. It uses the header file <graphics.h> for drawing the ball, and here we also use the delay function for displaying the ball in different places. The header files used : < graphics.h> , <stdio.h> , <conio.h> , <iostream.h> , <dos.h> , <stdlib.h> the source code is not that hard to understand if you know how to use graphics in C++. Otherwise it's a little complicated, again 'copy-paste'. here is the source code: That's it, there is nothing you can do in this simulator, other than watching it bounce. Thank you cheers !! keep coding..

HOW TO IMPROVE THE SPEED AND PERFORMANCE OF YOUR COMPUTER

Image
Performance and speed, are the reasons for which computers are used. So everyone must know how to maintain their computer. When a computer is slow, one feels like killing himself. I know because I have been there. Sometimes the computer is so slow that we can switch it on and while it is booting, we can go watch a movie. Forgive me for my stupid jokes. In this post we will see how we can reduce the booting time, load applications faster, run games smoothly etc. also see: How to customize the windows 7 user interface Windows special feature: Permanently delete data Windows 7: God mode One of the ways of making your computer fast is by cleaning cookies, temp files, viruses etc. Cookies slow down the computer because it takes up the valuable space on your RAM, not letting other applications use that space. Temp files are pretty much the same thing except they are even more pissing off. Viruses are, well, designed to screw our computer and things in it. They can all be clean...

HOW TO USE THE DELAY FUNCTION IN C++

Image
Hello programmers!! Have you ever wondered how people use that effect, in C++ console applications, in which they make characters appear after a certain time. Like they say "loading..." and the cots appear one by one at a particular time interval. This effect looks very cool and makes the applications look very professional.Also see : Basic Algorithms 101 : Checking the validity of an email address (simple beginner approach) Also see : Basic Algorithms 101 : Checking the validity of an email address (simple beginner approach)  This 'effect' is called delay. Delay is a more professional term used for some thing that happens a little later than it is expected to happen. This is used in c++ intentionally to either create an 'effect' or to easy the procedures of the application for the user.  Like there are many uses of the delay function. Usually in C++ the output appears in the console as soon as it is executed. This might make it look like the applicat...

HOW TO COPY ANY TEXT TO TURBO C++

Image
Hello!! Are you one of those people who is in the middle of a C++ program and you know what to do, but you don't know the syntax? So you google and find out the syntax. But in turbo c++ you cannot use ctrl+v. That might be a little pissing off. So the easiest solution would be to get rid of Turbo C++ and get a modern day compiler. But anyway, here is a post on how one can copy text from an external source into the turbo C++ environment. C++ is a very powerful language, but the Turbo C++ compiler is bloody ancient and very conservative. The Unix environment it has can be a pain in the neck sometimes. With the modern day compilers like C++ builder, eclipse, and stuff, programming in C++ has become so much easier. Unix environment is not really necessary to build an application. And these new compilers also have a lot of predefined functions for graphics, user interface etc. Sometimes we want to write little complex programs or make console games using C++ . But we are not qua...

HOW TO MAKE A CONSOLE GAME IN C++ : Blackjack

Image
(updated : 27/02/2015) Blackjack, also known as twenty-one, is the most widely played casino banking game in the world. Blackjack is a comparing card game between a player and dealer, meaning that players compete against the dealer but not against any other players. It is played with one or more decks of 52 cards. The object of the game is to beat the dealer, which can be done in a number of ways: Get 21 points on the player's first two cards (called a blackjack), without a dealer blackjack; Reach a final score higher than the dealer without exceeding 21; or Let the dealer draw additional cards until his or her hand exceeds 21. (source : wikipedia) This post is about how to make a console version of this game using C++. Console version means, it is played in command prompt like window. It is not very hi-tech complex graphic based version, so dont have too much expectation. You can say that this is the programmers version of the game. Its not that console games are...