DDA program

                           DDA Line Drawing program in c



#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
void main()
{
//variable declaration
int dx,dy,length,x1,y1,x2,y2,k,p,q;
float x,y,m;
float stepx,stepy;
//to autodetect the graphic drivers and mode
// set gd=DETECT,DETECT is a macro declared in graphics.h
int gd=DETECT,gm;
//call the pre-defined method initgraph with the address of gd nd gm


//input
printf("Enter the x co-ordinate of start pt\t");
scanf("%d",&x1);
printf("Enter the y co-ordinate of start pt\t");
scanf("%d",&y1);
printf("Enter the x co-ordinate of end pt\t");
scanf("%d",&x2);
printf("Enter the y co-ordinate of end pt\t");
scanf("%d",&y2);
//diff. in x co-ordinate
dx=(x2-x1);
//diff. in y-co-ordinate
dy=(y2-y1);
if(dx>=dy)
length=dx;
else
length=dy;
stepx=(float)dx/length;
printf("%f",stepx);
stepy=(float)dy/length;
printf("%f",stepy);
x=x1;
y=y1;
getch();
initgraph(&gd,&gm,"c:\\TC\\BGI");
//setviewport(getmaxx()/2,getmaxy()/2,getmaxx(),getmaxy(),100);
//for loop to print the line
// with every iteration x increases 1 and y by the slope
cleardevice();
p=getmaxx();
q=getmaxy();
line(p/2,0,p/2,q);
line(0,q/2,p,q/2);
for(k=1;k<=length;k++)
{
//use the putpixel method of graphics.h
delay(50);
  putpixel((p/2)+x,(q/2)-y,25);
x=x+stepx;
y=y+stepy;

}
getch();
//close the graph and come back to the text mode
closegraph();
}


Direct source code:-Download



                                     output


NOTE:-Since i did not find a complete dda program anywhere on the web,which works fine with negative values as well as with other quadrants,so this is what i have tried to achieve those requirements.If their is anything wrong in this program please let me know,i will surely try to correct them.




Your feedback is valuable for me


 

ctnc june2010 paper solution

 

How to customize desktop

Customize Your Desktop



Every individual wants that their desktop should be arranged in a way they want it to be,and not the way microsofts os arranges them.
So here i am with a small tutorial,on how you can easily customize your desktop,by using some of the free tools and the .net framework.
How to install .net framework is discussed in the previous pages,if you haven't installed .net yet,please go through the previous post and install it.

Now without further delay,lets start customizing our desktops

step1:Install the .net framework 3.0 or 3.5

step2:Download fence from the link given below,the name of the software is fence

Download Fence

step3:Download Rocket dock,search it on google and you will find the download link

step4:Install Rocket dock and Fence

step5:Download some hd wallpapers and your done,fence is easy to use,just follow the procedure

and you will have an amazing looking desktop

Note:The best part is it doesnt degrade your computer speed


For more information,watch this Fencevideo


Here is a snapshot of how by using fence i have arranged my desktop.All your valuable comments are most welcome,if their is any query regarding this,please feel free to post it over here.




 

.net framework

DOWNLOAD COMPLETE MICROSOFT .NET FRAMEWORK 3.5 SETUP

Many new Windows applications requires latest version of Microsoft .NET framework which is version 3.5 at the time of of writing of this post.
If you go to Microsoft download center, then by default you will get live installer of approximately 2-3 MB’s while complete .NET framework requires 50-200 MB. Actually on the same page there are links to complete setup but they are placed in a way that anyone can hardly notice them. Seems like Microsoft wants you to download live installer but there are problems with live installer…
  1. It may hang forever if you have slow internet connection like dial-up, GPRS, etc.
  2. You can not use it at all if your computer is not connected to internet 
  3. Also if you are running pirated Windows better not to use any software/installer from Microsoft which connects to Internet.
