« first day (1920 days earlier)      last day (1637 days later) » 

1:00 AM
Bye folks!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bai
 
Don't star like a star. Because you're not a star.
 
@Downgoat Not leaving ... again
 
Aye, me too. Later :)
 
1:03 AM
Done with images for today
 
@HelkaHomba that look like monitor problems
 
yes :P
 
In the answer markdown, how do I make an inline code block start with a space?
 
@Cyoce You can't
 
@Cyoce yes you can, use a <code>stuff</code> block
 
1:05 AM
@Maltysen or printer problems
 
@HelkaHomba Thanks!
 
Mkay, I got the alien movement complete. Also added some new sounds and fixed the sound bugs. Haven't gotten a chance to work on this all weekend =/. Next up, alien missiles.
 
@ArtOfCode I think we should try add some form of Miaou integration perhaps
 
Lol the detour snippets are all completely useless.
 
@AshwinGupta movement is really jerky
 
1:09 AM
@KennyLau what do you mean by your approach
 
@miles refer to my pyth test suite xd
 
0
Q: Is it a prefix code?

Dr Green Eggs and Ham DJIn information theory, a "prefix code" is a dictionary where none of the keys are a prefix of another. In other words, this means that none of the strings starts with any of the other. For example, {"9", "55"} is a prefix code, but {"5", "9", "55"} is not. The biggest advantage of this, is tha...

 
\o/
Thanks @NewMainPosts
 
Why is thanking the feeds bots a thing again? :/
 
Because I made it.
@DrGreenEggsandHamDJ Thank you, and Thank you @NewMainPosts.
P.S. Don't thank them in the sight of the mods.
 
Thank me?
What did I do?
 
1:35 AM
@NewMainPosts please don't let them hurt your feelings, you can be a real boy too
 
@DrGreenEggsandHamDJ you thanked him
 
@Maltysen Ik, I thought I fixed the flickering but I didn't. Now I did. (I hope!). As for the in general jerkiness, what should I do about that?
 
I am mildly confuzzled.
 
@AshwinGupta also, lvl 3 doesn't exist
 
1:36 AM
gtg bai!
 
@AshwinGupta is logic separate from rendering?
 
@Maltysen yeah only levels 1 and 2 are configured.
 
@Maltysen yup, I have a paint function that is called on timer increment and renders completly seperately. I could comment out one line and the game would run totally fine expect you wouldn't seen anything on screen, only debugger.
 
1:37 AM
are you using requestAnimationFrame?
 
@Maltysen no, using the interval one. Like java swing timer.
 
use requestAnimationFrame for the rendering one
and for logic, don't use setInterval, use setTimeout
 
ok
wait whats the difference? (Between interval and timeout)
 
@AshwinGupta setInterval gets out of phase
 
@Maltysen ok ty for telling me, will do.
I'll fix that now or maybe after dinner, I'll let you know once its done.
@Maltysen according to w3: "Tip: The function is only executed once. If you need to repeat execution, use the setInterval() method.". Don't I want it to execute over and over? I suppose I could call it within my update function for the recursive updating but thats basically just using the setInterval()?
 
1:44 AM
6 mins ago, by Maltysen
@AshwinGupta setInterval gets out of phase
you'll have to do something like function logic(){akjshdaksjdhasd; setTimeout(logic, 1000/fps)}
 
Oh man that feeling when you write code and it Just Works(r)
 
2:06 AM
Oh man that feeling when you write code and it Doesn't Work(r)
 
Oh man, that feeling when you write code and realize that it will Never Work No Matter What ®
 
@AshwinGupta It's time to stop using JavaScript
 
here you go: ®
 
@QPaysTaxes =/ IK
 
1
Q: Is this uniquely concatenable?

Kenny LauIn this challenge about prefix code, we learnt that prefix codes are uniquely concatenable. That means, they can be joined together without separator, and without ambiguity. For example, since [1,2,45] is a prefix code, I can join them together without separator as such: 1245245112145, and ther...

 
2:13 AM
@Doorknob ty
 
Oh man, that feeling when you write code and realize you should have typed it
 
@AshwinGupta just happened to me
 
