« first day (1974 days earlier)      last day (2859 days later) » 

7:00 PM
1
Q: Should we change "Question" to "Challenge" in meta tags?

Dr Green Eggs and Iron ManI just realized that on meta, we have lots of tags about asking questions, and very few tags about challenges. For example: asking-questions, questions, specific-question closed-questions, deleted-question and unanswered-questions (which ironically has no questions tagged with it). These tags c...

 
@Maltysen Your Project Euler friend key.
 
@Maltysen If you add someone using their friend key (visible by logging in and clicking on the Friends tab), then you two can see what problems the other has solved.
 
did not know that was a thing
is each like only usable once?
 
No, I don't think friend keys are a one-time use sort of thing.
 
@Maltysen It's multiple use.
 
7:01 PM
wonder why it has a generate new button then, shrug
711987_ywakdvOBst5pnw3nDkZ3IFPNeT9vpvE8
 
@Maltysen I dunno either.
 
@Maltysen Welcome to my list of friends!
 
@zʏᴀʙiɴ101 hello
 
You share 3 problems with me.
 
7:05 PM
flawr added me to my friend list.
@flawr We share 3 problems.
 
What's this
 
@quartata projecteuler?
 
PE has become a social network?
 
Apparently, a large amount of my friends share 3 solved problems with me.
 
Didn't know about that
 
7:07 PM
@quartata Wanna add too?
 
@quartata A small pinch of social was added.
 
@flawr no my pe account is ancient and has my real name
 
Anyone here scottish?
 
@HelkaHomba I'm Russian.
 
@quartata you can change your name
 
7:10 PM
So no.
 
@zʏᴀʙiɴ101 Well, how many problems have you solved? :P
 
@Maltysen You can?
 
@El'endiaStarman 3 problems.
 
@quartata account tab
 
Oh.
 
7:12 PM
@zʏᴀʙiɴ101 I'll bet the majority of your PE friends have solved more than 1, 2, and 6. :P
 
I solved over 100 just so I could say so :P Though I reckon some people here have done many more
 
I am just starting to do PE again
 
@HelkaHomba I need to verify. What is your friend key?
 
"17 Number letter counts" is now my least favorite PE
 
Mine is 984845_ZyZsjOswfqoDY3I5UKtDW8cDaXDhfg9m
 
7:18 PM
I did 29 before I got bored with it, apparently.
 
muddyfish got added to my friend list.
@muddyfish We share 3 problems.
 
@zʏᴀʙiɴ101 I seem to recall I ran into this issue - projecteuler.net/about=account_recovery
 
So we do
 
I registered before 2014, lost my pw, and now there's no way to get it back
 
@HelkaHomba Not even the account recovery by "euler"?
 
7:21 PM
> NOTICE: This service is suspended.
 
@HelkaHomba I thought I would have that problem, but apparently Chrome remembered it for me just now. It made me change pw upon logging in though.
 
My campaign of a rubber duck as a picture on the screen is ongoing.
 
@HelkaHomba I've done 135 and I have a PE friend that has solved 210, though I don't remember who they are IRL anymore.
 
in Sandbox, 2 hours ago, by zʏᴀʙiɴ101
+-+-+-+-+         0 - NotPunchedYet
|0█████3|         1 - ProgramFOX
+-+-+-+-+         2 - DanPantry
|4|5|6███         3 - NotPunchedYet
+-+-+-+-+         4 - NotPunchedYet
|8███A|B|         5 - NotPunchedYet
+-+-+-+-+         6 - NotPunchedYet
███D███F|         7 - FOX9000
+-+-+-+-+         8 - NotPunchedYet
9 - FOX9000       A - NotPunchedYet
B - NotPunchedYet C - DanPantry
D - NotPunchedYet E - ProgramFOX
F - NotPunchedYet
 
7:26 PM
in Sandbox, 2 hours ago, by zʏᴀʙiɴ101
I have a rubber duck. I'm going to give it away to the person who guesses the right hexadecimal digit.
Apply in the Sandbox.
 
