« first day (2141 days earlier)      last day (2688 days later) » 

5:00 AM
@Mego Chuck it (first world solution)
 
Anonymous
It's water that has been blessed by a priest. Good for demons and the undead.
 
Anonymous
@Geobits But it's a really nice keyboard :/ I may cannibalize a rubber bit from another keyboard
 
Yeah, if your holy water is yellow and smelly, it might have come from a goat.
 
@Mego does oldest goat on farm count as priest?
 
Anonymous
First world solution: I'll glue velcro on it and my desk so that it stays put and won't be so loud
 
5:02 AM
@Mego Is it one on the near side? If so, take the other one off and get some little felt stickers like you'd use for chair legs.
 
Anonymous
@Downgoat No that's the elder goat. The priest goat is usually somewhere between #2-10 in age.
 
Velcro works too
 
Anonymous
@Geobits Back side
 
Anonymous
But a felt sticker would work... If I had one
 
Anonymous
I also don't have any velcro so I need a better short-term solution
 
5:02 AM
Walmart's always open :P
 
Anonymous
Yeah but I'm not about to put on a pair of pants to deal with a minor annoyance
 
Fair enough. Also, thanks for sharing that.
 
I'm now curious how penguin pants are shaped
 
Anonymous
@Downgoat Wide and short
 
@Downgoat Have you never seen a tuxedo?
 
5:04 AM
leaked photo of Mego rn :P
 
Anonymous
Hahahahaha
 
Anonymous
I'm actually wearing sweatpants though. I'm not going to go out while wearing them. For one, it's much too cold outside for sweatpants. Also, I don't want the Walmart people to think I'm one of them.
 
Anonymous
My wife has no cold tolerance, so she has the heater running hot in our apartment. I am a penguin. It's rough.
 
You've got all sorts of first world problems right now :(
 
Anonymous
I know
 
5:06 AM
And here I am happily playing FFXV
 
Anonymous
How will I ever survive
 
:( I couldn't think of "first world problems" pun in time
 
Anonymous
@Geobits Are you enjoying it?
 
So far so good, but only a couple hours in.
Better than the first couple hours of XIII for sure.
 
Anonymous
@El'endiaStarman Ugh that notice on the top is stupid. Mind your own business, article. You don't need to stick your nose into HN's moderation style. It is irrelevant to the article in every way.
 
Anonymous
5:08 AM
The last FF game I played was VIII, not counting the Tactics series
 
This one is quite a change from the usual FF fare so far. Good, but just... different.
 
@Downgoat I'd be more evil, but too busy to get around IP check right now.
 
Anonymous
@Geobits I've heard some stuff about it. I'm not sure if it's a game I'd be interested in. Especially considering how (re-)addicted I am to Destiny right now.
 
It's worth a Redbox if nothing else. I probably wouldn't throw $60 on it up front if you haven't been keeping up with the series.
 
5:12 AM
I am not able to find a source on this but does anyone happen to know what type of backend Ghost uses for its database?
 
A spooky one?
 
I would think MonoDB but knowing Node.js community they probably implemented an entirely new database specific to Ghost
ah SQLite
 
@feersum the display portion can't really be "invalid", it can just be "not clear enough so people don't upvote your answer because they can't tell if it works"
 
Anonymous
@Geobits I have never gotten a game from Redbox. I don't know why.
 
This is the first time I have ;)
I wasn't even planning to, I just saw it when I was at the circle k and grabbed it. Ads work, apparently.
I'll be picking up a copy of the game though. Just wanted a preview first.
 
Anonymous
5:18 AM
I rarely preview games. The only time I have in recent memory was during the Overwatch free play weekend, and that's only because friends goaded me into it. I wouldn't pay for that game though - it was fun, but a game with only PvP isn't worth $60 to me.
 
