Thursday, April 26, 2007

Stunned by STUN

Sigh, is there no end to Stun?

Finally implemented a (buggy and nubby) STUN server. Had to rework the entire message passing side as I was just using nubby strings to pass messages. Now it's passing data via serialised objects. However, once I was done, I came to the rude realisation that it doesn't work on my Mac. Sigh, on hindsight, maybe should have realised it sooner ._.

Iptables, the firewall used by OSX, is symmetric, and therefore is unable to be STUNned. Therefore, my intranet client connection code cannot work if the initiatee is iptabled. Also found out that my server won't be able to send that client any messages. It's fine on a non iptabled machine, but not for OSX. Gah.

Sigh, now it's back to the drawing board. Not sure how to do it now, was thinking of a strategy where the clients connect to the server via TCP, then connect with each other via UDP.

Naturally, that won't fix the iptable problem, but if in the event the clients aren't able to connect to each other, at least I still have a TCP pipe connected to the server which will enable the server to do message relaying. Mai hiam bei pai?

Sigh having a headache now.. think too much liao. If Skype can do it .. but no .. Skype probably had networking engineers banging their heads against the problem.. there's only me here, and only a month max. Did a short peek at msn using my firewall, it's not true p2p. Cop out! It all goes through the server.

Sigh.

Superhero Dating Quiz!

DA and I had the same results -_-.. Cookies! Cookies I tellst you!

Wednesday, April 25, 2007

做人

做人... a nebulous term.

Today a friend confronted me on some issues, saying I didn't tell him things while he told me things. Allow me to illustrate for the benefit of the gentle reader.

Players: A, B, me
Others: C, D, E

The Script:

A, B and me are friends. A+me is closer though.

So one day B tells me things about C&D, which C told him. Which were not supposed to be luan luan say. The things B said are lost in the haze of memory, but it's not extremely exclusive information. ie can be derived or learnt from C himself.

So over a certain weekend, henceforth known as The Weekend™, something happened to C&D involving E.

C told A what happened, and A told me.

A also mentioned not to say it to others, even B. Pretty bad fallout from The Weekend™, so it's not really something which you really want to go around saying.

So anyways when B and me were talking, B was asking for information but I didn't give (well .. did think of giving, but decided not to betray A's trust, so didn't say).

And today B talked to C and found out what happened during The Weekend™ (or at least, C's version), so B comes to me and harangues me for not telling him, since he rightfully infer that since A knows, I must know.

B's point is since he has told me lots of stuff he wasn't supposed to say (but not extremely private), I should reciprocate, and that I tell everything B tells me to A, so why cannot tell him.

Felt like telling B this. I practise ACL (Access Control List), I don't tell everyone everything, nor anyone everything. A has higher ACL levels and therefore I tell A most of everything, and that B, while a good friend, does not approach the ACL level of A. And furthermore, A say cannot say.

But didn't in the end, don't want to hurt B's feelings (.. men -_-) and don't want B to be :@ with A or even more hurt as A said cannot say..

Blah.

At the very most then never talk to B anymore I guess ... More Silent Hunter time!

Tuesday, April 24, 2007

A rose by any name would smell just as sweet

Amazingly, I have to start blogging for my work. -_-; Never thought it'd come to this, so now I have to think of a name. Kinda hard when you try to... Want it to be different from my usual avatars and thought it should be related to the subject material: Games.

So how? Hmm... I've had some ideas, but they are all either taken (in the blogger universe) or sound weird. Ideas ranging from gamechic, gamechiq, t9b, onegreenmushroom (sadly, greenmushroom was taken), player1, 1UP..

So far the leading contenders are t9b and onegreenmushroom. Thought of milk&nuts, but it loses meaning without the &.

Send help!

Of STUNS and Stunners

Packet of Work for the week: Create STUN server.

And STUN clients.

Gah. So far the STUN server is up, after much teeth gnashing. A very simple barely interactive client set up, after even more teech gnashing.

So right now I have 2 clients, one is Resurrection, behind your typical linksys router, and the other, my work comp, which is behind some Symmetric NAT thingy. Which is BAD, as STUN supposedly doesn't work on it :S

So far what I've managed to do is to get both clients to talk to each other through the server, "talk" being a rather grand term here as the server is merely getting a message from a client and echoing it to all the connected clients.

Been trying to go to the next step but it's not really working. Always get ICMP unreachable and Address binding exceptions.

Gah.

Egads. How huh. I already port+1 liao leh, why still liddat!?

-_-;

More teeth gnashing tomorrow. I will not be defeated by such a problem!

Need to ninja another client for connection too .. sigh!

Thursday, April 19, 2007

Finally tiny sock no more

For months, tenshi has been living in a sock too small for him ..

Showed it to bvo + ad during dinner and they made the sock become normal sized again >_>

Bah, how would I know it got all rolled up and such!?

Socks aren't supposed to roll up! It didn't look rolled up to me! I turned it inside out and it still didn't look rolled up! <_<

Tuesday, April 10, 2007

Once there was a screw

Once there was a screw, who was as shrewd as can be.
It left me one morning like a shrew, and left me in a spew.

Wednesday, April 04, 2007