« first day (2644 days earlier)      last day (2203 days later) » 

12:00 AM
@Pavel So far, I have had to convert i-beams and a special syntax ; which allowed printing multiple arrays on a single line even though APL\360 didn't allow nested arrays or mixed data types in a single array.
 
 
1 hour later…
1:25 AM
@betseg I think about the solar system forecast one a tad more but yeah I think of that sometimes
@Adám almost before pong smh
 
@Riker I'm not sure when it was originally written. I can just see when the workspace (≈file) was last saved, and that was after it was ported from APL VS to APL\360… Anyway, it now works on the very newest APL system (due to be released this summer).
 
1:49 AM
0
Q: Checkers Checker

aoemicaThe goal of this challenge is to determine if a move is a legal (English) checkers move. This challenge will use an 8x8 board. A moved piece should be treated as a man (not a king) that can only move diagonally forward. The board will have 0 or more black pieces and 1 or more white piece. One w...

 
2:46 AM
Wny Pong
Spacewar was the first
 
 
2 hours later…
4:38 AM
@Adám I have kingdom :P but the one I have isn't text-based (it is kinda resource management though)
 
5:32 AM
@ASCII-only oh good idea will do this weekend
 
 
1 hour later…
6:58 AM
@MagicOctopusUrn I have a feeling that it wouldn't be very well received by todays standards :P
 
7:11 AM
test message, do not star.
 
@DIDIx13 the sandbox is a thing
@cairdcoinheringaahing are you still here
 
Lol, Google uses RegEx to parse URLs in an example of how to use BigQuery: cloud.google.com/bigquery/public-data/…
 
7:37 AM
@DIDIx13 sandbox = chat room 1, very easy to remember.
@MagicOctopusUrn '11.
@cairdcoinheringaahing If you find the community bad, can you leave some suggestion how do you think to make it better? We had some discussion about that and still can't understand what's wrong.
 
7:54 AM
Hmm, should Charcoal have a help builtin
 
Maybe.
 
 
3 hours later…
10:51 AM
0
Q: Prime Factor Encoding

Asone TuhidChallenge Encode a string of bits as a single integer using primes. How? Hold a prime (starting with 2) Have a list For each bit in the input If it's the same as the previous bit, add the prime you're holding to the list If it's different, hold the next prime and add that to the list Retur...

 
11:41 AM
@Nit can there be multiple correct decodings?
 
Nit
12:07 PM
@ASCII-only At first I thought there can be, but I misread how the challenge logic works, since the primes are sequential, it shouldn't be possible.
 
12:32 PM
-1
Q: Python module 5 assignment help

jjchouinard141.) Write a program that contains a main function and a custom, void function named show_larger that takes two random integers as parameters. This function should display which integer is larger and by how much. The difference must be expressed as a positive number if the random integers differ. ...

 
12:49 PM
1
Q: ??? Question Marks?

Luis felipe De jesus MunozChallenge Create a function that takes an string as a parameter. (Easy as far) This string will contain Single digit numbers Letters from the alphabet Question marks (Of course) Your function will check if there are exactly 3 question marks between every pair of two numbers that add up to 1...

 
1:45 PM
0
Q: Print an ASCII Pylon

Conor O'BrienCross posted from my anagolf post (note: may contain spoilers, post mortem). Output the following text exactly. You may have additional trailing whitespace on each line, and trailing newlines as well. Shortest code, in bytes, wins. ...

0
Q: Why tensorflow's implementation of AdamOptimizer does not support L2 normalization

chengbingTensorflow's implementation of AdamOptimzer do not have params like ProximalAdamOptimizer, the l2_regularization_strength param, is it necessary to add l2 norm in AdamOptimzer?

 
1:57 PM
@NewMainPosts :| Canvas doesn't have any built-ins for converting a codepoint to its ascii representation
 
@dzaima Then add it.
 
@dzaima you what
 
