Whitespace, 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]...
@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...)
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...
Imagine 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...
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
How 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, ...
I 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...
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
@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.
@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.
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.
Putting 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 ...
Fix 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...
Of 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...
@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
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