Author Topic: General Programming Megathread - New OP  (Read 30343 times)

This is starting to look REAL damn awesome.

[im g]http://dl.dropbox.com/u/97311769/elementview3.png[/i mg]
do you load the facts from txt files? >:(
anyway, that seems cool. how did you make an algorithm to compress all those balls into that tiny itty bitty space?

do you load the facts from txt files? >:(
anyway, that seems cool. how did you make an algorithm to compress all those balls into that tiny itty bitty space?
it's hexagonal packing and it involves trigonometry
lots of trigonometry

well, circle packing right now, but i'll turn it into hex packing later


and no the facts are either calculated from other facts or stored in arrays
edit: basically,
[is Center Space taken by a sphere?]
 [no: sphere goes here]
 [yes: move to the RIGHT, theta is ZERO DEGREES (0) and distance is ONE (1)]
  [is 0, 1 taken?]
   [no: sphere goes here]
   [yes: move theta up SIXTY DEGREES (1) and distance remains ONE (1)]
    [is 1, 1 taken?]
     [...]
     [is 5, 1 taken?]
      [no: sphere goes here]
      [yes: move theta back to ZERO (0) and distance up to TWO (2); theta will now increment by FIFTEEN (1/(6 * 2) * 360) instead of THIRTY (1/(6 * 1) * 360)]

going to change it to a system where it changes the 'focus' to another cell so DISTANCE will always be one, and it will be true hex packing instead of just concentric circles
« Last Edit: November 18, 2012, 11:54:45 AM by ThinkInvisible »

In Ruby what is a "bad symbol argument error"?

Fixed turned out "IO.write" saves a lot of stuff that isn't needed such as \n control characters, "IO.puts" is better for Marshal dumps. IO.binread is also required for Marshal dump loading.
« Last Edit: November 18, 2012, 01:45:43 PM by aludane »

Seems like they can.
No, he searched and found a worse package that's been built upon since by the Blockland community. The one posted on this forum is significantly better.

How could you not already be using it in the first place?
Probs using something better like vim.

Probs using something better like vim.
Vim seems useless for Torque, lol. forget, all you need is nano to write good torque.

asdf just use sublime guys
vim and nano are for loving cocaine addicts who like to stay up all night
cough trinick cough

asdf just use sublime guys
vim and nano are for loving cocaine addicts who like to stay up all night
cough trinick cough
Vim is nice if you don't have a graphical environment available. Nano is basically text-only notepad (aka don't use it, other than for reconfiguring the package manager so you can download Vim).

Vim and nano are for people who are coding in a shell environment, lol. If you have a window manager running, you might as well use emacs instead of vim, or some kind of basic text editor instead of nano.

(aka don't use it, other than for reconfiguring the package manager so you can download Vim).
No. Nano is my favorite text editor of all time. I code in nearly every language I know on it.

Vim and nano are for people who are coding in a shell environment, lol. If you have a window manager running, you might as well use emacs instead of vim, or some kind of basic text editor instead of nano.
That's what Vim is for, as I said. Nano is pretty much useless though, once you've got past the basic learning curve of Vim (which isn't actually that steep).

Nano is pretty much useless though, once you've got past the basic learning curve of Vim (which isn't actually that steep).
Nano is absolutely fantastic. It's extremely minimalistic so writing code becomes an absolute breeze. I wouldn't write a big project in either, but for individual scripts I absolutely adore nano.

I use nano when i write python on my Raspberry Pi.

Vim is rapid when you know how to use it. I'm always SSH'd to a server so it makes sense to use vim, can do everything without touching a mouse. Sick of Windows IDEs too, happy to stick to Coda on my Mac though.


Vim is rapid when you know how to use it. I'm always SSH'd to a server so it makes sense to use vim, can do everything without touching a mouse. Sick of Windows IDEs too, happy to stick to Coda on my Mac though.
I suppose you PHP people still haven't heard about the wonderful thing called local development servers. :cookieMonster: