« first day (1150 days earlier)      last day (2866 days later) » 

12:00 AM
RELOAD! There are 2484 unanswered questions (92.9560% answered)
 
@Mast Can you guess why this happens?
Let's see who figures it out :v
 
 
1 hour later…
1:04 AM
@BernardMeurer I suspect incorrect shifting of values from an array, perhaps an out-of-bounds problem.
Perhaps a synchronization problem, if it's complex enough.
Are you running that from an Arduino zero?
Depending on how the data gets there, it might even be a loose wire, but you already indicated it's a software problem.
 
1:40 AM
@PeterCordes After 10+ Posts, you've contributed nothing but guesses and paranoia. If all you want to do is nitpick, maybe you should try codereview.stackexchange.com. — bitwise 28 secs ago
 
2:08 AM
We do much more than nitpicking at Code Review. Feel free to come over and look for yourselves. — Mast 1 min ago
 
2:44 AM
@Mast I'm not even going to repeat what is listed as the top post on your profile ;) — bitwise 29 mins ago
Somehow I feel like I lost credibility after writing that question...
 
2:59 AM
@Mast yay free comment flags
 
@Quill we need those in Arqade
Can't get 500 flag thingy
Is flagging and VTCing at the same time acceptable?
:( Flag -> Needs Close counts against Close Votes.
 
Yeah, TWP and Academia have a comment issue never mind
 
I average 6-7 flags a month :(
 
3:15 AM
monking
 
hey there Phrancis
 
@Duga Strange comment
How's it going?
 
Not sure whether to be disappointed that I wasn't asked to come to a meeting, I'm a junior, but there's only three devs....
 
Eh, meetings...
 
3:31 AM
@Quill Be glad.
I am most certainly not looking forward to meetings--I like dev-to-dev discussions as appropriate and tackling issues.
 
It's not that I want to go, I just thought they valued my opinion more
 
Don't worry about it.
My dream is to start a small company and do all meetings just like Mat and I do meetings--through a chat system.
 
Google Hangouts is cool too
 
If it is anything like Skype, I won't care for it.
 
That's actually a great idea @Hosch250, if you can chit-chat throughout the day, participate while still at your desk, etc.
 
3:35 AM
I don't even have Skype installed. If someone wants to talk to me, they can either come talk to me, or they can send me an email.
@Phrancis I know. I'm good at great ideas ;)
 
Getting everyone to sit down in one room at the same time is a waste of resources most of the time
 
Hangout is like Skype, but for bigger meetings
 
(That was half-joking, half not.)
 
Hangout is pretty cool, i've sat on a couple of SE hangouts when they were upgrading or working on their database servers
 
What I like most, though, about digital communications is I can refer to it later.
 
3:37 AM
@Phrancis they do one after the Town Halls as well
 
@N3buchadnezzar Last I heard, it took three lefts to make a right. Or, if you are just making a right angle, one left.
 
After the first one Vogel played some Metal in the hangout
 
I had an Idea a while back.
 
We ought to do a Hangout just for Code Review people some time, if just for fun
 
What if I use Roslyn to make not analyzers/fixes, but on-demand queries about code?
 
3:38 AM
virtual meetups lol
@Hosch250 what kind of queries
 
Like, where Linq is used in the code base, where variables are captured in closures, and such.
 
That'd be interesting
 
Turns sound notifications off--I don't need them on the Bose
 
could you use that to profile the code for speed issues
 
@Quill No, I wouldn't be running the code itself.
 
3:40 AM
@Quill Don't you think that'd be cool though?
 
But, it could A) provide an avenue for expensive checks.
 
@Quill I thought there are already profilers that do that
 
B) provide information of interest on potential slow spots and bugs
 
I do think that would be cool, but it'd be a bit weird given the timezones of people
@Phrancis yeah but they don't do that in IDE while you're coding, or at least not very well
 
@Quill ah right
 
3:41 AM
I wouldn't do it, but don't let that deter you from having fun :)
@Quill Profilers really need to actually run the code.
 
@Hosch250 which is why you need the Roslyn magic
 
But, for example, the find Linq feature would be geared toward improving performance, for example.
 
@Quill Maybe be so, I think the times SE picked for their town halls (was it 21:00Z or so?) was alright
 
it was 3am in the morning for me.... not that it's bad
 
