« first day (2704 days earlier)      last day (2132 days later) » 

12:13 AM
@user202729 no conversion is "reasonable" because it's the spec >_>
 
 
1 hour later…
1:39 AM
@ASCII-only But nullptr is implicitly convertible to pointer types.
... What are the conversion rules?
 
 
1 hour later…
2:50 AM
@ASCII-only I'm back from another trip!
 
@FreezePhoenix another?
 
Yep. One more this summer!
Btw I got some more utils made today, but I forgot to push changes :|
coughautocorrectcough
 
 
2 hours later…
4:46 AM
@FreezePhoenix um. in math.js you have return `a / gcd) + ':' + (b / gcd);
 
 
2 hours later…
7:05 AM
0
A: Sandbox for Proposed Challenges

mypetlionTitle: Scoring Darts Given the coordinates of where a dart lands on a dartboard, return the score of that dart. Darts Scoring Rules Darts is a game played by throwing a dart at a circular board. The dart board is divided into 20 equally sized "wedges". Starting from the top and going clockwise...

 
 
1 hour later…
8:31 AM
18
Q: Triangular Manhattan Distance

Martin EnderThe Manhattan distance on a regular grid is the number of orthogonal steps one needs to take to reach one cell from another. Orthogonal steps are those that go through the edges of the grid cells (as opposed to the corners, which would give us the Chebyshev distance). We can define a similar dis...

 
anyone know of a online C++17 snippet tester?
 
@Neil TIO :P
either 1. use the hello world as a template or 2. bookmark a link preloaded with a template
although I guess TIO is lacking in features
 
@ASCII-only .code.tio.cpp:8:11: error: 'auto' not allowed in template parameter until C++17
 
@Neil use commandline flags (unless that doesn't work?)
-std=c++17 or whatever
example, i think?
 
9:05 AM
@ASCII-only oh, I didn't spot that field before
 
 
2 hours later…
11:12 AM
TFW you spot a bug in both of your answers, and fixing it leads to -1 byte in Pyth and +2 in 05AB1E :|
 
 
1 hour later…
12:18 PM
Arrg, syntax colouring by hand is a bit tedious.
 
Just try to stay inside the lines
 
@Geobits :-)
 
1:30 PM
@Dennis does % mean mod here?
 
In sql is there a way I can have a column be autopopulated unless I provide a value in my INSERT statement
 
autopopulated to a single default, or autoincremented?
 
i'd be okay with either, honestly
 
@EriktheOutgolfer mod is almost as ambiguous as %. It means the remainder of floor division, i. e., the one that falls in Cn.
 
default value is an interesting idea
 
1:40 PM
the reason I'm asking is because I would like to convert that post to MathJax, and % seems like a bad fit for that
 
CREATE TABLE mytable (
  id INT NOT NULL PRIMARY KEY,
  mycolumn varchar(13) DEFAULT 'abcdefg',
)
something like that?
 
yeah let me see if that satisfies my needs
 
@EriktheOutgolfer In LaTeX, I'd use \mod, yes.
 
i'm upgrading versions of jetty and their table schema changed
 
Oh that sucks
 
1:42 PM
so i'm attempting to make that as seamless as possible
it's a small change; they removed a column. I just want to have a way to back out my change if something goes wrong, haha
The other solution is to have it just start using a table with a new name so the "outage" would only affect folks who would be using that table while i'm rolling out the new version
it's a small window
 
1:59 PM
 
wow
 
that is a tiny window?
 
Yes it is
 
2:18 PM
I don't think it's that useless, actually
 
2:50 PM
0
Q: Alpha-Numerical Bowtie

AdmBorkBorkOutput this exact text: 1 i 12 hi 123 ghi 1234 fghi 12345 efghi 123456 defghi 1234567 cdefghi 12345678 bcdefghi 123456789abcdefghi 12345678 bcdefghi 1234567 cdefghi 123456 defghi 12345 efghi 1234 fghi 123 ...

 
Hmm. Does anyone know how to disable or turn off chrome extensions for one installation of chrome without disabling it on other pcs? I want to otherwise leave my sync-across-desktops intact, but two extensions are causing issues only on my work computer.
 
Go to chrome://settings/syncSetup and choose not to sync extensions.
 
Ahhh, I knew there had to be something in there, but I couldn't find it.
It would be nice to be able to choose specific extensions, but this'll do for now. Thanks :)
 
 
2 hours later…
4:49 PM
@ASCII-only O-o I do?
Hi many people
@ASCII-only fixed.
 
5:06 PM
1
Q: Detect Perfect Pairings

Cat WizardLet's have a function \$f\$ that takes a string and removes all pairs of adjacent identical characters. For example \$f(a\color{red}{bb}ba\color{red}{cc}) = aba\$ We will call a string perfectly paired if repeated application eventually yields the empty string. For example the string above \$...

 
5:43 PM
Can I rely on Python dict's keys staying in the same order? That is, if I load {"a":1,"b":2} and {"b":2,"a":1} using json.loads, can I rely on them holding the keys in the order ["a", "b"] and ["b", "a"] respectively?
 
@HyperNeutrino nope
 
I don't think so
I belive they are in hash order
 
@HyperNeutrino 2 or 3
also yeah what cat wizard said
 
ok
because testing on TIO keeps them the same order but I'm not sure if that's just because I don't modify the dict afterwards (I think insertions/deletions reorders it if expansion happens)
 
I'm pretty sure the ordering is undefined
Since a dict is an inherently unordered type
 
5:48 PM
iirc there is an OrderedDict collection in python
not sure how that would work with deserialization, though
 
6:19 PM
I uninstalled python
And am having problems getting it back on my RaspPi
\o/ Found a link to instructions.
checking whether tanh preserves the sign of zero... yes
LOL
Wait wait what... python is written in C
 
Is that a surprise?
 
Yes...
Starts changing some of the files in the python root directory
 
what did you think it was written in, just curious
 
I dunno
Bash mabye
 
o.o
 
6:32 PM
... Wrong window
 
ISO C says tanh should preserve signed zero so I wonder what weird compiler it's checking for there
 
@quartata uh... official Python release 3.4.0
 
oh, it's an extension
that's why
@FreezePhoenix ?
wait, why are you installing 3.4
 
Because I need something installed before I shutdown my computer
Otherwise shit happens
Not sure why I uninstalled every python on the computer in the first place
 
but why not 3.7
 
6:35 PM
Not released yet as far as I can tell
 
@PhiNotPi I've always found it amusing that the super bowl winners are always called "World Champions" of a sport that only 1-2 countries give a crap about.
 
It's nowhere in this list: python.org/downloads
Ok what language uses the extension .o
 
those are object files
 
@FreezePhoenix Are those object files?
Ah, ninja'd
 
Lol IDK
 
6:39 PM
@quartata Is there a difference between .o and .obj?
 
building '_crypt' extension
gcc -pthread -fPIC -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -IInclude -I/usr/include/arm-linux-gnueabihf -I/usr/local/include -I/home/pi/Downloads/Python-3.4.0/Include -I/home/pi/Downloads/Python-3.4.0 -c /home/pi/Downloads/Python-3.4.0/Modules/_cryptmodule.c -o build/temp.linux-armv7l-3.4/home/pi/Downloads/Python-3.4.0/Modules/_cryptmodule.o
gcc -pthread -shared build/temp.linux-armv7l-3.4/home/pi/Downloads/Python-3.4.0/Modules/_cryptmodule.o -L/usr/lib/arm-linux-gnueabihf -L/usr/loc
What about .so
 
3.7.0rc1 is out by the way, I see it on the download list for OS X at least
.so are shared objects
 
Ack
On Darwin, always use the python version of the script, the shell
# version doesn't use the compiler customizations that are provided
# in python (_osx_support.py).
if test `uname -s` = Darwin; then \
	cp python-config.py python-config; \
fi
CPU usage top right
See... i told you
My computer crashed and shit happened
Grey screen
 
7:18 PM
nice
 
Ok, OS rebuilt, rebooting.
 
I created this arrow by accident.
Looks pretty cool
 
Note to self: Don't uninstall python on RaspPi
@DJMcMayhem Ooh... shiny
 
@DJMcMayhem CMC?
 
Traceback (most recent call last):
  File "/opt/v/main.py", line 89, in <module>
    main()
  File "/opt/v/main.py", line 70, in main
    v_instance.key_stroke(char)
  File "/opt/v/v.py", line 54, in key_stroke
    time.sleep(0.1)
KeyboardInterrupt
 
7:26 PM
@Adám Sure
(inb4 V, 24 bytes)
Actually, I can do it in 20 17
 
@Pavel curious to know how much you could contribute to my yacht budget
I wish TIO worked on my tablet...
 
7:45 PM
@quartata What browser are you using that tio doesn't work on it
And I can do two dollars
 
mobile Safari
 
why
 
i just do
 
ლ(ಠ益ಠლ) Pyth does not have a palindromize built-in :(
 
does anything?
 
7:56 PM
Yeah
Eg Jelly, 05AB1E
 
It's just +_ if I understand what you mean
 
ಠ_ಠ No it's not. (Blame's on me, I haven't been clear enough) 1) yours abuses implicit input and 2) the equivalent code is +K...t_K
 
8:09 PM
@quartata it should work on mobile safari, go tell Dennis what's not working
 
@quartata +_ doesn't work, it's x[::-1] + x, while Mr. Xcoder means x + x[-2::-1]
 
actually it should definitely not work on mobile safari 5.1
but it's ok
 
@DJMcMayhem at least I am not a thief!
 
@EriktheOutgolfer that is so oddly specific I find it hard to believe it's a one byter in anything
 
yet it's apparently useful
 
8:16 PM
Trimming off the end too that is
What is it in Jelly
 
a lot of things may have been proven useful because of PPCG's and other golfing communities' histories
 
@EriktheOutgolfer I didn't say you were
 
I mean, it's not normal for somebody to just copy-paste somebody else's solution in here, why so anxious that you inb4'd?
 
?
 
@DJMcMayhem PowerShell, 50 bytes, Try it online!
 
8:18 PM
@quartata Jelly has 2 versions, ŒḄ, which is the non-vectorizing one, and ŒB, which is vectorizing with depth 1
 
Wait, that one I thought is just [x, reversed(x)]
 
Why is V's output bold? (on TIO)
 
isn't that the one they call bounce
 
"bold"?
@quartata yeah, it's called "Bounce" in Jelly
 
@EriktheOutgolfer idk. Partially as a joke.
Knowing myself, if someone said: "CMC, output this" with a link to working code in a language I didn't know, I'd probably copy it and post it as a "solution"
 
8:20 PM
no, [x, x[::-1]] isn't a built-in in lots of languages
 
Oh, I see. Clicking into the particular box "highlights" that box. When I was flipping back and forth between V and PowerShell tabs, it looked bolded.
 
ah yeah, it's brighter so that you easily know that it's focused
for example, Ctrl-A will act on that
 
TIL
 
@DJMcMayhem reports for leading by example of unwanted behavior
:P
 
0
Q: Score a single dart

mypetlionIntroduction Write a program or function that, given the coordinates of where a dart lands on a dartboard, return the score of that dart. Dart coordinates are given as two integers, x,y measured from the center of the dartboard, with millimeter precision. How to score a dart Darts is a game pl...

0
Q: Output an ASCII "splat"

ngmIf you throw an ASCII egg in a given direction, you end up with an ASCII splat of size n. It "starts" with one o (the yolk), and continues in a given direction with "lines" consisting of 2 up to n *'s. The *'s are separated by one "space", and the o and all the "lines" of *'s are separated by "li...

 
 
2 hours later…
10:39 PM
@EriktheOutgolfer It is (somewhat) in 05AB1E, except that they are pushed separately onto the stack
 
yeah, ‚
 
And similarly (but not a "pure" built-in), _B in Pyth
 
11:06 PM
@Mr.Xcoder so Pyth doesn't need a 2-byte built-in for that
 

« first day (2704 days earlier)      last day (2132 days later) »