« first day (886 days earlier)      last day (3429 days later) » 

15:00
monking
Hrm, the pinging didn't work. Have I been lied to on the internet?
Monking
16 tasks left in the backlog that need to be done before we go live... none of them are assigned to me.. :D
3
@ARedHerring #CouldHaveStayedInBed type of day?
@Mat'sMug No, I've finished all of the tasks that were assigned to me today.
Every day feels like that, though. Before coming to this company I always worked my ass off every day. But this company really exemplifies the whole "do as little as possible as efficiently as possible while looking like you're doing more than you are".
@ARedHerring this atmosphere may be funny, but over the time it was rather dissatisfying for me personally.
15:08
If you have working code, I'd recommend you take the whole procedure (heck, even the whole module) over to Code Review, where "is this the best/cleanest way of doing this?" is precisely what the entire site addresses. — Mat's Mug 40 secs ago
0
Q: getting products by category, price etc

rigbyI would like to know your opinion on following things: 1) is Set a good choice for getting products. what are drawbacks of set for this purpose 2) is it better to do smth like common.retainAll() or to get products through a request with WHERE to db. For now i do 3 requests in: getProductsByCate...

@Vogel612 Don't take my humour for complacency
yello
So, I was looking over the PHP documentation for constants
And I found this code snippet:
// This is valid, but should be avoided:
// PHP may one day provide a magical constant
// that will break your script
define("__FOO__", "something");
Notice the comment that includes may one day.
Made me laugh a little at how bad PHP is.
15:12
@ARedHerring oh so you're in the bitter state?
Why not relieve yourself by writing a small review? ~cough :D
@EthanBierlein I don't understand. What's a "magical constant"?
I don't know either.
@Vogel612 >: (
I'm in the "I like working here, but I don't see it lasting long" state.
PHP documentation is notorious for being unclear, or bad.
I don't feel challenged.
15:15
@ARedHerring s/dont'/don't
I would say that "magical constant" essentially means the docs are warning you not to make globals using define.
@EthanBierlein thanks, websockets are iffy on this machine so its hard to edit
lol, try using phone
mobile chat is horrible, and it sucks even more if you're not connected to a wireless network.
on iOS the chat from the SO app opens up Safari, lol
Same here.
I think SE tried to do an in-app browser, but they abandoned it.
actually that abomination still is in there
15:17
that's it I'm creating a SF&F account
it sometimes shows up.
Mega Man 2 actually. Gosh I played that game. Just looking at the picture makes the 8-bit song ring in my head. — Mat's Mug 1 min ago
I could have answered that question from the HNQ sidebar
@Mat'sMug Make it an answer.
just, do it!
well the existing answer is correct
15:18
make your dreams come true back
I merely joined to post that comment (and upvote it)
We should get some of our great Swift coders to make an app for 2nd monitor/chat rooms on SE...
-pokes @nhgrif-
there's ChatSEy
^^
Isn't that just for android though?
it's a collection of stylesheets.
shouldn't be too hard to get into iOS territorry.
probably the owner just doesn't want to pay
15:22
@ARedHerring What kind of thing is this chat anyway, some IRC chat, or a feed?
this here?
Yea
it's a mess of websockets, REST and js
it's a mess of websockets, REST and js
when you join a room, js (actually jQuery I think) makes a request to a REST api, that gets you the last X messages. Then you get subscribed to a websocket that gets you new messages
15:24
0
Q: Toggle form in a div under a li

KailiI have a form I would like to toggle on demand. On this example, the aim is just to show up the form when I click on the icon. Here is the JS I use : <script type="text/javascript"> $(document).ready(function () { $("ul").click(function (evt) { if(evt.target.tagName != 'UL') ...

0
Q: Table validater function

James HealdI've been working on a function which allows me to validate a table recieved through my REST API: public function isTableComplete($table, $requiredKeys){ if(!isset($table)){ return false; } foreach ($requiredKeys as $field) { if(!isset($table[$field["name"]]) AND $fi...

sending messages is a POST against a REST api
Zak
Zak
@Mat'sMug one of the random factoids I know: The original sonic for N64 made such efficient use of memory that they still had 2/3 of the cartridge left over. So they blew the whole lot on a (then astoundingly high) quality intro soundtrack
What kind of authentication?
@Mast cookie-based with a nonce for every chatroom you're in
Thanks
We could make it a challenge some day.
15:26
some day?
Too busy with old ones now
there is existing implementations in python, c#, js, ruby and java
@Zak wasn't Sonic Sega's baby?
Zak
Zak
@Mat'sMug yep
Yeah "the original sonic for N64" is a confusing mistake there.
Zak
Zak
15:27
hmmm. Now I'm confused.
BEcuase I distinctly remember playing sonic as a kid and could've sworn it was on an N64
@janos That's too bad, I thought youw orked at a super cool company :P
@Zak Sega Genesis maybe?
Genesis/Master System/Mega Drive
I forget which had the original one but it predates N64
@Mast I was sure this was IRC..
@ARedHerring I knew it was something custom, just no idea how custom.
15:32
Genesis was Sega's 16-bit console, rivaling the SNES
Man, I have never touched one of these consoles. Ever.
None? You poor soul.
I played on a dreamcast once
s/poor/young/
Well, I'm only 14.
So, I think that's understandable.
15:34
@EthanBierlein NES/SNES was my entire childhood!!!
until last year I hadn't touched a N64 either.
I'm pretty sure my first game console is older than you, @EthanBierlein :)
4
@ARedHerring lol
Oh god. You're a 2000-er
And that's a problem why?
15:35
You're the age I was when I started programming, and I hadn't even heard of CodeReview back then.
You'll go far :P
I started programming when I was about 11-12.
I didn't find Code Review until about a year and a half ago.
Zak
Zak
I hadn't realised you were that young. I wish I'd started programming at your age.
It's never too late to learn ;-)
Unless you're 90 and you have severe arthritis
Zak
Zak
Technically, I did write some HTML when I was 12 (I disagreed with our school implementing internet filters so I wrote enough to get around it).
@Zak iFrames?
Zak
Zak
15:38
nope, just enough to build a website frame, embed some video games off the internet, and run it locally off the school computer.
lol. even better
Zak
Zak
Then I spent 8 years being interested in Maths and Economics and Politics and Finance and various other things :)
Zak
Zak
@ARedHerring ?
15:39
@Zak Those are good things to be interested in.
@Zak commenter commented on a 2 year old SO question with an accepted answer with a link to a CR question
What you're looking for is our sister site Code Review where you can post your code for review. For publishing you may want to look at github.com / sourceforge.com or similar sites — Vogel612 24 secs ago
Zak
Zak
@ARedHerring Ah, right
It's totally fine. As long as java will allow you to concat the value into a string it works. The 5 is just an example. It just needs to be a char sequence when passing it into .replace(). If the .replace() is your hangup you could declare the sql string after you have the values from your webservice as String sql = "Some string"+value1+","+value2; and so on but the .replace makes the structure of the sql string more understandable for later codereview. It also ensures you dont have to worry about excaping single quotes in the sql string. — E_Denlinger 40 secs ago
Zak
Zak
@EthanBierlein Aye :) Programming and computers have always been a thing I "got", but had never gotten seriously involved with.
Until recently anyway :)
15:41
Nice. I actually didn't do much with computers until my father got a computer for my whole family when I was 9.
Of course, I was 9 then, so I would have rather been running around in the "outside" rather than using a computer.
While the question in it's current form is significantly too broad for this site, you may find help on our sister site Code Review. If you post there, please include a full description of the problem statement, and only do so, if your code actually works as it should :) — Vogel612 8 secs ago
Zak
Zak
I think 9 was about the time I realised that I don't do people very well. So it was books for me :) and Video Games. I finished Duke Nukem 3D when I was 10
why is there so much CR material on the SO "needs answers" tab?
I tried to play that game once
It was way too difficult for me to play it for more than 30 minutes.
Zak
Zak
15:44
Well, it did take me a year or 2 :)
@EthanBierlein have you played Dark Souls? if yes, please compare
@Vogel612 Never
Zak
Zak
And I did have to cheat. Once.
I'm still convinced there's no way to do that part without cheating.
I have something like 20 hours of playtime and I still didn't get through the third boss...
Although I do plan to play dark souls at some point. A few of my friends have and they've said it's a good game.
15:46
if you don't count the first boss, that is
CSUKDNPY@SAFELPTP294 ~/
$ git gud
@ARedHerring wot
;-)
git gud. as in, get good
is there a nice way to ask a bad programmer to please never code Angular again?
lol
15:49
@ARedHerring Just explain why they shouldn't use it, and provide some evidence.
@EthanBierlein "Because you're terrible" is probably not good enough evidence, right?
They may be biased and keep using it, but that's about all you can do.
@ARedHerring Probably not.
This code is like an italian dish.
My knees are weak, my arms are heavy, there's vomit on my shirt already, code is spaghetti.
Oh god, are they using goto for flow control?
that would be a marked improvement
15:51
Or is angular just that hard?
Angular is not hard.
like every other framework, it is only hard if you try and fight it
The thing I like about Angular.. and React.. is that when you start to struggle to do something, it's probably because you are doing it wrong and the framework is telling you to re-evaluate your decision.
Well, bbl
Apparently, this developer never seemed to learn that declaring a variable in a global service and then watching that variable for changes through $scope.$watch was a bad idea.
cya @EthanBierlein
Gotta go back to school work
This might be better over on codereview.stackexchange.comj08691 43 secs ago
Code Review is a newer site than Stack Overflow. The question you refer to was from '12, which, if I remember correctly, was prior to CR's existence. We don't transfer historical questions but instead try to direct them as they're asked. There are many questions on SO that don't meet existing criteria for being on-topic, because the community has closed loopholes and/or decided things should work differently, and spawned new interest-oriented groups. That old questions exist isn't justification to do things the old way. — the Tin Man 47 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comAndreas 17 secs ago
15:56
@Duga Ew.... OP is creating lots of DOM elements + moving them manually using javascript every 40 milliseconds.
That feeling when all of your tests go flawless except for one.
0
Q: Python funct. with lots of nested loops and validation

