« first day (1757 days earlier)      last day (3079 days later) » 

6:02 AM
Nice, I tried a couple desktops for Ubuntu, couldn't find one that worked quite right, but that was probably just me not doing something right
 
I miss KDE 3.5
I'm probably going to give Trinity a try next
 
0
A: Sandbox for Proposed Challenges

undergroundmonorailOptimizing Food Club Bets code-golf Every day in Neopia, 20 pirates participate in an eating contest known as Food Club. They are randomly separated into 5 arenas, and every arena has its own winner. Many people like to gamble on the outcome of these contests. Each day, you can up to 10 bets, ...

who wants to explain why my syntax highlighting didn't work
 
Anonymous
Huh weird
 
Anonymous
lang-py should've been the issue, but lang-python still isn't fixing it
 
217
Q: What is syntax highlighting and how does it work?

ben is uǝq backwardsI noticed that sometimes my code gets highlighted in different colors when rendered. What is syntax highlighting? How does it work? What if my code isn't highlighted correctly? How do I report a bug or request a new language? What languages are currently available on Stack Exchange? Return to...

lang-py should work
 
Anonymous
6:14 AM
I'm trying but it doesn't want to work :/
 
Maybe there's no syntax highlighting on meta?
Other than that I have no idea
 
Anonymous
I would think there is, but I don't see any that do
 
Anonymous
Looks like that's it :/
 
At least it won't be a problem when it counts :P
 
Anonymous
But it is a problem on Sandbox
 
Anonymous
6:23 AM
It works on Meta.SO, apparently:
 
Anonymous
30
Q: How to format a link within a code block

DanieldI tried to edit one of my posts by adding a comment within a code block which contains a link. Like so: .example { text-decoration: underline; -moz-text-decoration-color: red; /* [vendor prefix not required as of V36][1] */ text-decoration-color: red; } [1]: https:...

 
Anonymous
0
Q: Test post please ignore

MegoSyntax highlighting seems to be not working in the Sandbox. I'm using this post to test whether it's just an issue with the Sandbox, or whether it affects the whole Meta site. from itertools import permutations def number_of_clicks(l): bets = list(l) clicks = 0 state = [[False, ...

 
Anonymous
Looks like it's all of Meta
 
Well, after a week or so of disciplined voting, my vote ratio is 20.1% questions
Electorate is hard
 
Anonymous
0
Q: Syntax highlighting doesn't work on Meta

MegoLike the title says: from itertools import permutations def number_of_clicks(l): bets = list(l) clicks = 0 state = [[False, None], [False, None], [False, None], [False, None], [False, None]] while bets: next = bets.pop(0) for s, n in zip(state, next): ...

 
Anonymous
6:35 AM
Things I have learned from my month here:
 
Anonymous
Easy questions get oodles of upvotes
 
Anonymous
Answers in esoteric languages get oodles of upvotes
 
Anonymous
Being the first answer gets oodles of upvotes
 
Anonymous
In summary, to mortarboard: Post a bunch of easy questions and FGITW your way to first answers on questions, using esolangs
 
0
Q: Syntax highlighting doesn't work on Meta

MegoLike the title says: from itertools import permutations def number_of_clicks(l): bets = list(l) clicks = 0 state = [[False, None], [False, None], [False, None], [False, None], [False, None]] while bets: next = bets.pop(0) for s, n in zip(state, next): ...

 
6:49 AM
@Dennis CJam has P (pi)
 
the question was about fractions and pi cannot be expressed as a fraction ;)
(but you are correct it is a float variable)
 
Anonymous
Define fraction
 
okay yes you can do pi over 1
 
Anonymous
I have an irrational constant in Seriously that is routinely defined as a fraction
 
what's that?
 
Anonymous
6:56 AM
Granted, the numerator of said fraction is irrational
 
Anonymous
φ
 
Anonymous
Aka (1+sqrt(5))/2
 
@undergroundmonorail well, every double precision number can be expressed as a fraction of integers ^_^
 
Anonymous
@aditsu any rational number
 
7:00 AM
yeah, but we're talking about floating point
 
Anonymous
CJam also can push a random float in [0,1), right?
 
I'm just gonna drop in and leave this lil bit o truth.
 
sure
 
boo ^
 
7:01 AM
@MichelfrancisBustillos for some reason i thought you were going to follow this with something really nihlist
> here's a little nugget of knowledge for ya: it doesn't matter because the universe is becoming a cold lifeless hell
 
Ha! Naw, but that's very true
 
@MichelfrancisBustillos: Watch that. ^
 
Oh, I don't disagree math is everywhere, blah, blah...I just loathe it
 
WATCH IT.
 
@MichelfrancisBustillos Good luck golfing then...
 
7:06 AM
I golf mostly to solve problems, code is kind of an art to me
 
@MartinBüttner codegolf.stackexchange.com/questions/64315/… What do I have to input and what is the desired output?
 
@El'endiaStarman That video felt kinda like an acid trip
 
@Stefnotch Input is just a list of numbers (separated however you want, because ?), and output is every second number starting from the first, followed by every second number starting from the second (e.g. 1 2 3 4 5 -> 1 3 5 2 4, separated by newlines)
 
I did read through the question...but I can't get the program to run. That is why I am asking...
 
7:14 AM
Is there something else you're asking about? (I thought I answered...)
Maybe it's a bit clearer if I use \n, so 1 2 3 4 5 6 7 8 -> 1\n3\n5\n7\n2\n4\n6\n8\n
 
Hi guys
Anyone want to help me grab some hidden code from an image file?
Someone on?
 
Plenty of people on, just give them time
 
okay. So it's basically a standard flag capturing thingy, and I'm supposed to get a flag from an image file. I've done some analysis, but haven't gotten to the final flag yet.
so if someone wants to help out..please do =)
 
