15 Apr 2015

Programming for Physics Simulations – How is it Done ?


A lot of people even those who have experience in programming have very wrong ideas about how programs work. Moreover the common notion among the general public is that software development only requires knowledge and experience in programming, however its actually quite the contrary. Software development can have very high level of specialization unlike many other fields including medical, for instance one experienced cardiologist can do the same another cardiologist can. How two highly experienced web developers may not be able to do what the other can. What people don’t understand is programming on its own is just a tool and nearly worthless on its own. Its like maths, whats the use of maths? No use. But apply math in physics, chem, astronomy …… then suddenly it becomes very useful. That’s how programming is too , People often specialize in different fields like maths, physics and  architecture. Like for example if a developer needs to develop a CAD program , he or she would need to have a good knowledge of architecture to effectively develop a suitable product, therefore they would need to specialize in architecture too.

So here in this post I intend to instill some ideas into the minds of new developers. To do this I will explain how to simulate a basic physics concept used in cut the rope from scratch through C++ code. I will keep it as simple as possible. However one needs basic knowledge of trigonometry to follow. Please note that all the programs embedded on this post is either HTML5 or flash, however I will be discussing from C++ point of view.



This is what we are gonna make using C++, Its pretty basic right ? Yeah it is. But even this is not very easy as people might feel, Many people will be thinking oh whats the big deal, you pull it, it follows , whats so hard? Indeed you pull it, it follows but nothing on a computer ever happens on its own, Someone should take care of the physics through code.

Ok so how do I think the right way ?

The right way to think is not to think in terms of code but in terms of logic, Imagine this as a physics situation, there are 2 balls, separated by a distance and an elastic rope joined between them,  larger the distance, faster the ball moves. However even if the rope becomes slack, due to inertia the ball continues to be in motion. So inertia has to be also considered. Gravity needs to be considered to make the thing realistic. Finally the fact that we are working in a 2D space has to be kept in mind.  
On further analysis, You might feel that there is a need for friction / resistance between the balls, or they would never stop moving

Physics solution :

This is the solution to the problem in physics point of view

Here 'T' is the tension force in the elastic rope. 'x' is the extension (elongation) of  the rope, 'A' is the rope’s cross sectional area, 'L' is the natural length of the rope while 'Y' is the Young's modulus.  This is the formula derived from Hooke's law.

We need to resolve these forces into vectors since we are working in 2D space. Then we need to add the gravitational force on the vertical component so it will be T sinθ + mg.

From here its easy, all one needs to do is calculate acceleration in both components using 'F = ma', then find change in velocity using 'v = u + at', And from velocity you can find new position of the balls. But you might have already realized both acceleration and velocities keep on changing , that means to correctly calculate the final velocity, you will need to use integral calculus which is beyond the scope of this post.

However this analysis is correct and can be implemented in programming

Programming Implementation :

Remember I said we need integration to calculate the velocities and position at a given time? But in programming we have a work around i.e  Running several iterations to approximately calculate the velocity and position . This means we split a time interval, say 1 sec into many smaller time intervals Say 0.1 s, Since 0.1s is a very small interval, we can assume the acceleration and velocity doesn't change in that interval . Accuracy can be increased to any desired extent by decreasing the small time interval.

Ok now we are finally ready to get started
Main variables

float x1=200,y1=200,x2=200,y2=200, s=100;
float vx2=0,vy2=0;

(x1,y1) are the initial position of the first ball , the ball which is controlled by the mouse. (x2,y2) is the position of the ball which is connected to the first ball. 'vx2' and 'vy2' are the components of velocity of the second ball in the X and Y directions respectively. 's' is the natural length of the rope.

The following bits of code has to be put in a loop that runs the iterations

1)  Getting the coordinates of the mouse and setting that as the coordinates of the first ball
 
x1=mousex(); 
y1=mousey();

2) Finding distance and angle between the 2 centres.


float d1=distance(x1,y1,x2,y2);
float ang1=angle(x1,y1,x2,y2);

Here distance() is a function which calculates distance between 2 points at an instant of time and angle() is a function which calculates angle between 2 points i.e. angle made by the line joining the 2 points and the horizontal.

