« first day (589 days earlier)      last day (3430 days later) » 
00:00 - 18:0018:00 - 00:00

12:00 AM
what happened to your DataTable?
 
it CHANGED
Try Another Object besides String and You will find out ! In the mean time I have to try the string example
 
0
Q: Please check/ comment on my code

AlexThis is the first bit of code I've done so just after some comments/ feedback on it; MONTHS = 'JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC'; //months document.write ('<h1>Introduce Yourself</h1><hr />'); var userName = ''; //create username variable userName = prompt('Enter your First Name','Alex'); //...

 
what changed? the reference couldn't possibly have changed. its mutable properties might though - the copy of the object reference being passed does point to the same object after all
 
When You Pass an object You just pass a Pointer to a memorylocation.
And thats true even when you pass it ByRef'
 
indeed. the only difference is whether the method receiving that parameter can (ByRef) or can't (ByVal) reassign that pointer to point elsewhere
 
12:06 AM
Well then You agree!
 
lol
 
The values in the Object can be changed !
I Still have to try your example !
 
of course the values in the object can be changed, but that's not what ByRef/ByVal do...
- passing a reference by value (changes to fields/properties of the ref-type are visible to the caller, but reassigning the ref-type to a new/different object is not visible)
- passing a reference by reference (changes to fields/properties, and reassigning the reference are visible to the caller)
33
A: How to 'do' ByVal in C#

Marc GravellParameters in C# are, by default passed by value. There is no modifier to make this explicit, but if you add ref / out the parameter is by-reference. The usual confusion here is the difference between: passing a value-type by value (changes to the value-type are not visible to the caller, but ...

^^ this answer explains it pretty well
@LarsH I took a string as an example specifically because it's an immutable reference type, which makes the behavior more obvious :)
 
As you said String is a special case !
Because it is immutable !
 
@LarsH: show an example then that demonstrates what you believe it means
get rid of the confusion
 
12:19 AM
Well its just What I said Before ! If I pass A table "ByVal" and then change the rows in the Table ! The Rows will be Changed !
 
The rows aren't the table
 
that's different
besides, you're passing the reference by value
you can't reassign it, but you can modify its properties
 
Well then we are on the same page !
 
If you use ref, you can also reassign it
 
Yes.
We seems to be in agreement !
 
12:22 AM
You can't tell me what I seem like!
 
but it does not mean that an object is passed by reference no matter what!
@JeroenVannevel lol
 
If I understand this endless debate, it's like this:
value types are passed by value. This means all structs. You can't reassign their properties nor the actual reference to change the original
reference types (classes, interfaces) are passed by reference by value. You can't change the reference but you can change their properties
ref and out pass the reference by reference: changes to properties and the actual reference are propagated to the original reference
 
There are so many out there that doesn't get that the content of an Object can be changed even iuf You pass it ByValue
 
var object1 = new Something();
DoSomething(ref object1);

void DoSomething(ref object obj)
{
    obj = new Something(); // caller gets the new reference
}

void DoSomething(object obj)
{
    obj = new Something(); // caller does not get the new reference
}
 
But personally I have a problem ;
Friend Function HasIntersection(arr As IEnumerable(Of String), dataColumnCollection As DataColumnCollection) As Boolean
    'Ett Intersection = Snitt (Venndiagram)
    Return dataColumnCollection IsNot Nothing AndAlso
           arr IsNot Nothing AndAlso
           arr.Any(Function(str) dataColumnCollection.Contains(str))
End Function
 
12:25 AM
Margin="10,0,10,0" vs Margin="10 0 10 0". Which one sucks more and why is it the first?
 
@JeroenVannevel why do commas suck?
 
I don't like them here
Maybe it's a remnant from my 5 minutes dabbling with CSS?
 
maybe
@LarsH what's the problem?
 
I removed the commas. At night the codebase becomes mine and mine alone so it'll have to follow my rules
2
 
so no more commas
 