Suppose it depends on the day of the week, on a Friday or Saturday
 
3:44 AM
Well, you do know the Pacific and Atlantic oceans cover a lot of time zones, with only small(ish) islands in there.
 
Right
 
Perhaps you could get the most critical timezones in that block.
 
it depends how often they are, like PPCG tried to do a discord meetup daily and no one went
 
@Quill is AU (and possibly NZ) all in one time zone?
 
NZ + all of AU is three timezones wide
 
3:45 AM
Ah ok
 
@Quill Too often. Just a small meetup would net a lot of people.
 
Monthly or whatever
 
If they were once-offs, I would make the time. Monthly or weekly, I'd try really hard
 
Let's run it by some of the other regulars later on, most everyone is asleep right now in America and EU
 
I think other people would do the same
 
3:47 AM
@Quill As opposed to 3am in the afternoon :)
 
@Phrancis it adds a little more drama to the message ;-)
 
Even monthly is too often, I'd say. I wouldn't do it more than every 6 months. Keep it novel.
The people who really care about being that close of friends are already on Skype or G+ together.
 
I wonder what we could talk about, agenda vs. just hanging out
@Hosch250 Good point
My 3 most frequent Skype contacts are from here :)
 
If it were me, I'd do something maybe on the other side of the year from the Secret Santa thing.
Or maybe a few months before.
 
I need to find me a new image for summer, that hat and jacket were on a cold day
 
3:53 AM
My image is timeless :)
 
How old is he/she now? (the puppy)
 
TBH, I'm not sure.
About 4.5-5.5, or so.
I'm pretty bad at dates--I even have a hard time remembering my own age, sometimes.
I know I turn 21 this year, for example, because I graduate next spring, and I know I graduate when I'm 21.
 
@Hosch250 I know that feeling, sometimes I have to think back what year I was born to remember my age
 
@Phrancis Same here. Glad I'm not the only one.
 
I'm approximately 17093039 minutes old :D
 
4:00 AM
It was pretty tough before I even remembered my birth date--I only started remembering because I constantly needed it for ID.
 
lol I bet
 
I'm irked with Groove Music.
They took away the Sort By Genre option.
I switched to Sort By Artist, but I have to scroll forever now since I have a bunch of miscellaneous songs by a bunch of different artists...
Admittedly, it was occasionally tricky to find where new items where when I added them...
The new hover-play on an album is cool.
 
speaking of music, Spotify's Discover Weekly gave me some decent tunes this week
 
Is anyone interested in discussing gardening problems?
> [It] is one of the leading leafy green vegetables in Nigeria, where it is known as ‘soko yokoto’, meaning "make husbands fat and happy".
 
4:17 AM
If JD was here you could probably talk about trees and leaves with him :)
 
LOL, that would be interesting as well.
We have a problem with Japanese beetles.
 
Are those the ladybug-looking orange-ish beetles?
 
No.
They are "shiny iridescent things"
 
Ah, never seen those around here
 
@Phrancis Be glad of it.
 
4:20 AM
 
On a short walk around the neighborhood, we can easily find 200+ in the summer--we are already killing 20+ a day in our own yard.
 
I was referring to those^, we have them here
 
Yeah, we are infested with them in the fall too.
 
Do these Japanese beetles kill vegetables/crops?
 
One day last fall, there were probably millions flying all over the place--and I'm not exaggerating.
Well, they eat the roses and the birches.
My siblings adore killing them. I don't care for the killing, but I'll report them.
Talking about killing, that reminds me of two things:
1) my brother found the mosquito that can best Darth Plagueis--he killed it, and it resurrected itself.
Darth Plagueis couldn't do that--he could only "create" life.
 
4:24 AM
Darth Plagueis...?
 
he's from Star Wars
 
Yeah. Palpatine's master.
 
Must be one episode 2 or 3 that I haven't seen
 
Umm, I haven't watched any--I picked this up from the web.
 
I suppose it wouldn't hurt to watch them some day
 
4:26 AM
WT*? Did you see that flag?
> hi
 
yeah....
 
NVM about the second, can't word it right ATM.
 
WTF
I guess someone thought the mods and others must be bored at the moment and decided to try to entertain them
 
Mebbe it was a test.
Or an accident.
 
