« first day (2019 days earlier)      last day (2826 days later) » 

12:03 PM
omg
SE sites have keyboard shortcuts
with vim nav shortcuts
 
@Dennis Could you please pull Brachylog?
 
pls upgoat this to +2 for sock
 
upvoted
17
A: Determine if a number is divisible by 13 (without using 13 itself)

LynnWhitespace, 0 points Actually looking at whitespace code isn't very fun (and also not allowed by this comment system) so here's the readable thing: [Space][Space][Space][Space][Enter] [Space][Enter][Space] [Tab][Enter][Tab][Tab] [Tab][Tab][Tab] [Space][Space][Space][Tab][Tab][Space][Tab][Enter]...

rulebending⁸
 
@ASCII-only I don't know if I advocate the use of socks...
 
who is Deimos ಠ_ಠ
 
12:11 PM
It bothers me that Beta Decay is associated with downvotes, but mostly for the reason that there two types of beta decay: beta minus and beta plus
 
a new user golfing in cheddar is as logic as outgolfing dennis by 78 bytes
 
@GammaDecay How do you misspell your own sock's name that badly? It's Deimos, with an 'i'. (I'm kidding. It's the sock of somebody/Mars Ultor/ASCII-only/etc...)
 
@Sherlock9 beta is assumed to be minus by default
 
typo :D
 
oh wait i need to rename it to unicode-only, right?
 
12:12 PM
@ASCII-only By whom?
 
@ASCII-only yes
 
@Sherlock9 just in general
 
@Sherlock9 PPCG, Optimizer, etc
 
@GammaDecay Mars Ultor's personal helper & information chat bot, PHI CB.
 
12:13 PM
@zyabin101 i borked it a long time ago and never bothered to fix it
 
Also an ancient Greek mythic character.
 
who's Mars Ultor?
 
@βετѧΛєҫαγ wait you were away for that long?
 
In ancient Roman religion and myth, Mars (Latin: Mārs, [maːrs]) was the god of war and also an agricultural guardian, a combination characteristic of early Rome. He was second in importance only to Jupiter and he was the most prominent of the military gods in the religion of the Roman army. Most of his festivals were held in March, the month named for him (Latin Martius), and in October, which began the season for military campaigning and ended the season for farming. Under the influence of Greek culture, Mars was identified with the Greek god Ares, whose myths were reinterpreted in Roman literature...
 
speaking of chatbot spambot++ is still borked
 
12:15 PM
@ASCII-only Sì
 
Mars Ultor is now Releasing Helium Nuclei. I didn't know that the god of war was radioactive, but there you go
 
@Sherlock9 wait what I'm radioactive?
 
@Sherlock9 Erm, RelHeNuc was betseg.
 
i am a penguin releasing gamma rays, so ¯\_(ツ)_/¯
 
@GammaDecay stays well away
 
12:19 PM
;_;
 
You were a penguin?
 
@βετѧΛєҫαγ i am tuxcrafting
 
@ASCII-only I don't answer upvote requests. Sorry
 
@ASCII-only upgoated
 
12:21 PM
@Deimos Welcome to Programming Puzzles & Code Golf chat!
 
Argh, be gone you horrific beast
throws sticks and flags
 
the neoscript version is 1 byte longer: {n|'=*n+"(:)-"}
 
25
Q: Squarefinder – Locating regular tetragons

Sp3000Imagine a bunch of rectangles drawn in the plane, each rectangle with its vertices at integer coordinates and its sides parallel to the axes: The rectangles partition the plane into a number of disjoint regions, coloured red and blue below: Your goal is to find the number of such regions wh...

 
@βετѧΛєҫαγ I'm not a horrific beast.
 
@ASCII-only Wait. Dang it
You're Mars Ultor
Agh
 
12:23 PM
@Sherlock9 :P
 
Too many name changes
 
(meant to link the accepted answer but close enough)
 
@zyabin101 Noo Deimos
 
i need a name for my chatbot
 
12:25 PM
ಠ_ಠ
 
ಠ_ಠbot
 
@GammaDecay Electron Capture/Positron Emmission
@βετѧΛєҫαγ no, that would be ಠ_ಠ's bot
 
whoops was talking on sock
 
heh
 
Photonbot
 
12:27 PM
Neutribot
 
You know what would be cool? A programming flowchart thing that displayed it like a Feynman diagram
 
@Gamma Sounds too much like NutriGrain
 
Variables combining and recombining from t=0 until t=[program end]
 
@Sherlock9 maybe
but I'd think for normal-sized programs it'd already be too big
 
12:29 PM
Hey, just posted my first answer! Although the topic is kind of old...
 
unless you only show variables participating in an operation
 
@ASCII-only Same for many flowcharts really. And many particle interactions too
 
@MatthewRock Most challenges here never close, so you can post solutions even if the challenge is years old.
 
HiggsBot
 
@Sherlock9 I mean 5+ variables for a single function, and a lot more than 5 functions in an average program
 
12:34 PM
1) In normal cases, if you have more than about 3 variables at once, you might want to partition your function. 2) You diagram each function individually
There's trillions of particles in a particle collision, but we don't diagram everything. CERN doesn't even keep all the data because there's gigabytes of it
 
