« first day (1875 days earlier)      last day (3264 days later) » 

KILL YOUR FOUNDERS SUCCEED TO THE THRONE EMPIRE, EMPIRE, EMPIRE
0
Q: Sort items based on dependency

Hand-E-FoodGoal Sort a list of items ensuring that each item is listed after it's specified dependencies. Input An array or array of integers, where each integer specifies the 0-based index of another item that this item must come after. The input may be an array or string or anything else human readabl...

FINE IF YOU’RE GOING TO BLOCK ADS WE’RE GOING TO PUT UP A PAYWALL! (OH FUCK I HOPE THEY DON’T CALL OUR BLUFF)
I'm sorry I can't stop posting them
ಠ_ಠ
IF JAVASCRIPT IS SO GREAT WHY DOES IT NEED JAVA TO WORK, GENIUS?
03:02
roflmao
twitter is beautiful
oh no, I have to do work but I'm stuck in here D:
PHP needs P to work too
.@codinghorror COULDN'T HAVE SAID IT BETTER MYSELF SOME PEOPLE ARE JUST EVIL TO THE CORE AND THOSE PEOPLE ARE ALWAYS JAVASCRIPT DEVELOPERS
Whom is he following?
YOU'VE DONE SOME GREAT WORK HERE I CAN'T PAY YOU FOR IT NOW BUT WOW IT'S GOING TO LOOK GOOD ON YOUR RESUME
03:04
@AquaTart ಠ_ಠ
Oi, don't shoot the messenger.
@PHP_CEO ಠ_ಠ
Better.
@AlexA. @Doorknob @Dennis what is the minimum chat suspension time?
30 minutes
03:05
30 min.
(I think)
1 day is for account suspension.
@Vihan The formula is actually represented as Y=x*0
OK, I promise this is the last one.
WE SPENT 18 MONTHS MIGRATING FROM A MONOLITH TO MICROSERVICES RESULT: - GITHUB GETS PAID FOR MORE PRIVATE REPOS - FIND/REPLACE IS HARDER
OK, I lied. Here's one more.
THE DAYS ARE LONG, BUT THE DECADES ARE SHORT UNLESS YOU’RE WRITING JAVASCRIPT IN WHICH CASE BOTH DAYS AND DECADES ARE NaN
@Vihan I think a kick-mute begins at 1 minute.
Minimum for manual suspension is 1 hour.
03:08
The mods/ROs can just move crap out of the room anyway :p
@Dennis kick-mute?
oh, there's no ROs here. huh, TIL
All the ROs here are also mods.
Do we have a challenge to detect if the entire input is in all caps?
03:09
@CᴏɴᴏʀO'Bʀɪᴇɴ no because if there was one it would be downvotes a lot because it's very trivial
@Vihan More a slap on the wrist than an actual suspension.
@Vihan I need to make an upper-case related challenge so I can have my sock chat
can a kick-mute time be changed to 30 minutes-ish?
No.
@CᴏɴᴏʀO'Bʀɪᴇɴ what does an upper-case related challenge have to do with that?
03:10
how about you just close the tab
@Dennis D:
@Doorknob it always reopens somehow....
Uhhh I take it this is your sock @PHP_CEO
Self-control, an aspect of inhibitory control, is the ability to control one's emotions and behavior in the face of temptations and impulses. As an executive function, self-control is a cognitive process that is necessary for regulating one's behavior in order to achieve goals. A related concept in psychology is emotional self-regulation. Self-control is like a muscle. In the short term, overuse of self-control will lead to depletion. However, in the long term, the use of self-control can strengthen and improve over time. == Research == === Counteractive === Desire is an affectively cha...
03:11
@PHP_CEO ಠ_ಠ
@Doorknob I am not good at that.
The fact I use JavaScript should be a clear indicator
Just went to check on my Steam downloads and noticed this:
holy shit my internet is good
O_o
3.5 billion gigabits/sec
"good"
> good
03:14
decent
satisfactory
not bad
acceptable
03:16
.@codinghorror COULDN'T HAVE SAID IT BETTER MYSELF SOME PEOPLE ARE JUST EVIL TO THE CORE AND THOSE PEOPLE ARE ALWAYS JAVASCRIPT DEVELOPERS
Can you unprotect a question for me for a minute?
Which and why?
13 mins ago, by Aqua Tart
.@codinghorror COULDN'T HAVE SAID IT BETTER MYSELF SOME PEOPLE ARE JUST EVIL TO THE CORE AND THOSE PEOPLE ARE ALWAYS JAVASCRIPT DEVELOPERS
@AlexA. @PHP_CEO @Vihan ಠ_ಠ
stahp
fucksumo
03:17
The prime number one and so I can get rep
on my sock
@EasterlyIrk PHP_SUMO is an actual user
who created @PHP_CEO
he is now in the list
@CᴏɴᴏʀO'Bʀɪᴇɴ roflmao
03:17
@CᴏɴᴏʀO'Bʀɪᴇɴ Why not just answer a different challenge?
really?
@AlexA. Suggestions?
I'm guessing my internet sucked so bad it underflowed...?
@CᴏɴᴏʀO'Bʀɪᴇɴ Try the palindrome one
@CᴏɴᴏʀO'Bʀɪᴇɴ Uh... any that aren't protected? ¯\_(ツ)_/¯
30
Q: Shortest code to determine if a string is a palindrome

Andrew GrayA palindrome is some string that is spelled the same way both backwards and forwards. For instance, 'Eva, can I stab bats in a cave?' is a palindrome (EVACANISTAB | BATSINACAVE) For this code golf, using the language of your choice, determine if a given string is a palindrome or not. Edge Case...

oh wow that's easy in Brachylog
s/ in.*//
03:22
@Dootknob ok but in this case it's especially easy
Although stripping the whitespace is a little annoying
I'm curious to see how much more productive I am when I leave this room...
@CᴏɴᴏʀO'Bʀɪᴇɴ @PHP_CEO better only answer in PHP.
> Dootknob
doot
I just noticed I typed Dootknob. wtf
0
A: Shortest code to determine if a string is a palindrome

PHP_CEOJolf, 13 bytes, NONCOMPETING THIS VERY FINE LANGUAGE POSTDATES THE CHALLENGE. pEρI"[?.,!]"E THIS IS A MIGHTY-FINE SITE YOU HAVE HERE. THE ONLY PROBLEM IS THAT THERE ISNT ENOUGH PHP. pEρI"[?.,!]"E pE LOOSE PALINDROME TEST (IGNORES CAPITALIZATION AND SPACES) ρI"[?.,!]"E STRIPP...

03:25
ninja'd
awww fSIxRT,Yk is cleverer than f>xYTxkT but a byte longer
@CᴏɴᴏʀO'Bʀɪᴇɴ fails for things with control characters; the challenge specifies that those must be ignored
bingo!
@AquaTart Like what?
03:28
0x00 to 0x19
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm very tempted to delete that as very low quality.
Have you noticed the caps?
@Dennis +1
I fixed it, that was inappropriate.
03:30
Better, but still a lot of caps.
Egad I'm an idot
It has 20 rep, why can't it chat?
Caching?
Oh, and I fixed it all the way
Well, I gotta go
bai
03:47
Jon Skeet has more reputation on Stack Overflow than our entire first page of users combined. O_o O_o O_o
(852,126 vs. 813,391)
Lies!
Jon Skeet, Reading, United Kingdom
311 2 6
> on Stack Overflow
That doesn't count.
\o/ I have more reputation then Jon Skeet
finally.
03:51
roflmao
Why is "mao" italicized?
Rofl, Chairman Mao
Rofl, Chairman Mayo
I think Peter displayed amazing courage/stupidity when suggesting a golf for Mr. Skeet's code.
03:57
What does Array#name mean in the context of programming documentation?
"The context of programming" is very broad
@ANerd-I I think Peter displayed knowledge and helpfulness in suggesting a golf. Just because Jon Skeet is a SO deity doesn't mean he isn't approachable or receptive to feedback. ¯\_(ツ)_/¯
@CᴏɴᴏʀO'Bʀɪᴇɴ it means Array's name I tihnk
@CᴏɴᴏʀO'Bʀɪᴇɴ name method or property on the Array class
At least that's how Ruby's docs do it
@AlexA. I'd link to the Jon Skeet meme about his code editing itself but it appears that I failed to indicate that I was being facetious
03:59
So, if there was a function reverse that reverses an array that was a method, it would be referred to as Array#reverse?
@CᴏɴᴏʀO'Bʀɪᴇɴ what's wrong with Array.reverse
@CᴏɴᴏʀO'Bʀɪᴇɴ Could be, I suppose. Depends on the language.
@Vihan Because there's no such thing.
@AlexA. Cool, thanks
That's kind of a Ruby thing.
That's the only place I've seen it, yeah
04:02
I see it in lots of places
Java, C++, etc.
orlp?
hahaha
Any lang-reqs?
04:14
user image
4
Looking through some old microprocessor magazines my grandfather's brother has, and an ad for APL on Z80 processors was in it.
@AlexA. ^^^^
That's really cool!!
What a neat find
It's funny to see that it was competing with Fortan and Basic back then.
> Write finished applications software in a fraction of the time
04:17
and COBOL
I've got 10 other magazines to go through, and a bunch of TI calculators to play with.
Yeah, writing APL is short, but managing production APL code sounds like a literal nightmare.
Showing some APL code and saying it would take a lot more code to writ it in another language.
BYTE - the small systems journal, Volume 4 Number 4, April 1979
Haha, I love Max Headroom
> If they think I'm endorsing car accessories, they've got another dipstick coming.
> I've got letters from fan-belts saying [...]
 