12:27 AM
find-replace: commas -> spaces
entire solution
 
Well I have the same problem with ; and ()
 
OK, all... hi there.
 
let's get ruthless
 
@JeroenVannevel sounds somewhat dangerous
 
why are these buttons invoking Tapped instead of Click
So nasty
 
12:29 AM
hey @rolfl
 
@Mat'sMug Not sure if a new day starts after a few hours sleep, or a few glasses of alcohol.
 
@LarsH ah, so that's why you do VB? ;)
@rolfl have another drink and tell me!
 
I do both C# and VB.Net and VB Script and VBA and F# and Powershell And (COBOL Fortran, JCL, APL etc etc)
 
@Mat'sMug It's a new day, I'm not going to drink until morning ;-)
 
Well I am drinking Makers Mark!
 
12:32 AM
@LarsH check this out
@rolfl it's 00:32 Zulu time, it's morning ...somewhere!
 
Yeah! I saved it for tomorrow !
But in Code Review: In Components it is bad with Linq and also with ForEach over IEnumerable .
I mean if You are Writing a Component !
And You want to avoid penalty Tics
 
why is foreach bad over IEnumerable?
 
0
Q: How common is closure in modern Lisps?

Elf SternbergI'm writing a little tool for mangling MP3 collections and, as a challenge, I decided to write in in Hy, a dialect of Python that uses Lisp syntax. Like every good developer, I wrote out my list of policies that I want the tool to obey: "If the user doesn't specify a genre on the command line, u...

 
ForEach over IEnumerable generates more IL-code !
 
ok, but then enumerating the IEnumerable with ToList() prior to looping makes you iterate it twice... so....
 
12:42 AM
Well what I understand You have to do an overload for whatever You want to loop over!
ToList() is just bad especially in a loop.
 
I mean before entering the loop. so that you iterate a List<T> instead of an IEnumerable<T>
but I don't see a point in doing that
 
No but still ! I just read that it was so beatifull with IEnumerable and then I find out that when Writing performant code You shouldn't use it.
So You will have to have two types of codereview !
 
@Mat'sMug: I manually replace two pivot items with another page. If I try to interact with the page too fast (scroll to the next one or just click on a button too fast), it crashes "value cannot be null". If I wait a few seconds, it works just fine
any experience?
@LarsH: Take everything in that book with a grain of salt. It focuses on extreme performance measures that you will never need 99% of the time. It's nice to know as a background but it should never dictate your code unless you do it for a very good reason (aka: you're building the next atomclock or whatever)
 
So, my son, gifted, but not all this time....
 
Well I often have to make measures because I write Components that other use and very often I have to skip LINQ but I did't know about ForEach over IEnumerable
 
12:51 AM
Breaks out laughing, just got the punchline of a joke he was told a few hours ago.
 
rofl : then You have to share
 
It's situational, but he's 8, so it's a kids joke.
About the baseball, that was getting bigger, and bigger, and bigger
then it hit me.
 
I am a Cubs fan!
 
@Mat'sMug: nevermind, think I found the culprit
Well that's a fun one
If you click the calendar the first time, it gives you a correct notification you're not logged in
if you click the calendar again, it logs you in
I don't even know where it gets the credentials from
literally the entire event handler is this
    private async void OnCalendarButtonClicked(object sender, RoutedEventArgs e)
    {
        if (Session.Instance.IsLoggedIn)
        {
            Frame.Navigate(typeof(MainPage), 1);
        }
        else
        {
            await new MessageDialog("De kalender is enkel beschikbaar wanneer u aangemeld bent.").ShowAsync();
        }
    }
ah, the joys of non-awaited asynchronous methods
looks like the saving of credentials on the phone does in fact work
but since it initializes from the constructor, you can't await it
so while the session is busy logging in, the startpage has already decided nobody is logged in, so it gives an error message
but by the next time you click, that unawaitable login request succeeded so it lets you pass right into the logged in view
 