@trichoplax great, thanks for letting me know!
 
halp how do i create a other account
@everyonewhohaveasock
 
@GammaDecay use another email
 
@GammaDecay Remember how you created the first one...?
 
kthx
@trichoplax but idk how to log out
 
12:36 PM
Ah OK
 
Click on "Stack Exchange" in the top left
 
You can just use a separate browser instance (or a completely different browser)
 
It opens a menu with a log out option
 
ah k
 
I use separate browsers
 
12:44 PM
It looks like python won. Next question: strawpoll.me/10951814
 
@DJMcMayhem That depends
Is it a golfing lang?
 
No, it's an anti-golfing language
What that really means is still to be decided
 
I would definitely go with plain ASCII, because it looks better :p
 
Yeah, I would prefer that too. I hope that wins
 
Next nag poll by Straw Poll: S****** Squad - Best or worst?
 
12:48 PM
Hey @Adnan, it's OK if I post my shorter program in the cops and robbers after it gets cracked right?
 
Please, can I become exempt ;_;
 
@BusinessCat That depends
Do you want to reuse it as a cop or as a program to let people see what the actual solution was?
 
To see what the solution was
 
That's okay then :)
 
@DJMcMayhem Custom codepage because i am evil
0
A: Snakes all around

HiggsBotNeoscript, 15 bytes {n|'=*n+"(:)-"}

^ upvote i need 20 rep
 
12:57 PM
That's... not how upvotes work o_O
 
( ͡° ͜ʖ ͡°)
 
Um... You're asking us for upvotes when you haven't upvoted yourself...? That's just lazy :P
Actually, can you get into trouble for upvoting your own account?
 
idk
 
OK, I checked - you shouldn't upvote your own posts (or do anything you wouldn't be able to do without a second account):
82
A: How should sockpuppets be handled on Stack Exchange?

Shog9How can I be sure I'm looking at a sockpuppet? You can't ever be 100% sure. What you think is a sockpuppet could in fact be my good friend Nog Shine, who loves everything I write, copies my writing style, and uses my computer to vote and post stuff when I step away for coffee. But in practice, ...

 
37
A: Do the top answerers have secondary accounts to post questions?

Bill the LizardThis is my secret account. Have I been doing it wrong?

20/20
 
1:21 PM
177
A: Good practice to include XML config in Java classpath?