3 hours later…
07:02
@CᴏɴᴏʀO'Bʀɪᴇɴ You forgot Remix OS, and I was gonna vote for OSLinux (assuming it's a rethemed Mac/Linux)
Also.
Does anyone have a somewhat complete shareable folder of mac icons?
07:16
-1
Q: Check if numbers from multiple arrays sum up to given numbers

hell yeahI was trying to do this question: Given three integers: GA, GB, and GC(which represent apples, oranges, and bananas respectively) & N lines each consisting of three integers: A, B, and C, which represent the amount of apples, oranges, and bananas in that food, respectively. Check i...

ಠ_ಠ
Which functions are the most used in Julia?
^^^ may or may not be closed, I didn't check. Anyways, the post is locked right now.
07:32
@CᴏɴᴏʀO'Bʀɪᴇɴ Depends, mutable = properties can be changed, mutator = setter, presumably mutate means using the setter to assign a new value
07:44
@Dennis Apparently, many CS graduates can do hardly any actual programming
2
Q: How to abuse the Association Bonus

Issa ChanziI figured out a method to abuse the Association Bonus, however I'm unsure whether or not this is a serious issue. Are there anti systems in place that prevent this? Prerequisites: 1 account with the Association bonus, and 1 account with 100 reputation on a different site. Step 1: Creat...

08:01
0
Q: Make a Snake Parser!

Solver(This requires you read @chilemagic 's amazing "Take a break to make a Snake!") For an overview, snakes look like this: >>>v ☺ ^ v ^ >>>^ v ^ v ^<<<<<<<<< It uses the directions WASD to show directions for the snake, from the tail. Given that the snake doesn't backtrack o...

08:50
Monking @Quill!
Hey there!
How's it going?
nm, thanks for asking!
09:26
@Lynn What
@Lynn Congrats for paving the way for a boring (but still interesting) cat program. ಠ_ಠ Link?
0
A: Simple cat program

LynnLazy K, 1 0 bytes As CatsAreFluffy pointed out, the empty program has the same semantics as the program I. From the grammar: Program ::= CCExpr CCExpr CCExpr ::= CCExpr Expr (CCExpr Expr) | epsilon (lambda (x) x) Old e...

@Lynn Really lazy.
09:41
Yep. Back in the old days, we just called that a "function". You kids today with your crazy "namespaces". Hey, get off my lawn! <shakes fist> — Vagrant Jun 10 '10 at 15:41
I still don't know what to program for zyabinVI.
09:56
What is zyabinVI?
Is there a way to view the website?
However, there's barely any content here.
D'oh.
I think I could have guessed that.
So what do you plan doing with this site?
sekrit -> c-krit
@flawr Obviously, add content - most importantly, links to main projects of the organization.
10:00
So what does this organization that comprises only you actually do?
@flawr Currently nothing.
That's not very much.
Some organizations even have a purpose.
So perhaps that is something you might work on first=)
Other than that, does an organization has participants or members?
@flawr Only me. :/
That was a general question about the wording=)
@flawr Also, thanks for the joke! I added it to the org's GitHub Pages website and now you became the second member of the org! :D
Your GitHub username should be flawr, yes?
@flawr should receive their invite in the mail in a few minutes. They start with read access to all repositories until the week ends.
Don't forget to accept the invite!
10:20
Omg I'm forced to join a organization with dubious purposes. Isn't that a violation of the UN human rights convention?
PS: I don't know github. I only use it to star projects and for gists.
Okay, you may ignore the invite, but you only have until tomorrow until it's cancelled.
@flawr Orgs are insanely useful to host a bigger project that spans multiple repos. You get one extra site (from github.io) and you can add other services (like GitBooks) using the name of the orga, and not your own nickname ;)
Oh, I did not get that those are structures of github itself!
GitBooks sounds cool
Except tha tthere is a "git" in it^^
Does anyone here know C++?
@flawr Me, a bit, and there will almost certainly be someone good at C++ here.
Well I am a total newb.
I have a file main.cpp
#include <iostream>