is it a real ducK? o_O
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Nope.
 
I'm confused
 
It'll be provided as a picture on the screen.
 
7:27 PM
user image
3
saved you the trouble @zyab
 
@HelkaHomba Wow, so cool! So large!
 
Anyone in here good at ruby + optparse?
 
@DrGreenEggsandIronMan I'm good at python + pip.
So no.
 
:/ I'm really bad at ruby.
I just randomly decided to do a project in it.
 
@DrGreenEggsandIronMan Everyone's bad when they're just getting started.
 
7:37 PM
@DrGreenEggsandIronMan Nope
Anyone noticed, how similar javascript's syntrax is to most pseudo-code's?
 
I think that more of python...
 
^
Although I think people write psuedocode that is closest to the language they're most comfortable in.
I know I do.
 
@DrGreenEggsandIronMan My challenges are secretly English pseudocode that I get you guys to program.
 
That's pretty verbose for english psuedocode. You should try golfing it further.
 
7:55 PM
@Bálint s/javascript/any language that isn't java/
:P
 
I think reading through J for C is a good way to start learning J.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ WHat is this s/thing1/thing2?
 
@Bálint replace thing1 with thing 2
 
@miles A good way to start learning J for C programmers. I'm not sure you know C.
 
I know C. Thanks Miles!
 
8:01 PM
It's hardly required to know C, it's more about using the typical C-style program in J
It's meant to progress from an iterative style to an APL style
 
There should be a Try it online! for J.
tryj.tk might be going down soon, because it might be using Google Drive.
And Google Drive is shutting down its web server service at August 31, 2015 for Google Drive users, and August 31, 2016 for Google Apps users.
 
@Dennis Could you add BrainFlak to TIO? Installation is pretty straightforward. Encoding is just plain ASCII, no dependencies, and it's called with ruby brain_flak.rb source.brack -f input.txt
 
@DrGreenEggsandIronMan *.brack?
 
File extension is arbitrary.
 
Attention programmers: you are supposed to tell the duck your problems. Do not rub the rubber duck. It is not a lamp; there is no genie.
 
8:12 PM
Here's what brain-flak code looks like:
(<>)<>(({})){({}[])<>(())<>}{}({}<(({})){({}[])(<>)<>}{}>)(()){({}<(({})){({}[]‌​)<>{}<>}{}>)<>{<>({}[])(<>)}<>}({}<({}<{}>)>)<>{}{({}<>)({}{})<>}{}<>(({}<(({}))>‌​))({}<({}<>)<>({}<><({}<>)>)>){({}[]<({}[])>)}{}(({})){{}{}(<><>)({}<({}<(())>)>)‌​}{}({}<{}{}>)<>{}<>
That's modulus.
 
([{<>}])
 
That would print 0 0 I believe.
Yep, 0 0, just tested it.
 
0
Q: Flood-fill a 2D grid

shooqieChallenge description Let's call a two-dimentional, rectangular array (meaning its every subarray has the same length), a grid. Every unit of a grid is either an empty space or a border. In a grid of characters, empty space is represented by a single whitespace; any other character is treated as...

 
That washingtonpost article wasn't lying
This is just pure stupid
It's interesting, to check out some google trends
 
Hey everyone here, I'm thinking of a new code-golf and would like to ask the people with more overview than me here: Did you already had one which asked you to implement a classic list-filter with the twist that you drop everything starting with the first false predicate evaluation ?
 
With a statement such as -x * y - z, should the first - be applied to x or to x*y?
 
@El'endiaStarman in normal math? to x*y
 
8:42 PM
@El'endiaStarman Is there a difference?
 
@El'endiaStarman I must admit I can't think of values for which there would be a difference
ninjad
 
well I guess there's a difference if you are outside of classic math definitions...
 
Yeah, there isn't a difference using typical values/types, but suppose someone implemented a new class that behaves weirdly such that -(x*y) != (-x)*y.
Oh, replace * with ^ (power, not xor).
 
