« first day (2270 days earlier)      last day (2564 days later) » 

12:03 AM
@mınxomaτ that describes the electoral college well
 
Yay! I finally hit 5k rep and all privileges!
 
congrats!
 
congratulations!
BTW do elected mods get any privileges that 5K users don't?
 
Thanks!
Well, besides the obvious mod tools I'm not sure
 
12:28 AM
@Mendeleev hm ok
 
12:51 AM
@Mendeleev how does set_school work? I have two questions: 1) in School.find(params[:id]) what is params and where is School defined 2) how come I don't need to call set_school and instead can just add /:id to path
 
user165474
@GamrCorps @Mendeleev Do 5K users get binding votes?
 
@Mendeleev also where are edit_school_path and such defined? I don't see them with a grep
 
you guys should prolly have a chat room for all this
wait why is rikers name blue
Is riker a mod??? \O/
 
kinda late to party, but yeah :P
 
Oh he's a mod on vegetarianism
....?
 
1:01 AM
-1
Q: Baby Brainf**k Compiler Challenge

Blue OkirisIt's very simple. In as few lines of code as possible, write a brainf**k compiler. I only ask that you use a "real" language, i.e. not a golfing language like golfscript. Shortest code wins!

 
user165474
@NewMainPosts Um, pretty sure that's a dupe???
 
it's deleted now
 
user165474
@noɥʇʎԀʎzɐɹƆ Unless you wanted your name to be CrazyPythou, I think you should change it to uoɥʇʎԀʎzɐɹƆ.
 
user165474
@BaldBantha Ah. Yes, by the time it was oneboxed it was already deleted
 
I clicked on it and it showed it and then said deleted later
 
user165474
1:05 AM
I see.
 
user165474
By the time I clicked it it was already deleted
 
@HyperNeutrino unclear also
@BaldBantha yes
@BaldBantha ... where do you see my name?
oh, in "congrats"
@BaldBantha correct
apologies for triple ping
 
1 hour ago, by Riker
congrats!
 
1:24 AM
@Downgoat params is the request parameters hash. id is on the end of the path. School is defined in app/models/school.rb. I don't know what set_school is.
@Downgoat Rails magic
 
1. number inputs in type="number"
2. Ids of data-xyz
This would help for casing in which you have more than just inputs for snippetify
*cases
3. An optional bootstrap button styles
4. Going with that theme optional .input and .output classes
4. Defaulted disabled output
 
1:41 AM
@Mendeleev you have before_action :set_school in the stories controller
 
@Downgoat That was generated by the scaffold generator. Read the thing at the bottom:
@school = School.find(params[:id])
wat
I was just scrolling through the list of users on the old PPCG.SE A51 proposal.
 
2:38 AM
I'm enjoying this update to the grapher.
 
3:19 AM
3
Q: One Expression, Many Values

AnkoganitUsing our familiar mathematical symbols: +, x, parenthesis, and any rational number, it's easy to create expressions that evaluates to some desired number. For example: 1+(2x3)=7, (1+2)+(3x6.5)=22.5 and so on. Boring enough. In this challenge, we'll use a new operator: ±. The use of ± in an expr...

 
3:49 AM
bots gone meta
 
4:01 AM
This is awkward... somehow my ML compiler takes about 50 seconds to compile a program that reads an integer, adds 1 to it, and prints the result.
I didn't think that would be possible no matter how badly I coded it.
And to top it off, the program doesn't work.
 
Code?
 
I think I know what went wrong.
 
Oh wait ML I don't know that.
 
I zero-extended when I should have sign-extended.
 
It's probably bad and you should use java instead.
 
4:06 AM
Yay, now it works.
 
Good to hear.
 
regex are complete abominations. check out this one: ([A-Za-z]{3})\s*0*(\d+)
 
Three letters, any whitespace, any amount of zeroes, at least one digit
What's the point?
 
Matching item IDs for my inventory system
 
That's not so bad as far as regexes go.
 
4:12 AM
True
AFAIK PCRE is Turing Complete
 