(tbf SOGL doesn't too but it does by some reason have a built-in for getting the ascii characters up to a certain character)
 
Can someone please fix the leaderboard snippet on this question? The "Winners by Language" part isn't working:
98
Q: Shortest code to produce infinite output

tbodtWrite the shortest code you can that produces an infinite output. That's all. You code will only be disqualified if it stops producing output at some point. As always in code golf, the shortest code wins. Here's a list of answers that I think are really clever, so they can get credit: The co...

 
@dzaima what. O_o
@dzaima is this how SOGL and Cnavas are golfier than Charcoal? By actually implementing useful things? :P
 
2:04 PM
Actually, the leaderboard as a whole might be broken. The first part stops after like 30 answers.
 
@ASCII-only SOGL has way too many characters left to use so I just added random stuff without thinking about it :p
 
@dzaima Charcoal has almost run out. also lol how useless is this
 
@ASCII-only welllp
 
@dzaima wait is that the same thing
 
(that's inclusive & exclusive ranges from char to char :p)
 
2:08 PM
ok. i have to amend my comment
new comment:
protip: don't make a variable-based golflang. it won't be golfy
 
@ASCII-only Oh SOGL has 5 variables. Canvas has 2
though I'm guessing you have way more
 
@dzaima yeah but the difference is Charcoal isn't stack based. or tape or register based for that matter. or hexagon or triangle based
 
Is this TIO program scored correctly? By that I mean, should the static part be counted in the bytes?
 
@dzaima yeah, 20 IIRC. or infinite if you consider these as variables
 
@mbomb007 I think that's correct.
 
2:12 PM
@mbomb007 yes.
@mbomb007 that part is just giving it a signature so Java will be happy
 
2:27 PM
For Proton 2.0, should I make all objects Python dicts or just make them dynamically built Python classes?
The first one makes it possibly more accessible in some aspects but the second one probably works more seamlessly.
 
@HyperNeutrino depends on whether proton will have actual classes/you need things like operator overloading
or equality
 
I will definitely have overloading for operators including ==
 
then it's probably easier to make them classes
 
ok thanks
 
2:44 PM
Is it just me or the inbox and achievements buttons now link to the Stack Exchange user page?
 
@Mr.Xcoder Only if you middle-click or your connection is slow.
Yes, it does link there, but clicking them won't go there.
 
Hmm for me clicking them will redirect there immediately for some reason, and I am definitely pressing as usual. I have no problems with the internet connection, too.
 
The downside of fallback behavior for non-JS clients.
 
Reproduced...
I guess it's new.
 
Yeah, it's some random JS error that prevents the script from hijacking button clicks.
Hence the behavior for non-JS users, which can only check their inbox by going to the inbox page.
@Mr.Xcoder It should work again after a hard refresh.
 
3:07 PM
@Adám in that case it's probably predating pong
 
2
Q: Minimal Triangles

AdmBorkBorkMake an upside down triangle of positive integers. Every number in the triangle must be distinct. Each number is the summation of its two parents (similar to how Pascal's triangle is constructed, but upside-down). Construct it in such a way that the bottom number is minimized. For example, for i...

 
@Riker Hm, now I can't find the Wikipedia list of early games. I should add it.
 
The history of video games spans a period of time between the invention of the first electronic games and today, covering a long period of invention and changes. Video gaming would not reach mainstream popularity until the 1970s and 1980s, when arcade video games, gaming consoles and home computer games were introduced to the general public. Since then, video gaming has become a popular form of entertainment and a part of modern culture in most parts of the world. The early history of video games, therefore, covers the period of time between the first interactive electronic game with an electronic...
and:
The history of video games goes as far back as the early 1950s, when academic computer scientists began designing simple games and simulations as part of their research. Video gaming did not reach mainstream popularity until the 1970s and 1980s, when video arcade games and gaming consoles using joysticks, buttons, and other controllers, along with graphics on computer screens and home computer games were introduced to the general public. Since the 1980s, video gaming has become a popular form of entertainment and a part of modern popular culture in most parts of the world. One of the early games...
 
@Riley hi, I have a sed question, (spoilers(?) ahead) while looking into the sed solution to the ascii pylon on anagol, I noticed that the solution began with s/.*/stuff/;sssblahs, the second substitution command matched the entire pattern space somehow (having s/$/stuff/ instead of the first line doesn't allow the trick). Do you know why that happens?
 
3:24 PM
@Riker Nah, I it had a table with years going down.
@Riker Found it:
The following list of text-based games is not to be considered an authoritative, comprehensive listing of all such games; rather, it is intended to represent a wide range of game styles and genres presented using the text mode display and their evolution across a long period. == On mainframe computers == Years listed are those in which early mainframe games and others are believed to have originally appeared. Often these games were continually modified and played as a succession of versions for years after their initial posting. (For purposes of this list, minicomputers are considered mainframes...
 
@user202729 Ain't no force like brute force. :D
 
@Cowsquack link?
 
3:39 PM
Is there a way to view a list of results for each dead keys? (arch linux)
Nevermind I think I found it.
 
@Cowsquack If you don't give a pattern to match it will use the pattern from the previous substitution. I didn't know this feature existed. I only realized it because I happened to run sss123s.
 
ah I see, that is a nice trick, thanks for your help :)
 
Thanks for finding a new trick for me to use :)
 
CMP: Which key should I choose as compose key?
 
4:04 PM
menu if you have it
 
4:29 PM
AltGr generally
 
I prefer to have AltGr be it's own key for dead_keys and certain other characters
 
hmm - How the heck 1. this is an answer, 2. it's accepted, 3. the question is not marked dupe?
 
> answered Sep 18 '09 at 0:00
 
that was a long time ago back then people were a lot less strict
 
Probably in '09 that was acceptable?
 
4:41 PM
that was back when PPCG was still acceptable on SO
 
@J.Sallé I know, but I think duplicates existed these times...
 
Nit
You can still mark it as a dupe now.
 
until they decided that they needed to have a lot more content control so they were a lot more strict and also moved us to our own site
 
2
Q: A pile of weights

Stewie GriffinChallenge: You'll be given an ASCII image of a pile of weights as input, and must output the combined weight of the pile. Format: There are 5 different weights, weighing 1, 2, 5, 10, 20 Passerees (or some other arbitrary unit). The weights looks like this, in ascending order: 1: __ |...

 
@Soaku probably, but also probably not enough people would visit SO to reliably mark stuff as dupes
 
5:15 PM
a[b,c] == a[b][c] or a[b,c] == (a[b], a[c])?
I personally favor the latter
but I'm thinking about using numpy arrays as the default type
 
@HyperNeutrino the latter seems more intuitive
 
I agree
especially if you already have a[b][c] in the first place
but numpy arrays operate using the former and I want to use those
 
I'd see the former as a[b;c]
 
@HyperNeutrino I've always wished that python could do the former.
That seems more useful to me
 
I mean I guess it makes more sense as coordinates
also Proton 1-indexing or 0-indexing?
I know most languages use 0-indexing but having the "not found" index be 0 makes more sense and is golfier
BTW I don't plan on optimizing Proton for golfing so any golfy aspects are just byproducts of other decisions
 
5:26 PM
Then do that. 0-indexed is more common, but there's nothing wrong with 1-indexing
 
@HyperNeutrino I'd suggest having indexing as an option but it'd be a pain to manage
 
I suppose I could make it work that way but that's kinda annoying TBH
I mean 1-indexing will require work anyway because I need to subtract 1 from everything
so I could just as easily turn that 1 into a constant and it might even be better
 
The main reason that 0-indexing is more common is because of pointer math in C: a[5] == a + sizeof(int) * 5 (assuming that a is an int pointer)
 
yeah I'll do that with an option to change indexing back to 0 or something else
@DJMcMayhem yeah
 
@HyperNeutrino Please don't do that. You should easily be able to tell what a snippet does without needing to look up options
 
ngn
5:28 PM
@DJMcMayhem careful, that might trigger WW3 :)
 
@DJMcMayhem I mean like I could add a command line flag though that's probably not a good option because then people on both sides will use both and it will get confusing when you forget the flag so I might just keep it at 1-
 
That's one of my biggest complaints with vimscript actually. For example 'a' == 'A' may give 0 or 1 and there's no way to tell without looking up settings
 
APL has the system variable ⎕IO for changing the Index Origin (whether to index from 0 or 1)
 
But as much as I hate vimscript, it's much better than JS :P
 
Apache: i know this might be a stupid question, but is there any way to install ssl using htaccess only?
 
5:31 PM
@Soaku no
 
@Cowsquack I'd not suggest APLs system as with it a function might behave differently if called from different locations if its ⎕IO isn't set
 
you can redirect to https from http, though
 
i know, but that won't help if https doesn't work
but, can I host 443 with Python?
 
@Soaku why not?
should be able to pick any port that isn't in use
 
5:32 PM
@Poke However, I couldn't find anything on what it should reply there...
crt?
 
hmm?
I'm not sure what you mean
 
What Python should respond on requests to 443? The .crt file?
 
it depends what you're trying to do
 
@Poke 443 is the port required for HTTPS. What should I respond there, so HTTPS will work?
 
5:34 PM
Hahaha
 
@DJMcMayhem what's the difference between the first and last columns (use 'ignorecase' vs ignore case)?
 
ngn
@Cowsquack the first column looks up the value of the option 'ignorecase', the last always ignores case
 
oh it is a variable
 
ngn
@Cowsquack an option
 
5:37 PM
@Cowsquack A setting
 
0
Q: Ascending integer pyramid

dylnanOutput either the text below, or a list of lists of integers (more details below). 0 10 1 20 11 2 30 21 12 3 40 31 22 13 4 50 41 32 23 14 5 60 51 42 33 24 15 6 70 61 52 43 34 25 16 7 80 71 62 53 44 35 26 17 8 90 81 72 63 54 45 36 27 18 9 91 82 73 64 55 46 37 28 19 92 83 74 65 56 47 38 ...

 
@DJMcMayhem Nice!
 
                ignorecase=0    ignorecase=0
    'a' == 'A'  1               0
    'a' ==# 'A' 0               0
    'a' ==? 'A' 1               1
@Cowsquack ^
I unsuccessfully tried to ping @kritixi
 
@Soaku 443 isn't required for https; it's just the commonly used default. your python code shouldn't need to do anything special for an http request to be sent with ssl. that's all at the web server level
 
@Poke Python wiki says You will need "cacerts.txt" file that contains root certificates placed alongside the script. but which certificates? ca-bundle? crt? both? in what order?
@Poke I mean, what should python respond to HTTPS requests? How I make HTTPS work? Where should I send all these certificates? ._.
 
5:41 PM
Are you looking to send requests or receive them?
Another way to ask that question is are you the client or the server
cacerts is used when you are authenticating a server
 
send
but I think I found the thing... gotta check it
 
ok o.o
 
Close! ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)int(1) maybe that's the wrong certificate...
too many of them
ok. that's the wrong script
 
5:57 PM
ugh, permission denied
on the good script
oooh, I think I made it. The Python script seems to never end. That's good, since it has to serve_forever. https doesn't work still tho
now, the entire domain isn't working. cool
ok, looks like my domain has an ssl certificate, installed by host. it overrides mine. that's stupid, because it's ssl for their own domain
and my site isn't on their domain
@Poke How can I tell browser on which port HTTPS is?
 
6:13 PM
https://mycoolwebsite.com:<port_here>/path
but 443 is default
if you don't include a port
 
so it's the same as 80, just with https? where does the browser get the certificates from?
 
port 80 is the default for http. 443 is the default for https. yup.

browsers either will come with a cert store (like in firefox) and/or use the system cert store
 
so how do I tell them where my cert is?
ugh, nevermind
 
6:37 PM
I will never get it working
 
It seems like you have a self-signed cert on a webserver somewhere and you're trying to hit it from python and from a browser. In the browser you will probably get a cert error page where you can click a button to continue anyway or you can install the cert so it's trusted by your browser. In python this trust is set up via the cacerts file you mentioned earlier
 
I've got this...
cert.txt is private key and certificate concatenated
What is x._domainkey DNS?
it seems to be in my dns by default, set to v=DKIM1; k=rsa; p=[some key]
@Poke
 
6:59 PM
For the host you probably will want 0.0.0.0 if you want to be able to hit it from somewhere other than localhost. port can be 443
Based on this python file it looks like your python application is the server receiving requests
where does apache come in to play
 
because I can find no other way
 
Can find no other way to what?
 
ugh, I don't understand all that HTTPS stuff
how does browser know if my website supports HTTPS? Where it gets the certificate from, exactly? How do I properly install SSL after I get the cert?
 
A browser doesn't know if your website supports https. If you're making a request to an https url, it starts setting up the ssl connection. The certificate is sent from the server to say "this is who i am and this is who can confirm it".
https is just http that is encrypted
there's an extra step before you make a request and an extra step before you read the response
 
but how does it send it? does browser request it at some point? does the server send it via DNS or some header?
 
7:10 PM
The browser, when it connects, will send its cipher suites as part of its handshake message. The server then sends its public key to the client, the client then uses that certificate to generate a secret. Here is some small details.
It will send the certificate (initially) just the same as if it were sending an image or some text. "Here's the certificate."
 
Uh, so how do I send the certificate?
 
When you try to navigate to google.com, your browser sees that you're trying to use https. Instead of just sending your GET request right off the bat, it sends a CONNECT request with, as AdmBorkBork mentioned, your accepted cipher suites. Then google responds with its cert
 
hmm
 
Are you writing your own socket listener?
 
i'm trying to do whatever that will send the certificate ಠ_ಠ
I have PHP, Perl and Python available.
And Apache, limited to .htaccess
 
7:15 PM
None of PHP, Perl, or Python have anything to do with certificates unless you're writing a raw socket listener (here's a code-golf doing that).
 