using namespace std;


#include "question3.h"

int main(int argc, char *argv[])
{
cout << "Hello World!" << endl;
return 0;
}
And a header file "question3.h"
#ifndef QUESTION3_H
#define QUESTION3_H

#include<string>

bool isSubstring(string a, string b);



#endif // QUESTION3_H
And I get an error that "stirng was not declared in this scope"
Pointing at the "string a"
Any idea why?
Use std::string
Also, using namespace std; after your includes
10:41
@MarsUltor I do have that in the 'main'
Do I really need the #include<string> then?
@flawr Then using std::string instead of string should be enough.
@flawr No, string isn't a file.
Strangely I was told to write #include<string>
Well thank you very much so far!
Ok, waiting=)
Wait, apparently you need it
It may work without the include, but use it just in case (otherwise it will probably only work in certain conditions).
10:43
It seems to work perfectly without.
@flawr Link. iostream may be importing it for you, but you should include the #include <string> just to be sure it is always included.
Ok, Ill do that then.
Thank you very much for your help!
I'm attending a lecture that teaches c++, but I am overwhelmed by all the things you have to consider...
I'm trying to learn as little C++ as possible until I want to/need to for any reason. :P
Up to now I tried to do the same=)
10:53
@MarsUltor Strangely when I write double foo(string word="word"){return 1.0;} it compiles =/
@flawr Um. Maybe you can remove the std:: if you put using namespace std; in the header file instead?
@flawr Actually
Ok I think I just do not get what is processed in which order.
@flawr Headers included are pretty much added to the top of the file - any includes in them will also be includes in the .cpp file, and any public functions in them can be accessed by the file.
but in the coresponding cpp file I have to write #include "headerfile.h" ?
11:01
I could never figure out C++
@flawr But always include namespaces in headers, because it's a good practice.
@MarsUltor Well, CR specifically states not to do that...
@LegionMammal978 ?
@LegionMammal978 Yeah
Code Review
Oh ok, now I do include

#include <iostream>
#include<string>
using namespace std;

in every header file and it works.
11:02
@LegionMammal978 ^^^^^^
@flawr Not a good practice
1 min ago, by Mars Ultor
@flawr But always include namespaces in headers, because it's a good practice.
I don't like some of CR's practices.
The link says so, and so does CR.
Well now I am really confused. What should I and shouldn't I include in the headers?
@CᴏɴᴏʀO'Bʀɪᴇɴ Some. But some of them are common practices used by everyone in general as well.
And what should be included in the main?
11:04
@flawr Just don't use std
@flawr Don't include using namespace in the headers
@MarsUltor That's true, but they suggest using multiple var statements for variables in javascript, which is beyond ugly.
> One side note: it is bad manners to put "using namespace" declarations in header files. It forces all includers of that header file to use that namespace, which might result in naming ambiguities that are hard to fix. This practice is called "namespace pollution." Instead, always use the fully prefixed names in header files (std::string not string) and save the using declarations for the source files.
@CᴏɴᴏʀO'Bʀɪᴇɴ Ugly? Ugly?
var x = 3;
var y = 6;
var z = 9;

var x = 3, y = 6, z = 9;

var x = 3,
    y = 6,
    z = 9;
11:06
@CᴏɴᴏʀO'Bʀɪᴇɴ But say you have something like
var x = 5;
var y = x * 67;
versus
var x = 5, y = x * 67;
What's wrong with that?
@LegionMammal978 No
var x = 5,
    y = x * 67;
@CᴏɴᴏʀO'Bʀɪᴇɴ It gets confusing for people who have ever used statically-typed languages
I wasn't aware I needed to appease the static-type-users...
@LegionMammal978 JS is not aimed towards statically-typed language users.
Well it's what I've got '_'
CR isn't perfect, and can have bad suggestions.
Especially since it is a scripting language. It is meant to be relatively fast to write, and having static types usually doesn't help writing speed.
I know, but it takes longer to read
And that's what CR is about, right?
For people who are used to static-typed languages.
JavaScript programmers can read JavaScript fine.
11:11
Let me find a better example
Found one, from my (broken) Spacewars bot
var x = game[info.team + "_x"],
    y = game[info.team + "_y"];
