Subscribe to Martyr2's Programming Underground        RSS Feed
- - - - -

Applying Enchantments for PHP RPG Games - One Approach

Icon Leave Comment
So you want to build a PHP game and are just now learning how to do it. You fired up your browser and began searching for various game articles and perhaps you have found very little. What you did find might not explain a flexible way to apply magical spells to units you create. After all, what is an RPG game without enchantments you can cast on...
* * * * *

Don't Be Afraid To Occasionally Hack

Icon 7 Comments
To hack or not to hack, that is certainly the question! Many programmers who are learning a language tend to follow the structure laid out in a book or provided by a class they took. This is a good thing given that the book/class teaches at least some kind of reasonable coding conventions… which most do. These conventions then tend to be...
- - - - -

Linear Search for Sorted Lists: My Take

Icon 8 Comments
Ready for another high octane, explosion-filled and death defying episode of the Programming Underground?!?! Sure you are! Today I give my take on a blog article I stumbled across today called "Computer Algorithms: Linear Search in Sorted Lists...
* * * * *

Inserting Images Into MySQL and Retrieving Them Using PHP

Icon 15 Comments
Welcome to another exciting episode! Today we will be discussing a topic that seems to be a bit of a confusing one for everyone... storing BLOB images in MySQL and then showing them again using PHP. While it is always advised against, we will show you a little demo code for how this can be done and discuss why/why not do this. We will then...
* * * * *

Barriers of Validation

Icon 4 Comments
Hello once again Dream.In.Coders! Today I want to talk to you about a design decision which involves validating data. Often times newbies build error prone code. This is because they are just learning and lack the experience of proper validation... and lack the experience of being smacked in the face when the code fails on the input of...
- - - - -

Small High-Low Game Example in Ruby

Icon 8 Comments
Well it has been awhile since I made an entry so I thought I would make one while also answering someone's question. The user named "Cunningham" asked about an example high-low number guessing game to get started with learning Ruby. The game is essentially guessing the random number generated by the computer to see how quick you can...
- - - - -

Using Hashes To Check If A File Changed in VB.NET

Icon Leave Comment
Once in awhile you may want to check if a file has changed its contents in some way. Perhaps you are monitoring a log file or checking to see if an exe has had a virus mess with it. One way you could do this is by hooking up a FileSystemWatcher object and monitor the file. This might be a good approach for more elaborate programs where you also...
* * * * *

Introduction to a SkipList Data Structure in Java

Icon 12 Comments
Hello everyone! The other day I was approached by macosxnerd101, a newly minted moderator here at DIC, and asked to contribute to a new thread coming up on Java data structures. Now most of the new programmers here know of the basic data structures like binary trees, arrays, heaps or stacks. Many of these topics I knew would be covered by...
* * * * *

Login to a Website from Java

Icon 7 Comments
Historically the question "How do I login to a website from X Language?" gets asked from time to time on DIC. The answers to this question has not been the greatest and these questions tend to be largely ignored. I intend to put an end to this for the Java language with a simple example. The answer, while simple, does expect the reader...
- - - - -

Convert Infix to Postfix in C++

Icon Leave Comment
Remember those pesky equations that baffled you in like 1st grade? Addition and subtraction along with their friends multiplication and division. Hey, you wanted to go play kick ball or chase that girl around the playground... not to hook up with her but to put dirt in her hair. Well, you probably learned to write your equations in infix form like...

  • (16 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »

August 2014

17181920 21 2223