<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel>
  <title>Posts by Suraj - Suhas Tech</title><link>https://suhastech.com/</link><description>I has tech!</description><atom:link rel="self" type="application/rss+xml" href="https://suhastech.com/author/suraj/feed/"/>
  <item><title>[How to] Program on Linux using gcc</title><link>https://suhastech.com/how-to-program-on-linux-using-gcc/</link><guid isPermaLink="false">http://suhastech.com/?p=551</guid><pubDate>Thu, 20 Jan 2011 14:24:53 GMT</pubDate><dc:creator>Suraj</dc:creator><description>&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;alignnone&quot; title=&quot;Tux keyboard&quot; src=&quot;https://jaxov.com/wp-content/uploads/2009/07/Tux-Keyboard.jpg&quot; alt=&quot;&quot; width=&quot;323&quot; height=&quot;258&quot;&gt;&lt;/p&gt;
&lt;p&gt;Hey! It took me a while to figure out that Linux is in fact the best OS for a non-gamer like me. And whenever I DO login Windows, even by mistake, I am greeted by a slew of viruses and a painfully slow speed. 😮&lt;/p&gt;
&lt;p&gt;So I figured I should do even my C programming on Linux. It was there in my coursework from college you know!&lt;/p&gt;
&lt;p&gt;There are&lt;strong&gt; two ways &lt;/strong&gt;in which you can program in C in Linux:&lt;/p&gt;
&lt;p&gt;1) Use an IDE (Integrated Development Environment) like Netbeans or Codeblocks.&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;2) Use the inbuilt gcc compiler, like I did. 🙂&lt;/p&gt;
&lt;p&gt;GCC basically stands for GNU C Compiler. Its not actually an IDE, but it kinda works when you get used to it. Plus, its easier to setup. Many people (including me) were in a total state of confusion at first, but hey, turns out its pretty simple! Let me illustrate the steps you need to take to compile and build a program on a Linux machine.&lt;/p&gt;
&lt;p&gt;1) Type out your code in a text file (on gedit) and give it a “.c” extension. It actually works. Atleast in Ubuntu 10.4, your pre-processor code will have a different colour than the rest, and so on, like a normal IDE.&lt;/p&gt;
&lt;p&gt;2) Go to Applications -&amp;gt; Accessories -&amp;gt; Terminal. Use the command “cd” to navigate to the directory where your “.c” file is stored. Eg: If your file is stored in “Documents” under the root folder, the type “cd Documents” in the terminal.&lt;/p&gt;
&lt;p&gt;3) If your filename is say, “code.c”, then type “gcc code.c -o code”. This compiles and builds your required file.&lt;/p&gt;
&lt;p&gt;4) Type “./code” to run your program. And hey presto! Its all done!&lt;/p&gt;
&lt;p&gt;And of course, if u need to use C++, just replace gcc by g++. And save the file as “.cpp”. The rest is all basically the same.&lt;/p&gt;
&lt;p&gt;And, sometimes it can happen that &lt;strong&gt;gcc may not be installed &lt;/strong&gt;in your OS. Not a problem. It will automatically prompt you to install it in a couple of simple steps, which require you just pressing “y/n”.&amp;nbsp; 😛&lt;/p&gt;
&lt;p&gt;At the end of the day, Linux programming may not give you a very distinct advantage, but hey, its different! Its a skill that you’ll need to learn eventually maybe, so why not learn it now? 😉&lt;/p&gt;</description></item>
  <item><title>[How to] Replace your old CD/DVD drive in your PC</title><link>https://suhastech.com/replace-your-old-dvd-drive/</link><guid isPermaLink="false">http://suhastech.com/?p=286</guid><pubDate>Wed, 21 Jul 2010 07:35:59 GMT</pubDate><dc:creator>Suraj</dc:creator><description>&lt;p&gt;Have you ever suffered from having an old computer, or a faulty CD/DVD drive? If yes, then even a doctor would would know enough to tell you that you need to replace it. And fast.&lt;/p&gt;
