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

5:00 PM
@Mego Maybe you have an invisible separator?
@quartata - have you heard of Miegakure?
 
Anonymous
@El'endiaStarman Hexdump says no
 
Anonymous
Time to do this the hacky way
 
> Unsupported characters in input
 
Anonymous
@TheDoctor # coding: cp437
 
Anonymous
5:10 PM
I really should just refactor the Seriously interpreter so that it expects a list of bytes as input
 
@El'endiaStarman No looks cool though
 
Anonymous
That'll help a lot in the python 3 transition
 
I have 52 github repos
 
Anonymous
Btw I got the offer today to make Seriously a new-layout repo, I did it
 
@Mego i think that's just the style of the page, not per-repo
 
Anonymous
5:13 PM
@TheDoctor It is per-repo
 
Haskell is cool and lets you do all sorts of neat stuff:
fibonacci :: Integer -> Integer;
fibonacci 0 = 0;
fibonacci 1 = 1;
fibonacci x = fibonacci(x-1) + fibonacci(x-2);
main = do i <- getLine; print(fibonacci (read i :: Integer));
 
Anonymous
Or not
 
Anonymous
Huh
 
Anonymous
It said it was per-repo
 
(before anyone asks why I'm starting with 0 1 it's really starting with an index of 1 not 0)
So the "first" Fibonacci number here is 1
 
5:15 PM
@Mego not for me
 
Anonymous
> Or not
Huh
It said it was per-repo
 
Anonymous
Maybe I just misread it
 
just go to another repo and see if it stays
 
Anonymous
5:26 PM
Trying to support both Python 2 and Python 3 is a nightmare
 
Anonymous
Especially when I'm not used to all of the string intracacies of Python 3
 
@Mego Why bother?
I mean, most people have both versions. Just pick one.
 
Anonymous
@quartata Because I plan on eventually moving all the way over to python 3
 
Anonymous
But until the python3 branch is stable, I'm still developing in 2
 
Hm
 
5:32 PM
Hello, everyone!
 
Anonymous
Hi Alex
 
9 hours ago, by Sp3000
Hi Alex
 
Anonymous
We're not original in our making fun of Alex
 
Lazy evaluation is actually a really interesting idea; however I think it would be nice if (like OCaml does I believe) Haskell provided a "force" method that turned it off for a certain call
Does anyone know if Haskell has something like that?
 
Why is this 128 bytes? Each of these characters is below 255 mothereff.in/…
 
5:38 PM
@phase UTF-8?
 
Not using unsigned bytes for some reason?
 
Does UTF-8 have different characters for bytes 127-255?
 
Anonymous
128-255, yes
 
Anonymous
Bytes 128-255 in UTF-8 aren't single characters; they're either invalid or act like pointers to other tables
 
Anonymous
For example, C2 A9 in ISO-8859-1 is ©, but is © in UTF-8
 
Anonymous
5:49 PM
C2 "points" to the Latin-1 table (aka bytes 128-255 of ISO-8859-1) in UTF-8, and the next byte, A9, yields ©
 
Anonymous
So in UTF-8, only ordinals 0-127 are single bytes; the rest are interpreted as prefixes to multiple-byte sequences
 
@Mego Why don't you point us to a Wikipedia page, it will be much easier :)
 
Anonymous
Because this is a simplified explanation of what the Wiki page says
 
Feb 1 '11 at 0:22, by sepp2k
Haskell is stupid. It's function names have too many different letters.
Just felt like going through the transcript for some reason
Feb 3 '11 at 22:51, by Juan
Ok, I give in, this weekend I'm learning golf script
Feb 3 '11 at 22:52, by Juan
It's driving me nuts seeing all those answers that best mine and not knowing how any of them work
s/golf script/Pyth/g
 
Anonymous
s/Pyth/CJam/g
 
Anonymous
5:58 PM
s/CJam/gs2/g
 