1:16 AM
Nice post !
 
thanks
that's how we roll here in CodeReview
2
Mumbling about our own shitty code all night long
3
 
sorry was AFK a while
 
It's okay, you were with me in spirit
 
lol
 
0
Q: Jarvis's March Convex Hull code

user3735342#include <iostream> #include <vector> #include <math.h> using namespace std; struct point{ float x, y; point(){ x=0; y=0; } point(float aX, float aY){ x = aX; y = aY; } }; float computePolarAngle(point* convex_pt, point* candidate_pt){ //move origin to c...

 
1:34 AM
Hi @LarsH did I hear you say you're a VB guy?
Woah. Wait.., jtodd's gone? I mean, I hadn't seen him in a while, but... damn. That sucks.
 
yeah
 
1:58 AM
Talk about kicking you when you're down
 
lol!
Hurray!!
^(?:(?<parameter>(?:(?:(?<optional>Optional)\s)?(?<by>ByRef|ByVal|ParamArray)?\s‌​)?(?<identifier>(?:[a-zA-Z][a-zA-Z0-9_]*)|(?:[[a-zA-Z0-9_]*]))(?<specifier>[%&@‌​!#$])?(?<array>((?<size>(([0-9]+)\,?\s?)*|([0-9]+\sTo\s[0-9]+\,?\s?)+)))?(?<as>‌​\sAs\s(?:(?<reference>(?:(?:(?<library>[a-zA-Z][a-zA-Z0-9_]*))\.)*)?(?<identifier‌​>(?:[a-zA-Z][a-zA-Z0-9_]*)|(?:[[a-zA-Z0-9_]*]))))?)(?:\,\s)?)*
^^ that's the regex I was after!!
 
I see a lot of sad smileys and I can't blame them
 
lol
 
Let's hope there's never a bug in there
 
been working on fixing it for a few hours, thanks :)
 
2:06 AM
what does it do? Parse a method header?
 
the parameters from a VBA procedure signature
I guess it'd also work for a VB.NET signature
nah
 
@RubberDuck Well VB is still a big part of what I do! But I would like it to be Ruby - because i more terse !
 
@JeroenVannevel lol
 
@Mat'sMug That's actually something I miss from Unix-Informix where we could do a list of all Functions and all parameters. Ghostscript - don'¨t get me started Its a code smell.
 
anyone with an alternative solution is welcome to bring it...
 
2:16 AM
No I just mean could You do a List for .Net-programs with a programs all Functions and parameters
 
easy enough. Ever used the System.Reflection namespace?
Dec 8 at 22:50, by Jeroen Vannevel
But using reflection also makes you look 1337 as fuck so it's a tradeoff between performance and e-penis
@JeroenVannevel you didn't think you wouldn't ever get quoted on that one, eh?
 
@Mat'sMug Mi vida es completo
 
lol
 
Well perhaps the future is in Regex!
 
My mousemat broke
how does that even happen
from one moment to the other, it started interfering with my mouse
 
2:23 AM
I thought mousemats were extinct since the advent of optic mouses (do we say "mice" for plural computer mouse?)
 
they work better with surfaces that have a contrast or something
and its smoother than my desk
 
and how does that break?
 
I don't know why it suddenly gave out. It's fabric, it's supposed to work until I tear it apart
Luckily I won a brandnew 40€-worth mousemat at a LAN a few weeks back
it sucks though, I ordered this (broken) mat online for its funny picture
 
haha
 
What is this, 2003?
> It makes you look 1337 as fuck
 
2:29 AM
I'm still hip
2
Speaking of 2003
Time for some more Prison Break
 
Had to go desktop on mobile just to star things.
2
 
ChatSEy brother, ChatSEy!!
 
@RubberDuck Are You really The Rubber Duck !
 
lol
the one and only
 
There can be only one!
 
2:33 AM
except this one
 
lol
2
 
iOS Mug. I looked for it...
we need to get that duck a hat.
 
and a mug
 
Thats why I would like Ruby - ducktyping!
VB was in the Days like DuckTyping!
 
Variant is a duck
 
2:36 AM
I'm a Ruby fan too, but I never had a good reason to use it, so I never learned it as well as I should have.
 
Me neither ! But perhaps we could get an excuse !
 
Idk... As fun as that sounds, one too many projects on my plate right now.
 
IIRC there's a chatbot written in ruby
 
Ya know, thinking of it... I really want a CR mug..
 
Well in the meantime I really have to look at github.com/retailcoder/Rubberduck
 
2:40 AM
^^ YES!
 
I have only read a Little but am totally impressed by the scope !
 
Mug has already done some crazy voodoo. I've been doing TDD in VBA @LarsH.
 
well here's a crazy voodoo bug
 
@Mat'sMug Can we get the source code ?
 
"Parameter is passed ByRef implicitly" > double-click > highlights "ByVal "
 
2:42 AM
@RubberDuck Who is Mug ?
 
@LarsH you're kidding
lol
 
Well I am quite new to code-review !
 
granted ;)
 
Thanks for the tips. Tomorrow I have something to read.
Well I really enjoyed this chatroom. Thankx. In Stackoverflow they sometimes are som mean.
 
come back anytime!
 
2:50 AM
Well over and out. Listening to some First Aid Kit - Really good .
 
Yeah @LarsH the source code is at that link you posted. Come back and chill sometime.
 
@RubberDuck I think he meant for the ruby chatbot
 
Well me and my friend The Rubber Duck! What could be better!
 
            catch
            {
                // todo: handle exception like a chief
                Debug.Assert(false);
            }
 
LOL
Can I quote You ?
 
2:54 AM
@LarsH everything on Stack Exchange is CC-by-SA, but I won't require attribution for that one ;)
 
3:08 AM
@Mat'sMug s/addin/add-in/
 
@rolfl yeah?
 
yeah
 
hmm
 
Rly? Yeah Rly.
 
1
Q: Improving an AI for board game

phoenixI am attempting to complete an assignment, its basically Connect 3, instead of the classic connect 4 game. The AI, i am using is the exact same as the opponent, but the opponent wins more because it goes first. I've researched for days and cannot grasp MINIMAX, or think of way to make this AI b...

 
3:35 AM
Well that turned out to be a much longer answer than I expected....
 
Your for block is missing an { opening brace... — Mat's Mug 7 secs ago
@shuttle87 holy c.... ... ;)
#teamlonganswers
 
@Mat'sMug :)
 
@shuttle87 Don't burn yourself out on your early answers! Awesome one thought: codereview.stackexchange.com/a/73585/31503
 
^^ good point
 
Hopefully no burnout! I did burnout pretty bad after writing a 200k+ word book so I know I should be careful about that :)
 
3:47 AM
Which book?
 
I started writing a book about game theory as applied to various games but its not published as of yet
I happen to really like computational mathematics.
Which is part of the reason I felt compelled to write a long answer to that convex hull question, I find people who are solving problems like that frequently have issues with the software engineering side of things.
There's something I'm very interested in hearing opinions on, what do you guys find to be the most common issues with code people from outside a software engineering background have with their code they post here?
@Jamal, thanks for the edit!
 
4:37 AM
@shuttle87 three types of folk post here.... the good, the bad, and the ugly.
Now, about their code ;-)
Most people posting questions here have less than a few years experience. The vast majority.
As a result, the most common issues I see with code are the sorts you see from people who don't maintain their code, or who have not had to performance tune code.
Code that works for the given use-case, and very little else.
What I call 'brittle' code. Looks good, even smells good, but put it under pressure, or try to make it take some weight.... or bend a bit for a enw task, and it shatters.
 