3) Checking if the rope is stretched

We calculate distance between the 2 balls to know if the rope is stretched and angle to resolve force into components

//If the rope is stretched
if(d1-s>0) {   //Resolving tension into vectors
    vy2+=(d1-s)*sin(ang1)*.007;
    vx2+=(d1-s)*cos(ang1)*.007;
}

/*  here all the constants clubbed together as 0.007 , you can change it
We are adding the force directly to velocities by assuming balls to be of unit
mass and time interval to also be unit time
*/

4) Adding gravitational force

 vy2+=.23;
 //Gravitational force added on y coordinate
// 0.23 is an experimentally calculated value ( you can experiment too ! )

5) Moving the body and friction
We move the body as follows as we have assumed time interval to be unit time interval

y2+=vy2;
 x2+=vx2;
//Friction reduces velocity by 1%
vy2*=.99;
vx2*=.99;
      
6) Summing up

//draws 2 circles on the screen
circle(x1,y1,25);
circle(x2,y2,25);
//draws a line between them
line(x1,y1,x2,y2);

And we are done !!
Several improvements can be made like having parameters such as length, area, masses of spheres etc. Further more this concept can be expanded on more than 2 balls


Full code :

#include<graphics.h>

#include<math.h>

//Distance is a function which calculates Distance between 2 points

float distance(int x1,int y1,int x2,int y2)

{

    return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));

}

//Angle is a function which calculates the angle between 2 points

// ( tan inverse of the Slope of the line joining the 2 points )

float angle(int x1 , int y1, int x2 , int y2)

{

    float ang;

    //In case the 2 points are perpendicular

    if(x1-x2==0)

    {

        ang=-1.57;

    }

    else

    {

        ang = atan((float)(y1 - y2) / (x1 - x2));

    }

    //Quadtrants

    if (ang < 0 && y1> y2)

    {

        ang += 3.14;

    }

    else if (ang > 0 && x1 < x2)

    {

        ang += 3.14;

    }

    return ang;

}

int main()

{

    //declaration of variables

    float x1=200,y1=200,x2=200,y2=200, s=100;

    float vx2=0,vy2=0;

    //Creating a new window

    initwindow (550, 400,"Windows BGI",50,50, false,true);

    while(1)

    {

        //Getting the coordinates of the mouse

        x1=mousex();

        y1=mousey();

        //Finding distance and angle between 2 points

        float d1=distance(x1,y1,x2,y2);

        float ang1=angle(x1,y1,x2,y2);

        //If the rope is stretched

        if(d1-s>0)

        {

            //Resolving tension into vectors

            vy2+=(d1-s)*sin(ang1)*.007;

            vx2+=(d1-s)*cos(ang1)*.007;

        }

        //Gravitational force on y coordinate

        vy2+=.23;

        //Now moving the body

        y2+=vy2;

        x2+=vx2;

        //Friction reduces velocity by 1%

        vy2*=.99;

        vx2*=.99;

        //draws 2 circles on the screen

        circle(x1,y1,25);

        circle(x2,y2,25);

        //draws a line between them

        line (x1,y1,x2,y2);

        //waits for 40 milliseconds

        delay(40);

        //something to do with memory

        swapbuffers();

        //clear the screen so that a new frame can be redrawn

        cleardevice();

    }

    return 0;

}

9 Apr 2015

Why I moved to an iPhone from Android


My first smartphone was an android phone. The first phone I got which wasn’t a hand-me-down was an android phone. The first phone I saved up for and bought was an android phone. Android introduced me to the world of tech, to the wondrous world of rooting, ROMming and the incredible XDA forums. Being known as someone with a major predilection for android, I surprised most of my friends when I told them that I had, a few weeks ago, switched to the iPhone 6. And now, after these few weeks of use, I do admit something that a year ago I wouldn't have said even if my life depended on it: The iPhone is better than most, if not all, android phones.