@El'endiaStarman C/C++ would eval -x * y to -(x*y) IIRC
oh sorry, I justed looked it up
unary minus has priority over multiplication in C/C++
 
Hmm. I'll bet part of the difficulty is that -x could mean either 0-x or (-1)*x.
 
8:49 PM
so your example would evaluation (in C++) to ((-x)*y)-z
 
Okay, that's helpful. Sorta.
 
@SEJPM like a takewhile function?
 
@flawr yes
 
Reason I'm asking is that I'm trying to come up with a clear idea for how to handle operators with the same name but different numbers of arguments and different precedences (for implementation in Pytek).
 
@SEJPM I don't think so. But then again I think it is trivial in most languages.
 
8:52 PM
@flawr ok, then I'll have to combine it with a medium-complex predicate to get an interesting (short-resulted) challenge :)
 
@El'endiaStarman Implement operating overloading in such a way that you can overload the precedence rules too. It will be a thing of beauty...
 
@trichoplax Operators composed of symbols will be executed according to methods of the classes they're operating on, so if you want to overload +, you just define ._add_() in your class (subject to change). On the other hand, you can define new word operators, including name, number of left and right arguments, precedence, and whether to evaluate from right to left (as in the case of exponentiation).
 
I was joking about overloading the precedence of well known operators - it would be horribly painful to program with... :)
 
9:28 PM
@Maltysen informal is intentional
They've already been seen as rules by some people, which is not the intent
 
k
 
0
A: Sandbox for Proposed Challenges

SEJPMDon't even think about non-42-related numbers! code-golf math fibonacci Introduction and Credit We all love our Answer to the Ultimate Question of Life, the Universe, and Everything which, of course is 42. So let's take this unworthy Fibonacci-Sequence thingy and adapt it to be worthy of 42!...

 
I still ಠ_ಠ at removing the quote.
 
Are you CᴏɴᴏʀO'Bʀɪᴇɴing me?
 
@newSandboxedPosts At this point, we should consider adding a tag.
 
9:32 PM
@ಠ_ಠ Yes I am, puppet.
 
@ಠ_ಠ \o/ You returned!
 
Well, this is creepy: ( ͡°͜ ͡°)
2
 
The new Chattiquette a bit deprecates you:
 
@ಠ_ಠ Your username is fun to ping.
 
> Post messages that add nothing to the conversation (^, ಠ_ಠ, rofl, etc.) sparingly if at all.
 
9:33 PM
@zʏᴀʙiɴ101 You know, you don't have to keep mentioning the chatiquette every three minutes. We get it, you don't like it. Please just let it go.
 
@zʏᴀʙiɴ101 What conversation? :P
 
@DrGreenEggsandIronMan That's what the guidelines say.
 
@Geobits That seems a little unfair. He talked only about an hour ago
 
I dunno. It just seems like every time I glance in on chat today, it's right there.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Slight hyperbole. Near every time that Chatiquette comes up, zyabin voices their disapproval.
 
9:36 PM
@El'endiaStarman I see at as a person being mad at another person being mad. ¯\_(ツ)_/¯
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm mad you said he's mad at another person being mad.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I'd say that Geobits is more likely to be tired of it than mad.
 
@El'endiaStarman Sorry, I can't resist a little bit of poetic charm.
 
Ha, I know the feel.
 
For PE 25, I thought SED-style addition might be handy for arbitrary capacity numbers. However, after 10 minutes of calculating fib(501), I'm just about ready to throw in the sock.
 
SED-style addition?
 
28
Q: Addition with 'sed'

Luigi TiburziI am trying to perform a mathematical operation with sed, but it continues to treat my variables as strings. The input is of this kind: $ echo 12 | sed 's/[0-9]*/&+3/' $ 12+3 I'd like to have 15 as output. I need to do the operation and replace its mathematical result in only one passage, beca...

Idk why I capitalized sed
 
SED-209
 
