« first day (2462 days earlier)      last day (2677 days later) » 

03:00
@Maltysen nvm public domain one
inspect element -> play button -> nearest .mp3 link
Anonymous
@ASCII-only Or just wget
TIL
MHTML, short for MIME Encapsulation of Aggregate HTML Documents, is a web page archive format used to combine in a single document the HTML code and its companion resources that are otherwise represented by external links (such as images, Flash animations, Java applets, and audio files). The content of an MHTML file is encoded as if it were an HTML e-mail message, using the MIME type multipart/related. The first part of the file is an e-mail header. The second part is normally encoded HTML. Subsequent parts are additional resources identified by their original URLs and encoded in base64. This format...
tl;dr; single file webpage
@Riker this is what happens when you save a page with most browsers
well it's an option at least
@ASCII-only not enabled by default in chrome
apparently
03:10
do we have a ccg koth thing?
@Pavel imgur blocked
use stack.imgur?
or nvm, I got it
@Pavel is that a mhtml?
Think so
not for me
@Riker yes maybe not
03:11
Neat, I managed to fit Funky on a webpage.
@ATaco it's called TIO
TIO is serverside, this is clientside.
should i make a ccg style koth?
@ASCII-only I just get a html + some files
@DestructibleLemon ccg?
@Riker yeah nvm it's a flag
03:14
ya
i just have it on all the time :P
lol
@Riker yes
@Riker sort of
I don't mess with my chrome
@DestructibleLemon if you can do it well then sure
hard to do tho?
03:14
c for customizable really
<- has all experimental js features enabled
lol
Why would you not enable an expermintal js feature
@Riker well i mean it shouldn't have any physics or anything so it should be pretty quick
@Pavel i know right
03:17
Scratch that. s/js//
well for production you wouldn't want it enabled
but for all other purposes why not right
D:
@Pavel that's what they said about --disable-anti-segfault-mechanisms
3
How, with 6k views, has this not gotten closed for not having an objective winning criterion?
@MDXF By having an objective winning criterion, methinks.
03:20
Where?
It's tagged code-golf
and atomic code golf
so ^^^ shoudn't be there?
which is an entirely different thing
03:21
@MDXF if he was new or just inexperienced at the time of posting
Regardless, none of the answers have byte counts nor step counts. The question doesn't state it and it is unclear anyway
@MDXF not at all, it's just a subset
It's tagged with two different conflicting winning criteria and none of the submissions seem to cater to either.
@MDXF didn't use to be policy
It's an old question.¯\_(ツ)_/¯
03:21
@HyperNeutrino not conflicting really, atomic code golf is really just a subset
Regardless, shouldn't it be closed? The mods have closed/locked/deleted old stuff before
Well, that's true.
@Riker is bytes, disregards bytes and only cares about steps
code-golf can be imagined as "shortest code to solve a task"
atomic code golf is the same but not with bytes
I think it depends on how you define the atomicness; if you define it correctly I think code-golf is just more specific atomic-code-golf
03:23
code-golf is just generally bytes, and is so for the purposes of this wiki
@HyperNeutrino yes
@HyperNeutrino I agree
@HyperNeutrino also, yes, the challenge doens't explicitly specific atom definitions, but I think "operations" works here
not sure though
I wouldn't VTRO, but not VTCing
yeah I'm going with that too
Someone pls pay attention to my new cool thing
@MDXF 0/10 no docs
#include <string.h>
#include "string.h"
2
ಠ_ಠ
04:19
Bugs: Infinite loops crash the browser, Stores global variables between executions.
04:33
should my ccg thingy have a health metre as the main win condition?
 
3 hours later…
07:28
Alphabet -> pqrs
Roman republic -> spqr
> #define isnumliteral(s) (str_only_contains(s,"012345678L.") && isdigit(s[0]))
9?
07:59
@ATaco you do know that's already happened to you right?
0
A: Sandbox for Proposed Challenges