4:54 AM
lol:
1
A: Improving AI for a Connect 3 game

maaartinus I've researched for days and cannot grasp MINIMAX, or think of ways to make this AI better. You can't really do MINIMAX without having an evaluation function. But even then, minimax is a bit complicated, but you could try something simpler: Evaluation function Make any function satisfying ...

WTF?

    }
}



    return (new Random()).getBestColumn(state, player);
}
}
}
WOW! So many closing braces and so nicely aligned...
 
As I've noticed, it's easier to review the ugly (lots to talk about). Here's one example of that, which prompted a long review from me.
 
yep
lol
 
It's missing a third door: Jon Skeet code (no WTFs)
 
5:28 AM
> having issues with Office PIA's. They're called PIA's for a reason.
TTGTB
 
 
2 hours later…
7:33 AM
monking
 
8:00 AM
monking
 
monking
 
8:50 AM
0
Q: developing a program to play lottery

Jhomz Kuribothe program randomly generates a lottery of a two-digit number,prompts the user to enter atwo-digit number,and determines whether the user wins according to the following rules: a,if the user INPUT MATCHES the lottery number in EXACT ORDER,the award is Php. 10,000.00 b,if all the digits in the u...

 
9:12 AM
0
Q: Genereating a Game Board with Squares in a Rectangle