Here I am giving you links to complete Microsoft .NET Framework 3.0 & 3.5 setups which are gathered from Microsoft pages (links: v3.5 & v3.0)
# Microsoft .NET Framework 3.5 Setup




# Microsoft .NET Framework 3.0 Setup



Do not worry about authenticity of above links as they are from Microsoft’s server!





 

ppt on microprocessors

                Powerpoint presentation on microprocessors




Some of the snapshots are given below,if u like them then download the ppt,i hope it helps you all






DOWNLOAD


 

VLC media player for Android

 



VLC media player for Android beta is now 

 

available for download 

 

 

http://gadgetsolutions.in/wp-content/uploads/2012/07/VLC-Media-Player-Android-App.jpg

 

 

http://ticker.ttsh.netdna-cdn.com/wp-content/uploads/2012/07/vlc-android.jpg

 

Naturally being in beta, the app might be unstable at times, although most of the early 

feedback is positive.Mind you, it’ll run only on devices with an ARMv7 processor, 

which supports the NEON engine. The player comes with a nice widget that allows you to 

play, pause and stop any music track you might be playing with it.At this stage all but the 

cheapest Droids have a qualifying CPU,but if yours isn’t on the list you’d be glad to know that 

an ARMv6-loving version is also in the works. There’s also going to be a tablet-friendly

 release of the VLC player for Android. Follow the source link below to get the VLC player beta

 and don’t forget to share your first impressions on it with the rest 

of us in the comments section below.

To download the vlc for android please click on download below:-


 

 

 

Angry birds on xbox,ps3 and nintendo



Angry Birds to hit Xbox 360, PS3 and 

 

Nintendo 3DS later this year 

 

 

 

http://www.oxmonline.com/files/u49901/oxm_angry_birds_big.jpg
http://www-xbox360.com/wp-content/uploads/2010/12/7th-XBOX-360.jpg

 

New Angry Birds versions that are being “built from the ground up” will hit the Xbox 360, PlayStation 3 and Nintendo 3DS in the holiday season. 

The game will be distributed physically on discs (Xbox 360, PlayStation 3) and a 3DS cartridge. There is no info on the pricing just yet.

The console Angry Birds offerings will include the original Angry Birds game, Angry Birds Seasons and Angry Birds Rio. It is yet unknown if the game will pack all the levels available on iOS and Android.

The fact that Rovio rebuilt the game from scratch for the consoles allowed the devs to include animated backgrounds, new and better effects, HD (and probably Full HD) resolution support, etc. MS Kinect, PS3 Move and 3DS StreetPass support is going to be included as well.

There will be new leaderboard and achievements system as well as individual score charts for each level.

Angry Birds for consoles is coming this holiday season.

 

Notepad Tricks: Cool Notepad tricks for Windows


Notepad Tricks: Cool Notepad tricks for Windows



Notepad, the text editor that comes bundled in Windows is an excellent tool for text editing. But that is not the only thing for which notepad is famous. It is also famous for its tricks and hacks. Here is a roundup of some of the best and coolest tricks that you can try using Notepad.


Matrix Falling Code Effect - Notepad CMD (.BAT) Tricks

Inspired by the movie Matrix, this falling code trick is extremely popular on social networking websites. Copy and paste the code given below in Notepad and save the file as "Matrix.bat" or *.bat. 

@echo off
color 02
:tricks
echo %random%%random%%random%%random%%random%%random%%random%%random%
goto tricks
Notepad tricks

Upon running the bat file, you will see the "Matrix falling code" effect.

Create a Harmless Funny Virus with Notepad-Continuously eject CD/DVD drives

This VBS trick will create a code which will continuously eject all your connected Optical drives. If you put them back in, it will pop them out again. Copy this code and paste it in Notepad as Virus.vbs or *.vbs.

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

Double click to open this file and you will be impressed by this awesome trick.

To close any of the VBS trick given, open task manager and close the wscript.exe process. These tricks work onWindows 7Windows Vista and Windows XP.