@Mendeleev no, only CS
 
Please define CS
Computer science?
 
Context sensitive
 
ah
The newest PCRE is Turing Complete though
 
Idk, pcre 2 or new pcre 1
 
4:15 AM
Perl 6 patterns iirc, which technically aren't PCRE.
 
Oh, I think I made a blog article on those
 
@Pavel Yes, this. I'm not much of a Perl guy, I use Ruby
 
I mean with infinite input regex is TC
 
@Downgoat Link please?
 
4:17 AM
Thanks
 
@Downgoat Maybe the most controversial link in the history of TNB, invariably sprouting arguments about its accuracy almost every time it's posted.
> sed and grep's expressions aren't Regex
Pls
It's wrong
 
@Pavel pls
yes they are
 
I know they are
 
I'm agreeing with you
 
Shit bad wording
 
4:21 AM
I think I can recall at least 4 times before now that someone brought this up.
 
I'm trying to say sed-regex:regex::sheep:caprines
I mean technically they are but they aren't good example/shouldn't be considered as a "symbol" or face of regexes
that is also in quote specifying a more or less satirical tone
 
Wether or not PCRE are regexes is up for debate, however.
 
They are literally called regexes in the name
 
Back when regexes were first described in 1950, they were intended just to describe regular grammars.
@Downgoat Some people say the name is wrong.
 
My brain computes but it's not a computer
names evolve
 
4:27 AM
> A regular expression is not a regular grammar. I have absolutely no idea why everyone believes this today. Perhaps because they share a word, but I will berate you if you ever claim this.
Mostly correct, but the reason for this is because the entire point regexes were invented was to represent regular grammars only.
 
No not exactly
regular grammers were not the target of regexes, merely the scope
 
> grammers
ironic
 
They were created as a purely mathematical construct.
 
>_<
 
They turned out to be much more useful :)
 
4:31 AM
Wait what when did bell labs become owned by nokia D:
1952: forefront of innovation and technological advancement 2017: phone meme lol
 
It took 12 years for regexes to be applied to anything related to computers.
 
@Pavel enter popular use =\= applied
 
Right, popular use took longer.
 
Where are you getting data from???
 
I don't remember. I just remember I looked this up once, and it stuck. I could be wrong.
 
4:47 AM
Is there any javascript like golfed version? IE a.s instead of array.slice
 
There are several js based golf-langs, I think Jolf is one.
 
Thanks. Do you have any favorite?
 
I don't really know any of them.
TeaScript is another, though.
@Downgoat made it
 
0
A: Sandbox for Proposed Challenges

Brian McCutchoncops-and-robbers These would be separate questions, and each would link to the other. Cops: Make a bad password policy Over the years, people have come up with some pretty bad password policies. Your challenge is to make such a policy. It should restrict the user to as small a selection of pass...

 
kk also is it just admins that can create a room for a question?
I'm asking cuz I've wanted to make one before
 
user165474
4:56 AM
You can create rooms as long as you have 20 rep, I think
 
I think it's a bit hgher than that.
 
How much then
 
100
 
okay. Thats fine then, I've just been silly. Gtg though. Bye,
 
user165474
ok
 
user165474
4:58 AM
Wait it's 20 to chat.
 
user165474
Bye!
 
o/
 
 
1 hour later…
6:15 AM
Sorry, I've been ranting a lot, but
RIP Atatürk's republic 1923-2017
 
