« first day (2022 days earlier)      last day (2807 days later) » 

12:00 AM
@Downgoat With default settings, <C-v>G should already leave you on the first non-whitespace character of the last line, I think.
 
0
A: Sandbox for Proposed Challenges

qwrText in Circles Ⓣⓔⓧⓣ ⓘⓝ Ⓒⓘⓡⓒⓛⓔⓢ [optional title in text] I love circles and I love alphanumeric characters, so your task is to combine the two by taking an alphanumeric string and outputting the Enclosed Alphanumerics Unicode block equivalent of each character. For numbers 1-9, use U+2460..U+24...

 
@Doorknob huh, it does
 
Weird
When you start vim, it starts on the first non-whitespace character
 
@ΛεγίωνΜάμμαλϠΨΠʹ okay doing gg0 to go to very beginning, then <C-V>Ghd should do it
 
@Downgoat Not if the last line isn't the least-indented one
 
12:03 AM
though it usually is unless someone is using reverse indentation
oh python...
 
Who doesn't use reverse indentation?
 
wait i am downgoat for me normal indentation is reverse indentation
 
qwr
I wonder if you code in arabic you could get reverse indentation
 
^
 
12:06 AM
o_O why does my website get more views than blog .____.
 
@Downgoat i think regex + eval would work well for this
 
Bounce Rate
92.93%
;_;
 
monring
 
nithg
 
12:09 AM
مونرينج
@Downgoat Cheddar needs Infinity/-Infinity/NaN
 
wtf, sizecoding where you add the size of the interpreter
 
@Quill morening
 
interpreted languages will lose so badly
wait, you can get around that by using a metacircular interpreter, right?
 
;_; centos doesn't come with vim
:D there is yum install vim
D: o_o vim is 23MB
 

 Time Travel KOTH