Make a Personal Diary(Log) with Notepad (Easter Eggs)

Notepad Diary
Notepad Diary
You can use this trick to create a personal log with Notepad which will automatically include the current date and time before your note. To do so, open Notepad and type .LOG in capital letters and press Enter. Save the file. Now, every time you open this file, notepad will automatically insert the current time and date before the note. Just enter your note and save the file each time after making an entry.

All these Notepad tricks are totally harmless and would not harm your PC in any way.  To close any of the VBS trick given, open task manager and close the wscript.exe process. These tricks work onWindows 7Windows Vista and Windows XP.

 

Watch ASCII Star Wars in Windows XP, Vista and 7


Watch ASCII Star Wars in Windows XP, Vista and 7



Every one of us has watched Star Wars on television, computer or in a theater. It is the same movie with aliens fighting each other for galaxies and such stuff. There is nothing new in it. But wait, have you watched an ASCII( American Standard Code for Information Interchange) version of Star Wars and that too in Windows using telnet.  Well if you have not, then you must do it now!

There is a complete copy of Star Wars done entirely in ASCII characters that you can watch in theWindows operating system (or any OS that supports telnet). The only thing required to watch it is an internet connection; speed does not matter.

To watch it on Windows XP,
  1. Go to Start, Run.
  2. Now type "telnet towel.blinkenlights.nl" without the quotes and press Enter.

On Windows 7 and Windows Vista

Telnet is turned off by default in the latest versions of Windows. So, in order to watch star wars, you must first enable telnet by going to Control Panel › Programs › Turn Windows Feature On or Off and ticking both the telnet check boxes. After doing that, follow the steps given below:-
  1. Go to Start, Search.
  2. Type telnet and press Enter.
  3. In the following command prompt window, type "o" without quotes and press Enter.
  4. Now type "towel.blinkenlights.nl" without the quotes and press Enter.
If you do not need telnet anymore, you can turn it off.
command prompt window like the one in the image will open with the movie being played in it. See the movie yourself. Did you enjoy watching this new version of Star Wars? Well, I did and know it for sure that you would have too.



 

Notepad tricks


Notepad Tricks and Tips




With these tricks, you will be able to find out the tricking ability of Microsoft Notepad. But before that, do you know:- 
  1. The number of the flight that attacked World Trade Centre? 
  2. How much control the President of United States has over Microsoft?
  3. How worried Microsoft is about their reputation?
Well if you don't, you will know the answers to all these questions after trying these tricks.

Trick/Answer 1

The number of flight that attacked the World Trade Centre was Q33N. You might ask what is the trick in that. We could have searched it on the net in an instant. But this is not the trick. The trick starts now:-
  1. Open Notepad.
  2. Type in Q33N.
  3. Change the font size to 72 by clicking on Format and selecting Font in the Menu Bar.
  4. Also select Wingdings as your Font.
  5. Click on OK to see the trick.
 Note: Change back to your default font.


Trick/Answer 2 

Well the President of United States is undoubtedly one of the most powerful man. No one dares to test it. But now that Bush is no longer the President, .........we would. To test his authority over Microsoft, follow the steps given below:-
  1. Open Notepad.
  2. Type in "bush hid the facts" without quotes.
  3. Save the notepad file as test.txt or *.txt.
  4. Reopen the file to know the results.
Trick/Answer 3 

Well, most people think reputation is everything and the top brains at Microsoft are no different. To test their reputation building scheme, try the steps given below:-
  1. Open Notepad.
  2. Type in "this app can break" without quotes.
  3. Save the notepad file as test.txt or *.txt.
  4. Reopen the saved file to know the results.

Try these notepad tricks yourself to know the results.

