« first day (2313 days earlier)      last day (2525 days later) » 

5:04 PM
That's GitHub's "fork a repository" animation
 
If I'm using ruby's optparse, how do I tell it to expect filenames, that is usage should be program --options file1 file2
 
@Mendeleev That's awesome
 
@NewSandboxedPosts <- If anyone could take a glance to say whether it is clear enough I'd be happy.
 
@NewMainPosts @ETHproductions I like this challenge a lot. It's simple but not necessarily easy. +1
 
We should make an @NewTNBMessage feed here.
 
5:16 PM
Any ruby person pls help with optparse
 
put a ruby on top of your keyboard's space key
should help
 
Does anyone know if we've got just a simple cat program challenge?
 
It's literally called "Simple Cat Program"
 
You know, a challenge like "write a program that prints whatever is inputted"
@BusinessCat Yeah but where is it
Oh wait
nvm
 
61
Q: Simple cat program

Martin EnderOne of the most common standard tasks (especially when showcasing esoteric programming languages) is to implement a "cat program": read all of STDIN and print it to STDOUT. While this is named after the Unix shell utility cat it is of course much less powerful than the real thing, which is normal...

 
5:23 PM
You gave me the title, I can find it :P sorry
 
user165474
ninja'd
 
ninja'd
 
ninja'd, ninja'd
Typical of Martin to take 5k characters to describe a simple cat program challenge
 
Go to the Cat for all the dirt on Cat challenges
 
user165474
 
user165474
5:25 PM
Simple tac program
 
@MDXF Wait, so let me get this straight... It's a bad thing that a challenge is well-specified and clear?
 
CMC: cat in bf on tio
 
@DJMcMayhem Never said that
 
@Christopher ,[.,]
 
invalid: not on tio
 
5:26 PM
@MDXF It is
 
@BusinessCat You would be the one to find that challenge :)
 
@BusinessCat i TRIED THAT ON tio BUT IT WORKED NOW
 
welp
 
user165474
what did you do? permalink?
 
user165474
5:28 PM
CMC: tac in bf
 
I think that would be ,[>,]<[.<]
 
user165474
I tried that. Didn't work.
 
user165474
wait no i'm dumb
 
what's tac?
 
@HyperNeutrino Works for me: Try it online!
 
user165474
5:29 PM
@DJMcMayhem I put the input as an argument :I
 
print input backwards?
 
reverse cat presumably
 
user165474
yes
 
Lol
 
i should've just assumed >_>
 
5:29 PM
Anyone wanna try tac in brain-flak?
 
user165474
brain-tac
 
There's two different super simple solutions, I'm curious to see who can find them
 
Except the tac challenge is to reverse each line so technically that BF doesn't work
 
user165474
:I
 
5:30 PM
how does this face work? :I
 
This is a full mruby running in the browser!!
 
I hardly want to try cat in Brain-Flak
 
2
A: Simple cat program

Erik the OutgolferBrain-Flak, 0 + 3 = 3 bytes Needs the -c flag. Try it online! This language cannot possibly handle infinite input streams. This language absolutely always appends a trailing newline to the output. In the original Ruby interpreter, the input is a command-line arg instead of a STDIN stream. ...

 
Unless it's one of the languages that just spits it out implicitly?
 
@Mendeleev the chrome tab ran out of memory while loading
 
5:31 PM
Yep.
 
@Poke works for me™
 
Does it just push the input into one of the stacks?
 
Yes. And then it pops everything and prints when it's done
Oh. I'm dumb.
Nevermind, there's only one simple solution in brain-flak
 
So could you just pop and push to the other until there's nothing left, then print that one
 
5:34 PM
Do we have a tac challenge anywhere?
 
user165474
Yes.
 
Yes, but you have to reverse each line, not the whole input
 
I can't find it. It brings up when I search
 
Ninja'd
 
5:35 PM
@HyperNeutrino why are you monospacing
we have nice oneboxes :P
 
user165474
Because I can.
 
it looks a little different :]
 
user165474
@Poke you broke the trend D:
 
@Poke NOOOOO you broke the trend
 
5:41 PM
Do I get kicked if I speak like a human?
 
37 messages moved to Trash
 
ninja'd
 
@Poke why
 
ouch
 
Oof
 
5:42 PM
As usual, there is nothing wrong with what you were doing, but you took it too far. Please stop now
 
user165474
Well we have confirmation of my suspicion that we will get murdered. Not by Mego though.
 
user165474
:thumbs-up:
 
because i can't be bothered to put tick marks around all my text
 
tbh i see nothing wrong :P
 