I usually don't, unless you count seeing someone else play it. I thought about just going up to the store to buy it, but I didn't want to make another stop today, and I figured a couple bucks was worth the convenience.
I do t know whether I should be proud that I restrained my usual impulse, or sad that I let the poster on the Redbox make me rent it :P
 
OK, so executing a simple Hello World program in Powershell requires opening 158 files at the same time. With reasonable limits for untrusted accounts, you get errors like this one. With the limit set to 154, it simply says that it cannot find a file. With 155 or 156, Powershell terminates with exit code 1, but prints no error message. With 157, it throws System.OutOfMemoryException. With 158, everything works as intended.
16
Absolutely bananas.
 
Anonymous
5:38 AM
@Dennis @TimmyD We need your arcane knowledge of Powershell
 
On a related note: tio.run/nexus/…
Executing that program takes 3 wall seconds btw. Yowza!
I'm not sure, but TIO might just host the first ever online interpreter for Powershell.
 
Anonymous
Has Powershell been made open-source?
 
Anonymous
5:53 AM
Apprently yes, as of a few months ago
 
Anonymous
And any sane person on Linux would look at Powershell, chuckle, and go back to glorious bash
 
Yup. The Powershell and dotnet packages I needed came directly from Microsoft. I didn't think I'd see the day, and frankly, I didn't quite believe it until I got it to work on TIO.
 
6:13 AM
@Dennis woah. I freakin love the new play button. It looks really good!
 
:)
 
7:09 AM
@flawr No, that's grumpy Steve.
 
8:03 AM
0
Q: Zipper multiplication

ZgarbIntroduction Let's define a new arithmetical operation, which I call zipper multiplication. To zipper multiply two nonnegative integers, you add leading zeros to make the lengths match, multiply the corresponding base-10 digits of the numbers, add leading zeros to the results to get 2-digit numb...

 
8:13 AM
Hello
 