JonBThis function has become a bit of a mess, I am afraid that I could be going over board here. The validation part is mostly with optional parameters, my concern there is that I might by missing a validation! Any help input would be appreciated. def stca_list(aircraft1=None, aircraft2=None, t_sep=...

@Andreas Please vote to close as too broad. "Belongs on Code Review" is not a valid close reason. — Ethan Bierlein 17 secs ago
So much for going back to school, @EthanBierlein :P
shh
It's still passing time
16:00
@theTinMan while this question may actually be better off, people over at Code Review really dislike it when questions are closed with that reason, because it's blatantly wrong. Questions aren't off topic because "They belong somewhere else". It's the other way round: Questions need to be off topic first before you can consider moving them to a different site. In this case closing as "Primarily Opinion Based" or "Too Broad" are more applicable — Vogel612 25 secs ago
@Duga @EthanBierlein The question reads like a feature request, I'm not sure we should want it here.
@Mast it more looks like a refactoring request, which I would consider on-topic here. I don't think that the question is off-topic for Stack Overflow though
@SimonForsberg A very specific refactoring request.
0
Q: Deitel Java exercise 6.30

NateI missed points for putting implementation in the driver class, rather than having the driver class only make calls methods in other classes. I'm not sure how to move the implementation outside of the main class. Suggestions welcome! /* *Deitel Chapter 6 Exercise 6.30 */ package guess; import ...

@Mast which is exactly why I don't think it's off-topic for SO.
16:08
@SimonForsberg I don't disagree with it being on-topic there. I just don't think it would be a good fit here. Sure, it's on-topic. But I've seen that phrasing before and in my opinion it doesn't make for good CR questions.
I can see why it was suggested to be asked here, the code could use a review. I have left a note stating that I don't think it's off-topic for SO though.
Yay for mod notes.
0
Q: general questions about basic vb.net class?

RoseI'm trying to learn more about object oriented programming and I have a few questions about the class below I'm working in Visual Basic.NET My questions are.. 1) Is there a better place / way to show the MessageBox.Show 2) I'm being forced to use a single Oracle Connection, in my sample cnn is d...