Oh man, that feeling when you write code, scan it, and then C can't compile the JPG
 
@Maltysen welcome to the club buddy.... =/
 
@HelkaHomba that's gonna happen to me in a couple days when I take the comp sci AP, which is actually handwritten
:/
 
2:14 AM
@QPaysTaxes What language should i use then? I want the game to run in browser, and people don't need to download anything for it to work. If you have a decent answer to this question, then I'd love to switch.
 
@AshwinGupta you could use C++ with NaCl
 
@AshwinGupta Why does it have to run in a browser?
 
@AshwinGupta but js is definitely better than C++
 
@Maltysen I'd asume thats a joke?
 
@AshwinGupta no its not
 
2:15 AM
@QPaysTaxes cuz, its more fun and easier for people to play that way.
 
@AshwinGupta but, ^^^^
 
All you're doing is dooming yourself to endless debugging when Firefox has an issue but Chrome doesn't, then fixing that issue breaks it in Chrome
 
@QPaysTaxes chrome only*. If other browsers work, great. Otherwise, its intended for, and being built/suppported for chrome only.
 
@AshwinGupta Yep
...Wait
So... you're requiring people to download a piece of software if they don't have it to run your game.
 
@QPaysTaxes who doesn't have chrome?
 
2:16 AM
@QPaysTaxes at this point, I'd hope most people have switched to chrome.
 
Also, please write one message, rather than editing it a million fucking times and pinging me constantly when I already saw the message :)
 
@Maltysen Exactly.
ok
 
@AshwinGupta Firefox is still a thing that exists.
 
Apr 23 at 20:48, by Maltysen
cuz if people don't have chrome or firefox, they don't deserve to have things work
2
 
@Maltysen Why not?
 
2:17 AM
Because, you need to accept the microsoft is bull-shit sometimes, and nothing they ever write to support IE will work
 
........
Are you stupid or joking
 
all of the images in the sidebar
 
@QPaysTaxes the way I see, most people have one of 5 major browsers: Chrome, Firefox, IE, Edge, Or safari. Chrome gets support. So far, firefox is working, and I will try to keep it that way when possible. I can't do much for safari, I'm on windows. IDGAF about IE and Edge.
 
How does IE being shit have to do with your dumb decision to require Chrome?
Like I said, Firefox is still a thing that exists
@AshwinGupta Write. One. Message. Do not edit this message to add more content. Write a new message.
 
2:20 AM
I am sick and tired of being pinged three times per message, and every time it's a new one.
Write a new message if you have something new to say.
This is not a difficult concept to grasp.
 
Okay sorry =/
 
Firefox and Chrome have excellent OSS communities, you can pretty much log a bug and they'll get around to it eventually
 
It's so incredibly simple that literally everyone has understood it after I asked, politely, the first time.
You are the only person, besides Downgoat, who has persisted after I asked multiple times.
 
Well I'm an idiot, what do you want me to say?
Sorry jeez. U don't have to be a jerk about it. I get it.
 
> besides Downgoat
LOL
 
2:21 AM
Downgoat is just bad at typing.
 
aside from* (that seems more proper)
 
I wrote a Greasemonkey addon to silence pings from him
Both mean the same thing in this case.
 
@AshwinGupta y the way NaCl apps can be run in other browsers using pepper js
 
and BTW, QPays, I only started editing like that because other people have told me that they prefer everything in one message not like 5.
@QPaysTaxes might as well just add me if I'm such an annoyance =/
 
A good rule of thumb is if it changes the content of the message, don't edit the message
 
2:22 AM
You forgot the taxes, just like those people in the panama papers
 
Write it up all at once, or write it in multiple messages. That way you aren't pinging the same person a million times.
 
Alright, I got it, you done?
 
Yep
 
It wouldn't be too hard, I guess, to write up a userscript that silences edit pings (unless your name is added for the first time)
 
@quartata yeah Downgoat recommended something like that, I'm planning on doing that.
 
2:24 AM
@Quill Maybe, but mine just sees who the message is from and mutes the tab for a second if it's from a certain person
 
Use pexe if they are using Chrome and fall back to the transpiled JS otherwise
 