Room to discuss a time-travel-based KOTH. (Spoiler alert for m...
 
12:15 AM
wait i can just use APLBAONWSJAS
 
12:42 AM
@ASCII-only wat
 
to get wround the interpreter size limitation for that sizecoding sandbox challenge
also about the chuck norris travelling salesman that's o(n) time
 
=============================== Coverage summary ===============================
Statements   : 74.57% ( 1748/2344 )
Branches     : 56.14% ( 658/1172 ), 4 ignored
Functions    : 74.43% ( 227/305 )
Lines        : 73.44% ( 1557/2120 )
================================================================================
@Downgoat ^ I'm getting there
 
75 is good... you should PR now
 
@Downgoat Lemme finish the functions
 
:/ ok
 
12:55 AM
@Downgoat rollercoaster of emotions
 
@ΛεγίωνΜάμμαλϠΨΠʹ ok btw there was a big change
.constructor.Cast/.constructor.Operator -> .Cast/.Operator
 
@Downgoat just fix it yourself while resolving the merge
(I don't reference it outside the main Rational.es6 anyway)
 
@ΛεγίωνΜάμμαλϠΨΠʹ btw Rationals will hit two months in dev in 8 days :/
 
@Downgoat What I don't understand is its stubbornness to include certain functions
 
??
 
1:03 AM
As in, rat.sqrt() gives Runtime Error: rat has no property sqrt even though sqrt is defined exactly the same as the rest of the (working) unary functions
 
did you wrap it in a cheddar.var?
 
push to GH and ill take a look
thats very odd
you put it as an item in the Scope map correct?
 
@Downgoat yes, just like the rest
 
.____.
oh
sqrt is reserved keyword
you're not allowed to use it :|
 
this is why you should overload ops instead
its really easy
 
@Downgoat @ΛεγίωνΜάμμαλϠΨΠʹ take it to the cheddar room?
 
Operator = new Map([
    ['sqrt', (LHS, RHS) => {
        if (LHS === null) {
            // Called as unary op (RHS is value)
        } else {
            // Called as binary op
        }
    }]
])
 
wat why would sqrt be binary
 
@ASCII-only it wouldn't
i just added that for example to show how to handle binray operator
usually you'd want to do something along the lines of:
if (RHS instanceof LHS.constructor) {
    // code
} else {
    return cheddar.error.NO_OP_BEHAVIOR;
}
@Quill halp how 2 node_module
 
1:38 AM
@LeakyNun I don't know if you get any ideas but this approach might be interesting (for the cnr problem)
 
1:51 AM
question: does compression count as encoding?
@Quill halp how to get Uint8Array from buffer
 
new Uint8Array(...buf)
?
 
@ConorO'Brien nice
 
thanks
 
@ConorO'Brien no i a Buffer sharing an allocated chunk of memory with a Uint8Array. I want to access the Uint8Array embeded in the buffer
 
@miles what is the cnr problem?
oh, cops and robbers
 
2:10 AM
@Downgoat CHEDDA
 
@Dennis Re self-ref string: I can help but think that the reverse of the string (without leading 0s) as an integer may have a very simple formula. Try, for example looking at the difference between div 10**(len(n)) of successive reversed values...
 
in Chat feedback, Oct 18 '10 at 9:14, by Feeds
All feedback welcome!
^ the first message of Chat.SE
 
@Dennis For example, if the string is produced by f(n) then try: p=0; for i in range(10, 100, 2): c = int(f(s)[::-1]//20; c-p; p=c
 
@Quill halp how convert buffer to uint8array
 
*oops that should be: div len(n) * 10 ** len(n) (hence 20 not 10 ...and for length 3 300; length 4 4000, etc...)
too many typos. p=0; for i in range(10, 100, 2): c = int(f(n)[::-1])//20; c-p; p=c
 
2:25 AM
thank god for -X ours. All I have to do is git rebase rationals/develop -X ours and it solves all conflicts :D
 
@JonathanAllan Having a simple formula doesn't mean having a golfy formula; sure, it's just an AGS, but the formula would be lengthy
 
@JonathanAllan I have a formula, but it's not very simple
 
no, I know, of course; the string itself is pretty simple to produce using div and mod recursively - but it's still prob longer than range manipulations etc :)
@orlp, for the reversed integer?
 
@JonathanAllan yes
ehh
the self referencing
integer
 
@ΛεγίωνΜάμμαλϠΨΠʹ i found bug:
cheddar> Rational
undefined / undefined
 
2:32 AM
.-.
 
oh? I am all ears
 
@ΛεγίωνΜάμμαλϠΨΠʹ halp how maek rational
@ΛεγίωνΜάμμαλϠΨΠʹ halp it hanged node
 
@JonathanAllan Interesting. Not sure how to take advantage of that though.
 
no, but since your Jelly was all of 12 bytes... :)
 
@ΛεγίωνΜάμμαλϠΨΠʹ pls halp
cheddar> Rational.of(4).add(4)
8 / 1
\o/ \o/ \o/ \o/ :D :D :D :D :D :D :D \o/ \o/ \/o \o/ \o/
 
2:36 AM
@JonathanAllan Definitely too complicated for Jelly, but it could help in Python.
 
0
A: Make a (somewhat) self-referential string

orlpPython 2, 66 bytes def f(n):l=len(`n`);return(l*10**(n+l)-(n+l)*10**l+n)/(10**l-1)**2

@JonathanAllan there
 
def f(n):l=len(n);return(l*10**(n+l)-(n+l)*10**l+n)/(10**l-1)**2
 
got it :)
 
that was the program
deleted it
cuz it deletes leading zeroes
 
2:39 AM
then reverse and append zeros unil len(n) :)
 
@JonathanAllan reverse formula is something entirely different though
 
@Lynn grazie
 
