« first day (811 days earlier)      last day (3210 days later) » 

12:00 AM
RELOAD!
 
interrupt?
 
There are 1376 unanswered questions (94.6281% answered)
 
@EthanBierlein Have an upvote and an answer.
0
A: What is the purpose of a "carry in"?

MastIt's important to understand there's a difference between a half-adder and a full-adder. A half-adder is the simplest. It has 2 inputs and 2 outputs. It's basically a XOR. The primary output is only 1 if one of both inputs is 1, but not if both are 1. That's Sum. The second output is only 1 if ...

I hope it fits your level of expertise. Ping me if it should be dumbed down of if it's already dumbed down too far.
 
@RubberDuck Hmm no, not really... It's a count of first answers posted on the same day, right?
 
12:03 AM
Week seems to have worked really well @Phrancis. data.stackexchange.com/codereview/query/339526/…
Thanks @nhgrif!
 
I want to know what happened in Jan/Feb of 2011. There were 84 first answers after a year & a half of inactivity.
Wait....... if the site is 3.x years old, how are there dates from 2008 in there???
I screwed the pooch.
 
@RubberDuck Do the example questions in Area 51 count?
 
Idk. Good question.
 
12:08 AM
Migratory seed questions.
Questions migrated from Stack Overflow to seed the site.
 
That could be.
 
@Quill Fallacy.
They both just implement the Magic interface.
 
@RubberDuck Nice nice!
 
If apples are round and Jupiter is round, then Jupiter is an apple.
 
12:12 AM
@Quill I call bullshit.
 
@RubberDuck You could try two weeks if you want to flat it out more
 
@nhgrif Newton is going to hate you for that.
 
He's going to? When?
@bazola ^^
 
@nhgrif If you can catch Jupiter for me, I'll either prove you wrong, or eat it.
 
@nhgrif eww, safari
 
12:16 AM
In Soviet Jupiter, Jupiter catches you.
 
lol
 
@nhgrif A couple of hundred years ago I guess.
@RubberDuck Those dates look funny.
 
@Duga Useless comment is being useless.
Also: I managed to edit an open-source code for modal. There's a good chance he doesn't understand half of the code.
 
12:20 AM
For questions about working code and improving it.....is better to ask on codereview.stackexchange.com Questions here are for problematic code — charlietfl 47 secs ago
 
@Duga you should totally drop that jQuery and use jQuery instead.
 
I'm pulling an nhgrif here, but
 
Evening all.
 
@RubberDuck In Soviet Russia, jQuery drops you!
 
@Mast In soviet programming, maybe?
 
12:22 AM
2:22 here...
TTGTB
 
20:22 here.
 
@Quill Have you ever seen Soviets program?
 
@Mast Night. 10:22 here
 
@Mast ah, that's why! ..'night!
 
@Mast No, but I've seen them try to play fps games
and well, ;-;
 
12:23 AM
Anyone mind me pimping a bit here?
 
@Mat'sMug looks suspiciously
Time is like a good beer. The closer you are to running out the stronger the longing for more.
/wave
 
Also, Beef Pasta Hamburger Helper is the best Hamburger Helper.
3
 
@RubberDuck Are you? Either that, or the data is what it is
 
Star ^ because, reasons....
I found it @Phrancis. I forgot to change the filter when I copy pasta'd it.
 
Ahhh
 
12:27 AM
@RubberDuck Why would anyone star anything about Hamburger Helper?
3
 
> because, reasons....
 
I'm just completely baffled by this, even more-so than lol.
2
 
Apr 11 at 17:14, by Jeroen Vannevel
There's no context when it comes to the starwall
 
Apparently me and one other person agree with you.
 
@Hosch250 Three people found my Hamburger Helper comment interesting.
 
12:29 AM
> I almost always use curly braces.
@Malachi Either use them, or don't.
@EBrown Yeah, I saw.
 
I omit curly braces when possible.
 
I use them when possible (usually).
 
I don't use them in lambdas when I don't have to, because if I do, I have to use a return statement.
 
GoTo Fail
3
 