How far have you gotten?
 
Oh hi Sp3000...you helped me crack a XOR cipher about a week back
nice to see you here
So well, I've opened the image using 7-Zip, and got a text file
I expected the text file to have the flag, but what it had was
 
Anonymous
7:21 AM
XOR ciphers are nice and easy
 
Anonymous
Can you share the image file?
 
The text file found from opening the image with 7-zip basically tells me to open it with an extraction program..
sure
 
Anonymous
Or a link to the challenge?
 
I'm uploading the image file to postimage now
 
Anonymous
7:23 AM
imgur > all
 
Anonymous
Sharing a link to the source is probably best tbh
 
Anonymous
No guarantee that an image upload site won't downscale/downres an image, making the file different
 
As long as the upload site doesn't try to compress it or something :P
 
tbut The challenge is not accessible unless you make an account, and you can't make an account unless you live in my locality
 
Anonymous
Then just upload the image to Google Drive or something
 
Anonymous
7:25 AM
Or Dropbox
 
Anonymous
Or OneDrive
 
(Or open it with Notepad and copy paste it somewhere! :P)
 
lol
 
Anonymous
Or get a hexdump of the image and post the hexdump to pastebin
 
I'm checking the uploaded image to see if it still has the txt file
 
Anonymous
7:26 AM
xxd angry_bird_challenge.jpg
 
wow well that's the one
but looks like I just got the flag myself
 
XD
 
Apprently opening it in 7zip did get the flag
there was 2 files
 
Anonymous
Heh
 
Anonymous
Neat
 
7:28 AM
not just the text file...I just completely missed the other
rip me lol
but wait, there's another challenge as well
this one is a bit weird, but solving it will give me 100% completion until they release more
 
So should I delete my chemistry answer?
 
@Sp3000 I tried that too, apparently it doesn't seem to work either..
@AGZuniverse What is it?
 
