Programming, Music, Games. Creation.

[Z] Last but not Least

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

Madison Square Garden can seat 20,000 people for a concert. This blog was viewed about 66,000 times in 2014. If it were a concert at Madison Square Garden, it would take about 3 sold-out performances for that many people to see it.

Click here to see the complete report.


Notepad++ Tweaks for Bermuda’s Dota 2 CFG

Screenshot_3

Default Notepad++ theme is really… Boring. Editing text files can be a frustrating job and sometimes, you need some interesting colours to turn you on (?)

Anyway! When your are editing my CFG or anything and wish to make your Notepad++ look like above, just follow this guide :)

Firstly, download the lastest version of Notepad++

Then download the xml file :

download button

1. Go to Notepad++ > Language > Define your language
1

2. Import
2

3. Select the xml file
3

Then select Language > Bermudic. You need to select this every time you open a cfg.
5

4. Restart Notepad++

5. Settings > Style Configurator
Language : Global Styles > Style : Default Style > Background > More Colours6 7

6. R/G/B = 28/28/28
8

6. Global Styles > Current line background > Background > R/G/B = 28/28/28
9

7. Global Styles > Caret colour > Foreground > white
10

8. Global Styles > Selected text colour > Background > R/G/B = 50/50/50
11

9. Finally, Plugins > DSpellCheck > Spell Check Document Automatically to disable dictionary.

12Done :D


A glimpse of undefined behavior in C

Christopher Cole

A few weeks ago a coworker of mine stopped by my desk with a coding question.  We’d recently been quizzing each other over our C knowledge, so I smiled and braced myself for the hell which was clearly to come.

He wrote a few lines of code up on the whiteboard and asked what the program output:

It seemed pretty straightforward. I explained the order of operator precedence – postfix binds before multiplication which binds before addition and also that multiplication and addition’s associativity was left to right, so I grabbed the marker and started writing out the arithmetic.

After I smugly scribbled down the answer, my coworker replied a simple “nope”. I thought for a few minutes, and was stumped. I couldn’t quite remember the order of the postfix operators’ associativity. Furthermore, I knew that wouldn’t even change the order of evaluation here as associativity rules only apply between…

View original post 777 more words


What Makes A Great Game : A Gentle Reminder for Programmers.

Computer Technology Reviews & Tips

It’s easy to get lost in all the details of building a great video or computer game – so easy in fact, that we can forget the parts of a game that make them fun to play. The following serves as a gentle reminder of what prompts players to play games in the first place. Refer to this reminder in the event that you get bogged down or distracted with confusing C++ syntax, or lines and lines of Visual Basic statements and DLL structures.
1. Remember the player is the main character. Here’s a secret between you and me: People play games to gain a sense of control. If you can manage to program your game in a way that puts the player in control, then you’ve already won half the battle. This doesn’t mean to suggest that the game should be easy. It simply means that when a gamer…

View original post 503 more words


Binary Numbers – The Easy way to Calculate!

Learning C with Bermuda

The table below explains everything!

 

0 1 0 0 1 0 0 1
27 26 25 24 23 22 21 20

 

Simply add the 2x when that specific place has ‘1’ instead of ‘0’

Therefore, the example above will be 01001001 = 26+23+20= 64+8+1 = 73

 

Simple and easy way to calculate binary numbers :)

 

OR you can simply use my Binary Swift v2 :P