var dir = game[info.team + "_rot"] * Math.PI / 180,
    delta = Math.PI / 36,
    g = info.grav(x, y, game);
var l_nx = Math.round(Math.min(Math.cos(dir + delta)
               * game.engineThrust, game.speedLimit)) + x + g[0],
    l_ny = Math.round(Math.min(Math.sin(dir + delta)
               * game.engineThrust, game.speedLimit)) + y + g[1],
    s_nx = Math.round(Math.min(Math.cos(dir)
               * game.engineThrust, game.speedLimit)) + x + g[0],
It makes sense (at least to me) to split it into multiple declarations
Yes, of course. What I have a problem with is not that but using a var statement for each variable.
It also gets annoying if your editor indents it to an undesired level (bringing it out of alignment)
> This is supposed to go in the direction of the least obstacles. However, knowing my JS coding skills, it will probably fail is failing horribly for the first twenty iterations.
@LegionMammal978 It's easier on the eyes, you don't have var in the same place every single line. If tie code is formatted well, it should be easy to tell where it ends. (well partly meaning enough line breaks)
Good spacing > multiple var statements
@LegionMammal978 Um. How?
11:19
That was my comment on the entire program :p
Bad spacing:
var x=3,y=x*3/4>>3,z=~y/z<<3|3^43;
















alert(x+y+z);
Good spacing:
var x = game[info.team + "_x"],
    y = game[info.team + "_y"],

    dir = game[info.team + "_rot"] * Math.PI / 180,
    delta = Math.PI / 36,
    g = info.grav(x, y, game),

    l_nx = Math.round(Math.min(Math.cos(dir + delta)
               * game.engineThrust, game.speedLimit)) + x + g[0],
    l_ny = Math.round(Math.min(Math.sin(dir + delta)
               * game.engineThrust, game.speedLimit)) + y + g[1],
    s_nx = Math.round(Math.min(Math.cos(dir)
               * game.engineThrust, game.speedLimit)) + x + g[0];
(I think.)
Today is Friday.
Fixed.
@CᴏɴᴏʀO'Bʀɪᴇɴ stereospaced?
11:22
@CᴏɴᴏʀO'Bʀɪᴇɴ Golfing:
var x = 3, y = 0, z = 40;
alert(43);
Challenge: Find a context in which the two snippets are not equivalent
Or just alert(43)
alert=x=>x.
@CᴏɴᴏʀO'Bʀɪᴇɴ But you could use x, y, z afterwards
Context found.
@LegionMammal978 True, true.
Well, I have to go to school now.
But then neither snippet would alert anything
BAIII
(Sorry, seems like an interesting challenge.)
11:24
@LegionMammal978 What two snippets?
@LegionMammal978 Context?
@CᴏɴᴏʀO'Bʀɪᴇɴ < This one @flawr
@flawr Cᴏɴᴏʀ O'Bʀɪᴇɴ's "bad spacing" example vs. my golfed version
var x=3,y=x*3/4>>3,z=~y/z<<3|3^43;
alert(x+y+z);
3 mins ago, by LegionMammal978
var x = 3, y = 0, z = 40;
alert(43);
ಠ_ಠ
Spam
Lol, perhaps in the context where 3==4
But then neither would work
11:26
How does z reference itself?
I wondered every now and then what a programming language would look like where you could assign values to numbers.
@flawr Can't you do that in some languages?
I'm not aware of any
@flawr Well, in many you can reassign the default I/O functions
@MarsUltor Shtriped
11:29
@MarsUltor I mean, find two strings s1 and s2 such that s1+s2 is a valid JavaScript program and s1+<snippet>+s2 is a valid JavaScript program that, for some strings s3 and s4, the programs s1+<snippet>+s3+s2+s4 give different output for different snippets.
Am I clear now?
@zyabin101theHated Technically, Shtriped is using strings that resemble numbers as variables.
@LegionMammal978 No?
 
1 hour later…
12:48
0
A: Sandbox for Proposed Challenges

Stewie GriffinCreate an optimal guessing algorithm for a Diagonal Sudoku board optimization A diagonal Sudoku board is a special case of Latin squares. It has the following properties: The board is a 9-by-9 matrix Each row contains the numbers 1-9 Each column contains the numbers 1-9 Each 3-by-3 sub-region...

13:13
@EasterlyIrk I actually saw this already. :D Thanks.
13:45
g'morning m8s
@crayzeedude Monknoon!
13:59
@flawr I think you can in Fortran

« first day (1875 days earlier)      last day (3264 days later) »