@CᴏɴᴏʀO'Bʀɪᴇɴ No need to calculate that much, I'm pretty sure you can write a mathematical expression that evaluates to that value.
 
Yeah, that's what I'm working on right now.
 
9:46 PM
Rough estimate puts the target somewhere just under fib(5000), right?
 
SHHHHHHH
damnit
 
For the record, I haven't done the problem and I don't know the answer. I'm just looking at fibs, and they seem to go up a digit in length every just-under-fives.
 
Not like that's a big secret though. There's a closed-form solution and you can log10 it to get an estimate of the number of digits.
Unrelatedly, this is what I'm struggling with: how to parse -2**4 (-16) and 2**-4 (0.0625) correctly.
Part of the difficulty is that I'm not sure how much of the work my existing code does towards doing that correctly. :P
 
hacky way: give - a higher precedence than **, but make a **- operator :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That'd fail as soon as I did 2** -4.
 
9:52 PM
make one for each possible combination of whitespace
 
Impossible, since I'm allowing an arbitrary amount of whitespace. :P
 
nothing is impossible if you believe
What do they parse as right now?
 
Uh, it wouldn't work since I haven't fully implemented unary minus.
 
That's probably a good first step ;)
 
Well, the issue with 2**-4 basically is the step I'm on. :P
 
10:00 PM
So a minus after another operator parses as unary, right?
 
I have to tweak the shunting yard algorithm further, and exactly how is something I haven't yet figured out.
 
-M f N <=> (- M) f (N)
 
You're not telling me the grammar rule for it, are you? If you are, shucks, but my parser isn't implemented with grammar rules... >_>
 
I don't know any specific grammar.
 
10:16 PM
Using a function that returns a function is a valid function answer, right?
 
More generally, an expression that evaluates to a function is a valid submission.
(If that resulting function solves the challenge...)
 
@MartinEnder Today I realized where the name "Stack cats" came from. For a second, I felt really enlightened, and that I felt stupid for not realizing earlier. =D
 
Oct 15 '15 at 15:28, by Martin Büttner
o.O Stack Cats is a palindrome... how has @Calvin'sHobbies not yet made a challenge about that?
this was about a month before I had the idea for the language
so it was actually the name that inspired the language and its semantics
 
I've been working on a sort of similar language that was inspired by this challenge:
34
Q: Are the brackets fully matched?

Dr Green Eggs and Iron ManYou must write a program or function that takes a string of brackets and outputs whether or not that string is fully matched. Your program should print a truthy or falsy value, and IO can be in any reasonable format. Rules and definitions: For the purpose of this challenge, a "bracket" is any...

Every valid program is entirely matched brackets.
 
10:36 PM
0
Q: Build a marginal tax calculator

Joe Z.There have been some tax rate calculator problems here that depend on defined rates (specifically US federal rates), but none that have done it for arbitrary lists. Your task is to build a program or function that will take an arbitrary list of marginal tax brackets and calculate the effective a...

 
 
@flawr Why'd you change comics?
 
Cause I liked this one better=)
(Same artist tough)
 
New favorite emoticon: ಥ_ಥ
For when ಠ_ಠ just isn't enough
 
10:51 PM
ಥ╭╮ಥ
 
@DrGreenEggsandIronMan ఆ What the hell
 
@DrGreenEggsandIronMan If you really disapprove of something: ಠ್ಗಠ (Copyright by @Bálint)
 
@DrGreenEggsandIronMan don't worry, I've already an idea for another 42 challenge ;)
 
@flawr That's my idea :)
ಠ್ಗಠ
ఠ_ఠ instead if O_O
ಠ್ಧಠ instead of Hey!
ಠ್ಕಠ instead of :P
 
chat mini challenge: given a number N, get all pairs of numbers A,B where N>=(A,B)>=0 and A+B=N
 
10:56 PM
And (ರ್‍ತರ್‍) is an alternative Lenny face
 
@CᴏɴᴏʀO'Bʀɪᴇɴ how do you compare a scalar to a pair?
 