Python has the power to do so, as far I know
I did create a script (previously shared in a gist) which, in theory, should start listening to HTTPS requests and respond with certificate, but I always get "took to long to respond" error
 
Have you looked at the Apache documentation on how to setup SSL?
Or do you not have access to /etc/httpd.conf ?
 
I do not
as said earlier
 
I must have missed that. Sorry.
 
fine
 
7:21 PM
Without access to httpd.conf, you won't be able to configure Apache to use SSL/TLS. Or, if it's already configured for you, you won't be able to change the configuration.
 
what about Python?
 
Python won't do any good if Apache is already listening on 443.
 
It might be, or it might be not. My domain doesn't respond to https, so idk
but if I could at least try on other port. I did, with the script I said about earlier, but it didn't work
but it might be actually working. that's weird, but my domain doesn't respond to anything while the https script is on
even to :80
 
I don't know enough Python to be able to debug your script, sorry. Basically, what needs to happen, is for the script to open a socket listener on 443, wait for a connect, receive the potential cipher suites, respond back with which one is appropriate, receive the pre-shared master key, and then utilize that key to encrypt traffic from there on.
 
Python has a builtin for SSL connection
and I use it
 
7:31 PM
Server-side or client-side builtin? They handle the traffic very differently.
 
both
there's one for both, with server_side argument, which is set to True in my script
httpd = http.server.HTTPServer(('localhost', port), r.handler)
    httpd.socket = ssl.wrap_socket(
        httpd.socket,
        certfile='.../cert.txt',
        server_side=True
    )
    httpd.serve_forever()
 