(I think? I stole most of the code from Stack Overflow, I don't really get it)
 
@Quill @QPaysTaxes why don't you just do this if it bothers you so much. I mean, I hate to be a jerk, but, sounds like a personal problem to me.
@quartata Big issue here: IDK c++
 
@AshwinGupta Because everyone else is smart enough to have figured it out on their own or with a little gentle prodding. It's not worth the effort for one person.
 
C++ is not too different from Java. You'll learn it pretty easily
 
2:27 AM
again, I apologize for being an idiot. You don't have to keep telling me I'm stupid...
 
I'm not
 
@quartata yeah its next on my list, (Or c# I have to decide). Currently working on Html/CSS.
 
I'm explaining why I'm not writing a plugin just for you
 
@QPaysTaxes maybe not explicitly, but "Because everyone else is smart enough to have figured it out " pretty strongly implies that you think I'm an idiot.
 
Fair enough
 
2:29 AM
ty.
 
@AshwinGupta don't listen to the js bashers! :P
 
@AshwinGupta C++ will serve you better than C#.
 
There's more C# jobs than C++ :p
On another note: I am an idiot. I have a whole other chrome window full of the usual suspects (4000+ unread messages in some of the rooms)
 
I 'm coming more from the perspective of C++ being more cross platform and versatile (lots and lots of libraries)
 
that's fair
 
2:32 AM
I don't think Ashwin is too worried about jobs quite yet :P
2
 
another plus about C#: You can use that overused "why can't Java developers see very well" joke
 
one of the big reasons I learned Java was because there aren't a lot of Perl jobs
 
you're looking for a job? I thought you were still in high school...
 
not sure what gave you that impression
 
Quartata's like 45 or something.
 
2:36 AM
@quartata got that right :D!
 
45, 25, whatever.
 
Also yes, probably right about c++ being better then c# since c# is windows only mostly. Plus, java is pretty much a better c#.
 
There are some features of C# I admire. But yeah
 
@Quill hardly even funny.
I do like the java/c# syntax though.
 
@AshwinGupta I laugh when people tell it because they expect it to be funny after the millionth time
 
2:38 AM
Everything is very logical and stuff it forces you to keep stuff properly split between files.
 
@Geobits something with a 5 that's the important part
 
I can see perfectly fine and I prefer java :D
 
Java's good, but not black. Needs some cream and sugar.
 
@EᴀsᴛᴇʀʟʏIʀᴋ yo
 
2:39 AM
@Maltysen yeah I think thats like 90% of everyone in this room =/
 
@Quill yoyoyoyoyo
 
@Geobits that is actually kinda funny.
 
@Quill what joke?
 
@AshwinGupta You might be interested in Haxe by the way
 
2:40 AM
@AshwinGupta That's my thing: "kinda funny"
 
@quartata thanks, this right: haxe.org?
 
It is an OO language like Java that can transpile to JS and a bunch of other things
 
Neat. It supports python, I actually have something I may need this for currently.
 
@AshwinGupta well that sounds cool and all, but the language looks like it sucks
 
One thing I do not understand about this haxe thing, why does it compile to java? If you wanted your code in java, just use java. Its cross-platform anyway. There aren't really very many "native" features.
@Maltysen maybe so, but its worth a look.
 
2:44 AM
It's because the idea is you can write every component of a web app in it. So if you need to interface with some enterprise Java thing on the backend you can do that
 
Oh that makes sense, didn't think of that.
 
When your only item in nethack is a cursed -1 orcish dagger, and you accidentally wielded it. :/
 
I really need to try nethack.
 
@EᴀsᴛᴇʀʟʏIʀᴋ nailed it
 
actually, i take that back. its at least better than java
 
2:45 AM
@EᴀsᴛᴇʀʟʏIʀᴋ When you realize it's 2016 and you're playing nethack.
 
@quartata ?
@Geobits ....
ಠ_ಠ
 
@DrGreenEggsandHamDJ yes
 
@DrGreenEggsandHamDJ yeah, it's actually quite fun.
 
It's also a little overwhelming to start.
Not very main games require you to compile them before playing them.
 
"nethack is life" is a lie, sorry, but nethack really is fun.
@DrGreenEggsandHamDJ you ... don't have to?
 
2:46 AM
^
 
brew install nethack
 
or go to the nethack.org page
 
Does it depend on OS?
 
@Maltysen I actually have never really used it for a project but I played around with it in the past and it was interesting
 
2:46 AM
@DrGreenEggsandHamDJ Start with rogue. Then continue that since it's fun and nethack is just that plus distractions.
 
I remember needing to compile it when I tried to play it on linux.
I could be wrong tho.
 
Nethack is objectively better than rogue
 
@Geobits you actually played rogue?
 
@DrGreenEggsandHamDJ apt-get install nethack
> (Generalized) Algebraic Data Types
are they bringing back structs?
 
2:47 AM
@quartata actually, rogue is funner than nethack sometimes
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yea... as a kid in the 80s.
 
@Maltysen ಠ_ಠ I didn't realize it was that simple.
 
um. Ima just say right now, there wasn't much artistic effort put into this website.
 
2:48 AM
> You scored an excellent hit on the kestrel!
@AshwinGupta yeah.
from freaking 1990.
 
Pixel Dungeon is fun also :)
 
@EᴀsᴛᴇʀʟʏIʀᴋ oh didn't realize that.
 
> Initial release July 1987 (1.3d)
from wikipedia.
 
wait kestel, like from FTL?
 
Nethack is ancient. Rogue is ancienter.
@AshwinGupta ... no???
 
2:49 AM
nvm.
 
> The name kestrel (from French crécerelle, derivative from crécelle, i.e. ratchet) is given to several different members of the falcon genus, Falco.
the bird.
 
ok nvm. LOL
 
very differnt.
 
2:50 AM
Still named after the bird though, most likely.
 
closer to ^
@DrGreenEggsandHamDJ are you installing nethack?
 
just play on nao you don't need to install
 
@Cyoce Pulled. Sorry for the delay.
 
@Geobits in the 80s did you play robotfindskitten?
 
Not that I remember, but it's been a while....
 
2:52 AM
I found kitten!
He was next to a real job and a haircut.
why the hell did I think of trump at that. :P
 
Considering it was released in 1997 (according to wiki), I probably did not play it in the 80s.
 
because trump has neither
 
@DrGreenEggsandHamDJ you can also try playing on a server, NAO, so we can watch you.
@quartata exactly.
@Geobits okai
 
Anyone like shapes?
 
I like golden rectangles.
 
3:01 AM
@HelkaHomba I like circles and triangles
 
@HelkaHomba the letter 4's pretty nice
 
bai for the night!
@Quill yeah
 
Given a 12x12 lattice can you use the points as vertices of a symmetrical (but perhaps imperfect) hexagon that nicely fills the space?
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
 
@Dennis Same for Cy.
 
It'd be easier with an odd size :P
Are you doing pixel art or something?
 
3:07 AM
. . . . . . . @ . . . .
. . . . . . . . . . . .
. . @ . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . @
. . . . . . . . . . . .
. . . . . . . . . . . .
@ . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . @ . .
. . . . . . . . . . . .
. . . . @ . . . . . . .
 
@EᴀsᴛᴇʀʟʏIʀᴋ Do you want to watch me?
 
It's only about 0.4 units off from perfect (assuming it's a perfect grid).
Based on an image from this page: drking.org.uk/hexagons/misc/sqinhex.html
 
