« first day (613 days earlier)      last day (3702 days later) » 
00:00 - 16:0016:00 - 00:00

00:00
[Zomis/Minesweeper-Analyze] 7 commits. 0 issues opened and 0 closed
[skiwi2/HearthMonitor] 4 commits. 0 issues opened and 0 closed
[Zomis/Connecting-Blocks] 12 commits. 2 issues opened and 2 closed
[Zomis/Prosit] 3 commits. 0 issues opened and 0 closed
[Vogel612/testclient_javabot] 0 commits. 2 issues opened and 0 closed
[Zomis/Combinatorics] 7 commits. 0 issues opened and 0 closed
wow, that's quite some activity!
No activity on @RubberDuck though
@SimonAndréForsberg So does @Duga just post once a day?
@Hosch250 it posts a summary of the daily events once a day, but it also posts some information about events as they happen in various chat-rooms
I see.
^^ there you can see even more
00:13
Yeah, I remember from VBA now.
Anyone know how long a recent name lasts?
I renamed myself twice during Winter Bash to get Chameleon, and they haven't gone away.
@Hosch250 Gone away from where?
From my profile.
Apparently, SE made it so you can't rename yourself too often.
Like FB.
Once you have x recent names, you get locked into that name for a while.
What section of your profile is that?
Or do you mean it won't let you change your name now?
Oh, I don't want to change my name, just curious.
Hmm. Good question. I don't have that, but I only changed my name shortly after joining the site 7 months ago.
00:28
0
Q: Method to convert String to int array

LegatoI was working on a suggestion for this question, but the method I would've suggested the OP do something similar to seems a bit convoluted. It's supposed to take a String input, and return an array of only the integers deliminated by spaces. It does this correctly, but It feels like I may be doi...

Yeah @SimonAndréForsberg I made a few commits yesterday, but I've gotta be a little more balanced. Viz. my wife took my laptop...
And Mug's been playing with ANTLR for the parser.
@Hosch250 I believe there's a 30 day limit on changing name. If in doubt, ask @Mat'sMug - he's the expert.
@RubberDuck "the dog ate my homework", "my wife took my laptop"...
@RubberDuck What's ANTLR?
It's a parser generator. You give it a grammar file and it creates a parser for you.
a lexer and parser generator :)
Hai!
Hai!
Kthx TTGTB Bye!
00:35
Good night @SimonAndréForsberg!
And then you run the parser against a VBA code base and start scratching your head until it bleeds
2
Lol. Nice.
Seriously though, she goes back to work next week, so I'll have more time on my hands then.
Kids' bed time, bbl
01:13
We are starting maintence on the SQL cluster in NY and possibly Chat in OR, hangout is up at: http://youtu.be/Hib5Gmj2dbo
Bringing down secondary SQL servers for hardware maintence now - this should cause no user-facing impact.
02:03
0
Q: The Breakfast Club attendance

QuillSome more of my wonderful C# code! Okay, so this one, checks a string called breakfastHours similar to 1567 Which translates to Monday, Friday, Saturday, Sunday. 1 = Monday 2 = Tuesday .... 7 = Sunday The user then checks the boxes for the days they visited the club, wh...

0
Q: For Loop issue in javascript

SupermanI want some assistance to fix this particular issue with my code where after giving the range of date. It generates multiple instances for the calendar of each month and in each iteration it highlights a next selected date. Whereas I'm trying to achieve that my code iterates over all the selected...

02:48
0
Q: Program that gives equation numbers then checks for condition

PlateArmorThe program attempts to solve this problem: Is there a number x with the property that 2x+3 = x^2 What I want my program to do is to loop until it finds said number giving it values. However I cant compile it due to a type error in line 6 ( if 2(i) + 3). Can I use a for for this or do I reall...

