« first day (1930 days earlier)      last day (3207 days later) » 

03:02
@QPaysTaxes sounds like a business opportunity
More like death of science, am I right?
@PhiNotPi HEYOOOOOO
Get wrecked, soft sciences
o/

Get wrecked, soft sciences

9 mins ago, 2 minutes total – 8 messages, 3 users, 0 stars

Bookmarked 41 secs ago by PhiNotPi

2
ROASTE
D
03:20
@Quill one thing I like about elementaryOS
0
Q: Evaluate a string as a verb in J

Cᴏɴᴏʀ O'BʀɪᴇɴTL;DR Given a string containing a (valid) verb, how do I obtain that verb without committing it to any variables? For example, say eval is that function; it should work like this: eval '+ @ >: @ %' +@>:@% eval '+' + I only need it to be able to execute verbs and return them, but it woul...

I forgot how little SO rep I have (133).
I like to answer SO questions when I have time to kill (like Public transport)
Hey @Downgoat, does istanbul give you accurate code coverage results?
I have successful tests running that should cover most branches, yet my tokenizer is completely red on istanbul
@Quill take a look at the data. It should tell you what lines of code are covered and all
03:29
only the export default class instance gets hit
Can I see your coverage reports?
It's depressing when I try to talk to people about simple programming things and they look at me as if I took my shirt off. :p
It's depressing when I take my shirt off and people tell me I should be programming instead
5
@Downgoat I think my tokenizer is never getting called ;-;
I was looking at the github page for gulp and it says people use it with non JS projects. why
03:38
did you gulp when you saw that?
<3 helka
@AlexA. really -.-
@QPaysTaxes why does this have 3 stars?
I'm literally crying on the inside right now (not becauseof the lenny). I can't possibly fathom why or even how someone would use a JS build tool with Java or PHP
TypeScript, CoffeeScript
03:42
Finally watched 2001: A Space Odyssey, and wow, is that movie boring. At least by modern standards, anyway. You could easily shorten it from 2.5 hours to 1 hour. And the ending was quite confusing; I feel like I need to read the book to really get what was going on.
My girlfriend is a film buff and loves 2001. I didn't find it that interesting, honestly.
I'm glad I've seen it though because I'm able to spot references to it in other media.
Yeah, it was definitely interesting seeing the multiple ways that it inspired Star Wars.
@quartata They're both "not" javascript and they use Gulp
I haven't watched that movie, but I've seen clips of the "daisy" song.
Does that count?
03:47
Uhh... but they are JavaScript with wafer thin abstraction layers. I don't see how that justifies using a JS build tool for something not remotely connected to JS or potentially not even related to web development
@El'endiaStarman Lots of iconic movies (and books) have illogical scenes. It's what non-programmers call "art".
@quartata there's probably a few hardcore gulp fetishists out there that use it for non-JS reasons and then Gulp just bullshits the numbers
What happens if req_buf_size overflows?
(Also note that int is 32-bit by default on Windows and 64-bit everywhere else)
@Downgoat remember this post:?
1
Q: Can I use jQuery or JS to rotate a canvas image around its center?

Ashwin GuptaSimple question, I'm drawing an image on the canvas using ctx.drawImage(img, 500, 500); I want to rotate this image around its central axis an undetermined degrees measure (somewhere from 0-360). I know that there is a jQuery library called jQuery rotate. However, I looked at the API of this, and...