Back in March 2013, when I got my first respectable android phone, the Nexus 4, I despised the iPhone. I saw the iPhone 5 as the epitome of business exploitation. Exorbitant prices, specifications that were mostly along the lines of current android flagships, if not worse and a cagey OS with no customizability and ridiculous restrictions. And iTunes was (and still is, to be frank) a joke. Granted, its DAC put android phones to shame and in my eyes, it looked better than any other smartphone. That didn't make up for the other shortfalls though. I remember vehemently arguing against the iPhone 5S when it came out, convincing my dad to hang on to his failing Galaxy S2. My mom merely gave me a grin as I berated the iPhone franchise and ridiculed her aging iPhone 4. I told myself I would abhor iPhones and anything else that Apple made that ran iOS.


Two years later, what changed? Not much. I still believe Android is exponentially more powerful than iOS, has much greater potential and, after Lollipop, is more of a looker than iOS is.

Why switch to iPhone then? Two words: Consistency and Ecosystem.

Yes, the Galaxies and HTC Ones have more RAM. Yes, the Note 4 has twice as many megapixels (16 MP) in the primary camera. I’ll admit the “Retina” resolution of 750 × 1334 sounds pathetic against an LG G3’s 2K (QHD) screen. A fingerprint scanner and an aluminum body aren’t all that salient anymore. Sony’s Z phones can withstand dips, while the iPhone can’t.


Knowing all this, I would still recommend an iPhone over any other phone today. Coming from someone who was, till a few months ago a borderline fanboy for Android, that’s saying something.


The first thing that struck me after using the iPhone for a few days was how rewarding it was to be invested in Apple’s ecosystem. The iPhone and my Macbook sync so well, it seems like a given. Continuity, Handoff and everything else that had me excited for Yosemite make the iPhone and Macbook combination much more than just a sum of parts. Airdrop and Airplay live up to the hype. Assignments I work on in the bus on the iPhone sync with the Mac as soon as I connect to the school’s WiFi. Tabs I open on the Mac in school I can read on the iPhone, on the bus home. Backing up Photos on a computer aren't an issue anymore. Not that Android can’t compete: Chrome OS and Android supposedly feature similar integration, but Chrome OS doesn’t really cut it.


I don’t intend this as a damning statement, but the iPhone has worked better for me than any Android phone I’ve used. It doesn’t do as much as a Galaxy or a Note, but what it does do, it does perfectly. This and the consistency with which it works sets it apart from Android. If there’s one thing that’s set every iPhone apart from the Android flagships of its time, it’s how well it works. The Galaxy S6 has a truckload of features (gimmicks?), Sony’s Xperia Z3 boasts waterproofing and the LG G3 has some pretty slick camera tricks and knock on, putting the iPhone 6 seem austere in comparison. Every Android flagship puts the iPhone to shame on paper, with numerous processor cores, twice, sometimes thrice, as much RAM as the iPhone and much denser screens. But none of these seem to hold a candle to the iPhone in terms of everyday user experience and longevity.
In my experience at least, the iPhone 6 has just worked so much better than Android. I haven’t had to deal with abysmal battery life (Nexus 4 and 5), tons of rubbish gimmicks (Note 3), Touchwiz, which cannot seem to fix its issue of giving crazy lag after just a few months of use, and lots more. The Note 3 had a much larger battery, but for whatever reason the iPhone lasts just as long, if not longer. The Note 3 (13MP) and Nexus 4 (8MP) had better cameras on paper, but don’t even come within a one mile radius of the iPhone’s picture quality and its ability to take good shots 8 out of 10 times. I will admit that I prefer the Note’s (over)saturated AMOLED screen, but the iPhone’s IPS LCD is pretty darn good too. And Apple’s DAC makes the Note sound laughable.

I could go on about this, but I’ve also got to recognize Android’s merits over iOS. I really do miss the customizability and openness of Android. I miss the crazy power that it had at times, like rooting and ROMming and even Samsung’s S Note features. Perhaps the HTC One M9 would be the closest competitor to the iPhone from the Android world. I love HTC’s design for the One series, Sense 7 is beautiful most times, if not all, and it’s the only one with audio capabilities rivaling iPhones.