02:59
We will be taking chat offline in a few minutes to move database servers in Oregon.
I bid you farewell.
03:29
Way to make me look silly, fake-offline-announcement.
@CaptainObvious @Phrancis @Jamal The JSBin works. The only problem I see is that the author didn't embed the code to be reviewed in the question.
@JeroenVannevel To be fair, they did say there shouldn't be any user-facing impact
@200_success Deleted by user... should we vote to undelete?
It appears it's not a matter whether it works but whether it works as intended... The way it's phrased (and the way it behaves) seems to support that...
> Whereas I'm trying to achieve that my code iterates over all the selected dates and separate them by each month and then highlight them on the relevant month's calendar.
I don't think people fully appreciate how cute my cats look
2
Allow me to change that
03:45
@JeroenVannevel AWWWWWWWWW
@Phrancis Right?!
We are failing over to our redundant SQL servers now, there will be a brief maintenance page.
@JeroenVannevel ^^ isn't she cute too?
@Phrancis Looks exactly like two of the cats I had! Exactly the same
@JeroenVannevel Well call her Stripey. She is a rescue (as other 3 cats of mine are)
03:51
...
My cat was called "Streepje"
Literally: "Stripey"
I kid you not.
Guess it's not that original of a name lol
I prefer to think of it as fate
2
All my cats had old man's names. Like Kurt
2
Sure, fate is ok with me.
Mine are all 100% black
And entirely unrelated to eachother
Haven't got a picture of the 3rd one though. All she does is sleep in my brother's room, sleep on my dad's chair, stroll around my room and piss against the potatoe bin in the basement
03:56
@JeroenVannevel We got one like that too. She looks kind of like a Holstein. And she's about as fat. Name's Sylvia. No picture though :(
0
Q: Optimizing a dynamic programming solution for "Oil Well"

sshI'm trying to solve the Oil Well problem on Hackerrank using dynamic programming and it works. However, it times out for some of the test cases. I wanted to know how this program can be improved so that it runs faster. Basic idea is: f(vertices) = min( max(vi to {vertices - vi}) + f(vertices - v...

0
Q: Implementing Binary Search Tree in JavaScript - remove function

wmockHere's my implementation for a Binary Search Tree in JavaScript. In addition to asking for a code review, I'm also hoping you can help me with the remove function I have implemented. Specifically, it seems to be removing nodes properly until there's 2 nodes left in the tree: var binaryTreeNode =...

Hello people.
Bye people.
Hye @MannyMeng
04:31
0
Q: Convert ID to short URL using recursion in PHP

zairwolf<?php /** * Convert ID to short URL in PHP by zairwolf * * Demo: http://www.you4be.com/ID2shortURL.php * * Source: https://github.com/zairwolf/Algorithms/blob/master/ID2shortURL.php * * Author: Hai Zheng @ https://www.linkedin.com/in/zairwolf/ * */ //basic define $_charArr = "abcdefg...

We are now moving chat - ETA for downtime is a few minutes.
Chat is back online!
@CaptainObvious function ID2shortURL($id){ R U Serious? 4 Real?
04:57
@Phrancis @Jamal You were right after all. I misunderstood.
@200_success Cool
05:23
0
Q: AngularJS wrapper for p5.js - p5 directive and service

wxactlyI wrote an AngularJS wrapper for p5.js called angular-p5: angular.module('angular-p5', []) .service('p5', ['$window', function($window) { return $window.p5; }]) .directive('p5', ['p5', function(p5) { return { restrict: 'EA', scope: { sketch: '=' }, link: function(scope,...

What do you think this mean
 if ((fullPath = openFileDialog.FileName) != null)
Does this mean the actual action of assignment can return values which can be null
or
it actually assigns the whatever value to fullPath and then checks if fullPath isn't equal to null?
06:02
@Mehrad the second one
Monking @all
Sup @Heslacher
thanks for the help
06:56
0
Q: Reading and writing Serializable objects using NIO

Tapas BoseI have created the following class to read Serializable object from file and write to a file. import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.File; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java...

 
2 hours later…
08:36
0
Q: Calculate compilation time from AssemblyVersion attribute

Kevin VuilleumierIn my program, I display the compilation time which is calculated from the AssemblyVersion attribute. The attribute is set to generate automatically a version number (with asterisk). As you know probably, the build is equal to the number of days since January 1, 2000 (local time), and revision i...

09:25
Monking
Arggh JavaScript
83
A: Does using == in JavaScript ever make sense?

Benjamin GruenbaumI'm going to make an argument for == Douglas Crockford which you cited is known for his many and often very useful opinions. While I'm with Crockford in this particular case it's worth mentioning it is not the only opinion. There are others like language creator Brendan Eich who don't see the b...

Why?!
0
Q: Kendo grid optimize

nojlaI have two kendo Grid named: var sourcegrid = $('#usersGrid').data("kendoGrid"); //SOURCE GRID var destinationgrid = $('#teamGrid').data('kendoGrid'); //DESTINATION GRID In sourcegrid i have 1000 records and in destinationgrid has no records. I have button that transfer data from so...

10:19
0
Q: Creates an Excel Inventory from Cisco Show Version text files

RMPhoenixI'm new to Python and this script had a lot of help from the generous stackoverflow community. It has been written for network engineers to be able to create an Excel inventory of switch/router device info from a folder of 'Show version' .txt files. I've put it here to help me learn about Pytho...

10:51
@rolfl @Donald.McLean WE ARE BEING WATCHED!
(back in 45 min ;) )
MPS is interesting...
Morning all :)
11:17
monking @all
@SimonAndréForsberg we are .... not on torrent yet, though...
Monking @all ;-)
Monking @DJanssens, @chillworld, @rolfl and @{all / {@DJanssens, @chillworld, @rolfl}}
11:42
@rolfl I just saw it. You shouldn't have a problem either.
@rolfl that's the spirit!
12:21
@JeroenVannevel back from Budapest, and I must say, it's a nice city indeed!
I've decided any future cats I have will be named after great scientists
4
@nhgrif Smart, and if you have a black cat, like @Jeroen, you should call it:
Subrahmanyan Chandrasekhar, FRS (/ˌtʃʌndrəˈʃeɪkɑr/; October 19, 1910 – August 21, 1995), was an Indian American astrophysicist born in Lahore who, with William A. Fowler, was awarded the 1983 Nobel Prize for Physics for his mathematical theory of black holes, which was a key discovery that led to the currently accepted theory on the later evolutionary stages of massive stars. The Chandrasekhar limit is named after him. Chandrasekhar - in distinct periods - worked in various areas, including stellar structure, theory of white dwarfs, stellar dynamics, theory of radiative transfer, quantum theory...
^^^ Nobel prize in physics for mathematical models for black holes.... ;-)
monking @skiwi
how are you?
I'm fine, you?
@DJanssens Glad you enjoyed it!
12:34
I'm great
new challenges what comes to me
12:45
Nomination for the most awesome user on Code Review (note, that link goes to your profile... you are all awesome!)
7
mutter mutter ... .;0)(
link doesnt work
@DJanssens It did for me!
@rolfl oh thank you! ;)
I think I finally get it :D
What's the simplest way in Windows to take a text file, and output alll lines starting with X to a new file?
I do also have some tools installed that mimic Unix commands
12:56
@SimonAndréForsberg Part one of a THREE part story arc.
Greetings, Programs.
@rolfl why most awesome?
Oh, maybe I will accumulate all three and then binge-watch
@skiwi If I had the time to create a language, it very much would be.
skiwi use openoffice and regexes?
@Donald.McLean You are saying, that, you don't have time to create a whole new language?
12:57
@skiwi If you have grep .....
@rolfl I think I have grep somewhere
oh lols, shhhhhh ^^
@skiwi I haven't even had time to finish my log search tool, which would be much more useful.
@skiwi grep -e '^startword' filename
Will it output to a new file, or overwrite?
12:58
output to stdout ... so redirect it.
>> newfile
Ah ok
@rolfl LOL. Most awesome link. We're all awesome.
Hmm, awesome empty file
v> grep -e '^#' *.cpp
encdec.cpp:#include <iostream>
encdec.cpp:#include <string>
encdec.cpp:#include <fstream>
encdec.cpp:#include <ctime>
encdec.cpp:#include <sstream>
encdec.cpp:#include <cstdlib>
nfact.cpp:#include <iostream>
nfact.cpp:#include <algorithm>
nrolfl.cpp:#include <iostream>
pe12.cpp:#include <iostream>
pe12.cpp:#include <math.h>
sqsrt.cpp:#include <cstdlib>
13:01
grep -e '^[Zone]' output_log_normal.txt >> output_log_normal_zone.txt
Or is it parsed as regex with the [ ]?
[ and ] are special....
yes, regex ;-)
(the -e makes it an expression)
(the ^ makes it match the start-of-line)
Now it makes sense
If I would use it more than once a year, then I maybe wouldn't forget it every time ;)
2
@Donald.McLean I thought this was part two?
TTGTTM (Time To Go To The Movies)
@SimonAndréForsberg Ummm. Maybe. It isn't part three, that's for sure.
I currently have a black cat named Bacon, and a golden one named Waffles.
13:17
Bacon is a scientist.... but, Waffles, never heard of them.
2
Francis Bacon, 1st Viscount St. Alban, QC (/ˈbeɪkən/; 22 January 1561 – 9 April 1626), was an English philosopher, statesman, scientist, jurist, orator, essayist, and author. He served both as Attorney General and Lord Chancellor of England. After his death, he remained extremely influential through his works, especially as philosophical advocate and practitioner of the scientific method during the scientific revolution. Bacon has been called the father of empiricism. His works established and popularised inductive methodologies for scientific inquiry, often called the Baconian method, or simply...
@rolfl ehh?? you didn't hear of Waffles?
Sometimes I'm really genius
So HearthStone is a card playing game, and I'm trying to figure out in the logfiles which cards are in my deck
64
A: The Many Memes of Meta

GEOCHETMeme: Waffles. Originator: Eric Cultural Height: Late August and Early September, 2009 Background: Eric just really likes waffles, and apparently so does everyone else who has even a shred of decent humanity. Those who do not like waffles may also be Vampires and hat...

If I could actually see what cards would go into my deck in the logs, I could also cheat with it when playing the game
don't you know the cards in your deck from the start @skiwi
Never plaed it before, but isn't that how normal deck builder games are?
13:29
Ah yes, good point, I was referring more or less to the order in which they are in
ah lol
but I should be able to figure out what cards are in my own deck
Sounds interesting ;)
Sounds like a hell to reverse engineer log files :p
Sounds like you are playing without a full deck there....
Two new answers to the nominations categories:
13:32
I was thinking to be able to "quickly" define all different possible log entries in POJO's
Turns out I was wrong.
1
A: Best of Code Review 2014 — Now accepting nominations!

