background preloader


Facebook Twitter


Java. UML. The Basics of C Programming". The previous discussion becomes a little clearer if you understand how memory addresses work in a computer's hardware.

The Basics of C Programming"

If you have not read it already, now would be a good time to read How Bits and Bytes Work to fully understand bits, bytes and words. All computers have memory, also known as RAM (random access memory). For example, your computer might have 16 or 32 or 64 megabytes of RAM installed right now. RAM holds the programs that your computer is currently running along with the data they are currently manipulating (their variables and data structures). Memory can be thought of simply as an array of bytes. Float f; This statement says, "Declare a location named f that can hold one floating point value.

" While you think of the variable f, the computer thinks of a specific address in memory (for example, 248,440). F = 3.14; The compiler might translate that into, "Load the value 3.14 into memory location 248,440. " The output that you see from the program will probably look like this:


3 Hacks for Firefox That Will Double Your Internet Browsing Speed - There are many people out there complaining about the Firefox RAM Memory Bug. Lets get it straight. It’s not a bug. It’s part of the cache feature. This ‘feature’ is how the pages are cached in a tabbed environment. To improve performance when navigating (studies show that 39% of all page navigations are renavigations to pages visited less than 10 pages ago, usually using the back button), Firefox implements a Back-Forward cache that retains the rendered document for the last five session history entries for each tab. 10 sites developers should have in their bookmarks. Mysql Format Date MySQL Format Date helps you to format your dates using the MySQL DATE_FORMAT function.

10 sites developers should have in their bookmarks

Just select a common date format and then change it to your suit your needs. The MySQL DATE_FORMAT code will be generated at the bottom of the page which you can then copy into your query. Visit site: Script Src. Programmer Competency Matrix. About Koders. Optimizing C and C++ Code. Embedded software often runs on processors with limited computation power, thus optimizing the code becomes a necessity.

Optimizing C and C++ Code

In this article we will explore the following optimization techniques for C and C++ code developed for Real-time and Embedded Systems. 10 free Linux e-books. Posted in Tech blog on February 24th, 2012 by Pingdom Who doesn’t like free stuff?

10 free Linux e-books

We put together a selection of free Linux e-books that you can read, in many cases download, and use as references, or simply to learn something. The topics range from advanced programming to Java, from GNU to Emacs, from device drivers to the kernel, and much, much more. A Quick, Painless Tutorial on the Python Language. Norman Matloff University of California, Davis June 17, 2008 ©2003-2008, N.

A Quick, Painless Tutorial on the Python Language

Matloff Contents What Are Scripting Languages? Welcome to the Programming Games Wiki - Programming Games Wiki. Developing Android Applications, Workshop One.


The C Library Reference Guide. How to Unlock a Computer Without a Password Reset Disk. Android. Developers. Top 10 Ways to be Screwed by "C". To get on this list, a bug has to be able to cause at least half a day of futile head scratching, and has to be aggravated by the poor design of the "C" language.

Top 10 Ways to be Screwed by "C"

In the interests of equal time, and to see how the world has progressed in the 20-odd years since "C" escaped from its spawning ground, see my Top 10 Ways to be Screwed by the Java programming language, and for more general ways to waste a lot of time due to bad software, try my Adventures in Hell page. A better language would allow fallible programmers to be more productive. Infallible programmers, of the type unix' and "C" designers anticipated, need read no further. In fairness, I have to admit that the writers of compilers have improved on the situation in recent years, by detecting and warning about potentially bad code in many cases.

Non-terminated comment, "accidentally" terminated by some subsequent comment, with the code in between swallowed. Archive of Interesting Code. The Archive of Interesting Code is an (ambitious) effort on my part to research, intuit, and code up every interesting algorithm and data structure ever invented.

Archive of Interesting Code

In doing so, I hope both to learn the mathematical techniques that power these technologies and to improve my skills as a programmer. In case you're curious what I'm someday hoping to having implemented on this page, you can check out my TODO list. If you're interested in using any of this code in your applications, feel free to do so! You don't need to cite me or this website as a source, though I would appreciate it if you did.

However, please don't plagiarize the code here by claiming authorship - that would just be dishonest. Introduction to Java Programming. Java is a simple and yet powerful object oriented programming language and it is in many respects similar to C++.

Introduction to Java Programming

