Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

December 09 2014

June 01 2014

0009 f860 500
linux monitor cheat sheet
Reposted fromfightling fightling viaelpollodiablo elpollodiablo

May 13 2014

Hexagonal Grids

Hexagonal grids are used in some games but aren’t quite as straightforward or common as square grids. I’ve been collecting hex grid resources for nearly 20 years, and wrote this guide to the most elegant approaches that lead to the simplest code, largely based on the guides by Charles Fu and Clark Verbrugge. I’ll describe the various ways to make hex grids (I’ve counted 74 so far!), the relationships between them, as well as some common algorithms. Many parts of this page are interactive; choosing a type of grid will update diagrams, code, and text to match.

  1. Angles, size, spacing, drawing
  2. Coordinate systems
  3. Coordinate conversions
  4. Neighbors
  5. Distances
  6. Line drawing
  7. Range
  8. Rotation
  9. Rings
  10. Field of view
  11. Hex to pixel
  12. Rounding to nearest hex
  13. Pixel to hex
  14. Map storage
  15. Wraparound maps
  16. Pathfinding
  17. More reading

The code samples on this page are written in pseudo-code; they’re meant to be easy to read and understand so that you can write your own implementation

Reposted byIrrbertcygenb0ck

April 20 2014

December 09 2013

October 20 2013

Eclipse CDT’s “Unable to load memory” Bug and Its Solution | ZX

solves problem, but when inspecting stl vector, gdb's variables view becomes worse - no pretty print ...

October 01 2013

eclipse/cdt: spaces for tabs

- under "General->Editors->Text Editors" enable "Insert spaces for tabs"
- under "C/C++"->Code Style->Formatter" create a new profile based on your preferred built-in profile (because you cannot edit the built-in), edit the new profile and under "Indentation" change the "Tab policy" to "Spaces only"


August 25 2013

August 19 2013

January 15 2013


December 11 2012


November 21 2012


October 18 2012


Eclipse Community Forums: CDT » Split Views in Eclipse 4.2 (Juno)

in case you are wondering where the context menu of the editor tab went ...

October 11 2012


October 09 2012

The problem here was that gprof doesn't appear to generate accurate profiling when waiting for file I/O (see http://www.regatta.cs.msu.su/doc/usr/share/man/info/ru_RU/a_doc_lib/cmds/aixcmds2/gprof.htm). In fact, seekg and tellg were not even on the profiling list, and they were the bottleneck!
c++ - Confusing gprof output - Stack Overflow
Your program exited abnormally. The function which generates gmon.out is registered with the atexit library function, and won't be called if the program was terminated in an abnormal way. Make sure that your program exits with a call to exit library function or with a return statement in your main function. For example, if your program dies with an exception or a signal, you need to install a handler for that signal and make it call exit.
DJGPP FAQ -- 'gprof' doesn't produce output

September 24 2012


September 05 2012

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!