« first day (1327 days earlier)      last day (3533 days later) » 

12:01 AM
right?
 
 
4 hours later…
3:45 AM
>>help
oh, crap. the bot is gone
 
 
3 hours later…
6:53 AM
lets make runnable from stack snippet question..
and then this site have mini game lib
 
7:23 AM
@PeterTaylor I was discussing with COTO how many leading and trailing zeroes you'd need in the phinary challenge so as to not have to extend the number of digits dynamically during the computation. The leading zeroes are easy to figure out by just looking at Σ(n=0,∞) 9/φ^n, but do you have any idea how to put an upper bound (which I think will depend on n) on the necessary trailing zeroes?
 
 
1 hour later…
8:32 AM
@MartinBüttner, looking at the asymmetry in the expansion rules I would guess that twice the bound for leading zeroes would be a conservative bound for the trailing zeroes.
 
 
1 hour later…
9:44 AM
@PeterTaylor So you'd say it's constant? I would have thought as I take more and more (larger) digits I would be able to form arbitrarily small differences between them, so that the lower bound would depend on n. But maybe my intuition is wrong there.
 
10:05 AM
Fibonacci number F_i = a \phi^i + b \phi^{-i} where IIRC a = b = 1 / \sqrt 5, so I'd expect it to be roughly symmetrical, but the substitution 0200 -> 1001 suggests that maybe stuff expands in general about twice as far down as up.
 
I'm not sure what the Fibonacci number has to do with it. The input isn't limited to integers.
hm, then again, I guess every number could be decomposed into Fibonacci numbers shifted up and down a few digits
btw, your formula is almost correct, except it's - b (-phi)^-i
 
Integers are a good starting point for an intuition, though.
 
Hmmm, I think exponential increase in digit value might also justify a finite number of trailing digits.
what do you calls these puzzles, where you've got a grid of letters and you need to find certain words horizontally/vertically/diagonally?
 
word searches?
 
thank you
wow, I really can't find any word search-related PPCG challenges
off to the sandbox
 
10:19 AM
what would the challenge be?
solve a word search, code golf?
or maybe find one word in a word search grid?
 
the latter
basically "implement a find_substring method that also checks vertically, diagonally and backwards"
 
that does seem better
though fastest code to solve entire word serach could also be interesting
 
I'm not too fond of dictionary-based puzzles
 
Hasn't there been a 2D pattern-searching question?
Well, there's the recent programmer's garden, which is almost the same thing as a wordsearch.
 
Well, I guess this one would be a bit narrower. That one requires repeated search and incremental elimination of found patterns. And I'd assume searching for a 1D string (in 8 directions) is a bit different than searching for 2D block.
 
10:38 AM
posted
 
0
A: Sandbox for Proposed Challenges