Maybe in a world where IB didn't take up all my time, I would've still stuck with Android. But at this point in my life, I’ve got a dedicated gaming system (PS4) and a Mac for productivity and Designing, leaving me with very few demands from my smartphone. The only prerequisite is that whatever it does, it should be able to do it perfectly, consistently. And at this moment, I don't see anything apart from an iPhone fulfilling my needs.

Maybe in a few years, when it’s time for an upgrade, I’ll buy the latest Nexus or One or hopefully a project Ara device and wait for the waves of nostalgia from years of android use to come crashing back.


(This article is comprised entirely of the author’s opinions and points of view. Your mileage is likely to vary, so please refrain from taking offense eat any statement made.)

26 Mar 2015

KHMD Infuse

The Kumaran Hacker Maker Designer Community held its first event on 3rd March 2015. Members of classes 7, 8, 9 and 11 came together in the High School AV Room. Here's the report.

Being the first KHMD event, INFUSE was carrying a lot of responsibility in terms of spreading popularity, awareness and love for everything related to hacking, making and functional design. 

We began with a talk by Gautam on KHMD; past, present and future, with the relevance and importance of KHMD as a community.

He spoke of how what we learn at school, however practical and informative, isn't enough for the budding hacker/maker/designer and therefore we needed something more, where students could help each other and grow as individuals and also improve the already good quality of students we churn out at Kumarans.

We had a video from Aniruddha Mysore, an alumnus, who wanted to applaud the community's efforts and enforce the idea of KHMD.

Mr. Sathya Prasad from Intel inspired the crowd with his talk on Makers space and what it means to be a maker. His speech was a hit and his easy language and stage presence complimented the message of the talk.

We also had an amazing demo of an in-house Oculus Thrift, built by Aabharan Hemanth, Adhesh Shenoy, Anurag Muttur, Rupith Baburaj and Kushal Naidu.

This seemed to be the highlight of the day and many students tried the device on and were enthralled by its performance.

The response of students after the event was brilliant and several people signed up to join the community.

Infuse was a blast!

Here's the video. Please visit https://www.youtube.com/watch?v=bNyDTBWiDSk for quick links to certain parts of the event.


Thanks to Aabharan Hemanth for editing all the footage. 

7 Mar 2015

Bi-Box Innovation Day




Hi Guys! Here is the long-awaited report on the Bi-Box Innovation Day which took place on 28 February (Saturday).


What is the Bi-Box program?


Bi-Box is a graphical interfaced programming system which consists of a Bi-Box (a micro-controller) where the connections are made. The Logic is designed using a graphical flow chart on a tablet and then uploaded via Bluetooth to the hardware. It is mainly focused on the students who are yet to be introduced to the logic of programming. All this is taught by external instructors from the Bi-Box company.


24 February (Tuesday/Day 1)

We were surprised when all of the sudden, selected students were asked to prepare for the Bi-Box Innovation Day which was going to take place within a matter of 4 days. We were called in and the teachers explained to us what was going to happen on that day. The teachers explained to us that there were going to be 5 main projects and several other filler projects. The main projects were the Argri-mation (The automated farm), E-Hospital (The fully automated hospital), The cloth pulling machine (The automated machine which saves the clothes from rain) and the Automated Cradle. We made up our minds to it and we were ready to start preparing as soon as the required materials and components arrived. I was not surprised when everybody got serious about this day after one of our instructors made a comment saying, "This is the biggest event that has ever happened to Bi-Box so let's make it a grand success!"

25 February (Wednesday/Day 2) 

The preparation for the big day was at full swing! We were called in for the last 2 periods but since we were so excited some of stayed for the last 4 periods! The teams for each of these projects were chosen and division of the work took place. Once the work was divided, the teams started brainstorming for ideas and the final ideas were chosen. But the day was bad as all of a sudden all our progress came to a halt due to technical issues. That day was when I realized how much the Bi-Box instructors cared about this day and were counting on this day. That day they stayed back at school until around 7 p.m just to finish some work which could not be done to cover up the time that we had lost.


26 February (Thursday/Day 3)

It was on this day that real progress was made. The programming part of the projects were done on this day and all that was left was to construct, assemble the models and fix the Bi-Box into it. This was the toughest part of the whole day as there were many technical issues but the teams were able to tackle these problems and move on.