Java originated at Sun Microsystems, Inc. in 1991. It was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. It was developed to provide a platform-independent programming language. This site gives you an Introduction to Java Programming accompanied with many java examples. Its a complete course in java programming for beginners to advanced java. Platform independent Unlike many other programming languages including C and C++ when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. Java Virtual Machine. How to limit calculations to one decimal place? I think this question was asked a while ago (though QATO doesn't seem to give the year with the date), but in case anyone comes across it: To round floats to arbitrarily decimal places without converting to strings (as in Eric5h5's solution), you can use (as a general solution): function round(x, decimalPlaces) { return Mathf.Round(x * Mathf.Pow(10, decimalPlaces));} If you specifically only ever want one decimal place: rounded = Mathf.Round(unrounded*10)/10; Or two: rounded = Mathf.Round(unrounded*100)/100;

How to limit calculations to one decimal place?

Typing speed

Amit’s Game Programming Information. What’s on this page?

Amit’s Game Programming Information

I’m interested in producing complexity out of simple parts. This page contains bookmarks that I collected while working on games; I did not write most of the content linked from here. As a result the set of links here reflects the types of things I needed to know: only a few specific topics (not everything related to game programming), general ideas instead of platform-specific information (graphics, sound, compilers), and ideas and designs instead of source code (I find it easier to go from an idea to code than from code to an idea). Other sites, like Gamedev Tuts+, Gamedev, and Gamasutra, cover lots more topics than mine does. Best Linux Software. Linux is full of awesome apps, both open source and proprietary. People new to Linux might be used to Windows or Mac OS X apps that aren’t available on Linux, and don’t know about available alternatives.

Even seasoned Linux users tend to find new and useful software quite often. Linux apps are also very easy to install. In most cases, they’re in your distribution’s repositories so all it takes is a quick search through your Software Center or a single command in the terminal. Speaking of terminals, there are plenty of apps that can help you avoid the terminal, if that’s your preference. As with any “best” list, there may have been some apps that we left out. Browsers Firefox Mozilla’s browser is the go-to browser for Linux users. Chrome/Chromium The popular browser from Google is also available on Linux. Opera Opera has always had a Linux version of their browser up until they switched to using Chromium as their base. Codecademy Labs. Home Network Security. This section provides a basic introduction to the technologies that underlie the Internet. It was written with the novice end-user in mind and is not intended to be a comprehensive survey of all Internet-based technologies.

Subsections provide a short overview of each topic. This section is a basic primer on the relevant technologies. For those who desire a deeper understanding of the concepts covered here, we include links to additional information. Mobile Computing with iPhone and Android. 10 Papers Every Programmer Should Read (At Least Twice) I spent most of yesterday afternoon working on a paper I’m co-writing. It was one of those days when the writing came easy. I was moving from topic to topic, but then I realized that I was reaching too far backward – I was explaining things which I shouldn’t have had to explain to the audience I was trying to reach. When I first started writing, one of the pieces of advice that I heard was that you should always imagine that you are writing to a particular person.

It gets your juices going – you’re automatically in an explanatory state of mind and you know what you can expect from your audience. I was doing that, but I noticed that I was drifting. The problem I was experiencing is only getting worse. 30 free programming eBooks - Since this post got quite popular I decided to incorporate some of the excellent suggestions posted in the comments, so this list now has more than 50 books in it. BTW: I’m not very strict on the definition of “ebook”, some of them are really just HTML versions of books. [UPDATED: 2012-01-18] Learning a new programming language always is fun and there are many great books legally available for free online. Here’s a selection of 30 of them: Lisp/Scheme:Common Lisp: A Gentle Introduction to Symbolic ComputationHow to Design ProgramsInterpreting Lisp (PDF, suggested by Gary Knott)Let Over LambdaOn LispPractical Common LispProgramming in Emacs LispProgramming Languages.

Ruby:The Bastards Book of Ruby (suggested by Dan Nguyen)Clever Algorithms (suggested by Tales Arvelos)Data Structures and Algorithms with Object-Oriented Design Patterns in RubyLearn Ruby the Hard WayLearn to ProgramMacRuby: The Definitive GuideMr. Free Computers Video Lecture courses. C - Learn C and C++ Programming.

Game Programming

Become a Programmer, Motherfucker.