@quartata I would, but when I tried to upgrade my laptop (running Win7) to Win10, it shut down halfway through, so then it reverted back to Win7 and now it's saying my product key is invalid and I can't upgrade again without buying a new key
@undergroundmonorail If I recall correctly, the leading theory on this is that the yellow dots don't change or anything, so our brain filters them out so fewer resources are spent on perceiving them in favor of the rotating grid.
@phase I remember seeing the middle image alone years ago and managing to make the girl turn in whichever direction I wanted, and I achieved it by focusing on her foot and imagining really hard. :P
JavaScript (ES6), 54 bytes
s=>s.replace(r=/\b[^aeiou ]+/g,(_,i)=>s.match(r)[+!i])
Explanation
s=>
s.replace(
r=/\b[^aeiou ]+/g, // r = regex to match consonants
(_,i)=>s.match(r)[+!i] // replace consonants with the consonants from the other word
)
Test
var solution = s=>...
@Quill someone from TL made a userscript that adds Google Hangout's-style "X is typing..." and marks which messages X has read until. It's really neat, but I didn't get it yet
It'd be cool if a userscript added a chat button that you clicked and wrote your reason in when you go afk and then when someone pings you or writes your name, they get messaged saying you're afk
The SO-ChatBot does this already, but it's a bot, not a userscript
Introduction
RNA is the less famous cousin of DNA.
Its main purpose is to control the production of proteins in cells through a process called translation.
In this challenge, your task is to implement a part of this process where the RNA is split into codons.
This challenge is thematically rela...
The people that made mod_wsgi added a new feature in May 2014 that lets you limit the memory of daemon processes. Where's the documentation on it? Nowhere. -_-
If you really want to be a better programmer, it's a good idea to learn how to figure stuff out on your own. Unless you really, truly get stuck for more than an hour or a day...
Encrypt function in Javascript:
function securityEncode(a,b,c){
var e="",f,g,h,k,l=187,n=187;
g=a.length;
h=b.length;
k=c.length;
f=g>h?g:h;
for(var p=0;p<f;p++)
n=l=187,
p>=g?n=b.charCodeAt(p):p>=h?l=a.charCodeAt(p):(l=a.charCodeAt(p),n=b.charCodeAt(p)),
...
Python 2, 364 352 269 251 bytes
EDIT: Thanks so much to @Cyoce for helping me golf 83 bytes!
Please help me golf this! Anyway, at least I am the first Python answerer. And I hope I can beat Java, if there ever is a Java answer!
i=input()
f=l=''
A='aeiou'
for j in A:
I=i[0];J=I.find(j)
if ~J:...
Depending on what J and f are, maybe you can even do if ~J*f:.
Oh, and I just looked at the revision history, and I see it was even less golfed before, with a fairly obvious trick just waiting to be used. Not only that, but Cyoce pointed it out, so you didn't even come up with it yourself.
Now, I've gotten plenty of golfing help on my Python answers, but they're almost never that obvious.
I mean, when the Jakarta shooting happened on Thursday, I messaged you guys here to let you know I and my family were alright, but very few people knew what had happened
@Sherlock9 That's probably more because news of events in other countries doesn't travel very much over here. When the shootings in Paris happened, there was a lot of news coverage, and very little for shootings in Beruit a day or two before.
for j in A:
I=i[0];J=I.find(j)
if ~J:
if f:
if f>I[0][:J]:f=I[:J];break
else:f=I[:J]
for j in A:
Y=i[1];J=Y.find(j)
if ~J:
if l:
if l>Y[:J]:l=Y[:J];break
else:l=Y[:J]
Also, the United States had an average of one mass shooting per week last year (precise meaning of "mass shooting" uncertain). How many made the news? Like a dozen or something.
@TanMath: If you don't mind, I'd like you to read this, starting at the section titled "The Cook and the Chef" and reading to the end. It's long, but a good read. I'll explain why after you read it. In the meantime, I'm going to bed. G'night!
CleverBot is a conversational AI that works fundamentally by repeating responses from real humans it has heard previously. It starts off pretty dumb, but once the database becomes (a lot) larger it begins sounding more like an actual person!
How your program should work
Output Hi!
Receive the ...
Introduction
Right now I'm participating a chess tournament. I got inspired by the tournament schedule. Right now, I'm in a competition with three other players. That means with the four of us, we are playing 3 rounds. The schedule goes as following:
Round 1: 1-4 3-2
Round 2: 3-4 2-1
Round 3: 1...
Mr. William Shakespeare wrote plays. A lot of plays. In this tarball containing every single one of his works, each one of his plays is one long file.
It needs to be split into Scenes for a stage production. Because actors are impatient, your code needs to be as short as possible.
Task:
Your ta...
We learned that in elementary school. After that, you don't really use separate symbols anymore. Multiplication symbols (• in Germany) are deprecated in fifth grade and up and Divisions are replaced by (more complex) fractions. This largely happens because a) you now have a calculator and b) constant expressions are utterly useless (partly because a)). ¯\_(ツ)_/¯
@mınxomaτ Yes, I went to a German elementary school as well. Still, I don't consider "inline fractions" very natural. A full-blown fraction with a horizontal delimiter is something else entirely. This is precisely what ÷ emulates.