« first day (557 days earlier)      last day (4394 days later) » 

3:00 PM
@DeadMG I've always wanted to make a fighting game!
 
I should stop sticking my toes onto my motherboard whilst it's on
6
 
ooh, sounds comfy :D
 
What.
 
@DeadMG There must be so many witty responses to that.. but I'm just in shock
 
You could say you have... motherboard issues.
 
3:03 PM
oh man, it's only Wednesday
I've got another day of this course :(
 
you think that's a problem?
I've run out of goddamn cheese
now what am I gonna eat with my grapes?
 
or to look at it in a good way, I've got another free lunch :D
your in the uk right?
 
Cheese with... grapes?
 
@DeadMG Oh. I thought for a second there the motherboard was replacing cheese as something to put your toes in
 
@CatPlusPlus Sure. Why not?
it's like cheese and wine, except I didn't bother to ferment the grapes
 
3:05 PM
"I wear cheese, it does not wear me."
 
@dead problem solved?
 
yay! home time :D
 
yeah, I'mma have to walk to tesco and CONSTRUCT ADDITIONAL PYLONS purchase additional cheese
 
see yall!
 
3:06 PM
I can't imagine eating grapes with cheese.
Does not compute.
 
I do it all the time
perhaps that dude was just eating bad cheese
 
I ate some cheese a few days ago and it left a putrid taste in mouth for the rest of the day
 
@CatPlusPlus Silly cat, cats don't compute things
 
I don't understand why people like the stuff so much
 
in my experience, it's all about eating the right cheese
some of them are truly disgusting
 
3:09 PM
@DeadMG That is so WIN
 
@DeadMG: It's only disgusting until you acquire the taste for them :-)
 
Somehow those toes still wander through my mind and it creating unpleasing associations with cheese and grapes
 
> Made for Cheese Related Accident Prevention: 1984
@Pubby lol
 
@sehe Only you can prevent cheese accidents :)
I think DeadMG needs an intervention
 
3:18 PM
RRAAEEEGGEEE
wait, wut?
 
Its for your own good.
 
You're out of control
 
I wonder if void rays come from a function in the SC2 source code
Kinda like armok
 
posted on April 25, 2012

We've talked about why swapping is important, and about how to use it to implement other operations such as assignment. We shall now look more closely at how to use it.

 
3:32 PM
The heck is a six pool?
 
it's a build in Starcraft 2 for Zerg, where you build a spawning pool (pool) when you have six workers
it's not very good
 
@DeadMG Ah.. I was once an avid Starcraft player, but I haven't really tried SC2
@ScottW ok so I wasn't that avid
@ScottW I was also much better with Terran, never really got into the online scene though, except for those special maps which were pretty fun
@ScottW Don't think I ever tried that one
Turret D was always fun
There was one where you got like a super-marine or other unit or something and had to clear out a big map of souped up guys
I made a revolutionary war map once that just constantly spawned blue and red marines on a big field :-P
 
3:54 PM
Marine Arena
 
any one ever use site grinder? by media lab
 
4:18 PM
1
Q: Understanding a self-deleting program in C++

pl8787There is a self deleting program #include <windows.h> #include <stdio.h> void main(int argc, char* argv[]) { STARTUPINFO si = {0}; PROCESS_INFORMATION pi = {0}; si.cb = sizeof(si); if (argc == 1) { SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa);...

lol
a self deleting program, not sure I see a use for it :P
 
@TonyTheLion viruses
 
oh, hadn't thought about those
 
Uninstaller. Update agent.
Windows blocks executing images for writing, so you can't just delete them.
 
right
 
@TonyTheLion RAII :p
Ultimate RAII.
 
4:28 PM
you can unlink on linux and the file is retained until the process exits - that's more RAII
 
4:41 PM
@TonyTheLion Oh, look, a void main!
 
man
I hate crappy auto-completion and auto-formatting
I feel so vulnerable without the compiler accurately checking my work as I type
 
Auto-completion is for wusses.
2
 
eh
I prefer it
 
4:58 PM
Can't you hold all the code in your head?
 
no
also, having water drip through the ceiling is really bad, right?
 
well, unless you enjoy getting wet
 
Usually, yes. It means there's probably water up there. Which means, if you don't do something about it, it's going to rot.
Hello, mold and other asthma-inducing stuff.
 
so I should really mail my landlord about it, right?
 