Can't TellI am trying to generate a game board(similar to a monopoly board). Following is the code that I have right now. I am new to Scala and am thinking that there may be a better way to do this. But improvements to the code are also welcome. class BoardGenerator(squaresPerPlayer: Int, numberOfPlayers:...

 
9:46 AM
0
Q: Speeding up loop-rich Matlab function

titus.andronicusI would like to speed up this function as much as possible in Matlab. This is part of a bigger simulation project, and as it is one of the most called functions within the simulation, this is crucial. For now, I tried generating a MEX file, but the speed was not better. Vectorizing seems diffic...

 
10:07 AM
0
Q: to eliminate initial nulls from numbers besides one if it's followed with '.' or this sequense doesn't consist of numbers but nulls

WindirFor example if we input a-000123+bc+0000.0008-0000+0001.07 , we will get a-123+bc+0.0008-0+1.07) Using putchar and getchar only. No strings and pointers involved. I have a working code, but I think it's confusing and overloaded. Couldn't someone simplify it or tell some easier algorithm? char cu...

 
10:39 AM
0
Q: parsing serp using beautiful soup

jibin jacob joseMy task was get the bing serp html data for the url "http://www.bing.com/search?q=nike".Parse through the html data using BeautifulSoup.Create a table in csv extension using python containing the categories as given below. Category | Title | Href categories are Top Ads,Bottom Ads,Rig...

 
11:03 AM
I'll try to focus on Python zombies today
here's the first:
3
Q: Script for obtaining images from an IP security camera

ButtzyBI am fairly new to Python and programming in general so I hope the code in this post is not too messy. I have the following code which I use for taking images from an IP security camera: def Camera(timecount, cam_name, stream_url, username, password, work_dir, x): x = x work_dir = work_d...

 
11:23 AM
wow, @Santa showered on me generously
 
1
Q: Question was migrated to CR When OP obviously doesn't want a code review. Why?

RubberDuckSo, I ran across this question. It would be a pretty good question except for one little detail, OP doesn't want it reviewed. ... and am not looking for pure code improvements. Also, in the comments from before it was migrated. (Here, "this site" refers to Programmers.) @DocBrown- I'm...

 
Congratulations!
You know I wasn't upvoting blindly.
2
 
thank you @Santa @200_success !
 
Grats @janos!!!
 
11:31 AM
thanks ducky!
 
12:07 PM
0
Q: Simple 1 player Battleships game Python

ReticalityThis is my code for a battleships game, but it's very simple. from time import sleep from random import randint from math import sqrt global yes, no, board, length, height, area, gamesPlayed, \ wins, shipRow, shipCol, guessRow, guessCol, look yes = ["yes", "y", "yeah", "yh", "sure", "again"...

 
 
1 hour later…
1:23 PM
0
Q: Octave Problem: "Out of Bounds" Error