27 February (Friday/Day 4 )

This was the final day of preparation and all the things were coming together and some other people interested in the small projects also joined in. The entire team got together and practiced the way they would present it. At the end, all were satisfied and were ready for the upcoming day.


INNOVATION DAY (28/02/2015)


When the day came, there was more audience than expected due to the PTM that was taking place along side. Everybody was busy just before it started. Badges, Bi-Boxes, Charts were all being distributed to the students taking part. When the time came, the program was at full swing. Everything was going according to plan, people were explaining, showing and telling them what the Bi-Box was.

Detailed description of the main projects


Safe Transport System : The Safe transport system is an automated transport system for the citizens. It features a bus which moves around the city and stops automatically when there is a person in front of it or when it reaches a signal / bus stop.


         

The Automatic Cloth Pulling Machine : The automatic cloth pulling machine helps people who dry their clothes in the open sun. If the machine senses rain, (using a rain sensor which works on the principles of conductivity) it starts a mechanism which pulls the clothes into the shed so that it does not get wet. When it is not raining it brings the clothes back out.        



Automated Baby Sitter : This automated baby sitter helps those who have tough time with babies. If the baby has wet his pants then it sends out an alarm to the mother/father/guardian saying that he has wet his pants. If the baby cries then it makes different colorful patterns using LEDs. 


The Agri-Mation : The Agri-Mation (which stands for Agricultural Automation) is a farm which has many automatic features in it. It has a automatic drip irrigation system that irrigates the crops when the soil is not moist. It has an automated greenhouse which opens in the morning and closes at night. It also has an intruder alarm in case somebody comes close to the farmhouse at night. It also has a fire alarm in case the field catches fire. It is also accompanied by a scarecrow which moves and a windmill as well.


The E - Hospital : The E-Hospital is a automated hospital that consists of a automated stretcher that carries the patient to the emergency room by itself. It also has automatic lights which switch on the moment night arrives. It also consists of some models like the test tubes with different types of blood inside which circulates around a room.




It was a big success. There was a counter which was present for the parents to vote whether they were satisfied or not. A total of 1359 parents voted that they were very satisfied. Overall, it was a huge success.

We thank the teachers and Bi-Box instructors for supporting us in this huge event!

If you have any doubt about what this program is and how the logic is done then don't hesitate to reach me out at gaganbhat6@gmail.com.

23 Feb 2015

The Microsoft HoloLens




During the Windows 10 event held in January 2015, we saw something a lot more than Windows 10. Something that is virtual reality and at the same time, is not virtual reality. This peculiar device is Microsoft’s HoloLens. There isn’t much to say about the HoloLens. But some say it is Microsoft’s answer to PlayStation’s Project Morpheus, while others say it is a device to “combine the digital and real world."

The main idea of the HoloLens is to have a new medium to express creativity. For example, on a Skype call, instructions for the other person can be drawn while performing a task, which are holograms.

HoloLens can also be used for gaming. Minecraft was one game shown by Microsoft (probably) because of Microsoft’s recent purchase of Mojang), and there could be more games soon. It shows  the world of blocks in your living room. You can use your table to build a house, a model of a dinosaur or even a pair of underpants. You can create anything!

You can do a lot more such as sticking virtual sticky notes, looking at virtual recipes, making designs to anything or even use your wall as an App Drawer. HoloLens integrates the real world with the virual world for an enhanced experience of the existing world. This is a new medium of creating and sharing ideas.

The HoloLens can also be used for entertainment. Want to watch your favourite sports team play? Just turn on your device. Want to watch the video of the Mars Rover? Go ahead! You can use gestures and your voice to control the device. HoloLens understands your movements and Gestures.

HoloLens is an interactive device that can change the way we create and share ideas. This is virtual reality and at the same time, it isn’t as we have a virtual world, as well as the real world interacting together. This device can also have a great impact on learning and the way we understand. Here is a preview of the HoloLens:







As a fan of Back To The Future, I can safely assure you that the future is here.

9 Feb 2015

Installing an Alternate OS

Why most programmers need an alternate operating system and how you should go about getting one


A few (of the many) Linux Distros


