« first day (393 days earlier)      last day (3618 days later) » 
00:00 - 19:0019:00 - 00:00

12:05 AM
@rolfl Thank you. It makes me feel so good when I can do up-votes. :-)
3
 
You're welcome.
(and thanks .. ;-)
Also, I called it lettercount first time, then revised it back to LETTERS because of....
2 hours ago, by Malachi
@rolfl what is the LETTERCOUNT? I assume it's the amount of characters in the array?
 
@rolfl Yeah, I saw that, but I think in this case LETTERCOUNT is the better choice. In this case, it's really only unclear what letters you're counting, but LETTERS could be any of three things: a count, a collection, or (given that it follows immediately after LETTERA, which means 'A') it could really mean 'S'.
 
Yup. I should probably call it ALPHABET_SIZE
 
@rolfl An excellent idea, IMO.
 
My intention was to introduce the need/usefulness of the modulo, and I would have been content with an answer that gave just that.
 
12:12 AM
Ugh too late, closed. The point is, if an error is recoverable in an error-handling subroutine that does Resume Next, then the Case 11 is the result of the method's code is allowing a division by zero to occur. Fix the code! Avoid the division by zero instead. The only errors that should cause an unexpected jump are those you couldn't handle explicitly in the code - why read the division by zero result in a subroutine? If x > 0 Then y = 1/x Else y = 0 End If` cannot raise a division by zero error, and it's clear what the value of y is in that case. Code Review ChatMat's Mug 11 secs ago
thoughts?
 
Then I startred looking, and I added other things in... then, damn it, I had to do the ideone.... and then suddenly it was a full-fledged C# answer, which was not my intention.
@Mat'sMug - VBA-TL;DR; ;-) kidding.
 
hey thanks @Santa!
 
@Mat'sMug I wouldn't be surprised if you win the race.
 
my weekends are pretty ..slow on CR ;)
 
What's the goal? 20K ?
 
12:14 AM
think so
right @SimonAndréForsberg?
 
@SimonAndréForsberg your answers are better than mine, numbers agree, you'll win. ;)
 
What you can't do with quality, fake with quantity
 
damn
 
@rolfl Only on Stack Overflow, please!
 
12:16 AM
Also, I was 20 short of RepMax, so I answered a c# ... (and learned some things on the way.
I encourage you to step outside the box a bit.
4
 
there's so many things I don't know
 
someone remind me to come back to that question monday evening
 
@Mat'sMug I'm not so sure about that. Besides, depending on how long the race will last, I might go on vacation again...
 
@rolfl So does that mean I should start recommending C++ to VB6 users in addition to the C# and Java people? :-)
 
Naah, that will just screw them over.....
 
12:19 AM
lol
 
The C# and Java people are smart enough to ignore you
 
@rolfl lol
 
@rolfl s/ignore you/recognize their incompetence limitations/ :-)
 
C++ isn't that hard....
 
Yeah, it's one character less than Java ;-)
 
12:22 AM
@Malachi True. The problem is that so many people have been taught to use it so badly. I can sort of understand how that's come about (classes that purport to teach C++ are often also implicitly treated as an introduction to low-level programming), but the result is pretty awful anyway.
 
you know why Java Developers wear Glasses? because they Can't C#.
5
 
You can always tell a C++ programmer .... but you can't tell him much.
 
you can't flag star a removed chat post
lol
 
@Malachi - flagging things in chat... not a joke.
 
I was LOL'ing your C++ joke @rolfl
 
12:25 AM
@rolfl Quite true--room owners system-wide get pinged about flags.
 
All users with 10K combined SE rep potentially get notified as well.
 
@JerryCoffin everyone except for @rolfl and me get pinged
 
@Malachi - repeat after me: I will not play with flags... even to experiment.
 
I will not play with flags... even in experimentation.
 
Thanks.
 
12:30 AM
@Malachi You are, however, allowed to experiment with the half-carry flag (aka auxiliary carry flag) on an x86 if you really want to.
 
that almost sounds like: "And God said let 2+2=5 in 2+2" )) — N0ir yesterday
 
@JerryCoffin I don't even know what that means.....and I probably should
 
@Malachi The x86 has a flag that's only used for the BCD arithmetic instructions to signal when there should be a carry from the bottom 4 bits to the top 4 bits in a byte. e.g., when you add 1 to 0x9, it becomes 0xA. Therefore, that sets the auxiliary carry flag. If you then execute an AAA, that will be adjusted to become 0x10, so it's now a proper "10" in BCD.
There are instructions to do similar adjustments after subtraction, multiplication and division (AAS, AAM, AAD).
Since almost nobody ever uses any of the above, modifying the auxiliary carry flag has no effect on most code.
 
and on SE chat users ;)
 
@Mat'sMug Or on much of anything else, for that matter.
 
12:39 AM
Working assembler on PIC Microchip, the carry flag, zero flag, and all sort sof flags are available.
The ZERO flag is really neat. Any time a calculation happens which results in a zero in the (only) register, it sets the zero flag.
 
sounds like zero is a pretty big deal
 
@rolfl Most chips do something similar. The big split is over whether just moving a zero into a register should set the Z flag or not. 6502's and Motorolas did. Intels don't.
The other big exception was the DEC Alpha. They decided constant updating of the flags register limited instruction-level parallelism, so they eliminated it. When you care about whether a result was zero (for example) you execute an instruction that does a comparison, and puts the result into a normal register you designate (and conditional jumps and such can be based on normal registers, not just a special 'flags" register).
 
PIC instruction set sets Z on move: mikroe.com/chapters/view/10/chapter-9-instruction-set
 
think I might be starting to figure out the whole Git thing, maybe in about a week I will figure out how to do it from Xamarin
here is my Ciphers Repo
 
@rolfl Cool. Maybe it's just because the CPUs I started with did that, but I've always preferred it.
 
12:49 AM
I think I may be getting nostalgic for PIC programming again.
I wonder if I can hook one up to a websocket ;O
 
the playfair isn't completely finished, I am going to have to research that cipher again and try to figure out what I was trying to do in the first place, or maybe even start over
@SimonAndréForsberg night
 
Night
 
@SimonAndréForsberg G'night.
@rolfl Not sure about that, but you can definitely do that with a raspberry Pi (though an ARM's pretty different from a PIC).
 
I have a Pi or two lying around, but.... assembler!
 
12:54 AM
'night!
 
I have an arduino but I haven't done much with it yet.
 
I swapped out a failed drive this morning (part of a RAID1 pair). I put the failed drive on my 'broken pile'.
 
@rolfl Maybe connect your computer to a Pi, and then a PIC to that (or just write a PIC emulator on the Pi).
 
Then I counted them.
35 failed or outdated drives.
 
I have 2 other ones, I did a potentiometer and one with the lights and a photocell
 
12:57 AM
@rolfl Silly fact of the day: at least according to a guy I used to know, when measured in the right way, hard drive prices have been very close to constant over time. At least until fairly recently, they were pretty close to $250/pound almost forever. All that changed was how many bits you could fit into a pound of drive.
 
That's about accurate. The bulk of the cost of production in a drive is the material in it.
 
I want to get to the point where I can merge one with a Wifi and a remote controlled car and see if I can make it do things on commandes
like have the arduino store commands and stuff and receive signals
 
You shjould be more ambitious... and have it do thikngs before you command it.
2
 
Here I was being very careful to prevent its being one-boxed...
 
oops
I lol'd
3
 
1:04 AM
@rolfl AI
 
Well, I think I need to go. TTYL.
 
that is going to be the lawn mower. chasing down dogs that pee in my yard....lol JK it will mow the yard every so many days....lol
@JerryCoffin later
 
Are we talking about a lawn-mower Roomba?
@Malachi In my experience with C++, the problem isn't so much that it's necessarily hard relative to other programming languages, so much as inefficient.
And I don't mean inefficient in terms of memory usage or anything like that.
I mean developer time
 
later @JerryCoffin!
 
@nhgrif no it will pick a pattern at random and mow the whole yard as efficiently as possible
what little arduino code that I did, didn't seem too time consuming, but I was being semi-instructed at the same time, now I would have to do it all on my own.
 
1:23 AM
@Jamal might appreciate this Meta post
174
Q: How do I write a good title?

Mark HarrisonA good title helps your question get the attention it deserves. What goes into a good title? Return to FAQ index

 
@Malachi I am aware of it. Things are just a bit different on CR as many people can implement the same type of thing.
 
@Jamal I hear that.
 
@Malachi: This one could also use a better title.
 
@Jamal on it
I don't know about that one....
 
1:39 AM
That's fine
 
I was hopoing to get more views with this title:
3
Q: Tapes, Trees, Trunks & Tallies

SchilcoteI've written these two command-line tools to be used to facilitate forestry surveys. For a little background, the idea here is that often a landowner needs to know precisely how much wood is coming out of his dirt. Not only that, but he has to account for the fact that you can't turn a cylinder ...

 
look who answered!
5
A: Tapes, Trees, Trunks & Tallies

Winston Ewertdef load_trees(): trees=dict() You only use this variable in the case that you sucesfully opened the file. I'd move it after the open. try: with open("trees.txt","r") as treefil: I recommend not shortening names like this. Call it tree_file it not really any serious amount of...

and another answer earlier this month, too
 
I know ... ;-)
 
@Malachi beat me to the edit. :-)
 
lol
I am so close to my second gold badge I can smell it
 
1:44 AM
Just what I was going to do myself, which is even better.
 
winston was active 7 minutes ago
Time to reward myself for actually coding today and seeing what I could learn today. that means Playstation time. Heck I even played cars with my little man today, we crashed them together, it was AWESOME!
this week, I think my goal is to read through more of my C# book and figure out the playfaire cipher application.
 
2:10 AM
I just posted an answer to a question that already has an accepted answer... and I really hope my answer doesn't go unnoticed. There were two existing answers, both of which missed a really important fact...
 
It's going to go unnoticed unless you post a link....
 
0
A: iOS app submission without a specific device

nhgrifThe posted answers are missing an important piece of information that I feel needs to be added. While it is true you don't need any specific device in order to submit to the app store, assuming you're developing your project with Xcode, it is NOT true that you can get an app on the app store wit...

 
Oh, on SO (no wonder I could not find it)
 
@Flambino I was just trying to follow the Javascript syntax that I found for the global replace, how do I search for the value of the variable in a regex in javascript?
 
Yeah.
There haven't been any new ObjC questions round here lately.
I was hoping the chess guy was gonna post like 4-5 questions. Only 1...
Perhaps he's doing a lot of rewriting and will return.
 
2:16 AM
you should learn Java or C# and get away from the dark side
lol JK
you all have a good one I am off to play some games.
 
Well... I know some Java... just enough to know that if I knew more I'd be tempted to answer Java SO questions more frequently. And no offense to Java, but the crowd that asks SO Java questions are a bunch of rocks.
How many times per day do we need to see a == vs .equals() question for string comparison in Java? How many times per day do we need to see a NullPointerException or IndexOutOfBounds exception in Java without a stack trace?
3
And the one that's been trending lately, the problem trying to use instance methods from class methods. Whatever phrasing it is that Java typically uses to complain about this error, I've seen that as a question topic a handful of times this week.
 
2:32 AM
0
Q: For and If Loops Python Math Game

Rob B.I'm trying to get my program to iterate through a loop after a person gets the correct answers to the first question. I feel like there is a better way to do things syntactically. math_questions = [ {'question1':'1*1', 'answer1':1, 'quote1' :'What you are,you are by accident of birth...

 
2:44 AM
@rolfl Hi
 
Hi!
 
3:00 AM
@nhgrif something something referenced from static context. It's a classic
 
3:27 AM
[tag:c++] tag score: 777
JACKPOT
4
 
 
2 hours later…
5:03 AM
0
Q: Fastest / most efficient random bit indexing in Python

nickpandolfiUsing Python/Cython, I am trying to construct an efficient way to index boolean values. I have been trying to use the bitarray and/or bitstring packages to construct a fast, non memory intensive way to hold a lot of booleans. My goal was for a list like object that could be sliced as such, and ac...

0
Q: jQuery - Repetitive code

user44470A friend helped me put the following code together. As can be seen, it's made up of a series of repetitive functions, loadContent(1), loadContent(2), etc. thru to loadContent(6). I've just shown the first two functions but they're all the same. The code works fine but I'm wondering if anyone cou...

 
 
2 hours later…
6:40 AM
0
Q: FileWriter supporting writing to multiple files

Mat's MugI got bored with opening and closing files whenever I need to write to one, so I wrote a FileWriter class that's used like this: Public Sub TestWriter() On Error GoTo ErrHandler Dim writer As New FileWriter If writer.OpenFile("c:\test.txt") Then writer.WriteLine "foo" En...

 
 
2 hours later…
8:59 AM
0
Q: Multiple BaseControllers with IoC

Albert CortadaI read this question, and the answer helps me but not completely. What if I have 20 repositories with different responsibilities, like for example: ICountryRepository ICityRepository and IUserRepository IPersonRepository I can have all the methods of this repositories in the BaseController, b...

 
9:10 AM
Good evening/night/morning
 
0
Q: Python image RGB frequency count

JackI am writing a function which takes the filename of an image as a parameter and returns a dictionary of the frequency of pixel colours in the image. Example: count_rgb_frequency("image.png") Returns: {(0, 0, 255): 50, (255, 255, 255): 2450} For this code to work, pygame and ImageLibrary.py...

 
 
1 hour later…
10:25 AM
Monking
 
10:35 AM
@Malachi Then explain why some C# developers also have glasses!
 
10:46 AM
Monking
 
Waking up with... Afrojack, Snoop Dogg - Dynamite
Wait, didn't he rename himself to Snoop Lion?
And monking @SimonAndréForsberg
This pre-Java 8 code hurts a bit...
0
Q: Convert Callback into Java 8 Lambda expression

NPortmannIn my current project, I'm working on a rather simple JavaFX GUI containing a TreeTableView. To initialize the View I have the following code. cmdNrColumn.setCellFactory(new Callback<TreeTableColumn<Command, Command>, TreeTableCell<Command, Command>>() { @Override public TreeTableCell<Comman...

cmdNrColumn.setCellFactory(new Callback<TreeTableColumn<Command, Command>, TreeTableCell<Command, Command>>() {
    @Override public TreeTableCell<Command, Command> call(final TreeTableColumn<Command, Command> p) {
How are you today?
 
Monking @all
 
Monking @Nobody
 
Today I'm going to understand Maven a whole lot better!
Hey @Nobody
 
10:53 AM
Huh... my boss at work appereantly has an email archiver which means that any mail sent between a specific date (mentioned in auto reply) is simply being discarded?
Anyone familiar with such email archiver?
It seems a bit weird that email is simply discarded to me
 
11:08 AM
@skiwi: That is probably just some insider joke
 
I doubt, because emails sent in those period really haven't been read nor answered
 
usually such an autoresponding tool is used for a longer period of absence (where naturally there can't be an answer) where the length of the period is named in the auto response
 
@Nobody That's exactly what happened in my case
Is it done because like 90% of all emails usually "can't wait"?
 
I am not sure if I got you right: Usually the process is something like this: Your boss thinks: I will be away for some time and cannot read/answer incoming mail. However, people that don't know this might wait for an response, so I setup a tool that autoresponds with the information how long my period of absence will be (to let them know when to expect replys)
now he might incidentally have thought of some clever joke form of this autoresponse (and maybe to scare newbies from writing to much in this period)
 
"Thank you for your message. Due to absence and poor internet coverage I can not read your message and reply. For that reason, it will be filed immediately. ... After <date>, you can reach me back at this address."
That was the reply what I got, with non-standard info stripped
This is like one month ago btw
 
11:16 AM
does not sound like the mail is discarded
so <date> has already passed?
 
Well okay, I'll resend either way as I need a reply
Yes, by a week at least
 
seems reasonable
 
oh wow, I failed there, cannot be fixed anymore though
The title still says "RE: Automatic answer: <old title>"
And I already doublechecked the email three times.
 
 
1 hour later…
12:37 PM
Hmm, does Java not have an "is integer?" method anywhere?
 
@skiwi Try Character class
 
@JeroenVannevel I can't use them on a String, can I?
(except when looping)
 
No, you'd need a loop
You could just try to parse it and swallow the exception
 
Wait, what does string's parse int method give you if it's not an integer?
0?
 
@nhgrif ParseException or something similar
 
12:40 PM
Or an exception?
 
NumberFormatException I think... hm
 
but I was kind of trying to prevent that
 
Why?
 
Because, exceptions.
 
12:41 PM
@rolfl If you expect most of the input to be valid, then there is no notable performance loss
Obviously don't do it when 99 in 100 input strings will throw an exception
 
@skiwi input.matches("\d+");
 
I thought throwing & catching was pretty normal in Java.
 
@rolfl Aren't regexes also quite slow from a performance view?
Even though this code is not performance related
Also the \d+ still allows parsing exceptions to occur when parsing afterwards... (Hint: too big value)
 
The regex will be faster than the exception, and if you precompile the pattern it will be faster again
 
Would parse int and catching exception actually be any faster from a performance stand point than looping through each character ?
 
12:43 PM
@nhgrif An exception that is never thrown won't have any performance impact, so it partially depends on how often it will occur
 
I mean if the exception isn't thrown
Under the covers, parse int has to look at each character individually in order to parse an integer out of it anyway, right?
It's not some magical way of avoiding looking at all of the characters... it's just a way of avoiding writing the loop to do it.
And if you don't actually need the int value, just need to know whether or not it is an int, then the manual loop will be faster when there is an exception because you just break the loop right there and return false.
 
I feel it must be possible to make my code nicer... But I'll leave that up to the CR folks ;)
I'm generally happy with it
 
0
Q: Why is this query incredibly slow?

Patrick BassutI have this table(inradar_ad) with almost 300k entries. I wanna know, why my query takes 160 secs to run. I tried limiting with LIMIT 10 to see if I get an speed boost, but didnt. Why is that by the way? I posted the code here, because I think it's better for you guys read, I guess. Thanks ve...

 
@CaptainObvious Offtopic
 
12:58 PM
So Friday at work, we had a really weird problem.
Some of our clients have SQL Server 2008 R2, some have SQL Server 2005. Our test database is on SQL Server 2008, but our beta testing company is on SQL Server 2005... so we may not catch something in development that is a discrepancy between the two, but we'll know pretty quickly after we release to beta testers.
On Friday... with had a problem updating a stored procedure.
We could drop & create just fine (which is what we almost always do), but if we tried to modify, it wouldn't work unless we put a semicolon after SET NOCOUNT ON
I should probably learn MySQL. I only know SQL Server, and I always hesitate to leave MySQL answers because I have no idea the differences between the two, and frequently with SQL, performance is one of the primary concerns.
 
When typing in a console, and you are typing a sentence and press the up arrow, is it then normal to immediatly jump to last typed message?
 
yep
 
In this chat?
 
@nhgrif MySQL has a very relational approach, from observing SO, I find it quite common to see cursors, etc. If you do that in MySQL I think you're frowned upon
 
some consoles will return you to your currently typed text when you press down after that
 
1:10 PM
@nhgrif In anything that kind of resembles a console
 
Oh, you mean in general, I see.
 
@Nobody Interesting...
 
Yeah, it doesn't seem to work for me here, but in general, that's been my experience with consoles, what Nobody is describing.
 
And is it then also normal to highlight the text?
 
which text?
 
1:11 PM
The one from history
 
I have not seen such a feature
 
Whoa, do you know what happens when you push the up arrow in this chat with an empty box?
It goes up through your history (highlighting the message), and let's you edit it.
 
@nhgrif you can edit your last posts
 
I'll leave th ehighlighting out then :P
Designing a simple console in JavaFX
 
skiwi are you familiar with MS SQL server and can comment on differences between that and MySQL?
Or were you just commenting on what you've observed of MySQL?
 
1:15 PM
Unfortunately not familiar
Ah, I still needed to figure out how to make a component expand it's width if the children width increases... fun
 
0
Q: Controller code implentation

user3263252Please review my servlet. package jspExercise; import java.util.; import java.io.; import javax.servlet.; import javax.servlet.annotation.; import javax.servlet.http.*; @WebServlet("/fare") public class Controller extends HttpServlet { private static final long serialVersionUID = 1L; s...

 
2:23 PM
Noohhh!!! Offline ... again?
 
@rolfl: Who is offline again?
 
Code Review review queue. Not meaning anything by that, just noticing it has a nice poetic/melodic quality to it.
 
Hi,
 
Welcome to the chat @user3263252
 
@Nobody SE was down. I noticed that in some cases I had to hard reload before I could see the site.
 
2:28 PM
Um, just call me wormwood, that's my account at stackoverflow haven't changed the SE one yet
 
now let's see, what was the problem again @user3263252
 
@user3263252 So, can we just call you 326?
@user3263252 Sure thing. I was just kidding - I have an odd sense of humor. :-)
 
Is it okay if I format Wormwood's code or was that the entire idea of him joining the chat?
 
@JeroenVannevel: Wormwood?
 
2:31 PM
I was under the impression that editing to fix format was ok, from a policy perspective.
 
@Donald yep I noticed XD
 
@Donald.McLean It definitely is; I just didn't want to interfere if someone asked him to join the chat to explain how formatting works
 
@JeroenVannevel: Give a man a fish ...
 
True enough
 
I don't need to know how to fish. We have a Wegman's up the street.
 
2:33 PM
@user3263252: The code formatting should be fairly simple, you just copy the code from your IDE and paste it into SE and then mark it there and press the button to format it as code
this should preserve all whitespace there is
 
Really? I've never tried that.
 
@Donald.McLean Maybe true, but what if they stop serving your favourite fish?
 
@Nobody There's a MOM's Organic Market in the other direction. I live in a major metropolitan area - it's easier to find good places to shop than to find good places to fish.
 
@Donald.McLean That attitude will get you killed during a zombie apocalypse
You're warned
;)
 
@Nobody, button to format it as code? The only button I can read is "save edits button". Does the button your refering to has text in it?
 
2:37 PM
@JeroenVannevel I'm a 51 year old armchair jockey who owns no guns. I expect to end up as one of the zombies.
2
 
@user3263252: I mean the button labled with {} but obviously you already used the shortcut (and it seems to do some auto formatting, it has been some time sinceI used it)
still this should also work: you mark the code and press the button (or CTRL+K)
 
@Nobody @Nobody I can't find that {} button. My screen reader can't find it for some rason.
 
To make sure we are talking about the same: You are in the mode where you edit your post (on SE), then there is a bar of several icons (that are clickable) above the text field, one if which is labeled with {}
 
 
2:52 PM
@Nobody I don't know where that {} label is. I tried using ctrl+f to find {} in the page. I really can't find it. Maybe its there, my software just didn't read it for me.
 
@Nobody Apparently IBM
 
Does anyone have tips with regards to (unit) testing GUI?
Is it even needed?
(Example JavaFX class here: pastebin.com/qai0g6Ym )
 
@user3263252: Look up there! ^^ I circled it in red.
 
@SimonAndréForsberg because they need resharper....?
 
@user3263252: You also should read this (if you did not do already):
 
3:05 PM
0
Q: Console component in JavaFX

skiwiI would like to a review on my Console class I made in JavaFX 8. It features the following: A text field where you can enter input, the input gets copied into the text area. A text area where you can observe output and see the input. When you press enter, you send the message. When you press ar...

 
0
Q: Console component in JavaFX

skiwiI would like to a review on my Console class I made in JavaFX 8. It features the following: A text field where you can enter input, the input gets copied into the text area. A text area where you can observe output and see the input. When you press enter, you send the message. When you press ar...

 
@Nobody "Indent four spaces to create an escaped <pre> <code> block:" Im not sure, but isn't this what ctrl+k does? And you don't need to circle something in red, I wont see it anyway.
 
@user3263252: Yes that is what I said.
But still there is something amiss when I look at your code as given in the output
 
@Nobody Do you know any blind user here in SE or SO? Maybe they can help me do this correctly.
 
@user3263252: I am sorry if this is insensitive and I have not noticed it until now
I did not know you are blind
the problem with the button is that it is an image (not text)
you correctly identified this
I don't know of any blind user on SE and I have no idea how userfriendly the sites are for them
For now we simply may solve this by formatting the code for you
 
3:18 PM
@Nobody Thanks. I hope someone would change that label to text.
 
@user3263252: You could do a feature request for that on meta for stackexchange
 
@Nobody Yep, I think I'll do that.
 
Do you think it's permissible to have some unit tests for GUI component that simply confirm that a) the methods return and b) they do not give any exceptions?
This electronics company is doing a big dare here...
If The Netherlands win the world champonships soccer, then everyone who bought a TV between now and when the championship starts, gets their money back
 
3:39 PM
@user3263252 hi! You are correct, ctrl+k is a keyboard shortcut for the tool button @nobody is referring to; and welcome to Code Review!
Hi @all!
 
hi @Mat'sMug
 
Hi @Mat'sMug
 
Hi @Mat'sMug
 
Nobody likes JavaFX questions :(
 
Console is a bad name ... ;-)
(there is a system class called Console, and it sucks.)(
 
3:42 PM
@skiwi: Yep
 
Well... It should be called Console :(
But a better name may be suggested in a review ;)
First time I know about twitter.com/StackCodeReview
 
I posted a / / question to take the meta-debate onto the main site.. in an on-topic way ;) (and I'll post a selfie later, there's plenty to review wih that code!)
 
3:57 PM
Well, I am off, see you later
 
@Malachi: Here's another title that you can try working on.
I also gave this a new language tag. Someone feel free to correct it if needed.
4
Q: Google Apps Script for finding empty days on multiple calendars

MarcelaI need help with a simple Google Apps Script I've written. The script finds days on which no all-day events have been scheduled, across multiple calendars. I'm fairly certain the main issue is the fact that I'm making an API call to get all owned calendars, then I'm making 5 API calls on each of...

 
@Jamal and conflicts imo, note app vs apps
 
I considered that the former is not a language tag, and so I added the latter that I've found from SO.
 
Never mind, I think it's fine actually
I mistook the engine (service) vs script (user-application inside app on top of the engine)
 
Can you guys answer my question where the code was formatted?
 
4:26 PM
0
Q: Base for Iterating over git history - is this code clean?

Adrian17I wanted to do some statistics over the history of a Git repository. At first I tried using GitPython, but it wasn't as trivial as I imagined it to be. In the end, I just call the necessary git commands with the submodule module. Can this code be considered clean and readable or does it have som...

 
Monking @all..
 
hey @Vogel612
@user3263252 why do you need 6 lists?
 
PING - *dammit i need to tone down the sound.
 
@Vogel612 better now? ;)
 
nope..
the headphones are on 2 / 100 now..
 
4:30 PM
@Vogel612 testing...
 
wonderful ;)
ima write an answer to @skiwi question now.
 
@user3263252 I might have one small thing to say, as a non-Java person at least.
 
(I'm a non-Java person as well)
 
I'll give it a try, and I might as well, even if it means possibly deleting this answer.
 
@user3263252: done
 
4:37 PM
0
A: Controller code implementation

JamalThe control flow for addToList() looks a little strange. It appears that if any of the first five lists cannot be added, the sixth list will be added automatically. I'm not sure if that's ideal, in case you have an invalid stopNumber. It also looks less-maintainable since you'll have to change...

 
4:53 PM
@Mat'sMug Well there are six stop numbers from 1 to 6 and I need to display all the items from each stop number in the jsp page so I thought of putting them into separate lists so I can just call each list then access all items in the third jsp page. Haven't able to do that though.
 
@Vogel612 :o interesting... if you're still going for it ;)
 
@user3263252 @JeroenVannevel's answer cleanly addresses that point - it's pretty much always a code smell to have a numeric suffix to your identifiers ;)
selfie posted: codereview.stackexchange.com/a/52201/23788 (now awaiting @ckuhn203's answer) :)
 
@JeroenVannevel Since Java 8 you can also do mapping.getOrDefault(bean.getStopNumber(), mapping.get("stop6"));
Also I think you meant stop + bean.getStopNumber() there ;)
Unless getStopNumber includes "stop"
 
@skiwi Aha, as I wrote it I was thinking that we should be able to define a default value
 
Damn, I want to review Java 8, but for that people need to write Java 8 first.
 
4:59 PM
feel free to add it (or as your own answer), I have no experience with J8 so far
 
I don't think Java 8 is relevant here though :(
Especially with JSP I don't know how well they play together
 
(AFK)
 
0
Q: Too slow processing of data, unefficient memory usage in .NET containers

CheslavI am writing a text classifier and in order to do so i need TF/IDF values per every word of my signle text. Then i need to use the cosine similarity: This requires processing of a big data storage ( all of the texts that already exists in my database ). The problem is that my code is doing his ...

 
@CaptainObvious C#?
 
I wonder if there are sites that allow you to take interview questions and give feedback on it?
Is it something we could organize on CR? We'd need a set of sample questions hosted in a reliable place, and (maybe?) a reviewer who has actually reviewed interview questions in a company?
 
5:05 PM
@Jamal yes
 
Personal note, I'd want to test my Java skills but am not in a position to take job interviews
 
@JeroenVannevel Fixed. Maybe someone will come along and replace the screenshot with MathJax.
 
5:25 PM
0
Q: Multiple choice quiz that repeats answers that you have gotten incorrect, then starts again when you have answered them all correctly

user44493Hey so I'm pretty new to programming (been learning for about 2 weeks) and my goal is to eventually design a revision style multiple choice quiz that randomly generates questions and repeats the questions that you have gotten wrong. This I can do, however I have come to a dead end! I would like t...

 
@Vogel612 Unfortunately the latter part of your answer is a bit unclear to me
I'm a bit confused with what you mean after "Positive or Zero and similar"
 
you are not paranoid enough for me..
 
That's a world's first.
People keep sayign I'm paranoid :P
 
stuff like Objects.requireNonNull(hand, "hand");
 
You mean after getting it from a player?
 
5:34 PM
was what I had in mind. also, you don't check that the upper thing is inside bounds..
@skiwi somewhat..
 
new FuseMonsterAction(1000, 1001, 1002); this is perfectly valid however
 
I know that a player always requires NonNull in stuff like that
but if you read the code you may think: "That's a point where my NPE could come from"
well laters I have some matters to attend to ;)
 
Well hmm, I think we should trust the Player in that case ;)
The thing with the new FuseMonsterAction(1000, 1001, 1002) is that no player is attached to it yet, hence it could really be valid
It would be an interesting game however, but I don't think we can just set an upper bound.
 
See you guys later, I will disappear for awhile.
 
5:58 PM
0
Q: Why does this code crash on ubuntu but not on OSX?

Patrick BassutThis code crashs on ubuntu but not on mavericks, why? #include <stdio.h> #include <stdlib.h> struct Vertex{ char vertex; int value; int quantAdj; char cor; struct Vertex *pred; struct Vertex *adjacents[]; }; typedef struct { int value; struct Vertex *ori; st...

0
Q: How could I make my simple python maze game better?

JosephThe program is running fine but I was just wondering whether there was anything I could do to make it more user friendly or efficient. Please note that I have only been programming for a couple of months so am not too experienced! Any help is appreciated! Thank you! from random import randint im...

 
6:35 PM
5
Q: Spliterator implementation

trapoI'm trying to post a little tutorial on the new Spliterator class. There are many tutorials these days on using stream starting from a standard Java collection, but I want to explore the creation of a stream using data coming from the web (so no stream fully backed by a collection). I decided to...

^ Too bad I don't understand Spliterators yet fully
 
I'm getting to it @Mat'sMug. I've got the kids today. I haven't forgotten about ya.
 
6:53 PM
wow brainfart. I was sure I was !
I actually intended to call them Open and Close, but they're indeed reserved keywords, so I added this File suffix - I agree it's redundant though, and I'll +1 for adding a Write method (WriteToFile? ...Write is reserved as well!) when votes reload ;) — Mat's Mug 31 mins ago
@ckuhn203 great!
 
00:00 - 19:0019:00 - 00:00

« first day (393 days earlier)      last day (3618 days later) »