&lt;p&gt;That’s when I decided to replaced my old CD-ROM (can you believe it?) with a brand new DVD-RAM.&amp;nbsp; B)&lt;/p&gt;
&lt;p&gt;Its not a difficult thing to do, all you need to do is have a small star screwdriver. This is actually the easiest DIY ever. So, starters are at relief. While that adds, this is also a DIY with no pictures. 🙁 You see I forgot to take pictures when I did that but still its dumbing ease will make it comforting for you. 🙂&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Getting the DVD Drive:&lt;/strong&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;You’ll need to get a compatible DVD drive for your computer. Basically, there are 2 standards, IDE and SATA. Open up your computer (More on point no. 1) and check what kind of a cable your computer is using.&lt;br&gt;
&lt;img decoding=&quot;async&quot; class=&quot;aligncenter&quot; src=&quot;/wp-content/uploads/images/sata-ide.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Normally, computers having SATA ports will also have IDE ports. Go for SATA DVD drives (Cheaper and Better)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1) &lt;/strong&gt;Firstly, you need to rip-off your PC cabinet to expose its interiors. Its not difficult, you just need to remove the outer screws and&lt;strong&gt; SLIDE&lt;/strong&gt; out the side panels (both of them).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2) &lt;/strong&gt;Once you’ve done that, you will easily see the CD/DVD drive from the inside. Unscrew the screws on the sides. Slide it out. Unplug the wires.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3) &lt;/strong&gt;Slide out the old CD/DVD drive, after removing a couple of screws that hold it in its place.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4) &lt;/strong&gt;Now just put in your new drive, reconnect the wires at the same places, and you’re good to go!! 🙂&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Some old computers (using IDE cables) can’t&amp;nbsp;distinguish&amp;nbsp;between Master and Slave drives if the jumpers are not set properly. If you connect&lt;strong&gt; two&lt;/strong&gt; devices &lt;strong&gt;with the same cable,&lt;/strong&gt; &lt;strong&gt;only one of the two device will be detected&lt;/strong&gt;.&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;To solve it, you’ll have to set one as Master and one as slave. Here’s how:&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img decoding=&quot;async&quot; class=&quot;aligncenter&quot; src=&quot;https://support.dell.com/support/edocs/storage/7519c/dvd2b.gif&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;If you have any doubts, please comment. 🙂&lt;/p&gt;</description></item>
  <item><title>Run Windows applications on Linux</title><link>https://suhastech.com/run-windows-applications-on-linux/</link><guid isPermaLink="false">http://suhastech.com/?p=158</guid><pubDate>Sun, 20 Jun 2010 04:20:57 GMT</pubDate><dc:creator>Suraj</dc:creator><description>&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;alignleft&quot; style=&quot;float: left;&quot; src=&quot;/wp-content/uploads/images/winehq_logo_glass.png&quot; alt=&quot;Wine software&quot; width=&quot;200&quot; height=&quot;313&quot;&gt;There is only one reason why linux has not been able to replace windows entirely: the applications!&lt;/p&gt;
&lt;p&gt;Windows applications let you do things that you can do only on windows, not linux. To break out of that shell, a few Linux enthusiasts started the so-called “Wine” project.&lt;/p&gt;
&lt;p&gt;That’s a software that is supposed to be an attempt to do the same that is; run windows apps on Linux, Solaris, mac OS X,etc. But despite all its claims, don’t expect wine to run COD4 on linux. Its still in its beta stage and my guess is that even its last stage wont be able to. It can run small basic applications though. One of my favourites is &lt;a href=&quot;http://www.utorrent.com/&quot;&gt;&lt;strong&gt;uTorrent&lt;/strong&gt;&lt;/a&gt;. Also, you wouldn’t want to miss out on &lt;a href=&quot;http://www.solsuite.com/freeware.htm&quot;&gt;&lt;strong&gt;solitaire&lt;/strong&gt;&lt;/a&gt; when you’re on linux.&lt;/p&gt;
&lt;p&gt;Yes, I do admit that for windows users, installing this wine thing will be a bit strange at first, but its actually really simple.&lt;/p&gt;
&lt;p&gt;&lt;a title=&quot;Wine&quot; href=&quot;http://www.winehq.org/download/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;strong&gt;Click here&lt;/strong&gt;&lt;/a&gt; to download wine software. Its available for almost all versions of Linux. The website includes step by step instructions on how to install it. Do all that with a bit a patience and voila, you’ll have wine installed!&lt;/p&gt;</description></item>
</channel></rss>