5:42 PM
/r/totallynotrobots
 
monospace is nice
 
0
Q: Fastest Approximate Common Divisor

isaacgOverview In this challenge, you will be given two numbers which are both a small offset larger than a multiple of a medium-size number. You must output a medium-sized number that is almost a divisor of both of the numbers, except for a small offset. The size of the numbers involved will be para...

 
At least we didn't put 100 emojis between each word
(Please nobody do that)
 
sigh
 
What do people think of my new question above? Are there people who like fastest-code challenges?
 
5:46 PM
1 message moved to Trash
 
i don't 'cause i do python
 
0
A: Sandbox for Proposed Challenges

ChristopherGenerate a Texting Dictionary Old fashioned cell phones were and are used heavily as texting platforms, unfortunately the keyboard has only 12 + a few buttons, and is therefor ill-suited to naive text entry. Common solutions make use of the traditional telephone coding (generally with a modest ...

 
welcome back tom. i see you still have exploding nebulae for eyes
 
that's always nice
 
@isaacg I probably won't participate in it, but I'm always happy to see good challenges that aren't , so I +1'd it
 
5:48 PM
@DJMcMayhem everything OK in here? (cc: @Dennis)
 
@ThomasWard I think I've got a handle on it. Thanks for checking though. :)
 
yep. when i see a few successive kick notices because I happen to lurk here, never hurts to check :)
 
user165474
:O people got kicked?
 
Do you only get kick-notified if you are in the room? (or were recently)
 
@Poke that hasn't changed, though - at least the exploding nebulae are contained :)
if they werent, BOOM
@DJMcMayhem i think diamondpower has something to do with it, but usually only when i'm in here do I see it
(joined but in Ask Ubuntu i still see the notification bar at the top heh)
 
5:50 PM
the radiation is still affecting the rest of your photo so i wouldn't get too comfortable with how "contained" they are
 
OK.
 
@Poke that's just photons.
 
I knew that mods and RO's are notified, I just wasn't sure of the exact details
 
photon radiation is totally a thing
 
@Poke yeah, it's called "LIGHT"
 
5:53 PM
@ThomasWard Nothing a steel toe boot won't fix.
 
@Dennis I guess that means the spiked boots are out then heh
 
but... that kinda makes the eyes useless as eyes, doesn't it?
For a really long time, even
 
user165474
No, because however Thomas uses them, he's still using them as eyes (though maybe not the way we're used to using eyes) so they're useful as eyes, just not as normal human eyes.
 
How do you know? Maybe he switched to TTS for reading the chat
 
user165474
5:55 PM
Yes, but they're still being used as eyes, even if he can't see.
 
clarify
 
user165474
No matter how he uses his eyes, he's using them as eyes, thus the eyes are still useful as eyes even though not in the conventional sense.
 
blind people still have eyes
and they can't see
 
user165474
 
i guess not all blind people have eyes
like pirates are often missing some eyes in traditional pirate lore
 
5:57 PM
how do we know that my eyes aren't bionic in nature and all the visual data is actually picked up by multiphasic scanners inside the eyes, and relayed to my brain as images, while the majority of my eyes just exude supernova-like energy as beams of evil?
 
as long as your eyes treat cancer, i'm all for it
3
 
How many eyes do you have?
 
@JanDvorak Many.
 
Is it like with houseflies, where each eye is actually a large bunch of tiny eyes bunched together?
 
@JanDvorak at least 2
 
6:02 PM
Woah
 
?
 
meta.codegolf.stackexchange.com -> codegolf.meta.stackexchange.com
Oh, and HTTPS fixes.
 
Did you miss the blog post last week?
 
that happened a long time ago
 
@KritixiLithos Similarly, I've just been back after a long time.
I'll find it tho
 
6:05 PM
we've moved from http to https
 
the linked post is also a good read
although i still feel like authentication through html image tags is a bit janky
 
6:16 PM
@DJMcMayhem Thanks :-) That's the main reason I thought it would make for a good challenge.
 
0
Q: Straddling Checkerboard Cipher

marcosmThe Straddling Checkerboard is a method for converting letters to numbers and was part of a pencil an paper cipher known as VIC To convert letters to numbers first you have to make a checkboard like this: 0 1 2 3 4 5 6 7 8 9 --------------------------------------- E...

 
6:46 PM
Hello all
I have a question about a possible challenge and how to frame it
For example, you have a 20-sided die. You roll it a few dozen times and you finally roll all 20 values. You wonder, how many rolls do I need before I get a 50% chance of seeing all 20 values? And how many rolls of an n-sided die do I need to roll before I roll all n sides?
There is a formula for the chance that on k rolls of an k-sided die, you roll all k values. It's factorial(k) * S(n, k) / k**n where S(a, b) is the (a, b)th Stirling number of the second kind.
The question is do I make this a fastest code challenge to compute that formula for a given k (which does take a while for k > 5000), or do I frame it another way? The trouble with fastest code is that my machine isn't really fast by itself, and I'm not sure I can get access to another one, but I'm not sure how else to frame it. Besides a regular code golf challenge, I guess
 