0
Q: Unit tests for custom Map wrapper

Jack WilsdonA while ago I asked for a code review of my automatically keyed map and I have recently had the time to get around to writing some unit tests for it using JUnit4. The test ensures that all of the "primary" functionality works, i.e. the things that could actually go wrong. The reason I don't test...

 
4:30 AM
@CaptainObvious woohoo, unit tests!
I need to start writing a few tests for the app I'm building, I really don't know how you're supposed to unit test GUI components (or if you even can)
That'd be like unit-testing HTML
 
what templating engine are you using?
 
Swing
 
In C# WPF you don't unit test the actual display, but you do test the code-behind/VM.
 
oh, I don't know anything about Swing ;-;
 
So, you can have things go bad between the UI and the code, like the display not updating, and not catching it.
 
4:32 AM
@Quill Eh, it's run-of-the-mill GUI stuff, a bit dated but reliable and not too difficult
 
However, it is pretty thorough when testing the actual code.
 
@Hosch250 Ok, I don't really have any of that kind of stuff yet, just buttons and text fields mostly
 
@Phrancis Are you using commands?
 
I don't know if you can/should unit-test database code either, really I think the only thing that I could test (and I already have a way of doing this with the GUI) is to make sure a valid connection is available
 
In C# WPF, you code almost everything against commands.
Like, a button-click calls a command's Execute(object) method.
 
4:34 AM
Well, most of the components just have action listeners
That's how it works in Java/Swing
 