12:31 AM
> Not using braces considered harmful.
 
@Mat'sMug I know, some people don't like omitting them, but I do it for my own readability reasons.
I find it easier to omit them than include them for small one-liners.
 
nobody said explicit scoping was easy ;-)
(right?)
 
I completely agree that they are handy for many situations.
 
0
Q: Program that filters json data based on user selection

alanbuchananHere is my code in a jsfiddle. I have made a basic program using AngularJS that displays data from a json file, and filters it according to the user's selection (specifically FIFA 15 chemistry cards). I did plenty of CSS work to it; mainly to test myself as I have barely used it. I have done so...

 
But for situations, particularly mundane (events) I omit them.
I.e.:
EventHandler<MessageEventArgs> unhandledMessageReceived = UnhandledMessageReceived;
if (unhandledMessageReceived != null)
    unhandledMessageReceived(this, e);
Instead of:
EventHandler<MessageEventArgs> unhandledMessageReceived = UnhandledMessageReceived;
if (unhandledMessageReceived != null)
{
    unhandledMessageReceived(this, e);
}
 
12:34 AM
That looks reasonable
 
if you declare the event and assign it a no-op delegate right away, you can ditch all the null-checking code
 
A hwhat?
 
hold on
 
Incoming question.
With a good title. =;)-
 
Uh-oh
 
12:39 AM
@EBrown hwat?
 
Hank Hill, hwhat?
 
0
Q: Improvements to Insertion Sort via Recursion

genesisI'm learning about algorithms and have been recently experimenting with insertion sort via recursion in Python. My code (shown below) works fine, but I was wondering if there are any possible improvements that can be made. I am especially interested in ways to reduce the actual content of the co...

0
Q: Excuse me, how many of you are new here? Mind if I join you?

RubberDuckI had perceived an uptick in new reviewers around here, and I wanted to see if the data backed that observation up. It's been a while since I've written any SQL, so this was a nice little exercise in using the Stack Exchange Data Explorer. The query finds the first question and first answer from...

 
public event EventHandler<MessageEventArgs> unhandledMessageReceived = delegate { };
 
We are beginning our test of Stack Overflow behind CloudFlare in just a few moments. http://t.co/2jg2QaDrQI
 
@Hosch250 almost always, to me, means around 99%
 
12:48 AM
Oh I see.
You mean to just declare it with an empty one when I have it declared in the class.
 
I read that trick yesterday in Jon Skeet's book :)
 
Nice.
I Need to get his books.
 
it's pretty nice, walks you through the history of C#
..feature-by-feature
 
Nice, where did you get it?
Amazon?
 
^^
 
12:55 AM
I don't think I am explaining his situation correctly..... SIGH
 
@Mat'sMug say what now?
 
@RubberDuck if you declare an event and assign it to a no-op delegate, then you don't need the null checks
 
OH! That's genius!
Wonder what the cons are?
 
lil' bit of overhead
a no-op delegate gets called whenever the event is raised, basically
 
Yeah I'll stick with my tried and true methods. :P
 
12:59 AM
@RubberDuck yeah, delegate covariance at its best
 
0
Q: Class and Static practice, IDS and a max instance count

Lemony-AndrewI was practicing working with classes and the static property included with them and came up with a simple ID counter and max number list. I also added a quick debug error throw if it goes over. Here's what I came up with: #include <iostream> class SpecialClass{ private: static int const ma...

 
@RubberDuck don't users have a CreationDate?
 
user image
5
What happens if you don't use a computer for a few days.
 
@rolfl lol
 
lol
 
1:01 AM
@Mat'sMug yeah, they do.
 
When I took the screen-cap it reset the window title... 5873 messages since I last checked.
 
@rolfl By the look on that monkey's face, he's/she's not very happy about that number.
 
saying Ooohhhhh booooy!!
3
 
@rolfl average is 1.2K per day, so...
@SirPython I'd argue he's saying "lol"
2
 
Alright lads, I'm out of here a bit.
You all have fun, and enjoy things. :)
Thanks for that tip, @Mat'sMug.
 