5:01 PM
I have bake rolls with RAII-Garlic flavor on my table. Okay, it's actually Rye-Garlic.
 
Are you a terminator?
 
@EtiennedeMartel But will it rot13?
 
Ell
undefined reference to `boost::system::generic_category()
 
Link with Boost.System. Duh.
 
5:05 PM
Software is really a pain to make
I mean, it can literally drive you halfway around the bend
 
@CatPlusPlus If there's a hell for lame puns, you're going straight to it.
 
I bet it doesn't blend.
 
@CatPlusPlus What is rot13? Rolling on the one, threeing?
 
@FredOverflow it's an encryption algorithm. Like bozosort is a sorting algorithm
 
@MooingDuck Whenever I appear to ask stupid questions, I'm probably just trying to be funny.
 
5:17 PM
@FredOverflow usually. I guessed wrong that time.
 
You failed Trolling save throw.
 
@CatPlusPlus common
 
WTF is this shit
my sphere octree code compiled first time
there must be some law against template code working the first time you compile it
 
5:35 PM
I wonder if all those 'Google pays me <insert large amount> $$$' ads were actually genuine.
 
"sure"
"100% legit"
 
100% legit*
* may not actually be 100% legit
 
n% legit (where n < 100)
 
but what really bugs me are those gazillions of "DOWNLOAD" ads on file-sharing and download sites.
but fortunately, they are now filtered for me by AdBlockPlus
 
Yeah, often those DOWNLOAD buttons are bigger than the real link.
 
5:41 PM
yeah
anyway, I just found that people who pay private file-hosting services for extra space are idiots.
You have to pay google for 25 GB, however 5 GB is free right?
my (free) solution:
My Google Account / 5 GB + My Sister's Account / 5 GB + My MS SkyDrive Account / 7 GB + My DropBox Account / 2 GB + My other Google Account / 5 GB = 24 GB?
 
yeah except for all those services won't sinc your shit
 
teamdrive and spideroak are the best ones
 
you pay for the service more-or-less, storage is "Cheap"
 
yeah. but it's Freeâ„¢
 
why not put a raspberry pi with an external hard disk at your friend's house? that's practically free.
 
5:47 PM
Because all my friends have negative attitude to irrational constants.
Can you blame them ?
 
I mean I have at least 6 spare 80gb hard disks lying around personally, that's a lot more than 25gb from google
+$35 for rapsberry pie, there you go!
 
Dropbox is way better for file sharing than email.
 
having your own rackspace server with a few terabytes of space is pretty good too
I don't mean rackspace the hosting company, but you know, at a hosting company
 
Ell
raspberry pi? with usb2 speeds? pfft. sata 3 :)
 
you're realling going to exceed 480mbps over the internet?
that's what you're worried about for a bottleneck?
 
Ell
5:55 PM
fair enough :L
what path does a programme look for when linking dynamic libraries in linux?
 
LD_LIBRARY_PATH
I think
Oh, that's just for temporary stuff
 
@Ell Linking happens at compilation. Do you mean loading?
 
Ell
@LucDanton yes probably
Ogre is giving me that stuff isn't found - so I need to add a library path thing - not entirely sure how o.O
 
I can find that information with man ld.so I think.
@Ell If it's an Ogre lib, you probably want to install it for the system. Otherwise, or if installing is out of the question, using LD_LIBRARY_PATH like Collin said is the preferred way.
 
Ell
yeah the plugins are installed at /usr/local/lib/OGRE
I swear it used to work though - I remember a compiler option that did it?
That made it append LD_LIBRARY_PATH at the start of each run - or something
 
6:01 PM
try export LD_LIBRARY_PATH="/usr/local/lib"
 
Ell
@bamboon I will try /usr/local/lib/OGRE because I know it can find the libs in /usr/local/lib, its just dynamically loading the plugins thats the trouble
 
Ell
hi :)
 
0
Q: Understanding an uncommon argument to main

RaunakSThe following question was given in a college programming contest. We were asked to guess the output and/or explain its working. Needless to say, none of us succeeded. main(_){write(read(0,&_,1)&&main());} Some short Googling led me to this exact question, asked in codegolf.stackex...

dafuq?
 
How can I define a list of structures ?
 
6:04 PM
std::vector<mystruct>
there you go, an array of structs
 
@highlevelcoder MyStruct myStructs[20]
20 structs
 
Ell
@TonyTheLion he said list :P std::list<mystruct> ? Sorry thats a guess :L
@Collin std::array<> ?
 
@Ell Well he says in C
 
Ell
oooh
oops
 
6:06 PM
lol
 
Ell
Sorry I assumed c++. Apologies :L
 
It is not a bad assumption in Lounge<C++>
MyStruct* structs = malloc(numStruct * sizeof(MyStruct)); //space for numstruct structs
 
@IntermediateHacker Well, 24 GB is still less then 25 GB ;)
 
@FredOverflow good point
 
@highlevelcoder so can you refine your question?
 
6:11 PM
@stdOrgnlDave I think he already gave up on us squares
 
Uuuh, why doesn't he just google : Linked list C ...
 
I think questions on SO have reached a new high of "shittiness"
I mean, do people even bother to research, try out stuff, before posting
 
I could use an option to hide 1 rep posts.
 
Neural networks suck.
 
6:20 PM
Only if you teach them to.
 
@TonyTheLion oh man... do you mean that questions - stackoverflow.com/users/174614/tony-the-lion?tab=questions ?
 
in PHP, 16 mins ago, by BoltClock's a Unicorn
> [Wondering who is who? Moderators are displayed in color, room owners in italics. ](http://chat.stackoverflow.com/faq#room-users)
Aside from the markdown fail...
 
I've bolded mods, so they stand out more.
 
in PHP, 16 mins ago, by Hajo
@BoltClocksaUnicorn they told me blue = smurf, that's not in the faq
 
THEY CANNOT HIDE.
 
6:24 PM
@CatPlusPlus They won't. It's not mod nature
 
yo nubcakes
 
Ell
yo... (opposite of nub)muffin
 
1337muffin?
 
@Ell studmuffin?
 
promuffin.
 
6:35 PM
muffin<stud>
 
argh
my unit collided with itself whilst pathfinding
 
this is a fairly epic fal
 
@DeadMG how much time have you put into your A* now?
 
6:36 PM
there's still more work to be done
 
@DeadMG Snake?
 
I need to implement local potential field based pathfinding
 
@DeadMG guess that wiki article wasn't as great as you said it was
 
and then convert to JPS
@stdOrgnlDave The A* works fine.
 
@DeadMG then what do you mean "collided with itself"
 
6:38 PM
I mean I issued it an order and it kept stopping because it was in the way :P
 
It tried to move to a position, but that position was already taken by itself?
 
yes]
 
...
seriously?
come on @DeadMG
please tell my you solved it
 
once I found out the problem
it's not easy because the game essentially just fails
if you try to move to your own position, then things like cross(x, x) happen and you get back NANs and stuff from that
 
Moving to your own position is rather noop.
 
6:48 PM
oh yes
but my point is that you have to explicitly detect and account for many edge cases when using floating point
 
Yes, floating points suck.
Only floating eyes are worse.
 
@CatPlusPlus Been watching Indiana Jones and the Temple of Doom again?
 
I was thinking more about roguelikes.
 
damn
and in addition, my pathfinding finds a perfectly good path and then returns it in the wrong order
 
Floating eyes = paralyse = game over.
 
6:54 PM
I should totally win this: codegolf.stackexchange.com/a/5642/4154
too bad its won
 
not really
 
Xeo
@stdOrgnlDave No. This is easy to do with recursion
 
it's explicitly disallowed to recurse into main in both C and C++
 
Xeo
Didn't you notice how no other answer was going for that?
Oh, yeah, and what the puppy says.
 
plus you provide no reason to believe that the runtime will call main(0) to begin with
 
6:57 PM
is that why it compiles and works fine?
 
plus, I'm pretty sure that all that implicit-int stuff is either deprecated or actually removed in the latest version of the C Standard
 
Recursive main is prohibited in C++, but AFAIK, still allowed in C.
 
@stdOrgnlDave No, it compiles and works fine because "appearing to work fine" is a subset of Undefined Behaviour.
 
it calls main(1) because main comes with at least one argument, the calling invocation (i.e. c:\programs\foo.exe)
 
right
now I have a most strange problem
A* gave me back a path which my poor unit now insists is blocked, for some reason, even though nothing moved.
 
7:01 PM
For code golf, it's still open to a bit of improvement as well, such as main(a){printf("%d ",a-1);a<1000&&main(a+1);}
 
the only warnings under strict-c99 are 'warning defaults to int'
anyway I did it really short including printing it, I'm happy
no other C code comes close to that length printing it :-P
except of course Jerry's suggestion
 
eh
code golf is a pathetic, worthless exercise anyway
we should not have competitions where writing bad code is encouraged
 
DeadMG, your implementation of A* is a pathetic worthless exercise
 
how so?
 
7:05 PM
it keeps failing and you should've been done a long time ago
furthermore bad code on purpose shows understanding...a thing I know you're not big on (not a dis, just remembering our conversation the other day)
 
xD
Round 1, OrgnlDave VS DeadMG
 
@DeadMG Oh, don't be so harsh. Code golf can be kind of fun, if utterly silly. On the other hand, real code golf should be done in assembly language, and measured by size of executable, not size of source code.
 
The hatchet has been unburied!
 
> Java with Lambda
 
eh, I've got no problem with my A* implementation failing
 
7:06 PM
What is this.
 
I actually kind of like it
 
@JerryCoffin can it be java bytecode, which gives me sweet i/o at very low size?
 
it serves it's purpose- for me to gain experience
 
@DeadMG I hope you know I love you, without anyone to argue with why would I come to ther internet?
 
I have my own bytecode that does everything the golf requires in 1 byte.
 
7:08 PM
yes indeed
I have it in 1 bit
the VM is a bit bigger, to execute the single instruction it needs
...
 
@stdOrgnlDave You could probably try, but in most cases, you'd lose badly. Nearly the only format that's competitive in most cases is a DOS .COM file (or equivalent).
 
hand-crafted PE files can become extremely small
you can overlap their structures in the header
 
PE has headers, COM is pretty much flat binary.
 
you can also put your executable code in the headers
although, of course, whatever you do, they will add some overhead
 
@DeadMG They aren't nearly as large as a normal linker produces, but when your target is under 64 bytes, they're at a severe disadvantage.
For example, one old one I did was: Write a program that prints out consecutive numbers each time it's executed. The first time you run it, it prints "1". The second time, it prints "2", and so on. Must be a standalone executable that uses no external storage.
 
7:12 PM
Self-modifying?
 
@CatPlusPlus Yup, usually anyway.
 
couldn't a .bat file get it done in under 64 bytes?
 
@stdOrgnlDave Must be a standalone executable.
A bat file isn't a standalone executable. It either needs to be compiled into one or run by an interpreter.
 
I suppose by executable they mean binary format for DOS to load into memory and run on the processor directly
yeah well executables need to be read off disk and loaded into memory and their entry point needs to be branched to
 
7:26 PM
Well, this was in an assembly language group, so I doubt anybody would have even considered a batch file, but I'm not sure how you'd do one anyway. If memory serves, the winning entry was somewhere around 40 bytes. Instead of self-modifying, it used/modded its own time stamp in the directory entry. There was disagreement over whether that was external storage or not though.
Doing a bit of looking, I still have the code to my entry (56 bytes).
 
Does anyone know what libraries -ldl and -lrt refer to? I haven't found a good way to search for this type of thing...
 
libdl and librt respectively.
 
Hm, OK, those turn up better search results. Thanks.
 
libdl is for dlopen and friends.
 
..although there's some ambiguity, some sources say librt is for timing stuff, but this says otherwise: freecode.com/projects/librt
 
7:42 PM
@JerryCoffin why can't you single-ampersand that code back there a<1000&&main(a+1)
main technically returns an int so it should be fine evaling it no?
@JerryCoffin oh, my mistake, duh
 
@stdOrgnlDave You're depending on the fact that && only evaluates its right operand when the left operand is true. & would give infinite recursion.
 
@JerryCoffin running on ideone && is giving infinite recursion
 
@stdOrgnlDave It certainly shouldn't. && is clearly defined to do short circuit evaluation, so the right operand is only evaluated if the left is true.
 
@JerryCoffin ? I must've done something wrong, I expected that behavior too, then it looked like I didn't get it, now I am.
 
@stdOrgnlDave Sounds like some sort of flakiness on their part, though it's hard to say for sure.
 
7:55 PM
is anyone else sick of writing out a thoughtful response only to have a repwhore smash in with a quick and dirty thing that doesn't explain much and it gets upvoted and answer status?
 
@stdOrgnlDave Sort of, but you get over it. Life's like that sometimes.
 

« first day (557 days earlier)      last day (4394 days later) »