You can then simulate a button-click by calling command.Execute(value) from the test.
 
        btnVerifyCredentials.addActionListener(e -> {
            JdbcConnectionCredentials testCredentials = new JdbcConnectionCredentials(
                    fldServer.getText(),
                    fldDatabase.getText(),
                    fldUsername.getText(),
                    new String(fldPassword.getPassword())
            );
            boolean pass = verifyJdbcConnection(testCredentials);
            if(pass) {
                JOptionPane.showMessageDialog(null, "Credentials validation PASSED.");
 
I don't get Java, but basically you test the handlers, but not the actual UI (as a general rule, that is).
@Phrancis Oh, that's probably not how you want to do that.
Extract the content of that into a method.
Make the action handler call that method.
 
Yeah that's a good idea
 
Then, you can simulate a button click by calling the method.
 
4:36 AM
A lot of GUI code just seems like boilerplate stuff, not particularly interesting
 
Of course, you can't prove that the button actually calls that method if you make a typo, for example, but that is why you manually test the thing too.
@Phrancis WPF really cuts down on that.
 
A lot of this is also already extracted, like FrameDefault, PanelBasic, LabelTitleCentered, TextFieldSingleLine, etc. those are all custom component classes with a lot more boilerplate there
 
I think we are ready to stable-release Rubberduck in a week or two, unless I broke something that I don't know about.
Anyone want to help write the content for the website?
It would be awesome testing for RD too, if you didn't know the features and had to blunder around a bit.
 
I'm good at writing documentation, but have never used RD and I avoid VBA every chance I can :)
 
@Phrancis Good for you for avoiding VBA.
3
You should use RD, though.
 
4:41 AM
insta-star
Now, I don't have MS Office on my laptop, so even if I wanted to do VBA, I couldn't
 
It only runs on Windows, anyway.
 
Yeah, my new laptop is Windows
 
OK.
 
Bought it last month
 
Which brand?
 
4:42 AM
I do like Windows 10
It's a MSI Gaming Series
 
It isn't as stable as Windows 8/8.1, but I like it too--especially now that they've had time to fix a few bugs.
I swear by my 3-year-old HP Envy.
 
It was a good buy for $900 the specs are really good, and I can boost it up from 8 GB RAM stock up to 32 GB
I miss OS X a bit, but there are things about Windows that I like too that OS X doesn't have
 
It would probably cost 3k to replace it now; we got it on clearance for 2k + Office 2010 (including the 2013 upgrade) + 3 years of full warranty protection.
I just had to help my sister with her Toshiba having BSOD's and complete lockups caused by a failing driver.
Couldn't figure out what was up, so we reinstalled Windows.
 
Ah, I've looked at them. They make nice systems as far as I can tell.
Next, we got a notification that Windows couldn't load the AMD display driver right.
 
4:46 AM
Monking
 
Then, the computer locked again, so I disabled that driver.
@Heslacher Minking.
The Intel and AMD drivers both showed warning signs, so I upgraded them both. The AMD driver still caused problems, so I re-disabled it--no problems since.
Then, we discovered she didn't have sound anymore. After uninstalling and reinstalling every sound driver on the system, I installed the Realtek driver from the support page, and it works.
My sister was going next thing to hysterical, though, which made it trickier than it should have been.
So, that and church and watching the Ken Burns Mark Twain documentary and hunting Japanese beetles was my weekend. How was yours?
 
0
Q: Standard Test methods for checking values in Lists, Maps etc

Bilesh GangulyI needed to check the values in various Lists and Maps. In my case, the various types of Objects that needed checking were of four types: String List<String> Map<String, String> Map<String, List<String>> So, I came up with the following types test methods: @Test public void testString() { ...

 
@Heslacher Monking!
Seems like I haven't talked to you in a long time :D
 
;-)
 
@Hosch250 Haven't done a whole lot of much, I did write some C# and learn some math though :)
Came up with some stuff for PE3, posted for review, and was shown that my C# is not too bad but my math is pretty dang bad lol
To be fair going Java <-> C# seems like is simple enough, the languages look and work quite similarly, at least so far
 
5:00 AM
@Mast Very good! It was accessing address [-1] of an array :)
 
C# syntax is more succinct, but I dislike new lines before curly braces
 
I do--it gives the signature more emphasis.
When I write VB.NET, I always put a blank line after the signature to give it emphasis anyway.
 
It does seem like it lets the code visually "breathe" a bit more
 
I'm kind of surprised that you hadn't peeked at other Project Euler #3 solutions before posting.
 
Sometimes use it in Java when the signature is pretty large, like here
@200_success I made it a point not to, I wanted to figure it out on my own
 
5:05 AM
I'm kind of wondering whether we should start having some expectation that people do so before asking.
 
@200_success "do so" peek, or not peek?
I read your answer on that other question, and recognized I went for more or less method #2
 
Do some research on reviews written in the past, on obviously easily searchable programming challenges.
 
To be fair I did plenty of other related research into primality and factors
 
0
Q: How do i learn MVC with Entity framework?

Ma6139735i am new to MVC and I want to learn it with entity framework step by step??how do i start? i also search for google and there are lots of things available but lack of proper explanation.

 
@200_success That's fair enough, I think; I suppose that PE solutions could easily be found in maths Q&A/forums as well, the programming part is sort of incidental
Speaking personally, I want to do PE to get better at math, but doing it with programming also gives me a chance to get better at another thing in the process
 
5:10 AM
That's true for the first few Project Euler problems. For the more advanced problems, the code organization and data structures do matter a lot too.
 
Looking forward to that
If I'm not mistaken, all PE challenges can be done with "pen & paper" right?
(i.e. without programming a computer to do the calculations)
PE4 actually surprised me a bit, haven't tried solving it yet, but palindromes hardly seem like actual math
 
Maybe, in the same way that π can be calculated by hand.
Some of the problems are just warm-ups for later problems.
 
Ah, ok
I'm thinking of buying a math book or two, perhaps. Think arithmetic or algebra would be a good place to start? I'm really not into predictive math like trigonometry or calculus
Not yet, anyways :)
 
^^ Too broad. Please clarify what you're asking. =)
 
I'm kicking myself for only paying enough attention in math class in secondary school to pass, I was in the "advanced" math group too
@200_success I want to play with numbers in interesting ways
 
5:20 AM
Try Discrete Math. Lots of counting and probability problems. Combinations, permutations, factorials.
 
I don't necessarily want to tinker with sin, cosin, log, etc. right now, just numbers
 
If you like FizzBuzz, you might also like Discrete Math.
 
Hmm ok, thank you
 
"How many possible ways to get a Full House in poker?" — that kind of thing.
 
Oh that sounds really interesting!
Most of all, I want to stay away from anything geometry-related for as long as I can help it :D
 
5:27 AM
Probability and factorials was fun
 
The probability problems may be tricky, but it's actually just advanced counting. You should be able to figure that stuff out if you think about it in the right way.
 
Maybe I should get some of my TI-BASIC code reviewed
 
@200_success I suppose "the right way" is often different from "the obvious way"? For instance, how I implemented PE3 literally, when there is a much better way which is less obvious
 
monking!
 
@Gemtastic monking!
 
5:30 AM
What's reviewin'?
 
@CaptainObvious um, yeah, no
@Gemtastic Not much at the moment, just talking about some math :) what about you?
 