1:05 AM
Me too... I only came in here between cleaning up from pouring some concrete, and sitting down for dinner.
 
I'll definitely keep it in mind.
 
@EBrown TBH I haven't tested it myself, I really only read about it yesterday and thought "ooooooooooh"
 
Ah, definitely man.
Still an interesting tip, though.
 
yup. and I'm not even halfway through that book!
(had it for quite a while, don't know what took me so long)
 
This is Skeet's book?
 
1:12 AM
Yeah
C# in depth
 
I need to pick that up sometime.
 
Guess who wrote the foreword
 
Eric Lippert?
 
^^ yup
I gotta say, reading where current C# came from, is enlightening
 
@Mat'sMug Is this book difficult to understand for beginners to C#?
 
1:16 AM
I wouldn't think so
But it's not exactly an introduction to C# either
 
1:27 AM
Hello
 
Hello
 
Finally. Now I understand binary adders.
Which means my binary adder actually works.
 
...I smell a CR post?
 
Nope
Not in code.
Or in circuitlab.
Or in any software built specifically to model circuits.
 
This guy's answer deserves more upvotes: codereview.stackexchange.com/a/97886/57656
(new answer on old question)
 
1:38 AM
0
Q: Method to count all comments in single external C# file

user365213I recently had an interview question: Write a method that counts all comments in a single external file. It was a timed question and I wanted to know if this is the best way to accomplish the task. I'm also open to improves, advice, etc. class Program { static void Main(string[] args) { ...

 
2:02 AM
0
Q: How to optimize to sizes of Box under constraints?

Alex ShI need advice for solving this issue. I have a box with x, y and z sides (natural numbers). I build sides (L, W, H) of Bin using any sum of these numbers (I can use any number more than once, like kx+ty+fz). The longest side should be less than 150, and sum of three sides must be L (longest side...

 
@CaptainObvious Nope, not close
 
gone
 
oh whoops, the edit went through after
does that do anything if the post is deleted?
 
congratulations, you've edited a deleted post!
2
 
lol, whoops sorry
 
2:17 AM
1
Q: Implementation of Set data type in Haskell

Michael ChavI'm an advanced beginner Haskell programmer. I implemented a set data type in Haskell and I wanted to find out if I made correct choices when writing it. Would there be a way to improve some of the algorithms like intersection etc. data SET a = E | Add(a, SET a) deriving (Eq, Ord, Read, Show) -...

 
2:37 AM
I have stars again!
 
lol
2
^^ waste one!!
lol
2
 
PIN IT! lol JK don't
@Mat'sMug Want to look over a C# answer?
 
I have the same score as @SimonAndréForsberg!
 
5
A: Resumable HTTP download class

MalachiYour FileStream looks like it is an IDisposable as well, you should put it into a using statement as well, then you don't have to worry about missing a chance to dispose it. Right here if (ExistingLength > 0) saveFileStream = new FileStream(Path, FileMode.Append, FileAccess.Write...

 
...and zero score here :)
why no answer mentions this:
public bool stop = true; // by default stop is true
could easily turn into this:
public bool stop = false; // by default stop is true
I mean, no really.. but you get the idea
(that comment is utterly useless)
@Malachi I like how...
> In my opinion you should use curly braces, I almost always use curly braces.
makes it sound like "I almost always use curly braces" is a good reason to use curly braces ;-)
 
2:43 AM
I just saw a G+ comment that pissed me off.
 
TTGTB. I'm going to be gone for a few days so I won't be able to be on Code Review during that time.
 
later!
 
Seeya @SirPython!
 
@Malachi if (stop == true) return; should be if (stop) return;
2
 
@Mat'sMug good point, I always do that!
 
2:45 AM
{Hello Malachi}.
 
{Monking}
 
I really wonder if OP was constrained to C# 2.0, or if OP has a Java background. His whole entire nested loop logic could have looked like this: return lines.Count(line => HasComment(line));
bah-dum-tish
 
@Mat'sMug I almost got caught looping through the logic of that last loop. I think it might be time for bed
 