0
Q: retrieving a list, by iterating through a list

rogerdeuceI'm using VB.Net, MVC 5, EF 6, and Linq. I have a list of Integers (category attribute id's). I need to create a second list of String (values). There will be one string for each integer. I am currently accomplishing my task like this: Function getValues(catAttIDs As List(Of Integer), it...

16:25
possible answer invalidation by TopinFrassi on question by TopinFrassi: codereview.stackexchange.com/posts/106079/revisions
@SimonForsberg I updated my question about the maze, I hope it is clearer now!
output[it]+=ascii_rows[it][(length*ascii):length*(ascii+1)]
IndexError: list index out of range
Darn...
16:45
Oh.
Yep, I wrote something perfectly unreadable. Time to turn it into a CR question.
Zak
Zak
17:04
Apparently, @shog9 disagrees with my Meta-Meta answer.
@Zak where?
18
A: The Power of Teams: A Proposed Expansion of Stack Overflow

ZakI think these are all good ideas, except team Q&A It may work for things like Open Source teams, but for anything even vaguely corporate, I foresee team questions falling into the following categories: Technical questions about [company]'s processes: Almost certainly confidential Q: "Team Goo...

Don't sweat it @Zak, there will always be people who disagree.
Sometimes those are moderators, yes. Shit happens.
On discussion meta's, that's not a problem.
Zak
Zak
Oh sure, I just don't usually get to come into contact with such celebrities
Shog is a really nice person
and his meta answers are always worth a read
very approachable in chat, if he's around
usually stuck in work knees deep
Zak
Zak
You know, if it's only for SO, we could still make TEAM CODE REVIEW
17:14
@Zak What would we do there exactly, review code?
We got our own SE for that.
pair review code that should have been pair programmed ;P
For questions about improving existing, functioning code, visit the Code Review SE But be sure you ask your question in such a way that it remains on-topic. — Trobbins 10 secs ago
Beat Minesweeper Expert in 19 min 40 sec.
Zak
Zak
@Hosch250 ooh, Minesweeper
Now I'm going to see how often I can get blown up on my second click.
Zak
Zak
17:20
Challenge Accepted
the first one anyway
Pretty easy.
Sometimes, it isn't possible to know, though.
Zak
Zak
those are always the worst
I usually make a couple random clicks at first to try to clear the board some.
Zak
Zak
I generally click until I open up an area of some size
then just go from there
0
Q: How To Refactor This If Statement?

SoursopTreeI have the following php if statements that I want to refactor to prevent duplicate if: $show = array(); // Initial Value $show[$id] = $id; // On if($switch == "on") { if(isset($switch['home_too'])) { unset($show[$id]); continue; } if(isset($s...

17:27
(I think my record is about 5 minutes btw)
(with middle click allowed)
lol
Zak
Zak
middle click?
@SimonForsberg 10/10 would watch
so... do I need to make a Team Rubberduck now?
Zak
Zak
17:33
@Mat'sMug YES
> Thanks for signing up for the private beta. We will notify you when the beta is ready.
first time I sign up for a private beta
0
Q: User auth class and security

daygloinkJust curious if my authentication is secure enough, really. Also wondering if I should ditch the secret variable and just use password everywhere instead. Note: the method logic must remain seperated because the same User object will have CRUD methods added at a later date. The table structure:...

Damn you people vote quickly. One of these days I'll probably get reputation for an answer that I haven't posted yet...
9
@SimonForsberg and Jamal will have edits for it, too
6
Zak
Zak
17:54
I just went and found @Jamal's edit stats. 19,011 and counting.
which works out to slightly more than 20/day
also means at this rate, he could easily end up with more edits than rep.
@Zak I think he gets more than 20 rep/day though
Zak
Zak
ish. Over the last year, he gained about 7k rep and (assuming uniformly constant edit rate) made about 7k edits.
if you assume a continued slowing of his rate of rep gain, and that his edits are weighted more towards recent history than when he first joined, then he could easily be gaining edits faster than rep.
18:10
0
Q: Write a function which take a node in rootA and finds a clone node in other tree

brownmamba O O / \ / \ O O O O /|\ /|\ O O O O O O Assume two DOM trees with roots: rootA and rootB. rootB tree being a clone of rootA tree. Write a function which take a node in rootA and finds a clone node in other tree. I was asked this as an interview...

0
Q: Return the last digit of a number

Tony Jpublic static int lastDigit(int a) { if (a >= 0){ a = a % 10; return a; } else { a = a % 10; return (a * -1); }} This is my solution. The course hasn't taught if else yet, so I'm wondering if there is a way to do it without the if else. public static int lastDigit(int a) { a = a % 10; return a...

18:35
@SimonForsberg I think this goes hand-in-hand with @Jamal editing questions before they exist in the (near) future.
Although you star things faster than you vote.
(which is a good thing)
I haven't thrown any stars yet today.
Completely forgot I had The 2nd Monitor open since like 0900 (five hours ago).
19:07
http://www.commitstrip.com/en/2015/10/07/when-your-colleagues-are-stuck-on-a-something-simple/
CommitStrip - Blog relating the daily life of web agencies developers
When your colleagues are stuck on a something simple
CommitStrip
1444244577
3
Zak
Zak
19:32
ooh, new Doctor Who
@AM_Hawk In that case, this might be better on Code Review as long as it fits their standards. — Becuzz 39 secs ago
@CommitStrip LOL
19:53
0
Q: RAII style API wrapper for PyMongo

sunnyJust watched Raymond Hettinger's talk on making Python more Pythonic and realized I should be putting a lot of his ideas into practice, particularly wrapping API's in a class that makes everything simpler and easy to use. Here's what I'm doing to wrap PyMongo: from pymongo import MongoClient cl...

Is it acceptable to use "presumably" to indicate that a method may not actually do ___ every time?
I.e. I have a method that generates an nonce for Twitter OAuth, but it might not always be unique.
@EBrown Do you consider it a known bug?
@Mast It's not necessarily a bug, but it could be a drawback.
If so, what's the chance of occurring?
@Mast Well I am generating a 128-byte SHA1 Base64 encoded string from a bunch of random numbers.
So, presumably, there would never be overlaps.
20:03
I'd note it in the question and saying it's a known drawback which shouldn't hinder it's function.
@Mast I don't mean for posting it on CR (at least, I wasn't going to, I might now). I mean in the docs.
@EBrown Oh, ok. Well, I'd make sure you document what the drawback is, why it's a drawback and how it should be fixed in the future (if at all).
The better you do that, the fewer people will care about the actual drawback.
Because it's a known.
20:18
@EBrown Why are you rolling your own anyway, isn't there a library available which already does this?
@Mast Rolling my own what? Twitter OAuth?
Zak
Zak
'night @all
@EBrown nonce field generator
I've no idea on what other options are out there, plus I wanted this one built in so I can update it as needed.
1
Q: Generating (presumably) unique `nonce` fields for Twitter OAuth

EBrownThis is code that's part of a library (closed source) that I have that generates a unique nonce value for Twitter OAuth. Essentially, it generates a random number, combines it in string form with an extra string separated by a pipe, computes a Sha-1 hash, and then repeats the process if the Sha-1...

0
Q: String replacement in OCaml

Matthias BraunThis is part of my first OCaml program. Its job is to replace a set of placeholder characters with umlauts. Taking the German word Ruebe as an example, the program turns it into Rübe. Other examples are Moewe -> Möwe and aendern -> ändern Generally, everytime the program encounters the characte...

20:25
@EBrown Just checking. Whenever I see someone doing his own security I get itchy.
@Mast It's not security (or even cryptography) so much as random generation. The nonce field in Twitter OAuth has no particular rules on what's required to generate it, just that it is used to verify that the request that was sent is the same as the one received.
It's a form of private key, right?
@Mast More or less a one-time public key.
It's used in signature generation, and is echo'd back to the sender.
It allows an extra level of verification that the sender and receiver did not get interrupted.
Basically, the sender should keep memory of it, and then verify that the nonce sent back from Twitter is the same nonce it was expecting.
20:39
Like a session token
Yeah, pretty much.
It's supposed to be a round-trip identifier.
-3
Q: Comparing strings in a while loop

soopI have a problem with the following code. It's supposed to ask the user a series of questions about students' test scores and return the average test score, this part is working okay. My problem is that I'm supposed to use a "while-loop" which will run the program, then ask the user if they wan...

You'll be fine then I guess
I would hope so. Really, you can have dupe's, Twitter doesn't care. You just have to make sure that you keep track of them.
@CaptainObvious HAMMERTIME!
20:42
if (chArray[index] == '%')
{
    chArray[index + 1] = char.ToUpper(chArray[index + 1]);
    chArray[index + 2] = char.ToUpper(chArray[index + 2]);
}
That didn't make sense at first, because the '%' was 37 instead.
I hate decompiled programmes.
// Now check if end and endProgram contain the same string
        }  while (end.equals(endProgram));