@Cyoce Done.
 
Ha! I got multiplication working in brain-flak!
For reference, here's what it looks like:
({}<>)<>({}[]){({}[])<>(({}))<>}<>{({}<>{})<>}<>
 
Hey @Dennis, since I learned the word from you, is this an acceptable use of "Nilad"/"Monad"?
 
If anyone knows grunt/node, could you see if you could answer this:
0
Q: Build some files, copy the rest

DowngoatI have a very simple project. I have some bash files, and some JavaScript files in a src/ directory, I want to transpile the JS files, and copy the rest. Here's my folder structure: root |- dist // Where grunt should output |- src | |- run_code // this is a bash file calling `code` | |...

 
@DrGreenEggsandHamDJ Yes. Niladic/monadic means arity 0 or 1.
 
Is it monadic even if the arguments is a chunk of code to be evaluated?
Because {} and <> are essentially eval and while peek() {eval}
 
Wikipedia's featured article today is on the noisy miner
Look at that majestic sob
 
3:38 AM
@AlexA. Glorious.
 
@AlexA. Marvelous.
 
7/10, not as majestic as:
 
@Geobits About as majestic as Marky's physical body
 
@Downgoat Which is in turn more majestic than Chatgoat's former body.
 
@Geobits Marky's body is made of Chatgoat's body I thought?
 