Well...it's a pdf file
except it's not
the challenge description says
"What do you think is not really What it is"
and opening the pdf file gives me a message "Failed to load PDF document"
in chrome
 
@TanMath I don't think there's any reason to delete - btw I just checked out your answer and it looks okay except in everything but the CH4 case it prints an extra H
e.g. H8H2O in C3H8
 
@Sp3000 really? meaning?
 
7:34 AM
and downloading the file and opening it in foxit fives me "file is corrupt or not a PDF file
Well okay...opening the said pdf file in notepad gives me a jumble of ascii stuff, but the first word is "PNG"
 
@TanMath Meaning that if you fix your 3rd line to not output the extra H it should be fine
 
@Sp3000 works for me
 
maybe a image disguised as pdf or something?
 
@Stefnotch Not sure what to do then, cos that's how I've been testing... sorry :/
 
7:36 AM
Well, thanks for trying! :D
 
trying that link now
It just matched 100% to PNG
So...how do I open it?
 
@TanMath ideone.com/GZWCIF <-- do you see the H8H2O?
 
@AGZuniverse Right click, open with, choose your favorite image viewer...
(You could also change the file extension)
 
Picasa photo viewer gives invalid image
photoshop doesn't open it either
 
Post the PDF somewhere so I can try it out?
And, did you change the file extension?
 
7:40 AM
Nope, trying that
 
@Sp3000 working for me!
 
changing into .png makes it .png.pdf
 
What version of Windows are you using?
 
@TanMath That's different from the code you currently have posted (the last line's longer)
 
7:43 AM
Maybe you accidentally removed something when updating?
 
@Stefnotch were you able to sort it out?
 
I'm uploading the pdf to my box account
 
@Sp3000 oh.. I was pretty sure i fixed it.. the code in the ideone link is the correct one
 
Anonymous
Make sure you have "hide known file extensions" turn off @AGZuniverse
 
Anonymous
@AGZuniverse Another way of doing it is to open a command prompt in that directory and do ren file.pdf file.png
 
7:44 AM
@TanMath The code you linked looks okay but it seems to be the 195 byte one, rather than 189 byte
 
@MartinBüttner Sadly, no..
 
Okay I got it
 
@Stefnotch in your own interpreter or in Ruby?
 
renamed it to .png
worked
Thanks y'all =]
 
Anonymous
No prob
 
7:46 AM
The ruby one...do I need the latest version of labyrinth?
 
not really. my recent changes don't affect this
how did you run the code?
 
jruby ../labyrinth.rb -D ../examples/try.lab

(try.lab has the code/maze)
 
that seems to be missing the input though?
echo "1 2 3 4 5 6" | jruby ../labyrinth ../examples/try.lab
 
Oh! :D
So, the numbers are separated by spaces?
 
are anything else
doesn't matter at all
as long as there is some separator
 
7:53 AM
Ok! :D
(Hmm, my interpreter can almost run the program...)
Also, should my interpreter use a big integer library?
 
that would be good
 
Anonymous
@El'endiaStarman Just hit 300 million! Won't be long now
 
Ok! Also, how do I write one? (Just interested in the logic...)
@MartinBüttner
" >
If the pointer is at the > command, where would he end up? At where the " used to be?
 
@Stefnotch I've never written one, but I believe you implement integers as arrays of smaller integers (basically encoding them in base-MAXINT) and handle overflow/carry and stuff like that yourself
@Stefnotch no, one to the right
the grid is always rectangular
(even if not all lines are explicitly padded with spaces)
 
Oh, good to know! (I wish I had known that sooner..>w<)
 
8:08 AM
Multiplication and division are a fun exercise :P
 
Wait, why does that sound evil? XD
 
Anonymous
Because Labyrinth is evil?
 
they were talking about big-int libraries
also Hexagony is the evil one
 
Anonymous
Oh
 
Anonymous
I missed the change of topic
 
