« first day (1911 days earlier)      last day (2933 days later) » 

12:01 AM
@QPaysTaxes reversed(l)
its a global
list(reversed(l)).index
but just use l[::-1]
 
^
 
@QPaysTaxes huh?
 
...Yeah. I just went all "huh, I thought that word meant "can see the future" I must have been mistaken."
 
Adjective: prescient ‎(comparative more prescient, superlative most prescient)
  1. Having knowledge of events before they take place; possessing or exhibiting prescience.
 
python has everything
 
12:05 AM
@QPaysTaxes And that's a problem?
 
[closed] Not a bug, a feature
 
....huh? l[::-1] is a reversed copy of l.
 
@cat I rolled back your edit. That challenge is 2 years old with highly voted answers and changing the winning criterion to code golf would invalidate literally all of them.
 
@QPaysTaxes What are you trying to do?
 
Clearly, you have to discombobulate the flux capacitor
 
12:07 AM
@QPaysTaxes That's a bit too general to help.
 
Back!
 
TIL the guy who created the WTFPL has an account here. codegolf.stackexchange.com/users/811/sam-hocevar
2
 
@AlexA. And an active member who has been here since near the start...
 
@AlexA. wtf the creator of the WTFPL is also the engine programmer for Life is Strange
 
@QPaysTaxes Unfortunately, Python doesn't have a built-in for that. Not hard to write your own function for it if you really need to.
Oooh, I just thought of a hacky way to do it. Lemme see if it works.
 
ninjad
 
PPCJers: Did you get any confirmation if you advanced to round 2 of GCJ yet?
 
@QPaysTaxes I noticed too late :)
 
cat
@AlexA. I can't believe I overlooked that, wow, I'm an idiot. The intention was new answers be code-golf, but then we could just have a better, more specified, new challenge. Either way, that edit was dumb.
 
12:24 AM
>>> L = [0,1,2,3,4,5,6]
>>> n = 3; x = [L.pop() for i in range(n)][::-1]
>>> L
[0, 1, 2, 3]
>>> x
[4, 5, 6]
 
Even cats can't be perfect all the time
 
@cat It wouldn't make sense to have some answers that are trying to be competitive for code golf and some that are trying to be competitive in a popcon
 
Hedgehogs, however, are definitely always perfect.
 
Definitely
 
haha
 
12:25 AM
@QPaysTaxes Modern Sonic games? What are you talking about?
 
ROASTE
D
 
Yeah yeah, I know. But modern?
 
cat
@trichoplax 'scuse me
 
Meaning no offense to Sonic, but I don't really count him as a hedgehog
 
12:26 AM
What newer ones?
 
cat
@El'endiaStarman all da... da new ones
 
@cat It was intended positively... :)
 
The Sonic 4 games were fun though. I've only played Sonic 1-4 and Sonic Adventure 1.
 
@cat nope not ringing any bells
 
12:28 AM
I thought you meant Sonic the fast food place
 
0
Q: Polar or Nonpolar?

R. KapIntroduction Given any molecular compound in which the component elements are conveyed with their atomic symbols and the quantity of each element is conveyed with integers following the elements (e.g. H2O would be water), output a truthy/falsy value conveying whether the compound is Polar or not...

 
@AlexA. Let me bring to mind Kafka's Metamorphosis...
 
cat
135
A: Humans can now run 40 mph. How do I keep the stupid people alive?

Even MienPeople would likely use a portable, protective encasement when traveling at or near their maximum speed. Here is a possible prototype:

 
@El'endiaStarman I've pretty much played everything up to SA2 plus Colors and Generations
 
@El'endiaStarman I don't know what you mean but I liked that book
 
12:29 AM
@quartata I want to play Generations at some point.
 
I've played Sonic the Hedgehog 4...and that's it...
 
Sonic CD is the best
 
@AlexA. I was trying to joke that Sonic the Hedgehog got turned into Sonic the restaurant. :P
 
oh hahaha
 
generations is super good too
 
12:30 AM
@quartata Is that the pseudo-3D isomorphic tiling one? I barely played that, and only a long time ago at that.
 
Do they serve hedgehog...?
 