StaceyI am not at all proficient in programming. This is my first time trying to complete work in Octave. I have attempted to complete "for loops" to get the mean of each gene and then subtract this to centre the gene results in the 25 samples of the 5 genes. I get the right figures, however I also get...

 
1:33 PM
0
Q: A different implementation of Heap Sort in C

vidit jainThe following implementation is a bit different form the standard implementations I have read. Is it correct? #include <malloc.h> #include <stdio.h> void heapify(int[],int,int); void swap(int a[],int i,int j){ int t=a[i]; a[i]=a[j]; a[j]=t; } void heap_sort(int a[],int l,int r){ ...

 
2:07 PM
0
Q: to put rows of ascending digits and eliminate rows of oher digits, leaving other symbols remained

Windirfor example sequence "aasdf123456785fg87" will be transformed into "aasdf12345678fg". Using getchar and putchar and then using strings. With getchar and putchar: char c = 0, c_ = 0; char flag = 0; while ((c = getchar()) != '.') { if (isdigit(c)) { if (!isdigit(c_)) { ...

 
Wow.. aleady 200,000 some seconds elapsed since I last saw that counter.. wait.. it's tonight!!
 
Yay!
 
0
Q: Validating input against rules

user21611060I have created a method that validates inputs based on a set of rules. If an error is found, it is put into an array which can later on be used to display the errors to the user. Below is my code: register.php <?php require_once('core/init.php'); if(input::inputExists()){ $val...

 
2:23 PM
It's official, I'm sick!
 
Oh no!
 
2:54 PM
0
Q: Get status of CMOS battery from Windows

Bobby BrownI found this cmosbatt.bat from this website Rob van der Woude´s Scripting Pages. Is this relevant for XP to windows 10. I ran it on a windows 7 and results are CMOS battery is OK. I want to remove the CMOS battery and test but I'm afraid if I do I might flash my bios and cause the PC not to boot....

 
3:21 PM
@SimonAndréForsberg get well soon, Winter Bash is starting!
 
0
Q: Counting words in files - follow-up 4

MORTALPrevious question: Counting words in files - follow-up 2 Continue meta programming template version of counting words. Inspired by example of pirntf given by Andre Alexandrescu at GoingNative 2012. How can i improve this code? // //program name: WordCounter // //usage: C:\>WordCounter.exe tes...

 
Good answers here.
3
Q: Filter leading zeroes from numbers using only character operations for input and output

WindirProblem: to eliminate initial zeroes from numbers besides those followed by '.' or alone. For example if we input a-000123+bc+0000.0008-0000+0001.07 , we will get a-123+bc+0.0008-0+1.07). Using putchar and getchar only. No strings and pointers involved. I have working code, but I think it's co...

And another seemingly good answer.
1
A: Controller action to process orders and payments

MohamadI would suggest using a service object. I would like to see what others think about this. It looks like there's too much going on for the controller. The controller should be responsible for execution and value return. The model for processing the object. The service for wiring up the object and...

 
3:51 PM
@RubberDuck Oh yes!
@Mat'sMug I'll try my best :)
 
@SimonAndréForsberg sorry to hear that man, get well soon!
 
Thanks @janos, I'm working on it
interesting edit the OP did here: codereview.stackexchange.com/questions/73609/…
 
@RubberDuck yup, Brythan and Edward usually do that
 
Yeah @SimonAndréForsberg I noticed that earlier.
They do @janos.
 
@RubberDuck I guess he's not aware of the CC-BY-SA-thingy. Or perhaps he is, and therefore removed the code from the question.
 
3:58 PM
Monkingvening
 
@SimonAndréForsberg Well, then, try harder!
Going to run out of ammo soon....
I see santa has been busy today, thanks, Santa(s), and Monking!
 
Tis the season!
 
better make the answer on this one great:
2
Q: Making kexec reboots less painful

Michael Hamptonkexec is a way for a Linux kernel to directly boot another Linux kernel without going through the usual BIOS startup sequence, which can take several minutes on enterprise servers. The big problem with kexec is that Linux distributions don't set it up for you when you install a kernel, and settin...

 
@janos And that sort of functionality is what makes Linux great.
 
3
Q: Making kexec reboots less painful

Michael Hamptonkexec is a way for a Linux kernel to directly boot another Linux kernel without going through the usual BIOS startup sequence, which can take several minutes on enterprise servers. The big problem with kexec is that Linux distributions don't set it up for you when you install a kernel, and settin...

0
Q: CPU friendly infinite text scroller - velocity

kfirbaI've done some research today and read a lot about JavaScript performance. I learned that animating using the transform: translate makes a use of the GPU, hence reducing the CPU usage. I've also read about velocity.js which seems to be a replacement for $.animate(). I've tried to combine these t...

 
4:10 PM
Fantastic answer from a newer user.
2
A: Windows Batch Tech Tool

rojoWow! You put a lot of work into this. Thank you for sharing. I have some suggestions for you to consider. Add setlocal to the top of your script. This script uses a lot of variables. After you exit, they're still hanging around, junking up your environment, potentially causing problems for...

 
the good thing about Sundays it's easy to know how many votes you have left
 
The bad thing is one-vote-short ;-)
 
1
Q: Monitor Downloads folder and sort files as they are downloaded

light94I have written my first shell script that uses inotify-tools to monitor my Downloads directory. What i intend to do with the script is that, as soon as a file is downloaded, it moves that file to a folder named after its extension. For example: if it is test.pdf it will be moved to a folder named...

 
4:39 PM
 
most of us here probably already upvoted it though ;)
 
