Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Arantor
5206
Off-topic / Re: Who would've thought?
« on December 12th, 2011, 07:39 PM »
Oh god not another shitty sequel that cashes in on an otherwise decent enough franchise.
5207
Features / Re: Thought system
« on December 12th, 2011, 06:06 PM »
Quote
Oh my... It would appear the little f*cker is dead.

I don't know why or how. It just doesn't register when I edit or type in a new thought.
Hmm, I thought this was fixed? It's worked for me though I haven't tested it recently.
Quote
Pete or anyone, when you see that kind of file and it's NOT documented, can you report it please...?
See, I didn't realise it wasn't supposed to be in there, knowing that the selectbox was coming up...
5208
Features / Re: Selectbox
« on December 12th, 2011, 05:57 PM »
Quote
I don't see any reasons to change the HTML outside of the (modified) plugin itself. Do you?
Nope. I can't see a reason why mod authors would either if they used such a thing, but if they *did* they could include their own and deal with it themselves.
Quote
However, I'd rather have full control over this and simply trigger sb's update process myself whenever I do changes to the select box... What do you think?
This works for me :)
5209
Features / Re: Selectbox
« on December 12th, 2011, 04:32 PM »
...weird. Compression is a harsh mistress.
5210
Features / Re: Selectbox
« on December 12th, 2011, 04:15 PM »
Quote
but it also adds more bytes...
Technically it's saving less bytes but yeah. Part of the reason is that the popularity of a repeated string affects the token size, so that can affect the saving generated by any given token. It's... complicated and is why I don't write compression algorithms.
5211
Features / Re: Selectbox
« on December 12th, 2011, 03:19 PM »
Interestingly but not really that surprising.

Let me explain the reason why it works. The Deflate algorithm doesn't work on single characters but repeating character strings; I'd imagine for example that 'if (' is one such string it notes and inserts a reference for. By putting in extra { and }, you elevate them from single characters that typically don't make much in the way of repeating patterns at the byte level, into something that *explicitly will* be a repeating pattern.

I'm not sufficiently au fait with the LZ77 and LZ78 algorithms and Huffman encoding that underpin Deflate but there's the base cause, that you're giving it a pattern to match rather than individual characters that will be largely just added verbatim in the stream.
5212
Off-topic / Re: I couldn't sleep
« on December 12th, 2011, 03:05 PM »
Quote from PantsManUK on December 12th, 2011, 12:06 PM
Ah, the Speccy... Machine I learned to program on (ooh! That gives away my age...). Didn't really like the rubber keyboard on them, and still dislike short-throw keyboards to this day. Can honestly say I looped JetPac though  :eheh:
I'm probably a shade younger than you by the sounds of things but it's what I learned to program on too; it wouldn't be until 1990 that we were able to afford something more powerful than a Spectrum... then I discovered the joys of Amigas.

I have to admit, though, the Sinclair machines all demonstrated a certain elegance and ingenuity that I just haven't seen anywhere else - true, everything built in the early 1980s *had* to be efficient because of the shortness of memory etc. but to cram an entire functional BASIC inside 16K is pretty impressive. Sure, other machines did similar things, like the BBC Micro (another British piece of technology) but there's something impressively imaginative about the way the Sinclair boxes worked. A complete computer in the size of a small paperback book, just plug in a TV and a power supply.
Quote
It's like a mix between (a bit of) poker and (a lot of) gin rummy, only much more complex and, thus, more interesting. Only problem is, every country (or even region...) has their own custom rules, so it's hard to say what you like etc. I know for a fact that I like the official Chinese rules best, but the Hong Kong and Japan variants are interesting, too!
Interesting. It's something I've heard about but just never had the time or enough motivation to really explore. Perhaps you could write a version of it for the web? (Or at least provide enough information on the rules or where I can go to find out more, because it could be an interesting plugin for Wedge, no?)
Quote
Perhaps because I couldn't help but think of WORK when playing these games?
Ah, that's a problem. I found it relatively easy to separate writing 'proper' code, i.e. Wedge, or any of my professional engagements, from writing Meteor Storm, simply because it didn't feel like work.
5213
Off-topic / Re: I couldn't sleep
« on December 12th, 2011, 02:59 AM »
In other news, I felt a pang of nostalgia this evening so I fired up a Spectrum emulator and typed in a listing from a book written before I was born.

And you know what? I discovered two things.

Firstly, the Spectrum is awesome. If you never came across its keyboard, you will either love or hate it. It's a 40 key device, where each key had anything up to 7 different uses, depending on which key it was and what the circumstances are. There is something quite invigorating about using an editor that forcibly checks your syntax as you enter a line, and an editor that essentially wires *every* language construct to a keyboard macro. I do mean that literally. You want a common keyword? In keyword mode it's a single keypress. Want a more complex function, it's probably a symbol-shift + keypress away, or maybe extended mode (caps shift + symbol shift, puts you in extended mode)

I find that sort of imagination and ingenuity quite intriguing, because there's nothing like it today. I'll attach a screenshot of the result of what I typed in with a screenshot of the virtual keyboard in a minute. (Yes, the *real* thing had that printed on the metal faceplate around the rubber keys)

Secondly, there is actually something really rather nice about typing a listing in from a book. I don't know why there is, but in the course of ~80 lines of code maybe, I was able to play a working if simple game with graphics and sound, and see it be constructed as I went. I think we've lost that today, even with all the code samples out there, where you can copy/paste in a jiffy.

