Skip to main content

Posts

Using GitHub within a Corporate Proxy

So, when you are going use GitHub in your Windows PC/Laptop, use these steps to connect through. Step 1 : Go to your user-profile in your PC/Laptop C:\Users\<%USERPROFILE%> Step 2 : You will find a file ".gitconfig" Step 3 : Open it with any text editor. (Notepad++ recommended) Step 4 : Add the following lines with appropriate info's [http]    proxy = http:// : @ : [https]  proxy = https:// : @ : Step 5 : Just close your GitHub on Windows and open it again. Viola!! You are now up and running.. #TRASHCODERS

Window to Viewport Mapping

1.  Try to execute the " ViewPortMap.cpp " with various values o f  bottomX,  bottomY,  width, and  height. 2.  Modify this code to get the display  a) such as this one b) and such as this And the answers are   Question 2)a)    Question 2)b) Enjoy!! #TrashCoders

Transformation and Translation

The solution will be posted soon... Try it out..

Rotating a Line w.r.t Origin and an Endpoint

Assignment 10 Rotating a given point in a anticlockwise direction about the origin in 2D. (You can specify a point by the left mouse button, and click the right mouse button to rotate it). Write a program to rotate any  line  through an angle (say 30 o ) with respect to  the origin [ Answer ]  one of its end points [ Answer ]

2D Transformation (Scale and Translate)

Write a program to accomplish the following tasks: draw a rectangle with vertices (0,0), (0,100), (200,100), (200,0). translates the rectangle to the mouse clicked location. Zoom-in the shape by pressing the "+" key, and  Zoom-out by pressing the "-" key. (Hint: Use the equations x = x 0 *S x , and y = y 0 *S y , where S x  and S y  are constants)    The file for the above will be available [-here-]