MastBest Newcomer (Question) category: Best question by a user who wasn't a member yet before 2014.

1
A: Best of Code Review 2014 — Now accepting nominations!

MastBest Newcomer (Answer) category: Best answer by a user who wasn't a member yet before 2014.

Good categories, but late submissions.... what to do ... ?
@rolfl Ask a mod about his opinion ;-)
I like it. I bet we could find someone.
Or two.
(But if someone nominates me I'll down vote it)
I am a newcomer.
I joined in February 2014. :)
Yeah? I didn't know that.
13:44
Right... I'm a newcomer, too then
Why would your entire hearthstone deck order be pregenetated?
^^ that
Wouldn't it just pick a random one out of the remaining on each draw?
@nhgrif me too ;)
Pregenerated just opens it up for cheating for no other benefit.
13:46
It could also be randomized, yes @nhgrif
Fact is that (as far as I see) the log files are not willing to tell me what cards it puts in my own deck
I too can hardly believe its pregenerated. The guys of Blizzard are decent programmers ;)
I'm wondering how to convert the log files to log entries
(It seems easy)
But entries may span over multiple lines
0
A: Best of Code Review 2014 - Lots of Laughs category

RubberDuckI just realized that meta answers were eligible for nomination too, so... Mat's Mug on Can I put my code on a third party site and link to the site in my question? Why? Because cats and the internet are like peas and carrots and I can't think of anything that could possibly drive home the reaso...