Anonymous
8:17 AM
For a less-memory-optimized version that's easier to work with, encode them as base-2^31 integers (using unsigned 32-bit ints)
 
Anonymous
(or base-2^63 if you can use 64-bit uints)
 
Brian & Chuck is the evil one (actually Martin has worse ideas, but for now...)
 
Oh, good idea! Well, except that I am using Javascript...
 
Actually, Martin's esolangs have just been getting eviler and eviler
 
Anonymous
The result of adding 2 base-n digits is 2n-2, at maximum
 
Anonymous
8:19 AM
So if you use half the available space, you can store the result of adding two digits in one "digit", and test for overflow easier
 
Bit of a snag for multiplication though
 
Anonymous
@Sp3000 Use the grade-school algorithm
 
Anonymous
And do the individual digital multiplication as iterated addition
 
... iterated addition
 
Anonymous
Nobody said anything about speed optimization
 
8:23 AM
We're not golfing here :P
 
Anonymous
Alternatively:
 
Anonymous
The Karatsuba algorithm is a fast multiplication algorithm. It was discovered by Anatoly Karatsuba in 1960 and published in 1962. It reduces the multiplication of two n-digit numbers to at most single-digit multiplications in general (and exactly when n is a power of 2). It is therefore faster than the classical algorithm, which requires n2 single-digit products. For example, the Karatsuba algorithm requires 310 = 59,049 single-digit multiplications to multiply two 1024-digit numbers (n = 1024 = 210), whereas the classical algorithm requires (210)2 = 1,048,576. The Karatsuba algorithm was the...
 
Anonymous
Or use the FFT algo if you really want speed
 
You still can't multiple two 2^31 digits into a 2^32 result though, right? o_O
*multiply
 
Ok...well, that's more information than I wanted! XD That should be enough to get me started...
 
8:27 AM
@Stefnotch tbh, the easier option would just be to steal a library for somewhere - surely there's one for JS? Still fun to try anyway though
 
Anonymous
Grade-school multiplication and long division were how I did my first bignum library :P
 
Anonymous
And I did it with bytes, using base-128 encoding
 
Anonymous
Which made it awfully convenient to store the "digits" as chars and make string representations
 
Yeah, but I mean - how did you multiply two individual digits together?
 
Anonymous
Iterated addition
 
8:29 AM
XD Well, I really want to write one of those libraries some day...(Very specific time)
 
Anonymous
mul(a,b) := add(a,a) b times
 
Anonymous
def mul(a,b): reduce(add,[a]*b,0)
 
Anonymous
(though implementing a bignum library in Python is very redundant)
 
Yeah... that kinda ignores the memory constraints. Basically what I was trying to get at was I thought you'd need something like base 2^16 for 32-bit numbers so that the single digit multiplications actually fit
(Unless that 0 is a BigNum 0?)
 