@Mat'sMug I've been 1-vote-short of a guru for about 3 months now.....
I presume that's because all the regulars have voted, and the visibility is low.
Also, I find when I go through 1vote short, at least 2/3 of the times there are badges which require >= 10 votes, I have voted for already.
1-vote short has created artificial steps in Code Review vote patterns.
 
@Mat'sMug lucky for you, I found something else interesting ;-)
and a little something for Simon's fast recovery too ;-)
and I'm officially
capped for the day, will start writing Python zombie killers now for tomorrow
 
@janos oh nice! Thanks Santa!! :)
 
it's the season, after all
(not that I'm not generous on other days...)
 
4:54 PM
@rolfl artificial patterns?
 
You know I wasn't upvoting blindly
 
0
Q: HashMap MySQL - Best Practice

RohithI have faced a scenario, the task was to read a file which contains 3 Millions IP Address. There is MySQL Table which contains Id,PrimaryIP, PrimaryIP can by multiple IP separated by #, more over that PrimaryIP can also contain CIDR IP. So totally, there are 8000 records, each record with mult...

0
Q: Node.js, web socket server which needs to query some API and to pass chunk per chunk of data to its socket clients every M seconds

SrleLet's say that i want to query some API which will respond with array of random numbers [4, ..., 17, ..., 25]. To keep things simple enough let's say that array has always 10 elements. For every element in that array i need to emit via socket to all clients just ONE number every M seconds till ...

 
I thought this chatroom was behind the artificial patterns...
 
a deluge of questions today
 
See the dips at score 9, and 24, and even 40 on the answers.... ;-)
3
 
5:02 PM
@rolfl lol nice graph :)
 
What's that chart showing exactly?
 
I had to use a logarithmic scale on the left.....
On the X axis is the post score.
on the Y axis is the count of posts with that score.
 
lol
 
two series, one is questions, the other is answers.
 
Ah
Well that's a nice one
 
5:04 PM
I made the count a logarithmic scale otherwise the scale is too large to see the blips.
There are some extreme outliers on the + score side, so I have excluded scores where there's only 1 post with that score.
Stack overflow is more entertaining ;-) data.stackexchange.com/stackoverflow/query/257875/…
 