@Mego This isn't true, gs2 is actually really simple.
Pyth (to me at least) makes no sense though.
 
Anonymous
s/gs2/<all the new golfing esolangs coming out of the woodworks now>/g
 
Anonymous
Vitsy/Seriously/O/Rotor/5-blocks-on-anything-but-Firefox/Gol><>/TeaScript/Japt
 
Feb 9 '11 at 3:31, by gnibbler
my golfscript for graham's number runs fast enough (just) but is still longer than Python :(
Those were the days...
 
Anonymous
The glorious days of Python superiority
 
Anonymous
6:01 PM
And then Pyth was made and some wept while others rejoiced
 
Anonymous
Fast-forward to Seriously, it's weeping and puns all the way down
 
Nah, CJam came first
Still funny to think that there was a time where Python could beat the standard golfing lang
 
Anonymous
Rarely happens now
 
This was 2011 after all
A time where gnibbler still had his vocal cords
 
Anonymous
It's a shame about his accident
 
Anonymous
6:04 PM
Nobody knew llamas like larynxes
 
Whoa a wild SE employee appears
 
Anonymous
sets coffee trap
 
Jan 28 '11 at 4:38, by Chris Jester-Young
tap tap tap Anybody here?
Wow that was a long time ago
 
Anonymous
You should not have tapped on the chat
 
6:06 PM
@quartata Yeah, I am user #3 after all. And no, wasn't an employee back then, either.
 
Anonymous
Look what (eventually) happened
 
@ChrisJester-Young I know...
 
I remember when this chatroom used to get like 5 messages at most every day, sometimes none. It wasn't even called The Nineteenth Byte back then :P
 
sniff our greatest pro-tem snapped up by the jaws of our cruel dictators
 
Awwww....
 
Anonymous
6:07 PM
It's just a matter of time before Doorknob gets hired :P
 
I'm not sure Doorknob can legally work in the U.S yet
 
^ :P
 
In a couple years I'm sure they'll be coming for him though
sniff
 
Anonymous
Once they figure out how a doorknob is capable of typing, they'll grab him
 
Anonymous
@quartata Wow I knew the rest of the country didn't like Texas but that's a whole new level
 
6:09 PM
@Mego And here I thought it was about child labour laws, but okay.
 
Anonymous
@ChrisJester-Young You guys have those in not-Texas?
 
It was, but Mego is trying to imitate Alex's sense of humor
And failing!
 
Anonymous
@quartata No I'm not, I'm actually funny
 
Anonymous
In Texas, from the moment babies pop out, they're expected to hop in the tractor and get to work
 
@quartata hah, I started reading about Haskell yesterday... That's about as far as I got...
 
6:12 PM
@MartinBüttner So far I'm pretty excited about Haskell actually
It looks like it doesn't completely suck
 
Anonymous
I tried to run a Haskell program once. It didn't work. That's the entirety of my experience with the language.
 
@Mego That means you aren't trying hard enough. You must learn you a Haskell for great good.
 
Now you're making me want to implement golfing-language-du-jour in Haskell.
 
@ChrisJester-Young So you can't use it after today?
 
Anonymous
@quartata Eventually.
 
6:13 PM
Better get cracking on it.
 
@quartata BTW remember that (very recent) time I best Ruby with Labyrinth? The answer now also beats Perl, Matlab, python and Julia and is tied with Vitsy and ESMin ;)
 
@MartinBüttner ooh
 
@quartata Lol.
 
Anonymous
@MartinBüttner I think you mean 5-blocks-on-everything-but-Firefox
 
@ChrisJester-Young Wow, I'm typing with very poor grammar today.
Fixed so the joke makes sense
 
6:14 PM
;-)
 
@quartata I think this is how Fibonacci numbers are supposed to be defined.
 
Anonymous
I had to google what "du jour" meant, but I laughed once I understood
 
@Mego yeah that
 