Dom HastingsCharacter Shifted Quine Write a quine that outputs itself shifted around by one character, which is still a valid quine. For example. if your code is: i%$;P# it would output: %$;P#i which in turn would output: $;P#i% and so on: ;P#i%$ P#i%$; #i%$;P Until it outputs the original form:...

 
2 hours later…
10:21
@ASCII-only You can sleep soundly, Charcoal is outgolfing Jelly again... for now...
10:57
0
A: A Fragile Quine

user75200ES8, 2B(!!) "" logs "". Yes, two quotation marks. Removing either yields a SyntaxError.

Do we have a consensus on quines, yet? I've forgotten
0
A: Sandbox for Proposed Challenges

Luke StevensCalculate the damage I code-golf A little bit of background I was working on a program to store data and process calculations for a DnD campaign I'm running. Whilst working on this program I had to write a method to calcualte the damage from a weapon, given the rolls the player got and it got ...

11:19
@ConorO'Brien Yeah, they have to consist of an encoder and a decoder IIRC, so that one's invalid
trying to do uniform random ordering in SOGL's gonna be hard for this..
 
1 hour later…
12:26
@Neil hmm i need a character for filter
is phi available?
@ASCII-only maybe the unicode block character that looks like a sieve of some sort? like the characters that look like a whole block
@ConorO'Brien lowercase? no
@HyperNeutrino :| they don't look like sieves to me
they look more like meshes
¯\_(ツ)_/¯ idk someone used them once for filter
@ASCII-only works too :P
@ASCII-only
hmm, that looked better in character map
or one of ¦ǁ‖↝⇝∥≈≂≻ perhaps
12:33
seems suited for filtering
Anyone know what does the (,) and += means in the part Gamma_0(p) += (Gamma_0(p), (... after the part define Gamma_0(N) in encyclopediaofmath.org/index.php/Thompson-McKay_series ?
(working for next oeis)
I'm guessing that (x, y) is just an ordered pair.
What about += ?
Good question. I'm trying to figure that out.
let me look
12:39
@Neil first few are separator and mirror already (or they look to similar)
they are defining X+ (notation)
@ASCII-only uppercase?
good point, I'd forgotten what they were
@user202729 You can see later that they make reference to $\gamma_0(p)+$
@user202729 and that isn't an ordered pair, I think those are angle brackets. That would be the group generated by those two objects
So the (,) is group with element added?
Probably, the font resolution is too low.
12:42
You can see in the definition of $\gamma_0(p)$ that that matrix is not an element of $\gamma_0(p)$; they're extending $\gamma_0(p)$ to $\gamma_0(p)+$ by adding that matrix and taking the closure (under the group operation).
Ok thanks. I was confused by += in programming.
ohhh that makes sense :P yeah I was confused by the programming meaning of += as well
no problem
Latex makes mobile users sad
God, it's way too early to be mathing so hard, guys
12:45
@J.Salle "early" is relative
2
If they use superscript + it would makes more sense. Anyway the last answer on oeis was also posted by mine so I can't post the next one.
oh yeah that too..rip
@HyperNeutrino indeed it is
@HyperNeutrino So you post the next one.
@user202729 I'll try to get a solution. You've seen the comment on your post with the mathematica code already, right?
oh yeah ofc
you even replied to it, duh. whoops :P
12:47
Although there are formula for generating function, it is not nice to blindly implement it without understanding what is the sequence.
Yes. I typically don't like taking formulas off of OEIS because then I don't really get what's going on.
Looking again at the formula, TeX format the + to be nearer to the ) and further to the = .
Hm interesting.
@HyperNeutrino Have you seen my comment here?
Oh apparently I accidentally dismissed the notification. No just saw it, thanks.
fixed
12:57
@HyperNeutrino I think adding a +3 after the x should fix 8t BTW, but that doesn't mean I can prove it.
It only needs to be +1
wait no
@HyperNeutrino Fails for 1.
And 2.
As long as it works for 1 and 2 it should work for the remainder (which didn't fail originally anyway)
Actually +2 suffices I think.
well +3 works too :P too lazy to change it again
12:59
Any idea how to prove it is (in?/-)valid?
it works for 1 and 2 and for any other number the largest base you'll need is x-1 which will give a positive integer in the second-from-the-right digit and a 1 as the last digit
@ConorO'Brien yes that's available
@HyperNeutrino Yup it is 11 for all integers other than 1 and 2 right?
Yes. That's the maximal base possible.
I got it...
13:02
I guess the only reason it fails for 1 and 2 if you don't add 2 is because you can't use base 0 or 1. :P
(is base 0 a thing o_O) <-- doubt it
@HyperNeutrino no it isn't
balanced ternary kinda counts but mostly doesn't
I hate the fact that Python does not have a base conversion built-in.
But funnily it has the reverse...
Oh missed that one... Up for a bit of Jelly?
13:09
@Mr.Xcoder :| i know right
0
A: Sandbox for Proposed Challenges

AdmBorkBorkTriangles of Hexagons code-golf ascii-art Suppose an infinite tiling of hexagons composed of | and /\ characters. Given input n > 0, output a triangular portion of that tiling as depicted in the below examples, anchored with a _: n=1 \_/ n=2 \/ \/ \_/ n=3 \ | / \/ \/ \_/ n=4 \/ \ / \/...

13:41
@Neil hmm so what exactly fails
2
Q: Does it oscillate periodically?

HyperNeutrinoChallenge Given a list, determine if grouping the list into runs of increasing and decreasing elements will result in a list of equal-sized lists. In other words, "turning points" of the list are spaced out evenly. Example Here's an example: 0, 3, 7, 5, 2, 3, 6 0, 3, 7 increases, 7, 5, 2 dec...

13:58
@ConorO'Brien ok so why phi
@ASCII-only it was a python error
@Neil would you mind linking to a failing one
File "/opt/charcoal/charcoal.py", line 3485, in Map
iterable[:] = result
File "/opt/charcoal/charcoal.py", line 432, in __setitem__
self.charcoal.PutAt(self[i], self.xs[i], self.ys[i])
File "/opt/charcoal/charcoal.py", line 796, in PutAt
self.Put(string)
File "/opt/charcoal/charcoal.py", line 808, in Put
line = self.lines[y_index]
IndexError: list index out of range
14:05
:D I've fixed it, now I just need to decide on a character for filter
TIL PowerShell has a stack system for locations. E.g., pushd c:\foo changes directories to c:\foo and pushes it onto the stack, then you can do stuff there then pushd c:\bar to get to c:\bar, do stuff there, and popd to automatically go back to c:\foo
@AdmBorkBork but I think that's in batch too
Could be. I'm not super-duper familiar with the deep insides of batch
@EriktheOutgolfer The one time I did try golfing in BATCH, I came up with 63 bytes after golfing suggestions. Neil had a 43 byte solution and golfed it down to 35.
14:26
Why batch when you can PowerShell instead?
@AdmBorkBork bash has this too.
Because PowerShell requires .NET, so if you're on an old machine, you'll need to use batch files.
198
Q: How do I use pushd and popd commands?

syntagmaWhat are the practical uses of both pushd and popd when there is an advantage of using these two commands over cd and cd -? EDIT: I'm looking for some practical examples of uses for both of these commands or reasons for keeping stack with directories (when you have tab completion, cd -, aliases ...

@AdmBorkBork yeah I'd go with installing MinGW and use bash.
@ASCII-only "philter"
14:45
@Pavel Yeah. I can see it actually being rather useful in PowerShell, because you can treat the Registry (or the Certificate Store, or ...) like a folder structure.
The use case I thought of was having a script where you CD somewhere and then need to CD back to the original location at the end.
Blatant advertisement:
in APL, 1 min ago, by Feeds
About to watch the latest webinar from @dyalogapl - Code Golf Competition Discussion and Results... 11am/4pm EDT/UK
15:00
@mınxomaτ "Example or something." A+, would click again.
15:26
0
A: Sandbox for Proposed Challenges

LangeHaarecode-golf Given an email address, the result of a transformation applied to that email address, and a second email address, return the output of the same transformation applied to the second email address. The email addresses will all have the following structure: A string of positive length c...

0
Q: Make an n-Juggler

Wheat WizardI've been really interested with integer sequences that follow the property recently, so here's another question about these sequences. A periodic sequence with the above property is an n-Juggler if and only if it has n unique different values. For example the following sequence is a 2 jugg...

CMC: Given an int array, count the number of of times the number changes. e.g. [1 1 1 2 2 5 5 5 5 17 3] => [1 1 1 2 2 5 5 5 5 17 3] => 4
@Pavel Test case request: [2 2 2]
@Mr.Xcoder 0
@Pavel Jelly, 4 bytes ŒgL’
@Pavel Jelly, 3 bytes ITL
C#: n=>{int?i=0,a=n?[0];n.ForEach(x=>{i+=x==a?0:1;a=x;})}
\o/ Hey look ASCII-only is shorter than Unicode!
More test case: [] => 0
Mine passes.
@Pavel Dangit
15:43
Heh rip Powershell.
If that case could be ignored int?i=0,a=n?[0] would become int i=0,a=n[0], so it costs me a byte.
23 bytes to handle []
Ouch
@Pavel PowerShell, 58 bytes
15:46
@AdmBorkBork Did I forget how arrays work or is borked? tio.run/##K8gvTy0qzkjNyfn/…
Fun fact: My longer Jelly answer does not handle [], while the 3-byter does.
I also tried without commas and it errored
So I assume I got the array syntax correctly
CMP: What is the golfiest production language (not counting J and APL or their variants)
@cairdcoinheringaahing Perl
Probably Perl which according to my friend (same one who insists Proton is a golfing language) says is pretty much just a golfing language :P
15:48
@Pavel Oh, durr. Clumsy error. 52 bytes
Python can be quite golfy
@cairdcoinheringaahing gs2 :PPP
> production language
@cairdcoinheringaahing JS beats Python usually
@cairdcoinheringaahing Not as much as perl
15:48
$args[0] is $null if you take input via param()
@HyperNeutrino Hence :PPP
@Mr.Xcoder Clearly the answer is Jelly
Haskell is golfy as well, sometimes.
@cairdcoinheringaahing no clearly it's unary
15:49
@cairdcoinheringaahing I'd say Perl as well
If you want ungolfy, then the answer is definitely Java.
@AdmBorkBork PowerShell isn't happy with you :P
@cairdcoinheringaahing Other than Perl, Mathematica's built-ins are very golfy sometimes.m
Perl usually beats PowerShell, so /shrug
In general, PowerShell is roughly on par with Python or JavaScript, usually only a byte or two behind.
Oh god I hate Mathematica answers with explanations containing ¯\_(ツ)_/¯ so much...
15:50
Perl usually beats production languages
@Mr.Xcoder That's the same explanation for some of the answers in JHT :P
Ruby is also golfy by virtue of stealing a bunch of features from Perl.
Why does this work??? ¯\_(ツ)_/¯
JHT?
Jelly HyperTraining
15:52
@Pavel Jelly HyperTraining
ninja'd :(
@AdmBorkBork could you golf exit to something that crashes the script, like 1/0? It's acceptable to have a bad exit code.
@Pavel Divide by zero is a non-terminating error in PowerShell.
That's actually golfier than if(){}else{}
by a byte, but hey
Hmm... now I'm trying to find a terminating error in PS for 3 bytes or less.
There are very few terminating errors, and most of them are syntax or parse errors
15:58
And those keep the script from executing alltogether
The only thing I've found that works is throw but that doesn't save bytes
ohmygod I just discovered UserScripts and they're GREAT! Auto leader boards FTW!
@AdmBorkBork How do I capture the output of something into an argument for another function?
So something like Bash's exit `wc -c foo`, which exits with the code that is returned by wc -c foo
@Mr.Xcoder I was thinking of renaming the APL learning sessions to APL Power Learning.
Recursive Acronyms FTW
16:16
@AdmBorkBork how come exit 5 exits with exit code 1.
Because 5 == 1, obviously
4
exit 0 exits with 0, so at least that works.
What does exit -1 give?
@HyperNeutrino 1
16:18
@HyperNeutrino exit 'foo', on the other hand, exits with code 0
hm interesting...
@Pavel Dyalog APL, 6 bytes without handling []: +/2≠/⊢; 8 bytes with handling []: +/2≠/⊃,⊢
CMC: Exit with code 5
@Pavel -1 due to being language specific.
(In poweshell pls)
16:25
@mınxomaτ um i think that's HTML5.2, not github
Sure it's GitHub, as it is allowed by their Markdown sanatizer.
@AdmBorkBork This would be -2 bytes if powershell had reasonable exit code handling: tio.run/##K8gvTy0qzkjNyfn/…
@mınxomaτ gist (source)
it just inlines the html
@Pavel APL, 5 bytes: ⎕OFF⎕
@betseg That is how that tends to work, yes.
16:28
so, still W3C
@Pavel Powershell: [System.Environment]::Exit(5)
@Pavel You're supposed to ping yourself!
I had a brain fart I saw my name in your message and I clicked on it
@Adám Lol that is great.
@Pavel Unfortunately you can't do f←⎕OFF because ⎕OFF is not a function, but rather a variable which causes APL to quit when referenced.
16:39
Or even [Environment]::Exit(5)
@Adám misping or something?
@Mr.Xcoder Yup.
@Pavel bash exit 5
bash > powershell
@betseg I agree.
17:00
I just addressed the definition of Pi for “Mix Pi and e to make pie” - It was defined as circumference:radius instead of circumference:diameter lol
17:15
@Pavel untested, but this should work in Python: lambda:raise SystemExit(5)
@cairdcoinheringaahing Works for me
@cairdcoinheringaahing Why not just raise SystemExit(5)?
Oh wait you need a function.
no why
@Mr.Xcoder Does that count as a full program?
Why not?
17:17
@cairdcoinheringaahing ...
It feels like a snippet, for some reason
Anyway yours is very wasteful: exit(5) should do it, shouldn't it?
It's not
@Mr.Xcoder import sys
You don't need the import I'm pretty sure
17:18
@Pavel No?...
i see
17:38
@Pavel C, 49 bytes: Try it online!
(open debug to see the exit code)
$ gcc -Wall exit5.c -o exit5
[...]
exit5.c:1:7: warning: ‘main’ is usually a function [-Wmain]
@betseg not real C
@NieDzejkob works in clang, gcc and tcc
now use ARM, SPARC, MIPS, anything...
-3
Q: programming robot in python nxt kit motors

user9337Using a nxt kit, I have built a robot with two motors to move the wheels and one motor connected to a claw-like device that is supposed to be able to drop off objects at given zones. Using ultrasonic and another, not yet given, type of sensor, the robot is required to follow along a straight line...

arch was never mentioned :P
17:52
this is more equivalent to a hexdump of a binary than a C program
it was this:
mov $1, %eax
mov $5, %ebx
int $0x80
CMC: Given two non-empty lists of integers A and B, return the deduplicated elements that appear at the same index in both A and B
@Pavel It does, it's just very non-intuitive and a legacy holdover.
[1, 2, 3, 4], [4, 3, 3, 1] -> [3]
[12, 12, 30, 12, 45], [12, 11, 30, 45, 49] -> [12, 30]
also [1, 3, 3, 4], [4, 3, 3, 1] -> [3]? deduplicate
17:57
@betseg Yes.
It's because the exit code sets %errorlevel% global variable, or you need to use $LastExitCode in like a calling script.
You can take input as a nested list containing two sublists.
@Mr.Xcoder do the lists have the same number of elements?
@betseg yes, may assume that.
@betseg the point still stands

« first day (2462 days earlier)      last day (2677 days later) »