<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
<channel>
<title>python</title>
<link>http://www.computersight.com/tags/python</link>
<description>New posts about python</description>
<item>
<title>Solidworks Tutorial: How to Draw Simple 2D Geometries</title>
<link>http://www.computersight.com/Software/Solidworks-Tutorial-How-to-Draw-Simple-2D-Geometries.250823</link>
<description>
<![CDATA[<p>This is the first article of my Solidworks tutorial. By this article, I aim to teach how to draw some simple geometries by Solidworks. This work is for students, engineers and engineering candidates. After reading this article, one can draw lines, rectangles in Solidworks. I present step by step procedures in these simple drawing.</p>
<p>Above all, we will use sketch command to define a planes. Simply pressing sketch button in Solidwork menu, you can define a plane on which you want to start drawing. Basically, one has three alternatives, front, top, and right respectively. For 2D drawings, one can select any of them. In our tutorial set, I will select top plane as a reference plane. This means, I'll draw on the top surface of imaginary rectangular prism. Think like this for simplicity.</p>
<p><img src="http://images.stanzapub.com/readers/2008/09/11/sol1_1.jpg" alt="" />&amp;nbsp; <br /><br /><img src="http://images.stanzapub.com/readers/2008/09/11/sol2_1.jpg" alt="" /></p>
<h4>How to draw a line</h4>
<p>To draw line, simply click the line figure on the toolbar. Solidworks will present you four alternatives to draw line. They are "as sketched", "horizontal", "vertical" and "angle". Lets we draw a vertical line with a height of 60. Click the "vertical" radio button and&amp;nbsp; and somewhere on the screen and drag the tip of cursor vertically. This will draw a vertical line. To dimension it, click "smart dimension" button and starting point of line. Then drag the tip of cursor to the end point of vertical line. Solidworks will ask you the numerical length of the line. Write 60 into the space. Now, you have a vertical line with a length of 60 mm.</p>
<p><img src="http://images.stanzapub.com/readers/2008/09/11/sol3_1.jpg" alt="" /></p>
<h4>How to draw a rectangle</h4>
<p>To draw rectangle, click the rectangle figure on the toolbar. Then draw a rectangle with any lengths. Then dimension it by using "smart dimension" button. Dimension each side of rectangle. Let's draw a rectangle with a side length of 120 mm and a height of 80 mm.</p>
<p><img src="http://images.stanzapub.com/readers/2008/09/11/sol4_1.jpg" alt="" /></p><a href="http://www.pheedo.com/click.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FSoftware%2FSolidworks-Tutorial-How-to-Draw-Simple-2D-Geometries.250823"><img src="http://www.pheedo.com/img.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FSoftware%2FSolidworks-Tutorial-How-to-Draw-Simple-2D-Geometries.250823" border="0"/></a>]]></description>
<pubDate>Fri, 12 Sep 2008 03:06:40 PST</pubDate></item>
<item>
<title>Lets Learn C : Printing Strings on to the Screen</title>
<link>http://www.computersight.com/Programming/Lets-Learn-C--Printing-Strings-on-to-the-Screen.225265</link>
<description>
<![CDATA[<p>Here is the first article of my tutorial set. I aim to teach you the basics of C. In this first lesson, I am going to teach you how to output a series of strings on to terminal screen of C program.</p>
<p>Virtually every program code has inputs and outputs. Before compiling a source code, programs generally request an input from the user and then output it to the screen after compiling if the program is well designed and there is no error inside it. Usually, as the program becomes more complicated, error possibility increases. A good software expert easily realizes where the code has faults and corrects it. Since our first code will be very small and very simple, we will not face with any error.</p>
<p>Before starting to write code, we initially have a compiler which is going to evaluate our code. I use Dev C for this. There are many other compilers which run on different platforms like Unix, Linux and Windows.</p>
<p>In this project, we will output the names of  the subprograms of Triond on to C terminal screen. This is the simplest algorithm since there is no input in this example. Let's start writing our code step by step.</p>
<p>Step 1: Open the File from the menu bar of C software and save as the blank page Project1. This yields a file with an extension of cpp.</p>
<p>Step 2: Describe the name and aim of the programs. To do so, we use comments. Comments are ignored by the compiler. For commenting, we use some special scripts like double slash  or  slash-asterisk character .</p>
<p>If we use a single line comment, double slash is enough. However, if our comment is placed more than one line, we use double slash for each line or take the commented part between  slash-asterisk and asterisk-slash characters .</p>
<p>Step 3:  C needs library files which define what the input and output functions are and what they do when they are used in a code. Iostream is the library file of input and output function.</p>
<p>Before the name of library files, we use a special character,  preprocessor directive character. Include is used before the name of every library file and such file names are placed mathematical comparison characters.</p>
<p>Step 4:  Every C code uses functions. The default function is main. Main function is the first function compiled by the programs. This function usually calls other functions. Before the name of function, we specify which type of output our code returns. In our program, we think that it returns to integer and use int. After the function name, we use parantheses. In this example, there will be nothing between parantheses but in more complicated programs, there may be parameter names and it's types or definitions. We place our statements between left brace  and  right brace.</p>
<p>Step 5:  To print on to the screen,we use cout function. We simply place our string inside  double quote  characters. Every statement inside the functions ends with a special semicolon character.</p>
<p>Step 6:  To check the validity, we use return function.In this simple example, it returns to 0.</p>
<p><a href="http://clesson1.blogspot.com/" target="_blank">Click here for the code</a></p><a href="http://www.pheedo.com/click.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FLets-Learn-C--Printing-Strings-on-to-the-Screen.225265"><img src="http://www.pheedo.com/img.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FLets-Learn-C--Printing-Strings-on-to-the-Screen.225265" border="0"/></a>]]></description>
<pubDate>Sun, 24 Aug 2008 10:02:41 PST</pubDate></item>
<item>
<title>Eight Good Game Making Tools</title>
<link>http://www.computersight.com/Programming/Eight-Good-Game-Making-Tools.53651</link>
<description>
<![CDATA[<p>Do you want to start making games, or are you a game maker who's looking for some good tools to use? Well in the article, I will be listing some good tools that you can download for free from the owners website.</p>
 
<ol><li>

<h3><a target="_blank" href="http://www.yoyogames.com">Game Maker</a></h3>

 A very good and easy to use game creation program. <br/>For beginners, you can quickly and easily make a simple game such as platform-style(super Mario, mega man,etc), and for experienced programmers, there is a built-in programming language called GML, which will allow you to do a lot more things you can't do with drag and drop, such as more complicated games like puzzle-games(tetris,bejeweled,etc.), racing games.<br/> You can make any games you want to try to make.
</li><li> 
<h3><a target="_blank" href="http://www.sploder.com ">Sploder</a></h3>

 I don't very much recommend this, but it is a useful site, yes a site that allows you to create your own flash games. Flash games are the games you see on game sites such as 
<a target="_blank" href="http://www.miniclip.com">Mini Clip</a>,
<a target="_blank" href="http://www.newgrounds.com">New Grounds</a>, etc. I don't recommend it because it is very limited.</li><li>
  
<h3><a target="_blank" href="http://www.bloodshed.net/devcpp.html">C++ (Dev C++)</a></h3>
  
 If you are up for the challenge, you can always go for doing c++. c++ is a programming language which most of todays commercial games are made out of. It can be very confusing though, but if you manage to create a game with it, it keeps it fast, and small in size.</li><li>
  
<h3><a target="_blank" href="http://irrlicht.sourceforge.net/">Irrlicht</a></h3>
 
 Since I mentioned c++, I will mention Irrlicht, a free 3d graphics engine. I really like this engine because you can easily create 3d graphics with this engine. 
 </li><li> 
<h3><a target="_blank" href="http://www.anim8or.com">Anim8or</a></h3>
 
 This is a free 3d modeler/animator. You can create 3d models such as the models you see in commercial games... Not that easily of course, but if you are interested, you may want to check this out. The GUI is very easy to use, and you can get started in no time.</li><li>
  
<h3><a target="_blank" href="http://www.java.com">Java</a></h3>
 
 Java is a very big programming language in today's market. It is the programming language used to create many games, including portable games such as games for cell phones, PDAs, etc. The quite famous game Runescape is also created in Java.
 </li><li> 
<h3><a target="_blank" href="http://www.gimp.org">Gimp</a></h3>
 
 Gimp is a free commercial level painting software. It allows you to do many things such as creating banners quickly and easily using its plug-ins, transparency, creating animations (gif files), etc.</li><li>
 
<h3><a target="_blank" href="http://www.python.org">Python</a></h3>
 
 Python is a programming language aimed for beginners. Some great games has been made with it such as Frets on Fire, a guitar hero clone for the PC(I think its better than Guitar Hero.</li></ol><a href="http://www.pheedo.com/click.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FEight-Good-Game-Making-Tools.53651"><img src="http://www.pheedo.com/img.phdo?x=&u=http%3A%2F%2Fwww.computersight.com%2FProgramming%2FEight-Good-Game-Making-Tools.53651" border="0"/></a>]]></description>
<pubDate>Tue, 23 Oct 2007 10:50:55 PST</pubDate></item>
</channel>
</rss>