@MartinBüttner Yeah, but sometimes people get a little too computer sciencey and kill people who use stuff that isn't 0 indexed
I myself hated Octave for many years because stuff was 1 indexed
 
Anonymous
@quartata That's how I have fib numbers defined in Seriously :P
 
6:16 PM
It is though, if you consider the Fibonacci numbers starting at 0
 
Anonymous
@quartata Oh man you should try VB/.NET
 
Anonymous
Dim var As Integer(5) means create a 6-element array
 
@MartinBüttner It does depend on who you're talking to though. Some people start it at 1,1 not 0,1,1
@Mego what
I was trying to learn Visual Basic yesterday but now I think I'll just give up.
Why, why would it mean make a 6-element array?
 
@quartata Why would you want to learn Visual Basic? O_o
 
Anonymous
@quartata Dim var as Type(n) defines a variable var, an array whose elements are of type Type, where the maximum index is n.
 
6:19 PM
@Mego I see
@Doorknob Because one of the things on my bucket list is to learn all the .NET languages
C#, F#, VB and whatever else they've got in that hellhole
 
Anonymous
So the valid indices are in [0,n], whereas in every sane language they're in [0,n)
 
@Mego I guess that makes sense, if you're crazy.
 
'Tis a pity Mac users can't install Visual Studio
 
Anonymous
@Sock Mono
 
@Sock I'm on Linux.
The magic of Mono
 
6:21 PM
Mono?
 
@Sock Mono.
You know, that thing that'll probably get DMCA'd by Microsoft in 10 years or sew
 
Monopoly?
 
@quartata sew?
 
Mono is a free and open source project led by Xamarin (formerly by Novell and originally by Ximian) to create an Ecma standard-compliant, .NET Framework-compatible set of tools including, among others, a C# compiler and a Common Language Runtime. The logo of Mono is a stylized monkey's face, mono being Spanish for monkey. The stated purpose of Mono is not only to be able to run Microsoft .NET applications cross-platform, but also to bring better development tools to Linux developers. Mono can be run on many software systems including Android, most Linux distributions, BSD, OS X, Windows, Solaris...
@Doorknob I like using weird words in weird situations
 
Anonymous
6:23 PM
@quartata To make things better, the System.Collections.Generic types act like sane types - List(Of String)(200) makes a list of strings whose initial capacity is 200 (not 201)
 
I just noticed something on the wikipedia page for Mono:
> Written in: C, C#, XML
> Written in: XML
> XML
 
Anonymous
Oh, and this all is breaking the behavior of previous VB versions, where Dim var(10) as Integer made a 10-length array (with indices in [1,10])
 
Anonymous
(earlier example should be Dim var(n) As Type)
 
So they pulled a Python 3?
 
Anonymous
?
 
Anonymous
6:25 PM
Sort of
 
@quartata ?????
 
Anonymous
Python 3 broke backwards compatibility to uphold the principle that there should be one correct way to do things
 
so no more??
 
Anonymous
(more functions, less statements, consistent behavior, and one way to "spell" something)
 
Anonymous
VB.NET broke backwards compatibility because Microsoft logic
 
6:32 PM
TIL you can add feeds to rooms where you are the room owner, and the "New Main Posts" bot is actually a feed
Interesting
Too bad the RSS feed is super slow
 
twoyearsagoILearned that, yes
 
@quartata The 0th Fibonacci number is 0. The 1st is 1.
And the -1st number is 1.
So it's correct to say that the first Fib number is 1, but by no means is the the start of the sequence, since the sequence in infinite in both directions.
 
I'm surprised we don't have an "implement SHA-2" challenge
 
@quartata if it helps googling, apparently the opposite of lazy evaluation in Haskell is called strict.
 
@MartinBüttner So they do have a type for it?
Cool.
It would be kinda difficult to do things like sockets with lazy evaluation
"Nah we're not going to send that packet until we need the return code 15 minutes later"
 
6:55 PM
Do you guys know a link shortener that can handle 80000+ characters?
 