reverse '0'*(len(str(n)-len(str(f(n)))+str(f(n)) (but golfed ^^)
 
@JonathanAllan You basically forced everyone to use the same algorithm
 
2:44 AM
Since basically we must use strings.
 
sorry, what did I do?
 
@JonathanAllan Oh, sorry, I thought you were the question owner
since you talked extensively about it
especially about how it should be developed
 
ah, no, not asked a question on PCCG yet :D
 
@JonathanAllan ask one xd
 
thinking about some - I'll get to the sandbox eventually hehe
 
2:47 AM
Nice
 
cmon guys
we need more challenges
 
...
Suggestion: once this is done post a PPCG challenge to write a program to both create and solve these puzzles - create input: wordlist and grid dimensions - solve input wordlist and grid. Then watch as a 9 byte solution rolls in :p — Jonathan Allan 8 hours ago
*PPCG - or PCCG or w/e the correct acronym is
 
lol
 
that puzzle took ages and I was using some noddy py code I knocked up to help, and still someone got there first :)
too many open office org crashes / not enough reliance on code.
 
@orlp +1
but I ran out of ideas
 
2:51 AM
I've recently golfed everything in C
I want to make an audio popcon
where you get... 256 bytes to write javascript to generate fun and interesting sounds
 
heh I liked an answer I saw the other day, only XXXXXX bytes in unary. (golf?!)
 
or maybe glsl
 
@flawr When you use the "Share" button to share a link to a question or answer, your user id is included in the URL. That's how SE knows that your link was clicked.
 
3:09 AM
TFW a password form has autocorrect turned on ...
4
 
@ΛεγίωνΜάμμαλϠΨΠʹ stuff is borked :( :
  1) Rational pow should work (instance, ++):

      AssertionError: expected '1' to equal '0'
      + expected - actual

      -1
      +0

      at Context.<anonymous> (globals.js:25:42)

  2) Rational pow should work (instance, +-):

      AssertionError: expected '-1' to equal '0'
      + expected - actual

      --1
      +0

      at Context.<anonymous> (globals.js:25:42)

  3) Rational pow should work (static, ++):

      AssertionError: expected '1' to equal '0'
      + expected - actual
@TimmyD this is translating into "health" :|
 
@Downgoat Actually, Geshundheit provides physiotherapy for dogs.
 
3:27 AM
 
cheddar> Rational.of(5, 0)
Runtime Error: AHHH DIVISION BY ZERO WE'RE ALL GONNA DIIIIIEEEEE
....
@ConorO'Brien brb creating language named "polyglot"
 
0
A: Make a (somewhat) self-referential string

Leaky NunBrachylog, 53 45 42 37 27 bytes lB,?ybeN:B%0,N:ef:{,"0":"9"y:?m.}acAl:Br-:"0"rjb:Acw\ lB,?ybeN:B%0,10:B^:N+:ef:{,"0":"9"y:?m.}acbw\ lB,?ybeN:B%0,10:B^:N+:ef:{:16+:@Prm.}acbw\ lB,?ybeN:B%0,10:B^:N+:efbe:16+:@Prmw\ lB,?ybeN:B%0,10:B^:N+:efbew\ Try it online!

I'm probably an idiot
Always writing useless codes
then later realizing that the codes can be thrown away
now golfed to almost half
 
@LeakyNun are you talking about the :{,"0":"9"y:?m.}ac? :P
 
@Downgoat yes lol
Let me explain:
1 line: convert from number to decimal string, then pad
(both are not built-ins)
then I realized I can just add the power and then cut off the first digit, giving the second line
then the third line I found a golfier way to convert into decimal string
then the fourth line is some structure golf
and then on the fifth line I realize that I don't even need to convert into decimal string; I just print out each digit
I'm an idiot to convert them to decimal string
 
yep only managed to get Py3 to 92 bytes using mathematical formula provided by @orlp
so much for that thought methinks
 
3:50 AM
Me and some friends went boating today
 
4:29 AM
boating goating
 
4:54 AM
@Dennis wow, impressive, congrats!
 
Thanks! :)
 
you're also at a nice round 4,000 votes
Apr 5 at 5:35, by Downgoat
Any feedback on this challenge? I want to post it tomorrow morning:
XD that was like 4 months ago and i haven't posted it yet
 
gratz :D
 
5:12 AM
> ___boating___
:/
 