I'd be willing to test it on my machine
 
Whatever you do, make the number of sides a variable.
 
Depending on how busy I am when you post it
 
The main variable is the number of sides, the objective is finding the needed number of rolls
 
My machine is pretty fast (i7 4790k, 8 GB ram)
 
6:56 PM
Thanks DJ
I'll type it up as a fastest-code in the sandbox then
 
You'll need to mention that the language must be freely runnable on windows 10.
Unless you think it would be better in a VM, but that seems like a bad idea
 
Yeah, that's a good enough restriction, I think
 
If I purposely want to send a malformed http header with python, should I just use a bare socket? It looks like the requests library is throwing an exception
before the request is sent
 
Cool. I'm busy right now, but could you ping me once it's sandboxed?
 
You got it. I may not finish the post until tomorrow though. It's 2 am here and I have class in the morning
 
7:00 PM
Oh right, timezones are a thing :P
 
when inserting a string into a RadixTree does it make sense to compute and return the alphabetical index of that string in the tree at the same time?
 
Not in Universal Greeting Time! Unfortunately, my classes are not in Universal Greeting Time :/
 
Why not stick to timeZone-tov?
 
Actually, I don't think it makes sense since you'd need to know the sizes of branches you never traverse down. Unless you keep track of those..
 
7:08 PM
@DJMcMayhem Why? No one likes Windows.
 
I like Windows, though in my case I may be susceptible to either Stockholm syndrome or the "no true programmer" fallacy
 
@Sherlock9 What do you like about it?
 
Largely that I have everything on it that I need at the moment. Including games
 
If you were starting fresh
What would you use?
 
I'd do one of two things. Most of my development and gaming is done on stuff that would be difficult to find on, say, Linux. I would be sad to lose Notepad++ and a large portion of my Steam library, for instance
 
7:19 PM
Notepad++? People use that for things other than minor config file tweaks?
 
But, given a convincing enough argument for moving to Linux, I would. But that argument would basically involve teaching me all the replacements for software I used to use
Yes. I use it as a general code editor for the esoteric stuff
 
Right...
There's the possibility of using VMs for the Windows specific stuff
or having a dual boot for gaming
 
Ok sure. I used to have a dual boot. Until the bootloader died and I went back to all-Windows
 
The bootloader shouldn't have died... do you know what happened?
 
My laptop is piece of crap that I keep dropping to the point that the case is now cracked all over?
 
7:23 PM
...
Don't do that
 
XD Thanks
 
get an ssd
 
I've been trying not to
 
Good for you
 
I'm getting a new laptop at the end of the semester
 
7:23 PM
Which one?
 
We'll see if I go to Windows or Linux
 
Will we?
 
Acer, but I can't remember the model name
 
Acer isn't known for their amazing build quality
In fact
 
No, but I found one that's cheap, and I'm on a really tight budget
 
7:24 PM
Oh, that makes sense.
If I was on a tight budget, I would get something used
 
@Mendeleev Yes, absolutely no one. That's why it's the most common desktop OS
 
What's your budget?
 
I get that Linux is better, but I use Windows and I'm fine with it
 
$500
 
I don't really care for flamewars
 
7:25 PM
@DJMcMayhem It's common because it comes preinstalled on things and because Microsoft pays people to install it
@DJMcMayhem Not trying to flamewar here
The only reason that Windows has a huge market share is that IBM decided to collaborate with MS on releasing the PC with DOS
 
@DJMcMayhem I second this
 
@DJMcMayhem Honestly, that's my main argument
Also I posted the Sandbox post here
 
@DJMcMayhem I see what you mean but you shouldn't be
@Sherlock9 You need 3 letters or more to ping
 
Thanks
I decided to remove the ping, though. Because he's already going to read my message
 
> I'm not trying to flamewar.... You shouldn't be OK with Windows
 
7:37 PM
Alright, now that the Sandbox post is done, I'm going to bed
Night all
 
0
A: Sandbox for Proposed Challenges