@skiwi how can you distinct a entry?
Maybe every unrecognized input line should be sent to the reader, that selects a method to read it (based on the pattern of the first line), and then that part can request more lines if it thinks it needs it
@DJanssens Pretty much only by reading the first line
If multiple methods are applicable then I don't think it can do much more than attempt with method 1, if it fails rewind and attempt method 2
13:59
hmm, could work
Interesting find of today:
TODO.java
It's an empty class with a todo list stuffed into it.
2
14:20
@Pimgd I should annotate the class with : @Deprecated
Hmm. One of the tech web sites just published a review of 4 Java IDEs.
Argh, I do not like sites where you need to register to read the entire article.
@DJanssens tl;dr - The like them all, though for different reasons and uses. IDEA gets the highest total score though.
3
I was expecting Eclipse tbh
What was their main reason to pick IDEA if I may ask @Donald.McLean ?
InfoWorld Scorecard

Ease of use (20%)

Tools (20%)

Add-ons (20%)

Cross-technology support (20%)

Documentation (10%)

Value (10%)

Overall Score
Eclipse 4.4.1 (Luna) 7 9 9 8 8 8 8.2
NetBeans IDE 8.0.2 9 8 8 8 8 8 8.2
JDeveloper 12c 7 8 7 8 7 8 7.5
IntelliJ IDEA 14 9 9 8 9 8 7 8.5
14:36
Thank you! I'm confused by the fact that IDEA has a higher score for addons than eclipse, isn't eclipse older and doesn't it have a larger backbone of developers that create plugins/addons
I think the main thing that they (and I) like about IDEA is that the folks at JetBrains try very hard to make the tools powerful, innovative, and reasonably easy to use. Everyone has their own unique style, way of thinking, and way of working, so what one person finds completely obvious and natural is not the same as what other people find obvious and natural. I like IDEA very much - it's almost an extension of my own mind how well it fits me.
@DJanssens Addons is column 3, Eclipse gets a 9, IDEA gets an 8.
To be honest, I'm biased, since I'm using Eclipse on regular basis, while I only touched IDEA once
@DJanssens The two have very different ways of approaching things. I had to use Eclipse for several weeks, and found it absolutely maddening to use - it just doesn't fit me.
@Donald.McLean my bad, the last one is the average, I read it backwards
google.com/trends/… doesn't seem to be a representative sample
The summary was amusing - they declined to pick a winner, and mentioned how passionate fans can get about their favorite.
14:41
Haha, I have to agree with them
@DJanssens It probably is. I really don't care. As I said, IDEA fits me best, so that's what I use.
0
Q: Webstorm warning about mutable variable is accessible from closure