If you are reading this on a laptop or a desktop computer, I can say with 98.98 percent (Courtesy : netmarketshare.com) surety that you are using a version of either the Windows or Mac Operating System

Generally, a single operating system is sufficient for most computer users. But when you are developing software for multiple operating systems, or using your computer for things like making a web server, or running very specific development environments, often one operating system ceases to be enough.

Running more than one operating system on a computer or dual-booting as it is usually called ( or triple-boot, quad-boot, etc, although the word usage is not as common as dual-boot) is actually very simple and easy, but if you fail to follow some basic procedures, you could end up losing your data, or being unable to use even one OS. Even more terrible things, depending on how bad you mess up.

However operating systems need not always be installed. More on virtualization later.
Here are some questions you will most probably have if you are new to installing operating systems :

1) Which OS should I install?

You should install whatever operating system best suits your particular programming requirements. Windows and OSX are generally best suited for app and software development for those platforms.
For most other things, Linux flavours are popular. If you simply want to install a Linux OS, I would personally recommend either Ubuntu or Debian. Both have easy installations, great support bases, lots of software and applications, and a modern UI.

In the end it comes down simply to what best fits your comfort zone. The Mac OS is better suited for programming than Windows. But neither of these are as popular as open-source Linux distros.

2) Is it compulsory to install an OS to use it?

First of all, it is not required for you to actually install an OS on your hard disk to use one. Lots of Linux operating systems let you run operating systems on flash drives and cd’s. Usually this is to let you demo the OS before installing, but with this method you can actually use an entire OS without it installing on your hard drive.

Virtualbox
Almost all operating systems out there can be run by virtualization. What this means is that you use an OS within another OS. There are several great software for doing this, for both Windows and Mac (Also Linux). Virtualbox and VMware (Virtualbox is free) come on the very top of the list.
You can run pretty much any operating system - Android, iOS, Windows, OSX, (Xu/Ku/Edu/Lu/U)buntu, Debian, Fedora, Red Hat - anything as long as your processor supports (hardware) virtualization technology or VT.


Virtualbox can, to a large extent manage on older processors which do not have `VT` enabled, however performance might be low. VMware requires some bypassing commands to do the same.

Anything newer than Intel Pentium or AMD Athlon would probably support VT, but check your processor specifications before trying to run a virtual OS.

3) Are there any precautions I should take before trying to install a new OS.

Yes! As I mentioned before, you might murder your computer by accident when installing an OS, so always take a backup of all you data onto ANOTHER COMPUTER or a HARD DISK.
Before installing any OS, always read the specifications fully, including the version you are planning to install. Check on forums for any complaints people have had when they have tried to install that particular version of that OS on your computer model.

Also its always better to partition your hard drive when you start the installation process. Most Operating Systems allow you to partition your hard drive before installation, but its always better to do it beforehand to ensure nothing goes wrong. It's usually easiest if you use your current OS to partition. If you're on Windows use the Disk Management tool, Disk Utility on Mac, and GParted on Linux.


Never,ever,ever install an OS onto the same partition as another OS. Always take care you select an empty partition during installation.

4) Which installation method should I use?

When you ‘download an OS’ in most cases you are actually downloading an ISO file, or a compressed ISO file. This ISO file can either be burnt to a CD, or to a USB. Its up to you, to choose which. Some old computers may not be able to boot from USB.


Its not just enough MOVING the ISO file to a CD or USB. It must be burnt, so as to make it BOOTABLE.

There are plenty of software for burning ISO files. Here are two free ones, for the lazy and the uninitiated (Disclaimer : Don’t blame me if this causes your computer to explode, or transform into a killer robot)



Boot devices menu in the BIOS 

After you burn the ISO image, insert the USB/Disc. Run the autorun if it has one - it most likely will - or directly proceed to restart your computer. Before your OS loads, on the BIOS screen, hit the key for the boot option menu (Usually f9 on PC’s) and select either USB or CD depending on which your OS is loaded. I bid you smooth sailing.

5) Precautions to take DURING installation

Stating the obvious here - Whenever you are installing a new OS, make sure to keep your computer fully charged and plugged in.