Nathan FegerI usually look in a system property first then the classpath. so: java -DconfigFile=/filelocation/file.xml can be read as: String propfile = System.getProperty(configFile); if (propfile != null) { // read in file new File(propfile); ... } else { // read in file from classpath getCl...

someone outskeeted john skeet ಠ_ಠ
 
user image
3
@El'endiaStarman ^
 
1:39 PM
why don't we have https redirection
 
Why would we
TLS is used for auth. Anything else is hardly sensitive information.
 
because it's great
 
Managing, creating and rolling out TLS with broader compatibility is a rather complex task. Even more so with the CDN SE uses.
 
¯\_(ツ)_/¯
lel
my phone was under my laptop
 
2:08 PM
@mınxomaτ To prevent mitm and traffic sniffing? It's best practice?
there's really not a good reason to not use https for everything imo
"it's harder" isn't a good reason
 
@Poke And what would you want to sniff here? As I said, every sensitive part is already SSL.
 
TNB: you can check out anytime you like, but you can never leave.
 
Everything else is public information.
 
:/ my computer is quick only when fully charged
 
Why would I want my traffic to be sent in cleartext if there's no reason why it has to be?
I consider things that I put on the internet to be sensitive
 
2:18 PM
Why would you want your traffic to be sent encrypted if there's no reason why it has to be?
 
because I apparently have a higher expectation of privacy than you
or I just value it more
 
That's not remotely related to privacy.
 
Do you strongly feel like you don't want your traffic to be encrypted or are you indifferent?
 
I'm not sure what "privacy" you're expecting on a CC-BY-SA site ...?
 
2:19 PM
If I login to SE at some cafe
over free wifi
Maybe I care that other people can just be listening on the network
why don't you
 
@Poke Because the login is HTTPS.
 
ok?
but the rest of what you do isn't
 
@Poke Because it is public!
 
what you do on the internet can be just as important
it's "public"
 
OK, and as soon as you've posted your comment, it's on the site, so it's public anyway.
 
2:21 PM
to people who use this site
 
You don't need a login to read the site
 
you need to read the site to read the site
 
I'm failing to understand the difference.
 
It's the difference between me handing you a daily log of everything I do in a day versus you following me
You're just increasing your potential attack surface
and aside from all of that you guys still haven't mentioned a reason why not to have https everywhere
other than that it's difficult
 
I can think of at least one reason - when speed is crucial
 
2:26 PM
So you're saying on internal networks or what?
 
anywhere, https is slower than http
 
It's only slower because of the initial handshake, really
When is speed that crucial?
 
but data need to be encrypted before sended anyway
so it's slower
 
true, the initial handshake takes up the initial time, but for websites, which often make quite a few requests, that's a lot of handshakes to be making
 
The encryption used is built to be fast
@NathanMerrill keep-alive is default in http 1.1
so you only need to handshake once
 
2:29 PM
right, but that only works if the requests are between the same server
 
When aren't they?
 
which is rarely the case for most websites
 
You will hit a load balancer
which will proxy the request
 
Well, I have a picture to show, ping me when you finish discussing...
 
no, I'm talking resources on other domains
 
2:30 PM
So I can show it.
 
Let's take this website as an example
What other domains are loaded here
 
the cdn?
imgur probably
 
@HelkaHomba World Leader
 
counting, give me a sec
 
2:32 PM
And there's the fact that all of those requests are happening asynchronously
 
I'm counting 14 different domains
 
The one you really care about is the main page hit
 
@Poke That's incorrect. You'd need to handshake once per session. Modern browsers send out multiple sessions to any server to load multiple items at once.
 
You will setup the handshake on the initial request
then that page will tell the browser to load additional resources
If I have a website that loads a picture
I don't know to request the picture until after the site is loaded
 
That's correct.
 
2:34 PM
at that point I have made the handshake already
 
Not necessarily.
 
eh?
 
I only have one less gold medal than Martin Michael Phelps \o/
10
 
@Poke It's not guaranteed that the browser will re-use the same existing HTTP(S) tunnel to request the additional resources.
 
It should
since, as i said earlier, http/1.1 has keep-alive as default
 
2:38 PM
Mr RPN is here .o/
 
(in the case of stackoverflow, it certainly isn't the case, as their images are on a different domain)
 
to resources on the same domain
yes
 
@GammaDecay Mr RPN, what is 2 2 *?
 
heh
the creator of RPN
 
@GammaDecay Wrong. :/
 
2:39 PM
(the language)
(not the notation)
 
@GammaDecay RPN is a lang? O_O
 
@zyabin101 you had a picture?
 
@Poke Yup.
 
(that was your queue)
 
2:40 PM
This is my second pixel art picture, Outside the Window:
user image
3
 
@zyabin101 nice pic
 
what did you use to make it
 
a closd-source mobile app
 
@Poke Pixly, an Android pixel art editor.
 
@Poke Just because a connection is persistent (keep-alive) doesn't mean that it's concurrent. HTTP/2 introduces the simultaneous/concurrent request methodology, but that's not in widespread use yet. See also.
 
2:45 PM
@TimmyD That's all still after the initial page hit.
which is where you're going to maybe notice the extra time to load
I say maybe because we're still talking on the order of milliseconds
preloading is interesting though
not sure how that all factors in
likely it's still a net gain otherwise it wouldn't be used, haha
@zyabin101 seems like an interesting app
 
anyways, back to the original question: There is a performance hit with HTTPS. We can argue about how much the user actually notices the hit, but its still there.
 
basic but with a surprising number of features
well I'm willing to take that negligible hit in probably 99% of scenarios
 
0
Q: Print me out the most lines of code, In the shortest program possible

tuskiomiPutting out lines of text is often the first thing that a programmer learns to do. And, more often than not, we'll easily get carried away by this. Let's see just how carried away we can get! The challenge is simple: In your language of choice, Write a program that takes no input, and puts out ...

 
:/ printable ascii is going to win
 
@DJMcMayhem I'd say custom encoding, gives more commands.
 
preferences are different on the main and on the meta site ಠ_ಠ
 
Go hardcore -- alphanumeric only.
;-)
 
@DJMcMayhem Until I get a featured poll I can answer, I'll answer in chat. Printable ASCII.
 
3:06 PM
@zyabin101 ಠ______________ಠ
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yeah, but then I have to actually come up with all of them
 
@EᴀsᴛᴇʀʟʏIʀᴋ but it's a anti-golfing language
 
Alphanumeric, case insensitive. Anything worth doing is worth doing with only 36 characters.
 
so you can use a custom 32-bit encoding to unnecesary bloat the file ( ͡° ͜ʖ ͡°)
 
3:08 PM
@TimmyD I'm actually really hoping that something like that happens. It's easier to make it hard to golf in if it's got a restricted source.
 
I'd hate writing in a language that was alphanumeric only. It's like basic but worse
especially because alphanumeric excludes any whitespace
 
It wouldn't be that much worse than any of the other esoteric/turing tarpit type languages
 
@Fatalize Done.
 
3:26 PM
@NathanMerrill You don't really see whitespace in Pyth, CJam, Jelly, etc. anyway
 
I thought it was an antigolfing language?
oh, its made to make golfing hard,
 
Whitespace is significant in jelly iirc
 
but not necessarily programming easy
I thought he was trying to make a verbose-but-readable language
 
trying to statistic
 
3:31 PM
@HelkaHomba -._(°_°)_.-
 
If I'm not back today, I've probably died/in hospital
I have my first driving lesson in 15 mins
I'm too young to drive
 
dont know how to statistic
 
@muddyfish iirc my first driving lesson involved going 5mph in a totally empty parking lot
so relax :P
 
I know
:)
just being overly dramatic
Though I'd probably be on empty country roads given Im in the countryside
 
