background preloader

CODE Project

Facebook Twitter

Basic Curves And Surfaces Modeler. Introduction This is a basic surface modeler made using MFC and OpenGL on VC6.

Basic Curves And Surfaces Modeler

The geometry interface and graphics interface are separated so that you can simply define your curve or surface without worrying about the display. The display is in a generalized form i.e. if you derive your own curve from CCurve and override the PointAtPara and NormalAt methods along with other mandatory methods, you can create an OpenGL curve as follows: Some where in your project file you create your own derived classes' headers and source files... Some where in your CDocument code... #include "myCurve.h"void CMyProjDoc::OnCurve() { myCurve crv(...); CGLCurve* myglCurve = new CGLCurve(&crv) dContext->Display(myglCurve); delete myglCurve; } Now dContext is the display context object (CGLDisplayContext) that manages all the display functions, so this is created in the constructor of the document.

The demise of the low level Programmer. When I started programming many of the elements we take for granted now, did not exist. There was no DirectX and not many compatible libs were available for the free compilers of the day. Why Dynamic Programming Languages Are Slow. Elegant Coding: Eleven Equations True Computer Science Geeks Should (at Least Pretend to) Know.

Calling Go from Python via JSON-RPC. Computing ThoughtsCalling Go from Python via JSON-RPCby Bruce EckelAugust 27, 2011 Summary Although it's often uncomfortable, I think the best approach to learning a new language or technology is just to grab your nose and jump feet-first into the hole in the ice.

Calling Go from Python via JSON-RPC

We Got Hacked, Here's What We Found. Last week we discovered that the owner of SEOnix.org hacked in to our backend and threw himself a sweet SEO party.

We Got Hacked, Here's What We Found

The only invitee was obviously his own website, but he still managed to have a good time all alone. In the last 3 months he got a couple of nice gifts from us in the form of juicy links and an occasional canonical tag. But it wasn’t only us. He managed to do the same on other authorative sites as well. We’re leaving the names out to protect the innocent. Collective Intelligence: Ants colony solving TSP. According to Wikipedia: "Collective intelligence is a shared or group intelligence that emerges from the collaboration and competition of many individuals and appears in consensus decision making in bacteria, animals, humans and computer networks".

Collective Intelligence: Ants colony solving TSP

This article describes how to make ants find the solution for the TSP problem. Implemented in Python. Get the source from GitHub. HTML5 Game of Multi Life. Download source - 2.53 KB Introduction This article describes an HTML5 version of Conway's game of life using the new Canvas element.

HTML5 Game of Multi Life

I have actually previously done an article describing a WPF/XBAP version of Life which can be seen here. My intention was not to display a singular lack of imagination but rather contrast the two different coding styles. The take home message I have is that for small applications, HTML5/JavaScript is probably twice as easy to code up and has the advantage of being truly multi-platform. Background. Why I prefer Scheme to Haskell. Before you sharpen you keyboards and spit acid at me as punishment for the title, let me point out that I haven't written this post to bash Haskell (no pun intended), in fact I love it.

Haskell introduced me to algebraic data types, domain specific languages, pattern matching, and many other programming constructs that feel like lost limbs in other languages, but Haskell willfully resists any attempt I make to write useful code with it. Adding Background Music to Android App. Download source - 4.38 MB Introduction A large chunk of Android's application development consists of Game development.

Adding Background Music to Android App

Background Music is an integral part of a Game app. This article explains how to add music to any Android App using Media Player provided by Android SDK Library. Familiarity with Android activity and services is assumed here. Background. WPF Game of Life. Introduction.

WPF Game of Life

Want apps? here is the list of best apps on market - Samsung Galaxy S Forums : Galaxy S2 S II Forum. BASIC Computer Games: Page from BASIC Computer Games. Writing a Multiplayer Game (in WPF) Introduction This article will explain some concepts of game development and how to apply and adapt them for multiplayer development.

Writing a Multiplayer Game (in WPF)

Background When I started to program, I used AMOS BASIC. It was oriented for games and it was the reason I liked programming. How processor, assembler, and programming languages work (for dummies) Introduction You might be wondering about how your computer works: what happens when you write a program and then compile it?

How processor, assembler, and programming languages work (for dummies)

What is assembler and what is the basic principle of programming in it? This tutorial should clarify this for you, it’s not indented to teach you assembly programming itself, but rather give you the needed basics to understand what’s actually going on under the hood. It also deliberately simplifies some things, so you’re not overwhelmed by additional information. However, I assume that you have some knowledge in high level programming (C/C++, Visual Basic, Python, Pascal, Java, and tons more…). Also I hope that the more skilled guys will forgive me for simplifying a lot of things here, my intention was to make the explanation clear and simple for someone who doesn't have a clue about this topic. Realtime Webcam Sudoku Solver. Introduction This application might not have any practical value, but it is great from a learning perspective.

Realtime Webcam Sudoku Solver

I wanted to learn about computer vision. Computer vision is one of the most exciting areas of modern computing. Why Study Functional Programming? ...or, "why make programming even harder? " Learning functional programming is an opportunity to discover a new way to represent programs, to approach problems, and to think about languages. While programming with a functional language is still fundamentally similar to programming with any other type of language (examples of others being imperative or logic), it represents programs and algorithms through distinct forms of abstraction and gives you a new toolset with which to solve programming problems.

Additionally, many of the techniques of functional programming are beginning to permeate new mainstream languages, so taking the time now to develop a thorough understanding of them is an investment which will pay great dividends. For more information, it is best to search the internet for pages arguing why it is worth your time to learn specific functional languages. Many such pages are linked below in the relevant sections.

Linus Torvalds: The King of Geeks (And Dad of 3) The license plate on Linus Torvalds’ Mercedes SLK convertible says it all. The frame running around the outside of the plate reads “Mr. Linux. King of Geeks.” But the plate itself says “Dad of 3.” If you meet Linus Torvalds, he comes off as a mild-mannered, down-to-earth Finnish-American. Advanced programming languages. Some advanced languages. The simple KDE calculator. The Most Complex Program of All Time « Making the Complex Simple. Google to announce "new programming language for structured web programming" Well, that's a good challenge. Lisp Hackers: Marijn Haverbeke. The next person in our series is Marijn Haverbeke, who's not only the author of several pretty useful Common Lisp libraries (some of which he touches in the interview), but also a succesful JavaScript hacker, winning JS1K contest, and writing a profound book about the language — "Eloquent JavaScript".

_why's Estate - The Little Coder's Predicament.