3:42 AM
In a more majestic form, and just the skin. The meat went into the curry pot.
 
Hello
 
@zyabin101 Hello!
@Geobits I thought Chatgoat was the curry
Did you not make the pot out of Chatgoat's bones?
 
Umm, nope. I'm not even sure how I would, to be honest.
 
@Geobits pretty sure in like the stone age they made pots out of buffalo bones
 
I'm not saying it isn't possible, just that I don't know an easy way to. I guess a skull could work, but anything else seems like it would be pretty leaky.
 
3:48 AM
@Geobits you could always like rip up the stomach and use it as a lining
 
Meh. I have pots and pans. No need to go to any trouble at all.
 
Looks shopped (you can tell by the shadows)
 
@HelkaHomba Not this again...
 
@HelkaHomba This is what happens when you take LSD in a wildlife preserve
 
3:50 AM
@Geobits I've been posting these all day. See starboard.
 
@AlexA. you're not supposed to do that? tucks chatgoat's lsd away
 
@HelkaHomba I don't know what part of that would make me want to look at the starboard :P
 
Well that would explain why chatgoat is so... Chatgoat-ey.
 
Haha, Node's option parsing libarary is called nopt. What a shitty name...
 
3:52 AM
Is it some kind of holiday I don't know about?
 
Haha. No
 
> libarary
 
@zyabin101 libaarraryary
 
Also, is the saturation that low in all of them? Looks faded.
 
@Geobits Yes
 
3:53 AM
only the hue is changed
 
^^
 
@HelkaHomba Could you do it for my profile pic?
 
@Downgoat Good, I'll let Marky know. He usually makes curry for holidays. On a totally unrelated note, where's Chatgoat right now?
 
@Geobits oh he's out on the barn eating his hay
 
K. Umm... I, uh, gotta run out to the barn real quick.
 
3:55 AM
 
@Geobits oh, you're coming by? Say hi to Chatgoat then.
 
Woah, what was in those eggs?
 
Yea... I'll say hi for ya. And bye, too.
 
@DrGreenEggsandHamDJ porple
 
@DrGreenEggsandHamDJ too much LSD
 
3:57 AM
I'd be curious to see it for this profile pic. (If it's changed for you guys)
 
@Geobits you're not making goat curry... right? ¬_¬
 
Me specifically?
 
@Geobits you and/or Marky
 
I'm just asking for a friend >_>
 
3:58 AM
@HelkaHomba I'd star that but I can't :(
 
@HelkaHomba Hmm. I suppose ;)
 
@DJMcMayhem it's nearly all black an white, so shifting the hues has no effect
 
Oh, okay.
 