Why?
 
Permalink.
 
Did you try www.goo.gl?
 
> There was an internal error. Please refresh.
 
Which websites did you try?
Here is a list of url shortening services.
 
7:05 PM
That one and TinyURL. Tiny has worked for me in the past for rather huge URLs, but 80k is simplt yoo much...
> Unable to shorten that link. It is not a valid url.
ow.ly just displays a blank page and tr.im chops off at a random point...
 
Maybe you can create a URL shortener with code...
 
Nah, people will just have to copy and paste manually...
 
Dennis: Permalink to what lang?
 
CJam/Pyth.
 
both, eh
 
7:14 PM
It's for this challenge:
4
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...

 
@Dennis I don't even think URLs that long are covered by the relevant RFC
 
They aren't.
 
2668
A: What is the maximum length of a URL in different browsers?

Paul DixonShort answer - de facto limit of 2000 characters If you keep URLs under 2000 characters, they'll work in virtually any combination of client and server software. Longer answer - first, the standards... RFC 2616 (Hypertext Transfer Protocol HTTP/1.1) section 3.2.1 says The HTTP protocol doe...

 
Copy/pasting in the address bar works just fine though.
Yay! I made the CJam answer shorter than the Pyth answer.
 
7:18 PM
Restrictive input formats ftw. :D
 
pretty clever solution
@MartinBüttner I posted the Purple Hello, World to your catalogue. Satisfied? :P
 
Yes, nice explanation :)
 
I also squeezed the interpreter to 718 bytes. I would love to see what a Pyther or CJammer could do with it.
 
hello all!
 
hello 2u2
 
7:33 PM
I haven't got any positive response for my chemistry answer.. I will work on writing a Pyth and Seriously (it will be seriously hard to write in Seriously! ;) ) answer...
 
7:44 PM
@quintopia post a challenge
It might actually be quite fun to implement in CJam
(I'm slightly appalled by the idea that you golf the reference implementation though :D)
 
@Mego Woohoo Minkolang's not on that list! It must make sense to people! :P
 
@MartinBüttner Well, one of my goals in creating it was to make a language with a small interpreter, so how would I check if I'd succeeded without golfing the interpreter as I wrote it?
 
Fair enough :)
Definitely sounds like sufficient motivation for making it a code golf challenge ;)
 
@Mego ....welll.....?
 
@quintopia (since you haven't written any challenges yet, I'd recommend trying out the sandbox)
 
7:59 PM
obvi
 
I wish that reaction was more common :)
 
Well, I've read enough challenges to be able to tell good from bad, and I'm not a bad writer, but I don't want to go ruffling feathers.
 
@isaacg you should have a pyth to python converter!
 
is there a challenge already for the shell command "cat" (not the common echoing program of the same name)
 
As in, given a file name, output the contents of the file?
 
8:04 PM
as in do all of the things cat does, including concatenating files
 
ahh
I don't recall such a challenge.
 
how do you initialize variables in pyth?
 
@quintopia not exactly. I think the kitten challenge essentially required that though
 
maybe @Dennis knows
 
@MartinBüttner link?
 
8:07 PM
@TanMath assign a value to them?
 
46
Q: The kitten command

TheNumberOneA kitten is much like a cat. Some of the main differences are cuteness, lack of intelligence, and size. Similarly, the cat command is different from the kitten command. Fortunately, there is only one difference in this case. In the kitten command, all uppercase letters are replaced with lowercase...

 
@Sparr how? just like python?
 
=[var][value]
 
@TanMath J and K are auto-initializing; J1 saves 1 in J.
 
@MartinBüttner cute
 
8:09 PM
@Dennis ok.. thanks!
 
hello
i wanted to know one thing. I want to read shape file through QGIS and i want to make this DLL. Please guide me how can i add QGIS libraries to this DLL?
I have searched alot but no luck
and also tell me one thing
will this be mandatory that on other computer where this DLL will be deployed should have same version of QGIS installed?
 