Martin BüttnerWord Search Substring Given a text (which may contain new lines) and a search string, determine if the text contains the search string. The catch is that you're not just looking for the usual substring, but you're treating the text like a word search puzzle: the substring may appear: horizonta...

 
11:15 AM
@PeterTaylor actually, the 0200 -> 1001 asymmetry might be cancelled by the 011 -> 100 asymmetry. e.g. 00400 -> 10101`, or even 00000800000 -> 1000100010 .
hm, no looking at the first 30 integers in phinary, it seems that they expand either the same in amount in both directions of one digit further towards smaller digits
 
12:11 PM
@MartinBüttner By the way, I've been waiting to handle your comment flag on the animation post because of this.
 
kk, no problem
@PeterTaylor saw your comment on the boggle board. what's wrong with "Improve Edit"?
 
12:51 PM
Once I've approved the edit, it's too late.
 
Ah, I see.
didn't think of that
 
1:17 PM
How does one even manage to pack so many problems into one post?
 
Well, at least he's trying to edit it. If I had any idea what he wanted, I might be tempted to edit it further.
 
@Geobits Something with gps coordinates and complex paths
 
Thanks, I got that ><
 
Clearly your output needs to look like 50.4343323. What is so hard to understand?
 
You forgot half the output...
 
1:23 PM
@Geobits maybe the path complexity is a tie breaker?
 
It's also possible he has no idea what he means himself.
 
Just change the spec to "The shortest longest program wins." (longest is the tiebreaker)
 
He kinda seems to assume that we already know what his Java riddle is about.
 
It's one thing to copy a problem from another site, it's another thing to fail to copy a problem from another site.
2
 
"What's the difference between a house?" ... "And?" ... "Sorry, I'm not allowed to help!"
 
1:25 PM
0 0 is a valid coordinate, right? Or does it have to be GPS coordinates??
 
Is 0 0 not a GPS coordinate?
 
@Geobits 0 is a valid coordinate. Or does it have to be 2D?
(is the empty tuple a valid coordinate in 0D?)
 
0 0 - Wherever the prime meridian and the equator intersect
 
I think I might get it
maybe
 
The things I learn at Stack Exchange
 
1:27 PM
@Rainbolt somewhere south of here
 
the input is a gps coordinate
and you must find another gps coordinate that is difficult but possible to reach from the input location
I'm not sure how this path complexity would be defined though
 
Look at his edit descriptions and maybe you'll feel a bit more sympathy lol
 
Maybe the coordinates are fed into google maps and the longest route description wins?
 
I would never have guessed that he didn't know English too well. His was flawless in the post.
 
1:40 PM
If we give him two upvotes, we can ping him into the chat
 
For some reason it bothers me that lat/long are now referred to as "GPS coordinates" almost exclusively.
 
@Geobits I never cared for all these newfangled 'gadgets' either give me a map and a compass and I'll be happy.
Same goes for toilet paper; in my days we used leaves and it suited us perfectly fine.
 
rrrrrright
time to change the topic
guys, could you give me some feedback for this? meta.codegolf.stackexchange.com/a/2203/8478
especially whether I should add the assumption that the input is rectangular or not (in the latter case, I'd add an example for that as well)
 
i'm on the case
i think you should make the input rectangular
it just adds tedium if you don't
 
well you could always pad the input with tabs (or something) to reduce the non-rectangular case to the rectangular one
 
1:50 PM
i mean, you already have 4 orientations for words and 4 boundaries, so letting the input be arbitrary seems like a hassle for everyone
 
good point
 
yeah, but as I said, tedium. I think it's best if you just make the input nice
you might also want to indicate whether you want it to be case-sensitive
 
@EricTressler there's an example that covers that, and the input is printable ASCII (so there's no obvious reasons why letters should get special treatment), but I can mention it explicitly
 
since your example implies that you don't care, but you never actually say so
oh, right; there is one
I would still make it explicit, since it's bound to cause problems if you don't
 
1:54 PM
also, you have "Wikipedia;s"
 
thanks, changed, added and fixed
I'll add another example grid with other stuff than upper-case letters tomorrow
 
are you on GMT
 
well currently UTC+1, but generally yes
unless you didn't mean greenwich meridian time
in which case I have no idea what you're talking about
 
no, i did
is all of the UK in the same time zone?
 
1:57 PM
i was just curious, i have no good reason for asking these things
 
@overactor Oh I love GPS, that wasn't what I meant. I mean that people now seem to think that the coordinate system was invented by or belongs to "GPS" or something. You might as well call them "boat coordinates"; they've been using them a lot longer.
 
@EricTressler the only European country with more than one time zone is Russia: en.wikipedia.org/wiki/Time_zone#mediaviewer/…
(and the first change on time zone they have is basically outside of what is considered Europe)
 
and Saudi Arabia is at a +30 minute time zone
which I found interesting. i guess geographically, it makes sense, but it must annoy a lot of software developers
 
PPCG challenge: Given a GPS coordinate, print the local time. You may use the current time in UTC. You may not use any other date/time library functions.
 
oh god
no, thank you
 
2:00 PM
@EricTressler Time zones in general annoy a lot of developers I think.
 
have you seen the time zone map? it's not just longitude-based
it's bumpy
 
Yea, it's stupid-based
2
 
@EricTressler I wasn't being serious ;)
however... speaking of PPCG challenges... I've added examples to this one? does it look ready to go?
2
A: Sandbox for Proposed Challenges

Martin BüttnerMixed Base Conversion code-golf arithmetic number-theory Background Most people on here should be familiar with several base systems: decimal, binary, hexadecimal, octal. E.g. in the hexadecimal system, the number 1234516 would represent 1*16^4 + 2*16^3 + 3*16^2 + 4*16^1 + 5*16^0 Note that ...

 
i know, but i had a visceral reaction anyway, because it's such a horrible idea
there's a funny youtube video about how awful it is to make a perpetual calendar
crap; I can't find it
and i forget the guy's name
 
would you mind quickly checking that challenge proposal? :)
(I couldn't check out the video right now anyway)
 
2:09 PM
@MartinBüttner You missed France (overseas départements) and Spain (Canary Islands).
 
so you're using 2 digits to represent a single digit, after the numeral 9?
 
@Geobits I think that calling them GPS coordinates is more precise than calling them lat and long because it implies that you're using the WGS84 geoid.
 
@PeterTaylor oh yeah, if we're counting that, the british empire probably still wins ;)
@EricTressler ummm, where?
oh yes
that's why it's a list of digits
and not just a number
 
don't you still lay claim to Tierra del Fuego or something?
 
(see examples)
@EricTressler I don't
 
2:11 PM
@EricTressler, are you thinking of the Falkland Islands?
 
yes!
@PeterTaylor that's exactly what I was thinking of
 
But the Canaries aren't quite the same. They're politically a part of Spain, not a colony. And if you listen to the radio in Spain they give all the times in both timezones.
("Son las cuatro veintitres, una hora menos en Canarias")
 
@EricTressler any other comments/complaints?
 
@MartinBüttner no, but I confess that I find it a little dull, for no good reason
 
2:16 PM
meh :D
 
there's nothing really wrong with it. maybe it's just me
 
well, let's see how it goes
0
Q: Mixed Base Conversion

Martin BüttnerBackground Most people on here should be familiar with several base systems: decimal, binary, hexadecimal, octal. E.g. in the hexadecimal system, the number 1234516 would represent 1*16^4 + 2*16^3 + 3*16^2 + 4*16^1 + 5*16^0 Note that we're usually not expecting the base (here, 16) to change f...

 
2:32 PM
@EricTressler After initially posting only questions which were apparently all a bit too difficult, I've been trying my luck with simpler (mostly golfing) questions in the past two week. It's actually an interesting challenge to come up with something simple and interesting that's not a duplicate. ^^
 
@PeterTaylor In my experience, people use the term "gps coordinates" no matter what they're actually talking about. The geodetic system used is up to the receiver anyway, and can be changed in some (military aircraft have this option due to varying maps used as references).
 
yeah; and unfortunately, I'm bad at golf, so I can't participate well
i mostly open up questions and see ridiculous byte-counts for CJam or whatever, and move along
 
it's a fun exercise though ;) ... you really learn some interesting lesser used features of your language
@EricTressler ah, but the point of golfing is not to beat CJam ^^
2
 
that's true. I guess if I'm submitting an answer in C++, I shouldn't expect to beat golfscript or anything
 
The point of golfing is to beat the PGA pros :D
 
2:34 PM
...
 
Well I thought it was a good analogy. I don't know anyone who golfs that thinks they're the best out there (actual golf).
 
@EricTressler if I'm writing a Ruby submission that beats all Python and JS submissions I'm generally very happy about that, regardless of there being a GS or CJam or J or APL answer
 
C++ has to be one of the worst languages for golf
well, it probably beats Fortran
 
I think it should be able to beat Java and C# in some cases.
 
I've seen it beat Java :(
 
2:36 PM
and, it compares favorably to Shakespeare
 
And you don't usually want OOP on code golf, so you can revert to C and make it even shorter
lol
 
And Java beats C# in the one or two cases I've seen them both compete.
 
I conflate C/C++
even if you're not using OOP, C is a better language with the inclusion of the STL
 
@Geobits cough codegolf.stackexchange.com/questions/34773/ascii-train-golf/… (that was a pretty epic showdown, plenty of small things he could still do though)
 
@VisualMelon I didn't see that one, nicely done. Although, I can spot 6 in the Java one that can immediately go away. I may take some time to golf it later to try to beat you :D
 
2:42 PM
@VisualMelon You can save at least one too.
 
@SohamChowdhury Ah, nice to see that you got the bot running! :D
 
"Consider these seven ASCII train cars" is probably a neologism
 
@Rainbolt I'm going to add a per-command help, so you can just run >>help translate to see the arguments.
 
@VisualMelon I suppose I should amend that to "Java beats C# in the few where I've participated with Java" ;)
 
2:44 PM
for(j++;j>0;j--)a+=h; with no use of j inside the loop => for(j++;j-->0;a+=h);. (Or a+=h*j+h;j=0; for even more saving)
 
umm... have I posted the same thing 3 times or is my SE chat messed up?
 
You did.
 
ok, sorry about that, my SE did mess up at some point
 
Am I the only one that finds this hard to follow? codegolf.stackexchange.com/q/37906/14215
 
@Geobits no
 
2:47 PM
@Geobits My head's hurting already.
Though to be fair, I DO have a cold.
Heh, the title of that question is cut off in my browser tab so it says: "String Bit Man"
 
I also think it's a little hard to understand
"1. take the string and extract the bits of each character and form a long string of zeroes and ones, appending each character."
what does that mean
 
@Geobits I get it now
@EricTressler string.map(to_char_array).map(to_bit_string).join
 
I got stuck at "for every pair of numbers x and y in the number string do:"
 
Yeah, I sort of get it now, but it could be a whole lot clearer
 
@PeterTaylor just seen the int[] byte I can save... my excuse is that was my first bit of serious golfing and I hate the var keyword :P
 
2:53 PM
Since it has to be an even number of digits and he gives a "reversed" example, I guess it's pairs "aabbccdd"?
 
missing that for-loop is shaming as well
 
don't hate on the var keyword. weak typing is your friend
 
I hate weak typing
 
:( weak typing is upset
 
it's not even weak typing
 
2:54 PM
I hate duck typing, I hate loose typing, I don't like type inference
wow, my typing
 
@MartinBüttner it isn't?
 
Weak typing sounds like something a small child would do with a keyboard.
 
@VisualMelon that is some weak typing right there
 
@EricTressler no, you can only use it if the compiler can infer unambiguously at compile time what the type is
 
i guess i don't know what weak typing is, then
what's the distinction?
 
2:56 PM
there is an & I can lose as well
 
also, if anything it would probably be dynamic typing and not weak typing (but it's not)
okay
 
@EricTressler That aside, weak typing is the enemy of the maintenance programmer.
 
dynamic vs static: dynamic = determined at runtime, static = determined at compile time
weak vs strong: weak = you can change the type of a value (e.g. C casts), strong = you can't
 
I agree with that, but now I have to google that term
 
I think the technicalities are a bit more sophisticated, but that's the gist
 
2:58 PM
ah
okay, that makes sense
 
Weak vs string is a much debated distinction
 
wow, that is the most opinionated wikipedia article I've ever seen
 
@Martin For mixed base, your 190315[2,10] example seems strange to me. You say below it that the rightmost base (10) corresponds to the least significant digit (5), and then you go left from there. If the 5 is in base 10 (5*10^0), shouldn't the next digit 1 be some form of base 2 instead of 10^1?
 
It's a 1 in base 2 in the 10s column.
To its left is a 3 in base 10 in the 20s column.
 
Ok, I see where I was going wrong.
 
3:05 PM
ah, great you guys settled it, I was busy on the string encoding challenge :D
 
sorry, I disappeared, var is an inferred type with lots of restrictions on use - in F# the type inference is fun, and automatically makes your code generic
 
You're on a road trip with three friends, Eiko, Biko, and Shiko. You decide is so much fun that next year you want to go on a trip with Eiko, Eiko, Biko, and Shiko to change things up. Except you don't decide that, because the idea is absurd. — Malice Vidrine 12 hours ago
 
Iko Iko is a great song
 
I have no idea what the lyrics are supposed to mean, but I still like it
 
3:29 PM
okay, this is childish but I just golfed down 10 bytes using "the booby regex" codegolf.stackexchange.com/a/37907/8478 :D
 
4:17 PM
@Geobits Do you think I could phrase it more clearly?
 
I don't know, I was just reading at it the wrong way. I don't know if others will. Nobody else seems to so far :)
 
or they've given up :D
 
@ProgramFOX Hey, I thout of that first! sandbox pout
 
I think I've broken my streak with this question :D
but we'll see... Jan Dvorak posted so many comments, he must have been working on an answer :D
 
@SohamChowdhury It got requested many times in Shadow's Den, the room in which the bot ran initially :D
 
4:23 PM
What are spells BTW?
 
@Martin I recently broke my perfect Nice Question rate with a stupid question about fenceposts.
 
@SohamChowdhury It's a feature specific to Shadow's Den. Posting specific messages/commands can lead to getting a spell. The exact way to get them is secret.
 
What do they do?
 
@SohamChowdhury Nothing special, it just tells you when you get one. Though achieving spells are a part of the game in that room, so I added it.
 
4:26 PM
@Geobits ah, that's unfortunate. I thought it was actually quite nice. can't be helped. except by waiting for it to accumulate the remaining upvotes randomly over a couple of years :D
 
@ProgramFOX I'm having fun hacking w/ the bot, hope you don't mind. A custom PPCG bot to your Shadow's Den one, if you will! :D
 
@SohamChowdhury I don't mind, feel free to add more features! :)
 
4:42 PM
hi all
 
how things?
 
Fine, thanks.
 
good :)
 
4:45 PM
hi
 
I'm looking for a nice name.
For teh bot, not a baby k?
 
I need a userscript that hides 'hi' messages if more than one are present within ten messages of each other.
4
 
sorry, i only said "hi" to be mildly annoying
 
Why the condition?
 
4:48 PM
One isn't that bad. The recent trend of stringing them is getting to me (though I may have helped start it...)
 
i'm sorry to have contributed, i was just being perverse
 
@PeterTaylor Because an unwarranted, useless hi often relieves tension, increases productivity and automagically golfs code down.
:)
 
I think the world needs more hi's :)
 
inb4 omg that's so cute
 
ok I had to google inb4!
 
4:50 PM
xD
 
Increase Nonsense By Four, right? :)
 
before the massibely valuable bounty goes :)
 
Bot started.
 
>>listcommands
 
@ProgramFOX Commands: translationswitch, randomint, random, shuffle, help, translationchain, randomchoice, translate, listcommands
 
4:53 PM
>>help
 
@ProgramFOX I'm FOX 9000, ProgramFOX's chatbot. You can find the source code on GitHub. You can get a list of all commands by running >>listcommands
 
I'm having a deja vu moment
 
@SohamChowdhury What have you changed?
 
@Geobits It's totally Lembik's fault.
I think the only other person who ever started these was TheDoctor. (What happened to that guy?)
 
@TheDoctor ^
 
4:57 PM
I responded with a bare 'hi' once or twice, though, so I feel I share some responsibility.
 
But... what's wrong with continuing chains?
 
That's what makes it a chain?
 
Not sure what that means :P
 
0
A: Sandbox for Proposed Challenges

chilemagicStill working on the specifics, but getting it the idea out there. 2-Dimensional Regex Given a 2-Dimensional regex and a block of text, do a single or a global search and replace. Input: s/aba/bbb/ /aba/aba/ /aba/bbb/g aaaabaaaa aaaabaaba aaaabaaba aaaaaaabb Output: aaabbbaaa aaaabaaba...

 
If nobody continued it, it wouldn't be a chain at all (unless you count a single link as a chain).
 
5:01 PM
Oh, now I see :D
 
5:54 PM
0
A: Sandbox for Proposed Challenges

chilemagicStill working out specifics and wording on this one. Suggestions welcome! Print the union of sequences You are given four number sequences. I won't use these four, but just as an example. Fibonacci Even numbers Square numbers Cube numbers Your input will be a comma seperated list of numbe...

 
I just thought I'd try to reverse a string using regex substitution only (.NET) ... it's possible! :D
 
 
1 hour later…
7:21 PM
hi @Geobits
 
8:11 PM
haha, tomorrow I'll probably be accepting a winner for the False Positives challenge, although anyone could beat all others simply by first running the winner and then the second place (with some logic to exclude duplicates), because they both take only a fraction of the time limit to get their results.
 
8:25 PM
Put a +x00 bounty on it. I saw crazy improvement in scores when I did for mastermind :)
 
maybe I could get that for my challenge!
@Geobits how much do you think it needs? :)
 
8:40 PM
@Geobits oh right... I used to set bounties on all my questions (and it never really helped)
@Geobits there's still hope for my Nice Question badge btw... the 3 answers made it jump to the first HNQ page
 
@MartinBüttner I always wonder if it really makes any difference how large the bounty is
what do you think?
If I added 200 for codegolf.stackexchange.com/questions/37620/… would more people try it?
 
possibly, but no guarantees
 
someone should do a study :)
I sometime notice serious geniuses answering +500 questions on math.se
noam elkies is one of the cleverest people in the world :)
 
8:56 PM
0
Q: Can we submit binary and executable related questions?

PoikThere is an interesting concept (in my eyes) of fat binaries, and I have an idea of a challenge. Besides the fact that it may not be too feasible in this context, I feel like if anyone can do it, it would be this community. The problem arises from the fact that it may fall into more of a post-pro...

 
Dang. Lync went down at work. Now I have to actually stand up, lean over to the next desk, and ask for a Code Review.
 
9:23 PM
@user2179021 Regarding this again. I think there is some difference. A 50 rep bounty would get me to notice a question, but not to attempt it if I've seen it before and couldn't be bothered. A 200 rep bounty might convince me to tackle a problem even if I've already seen the question and decided not to answer.
 
I've offered two bounties here. The 100 got a decent response, and the 200 got a better one. I don't know how much the question itself had to do with it. Make of that what you will.
Too bad we can't use cross-site rep for bounties. I'd spend everything I got from this answer on EL&U in no time. It was a decent answer (IMO), but +86? Seriously?
 
9:43 PM
ELU sometimes gives rep away for free. I've got a +89 answer there which took all of 20 seconds to write.
It's not like some sites where you can spend hours on an answer and not even get an upvote from the person who asked the question.
 
Yea, the time it took me to write it was how long it took me to find a definition link and write a quickie-explanation below. It was literally the first thing that came to mind when I read the question, and I was only expecting a couple votes.
 
 
2 hours later…
11:56 PM
@ProgramFOX For one, I'm adding a fallback command_talkback that is executed in places of the else: return "Command not found". It checks if the input matches any of the keys of a replies dict and (duh) replies with the key if it does. Else, it returns a not found.
Currently it's like this: {'droptables': 'Hello there, little Bobby!}
 

« first day (1327 days earlier)      last day (3533 days later) »