Doing some python hacking :P
Learning through doing
 
Python is a hack in and of itself, imagine pseudocode that actually works... but it's fun usually!
@Gemtastic What are you hacking at?
 
When everything is obvious, then you're not really learning anything. The sweet spot, I think, is when things are obvious in retrospect.
By the way, do you follow how the "right" solution for PE3 works?
 
@200_success Yes, I did a bit of math in my head and it seems sound enough
 
5:36 AM
monking @all
 
"Seems sound enough" — you'll make a great mathematician. =)
 
I didn't think to "divide & conquer"
@chillworld monking!
 
hey @Phrancis
 
@200_success I basically brute-forced it eliminating as much "work" as possible, which ended up being fast, but not sound
 
@Phrancis It's a work thing involving selenium IDE generated test cases
 
5:39 AM
Lippert pointed out some good things too, I wish he actually made it into an answer
 
My experience with Ubuntu so far: Your drivers are in another castle. Anything changed? restart drivers.
 
@Gemtastic I tinkered with Selenium once, I think it's pretty cool
Never bothered with test cases or any such thing though, was just a quick a dirty script
 
There's a lot of dark magic in selenium. It's a nifty tool and it's teaching me a lot about itself and Python
 
Selenium is the kind of thing you show to a non-programmer to make them think you're a hacker of some kind =)
"Look, no hands, the browser just drives itself like magic!"
 
"What do you think about my implementation?" - there's a separate codereview.stackexchange.com website for such open-ended questions; this site focuses on specific technical questions. "How can I make the function "Find" friend of "List" and "Node" in order to AVOID using the function members "Begin", "Next" and "Data"?" - use the friend - there are examples in the linked documentation. — Tony D just now
 
5:55 AM
@Phrancis Indeed. That's how you make them think the uprising is close and skynet is upon us!
 
0
Q: Place integers into a vector, sum each adjacent pair, refill vector with only the sums of each pair i.e remove all the original data from the vector

chris360Is there a quicker/better way of doing this, mine works great for small vectors but if i get a vector with an arbitrarily large size this would probably take forever to run. Thanks.(P.S. its been a while since I've written any code so please excuse me for any sloppiness). /*Fill a vector with in...

 
@Phrancis Do these problems look interesting to you?
(I'm not asking whether you are able to solve them, just whether the subject matter interests you.)
 
6:39 AM
-1
Q: javascript code window scroll

YHTANAny suggestion to optimize/simplify the code below? $(window).scroll(function () { if (!isMobileDevice) { var offset = $(this).scrollTop(); if (!WsGretel.$calcBox) return; var $Rightcontainer = WsGretel.$calcBox.parents("#content-body-right"); va...

 
@200_success Seems like discrete mathematics
 
Yes, that is a final exam for a Discrete Math course.
 
Never actually had a course in that. Think I could solve about 75% though
 
@200_success Yes, they look quite interesting indeed
 
Hi folks, been golang for a week now.

I found it interesting that it has just one kind of loop, the for loop. So, I was wondering what advantages does it give, also the disadvantages?
 
6:50 AM
@Dawny33 for loop is quite capable, in general. Do you have any specific question about it?
 
Nearly all our courses in mathematics is in english. However discrete is being taught in Norwegian, how strange.
 
@Phrancis I see. My question is: "Why did they have just one kind of loop, when almost all the languages has multiple types, like for, while, etc."
 
while loop is nice because of potentially undefined bounds
 
Yes, esp in competitive programming.
 
@200_success Here is this years maybe you can get something out of it. It seems very similar. However this is taken first semester so it is a tad easier.
 
6:53 AM
@Dawny33 Other than for and while, what else are you thinking of?
 
@Phrancis Just the for, while and do-while :)
 
@Phrancis for (var i = 0; i < long.MaxValue; i++)
Let me know how that loop works for you. ;)
You also probably should have accepted @200_success' answer, it was far superior to mine.
 

« first day (1150 days earlier)      last day (2866 days later) »