Interesting graph Guru @rolfl
Oh wow!
People just don't vote there do they? Drives me nuts. 4 or 5 answers on a question. 0 votes.
If you think it's worth your time to answer, isn't it good enough for an upvote?
 
when looking at Score < 100, no outliers like here on CR
yeah that's a bit troubling
 
Maybe CR needs a meta-reminder?
 
@RubberDuck Ugh, tell me about it. One reason why I don't bother trying to find anything else to answer on SO.
 
OK, tidied up the query (@janos - it allows min/max filtering on the score range now): data.stackexchange.com/codereview/query/257875/…
@Mat'sMug About voting?
A 'Tis the season for giving' thing?
 
5:19 PM
nice!
I think it's not so great that we have these anomalies around 9, 24, 39
but at least we're not alone, serverfault seems to have similar too:
programmers too:
so that's a bit of a relief :)
 
@janos Interesting, they have a dip in questions at 39, and there's no 40 badge for questions
 
Natural phenomenon?
 
hm, that's odd
 
It could be a variation just based on volume.
At least on programmers, the difference is in the order of 10 posts total.
 
do I interpret it correctly that the anomaly (on CR at least) is due to small sample size for these scores?
 
5:34 PM
@janos No, at some points the CR counts are low, but the differences are large... See the actual numbers now in: data.stackexchange.com/codereview/query/257882/…
anything past score 20 on CR is suspect though.
 
cough
54
Q: Down with FizzBuzz... LOL

Mat's MugThis post is the result of reading through and following the LOLCODE Specification 1.2, and writing and executing my code on compileonline.com. My "hello world" was going to be a fizzbuzz. I like it because it nicely illustrates the basics of a language - variables, operators, looping, condition...

@rolfl why?
 
The numbers/volumes are too small to draw conclusions from.
Not that the voting is suspect, but, for example, the dip at 39 for answer scores, on CR, is the difference between....
 
There are 54 votes on that now?!
 
+56/-2
 
4@38, 2@39, and 3@40
is the 3 at 40 being just 1 more than 2@39, really an indication of the 1-vote-short being a game changer?
 
5:42 PM
55
Q: '100' is a magic number

janosMagic numbers are bad. I totally agree. But there's a magic number I find hard to fix: '100' is a magic number. Consider this code: public double getPercent(double rate) { return rate * 100; } public double getRate(double percent) { return percent / 100; } Sonar will raise 2 vio...

I don't think so
I think it's stuff that goes hot that's still the biggest skewer
 
I agree with that, but the one-vote-short is also making a difference
The question is whether 1-vote-short made the 40-score answers 40, or whether it is just noise at that point.
 
Individual voters can still make a difference...
 
16 mins ago, by janos
do I interpret it correctly that the anomaly (on CR at least) is due to small sample size for these scores?
@Mat'sMug ^^^
and I answer:
9 mins ago, by rolfl
anything past score 20 on CR is suspect though.
 
We need more voters.
 
meaning that the small sample sies for those scores make the conclusions suspect.
@Mat'sMug Oh, I agree with that....
We are off-peak for a while now.
LUNCH!
 
5:51 PM
Hmm... That peak and dip directly correspond to how much time I've spent here. Not saying all of those votes were mine, but I know it was a significant portion of the increase/decrease.
 
@RubberDuck same with my votes.
@janos If I'm gonna make a fast recovery, I'm gonna need a lot more than one vote!
I don't like being sick, I want to code!
 
that was not just any one vote ;)
usually there's a lag in the badge deliveries, maybe you haven't seen the significance yet
 
was it three?
oh, you mean this? :)
You've earned the "Good Question" badge (Question score of 25 or more) for "Tool for creating CR questions".
Thanks, @janosanta!
 
bingo ;)
that was my very last free vote this evening before
 
Naaaaw, you make me feel special :)
 
00:00 - 18:0018:00 - 00:00

« first day (589 days earlier)      last day (3430 days later) »