I need to stop bashing Java, and perhaps learn more of it.
 
@Mat'sMug fixed that
 
2:53 AM
 
@Mat'sMug lines.filter(line -> hasComment(line)).count()
ba-dum-tish
 
@rolfl lines.filter(Program::hasComment).count()
 
@rolfl Java 8 right?
 
@h.j.k. Java should have found a way to force the current-class option on the method :: reference
Like lines.filter(this::hasComment).count()
There's something ugly about having:
 
Well. Goodnight @all
 
3:01 AM
good night!
 
'night @EthanBierlein!
 
filter(PolymorphicNanoParticle::isAlive)
instead of:
filter(d -> isAlive(d))
 
oh I forgot method group conversion. the thing is actually better off as return lines.Count(HasComment) :)
 
now we need that for Java 10 :p
 
you need lines.filter(isAlive)
 
3:04 AM
THat's JavaScript.
 
ah
 
is there the equivalent of 'except' in linq?
the inverse of filter
or 'drop'
or 'truncate'
 
TTGTB have a good one
 
@h.j.k. Except?
 
or filter(!....) ... ?
 
3:08 AM
yeah something like that
 
like, Enumerable.Range(1, 10).Except(new[]{2,4,6})
 
@Mat'sMug sorry not what i was looking for... so instead of filter for alive nano particles, filter for the dead ones
assuming there's still only the isAlive() method
 
...!isAlive?
@Malachi 'night!
 
a common scenario (Java example): lines.filter(s -> !s.isEmpty()), so instead of that we can have lines.except(String::isEmpty)
 
seems redundant
easily implemented as an extension method though
 
3:19 AM
0
Q: Simple Self-Learning AI

DonkeyCoreThis is a programming challenge I set for myself a while back to create an AI that starts with no knowledge of anything whatsoever, and learns as you talk to it. (It can learn stuff like your name, how to say hello, goodbye, etc.) I tried to use the least amount of hard-coded responses as possib...

 
@CaptainObvious that's pretty cool!
..but holy horizontal scrolling, batman!
 
3:50 AM
@Mat'sMug, I edited one of your posts, I wasn't sure whether the formatting left of the variables, constants and methods was intentional, feel free to roll them back if that's the case
 
saw that, looks good
thanks :)
 
4:05 AM
 
0
Q: Trying to make a code to determine whether numbers are pythagorean triple?