(By the way, the game's called Nightfall, the plot is that you're an aircraft flying along and you'll crash into the buildings unless you can bomb them all out the way. Interestingly, there is no 'win' condition written into the game, because such a thing is actually impossible in the game's design. Never mind.)

Also interestingly, the book this listing came out of, was the one that I learned to program from, years and years ago. The 20+ years I have since have taught me how many problems there are with the program structurally but the language doesn't allow for anything nicer. (No multi-line if statements. No separate functions, everything's with global variables etc. Heck, there's even DATA statements.)

But it reminds me of a simpler time, and I think we've kind of lost that a bit lately, you know?
Posted: December 12th, 2011, 02:47 AM

Also: posted on Facebook. I may actually have to start re-entering other stuff and posting it there too. I feel really nostalgic at the moment, and have done so for a little while.
5214
Features / Re: Fixing mismatched BBCode
« on December 12th, 2011, 12:06 AM »
You have indeed :)
5215
Features / Re: Fixing mismatched BBCode
« on December 11th, 2011, 11:48 PM »
Yes, but if the parser can safely avoid accounting for those things, it can be made faster...
5216
Off-topic / Re: I couldn't sleep
« on December 11th, 2011, 10:42 PM »
Hmm, I've never played the proper Mahjongg game, though I've heard about it.

Seems like if you found a game you'd love to write and play you'd be well away!
5217
Off-topic / Re: Doctor Who
« on December 11th, 2011, 10:40 PM »
Shame, because the Christmas Invasion is actually very good considering how much time Tennant spends in bed in it. Though it has one of RTD's worst deus ex machinas, and quite a few of Ten's best lines, IMO. Certainly his most quotable episode.

(click to show/hide)
Sycorax Leader: [shouts] I demand to know who you are!
The Doctor: [shouts, imitating him] I don't know!
The Doctor: See, there's the thing. I'm the Doctor, but beyond that, I - I just don't know. I literally do not know who I am. It's all untested. Am I funny? Am I sarcastic? Sexy? [winks at Rose]
The Doctor: Am I an old misery? Life and soul? Right-handed? Left-handed? A gambler? A fighter? A coward? A traitor, a liar, a nervous wreck? I mean, judging by the evidence, I've certainly got a gob.

Aw, I wanted to be ginger! I've never been ginger! And you, Rose Tyler! Fat lot of good you were! You gave up on me! [Rose looks annoyed] Ooh, that's rude. Is that the sort of man I am now? Am I rude? Rude and not ginger.

The Doctor: ...And how am I gonna react when I see this? A great, big, threatening button. A great, big, threatening button which must not be pressed under any circumstances, am I right? Looks like some sort of control matrix. But what's powering it? Blood?
[tastes red liquid]
The Doctor: Yep, blood. Human blood. A positive... with just a dash of iron. Agh. That means... Blood control. Blood Control! Oh, I haven't seen blood control for years! So you're controlling all the A positives. Which leaves us with a great, big, stinkin' problem. I really don't know who I am. I don't know when to stop. So if I see a great, big, threatening button which should never ever ever be pressed, then I just want to do this.
[presses button]

Sycorax Leader: I can summon the armada and take this world by force!
The Doctor: Well, yeah, you *could*, you could do that, course you could, but *why*? Look at these people, these human beings, consider their potential. From the day they arrive on this planet and blinking, step into the sun, there is more to see than can ever be seen, more to do... no, hold on... sorry, that's the Lion King... but the point still stands! Leave them alone!

The Doctor: [as Sycorax Leader celebrates cutting the Doctor's hand off] And now I know what sort of man I am. I'm lucky, because quite by chance, I'm still within the first 15 hours of my regeneration cycle, which means I have just enough residual cellular energy to do this. [grows hand back]
Sycorax Leader: Witchcraft?!
The Doctor: Time Lord!

The Doctor: And this new hand... it's a FIGHTIN' HAND!

(after throwing a satsuma at the switch and killing the Sycorax leader) No second chances, I'm that sort of a man.

You're not missing so much with the first episode of series 2 (New Earth) though. It's cute, mostly as a reminder of series 1's opener, and is lightly plot related as far as certain arcs are concerned (it comes up again in Gridlock when Ten meets the Face of Boe again) but other than that... it's not that awesome.
5218
Features / Re: Fixing mismatched BBCode
« on December 11th, 2011, 10:17 PM »
Quote
The preparsecode stuff to check for this is so fucked up, once again...
preparsecode only checks that li is contained inside a list and that list contains li tags, or it should be. Anything else (like the parent/children stuff) is done at parse time.

As far as testing goes, I think it's the sort of thing that is simply going to require hammering until we can say that it doesn't break. We can construct unit tests for it, but they're only going to be generic cases, unfortunately.
5219
Off-topic / Re: I couldn't sleep
« on December 11th, 2011, 09:28 PM »
Quote
I've always loved OpenGL more than D3D, but then looking at WebGL, I'm not sure I see much of the OGL syntax any more...
WebGL isn't really OGL but iOS uses OGL pretty natively.

That's kind of ironic, and sad in a way, that you don't play Mahjongg any more after the amount of time spent on KMJ :(
5220
Off-topic / Re: Doctor Who
« on December 11th, 2011, 09:27 PM »
So they actually missed The Christmas Invasion? Weird.