Ah, neat.
 
0
A: Sandbox for Proposed Challenges

BeefsterDon't Cross the Beams geometric graph code-golf This challenge is heavily inspired by The Talos Principle. The game includes a number of puzzles with light beams which you can connect using connector objects. One interesting property is that beams cancel each other out if they cross. This cha...

 
the problem is that it might be reading the certificate correctly, read it correctly and do everything correctly. The problem is that while the script is on, no requests on my domain ever get a response. Even those handled by Apache
 
Interesting. It's like the script is grabbing every socket.
 
7:37 PM
but, I've made it to send a simple HTML document. Chrome says it has too many redirects or it just took to long to reply
 
If I'm understanding it correctly (and I may not be, I'm not a Python expert) you should be able to do something like this
httpd = http.server.HTTPServer(('localhost', 8080), r.handler)
 
but I have no idea what could cause the redirects
yeah, that's what am I doing, in theory
 
Huh.
 
hmm, when I tried with 8080 then server just rejects the connection, as Chrome says
 
I wonder if your hosting provider has stuff in firewalld that is blocking other ports.
 
7:41 PM
PermissionError: [Errno 13] Permission denied
"server required too much time to respond"
gtg
 
I wonder if he can use JS.
 
?
 
Java Script
 
I know what JS is.
 