On a serious note, none of the flight that attacked World Trade Center had the flight number Q33N. It is just a rumor which became popular due to its peculiar nature. Moreover, did you notice some similarity in trick 2 and 3? Yes, you figured it out correctly, both of the statements have the word length pattern of 4,3,3,5 which seems to cause the bug. It is not that Microsoft is that much 'worried' about their reputation or the U.S. President have absolute control over Microsoft.

Note: The last two tricks work on all versions of Windows but these tricks are computer specific and might or might not work on some systems running later versions of Windows after XP. 


 

The top 5 most anticipated gadgets

             The top 5 most anticipated gadgets of 2012



iphone5




Apple's sixth generation iPhone 5 (or whatever Apple ends up calling it) is nothing but an assumption right now but if release schedules hold to pattern, we should see it by the fall of 2012. Rumors and feature wish-lists include a 4-inch screen, faster Apple A5X chipset, real 4G LTE networking, and, of course, thinner and lighter. Storage, pricing, and availability are all uncertain right now,bt i'll let you know the moment i do!



iPAD3



Rating:-4.5/5


The new iPad, the iPad 3, the new iPad 3… call it what you want, but it's a device that from the outside looks remarkably like the iPad 2 but with an overhaul on the innards.
what's different from the old one?
Well, in this case it's pretty easy: there's a Retina Display that makes everything looks superbly crisp, an updated A5X processor bringing quad-core graphics and a 5MP camera on the rear with a VGA sensor on the front.

Samsung Galaxy SIII



Rating:-4.5/5


The Samsung Galaxy S3 is, according to Samsung anyway, 'inspired by nature – it sees, listens, responds, and allows you to share the greatest moments'.

While this is all a little hyperbolic, the nature theme is certainly present when you handle the phone for the first time.

Brushed polycarbonate – you've got a choice of 'Marble White' and 'Pebble Blue' – adorns the large device, which runs in with dimensions of 136.6 x 70.6 x 8.6mm, despite still having to pack in a 4.8-inch Super AMOLED HD screen.
But we'll be very clear on this - the Galaxy S3 is not a cheap-feeling phone. It's got a really solid Gorilla Glass 2 front, a well-packaged interior and a more robust battery cover. It's polycarbonate rather than bog-standard plastic, although we're not sure some people will like the more rounded nature of the design..

Quad-Core Mobile Phones/Tablets



With Nvidia introducing their Tegra 3 quad-core processor, gone are the days where desktops and high-end laptops were the only ones to get the quad-core treatment. ASUS immediately jumped on the gun with their Transformer Prime (despite being sued for the name) and placed the Tegra 3 chipset to power this device. This proved to be a great choice as the Transformer Prime was indeed a very fast tablet and this sets the precedence for more quad-core devices to come out of the market, hopefully in 2012. So yeah, mobile computing will really be a notch higher with these kinds of devices coming.

Nintendo Wii U




The Nintendo Wii U is the first next-gen games console to break cover and will be the first to go on sale when it hits the shelves in time for Christmas later this year.
When the Wii first emerged, it too represented a new breed of games console. But ultimately a combination of dated hardware, lack of third-party games and a failure to engage the traditional gaming market led to Wii sales dropping through the floor. Wiis now collect dust in dark cupboards the world over, and Nintendo just posted its first ever financial loss in 30 years.
Nintendo needs the Wii U to be a big hit to get the cash rolling in again.


 

The Biggest Tech Addictions Ever


                        The Biggest Tech Addictions Ever



Some of the biggest tech-addiction are discovered and the way they can harm you is given below:-

Don't get worried,these are just surveys done by few scientists,its not neccesary that they prove to be right for all of us TECH-ADDICTS

So here it is the 4 Biggest Tech Addictions Ever


1. Phantom Vibration Syndrome


Have you ever searched for your mobile phone because you felt it vibrating, only to discover that it hadn’t? This could be what many call “phantom vibration syndrome,” the victims of which feel vibrations even when their devices are in an entirely different room.