:(
rip turkey
 
Politicians/reporters/etc say it'd be 55% no if the electoral counsel didn't approve ballots without stamps
It basically works like that: you get in to the room, officer stamps the ballot, gives it to you, you get in to the cabin, you vote, you put the ballot into the box. But counsel decided that stamps are unnecessary.
 
6:38 AM
fake votes would be a problem
 
0
A: Sandbox for Proposed Challenges

steenberghCowabunga! Pizza's here! But they did a sloppy job at slicing it... We need you to write a program that divides this pizza as equally as possible. It needs to be as short as possible, or the pizza will get cold! When given an array of positive decimals (the pizza slice sizes in any unit you w...

 
No, why would anyone do that?!
/s
 
 
1 hour later…
8:04 AM
I just had a great moronic idea
Instead of actually implementing tail recursion for tail recursive functions
Have the calls branch out in a binary tree structure
If the return condition is reached, it just goes back up to the top
If we're at a leaf, we do 1 iteration of the function
If we're at an internal node, have each child do some iterations of the function
 
user165474
>_> overcomplicating things much? :P
 
Anonymous
So BFS for recursion?
 
The point is to keep the stack size small to prevent overflow.
 
Anonymous
Or just keep it constant by actually doing TCO
 
It grows only logarithmically in the recursion depth.
 
user165474
8:08 AM
I suppose that that would work...
 
Or easier to implement, pick some fixed N such that 2^N is huge and stay at depth N.
 
Anonymous
I'm not 100% sure what you're suggesting, but it doesn't seem like anybody that isn't an esolangs wiki admin would ever use that approach.
 
0
A: Sandbox for Proposed Challenges

xnorUnimodal sequence code-golf Given a list of numbers 1 through 9, decide whether it's unimodal, meaning that it (weakly) increases then (weakly) decreases. For example, 2 3 3 6 9 7 3 is unimodal because it can be split into 2≤3≤3≤6≤9 where each element is at least the previous one, followed by...

 
I'm implementing an ML compiler and trying to do things in the way that requires least effort.
Doing real TCO is somewhat annoying since actual recursive functions aren't even supported.
They're implemented by passing the function a pointer to itself as a parameter.
So for TCO I would have to make some special case.
Either detecting patterns at compile time or comparing pointers at run time.
Another possible stupid trick is to implement map (which normally uses a stack depth of O(N)) as reverse-map followed by reverse.
 
user165474
Better idea: Chain the functions together during compilation so that there is no stack, it's just a huge function made by putting them all together
 
8:15 AM
If there is no stack, that can only mean the stack was moved somewhere else.
 
user165474
Wait no my idea wouldn't work because variable stack sizes
 
user165474
>_>
 
Anonymous
There is no spoon
 
user165474
oh well it was a joke anyway :P
 
The reverse map one is really pretty stupid since the list uses O(N) memory anyway.
But the first idea could actually be useful since a function may recurse more times than the max memory usage.
 
Anonymous
8:17 AM
You could always take the classic ASM approach: no TCO, if the stack overflows it's the programmer's fault for not being more careful
 
user165474
Anyway I should go to sleep >_> so goodbye! :P o/
 
8:51 AM
@KritixiLithos Maybe scroll by default, but we should put options for changing the text area to wrap text instead
 
a blind scroll implementation might bork the cursor, because the cursor depends on the horizontal position of the text
Oh, I moved Main.java out of the essentialgui package because when we are going convert this into a library, the Main.java is obviously not going to be included in it.
 
9:45 AM
hi
how do I get a replacement key
my d key split in half
or should I just put tape on it
 
Anonymous
We're not tech support
4
 
cat part1 part2 > key
 
1
Q: Shortest python A + B programm

Евгений КондратенкоSome of you may say that I am wasting my time, but this task does not give me peace for more than 500 days. It is required to write a program that takes two numbers at the input and displays their sum. I know only 2 solutions, each of them has a length of 36 characters: print(sum(map(int, input(...

 
 
2 hours later…
11:22 AM
0
A: Sandbox for Proposed Challenges

Beta DecaySpherical Eggs in a Vacuum code-golf Introduction Easter has been and gone and now what's left are the eggs. You start to eat one of your spherical eggs, unwrapping the foil as you go. Eventually you feel ill from all of the chocolate and stop eating. Now comes the problem: rewrapping the egg...

 
60% bare links makes the starboard fairly useless :/
 
It's 83.3% for me
That's even more :/
 
11:44 AM
visited 497 days, 99 consecutive
watch me forget to log in tomorrow
 
> The down-caret v
I quote this from Carrot's wiki
 
12:03 PM
> visited 269 days, 269 consecutive
wow
 
Is that you?
 
yes
you cant see others
(can mods?)
 
That's some serious dedication
 
i was at about 80 consecutive when tux said he got fanatic badge, than i thought, why not try a year?
 
I'm at 179 consecutive, but my total days visited is more than yours
 
12:21 PM
> visited 967 days, 1 consecutive
I'm on a hot streak!
 
starting is half a success!
 
I've already got a Fanatic, so no worries there.
 
You're so close to 1000 days in total
 
@Geobits Please no streaking. We don't want to see your ... umm ... "Geobits"
 
Aww, you're no fun. Timmy wouldn't have minded.
 
12:30 PM
dot dot dot
 
12:54 PM
@Geobits At least when it's PPCG you never have to burn your risky click of the day
 
19
Q: Reciprocal of a number (1/x)

MendeleevChallenge Given a (floating-point/decimal) number, return its reciprocal, i.e. 1 divided by the number. The output must be a floating-point/decimal number, not just an integer. Detailed specification You must receive input in the form of a floating-point/decimal number... ...which has at le...

 
0
A: Reciprocal of a number (1/x)

This GuyNot Quite There, 1 byte (non-competing) \ A reciprocal builtin.

the description leads me to believe that this isn't a valid ppcg "language"
> A language that doesn't quite meet PPCG's definition of a programming language
._.
are there really only 6 people in chat today?
 
1:37 PM
No
 
1
Q: Make me a s'more!

programmer5000Make me a s'more I tell you the width, the amount of graham cracker, the amount of chocolate, and the amount of marshmallow. An example: Input: Width: 10 Graham: 3 Chocolate: 2 Marshmellow: 1. Output: GGGGGGGGGG GGGGGGGGGG GGGGGGGGGG CCCCCCCCCC CCCCCCCCCC MMMMMMMMMM GGGGGGGGGG GGGGGGGGGG GGGG...

 
@KritixiLithos i refreshed the page and then everyone showed up
but i only had 6 listed... weird
 
2:02 PM
@Riker wait gitgoat was crashing right? Can you send me picture of your github activity feed? (As many items as u can)
 
sure?
you mean my activity?
 
Yeah
 
or my feed from watched repos
 
wait no
like the homepage where you see what your followers starred and all
 
2:07 PM
>_> sorry meant this thing:
 
....??????
ah
 
derp. How goes it, TNB?
 
@ThomasWard good
@Downgoat how do I access that?
relative link?
 
@Riker it should be homepage of github
 
2:08 PM
on the gitgoat app?
or on github itself
oh, I'm not on mobile atm
 
On website
 
TIL that exists
 
O_o
 
@Mego Bad poll, what if we're not breathing through our noses :P
 
@Riker can you maybe take one more screenshot of below activity items
 
2:17 PM
sure
 
Weird... are you running latest version?
 
of gitgoat? afaik
I just installed it
I didn't check for anything
 
There is a bounty on this question that doesn't meet our rules according to this meta post.
> For example, on a code-golf posting a bounty for "Fastest code" would not be allowed.
Should a mod refund/remove the bounty?
The bounty is a bounty, but it's on a question.
 
Yeah, that doesn't seem to make sense.
 
Can mods refund bounties?
 
2:32 PM
I think so
I flagged the question for mod intervention.
 
Yes mods can refund bounties.
 
@DestructibleLemon goo.gl/NdQPb5
 
hi all
 
o/
 
@Riker I was looking forward to your answer!
 
2:39 PM
so was I
but I'm stuck >:U
 
ah... what on?
 
I can't find any answes that aren't basically the other answers
 
which language?
 
python
 
oh that would be cool.. did you think about using Counter or the multiset pypi package?
 
2:39 PM
oh, no
that might help >_>
 
I would have thought a standard python answer would maintain a multiset when in a part and try adding a new multiset and check the intersection size
we don't have any python answer at all currently, let alone a very golfed one
 
I don't remember what I tried atm, I'll have to check
 
cool
 
and I'm a bit busy atm with school
but yeah, I'll give that a shot later today
 
ah... not majoring in code-golf?
 
2:41 PM
@Riker Solution: Golf in PowerShell.
 
that is not a solution
@Lembik nope :p not in college either
 
@Riker :) What sort of school?
 
middle school?
 
A school/university for code-golf would be awesome
 
I don't really know what that means but I assume it's between top and bottom :)
 
2:42 PM
8th grade, 14 years old
 
@KritixiLithos I worry about the sizes of the desks
 
@Riker Sure it is. You don't have to worry about other people answering in your language or upvotes. ;-)
 
lol
 
@KritixiLithos Lol, yeah. The intro class is "CG 5" instead of "Code Golf 101"
 
@Riker Got you.. the official internet advice is never to tell anyone your age if you are < 18
 
2:43 PM
yeah, I don't really care though
 
I was just repeating the official line :)
 
lol
 
@Lembik University desks are already smaller, though ...
 
@mbomb007 *goes to coursera* *searches for "golf"* :/
 
@AdmBorkBork :)
 
2:44 PM
@AdmBorkBork that's... sad
 
so now I am wondering about a challenge to compute the minimal size partitioning
 
@Lembik Generally it's <13, except for Google services I think.
 
but I don't want to make it fastest code
@EriktheOutgolfer Isn't that just the age you are allowed to use the services
 
No it's the age you can view restricted YouTube videos ;)
 
what do people think about optimization challenges? Some people might complain that one person may have a faster computer than someone else
 
challenges usually require all submissions to be run/timed on the same computer (usually the challenge author's)
 
@EriktheOutgolfer oh ok.. but that's tangential to what I said.. and actually I am surprised it is so young. Some youtube videos are pretty extreeme
@AdmBorkBork right.. I don't want to do that because I don't have an available computer at the moment
 
Then do what Erik suggested, with fastest-algorithm, where the calculations are all mathematical and (usually) in Big-O notation.
 
@Lembik No 18 is the age you can view restricted YouTube videos, i.e. the age of official adulthood in most of the world.
 
also it stops people using mathematica :)
@AdmBorkBork hmm... But this is an optimization challenge.
where best result is the smallest number
unless someone else wants to volunteer to run all the code :)
 