So, can you use JS?
 
7:51 PM
js to do what
 
but what do you mean?
 
@Soaku I mean as a response to that.
 
@Soaku If python is providing a means to create an http server that supports https, then all you should need to do is configure it. You shouldn't have to manually serve your certificate or respond to CONNECTs
 
...there's a repo that is serveral gigs big. I simply want to add a single file, and push a new branch (for a merge request). Is there anyway to do this without pulling the entire repo?
 
@NathanMerrill Yes. Become a repo owner.
 
7:55 PM
The python script you sent earlier doesn't seem to actually handle any requests, though
 
@Pheo how does that solve anything?
 
@NathanMerrill You make a direct commit not pull a new repo.
 
Where am I making this commit?
I don't have physical access to the server
 
@NathanMerrill It's the edit button.
 
I'm not talking github
I'm talking git
 
7:59 PM
I'm pretty sure there's a way to clone without downloading but i can't find docs
 
XD I'll work on compression later.
 
yeah, I'm pretty sure it's not possible
bah, I've been doing a git pull for at least 20 minutes now
 
@NathanMerrill That's why you don't make gigabyte repos
You make little modules.
 
yeah. It's for work, and nearly all repos are small. This is the first time I've come across a large repo here
and they actually explicitly say "Normally binary files aren't allowed in repos, but you can do it here", so they have some reason
 