@HelkaHomba my max internet speed is 300kbps now, sooo.......
 
3:41 PM
If robots end up outperforming programmers, will they write tests?
 
Because you're asking for them?
 
@ReleasingHeliumNuclei ouch..
 
wŭt
 
3:44 PM
@Dennis still looking for soap coffee
 
@HelkaHomba meh, i have 30kbps of average
 
yay 1.3mbps
 
Aug 4 at 23:24, by Dennis
@GammaDecay Impersonating another user is not very nice...
 
You're the second Gamma Decay I'm saying that to.
 
3:50 PM
oh sry
idk that another one is called Gamma Decay
 
halp how do i zalgo font imgur.com/a/MoXwp
 
What will happen first? strawpoll.me/10952837
 
i think WWIII
 
@HelkaHomba Can I answer after November 8th?
 
Heh. Give your answer assuming Hillary wins since that seems more likely.
 
4:02 PM
0
A: Sandbox for Proposed Challenges

apsillersFix my IP address's missing periods code-golf Sometimes when I'm typing out an IPv4 address, I get all the numbers right, but I forget to type one or more periods. I'd like to have a program (or function) that takes my broken IP address and outputs all possible valid placements of the missing pe...

 
@HelkaHomba I fully expect I'll see humans walk on Mars within my lifetime.
And of the options, that's the one I think most likely to occur first.
 
Yeah
 
1
Q: Be respectful in the restroom

DopappOf course, the SE network is very knowledgeable about how to be respectful in the restroom, but for those of you who need a recap, being respectful means flushing the toilet, etc. Most importantly, though, it means using the stall as far away from others as possible. The challenge Given a blue...

 
I don't think they'll ever be an "outright cure" for cancer, just better and better treatment options
You never know though
 
Anyone good with http/web js?
 