Poll: aRITHmetic or arithMETic
 
@LeakyNun i have no idea what you mean. arithMETic?
 
Emphasis
 
It means, do you stress on RITH or on MET
ninja'd
 
oh I thought you were trying to make pun like arith met ic >_>
 
5:26 AM
It depends. arithMETic for adjective, aRITHmetic for noun
 
Ah, interesting
 
im kinda in between but more towards aRITHmetic
cheddar> Encoding.UTF16.decode(Buffer.create("Hållo".bytes))
"汬"
wat
 
I say A-rith-MET-ic, but I'm not a native speaker.
 
So you can smell what I'm cooking: github.com/DennisMitchell/gnumber
 
Halp prolog doesn't know that Y must be divisible by 2 for "Y is X*2" to be true and backtracks infinitely
(X and Y are integers)
 
5:35 AM
@Dennis mmm numbers... tasty. (hopes they are tin can flavored)
 
@Dennis Shouldn't "gn" be pronounced like ñ in Spanish?
 
@Dennis So English is stupid. Understood.
 
Pretty much.
 
@Conor Peter’s comments on that lemon-limification challenge predate my edit, which added the paragraph starting with “Suppose”
@Dennis Ooh, this .rstrip('0').rstrip('.') trick is clever
 
5:49 AM
I initially had .rstrip('.0'), but you can guess how that went... :P
 
Python tip: repr implementations probably want to use %r in formatting strings, instead of '%s'. It shouldn't matter here, but hey, saves bytes.
 
Not sure what you mean.
 
return "%s('%s', '%s')" % (class_name, part_to_repr(self._real), part_to_repr(self._imag))
 
Oh, so '%s(%r, %r)'?
 
This could be "%s(%r, %r)" and then when pigs fly and — yep!
 
5:56 AM
That does look cleaner.
 
— and quotes or backslashes become digits, your string will get escaped. Like I said, it probably doesn't matter much here ^^;
 
hello again
 
.o/ hello
@Quill halp how write unit test for a rand function .__.
 
@Downgoat Assert that each output is distinct and each possible output is produced
 
@LeakyNun but what if it's a decimal between 0 and 1
 
6:09 AM
Can't help
 
@Downgoat do you use seeds
 
no
 
@Downgoat write 1mb to a file and see how much it is compressed?
 
?
oh
 
81
Q: How should I test randomness?

dlras2Consider a method to randomly shuffle elements in an array. How would you write a simple yet robust unit test to make sure that this is working? I've come up with two ideas, both of which have noticeable flaws: Shuffle the array, then make sure its order differs from before. This sounds good, ...

 
6:13 AM
@Downgoat assert(output >= 0 && output <= 1)
 
ill just make sure it doesnt error
or just make sure its a number
or just check if its in correct range
yeah what quill said
 
it depends on your algo, really. if you can get the same thing with the same seed, then you can test that
 
O_O i wrote unit tests just for array prototype and it bumped up coverage by 20%!!!!
thats a lot
 
If you want, you can also test certain assumptions about the distribution, such as "at least 20% of inputs above 0.5 in 10000 runs"
 
writing tests if very satisfying. its nice to see the coverage circle it go from blood red to grass green
 
@ASCII-only did you do something in the waffle?
 
@Downgoat don't think so
 
weird...
did someone hack ur GH account?
 
@Downgoat i hope not
 
do you have 2FA
2FA = good idea
 
6:25 AM
no
 
6:44 AM
I accidentally locked my own block behind a paywall >.>.
I cancelled my GitHub subscription. That doesn't delete your private repos, but blocks access to them. My blog was one of them ...
 
Anonymous
2FA should be required nowadays >_<
 
Anonymous
@mınxomaτ RIP
 
@Mego disapproval face which I can't type cuz I'm on mobile
 
Lol, I meant to write blog, not block.
 
@mınxomaτ you don't have an offline copy?
 
6:52 AM
@ASCII-only I do, so?
I still can't change or post anything. The blog is still published.
 