2:49 PM
@mbomb007 I'm at this stage where I have to think about University and what courses I'm going to take in the future and stuff, and I would really love to take Code Golf.
 
@KritixiLithos you could move to algorithm design...which is actually useful :)
and similar
 
It'd be great if some universities would start offering Code Golf as a course, and if Code Golf became internationally recognised as a professional skill
 
@Lembik Yeah, you'd need some sort of consistent base between all the submissions for it to be a valid measuring metric.
 
@mbomb007 Also, CG 5 is too long, just the byte 0x05 is enough.
 
@AdmBorkBork and just the value they manage to achieve isn't enough?
 
2:51 PM
@KritixiLithos APL, NASA, ESA,
 
@Lembik Right now I'm thinking about something with Mathematics... but I haven't decided anything yet
 
@KritixiLithos CS at a good university!
which country?
 
@AdmBorkBork Gotcha, but what about universities?
 
@KritixiLithos Maybe "code shortening"? Because "golf" does indeed make code short, but it relies on non-real-world assumptions and often produces too slow code.
 
@Lembik Haven't decided yet
 
2:53 PM
@Lembik It could be, but there's a danger of someone cheating and saying "Well, it works on my environment." Generally, those are frowned upon, because there's not really a clear way to compare between answers.
 
@AdmBorkBork hmm... thanks.
 