You can at least do a shallow clone
which doesn't grab the entire repo history
 
8:13 PM
yeah, this repo doesn't remove files though.
only adds new ones :)
 
This doesn't really help at all but it's someone who had the same issue stackoverflow.com/questions/8625662/…
 
8:31 PM
@HyperNeutrino well, I guess the other approach is a[[b,c]] == [a[b],a[c]]?
 
9:01 PM
0
A: Sandbox for Proposed Challenges

tgrass12How Much Ya Bench? Inspired by the challenge A pile of weights. Challenge Given an integer as a weight in pounds, output an ASCII barbell with the next highest valid weight. Weights will come in the form of the barbell (which will weigh 45lbs) and plates with the following weights: 45lbs, 35l...

 
9:46 PM
This Fibonacci joke is as bad as the last two you heard combined
 
("half-empty glass" version of the joke)
 
 
1 hour later…
11:14 PM
CMC: Given a list of positive integers, return the smallest number that 1) isn't in the list and 2) is not smaller than min(list)
[1, 2, 3, 4, 6, 7, 8] --> 5
[4, 8, 15, 16, 23, 42] --> 5
The list might not be sorted
 
yesterday, by Husnain Raza
can someone help me out with implementing cjfaure's profile picture in python?
Can someone help me with this
 
@DJMcMayhem May we assume there is at least one gap between the min and the max?
 
@HusnainRaza cjfaure's profile picture?
 
@Adám No. [10, 11, 12, 13] should give 14
 
11:19 PM
@DJMcMayhem Husk, 6 bytes: §ḟo¬€▼. Quite nice except for o¬€ for not in
 
@Adám nice
@HusnainRaza what image library? PIL? Pillow? something else?
 
@DJMcMayhem OK, then add another two bytes: ⊃⊢~⍨⌊/↓∘⍳1+⌈/
 
@Adám hang on. what's with the artifacts? hmm, was this converted from a gif
 
@ASCII-only How would I know? I just found it for you.
 
@Adám Explanation?
 
11:22 PM
@Adám yeah sorry, didn't mean to ask you, was just trying to reply to image message for context
 
@DJMcMayhem the first of the argument elements ~⍨ removed from ⌊/ the min dropped from the integers until 1+ one plus ⌈/ the max.
 
11:54 PM
@DJMcMayhem ‘ḟ$Ṃ
 
Yeah I get a division by zero error for reasons explained, but I was wondering how cjfaure did it
 

« first day (2644 days earlier)      last day (2203 days later) »