@SEJPM it's shorthand notation for both of A,B satisfy the inequality
 
@CᴏɴᴏʀO'Bʀɪᴇɴ oh, ok :)
 
    ______________
 ౯/    |___|   \__\____
 |_____________________|
   O               O
 
10:58 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ [(x,y)|x<-[0..N],y<-[0..N],x+y==N] <-- Haskell
 
haskell has set builder notation? cool!
 
^Winged car
 
@CᴏɴᴏʀO'Bʀɪᴇɴ that's everything in haskell
 
@Maltysen I don't know any haskell
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You should definitly learn haskell. it is so, damn, cool
 
11:00 PM
^
 
^^
 
I should, but I asked you what release I should get, and I guess we both forgot
 
(the haskell solution is 34 bytes apparently),
@CᴏɴᴏʀO'Bʀɪᴇɴ most recent GHC?
 
no idea what that means but I'll look into it
 
"Haskell Platform: Haskell with batteries included"
 
11:02 PM
well geez I was on the wrong site that's why
full or minimal?
 
Doesn't reall ymatter when starting out.
Why not full?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ N=>Array(N).fill``.map((_,b)=>[b,N-b])
 
TIL you can ping inside monospace
 
38 bytes
 
11:05 PM
@Bálint is that Haskell?
 
@SEJPM JavaScript
 
D:
 
@SEJPM Do you have any problems with that? ಠ್ಗಠ
 
anybody know J in here well enough to help me for a sec?
 
11:06 PM
@Bálint JavaScript tends to have an awful lot of "strange" / "wanky" / "undefined" behavior and this is why I dislike it
(click on my profile to see my main sites to understand ;)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Pytek will also have set builder notation. :D
 
@SEJPM ಠ_ರ That hurts
 
@El'endiaStarman :D that's one of the reasons I can't wait for it
 
(BTW, I have disagree smiley's for everything, so....don't get scared if I only communicate using smileys)
 
@El'endiaStarman Can we somewhere see what this Pytek is about?
 
11:10 PM
@flawr quartata linked you to the chat room earlier, but I guess you might want this (old-ish draft of syntax spec): pytek.starmaninnovations.com/docs/syntax
I have yet to make a GitHub, REPL, or online interface, though I eventually will.
 
@El'endiaStarman I don't mean to seem picky, and I think I asked you this before, but why use TNR when there are literally hundreds of better fonts freely available on the internet?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ 'cause I'm lazy.
 
@El'endiaStarman How much of that is already fixed / open for suggestions?
 
Much the same reason that I don't prettify basically anything at play.starmaninnovations.com.
 
11:14 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ IDK why this took me so long to figure out, but here you go. MATL, 7 bytes: :"G@-@h
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I actually just used haskell right now, to solve a project euler problem
 
@Maltysen which one?
(number)
 
the list comprehensions and lazy eval, make it sooooo easy
 
11:16 PM
@flawr Hard to say. Some of it is already out of date (for instance, I probably won't make literal tuples a thing, relegating that to immutable:[] or something like that instead). Addition and concatenation are going to be separate operators. Most of the stuff under functions has been implemented, bitwise operators will be words instead of symbols, etc.
I'm open to suggestions though, and I'll let you know if it conflicts. Probably better to take this to the Pytek room though. (chat.stackexchange.com/rooms/35416/pytek)
I seriously need to update it. Hmm.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Maybe.
 
pairsum =: 3 : 0
	c =. 0
	k =. i.y+1
	l =. a:
	for_e. k do.
		l =. l ;~ e , c { |. k
		c =. 1 + c
	end.
	}: l
)
 
@El'endiaStarman That'd be great=)
 
This generates all pairs that sum to y. This is a gross way to do it, I feel. Is there a better approach I could follow?
 
I'd love to read some more on what you've already done
 
11:23 PM
@flawr I guess I shall, since I'm still stuck on the operators/precedence thing.
 

« first day (1974 days earlier)      last day (2859 days later) »