Oh! Forgot about Sonic R!
The songs were so catchy...
Every single time I listen to the first one, I remember the intro to the first track.
 
You
Hello

I'm here to waste some time in my life. :)
 
@El'endiaStarman no this one is the time travel one
 
12:30 AM
look it up
 
@You That's a given; no need to declare it. :P
 
You
@El'endiaStarman But that's how I wasted my time! :(
Now I can't waste my time. Cries
 
Sonic? More like...I don't know, something that rhymes with Sonic...
 
Chronic
 
12:32 AM
Aren't we all here to waste our time?...
Something insulting to his so called "speed"...
 
@quartata Huh, interesting.
 
Dec 30 '15 at 20:53, by PhiNotPi
Great minds waste time alike?
 
I can't decide whether I enjoyed CD or 2 better.
 
S3&K was probably my favorite, but I grew up with 2 so I've got a strong connection to that one too.
I grew up with Sonic R too.
 
I never got to play sonic 3 with sonic and knuckles attached until recently actually
 
12:35 AM
@quartata Via emulator?
 
nope borrowed a physical copy from a friend
 
Emulator was how I first played Sonic 3, I think. I did have the Knuckles attachment when I was growing up too, so I did play S2&K.
 
I keep my old consoles or at least try to
I suppose sonic and knuckles was the first DLC :P
 
@quartata haha, yeah
^ First level of Sonic R, incidentally.
 
@QPaysTaxes I'm guessing in the first one
The second one will assign everything up to (but not including) item length-n
 
12:39 AM
Oh, I don't think I played R. I didn't have a Saturn ever
I was always curious what it was like
 
I had it as a CD for desktop computers.
It unfortunately broke a few years ago. :(
 
rip
 
How ironic that you can't Google "Google +" >_>
 
Oh whaddya know, there are speedruns of Sonic R on Youtube! :D
 
So at school today I was programming something and ended up writing ~100 lines of code in Eclipse. I finished as the bell rang. I thought emailing it to myself would be faster than making a GitHub repo, but the email did not preserve tabbing. Now I am sad.

TL;DR: Spaces > Tabs
 
12:44 AM
Why not mail yourself the txt file?
 
The bell rang and the teacher of my next period gets really upset when people come late. Copy-Paste-Email seemed like it would be the .
 
One of the perks of universities with good computer labs is that you can ssh and ftp into them
Something for you to look forward to:P
 
cat
@ANerd-I it's java, not python, just beautify it
 
cat
@ANerd-I yeeees, that exactly
 
12:49 AM
@Dennis boobies and mustache? I'm confused -_-
 
cat
I beautify and golf Golang with that Java Beautifier/minifier :P
 
Plot twist I can't find the email
I literally just had it and it's not there anymore
 
DELETE
D
 
Never mind I was looking at the wrong email account...
I should sleep
 
@AlexA. am I doing the meme right?
 
12:51 AM
@ANerd-I in atom packages > whitespace > space-to-tabs
 
I don't understand the meme metagame anymore
 
@quartata Yes
 
@Maltysen Atom runs in a Chromium instance right
 
@Maltysen NO
@quartata Yes
 
@quartata yes
 
12:52 AM
That sounds awful
 
@quartata Kinda??? It's Electron, which is Blink, but not actually Chromium
 
@quartata its actually really nice
gives you dev console
 
Is it written in JS then?
 
and the entire thing is written in js
@quartata ^
 
oh my no
 
12:53 AM
@quartata most of its actually coffeescript which is even better
 
How can it even access files
 
Now I feel good about getting pissed off and abandoning it 20 seconds after trying Atom.
I must have good taste.
 
Thanks, email!
 
This is horrifying I literally want to go to GitHub HQ and hit someone with a copy of learning vi and vim
 
12:55 AM
@AlexA. you might as well have phrased it "are you retarded?"
 
@aditsu Hahaha
 
I've had "write a text editor" on my TODO list for like a year...
 
@quartata its electron, not actual chrome
 
@Maltysen that changes nothing
 
12:58 AM
@quartata electron gives you native apis
also, you can write code in c++
 
who the hell thought "ok we're going to write a GUI desktop text editor so the first thing we're gonna do is write it in the worst possible tool for the job"
 
It does have pretty shitty performance though...
 
Does it crash if you open a several MB file?
 
It's very extensible, though
 
@RenderSettings its better than eclipse
 
12:59 AM
Eclipse is a full IDE. Atom is a text editor. [citation needed]
 
@RenderSettings It has plugins that make it more IDE-like
 
also, snippets
 
Try geany I guarantee you it'll do almost everything atom can do and absolutely kick its ass at performance
 
@quartata I used to use geany
 
@AlexA. I can't help but think this is going to end in a flamewar
 
1:01 AM
That's why it's an anonymous poll
 
@AlexA. none of the above :p
 
@aditsu Uh, okay. What's an option that isn't covered by those three? I thought that generally covered it but idk.
 
@AlexA. cannot vote on mobile pretend there is a yes vote
 
ok
 
@RenderSettings I would hope that there wouldn't need to be in today's society... :(
 
1:02 AM
@AlexA. one option is "I don't care either way"; my answer is close but somewhat more specific than that
 
Oh, okay
 
The argument I see most often about same-sex marriage is people not recognizing that legal marriage and religious marriage are completely different. When the supreme court ruled it unconstitutional for states not to recognize it, my step-dad got angry about the gubmint forcing churches to marry gay people or they go to jail.
It's just about marriage licenses, so they are spouses on legal forms and can take over medical decisions and other important stuff :(
 
that also factors in my answer ^
 
That's not so far from the real cases of lawsuits against people who don't want to provide marriage-related services.
 
@QPaysTaxes Ironic, given your username
 
1:05 AM
Does any (non-esolang) programming language use ^ for exponentiation?
 
@Downgoat Pyth :P
 
@Downgoat Julia
 
@Downgoat Haskell
 
Mathematica, Matlab...
 
Haskell has at least 3 operators for that, one of them "^"
 
1:06 AM
@Downgoat R
 
@Downgoat Lua
 
@Downgoat Pytek
 
@QPaysTaxes It meets our definition
 
Very carefully
 
@QPaysTaxes It has for loops and if statements
 
1:08 AM
33
Q: How to produce a list of prime numbers in LaTeX

kevinI would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it should not be that hard, but I cannot seem to program it.

 
Lame, uses builtins.
 
29
A: How to produce a list of prime numbers in LaTeX

David Carlisle \documentclass{article} % \makeatletter \def\primes#1#2{{% \def\comma{\def\comma{, }}% \count@\@ne\@tempcntb#2\relax\@curtab#1\relax \@primes}} \def\@primes{\loop\advance\count@\@ne \expandafter\ifx\csname p-\the\count@\endcsname\relax \ifnum\@tempcntb<\count@\else \ifnum\count@<\@curta...

 
\make a t letter?
 
Why does he have to tell it to relax so often? Maybe there's a less neurotic interpreter.
 
I didn't even realize that the link I got from Google pointed to a specific answer.
 
1:12 AM
user image
5
 
@feersum Ah yes, the INTERCAL approach to compiler appeasement
 
@aditsu Ugh, latex puns >:(
When I first started learning LaTeX, I decided to look up what this amazing font looked like on Google. So I searched "latex" and clicked on "Images". I was in my school library at the time.

*Oops*
 
well, those images do look amazing :)
 
@aditsu ( ͡ಠ ͜ʖ ͡ಠ)
 
1:22 AM
._.
 
🐦_🐦
oh btw, I saw something amazing today :)
user image
2
 
stars from a Mac
 
@aditsu [vigorously stars]
 
0
Q: What's the missing column/row? (GCJ 2016-1A rankfile)

Filip HaglundThere is an N x N square of numbers. All columns increase monotonically from top to down All rows increase monotonically from left to right There is exactly one valid answer for each input. You are given 2N-1 rows of N numbers representing rows or columns in this square. The task is to find t...

 
@aditsu ಠ_ಠ
 
1:27 AM
@NewMainPosts heh, I should post the solution I actually submitted :)
done
 
Hey, do any of you JS people know how to do something with <script> tags with a specific type?
Can I just get it from the DOM?
Will the browser ignore it if it doesn't know the type?
 
@quartata :what do you mean?
yeah
 
OK, suppose I have a document with a script tag like <script type="text/perl">
And I want to read all such scripts and do something with them
I can just retrieve them from the DOM right?
 
const TYPE = "text/perl;
[...document.querySelectorAll(`script[type=${TYPE}]`)].forEach(script => {
     // do something with script
});
@quartata yeah,
 
All right, good.
 
1:42 AM
@quartata are you coding this in JavaScript? :D
 
Most of it is in C with Pepper.
I only need a little JS to glue things together
 
D:
>:U
 
(and only because I have to)
 
-1
That reminds me, I am really behind on Cheddar...
 
0
Q: Seeing questions that actually have this tag

catIf you go here and scroll to the bottom, you'll find this tag: braces. This tag is a synonym of balanced-string, and rightfully so, as is brackets. I can't seem to figure out how to see questions tagged with braces and brackets, though. (That is, assuming there are any, which the link above cer...

 
1:44 AM
@Downgoat Yeah, you're really not going to like it when you see what this is
 
:/
 
Let's just say in a couple months hopefully this'll be a thing:
sub onPress {
  $elementsByID["para"]->innerHTML = "Hello!"
}

$elementsByID["button"]->onClick = \&onPress
print "Ready."
 
@quartata what is pepper
 
eeewwwwwwww, PHP ;_;
 
@Downgoat Uh, this is clearly Perl
@AlexA. pNaCl's API
 
1:49 AM
eeewwwwwwww, Perl ;_;
I thought perl was good
 
I don't see what's wrong with this?
 
I didn't think it had PHP-bad syntax
 
@quartata what is pnacl api
 
Well PHP was just a modification to Perl initially...
 
1:49 AM
what's with all the $, \& and why ->
@AlexA. phosphorus table salt
 
@Downgoat \& gets a reference to a function
-> is how you access members of an object
$ is a funny char
 
what was wrong with .
 
@Downgoat That's no more illuminating
 
Not to be confused with Networking and Cryptography library. Google Native Client (NaCl) is a sandboxing technology for running a subset of Intel x86/x86-64, ARM or MIPS native code in a sandbox. It allows safely running native code from a web browser, independent of the user operating system, allowing web-based applications to run at near-native speeds, which aligns with Google's plans for Chrome OS. It may also be used for securing browser plugins, and parts of other applications or full applications such as ZeroVM. To demonstrate the readiness of the technology, on 9 December 2011, Googl...
 
It's Perl. Back then people didn't know how to write unambigious grammar parsers.
 
1:50 AM
@RenderSettings Uh, no.
 
yeah, that's actually complete bullshit but it sounds like it could be true :p
 
. is concat in Perl.
That's why.
 
Any suggestions for prettifying phondue-web?
 
@Doorknob Make the area where the text shows up more obvious
 
@Doorknob use Lato or a nicer font than sans-serif,
 
1:52 AM
@AlexA. The input box thingy?
@Downgoat What's wrong with the default font?
 
Whatever the thing is where you click a button and the text shows up
 
@AlexA. That's an input box; you're supposed to type stuff there :P
DOG :D
 
@Doorknob to... uh... ¯\_(ツ)_/¯
@QPaysTaxes +1 for dog :D
 
@Doorknob OIC
 
@ANerd-I might be because Java
you should use a better language
like Python
(that was a joke)
 
Anyone know to precisely resize a selection in paint.net? Like exactly double it horizontally and vertically?
 
@Downgoat ಠ_ಠ
 
@HelkaHomba write a shell script to reposition the mouse and all
@ANerd-I why the ಠ_ಠ
do you hate python? :(
 
@QPaysTaxes dne
 
1:57 AM
@HelkaHomba done?
 
does not exist
 
oh
 
@Downgoat ಠ_ಠ because I'm a pleb who knows like 0.2 programming languages, 0.19 of which are Java
 
python is extremely easy to learn (which is why I'm guessing a lot of people here like it)
You can learn Python in under the time it takes to write a Java Hello, World program
 

« first day (1911 days earlier)      last day (2933 days later) »