// Apparently not
    }
Almost time to go home.
By which I mean sign out.
21:00
0
A: Style-Changing Handler For a Select Box

QuillInstead of testing the value of the HTML element, pass the season number in as a variable, and then you can use some of that simplifcation magic we used before: function seasonChange() { var seasonNum = document.getElementById('selectseason').value; var first_episodes = [ "1 - D...

@RoboSanta OH HAI!
0
Q: Declaration of bloatedness: the class that knew too much?

Mat's MugI've already expressed concerns about this type's constructor, and I've sort-of* implemented the changes suggested in the answers I got there. Recently I added even more parameters to that constructor - namely the ParentDeclaration and the Annotations. The Declaration type is absolutely where th...

Apparently this decompiler thought return (string)null; was a good idea.
@RoboSanta CR heroes shall never be unsung
@Mat'sMug Ever done C# COM interop?
21:26
@EBrown LOL, all the time in RD!
0
Q: ASCII generator

MastToday I stumbled upon CodinGame, a site with programming challenges. I'll describe one of them. ASCII art allows you to represent forms by using characters. To be precise, in our case, these forms are words. For example, the word "MANHATTAN" could be displayed as follows in ASCII art: # # #...

0
Q: ASCII generator

MastToday I stumbled upon CodinGame, a site with programming challenges. I'll describe one of them. ASCII art allows you to represent forms by using characters. To be precise, in our case, these forms are words. For example, the word "MANHATTAN" could be displayed as follows in ASCII art: # # #...

Sorry, I didn't know the codereview forum. Thank you. — lolol 23 secs ago
21:54
I agree with you @5gon12eder. However, I was just answering the question not giving him a code review. — Connor Hollis 1 min ago
@Hosch250 Maybe you can answer my question then.
Maybe...
I have a library which is for .NET CLR and COM applications to use.
So, I prefix all the methods that should only be used by the COM applications with COM_. Is this appropriate?
So you have COM_IsValid(), etc.
Don't know. Sounds like an opinion-based question to me.
Yeah, that's what I had thought. Didn't know if there was a best-practice on that.
Well, I suppose I'll keep doing it this way then.
21:59
Monking
-3
Q: Disregard This Post

user86317Disregard..................................................

-1
Q: Would my code satisfy the assignment.

Brian SAssignment:Use constructor and method overloading, static data, and static methods to code a complete class that can convert seconds,minutes,and hours(or a combination thereof) to days. If the number of days exceeds 6, the result will be converted to the number of integral weeks and any remaining...

I believe it fits more in codereview.stackexchange.comgrael 49 secs ago
22:18
Just put it in different namespaces
MyLibrary.Net.BigAwesomeThing and MyLibrary.COM.BigAwesomeThing
Or make them two separate projects and extract the common behaviour to a PCL they both reference
Then the user can choose which they're interested in
Volkswagen extension to PHPUnit detects when your tests are being run in a CI server, and makes them pass. https://github.com/hmlb/phpunit-vw
0
Q: Tweeting NASA's Astronomy Pic of the Day

J. AbramsI want to know how I can make this old code faster, cleaner and compact. It may look like bad code because I did it when I first started with Python. # -*- coding: utf-8 -*- import urllib import time import os from twython import Twython from bs4 import BeautifulSoup as bs class Alfred(): ...

@Mat'sMug lol
Absolute fail ^^
And the errors are so obvious too.
22:33
Of-course that unit had to be written for PHP
@EthanBierlein The PDF he links to 404's.
That's.. Not what's supposed to be stupid about it. But okay...
And starting your programming career with C# has never made sense to me. Plenty of people do it, but in my opinion it's not a good language to learn the basics with.
@EthanBierlein I know, it wasn't related to that.
I didn't start with C#.
@Mast Oh, okay.
0
Q: Program to replace tabs with blanks

mountSinFrom my C university book 'The C Programming Language' by Brain W.Kernighan and Dennis M.Ritchie. Excercise 1 - 20. Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n...

I started with Python.
22:37
I started with BASIC.
I still have the book I learned it from somewhere. Was about microprocessors in general.
BASIC Is probably twice my age.
Maybe even three times.
@EthanBierlein According to Wikipedia: since 1964
Okay, so its approximately 2.57 times my age.
22:40
So, yea, three times your age.
s/three/two-n-a-half
@EthanBierlein approximately with 2 decimals? lol
I vaguely remember you're around 17, but this is the internet so nobody is going to check anyway.
@EthanBierlein In that case you need to get your fractions right.
5
22:42
(2000 - 1964) / 14 = 2.57
It's 2015 today mate.
So more like 3.6 times
sigh
facepalm
body { brain => "fried", ... }
22:55
0
Q: Simple color program

awd123Code Review!, I am a beginner programmer, and have recently started writing a simple string colorizer in C (GitHub page). The program works fine when the string is provided as an argument to main, but when the string is provided through stdin, I get this vague runtime error: $ fortune -s | color...

@EthanBierlein If you're not too fried: I just put an easy Python question on CR
Link?
nvm
Working on an answer now.
23:20
@Mast Posted an answer.
@EthanBierlein Thanks, have an upvote
Thanks santa Mast! ;-)
I quite explicitly stated there was no input validation because it's a programming challenge (so all input is valid), but the rest are quite good points.
Yeah, I noticed. I still felt like saying for anyone else who might see the answer.
It isn't hurting anything if I put it in, so yea.
It's Code Review. It's valid.
23:33
Every once in a while, I declare a private class variable (usually a boolean) to signify state.
It feel dirty, though, like a global variable does.
Like, two methods need it, but they can't just pass it around, because it has to last longer than the call...
Any better way of handling this?
@Hosch250 It's not that dirty
Sounds like you're looking for something like a mutex or semaphore between threads.
-1
Q: How to join by two fields considering NULLS and also do a group by one field

Roger OliveiraIn Visual Studio 2013, C# 4.5, I have these classes: Entities: public class KpiLabourHoursByTeamRole { public DateTime Date { get; set; } public int TeamId { get; set; } public int RoleId { get; set; } public double TotalHours { get; set; } public double TotalCost { get; set...

23:56
@CaptainObvious Meh... LMGTFY .. msdn.microsoft.com/en-us/library/bb397895.aspx

« first day (886 days earlier)      last day (3429 days later) »