@KritixiLithos Assembly, logic, system architecture (CPU, file system, etc.) -- all very helpful in understanding where to squeeze out bytes, even if they're not directly a "code golf" class.
 
@KritixiLithos if you want any recommendations just ask
overall I recommend CS courses which have enough mathematics. I feel the other type are a dead end
 
0
Q: Find the Translation Table

carusocomputingGiven two strings, find the translation table between the two, if the translation is not possible, output false. The answer must be minimized and created from left-to-right. The first character to be translated between words must be the first in the translation table. In addition to this, any let...

 
Well, pure maths classes are great if you like maths. I distinctly remember loving learning about Galois Theory, ring theory, ZFC ... I don't remember most of the material, but I remember enjoying the classes.
 
3:01 PM
Then I also have to consider the job opportunities. From what I've seen, taking Pure Maths mostly leads to teaching fields (I don't really want to become a teacher).
Even though Pure Maths seems interesting
But with Applied Maths there is a range of finance-related jobs and some others like a statistician, etc. But I don't know if I'll like it or not
 
Yeah, same. I was a CS/Maths double major, wound up missing my Maths major by one semester (I had a scheduling conflict) and so ended up graduating with only my Bachelors' in CS. And then I got a job in IT as a system admin, moving to infrastructure engineer, and haven't really even used my CS degree, either.
 