well this is what happened:
help!
I've spent twenty minutes rearranging my circuit design for CompSys and somehow it gets worse every time ;-;
04:02
I can't design circuits but I can tie wires together and screw in lightbulbs. That's as much electrical engineering as I need.
You're not missing much...
it's pretty easy though, the equivalent of a lot of AND/OR statements
@QPaysTaxes Is it C++?
I made a horrible mess thing.
@QPaysTaxes I don't really know anything about C, so all I can say is, "godspeed."
04:05
@QPaysTaxes If you're talking in general, I don't know. If you're talking something that you coded yourself in JS where the slash does something else, then event.preventDefault().
@CᴏɴᴏʀO'Bʀɪᴇɴ Why?
It was deleted because it was invalid, and he edited it to be valid.
@CᴏɴᴏʀO'Bʀɪᴇɴ Err, that's not deleted?
@El'endiaStarman It was just undeleted.
18 secs ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
@El'endiaStarman It was just undeleted.
Consider: a deleted post doesn't onebox.
Oh, happened 1 minute ago.
@QPaysTaxes Oh yes, I know. I had that problem myself a couple months ago.
event.preventDefault(), like I said.
within the called function
Wherever you do what you actually want to do when the slash key is hit.
textbox.addEventListener("keypress", function(e){e.preventDefault();textbox.value += e.keyName}
Kind of primitive ^^^
There must be a setting somewhere that you can adjust to move the functionality to another key or to disable it altogether.
04:10
@QPaysTaxes don't quote that at me :p it was after
It needed to be correct
BAI
laterino
gotta write more essays :/
Right then, write right tonight!
04:30
@Quill probably because the test cases have no money to buy tokens
hi goat.
Is Travis supposed to break if any of your tests break?
I feel like there could be goat nursery rhymes.
like w/ upgoat and downgoat.
@AshwinGupta O_o
U know that Dr. Suess story
about sneetches...
you could re-write that whole book, w/ upgoats and downgoats.
04:31
@Quill if you set it up right it should gracefully error
Anonymous
Yay I'm winning!
Anonymous
0
A: Zeroes at the end of a factorial

MegoActually, 10 bytes !$R;≈$l@l- Try it online! Note that the last test case fails when running Seriously on CPython because math.factorial uses a C extension (which is limited to 64-bit integers). Running Seriously on PyPy works fine, though. Explanation: !$R;≈$l@l- ! factorial of i...

Anonymous
@Quill Yep. You can use allow_failures in the build matrix to allow tests to fail on some platform(s). I have Seriously set up to allow failures in pypy3 (since it's not yet feature-complete).
Anonymous
drops a cockroach in Q's sofa
04:47
@Quill do you have to go to turkey to get it
@Mego I don't know how I'd test a build versus unit tests to tell whether something truly builds or not
Anonymous
@QPaysTaxes :(
@Mego whistles (you knew it was coming)
(Dennis could probably find 5 though)
Anonymous
Probably
Anonymous
...unless I get it first!
04:55
Oh boy
Anonymous
But I can't figure out how to use Jelly >_>
You spread it on bread
Anonymous
Uhh what
look at the docs on github maybe that'll help hah hah >_>
Anonymous
Damn you Sp3000! :P
05:01
Even CJam could beat Actually here :P
Seriously?
Anonymous
Marc was almost ready to implement his "hello world" React app https://t.co/ptdg4yteF1
05:20
Oh, Jelly has Æf - was looking for that :/
in Pyth, how do I use .u to repeatedly do /5 until there's a repeat?
which, in this case, would terminate at 0
.u/N5 ?
Probably too long though, unfortunately
thanks
how did you know to use N?
Debug -> see lambda N
ah, thanks
05:23
btw did you see my message in Code Golfer's Corner?
yes, i but i only thought about it a little
lemme reply there
k :)
God forbid we have on-topic discussion in here
3
in Pyth, is there no one-char command to sum a list of numbers?
Is it s?
(had to search reduce rather than add or total or sum)
05:33
aha
thanks
indeed, st.u/N5 is too long at 7
Worth mentioning as an alternative, I guess
in PPCG Minecraft Server, 1 min ago, by Helka Homba
bat - bat?
chicken - winged something?
cow - cow?
mooshroom - ?
pig - ?
rabbit - rabbit
sheep - koopa (multicolor)
squid - blooper (or cheep cheep)
villager - toad
cave spider - ?
enderman - shy guy
spider - wiggler or bully
pigman - clubba
blaze - lakitu
creeper - bobomb
elder guardian - porcupuffer (or super blooper)
guardian - cheep cheep (or blooper)
endermite - fuzzy
ghast - boo
magma cube - red thwomp
shulker - ?
silverfish - spiny or buzzy beetle
skelly - hammer bros
slime - thwomp
witch - magickoopa
in PPCG Minecraft Server, 28 secs ago, by Helka Homba
^ I've been having fun trying to guess what all the Minecraft mobs will be in the Mario mashup pack coming out for console soon
Quoting cuts the list off :/
Anonymous
@HelkaHomba Shulker might be Chain Chomp
Anonymous
And you forgot the obvious horse - Yoshi
No I didnt. Its truncated here
And on mobile view 😑
05:46
There are some there which are very appropriate from other Nintendo universes, but Mario only makes them a bit trickier
@Sp3000 Like who?
Ender dragon -> Ridley (Metroid)
Although I guess Bowser in that flying upside-down helicopter thing works (I'm assuming that's what you mean there)
Hmm somehow behaviour-wise I feel like chain chomp might be a good fit for slimes instead
Having trouble thinking of anything else that jumps forwards like that
Hello
 
1 hour later…
07:04
@AlexA. Great. Anytime! :-)
07:42
7 hours later...
@_@
7 hours ago...
One November later...
08:42
2
Q: Actually Integer Metagolf

MegoBackground Actually (the successor to Seriously) is a stack-based imperative golfing language I created in November of 2015. Like many other golfing languages, it has one-byte commands that perform different functions based on the contents of the stack. One of its specialties is mathematics - it...

Reference answer (maybe working, maybe not): lambda x: ":" + str(x)
@Mego "Based on my experience, I'd wager that any 32-bit signed integer can be represented using 6 bytes or less." Please do tell if you ever get 4374732215 in 6 or 7 bytes because I spent two days trying to golf that number down in CJam
Probably easier in Actually/Seriously, but still curious
AZG
AZG
08:58
Hi guy, I'm trying to write a program that can crack xor ciphers when key length is known
And I've run into a logic problem. Mind helping?
What's the problem?
AZG
AZG
Okay so let's say I know the key length is 10
So i split the cipher text into 10 streaams
so every letter in one stream is xor'd with the same character
right?
Yes...
AZG
AZG
So I have to try 256 keys on each stream
so how do I know if I found the correct key in a stream?
If the whole ciphertext was encrypted with a single character key, I can just print the text given by all 256 keys and see which makes sense
Do you know what the plaintext might be like? Is it just text?
AZG
AZG
09:02
Yeah, like a paragraph
of normal text
How long?
AZG
AZG
The ciphertext I'm using now is taken from the old PicoCTF 14, it's....long
Oh, that one
AZG
AZG
several paragraphs
Well, for one thing, not all keys give printable ASCII/newline for the whole stream
So that's a start
AZG
AZG
09:04
Yeah I'll elimiate keys that give non-prinatble charachters
but that should still leave a few possible keys for each stream
The second thing you can do is some frequency analysis
Chances are lowercase e is the most common for at least one of the streams
AZG
AZG
okay...
Basically, try assigning each stream the key that decodes the most common char to e, and see if the output is somewhat readable
AZG
AZG
okay. I'll try that. Thanks
Dunno if it'll help (it's been a while since I did that one), but hopefully? :P
09:18
Great. I managed to create a file that has a specific SRI hash which crashes Firefox (and, occasionally, Opera). The Mozilla devs confirmed it. Why do I always have to find these weird edge-case bugs...
Anonymous
@Dennis Could you pull Seriously and Actually? (remember - Actually is on the master branch now, and Seriously is on the v1 branch)
Anonymous
@Sp3000 I'll get cracking on it :P
@Mego "Yes."
"But as always, I have to dedicate 30 minutes a day for flags."
Anonymous
To be fair, that's not a 32-bit signed two's complement integer
I know, that's why I said "6 or 7" to give you an extra byte :P
Anonymous
09:22
I don't know if I can do it in 7... Prime factors isn't gonna work
Well I'll probably be impressed if you get it in 9, depending on whether you use anything not in CJam
Anonymous
579Pkπ is 6, so I'd need 4310081 in 1 byte to get it in 7 with prime factors
Anonymous
Within 9 might be doable
@Mego Two problems with Seriously's repo: no commands.txt file, and Coveralls don't work.
The README links to the non-existent commands.txt file.
Anonymous
09:31
@Mego Uhh...
5╙"42c27dn"¿
:4374732215
Just one byte more than the naive approach. So close...
Anonymous
09:44
Unfortunately, that's 1 byte more than the naive implementation
@Mego ninja'd
09:58
@Adnan 05AB1E's prime factoriation functions should at the very least not use a for loop over possible factors (even something like while n != 1: and divide out factors would be better)...
10:10
New Win10 build is out for fast-ring subscribers. Includes some neat bugfixes for the linux subsystem.
@mınxomaτ :O
:D I want it.
The update is exactly 5.0 GiB big :D
@Sp3000 Yeah, I really regret the lazy implementation...
The n == 1 case should already have been implemented though
But I don't have a sane PC (1 GB memory), and also, Windows 10 is obviously very costly.
:(
Hm, I need to free up 14GB. That's almost exactly the size of my Visual Studio installation. Which I no longer need because Rider's out. Yay.
10:13
@mınxomaτ Rider development environment?
Rider the C# IDE. Faster than VS and consumes so much less memory.
\o/
Where can I get it?
@zyabin101 What OS do you have?
@mınxomaτ Windows Vista.
10:22
hi all
hi part of all
I am suspicious (as I mentioned in the comment)
@zyabin101 hi a little bit of all
@Quill hi a tiny bit of all
oh does no one read C# here?
or can anyone read the APL solution?
it's hard to know what to do with an APL solution when there is a bounty
10:32
@mınxomaτ (co) Epic fail!
Rider dies, without fanfare, on my machine.
@zyabin101 Everything is supposed to die on Windows Vista.
@Lembik I read C#
@MarsUltor great :) I think I managed to debunk the answer in the meantime
I am not suspicious of the APL one
the only ones I believe are in python, lua and ruby so far
@Lembik The C# one reads all lines up to the one that you want
@MarsUltor right.. so not at all right
thank you
10:36
Lazy in C# just means it doesn't do anything until you need it
I assume that the only hard part in C# is the sampling without replacement
unless there is a library call for that
anyone here read APL/Dyalog?
@Lembik I read Python.
me too!
So no.
except for the clever stuff :)
ok.. how about php?
anyone here know php?
10:39
I don't.
who are these people who comment on posts but are not in chat!?! :)
@Lembik Not many are in chat
true
it's a disgrace :)
@MarsUltor codegolf.stackexchange.com/a/79782/9206 may need a comment from you. I don't think he/she believes me
IDK, I'm gonna wait until they reply first
OK. Makes sense
10:53
@quartata Just use the CDN?
Web devs who download things like jQuery, Bootstrap etc. really annoy me. It more than often breaks things when the actual library gets updates. Just use the CDN link. It's also easier on your user's cache. (And you get SRI).
@mınxomaτ ?
How does it break things when the library updates?
Or just don't use generic libraries
be your own goddamn person
Every forensics geek using Linux: File 5.26 was released. Download here.
@MarsUltor Because when you change the link from a local file to the CDN link, and some functionality depends on older versions of that library, the you have to fix those. These issues go unnoticed when you host your "own" snapshot of the lib.
11:02
@zyabin101 what is that?
@mınxomaτ Then link to the same version in the CDN?
and can someone translate CDN and SRI please
content delivery network?
@Lembik Yup.
11:03
oh ok.. I know what file is then :)
@Lembik And SRI is "sub resource integrity".
aha

« first day (1930 days earlier)      last day (3207 days later) »