:( my Clojure answers get no love
And no golfing tips
They're consistently at the bottom of the leaderboard
 
Do you have an explanation added to your answers?
 
Not really
I have an ungolfed version
I'm too ceebs to write an explanation sometimes
 
2
Q: What are the five most powerful characters in your language?

Calvin's HobbiesChoose any five characters your language supports. There are 5! = 5×4×3×2×1 = 120 ways these can be arranged into a 5-character string that contains each character once; 120 permutations. Choose your characters such that, when each of the 120 strings is run in your language, the 120 outputs prod...

 
8:28 AM
Maybe people don't upvote because they don't understand it
 
9:19 AM
5 hours ago, by betseg
Halp what's wrong with this code it works with all test cases but doesn't work with real BSNs http://codegolf.stackexchange.com/a/102486/56721
Halp
 
Use Java
 
Hell no
 
 
1 hour later…
Anonymous
10:28 AM
One of these days, Actually is going to make me rip my hair out
 
Anonymous
All of these obscure bugs that I keep finding but can't seem to track down and fix are driving me nuts
 
-1
Q: Cube Cuts how to many cuts to cut a cube

andre ahmedHow many cuts are needed to cut a A x B x C cuboid into unit cubes? After each cut you are allowed to rearrange the parts in a way you like, so you may cut several parts in one action. A unit cube is a 1 * 1 * 1 cube. And in a single cut you can move the knife only in one direction. Input The ...

 
 
1 hour later…
12:03 PM
0
Q: depth first search

Ahmed SalehIt's holiday season. A mall is empty except of air, money, and a very clever thief that is you. The mall consists of n floors. Each floor can be represented as a rectangular 2D grid. All floors have the same 2D dimensions. You are somewhere inside the building. Your job, as a hard-working thief,...

 
HALLO
 
12:23 PM
what's with these c++ tagged questions :S
 
1:02 PM
@JarkoDubbeldam People erroneously think that we're Stack Overflow.
 
@Mego 5 stages of grief: Seriously, Actually, Usually, Really, Finally
14
 
@El'endiaStarman Ah, 'please code this for me'
 
I also remember there was one question we got that should've been on Seasoned Advice (Cooking.SE). I don't remember which question it was, though.
I have largely ceased to be surprised by how off-topic questions can be here.
 
The advocad question? :P
 
@El'endiaStarman juic avocad
 
1:10 PM
Well, other than that one, but maybe that was it.
 
1:28 PM
Halp how can I resize partitions with GNU Parted?
(not GParted)
 
@betseg just use Gparted
@TuxCopter advocad question?
 
nooo
 
@TuxCopter there are like 3 questions that are to do with avocad, all done by socks
 
@Zacharee1 oh apparently Arch ISO has fdisk too
 
1:39 PM
@Mego @Dennis I just code in it. You may have luck asking Joey
 
1:50 PM
 
@betseg cuz just use GParted
Plot twist: betseg actually starred that message so he could post ^^
 
Also, I don't have enough internet to download a GUI Linux live ISO, that's why I asked about Parted
@TuxCopter star is yellow if you starred
 
1:53 PM
ahk
But this Plot twist was a joke >_>
 
2:15 PM
hello community
 
hello
 
Is it bad that it took 2 minutes to understand this xkcd? :/
 
I have a love/hate with the sad xkcd pages
He's just way too good at inducing nerd-related feels
 
Question: has anyone made Retina BF interpreter?
 
2:31 PM
 
@Downgoat yeah, mbomb has
I've been meaning to write one as well, but I keep forgetting
 
is there a subset of BF you can to implement to maintain turing completeness?
 
2:47 PM
user image
8
 
Yay, that means mine was special.
 
@NathanMerrill input and output are unnecessary
 
but the rest of them are necessary?
like, could you just have >, and not <?
 
You can remove + if you're wrapping.
 
wrapping the tape or wrapping the values?
 
2:51 PM
Wrapping the values. It's probably possible to wrap either the tape, or the values, but of course not both.
 
2
Q: Sum of Modulo Sums

TimmyDGiven an integer n > 9, for each possible insertion between digits in that integer, insert an addition + and evaluate. Then, take the original number modulo those results. Output the cumulative sum of these operations. An example with n = 47852: 47852 % (4785+2) = 4769 47852 % (478+52) = 152 4...

 
A counter machine is an abstract machine used in formal logic and theoretical computer science to model computation. It is the most primitive of the four types of register machines. A counter machine comprises a set of one or more unbounded registers, each of which can hold a single non-negative integer, and a list of (usually sequential) arithmetic and control instructions for the machine to follow. == Basic features == For a given counter machine model the instruction set is tiny—from just one to six or seven instructions. Most models contain a few arithmetic operations and at least one...
^ if you are wrapping the tape but not the values, you could implement a counter machine. It's a more roundabout method though.
Also worth looking into are cyclic tag systems.
 
@NathanMerrill tinyBF (I think?)
 
@Downgoat that doesn't make implementation easier I think
 
@TimmyD It's working now, so looks like I won't have to.
 
3:25 PM
@betseg what is one it doesn't work with
that it should work with
 
@Poke David's and Robert's BSNs
 
yeah but I don't know what those are
>.>
 
@Poke is the code correct?
 
i'm looking
 
0
A: Sandbox for Proposed Challenges

LeoWrite a cross-quine! Choose two programming languages, A and B. You should write two programs: the first one, when run in language A, should output the second one; the second one, when run in language B, should output the first one. As this is code-golf, your score is the sum of byte lengths of...

 
3:35 PM
the wireworld clock challenge got me around to writing some lua
golf challenge - fit all the [edit: programming] languages you know into one resume' page
 
Turkish, English
 
Define: know
 
@wyldstallyns do HTML and CSS count?
 
@betseg it seems right. do you have a reproducer
 
the combination of the two, yes, neither alone can do it
though the css can work against an arbitrary (or empty) <body>
 
3:40 PM
I agree with Sp3000, know as in fluency or name
 
know == can fizzbuzz without notes
 
Ah k
 
@Dennis Thanks for adding PowerShell to TIO! But, I can't seem to pass input. Any combination of param($n), $n=$args[0], $n=$input or $n=$_ coupled with "->$n<-" yields just -><- for output, no matter if I put the input in Input or Arguments.
 
I can Fizzbuzz in CSS, if I have enough divs in the document
 
@wyldstallyns Interesting definition of know. Next question: on a computer or on a whiteboard?
 
3:43 PM
computer - you can interactively debug till you stumble across the solution
 
That's going to be one long list then, if I'm allowed to interactively debug :P
 
that's why the real challenge is golfing it down to one resume' page
 
How is it possible not to know a language under this condition?
 
Another question: do I have access to man?
 
3:45 PM
e.g. I've never used Lua (for anything proper), but I reckon if you lock me in a room for 30 min I could guess the syntax enough to work it out
 
sp3000 having just picked it up last night you're right
huh
i wonder if we could build a language detector
based on the error outputs of arbitrary code
i'm going to sandbox this
how would you score number of languages detected by code size
 
Langs**3/bytes, highest wins
 
47
Q: Seriously, GolfScript, CJam, or Pyth?

coredumpSome time ago, the following question was asked: GolfScript, CJam, or Pyth? Based on the title only, I thought that it would be a very nice challenge, but unfortunately, it turned out to be a question asking for tips. Here is the challenge I wanted to read: Who said golfing languages were not...

 
@betseg it's worth noting that since your variables aren't scoped to the function, running it multiple times can produce bad results. Maybe the people who said it didn't work fell into this trap
 
Maybe. I just assumed they used TIO.
 
3:49 PM
I haven't been able to reproduce
 
Thanks for checking though
 
I believe if a function can only be used once, it's not a valid answer.
 
Yup I know, editing rn
 
@feersum was not aware of that though i suppose it makes sense
 
21
A: Do function submissions have to be reusable?

Martin EnderYes, functions have to be reusable arbitrarily often That's the point of functions in the first place. If you want to break your environment, answer with a full program. By "reusable" I mean that the function still complies with all the rules of the spec after it's already been used. It doesn't...

 
3:54 PM
@TimmyD That's what happens if you implement interpreters at 3 AM. Try again, please?
 
Yay Roberrrt says his BSN is working \o/
 
His big snotty nose
 
What are you gonna do if thousands of Powershell users start using up all the computrons on TIO?
 
1. Pray for donations. 2. Rent a better server.
 
@betseg i guess that was it, then
 
4:01 PM
ok realtalk guys
32
Q: What are the five most powerful characters in your language?

Calvin's HobbiesChoose any five characters your language supports. There are 5! = 5×4×3×2×1 = 120 ways these can be arranged into a 5-character string that contains each character once; 120 permutations. Choose your characters such that, when each of the 120 strings is run in your language, the 120 outputs prod...

 
@wyldstallyns then, C(++), Shell scripts, Python, Perl, Ruby, CSS+HTML, JavaScript, Java, ... I think that's it (for "practical" langs)
 
what's stopping me from just picking 5 distinct non-zero digits and using a REPL langauge to say I can get it to print all 120 numbers
 
Because 1-120
(i.e. 5-digit numbers wouldn't count)
 
OH
okay thank you
 
why is there not a brainfuck answer yet
 
4:03 PM
I was gonna do one in COW. I can print exactly 0 numbers.
 
I can do 0 with BF too
 
i designed COW's logo
 
@betseg You can also do 1, 2, 3, and 4 in BF.
COW requires 3 characters to do anything, so I can either increment once OR I can print once, but I can't do both
 
and taxi
 
Can I put main; and say it gives error 11 (SIGSEGV)?
 
4:05 PM
Is this cheating:
Perl: `. . 1 9 9`
I can arrange them such as `1..99` which lists the numbers 1 through 99
 
The program should output one number
 
so many restrictions
 
0
A: Sandbox for Proposed Challenges

MarioRoll cake phrases code-golf ascii-art string Roll cakes are delicious sweets made with a layer of sponge cake, a layer of cream (or icecream), rolled as a spiral, see Wikipedia. Your task is to get a phrase from standard input, strip the spaces out, and roll it as a roll cake starting from the...

 
Starting today, developers can build for the Google Assistant! Learn more at https://goo.gl/RjhcOF… https://twitter.com/i/web/status/806908955310092292
Android fans ^
 
4:19 PM
@Dennis Working better now -- param() and $args now properly take arguments. Neither $input nor $_ seem to take, likely because it's not getting the input field piped in correctly. No real worries, since command-line arguments are the most common method.
 
0
A: Sandbox for Proposed Challenges

wyldstallynsIdentify ALL the Interpreters! A previous question asked you to identify which of 3 languages a given script was written in. In this challenge, you will identify as many black-boxed interpreters/compilers as you can. Process Your code will consist of two parts: 1) A file to feed to the myst...

 
@TimmyD I'm not aware of more than one pay of piping input in Bash. Can you make any sense of tio.run/nexus/powershell#@1@Umpiim5FfXPL/v4kRAA?
 
@NathanMerrill there are minified versions of BF that combine multiple commands into one
 
me: replaces 2992 lines of code in my boss's software with 11, performing the exact same function, but programmatically instead of manually
actually it was probably a little less, but it was in excess of 2500 lines
My boss is not very good at generalizing code...
 
@Dennis Sorry, meaning that $_ or $input may be expecting a PowerShell pipeline input, not a generic shell pipe. STDIN in PowerShell is ... weird. Regarding the read-host, perhaps a terminal echo? For example tio.run/nexus/powershell#@6@SaFuUmpiim5FfXGKtkqiXnF@aV/L/…
 
4:40 PM
I'm invoking Powershell like this:
powershell ~/.code.tio.ps1 "$@" < .input.tio
What could I do instead?
 
@Dennis Ah ... Input redirection isn't currently supported (about halfway down the page). So, param() or $args it is (for now).
 
@GabrielBenamy wat
 
Neat.
 
@betseg My boss hardcoded almost 3000 lines of code into our software. I replaced those lines with code that fetched the exact same data from our database, and printed those same lines, but my code is only 11 lines long
 
What's the most characters allowed in a line in your shop?
 
and that's mostly for readability
I could oneline it if I wanted, but the point is that this code is significantly more flexible
and more importantly, up-to-date.
 
gabe it's ... hardwired cache
it's a transpiled database
query fpga
 
5:22 PM
Someone asked me if Java has a REPL, and I don't know how to answer.
Other than "I don't know?"
 
@Dennis Does that count?
Speaking in terms of an answer for codegolf.stackexchange.com/questions/102646/…
 
Yes, that's an actual REPL afaict.
 
0
A: Sandbox for Proposed Challenges

Flp.TkcReverse Factorial Your task is write a program or function which takes a positive integer, and returns/outputs its reverse factorial (i.e, given x, return n where n! = x). If it is not a factorial number, return a distinct value such as none, null or -1. Test Cases 1 -> 1 2 -> 2 24 ->...

 
welp I wrote a brute-force algorithm for the most powerful characters
In perl, selecting any 5 of 0123456789!#%^&*-/+|~<> and permuting them returns a maximum of 27 integers...
(between 1 and 120, that is)
 
5:44 PM
nice!
i'm about to write the BrainfuckX test chassis
 
I still like my Java answer
 
6:04 PM
i like that you made a java answer
 
@obarakon Sorry, missed your messages. No problem, glad I could help! And you can always leave off function assignments, with one exception: If the function needs to call itself, it must be assigned.
 
i wonder what kind of job security i'd gain from rewriting the product core in wireworld
 
1
A: Making an acronym

arossPHP, 68 61 58 bytes Uses ISO-8859-1 encoding. for(;$w=$argv[++$x];)stripos(_AND_OR_BY_OF,$w)||print$w&ß; Run like this (-d added for aesthetics only): php -d error_reporting=30709 -r 'for(;$w=$argv[++$x];)stripos(_AND_OR_BY_OF,$w)||print$w&ß; echo"\n";' united states oF america Ungolfed: ...

Is this valid? I've never seen another answer take input as multiple command line inputs like that.
 
what the fuck
 
6:19 PM
?
 
I'm trying to get CKEditor to work on one part of our site, right? So it's working on one part, so I include the same exact library on another part, and I get an error on line 225, column 39 of a minified file (real helpful, yeah) that a certain variable doesn't exist so I can't get whatever from it. It crashes the input box and nothing works.
I remove the library and forget about it because I hate how pell-mell this entire system is.
About two hours later, after messing around on here and candy crush, I decide to tackle it again. I start by moving the library back in to compare what's going on between the part of the site that works and part of the site that doesn't work
and suddenly I get no error and CKEditor loads just fine
I've changed nothing
 
XD
Interesting.
 
2
Q: The sea in your terminal

DadaBackground Summer is well over, and a lot of us miss the sun, the beaches, the waves of the ocean... This challenge aims at cheering them up by reminding them of the sea. The challenge Here is the sea : ** ** ** ** ** ...

0
Q: balancing a string using a stack

Ahmed SalehDon't you hate it when there's something wrong with brackets in your code? Don't know if our proposed solution is good in terms of user experience, but we won't know untill we try! I'll give you a string that consists only of 2 type of brackets: square ('[', ']') and round ('(', ')'). We want th...

 
What do I tell my boss when he asks how I got it to work?????? "I did nothing for two hours and suddenly it works fine"??
 
@GabrielBenamy your work seem so fun!
 
6:24 PM
@GabrielBenamy Tell him you fixed the bug?
It wasn't working and now it is. That's good enough for most bosses.
 
Yeah, not a lot of people fix systems by doing PPCG.
 
"it was a caching issue only solved when i eventually regenerated the code layout"
 
0
A: Sandbox for Proposed Challenges

MegoGenerate n-ary numbers A secondary number is a positive integer whose prime factors (without multiplicity) are all less than or equal to its square root. 4 is a secondary number, because its only prime factor is 2, which equals its square root. However, 15 is not a secondary number, because it h...

 
I mean, I've told other programmers I'm working with "I erased everything and wrote it again and it works now" and they just kinda shrug and nod.
 
@NewMainPosts VTC for duplicate of codegolf.stackexchange.com/questions/77138/… or unclear?
 
6:27 PM
@betseg No, they're two different questions. One asks if it's balanced, one asks how many operations are required to make something balanced
However, we should probably VTC because winning criteria are unclear, and the problem is tagged "C++"
 
Different operation. That problem adds, this problem substitutes
Meaning the length of the string must stay fixed
at least, that's what I read
 
The new question is a subset of the old question
 
I go to golf for the first time in months, and all I do is save 1 byte on someone else's answer, and vote to close a question.
2
We'll try again next month.
6
 
@betseg That question only allows insertions, while the new one only allows replacements.
 
6:34 PM
Ah k I got it now
 
@flawr This has 6 stars right now :)
 
:O
 
6:57 PM
Someone please tell this guy "A language is defined by its implementation."
@mbomb007 I still don't understand. As @user2428118 states (under your post in meta.codegolf.stackexchange.com/a/5800/34718), answers may only make use of a language as it existed at the time the challenge was posted. If it depends on features added after the challenge was posted, it is invalid. The language specifications were published in 2011 and not modified. My Numberwang translator does the exact thing the specification states. — JHM 52 mins ago
Maybe a mod, please.
 
so answers in unimplemented languages are invalid?
 

« first day (2141 days earlier)      last day (2688 days later) »