do you wanted to delete your blog or something?
 
@ASCII-only No, but now I can't edit or post anything on my blog.
As I said, GH only blocks the access.
 
@mınxomaτ what about deleting and remaking as public
 
@Maltysen You can't access locked repos. How would you delete it then?
 
True....
 
6:59 AM
They are not listed in your profile anymore.
 
@Dennis I'm wondering if you could give a worst-case estimate for the server upgrade? If it's long enough, I may be able to get a clientside cache system up to reduce server load from PPCG by a lot
 
I'll upgrade the droplet soon-ish (in less than a week), but caching will take a bit longer and most likely not affect old permalinks.
 
0
Q: Insert a separator in a file

Samir SadekI have a file containing words: 0000 0001 0002 0003 0004 0005 0006 0007 And I would like to have the final result like this: 0000 0001 0002 0003 ---- 0004 0005 0006 0007 ---- I have found : perl -0777 -pe 's!(.+\n)(.+\n)(.+\n)!$1$2$3----\n!gm' file.txt But I wonder if there is a way to r...

 
nvm wrong window
 
> not affect old permalinks
wait why :(
 
7:13 AM
Because the method I have in mind (store the code on the server, with the cached output) won't work that way. When implemented, old-style permalinks should not be used for things that are queried over and over again for an extended period of time, so caching them would not only require additional effort but be rather pointless.
 
Anonymous
@Dennis Why does TIO refuse https? :(
 
Because I haven't set it up yet. I'll have to look into letsencrypt.
 
Anonymous
Gah, GitHub pages are so slow to update after a commit/push :(
 
@Mego Not when physical devices are also easily compromised
Also hello everyone
@mınxomaτ Does this include your podcast.md?
 
@Sherlock9 No, why should it?
 
7:28 AM
that's a gist, gist is separate to GitHub paid accounts
 
I didn't know that, so I asked
Thanks for the clarification
 
Anonymous
@Sherlock9 Yes, but the whole point of 2FA is that both your password and your physical device being compromised is much less common than just one of them being compromised.
 
@Dennis Could you please pull Brachylog?
 
Anonymous
If you're in a position where both your passwords and your mobile phone are compromised, you likely have more to worry about than "oh no my Steam account got hijacked"
 
Anonymous
Like "who the hell broke into my apartment?"
 
7:30 AM
Or "I got mugged and the guy now has my backpack (with laptop) and my phone"
And wallet, keys, and so on
 
@Mego Compromising your mobile is really easy, because mobile phone providers are just about the most incompetent when it comes to security.
 
@Fatalize Done.
 
@Dennis Thanks!
 
Anonymous
@Sherlock9 But the mugger wouldn't have the knowledge of your passwords, in that case :P
 
Here's a case study of the problem that is using phones as 2FA (not OTP): youtu.be/LlcAHkjbARs?t=181
 
Anonymous
7:33 AM
Future testbed for running polyglots with TIO: mego.github.io/TIOPolyglot
 
Anonymous
@Dennis TIO feature request: add a page that returns a JSON-formatted dictionary mapping language names to URLs when a GET request is sent.
 
@Mego language/url pairs?
 
@Mego don't you just need a language list then?
 
Anonymous
@ASCII-only Not all languages exactly match their subdomain. For example, /// is slashes.tryitonline.net
 
7:48 AM
@Mego right
 
Anonymous
So a dict mapping names to URLs would be more useful
 
> My father, a jaded and bitter man, ate the muffin.
- wikipedia
> My father, his eyes flashing with rage, ate the muffin.
I keep reading through this, and thinking "they can't top that one" but they can
> My father ate the muffin, a muffin which no man had yet chewed.
> My father ate the muffin, a feat which no man had attempted.
wikipedia is amazing
 
@DestructibleWatermelon Which page are you getting all this from?
Hi Tux
 
wait for it...
The comma ( , ) is a punctuation mark that appears in several variants in various languages. It has the same shape as an apostrophe or single closing quotation mark in many typefaces, but it differs from them in being placed on the baseline of the text. Some typefaces render it as a small line, slightly curved or straight but inclined from the vertical, or with the appearance of a small, filled-in number 9. The comma is used in many contexts and languages, mainly for separating parts of a sentence such as clauses, and items in lists, particularly when there are three or more items listed. The word...
@TùxCräftîñg Xutih!
 
8:02 AM
@DestructibleWatermelon wat
 
It cites "Garner's Modern American Usage" for the muffin examples
 
Anonymous
 
8:07 AM
and TIO has no https yet
@Mego wat not for me for some reason it forces https
 
Anonymous
@ASCII-only Blame Dennis.
 
Anonymous
I had to specifically allow insecure requests/scripts for that page
 
Hey Mego, I've started back up on the Seriously/Actually docs
I was wondering if you could look at what I've completed for "numeric" and see if I'm missing anything in that section
 
@Sherlock9 wait why
 
Because I offered to help many months ago and it's fun?
I like cataloging stuff for documentation, I have found out
 
8:15 AM
oh i thought you said 'backup' :P
wait what happened to Actually's wiki tab
 
Anonymous
@Sherlock9 I changed how numeric parsing works a while back. : only comes in front of the numeric literal, not before and after.
 
Welp, then it's a good thing my docs haven't been pulled yet
Hullnuts
 
Anonymous
Also ^ is XOR now
 
Did I miss any commands?
Ah there we go
 
Anonymous
(FC) is exponentiation
 
Anonymous
8:20 AM
and appear to be using the wrong encoding
 
Anonymous
(they look like ó and ò, respectively)
 
Anonymous
Same for radians and degrees - wrong symbols
 
Anonymous
And pi and e
 
I'm sure I saved with CP437
Let me try again
 
Anonymous
I thought you said you had been working on these recently? Last commit is from April.
 
8:23 AM
No, no. Just now starting up again
 
Anonymous
Use UTF-8. GitHub doesn't like other encodings.
 
Anonymous
I think it's trying to display the CP437 as Latin-1
 
I never asked you for feedback then, because I thought I was going to keep working on it.
Right I need to find the Unicode for ≥ and ≤
 
@Dennis Could you please pull Brachylog (again)? I'd forgotten a few things
 
@Mego UTF-8 gives me "?"
According to GitHub Desktop anyway
 
8:28 AM
@Sherlock9 It should be Windows-1252 by default I think
you might need to somehow specify encoding?
 
I think I have fixed it
For now
Are there any numeric commands that I'm missing?
Including the entire complex numbers section
 
Anonymous
@Sherlock9 No I mean convert it to UTF-8
 
Yeah, finally figured that out
 
Anonymous
There's lots that you're missing :) I'll make you a list later
 
Magnificent
I'll just run through commands.txt while you do that, yeah?
:D
 
Anonymous
8:35 AM
Sure
 
I should probably start sorting this into function, list, numeric, and string while I'm at it. Make my future work easier
Also why in the world is u increment and D decrement?
 
0
A: Sandbox for Proposed Challenges

NeilHow far is it? I have no children myself but I understand they are more interested in the destination than the journey, so often ask how much of the journey is left. This might be a car trip, or it might be a demonstration of the Tower of Hanoi puzzle. The challenge is to write a program or fun...

 
Hello
 
@El'endiaStarman Wow, now I noticed. Shady SE spying on everyone.
 
@zyabin101 olleH
 
8:51 AM
‮@TùxCräftîñg Hello
 
TIL reversed pings ping
 
@TùxCräftîñg it's unicode reverse character
 
oh
@flawr Y U RTL ಠ_ಠ
 
@TùxCräftîñg I NO LTR, ‮SIHT YPOC YRT
 
8:58 AM
@flawr waaaaaaaaaaaaaaat
 
@flawr ಠ_ಠ taaaaaw rwalf@
 
‮‮( ͡° ͜ʖ ͡°)
omg this monster
 

« first day (2022 days earlier)      last day (2807 days later) »