Sherlock9Roll to see all sides! fastest-code probability combinatorics Let's say you have a 20-sided die. You start rolling that die and have to roll it a few dozen times before you finally roll all 20 values. You wonder, how many rolls do I need before I get a 50% chance of seeing all 20 values? And h...

 
welp
pats NSP's head
 
8:02 PM
0
Q: OCR traning and testing with KNN algorithem

jimmiBellow is my code to for training of data. For one image training my code is working well but if i train multiple images it rewrite the imgaes.xml and classification file. Can anyone help to change this code for multiple images training #include<opencv2/core/core.hpp> #include<opencv2/highgui/...

 
feeds NMP butter
 
8:17 PM
0
Q: Beautify My Text

KuanHulioIntroduction I would assume most of you guys have seen people around the internet with names that are not regular text. Maybe they have Japanese characters, or some other weird font. Fun fact: In Discord, we like to call them "Cancer Names" because they are hard to ping. Challenge Your job t...

 
o0 lotsa posts
 
Oh, Java...
Wow, I've never seen more than 500 bytes chucked off an answer. :O — VoteToClose Apr 11 '16 at 10:23
I forgot about that question. :)
 
Oh that's nothing
38
A: Golf you a quine for great good!

Wheat WizardBrain-Flak, 9.8e580 1.3e562 9.3e516 12818 11024 4452 4332 4240 4200 4180 3852 3656 3616 3540 2485 + 3 = 2488 bytes Now fits in the observable universe! (())(()()())(())(())(()()())(())(())(()()())(())(()()()()())(()())(()()()()())(())(()()())(())(()()()()())(())(())(())(())(()()()()())(())(())(...

e577 bytes golfed
 
@DJMcMayhem 597 bytes on that answer.
 
Huh?
 
8:27 PM
3
A: Draw a spiral in a box

VampireJava, 1056 1005 985 948 522 508 507 504 502 501 493 492 488 474 465 458 bytes import java.awt.*;interface G{static void main(String[]a){new Frame(){int s=499,o=s,e,i,x,y;{o/=new Float(a[0]);add(new Component(){public void paint(Graphics g){g.drawRect(0,0,s,s);int[]p={s,s,s,0,0,0,0,s};for(double ...

Oh wait
You mean engineer's number
lordy
 
@Sherlock9 BTW, I know you're asleep right now, but I'm pinging you so you can see this tomorrow. I was messing around with your recent sandbox post, and I wrote a naive python implementation to see how fast it would go. Here are the first couple results:
Calculated 1: 1 in 0.0 seconds
Calculated 2: 2 in 0.0 seconds
Calculated 3: 5 in 0.0 seconds
Calculated 4: 7 in 0.0 seconds
Calculated 5: 10 in 0.004000186920166016 seconds
Calculated 6: 13 in 0.11099982261657715 seconds
Calculated 7: 17 in 9.138000011444092 seconds
Calculated 8: 20 in 237.3860001564026 seconds
And by naive, I mean very naive. It uses this algorithm for stirling numbers which is doubly recursive
I didn't expend too much brain energy on trying to understand the optimal method of calculating stirling numbers, so I'm not sure what a better way to do that would be
@VoteToClose Yes, an insane amount of bytes
I like how fitting in the observable universe is a notable improvement, lol
 
0
Q: Randomize the scalars of an array

ChristopherYou must fill an array with every number from 0-n inclusive. No numbers should repeat. However they must be in a random order. Rules All standard code-golf rules and standard loopholes are banned The array must be generated pseudo-randomly as it is made. Every possible permutation should have ...

 
Ah, turns out that was a really poorly optimized example. Using this one (similar, but more efficient, still doubly recursive) sped it up significantly
Calculated 11: 31 in 41.67899990081787 seconds
 
@totallyhuman I've seen people asking in here, didn't seem to bother anyone
But I'll do it there in the future
 
8:40 PM
it's been moved there often
 
That's usually dennis moving it so that he can remember it easier.
I think it's perfectly OK in here
 
ok my bad then lol
 
@DJMcMayhem For that very reason, it's preferable to post it in talk right away though. I can't pull right now, and moving from mobile is a pain.
 
@Dennis How's that?
 
Thanks. :)
 
8:48 PM
I understand your moving from mobile pain. It sucks
 
The worst part is that you can only move one message at a time. Works here, but makes trashing impossible.
 
Pretty much the only RO power that is easy from mobile is kicking
 
user165474
@Dennis Can you freeze my SE account for a week? (IIRC mods are allowed to do that upon request)
 
@HyperNeutrino How come?
 
user165474
I need to focus on schoolwork and I think PPCG might be too big of a distraction. It's easier just to not be able to do anything on it at all.
 
8:53 PM
Hah I know the feeling
 
user165474
Also, if my account's suspended, does visiting PPCG still count towards getting "Fanatic"?
 
CMC: given n return the lowest x for π(x) = n
 
@HyperNeutrino You can still visit every day to get the badge
I was suspended on SO about a year ago and I still got a visiting badge
 
user165474
Yay. Okay.
 
user165474
@betseg Test cases?
 
8:58 PM
wait thats just return nth prime
blergh
 
user165474
lol
 
user165474
In which case, Jelly, 2 bytes: ÆN
 
@HyperNeutrino Sure. But note that, like every other suspension, this will be final, i.e., I won't unsuspend you before the 7 days are over.
 
user165474
Okay. I understand the implications of a suspension. Though one (final) question; is a suspension recorded on my profile?
 
Yes, that cannot be avoided. I can add a note that it was requested though.
 
user165474
9:04 PM
Okay. Thanks.
 
s/if/it
 
i usually just add to my hosts file
 
@HyperNeutrino During the suspension, your profile will also say that you're suspended for rule violations. There's no way to enter a custom reason. Please confirm that this doesn't bother you.
 
user165474
@Dennis Okay. I confirm that this doesn't bother me. If anyone asks about it when I get back, I can tell them, but otherwise, it does not concern me.
 
o0 there's always a limit on something if it is on SE
 
user165474
9:12 PM
wait hold on
 
user165474
I have an open bounty. Should I award it now? What happens when it expires over my suspension?
 
@HyperNeutrino Why not just block PPCG on your end?
 
@HyperNeutrino You cannot award bounties while suspended.
 
@Mendeleev Requires trusting future self
 
@Dennis will it get automatically awarded?
 
9:14 PM
@trichoplax There's browser things that make you wait
 
There's always another browser...
 
user165474
@Mendeleev Being a coder, I could probably find a way to get through that...
 
@totallyhuman If it matches the criteria, yes, but is most cases only half of the bounty.
 
Would you?
 
user165474
@Dennis Should I award it now then?
 
user165474
9:15 PM
@Mendeleev Good question. Likely not; if it were difficult enough, I'd just give up trying to get through it.
 
Also, there's the possibility of just using PPCG with no account (e.g. answering in guest mode)
 
@HyperNeutrino I can't tell you what to do, but the post notice promises it to the shortest answer at the end of the bounty period, which ends in 2 days.
 
@Mendeleev Suspension avoidance.
 
@VoteToClose True, I guess
But does it really count as that if it was requested?
 
user165474
@Mendeleev Yes.
 
9:17 PM
oic
 
user165474
@Dennis Ah, okay. Yes. I suppose it would be more wise to award it now because the most upvoted answer right now is the longest, so waiting would be even worse.
 
user165474
I just hope that the other answer won't be golfed much though, because the two closest ones are 8 bytes apart.
 
I'm not sure I understand your train of thought. Gotta go now. Let me know what you decide.
 
user165474
@Dennis Alright. I have dealt with the bounty now, so I have no other concerns and am ready for suspension.
 
GG
 
user165474
9:21 PM
Goodbye world PPCG! See you in a week or so o/
 
If you are still visiting the site every day for a badge, you realise there's still nothing stopping you from writing code, you just can't submit it?
 
user165474
@trichoplax I realize that. I don't know how much a suspension will help against this but ¯\_(ツ)_/¯ I'll see how it goes. One of my school projects involves coding anyway, so I can still code.
 
You might be better posting your computer to yourself to arrive in 7 days time...
Oh - not if you need to code for school...
Good luck!
 
user165474
Yeah. Coding isn't required but I find it a lot more interesting so I'm more motivated to do it. And thanks! :)
 
9:33 PM
@Mayube It's been able to do that for months, I'm just not sure how to do it golfily
 
10:15 PM
0
A: Sandbox for Proposed Challenges

MD XFPrint the Hacker Logo (challenge in progress) code-golf graphical-output You may have heard of the "Hacker Logo", also called the "Hacker Emblem": [This] graphic ... is called a glider. It's a pattern from a mathematical simulation called the Game of Life. In this simulation, very simple r...

 
10:51 PM
0
Q: Miller-Rabin Strong Pseudoprimes

MegoGiven a non-negative integer N, output the smallest odd positive integer that is a strong pseudoprime to all of the first N prime bases. This is OEIS sequence A014233. Test Cases (one-indexed) 1 2047 2 1373653 3 25326001 4 3215031751 5 2152302898747 6 347474...

 

« first day (2313 days earlier)      last day (2525 days later) »