Oh, just a silly question:
Is it possible to use a regex to check if the parentheses are valid?
e.g.
{} is valid
}{ is invalid
{{{{{{} is invalid
{{}} is valid
etc...
@MartinBüttner Ok, my interpreter got "fixed", it can run that program now! :D
 
8:39 AM
Regular expression? No. "Regular expression"? Yes. (Method depends on flavour/language)
 
What??
 
okay seriously stop starring that pinned message
3
 
@Sp3000 I can't think of a way to do it? Mind giving me an example? :D
 
Perl would use recursion and .NET would use balancing groups. Trying to find a StackOverflow but phone researching is slow :/
 
oh that's not it
4
Q: Matching balanced parenthesis in Perl regex

meharoI have an expression which I need to split and store in an array: aaa="bbb{ccc}ddd" { aa="bb,cc" { a="b", c="d" } }, aaa="bbb{}" { aa="b}b" }, aaa="bbb,ccc" It should look like this once split and stored in the array: aaa="bbb{ccc}ddd" { aa="bb,cc" { a="b", c="d" } } aaa="bbb{}" { aa="b}b" } ...

 
8:46 AM
Interesting... :D (JS can't do it...)
 
unsurprisingly. balanced parens is not a regular language, as Sp3000 indicated
 
0
Q: Rearrangement Inequality

Element118Background The Rearrangement Inequality is an inequality that is based on rearranging numbers. If I have two lists of numbers of the same length, x0, x1, x2...xn-1 and y0, y1, y2...yn-1 of the same length, where I am allowed to rearrange the numbers in the list, a way to maximize the sum x0y0+x1...

 
Does JS/ECMAScript regex have recursion? Can't remember
 
Nope!
 
Hello, everyone!
 
8:54 AM
yo
 
Hi Alex
 
@Sp3000 Did you think I'm @AlexA.'s sock?
 
No, it was just like me shouting into an empty room "I know you're in here!" Don't expect to be right, but would be hilarious if I was :)
 
@MartinBüttner If you have a program:
\n
\n
\n
"""""
"""""

would the first few lines get discarded since they are empty?
 
(From memory, I don't think so because it might affect grid rotations)
(Not sure about trailing newlines though)
 
9:11 AM
grr @ coding challenges that are really algorithm challenges
not that I mind the latter, it's just not what I was in the mood for
I've got a perfectly functional O(n log n) solution to the problem, but they want an O(n) solution. I've got the concept for that solution in my head, but it involves keeping track of multiple pointers into an array, and a whole bunch of bookkeeping that I don't want to code right now :(
 
 
3 hours later…
12:13 PM
How did 19% of you vote for Vitsy as the worst name? Vitsy is cute. c:
 
Anonymous
Hey @MartinBüttner, what do you think of transforming this into a catalog?
 
Anonymous
12:26 PM
@Optimizer k
 
Although I personally do not see a point of a catalog question for an already existing code-golf question..
 
Anonymous
12:40 PM
Why did you delete those 2 messages? (I have no idea what they said)
 
good!
 
i saw them but i won't say anything because that would be Rude
 
R capital Rude?
 
is it r lowercase rude?
 
12:43 PM
yes
 
Anonymous
@Optimizer I mean editing the question to make it into a catalog, which really would involve only changing out the tag (which really doesn't belong there anyway), and adding the snippet and catalog info
 
oh
that should be fine
 
Anonymous
Since the catalog project is Martin's baby, I'll let him do it :P I just wanted to suggest it to him
 
i didn't know martin had a baby
@MartinBüttner congratulations
 
Thanks...
@Mego well, sure I guess... I'm currently considering to ditch the whole catalogue terminology though, because it seems to be doing more harm than good. That would mean "editing it into a catalogue" would be limited to adding the leaderboard, which of course can in principle be done to any challenge
@Stefnotch can't test today, but they shouldn't be discarded
 
Anonymous
12:55 PM
@MartinBüttner Adding the scoreboard and removing the accepted answer
 
Anonymous
The accepted answer in the linked challenge should probably be changed anyway, since it's not the shortest
 
Only the OP has control over that.
 
OP is OP
 
Anonymous
I thought mods could manually change it
 
Anonymous
TIL
 
1:04 PM
on most SE sites the OP is supposed to accept the answer that helped them specifically, even if (by other criteria) it's a worse answer. afaik we're the only one with objective rules about what you're supposed to accept so it would make sense that there aren't mod privileges to enforce it
 
It would make sense to disable the feature entirely on this site.
2
 
Hello
 
ppcg is so weird haha
like i'm pretty confident it would be better off if it wasn't a part of SE except for the fact that without SE it would definitely have no community and die
 
pretty much
 
Heh, this discussion again
 
1:17 PM
/me stops watching cat videos
 
1:30 PM
chat is dead
 
I'm busy testing a minecraft challenge map
Or what I have so far of it, at least
This parkour part is hard
 
cool
 
i am sleepy
problem: it is 8:31 am
 
7:31*
 
EST is the one true time zone and i will beat you up
2
 
1:32 PM
(Yes timezones exist i know)
@undergroundmonorail but it's opposite day
 
Okay, I finished testing what I have so far. Now to unzip the dev copy and add some more stuff.
 
@undergroundmonorail my true clock says otherwise
 
ha ha
ha ha ha ha i just realized
okay i'm probably super late to the party on this one but
the place with all the messages that have been starred is on the right of this screen
2
 
yes.
 
if this chat was a boat, it'd be the starboard side
3
ha ha i'm so amused
 
1:36 PM
 
ha ha
 
Any guesses what's hidden under there?
 
@SuperJedi224 WHOA THAT'S BEAUTIFUL
 
@SuperJedi224 is it parkour
 
@undergroundmonorail you need to sleep
 
1:36 PM
is it more dirt
 
sleep is for the weak
 
No, that's elsewhere. Underneath the fake hill there's a clock circuit with some command blocks.
 
oh oh it's hiding
a clock circuit and command blocks
 
why not just move it a little bit underground so no hill?
 
This is the enterance to the actual course
 
1:38 PM
cool!
 
What should I put after the blaze room?
 
a big "420"
 
...why
 
> blaze room
 
Oddly, this seems to be easier than the first parkour section
 
1:45 PM
0
A: Sandbox for Proposed Challenges

LegionMammal978A Mapping of Primes code-golf primes sequence Recently, I have found a bijective mapping f from positive integers to finite, nested sequences. The purpose of this challenge is to implement it in the language of your choice. The Mapping Consider a number n with the factors . Then: For examp...

 
do you guys think flawr finds aviation tragedies or causes them
 
It seems the pilot wanted to land on the dolly but missed it a bit, what caused the rear rotor to touch the ground.
@undergroundmonorail correlation != causation
 
user image
5
 
2:47 PM
What is the (dum)BEST reason you can think up for golfing a program?
 
@Stefnotch Hello, World!
 
@Stefnotch Hi
 
Hi!
An example of a reason:
To make the program hard to read and thus, fool-proof. No idiot will be able to mess around with it.
 
@Stefnotch A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools
 
Interesting, what would be something that actually is foolproof?
 
3:03 PM
Douglass Adams said that, obviously.
 
The writer of a hitchhiker's guide to the galaxy?
 
Yes.
 
XD (I never read that book...)
 
The line's actually from Mostly Harmless, part 5 of the so-called trilogy.
 
Anonymous
@SuperJedi224 The fifth book in the increasingly inaccurately named Hitchhikers Trilogy*
 
3:15 PM
@Mego Exactly
 
Anonymous
@Stefnotch You're writing it on toilet paper and the roll is almost empty
 
Anonymous
Doubles as the shittiest reason
 
Good one! XD
 
Anonymous
4:10 PM
dead chat is dead
 
@Mego Yeah. I know.
I've got my bot up in Beep Boop Maggot again
@RetoKoradi Hi
 
4:30 PM
hi
 
@Stefnotch you should!
 
@TheDoctor Hi
 
4:53 PM
> there are no two adjacent real numbers.
 
Anonymous
@TheDoctor no
 
@TheDoctor The irony is that whoever made that HAS to be good with computers/web stuff. :P
 
Anonymous
...something very strange is going on
 
@phase Mother 4, that one game that'll come out after HL3
I swear I've been following that project for 4 fuckin years and I always get so excited when they say "It's almost here" and in the end each "set date" was always a lie
 
Anonymous
4:59 PM
jgjklslfgjhsfhjsklfhkjt
 
Anonymous
    print ord("Σ")
TypeError: ord() expected a character, but string of length 2 found
 
Anonymous
whyyyy are you just now doing this to me python
 
Anonymous
this isn't even python3 with its silly builtin default unicode strings
 

« first day (1757 days earlier)      last day (3079 days later) »