Anders ÖstmanI have this piece of javascript. if (!staff.hours.monday.some(function (shift) { var start = new Date(input.start).setHours(0,0,0,0) + shift.start; var endOfShift = new Date(input.start).setHours(0,0,0,0) + shift.end; while (start + service.duration <= endOfShift) { ...

0
Q: Segmentation fault

user3201264//i need to find the the min divisor of series of number in each test cases here t is the test cases n is the number of numbers in each series #include<stdio.h> #include<stdlib.h> int min(int,int); int min_prime(int); int gcd(int,int); int main(){ int i,j,t,g; int n=0; int *a; sc...

I guess I should give it another chance then. Anyway thanks for the nice information @Donald.McLean, I'm gonna go afk for a bit.
15:06
@DJanssens IDEA is awesome!
Well, most of the time.
@Donald.McLean You have the Ultimate edition, I assume?
@DJanssens Note that on 26 Jun 2010 there was a partial lunar eclipse, and then July 11 there was a full solar eclipse. Then again on 21 Dec 2010 there was a full lunar eclipse, and on 4 Jan 2011 there was an almost complete solar eclipse.....
Those will likely explain the spikes in the searches on google for 'eclipse'.
I'm probably missing something here...
What's the reason for putting a comment in a PreparedStatement?
return connection.prepareStatement("/* ping */ SELECT * FROM gateway.account LIMIT 1").execute();
I cannot think of one, other than to make the text unique in some way so that it does not reuse a different prepared statement from a machine called 'pong'.
if it helps, it's in a function called isDatabaseConnected
...
Would the comment show in a log of executed queries on the server?
Then it could be to make the log understandable - "why is this query here"
When debugging things through a JDBC tracer, or something, or an 'on-the-database' .....
yes
Or, when you have a 'high frequency SQL' report, you will know why....
15:19
Supposedly vb.net for-each loops are slower than regular for loops?
Supposedly
Not sure why that is though.
Might have something to do with the object assignment.
That makes no sense to me.
It's the opposite in objc/swift.
Forin loops are WAY faster in objc/swift
@skiwi Yes, paid for by my employer.
@Donald.McLean Okay, that's cool
@nhgrif According to Jon Skeet, they are indeed slower, but he doesn't mention why.
78
A: In .NET, which loop runs faster, 'for' or 'foreach'?

Jon SkeetFirst, a counter-claim to Dmitry's answer. For arrays, the C# compiler emits largely the same code for foreach as it would for an equivalent for loop. That explains why for this benchmark, the results are basically the same: using System; using System.Diagnostics; using System.Linq; class Test ...

15:23
Fail.
Lol. ;)
I can tell you why they are faster in objc/swift if I weren't on my phone
I do think it's the object assignment. According to this, the IL code comes out different. ForEach gets two additional variables, which could explain for some extra processing time I guess. dotnetperls.com/for-foreach
foreach creates an extra object in its loop
And foreach uses an enumerator, I believe
whereas a for uses direct access to the indices
take a look at the difference in output
You have the entire enumerator overhead
no wait
15:40
Did I see 'nop' multiple times in there?
yes, but it was a bad comparison regardless
the for used an array and the foreach a list
array with for:
array with foreach:
So how many times slower is it?
there's slightly more IL generated using a foreach but I'm not versed enough in IL to see what the impact would be
Sorry, I can't see the image - I'm on my phone.
@Hosch250 It all depends on the exact situation
for example: if you use a foreach with an array, it will convert the foreach to a for
which is why the IL is so similar
15:44
Ok. I can see the image now.
Makes sense.
however, take a look at the IL when you use a different collection
For with list:
Foreach with list:
The foreach uses the enumerator and has a few virtual calls
including a wrap inside a try-catch and a call to dispose
the for doesn't have any of that, just a call to List.Count
why is Console.WriteLine (i); not a syntax error
@Pimgd Why would it be?
SPACES
So would it be a problem on a phone?
15:48
0
Q: Cleaner way to work with Ruby hashes

SeanGenevaI have a method that takes a model object, reads through it's children and returns a hash of status counts. It should only return a count on a status if one exists. This method works, but I was wondering if there are a cleaner, more Rubyish way to write it. The batch_details table is getting v...

Hmmm... it'd be interesting to see the spec on that.
Spaces can be placed in many places
Java is actually worse in that than C#
probably =/
It's been a while so I forgot but I saw a code snippet once that had spaces in the weirdest of places
I use foreach on my phone app a lot. Could that cause avoidable problems on low-end phones?
15:50
preoptimization
Given the right circumstances it might even blow up the ISS
It doesn't appear to so far.
Question is whether it is an actual problem
Not on my device.
If you notice performance problems, profile your app
Don't make mini-optimizations like this until you've found them to be a cause of worry
15:51
I know.
Performance issues by using for-each loops < App crashes when ...
I reset my computer last night. Installing update 8 of 129.
Personally, I feel that I can do something about bad performance apps, like turning off a couple background apps
but for apps that, you know, crash when wifi is poor, or a request times out, or you turn the screen on and off...
or freezes upon displaying an alert...
then you've got more worrying things going on than bad performance
@rolfl Wait what?
^^^ congratulations ;-) You are an awesome contributor ..... and you, and you, and you!
2
15:56
0
Q: Recursive binary search tree without iterators

morbidCodePlease review my BST. //I don't know what to return when key is not found, so throw std::runtime_error() //this code does not have handwritten copy/move/destruct because I think unique_ptr already handled the node pointers template<typename T> using Ptr = std::unique_ptr<T>; template<typename K...

rolfl talking to the mirror
I feel like I'm missing half of the story here
@JeroenVannevel It's not a joke, and it is.....
and you are ;-)
@rolfl o_O
Guess I'm missing the punch line
(Jeroen - hover over the link, and read it carefully).
15:59
ahhhh
Man, now I'm really dissapointed
00:00 - 16:0016:00 - 00:00

« first day (613 days earlier)      last day (3702 days later) »