what is QGIS
 
@MuneemHabib you are probably in the wrong place
 
i want to have gis discussion
 
is that something to do with google image search?
 
8:17 PM
@Sparr he is definitely in the wrong place
 
@quintopia geographic information systems
 
ah
 
@MuneemHabib this channel is not the right place for that discussion. This is for programming puzzle discussion.
 
@MuneemHabib start here:

 GIS

Jump in and ask questions or talk about anything GIS.
 
@MartinBüttner You mean remove the feature of accepting answers? o_o
@Sp3000 :) Sock is not me.
 
8:28 PM
(insert table emoticon)
 
Oct 1 at 20:39, by Alex A.
@ಠ_ಠ is not my sock! (╯°□°)╯︵ ┻━┻
 
@AlexA. I do. Would probably solve some of the problems we have (and if it happened, it would be a nice acknowledgment on SO's part that PPCG has some different requirements than a Q&A site without actually requiring much dev effort)
 
@Sock is not @Alex's sock! (╯°□°)╯︵ ┻━┻ @ಠ_ಠ
 
I currently have no sock accounts! (╯°□°)╯︵ ┻━┻
 
@Dennis why is this pyth code giving an error?:
 
8:30 PM
> currently
 
Jx"abc""c";J
 
@El'endiaStarman Someday maybe :P
 
@El'endiaStarman you beat me to it
 
the error is:
Traceback (most recent call last):
  File "pyth.py", line 677, in <module>
  File "<string>", line 5, in <module>
TypeError: imp_print() missing 1 required positional argument: 'a'
 
What are you trying to do?
 
8:32 PM
@Dennis I am trying to find the index for 'c' in the string 'abc'
 
Isn't that accomplished using Q? (I can't remember offhand)
 
@TanMath And save the result in J?
 
@Dennis yes, then print it
 
Remove the ;.
 
it prints the result, but gives this error as well
@Dennis didn't work
 
8:34 PM
It should/does.
 
Is there a concrete set of chars that can be variables in Pyth? Is it just the preassigned stuff? (pyth.readthedocs.org/en/latest/…)
 
Yes, those say variable in the details.
I think it's GHJKNTVYZbdkz.
 
@MartinBüttner Did we at some point decide that Q&A regarding golfing languages was off topic? For example, can someone ask "How do I do X in Pyth?" here?
I actually think I remember recommending adding tags on SO and doing "how does X pls halp" there
 
@Dennis But how do you reassign them (besides J and K I guess) if you need more variables? (Sorry, total Pyth noob here.)
 
With =. =z2 saves 2 in z.
 
8:42 PM
@AlexA. no we didn't. That's why I'd really want to separate the challenges from all non-challenge posts, but that is serious dev effort and probably not going to happen anytime soon, if ever.
 
@Dennis of course, thanks :)
 
@Calvin'sHobbies = also takes an operator. =+z2 adds 2 to z.
 
Anyway, I don't think that decision (about disabling checkmarks) should be guided by a type of question we get once whenever the planets line up.
 
@MartinBüttner Well, we have , which separates them
@MartinBüttner Haha right, that's not what I'm saying
 
I think we have different definitions of "separate" ;)
 
8:44 PM
Well, I mean separate in a some mild sense
 
@AlexA. right, I can't see what message you replied to (mobile)
 
@MartinBüttner I can't help but wonder if you chose that metaphor because of a certain challenge posted yesterday... (Syzygy - when at least 3 planets line up.)
 
I haven't read that one
 
12
Q: Clock Hand Syzygy

Mego(massive thanks to El'endia Starman and Sp3000 for helping me design test cases for this!) Given a positive integer n and a list of positive integer rotational periods for a number of clock hands (in seconds), output the smallest positive integer x where x seconds after starting the clock with a...

 
Oh, nice coincidence :)
 

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