It's definitely worth getting into math and CS whenever possible, even if you officially graduate only in one of the two
 
What sorta jobs would you get with Math+CS? What will I really do (in the jobs)?
 
I only took two classes in CS, but they were super interesting and I learned a ton. Really fun too
 
Your job history will have more to do with that than which exact degree you have, once you get past your first "real" job or two.
The big thing is just getting your foot in the door for that first real job. After that...
 
3:11 PM
Any sort of development or development-related (designer, architect, etc.) is a natural slot for a CS degree. Depending on your skillset, previous history (as Geobits mentioned), job openings, etc., you could be a back-end architect or DBA, QUA tester, business analyst, etc.
 
"Business Analyst" lol. I was one of those for a few years. It's just vague enough to mean anything they want it to.
Well technically it was Business Systems Analyst, but that doesn't exactly clarify much.
 
CS is generally a lot of coding, algorithms, data structures and structure types, interfaces, programming methodology (agile, waterfall, etc.). It's very code-oriented.
 
That's why I'm also looking into internships to see what sort of things I would be interested in (expectations vs reality)
 
@Geobits So you were a BS Analyst? That somehow fits ...
 
@AdmBorkBork I quite agree
 
3:13 PM
I was pretty lucky with my "first real job". I started interning at an electrical engineering company when I was 17 and now I've been there for almost two years
 
@Geobits It actually does clarify some though.
 
@AdmBorkBork My parents talked with me yesterday why I shouldn't choose CS. Some points that came up were low starting pay, supply vs demand (there are a lot of CS people in the world), etc.
 
@EriktheOutgolfer If you knew what I was doing, you might not agree.
@KritixiLithos That might depend on where you are. Starting pay here is probably quite a bit higher than in many other fields.
 
@KritixiLithos Yeah, that's definitely market dependent.
 
Ah, I was under the impression it was more or less the same globally
 
3:20 PM
For example, I imagine getting a coding job in New Delhi to be extremely competitive, likely much more competitive than here in middle-of-the-USA.
 
New Delhi living conditions = umm...
 
I wasn't making a reference to living conditions, climate, commute, etc., just focusing on the likely job market.
 
@EriktheOutgolfer isn't that an oxymoron?
 
@AdmBorkBork Yeah, but you've got to live somewhere, preferably near where you work.
 
@DJMcMayhem judging by other people, you're really lucky
 
3:25 PM
@JanDvorak An oxymoron contradicts itself, how does this contradict itself?
 
family friend has had 5 jobs in 2 years
 
@AdmBorkBork So something like this: manager gives you a task/project, you and your team work on it?
 
@Riker yeah
 
@DJMcMayhem <shrug> happy you've got a nice job though
 
:) thanks
 
3:33 PM
or, "what aol cds are actually good for"
 
3:52 PM
@KritixiLithos Yeah, that would fall under "Computer Science" - there are plenty of group projects, including API documentation
 

« first day (2270 days earlier)      last day (2564 days later) »