Oh no, the Slam Ham McJam changed his name :(
 
I guess I was misunderstanding how it works.
 
4:00 AM
@DJMcMayhem D: where did my ham go?
 
I think this is my real display name, and *ham* as a joke one.
But I can't change it yet. (gotta wait 3 days)
 
@Geobits All I'm asking for is an alive Chatgoat <_<
 
@Downgoat And all I'm asking for is delicious curry.
 
@Geobits Additionally, all I'll I'm asking for is a dumb chatbot.
 
Port him to a sensible language and I'll convince Marky to leave him alone.
 
4:07 AM
Like Node?
 
I'm not sure how you got from sensible to Node.
 
Hey @Dennis, do you have any plans to make a "fastest code" timing mode for Try It Online?
 
@user81655 It is done.
Just check the Debug checkbox.
 
4:23 AM
@user81655 Debug currently gives a rough estimate. It is too inaccurate for scoring a fastest code competition, this the execution time depends on the server's load. There's no easy way around that.
 
@Dennis Yeah, I checked it just then with 5 windows calculating primes.
@Dennis I made a script myself to see if a fastest code server is possible and I think it works pretty well. The linux call to clock_gettime(PROCESS_CLOCK) where PROCESS_CLOCK is the clock ID of the process measures CPU time allocated to the process. It still varies by about 10%, but even with 20 brute force tests operating simultaneously it still produced the same results.
 
@user81655 CPU time isn't an accurate measurement. It basically disregards memory access, which can easily become the slowest part of an algorithm.
 
@Dennis From what I understand, clock_gettime returns the amount of time allocated by the Linux kernel to the process so that should include memory access shouldn't it? Under no load, the result of clock_gettime is about 90% of the actual time. I haven't tested with any "memory access intensive" algorithm though.
 
4:44 AM
Amusing quote I read today: "People who enjoy flying but are afraid of heights: You know where planes fly, right?"
 
Are there lots of those people?
 
What?
 
Anonymous
5:02 AM
Python is being weird :(
 
How so?
 
Anonymous
./seriously.py -c '120I' < /dev/null prints 1. python3 -c 'import seriously;print(seriously.Seriously().eval("120I"))' < /dev/null prints [1]. Those are as expected. self.assertEqual(Seriously().eval('120I'), [1]) (in a unittest class) fails.
 
Anonymous
The unit test is failing, but when I test it directly, it works fine
 
Anonymous
Within the unit test, the result is [0, 0, 2, 1]
 
Hm...
 
Anonymous
5:07 AM
I moved it to a different test method in the class, and it works o_O
 
Anonymous
Whatever, it works now, I'm not gonna think about it any longer
 
@user81655 I wrote a memory intensive program to see how much difference it makes.
dennis-home:~$ time ./a.out

real    0m9.379s
user    0m9.303s
sys     0m0.053s
dennis-home:~$ for i in {1..4}; do time ./a.out & done
[1] 19362
[2] 19363
[3] 19364
[4] 19366
dennis-home:~$
real    0m10.339s
user    0m10.169s
sys     0m0.171s

real    0m11.695s
user    0m11.426s
sys     0m0.274s

real    0m13.359s
user    0m13.198s
sys     0m0.164s

real    0m14.680s
user    0m14.404s
sys     0m0.281s
That's a difference of up to 56%, which makes it completely unreliable for a fastest-code competition.
 
a.out? What is this, Fortran?
 
@Dennis Do you mind if I grab a copy of the script to test? (Is it in C?)
 
It's probably indented with tabs, I don't think you should let that onto your computer
 
5:16 AM
@AlexA. Haha true
 
Anonymous
@AlexA. Default output file for gcc
 
o.c
 
Anonymous
80% coverage for Seriously's unit tests! \o/
 
What's the 20% that isn't covered?
 
Anonymous
Mostly the random stuff and edge cases that aren't actually explicitly needed because of Python 3 but I'm afraid to remove them in case they are explicitly needed
 
5:19 AM
Oh, okay
 
#include <stdio.h>
#include <stdlib.h>

#define size (1 << 28)

int array[size];

int main()
{
	int i, r;

	for (i = 0; i < size; i++)
		array[i] = rand();

	for (i = r = 0; i < size; i++)
		r ^= array[rand() % size];

	return r;
}
@user81655 ^
 
Just as I suspected... tabs. >:(
What's the significance of 1 << 28?
 
Anonymous
@AlexA. It's a big number (2**28)
 
Oh, okay
 
@Dennis Thanks.
 
Anonymous
5:36 AM
85% coverage; that's enough for now
 
you can do it! only a few more
 
Anonymous
Now I just wait for Travis CI to tell me that I messed everything up
 
Anonymous
The remaining 15% is a combination of debugging statements (that are just plain prints and thus don't need to be covered by tests) and stuff that I'm gonna have to think about for a while before I can write good tests for them
 
Anonymous
Oh no the build passed... What have I done wrong?
 
@xnor hai.
 
5:50 AM
Does anyone in here know MATL?
 

« first day (1920 days earlier)      last day (1637 days later) »