The name is based on a medical condition called phantom limb syndrome in which someone who has lost a limb experiences sensory hallucinations that it is still attached to the body and functioning. Similarly, those with phantom vibration syndrome feel their phones as extensions of themselves.


According to a study by Dr.Larry Rosen, 70% of people who heavily use mobile devices experience phantom vibrations. It is common and recent studies are finding different ways to recover from it.





2. Internet Addiction Disorder


Addiction to the Internet can cause the same type of social problems as other established addictions, such as gambling. Internet addiction disorder (IAD) refers to compulsory use of the Internet, such that it interferes with daily life.


However, it is not yet recognized or classified as a disorder but it may be included medically as one among Diagnostic and Statistical Manual of Mental Disorders (DSM) soon.


In the American Journal of Psychiatry, Dr. Jerald J. Block wrote: “IAD can be characterized by excessive use, feelings of withdrawal and negative repercussions, such as arguments and fatigue.” Studies have also proved that severe use of the Internet can also cause high levels of depression.




3. Social Media Addiction



Social media addiction is the latest by-product and a subdivision of Internet addiction. It is the most common tech addictions of now.


Researchers from the University of Chicago surveyed 250 participants, fitting them with devices that logged nearly 8,000 reports on their everyday desires. According to the study, checking social networking sites for updates is a much harder habit to break than alcohol or tobacco.


In Norway, researchers came up with a new test to help you figure out whether you suffer from a social media addiction. Called as Bergen Facebook addiction scale, the test is based on six metrics, for example, using Facebook to forget about problems or trying to cut down on Facebook use without success.




4. Video Game Addiction


Video game addiction began in the last decade and with the introduction of many other gaming gadgets, it is on a rise now. Like Internet addiction and others, it is characterized by the interference of gaming with other aspects of life. Although it is not yet considered an official addiction by the American Medical Association, video game overuse has led to terrible consequences.


In July 2011, a 20-year-old computer programmer in U.K died of deep vein thrombosis from sitting for too long in front of computer. A blood clot started in his calf and eventually caused fatal blockage in his lungs.





 

How to install IIS without the xp cd

                Installing IIS without the original xp cd




Installin the IIS server without the original xp cd is possible,so u hav to no longer keep asking your friends for their original xp cd or even a fake one,if who u dont have one.
I wanted to install IIS to study asp which was part of my course but unfortunately i didnt have the xp cd with me,so after searching for about 5 to 6hrs,i found a solution to install the IIS server without the cd.
But bcoz of this 5 to 6 hrs of search a lot of time got wasted,so i am postin it on my blog,so that people who dont have xp cd nd still need to install IIS and study asp quite urgently,they can do dat in a few minutes,by followin the method that i hav mentioned below:-

STEP 1:Download the dll files from the link that i hav mentioned below
http://rapidshare.com/files/213300927/IIS_5.1_requierdfiles.zip
Their is one file that is missin in it,nd dat is aqueue.dll,but you can get that file from http://www.dlldump.com/download-dll-files_new.php/dllfiles/A/aqueue.dll/6.0.2600.2180/download.html

STEP 2:CREATE a folder in any of your drives and save these dll zip files over their and then extract them,Extract all the files.

Step 3:Once you hav extracted all the files,now the last step is go to control panel and select add or remove windows components.



STEP 4:Their click on the check box named Internet information service(IIS) then click on next.

Step 5:It will ask you to give the path where your dll files are located give that path and click on next nd dats it your done with installin IIS server.

STEP 6:To check wheather its workin or not,just go to your c drive,you will find a folder called as "inetpub" without the quotes,inside it their will be a folder called as "wwwroot",inside this folder create your own folder where you will save all your asp files.

STEP 7:Now inorder to execute your asp files,just go to your web-browser and type http:localhost/your folde name/file name.asp

Just as i did below,my folder name is asp_tue and the file name was form.asp



COURTESY:-AP Dubey tech corner