MaryI am trying to make Python code that determines whether or not a set of three numbers are Pythagorean triples. It returns false regardless. Please help. import math print ("Use this program to determine whether a triangle is a right triangle.") a = int(input("Enter the length of one the sides o...

 
@RMunroe lol
@CaptainObvious @Mat'sMug, did you sssssssssssssssee op's update?
was a bit ssasssssssssssssssssssssssssssssssssssssssy
oh wait, rollbacks are things
ಠ_ಠ
 
@Quill For a second I thought you were talking like Gollum.
 
@Hosch250 read the revision history of the linked question ;-)
 
I did.
I'm getting better at posting C# answers, I think.
I have one going on a third silver answer badge.
 
4:17 AM
@Hosch250 Do you have an example for me to upvote assess your claim?
 
Assess, you mean?
1
A: Method to count all comments in single external C# file

Hosch250First, use LINQ: foreach (var line in fileLines.Where(l => l.Contains("//") || l.Contains("/*"))) { // Check if comment is in a comment or in a quote } It appears you have a bug with the quote validation. This variable only appears three times: bool inQuotes = false; That is the fi...

Latest one.
Thank you very much, mister Quill.
And now, is there anything I can do for you today?
 
I'm ashamed to say I haven't posted in nearly a week
Also, I would agree with your claim. Those are good answers :-)
 
I stopped posting for awhile, don't feel bad.
@Mat'sMug answer is really good too, but I can honestly say I would have caught all of that.
 
in Maid Café (メイド喫茶), 1 hour ago, by Yuuki
So Universal purposefully seeded a torrent of Jurassic World so they could grab IPs of people who picked it up.
in Maid Café (メイド喫茶), 1 hour ago, by Yuuki
(On a takedown notice to Google, they requested that localhost be blocked)
 
BTW, VS 2013 update 5 for came out.
I'm almost halfway to the C# silver badge. Two answers and two votes.
 
4:43 AM
1
Q: WPF MVVM Dialog with Prism, MahApps.Metro

Li Yin KongI am building a Metro-themed WPF application with MVVM approach using Prism and MahApps.Metro. I have to show a custom dialog from view model. Currently, I am using InteractionRequest and a custom TriggerAction to accomplish it, but I don't know if this is a good way. MainWindow.xaml <Control...

 
@Hosch250 'Call me Quill, Mister Quill is my father' (late, I know :P)
2
 
Master Quill, then.
JK.
My collection of ConsoleApplicationX projects is growing again...
 
5:19 AM
0
Q: Failed to prepare statement reason :null

test userIt might be simple, but please be considerate and guide me. I want to generate a report that fetch data from the table 'qqq' within a stipulated period of date. The files are as below: pfw-mapping.xml `<param-map id="/zzz/getAPPNumbers"> <property name="startdateStr" sqlType="CHAR"/> <...

0
Q: Why this Quicksort is not working?

HengamehI have written this code for quicksort; but it gets wrong output. Could you please help me to find out what is wrong with this code? public class RecursiveQuickSort{ public static void quicksort(int[] array, int l, int h){ if(l < h){ int p = partition(array, l , h); quicksort...

 
anyone here?
ok.. hammer-closed
love this:
By the way, my code is working; the problem is, it is not working properly! — Hengameh 1 min ago
2
 
5:34 AM
@Mat'sMug lol, I saw that
 
0
Q: Find a Id that contains all mentioned values

ArulkumarI have a scenario to find the CategoryId which are all have the all mentioned Mode values. The schema of the table ModeTester CREATE TABLE ModeTester ( ModeId INT IDENTITY(1, 1) NOT NULL, CategoryId INT, Mode CHAR(1), ModeValue VARCHAR (20) ) For testing purpos...

 
hi @ItachiUchiha!
 
@Mat'sMug o/
 
5:57 AM
@Veedrac, I asked 3 questions there, and I got down-vote as well and blocked from asking more questions! Wish there were some place for beginners to get help from others, without violating professional websites' rules. Anyway, thanks for your reply — Hengameh 1 min ago
learn. to. search.
 
/random rant
 
monking
 
monking
 
monking
 
monking
@Morwenn I always wanted a pony but was never able to grow hairs long enough for one..
 
6:12 AM
@ItachiUchiha That's a wig.
My real hair is curly and a bit shorter.
 
Ohh, so a wig can help me fulfill my dream :P
 
Probably. The hardest part is to pick one that looks normal and you :p
Actually no, the hardest part is to look at yourself with a wig as if you'd never seen your face before to judge whether it looks natural or not.
 
<-- Never tried a wig before
 
6:26 AM
You could also have a hair extension made; they apply longer hair strands to your existing hair.
Monking ~
 
6:49 AM
almost 3AM here, I'm out!
 
Almost 9 a.m. here.
 
@Mat'sMug GN :)
 
ssc
Almost 12 PM here
 
@Morwenn CET rules? :P
GN @Mat'sMug
 
Well, yeah, probably. I prefer not to have to deal with timzones.
 
6:55 AM
It's a pain indeed
"wanna do the code review at 4pm?"
"Which 4pm?"
 
@JohnSnow it's always StackLand time
Monking
it is 7 AM
 
GMT 0?
 
It's always morning in internet chatrooms.
 
@JohnSnow UTC
 
7:00 AM
That's the ICT.
ICT - Internet Chatrooms Time
 
UTC/GMT are the same :P
Though that might not be easy to know when I spell it wrong >_>
 
7:22 AM
 
Also, consider that questions about performance issues and general best practice in otherwise working code might be better asked on codereview.SE. — lvc 44 secs ago
 
Is the fact that I will leave in a few minutes while it's still morning in my local timezone relevant?
 
leave?
WHY?!
You can't leave the internet!
2
 
Too bad. See you later :)
 
Noooooooooo
 
7:52 AM
0
Q: find disjoint integer intervals

akonsuPlease help me make this code less ugly. Given a list of numeric intervals in the form of (a,b), where a and b are integers, it finds a set of disjoint intervals that cover the same numbers by splitting the original intervals at the points where they intersect. For example: disjoint [(1,2),(1,3),...

 
8:08 AM
0
Q: ormlite vs mongodb c# driver

vigneshI am currently using servicestack Data is stored in MongoDB For performing CRUD operations from servicestack I am using Mongo DB C# Driver Is ORMLITE more efficient than Mongo DB C# Driver? I tried to find comparison among them, but there are no resources available online which gives a compa...

 
Mmmonking
 
@CaptainObvious RBA
@skiwi monking
 
0
Q: Return sum of three values from a range with a helper function

noob81Is there a way to make my code simpler: Given 3 int values, a b c, return their sum. However, if any of the values is a teen -- in the range 13..19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a teens. Write a separate helper "def fix_teen(n):"that takes in...

 
I'm thinking; is this a stupid answer or not?
3
A: Https POST / GET with Qml/Qt

hiddenbitYour if statement is wrong: The functions is called a serval times, but only one time http.readyState is 4. So you print error messages although there a no errors (yet). You should better first check if http.readyState is 4 and then look at the status code. Here is a minimal working example: i...

They literally only changed the if statement there, to one that's exactly the same semantically
 
8:19 AM
@DanPantry NOOOOO!
 
>_>
 
@DanPantry I know :-) I'm excited
 
@skiwi Then comment that, just remember the three upvotes could be cause of the SO hivemind
 
We have a different site for this Code Review SECeiling Gecko 22 secs ago
 
8:24 AM
0
Q: Delayed Include rules for EntityTypeConfiguration using LINQ expressions. Is refactoring applicable here?

Alexandercould you please tell me how optimal and efficient is the following solution: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Data.Entity; using XXX.Data.Security; using XXX.Extensions; using XXX.Helpers; namespace XXX.Data.Entity.M...

 
@Quill I'm not awake enough to make any calls yet
 
@skiwi Rebecca Black's hit single might do the trick ;-)
 private static readonly List<Expression<Func<TEntity, Object>>> Includes = new List<Expression<Func<TEntity, object>>>();
 
5 mins ago, by Captain Obvious
0
Q: Delayed Include rules for EntityTypeConfiguration using LINQ expressions. Is refactoring applicable here?

Alexandercould you please tell me how optimal and efficient is the following solution: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Data.Entity; using XXX.Data.Security; using XXX.Extensions; using XXX.Helpers; namespace XXX.Data.Entity.M...

 
That declaration hurts me to my very soul
Ah, reflection? I'm staying the hell away from that question
 
8:38 AM
Monking again.
To all my friends.
Together we can play some rock'n'roll.
 
Mmmonking @Mmmorwenn
 
Have you considered posting your question on CodeReview? — JohnSnow 8 secs ago
 
8:54 AM
From this to this
God I love ES6
 
@DanPantry You can love ES6 all you want, but it'll still be JavaScript!
2
 
Stop hating JavaScript :o
 
begrudgingly stars
 
Stop talking about it.
 
This almost reads like Java 8 though
 
8:56 AM
Let it die slowly.
 
hate it all you want
If it werent for JS this chat room wouldn't exist
you need me
I'm not the hero you deserve, but I'm the hero you need
 
@DanPantry You're the hero we deserve, but not the one we need
 
> It’s a terrible language with numerous flaws, though it does have a bright future.
 
@Morwenn every language ever just after it starts getting taken seriously, though
see Java
 
> I do think that C++ sucks, but as I’ve pointed out, it does suck for very good reasons.
I love this guy's blog x)
 
8:59 AM
Let's all remember PHP is still a thing, while we criticise JS
 
My body work says yes, but my brains say no
 

« first day (811 days earlier)      last day (3210 days later) »