4:06 PM
.o|
 
So, you know how you can make an XMLHttpRequest?
 
@Poke Multiplayer browser games like agar.io and slither.io
 
@VTCAKAVSMoACE yes
 
I'll take that as a no. o.o
 
4:07 PM
@VTCAKAVSMoACE yeah?
 
@VTCAKAVSMoACE hey, haven't seen you in TNB in a while
 
Basically, I'm making a XMLHttpRequest and it gives me the raw data. How do I "save" this raw data locally as if it was a resource?
 
@VTCAKAVSMoACE by raw data do you mean like JSON?
 
@EᴀsᴛᴇʀʟʏIʀᴋ .o/
@Downgoat In this case, no, it's a .kml.
 
4:09 PM
@Dennis This works for external requests too?
 
Depends on the cross-origin policy of the target.
 
@Dennis It's set to *, but it will eventually be the target request.
 
@VTCAKAVSMoACE and what do you mean my locally? I'm guessing you're trying to reference the kml in HTML?
 
@Downgoat Yes, I'm using this library which requires a local resource.
@Dennis Lemme try this :D
 
Not sure how well it would work with your KML issue.
 
4:12 PM
@Dennis Yeah doesn't make it a resource. :c
 
where is matthew roh?
 
@TùxCräftîñg idk, his account has been deleted >_>
@Dennis can you update the cheddar wrapper on TIO again with this one, previous one wasn't throwing errors >_>
 
@VTCAKAVSMoACE :/ I opened my laptop, first thing I saw was that avatar. Thought it was @ConorO'Brien's at first.
and was thus confused about what esolang needed XML parsing
@Downgoat generally you try to avoid throwing errors...
 
@Downgoat Done.
 
@VTCAKAVSMoACE Can't you make it into a data: URL? "data:text/plain;base64,"+btoa(text)
 
4:21 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Errors != always bad
 
Unless I misunderstand what you mean by "resource" which I might
 
@apsillers I don't believe so.
 
@VTCAKAVSMoACE ik, a joke
@apsillers that profile widget is epic.
 
@EᴀsᴛᴇʀʟʏIʀᴋ thanks :)
 
@apsillers how this widget work???
heh havent see theview source button
 
4:26 PM
Basically, when the browser sends an HTTP request for each image, the server decides whether to send a white or black image
 
@AlexA. i went to bed just after the ":D". >_>
 
it makes that decision based on an internally-held game state, which you can influence by visiting specific URLs (i.e., the links on each image)
 
you made it yourself, correct?
 
Thanks for the star on Github :)
I did
I coded it on vacation a few years ago
 
@apsillers hm, maybe add something for generations that would go off the edge?
 
4:33 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I thought about that, but I'm concerned about (a) the simulation growing unbounded and (b) confusing behaviors caused by interactions with unseen cells
I could get around (a) by simply making the bounds slightly larger than the view
(b) is just a general problem when your view is smaller than the field of active cells
 
@TùxCräftîñg On Discord
 
his ppcg account is deleted
 
He's 12, and so his account got deleted. In 2017
 
But he is on the PPCG Discord channel occasionally
 
but you actually can make the field larger; there are height and width variables in the server that specify how big the game state is; this can be bigger than the number of images in your client HTML/markdown
 
Edited because I have no idea if his account will get undeleted when he turns 13
It could happen, who knows?
 
@VTCAKAVSMoACE The first line is a 32 byte UUID that lets you kill the process remotely.
 
@Dennis ohhhh So I definitely don't need that.
 
@apsillers oh, okay.
 
4:43 PM
how do i import a script from my hdd in greasemonkey?
 
@Dennis \o/ thanks!
 
@miles One more shot.
0
A: Can you outgolf me? (Cops section)

DennisM, 9 bytes, score 0.6667 (6 / 9) r©0+’Ac®Ḅ A tad cheaty since M and Jelly are quite similar, but allowed by the rules. @miles' crack to my Jelly answer doesn't work in M; it lacks the œċ atom. This calculates sequence A119259. Try it online!

 
I'm making a language where the only reagents are emojis (all other chars are comments).
For it to print ASCII strings, I make a special encoding.
What emoji would best represent a % sign (percent, part)?
 
> all other chars are comments
 

« first day (2019 days earlier)      last day (2826 days later) »