Keep your Internet easily accessible. Always. WiFi is recommended, but Cable will also work. If you use a dongle, try to convert it’s network into a hotspot as the OS you just install maybe unable to use it. Have another computer standing as backup, in case your installation goes boink.

Ensure you have all the files you may need, already downloaded and ready to be booted if required. I personally would recommend downloading the boot repair disk and putting it on either a bootable CD or USB, especially if you are installing Linux.

The boot repair disk can be downloaded here.

The boot repair disk can be booted from directly. It’s main function is to fix GRUB, but it also contains very useful tools, such as GParted the partition editor, as well as an OS-Uninstaller. It can also be used to access the Internet, in case you need some urgent help.

6) What should I do if something goes wrong during the install

Odds are, the install will not go ferpectly the ristf eimt. Maybe there were driver problems. Maybe your computer was not fully compatible with the OS version you tried to install. Maybe you made some other mistakes. Whatever happens, it’s always best if you try the whole install afresh. If you think the operating system has not installed completely or with some defects, use the boot repair disk to uninstall the operating system, format the partition that you installed the OS on, and try again.
In case of a failed install, Purge, Cleanse and Start over!

7) The OS has been installed. Now what?

So all the installation is done. Check if everything is functioning as it should. The only tests you need to run, are with the hardware. Just make sure all your hardware components - speakers, keyboard, touchpad/mouse, camera, ports - are all functioning correctly. If there is a problem with anything, try looking on forums if you're experiencing a known issue with the OS. More likely than not, the drivers will need to be updated, and once this is done, your new OS will be ready.

Also ensure your multi-boot screen is functioning correctly. ( This will be GRUB if you have any linux versions installed ) The boot repair disk can fix most issues with GRUB. If you have installed Windows freshly, GRUB may not be accessible during startup and you will directly boot Windows. Again, the boot repair disk can fix this issue.

The Grand Unified Bootloader
Aah, the satisfaction of using a freshly installed OS
Some General tips for Linux : Start using the terminal for even basic things. That way you'll get the hang of it. Install updates, as soon as you get your system up and running.

General tips for Ubuntu : Click Here for a quick list of things to do immediately after you install Ubuntu.

This post is crosspublished on my blog, The New Age Tech Connoisseur
Go forth and conquer!

4 Feb 2015

Texas Instruments Quiz - More Questions!

Hello everybody!

So as I said in my previous post, I wanted to put up a few more questions for preparation and just for fun. These are some interesting questions which you can try.

  1. Most vehicles have an RPM meter but even when the vehicle is at idle, the RPM meter does not show zero. (But the engine is turned on). So this meter shows the RPM of what? (Try to get the specific answer)
  2. When you open a refrigerator and then close it, sometimes the fridge door get 'stuck' and needs a lot of force to open it. However if left alone for sometime, the door opens normally again. How do you explain the door getting stuck and then opening normally again sometime later?
  3. Satellites are placed in space and many of them continuously face the sun and receive heat from it. This should cause them to keep heating up until the temperature becomes very high and the satellite is damaged. But this does not happen. How / Why?
  4. Nokia posted this as a response to 'X'. ID X.
  5. There is a natural gas field in Turmekistan called the Door To Hell. Soviet engineers in 1971 found this natural gas site but the whole region collapsed into a crater. They lit the gas and expected it to burn out within a few weeks but it continues to burn till date. Even though burning the gas produces CO2 which is a greenhouse gas, it is considered to be better than letting the gas escape. Why?
  6. In a camera with an electronic flash, immediately after clicking a photo with the flash, a high-frequency whirring sound can be heard sometimes. We say that the 'flash is charging'. What exactly needs to charge? Why does it need to charge? 
  7. Related to the previous question. Explain why this sound is heard. (You might also hear it some other electronics)
  8. What purpose did screensavers serve on computer screens and TVs?
  9. There was an app called 'Bump' which allowed two people with the app to just bump their phones to share files with each other over the internet. It does not use Bluetooth or NFC. Can you explain how this worked?
  10. The picture below has many red dots. What do these represent? (Hint: Related to automobiles)
 
Try to answer as many as you can!