« first day (387 days earlier)      last day (3929 days later) » 

19:01
@Vogel612 actually at $1=0.68€ it's more like $735, which is very decent!
Well It's a Start, isn't it??ß
but I play too seldom to invest more..
19:14
Is there an accepted way to kill some code execution after a set time?
With JUnit I can annotate it to die after 1 second, but that turns up as an error
@skiwi Guava has a class for that. I can highly recommend it, even though I guess you're not a big fan of adding a dependency.
Can a meta-question be "hot"?
2
7
Q: Can working code be: off-topic -> not-working?

rolflThis question here: Shortest possible way of printing a specific board Summary: The code requirement is to print out a grid of text. The code does in fact print the grid The way it does that, is very broken, and it is only by hacking things that it works. From a code-review perspective, it doe...

7 votes, 4 answers, 14 views.
@SimonAndréForsberg Yeah well... I think I'll just ignore that test until I added hitpoints to the player
Indeed not a fan on dependencies ;)
Doesn't seem too bad
A worry would be though if it's ran in a thread (likely) and then an exception occurs, then junit probably won't pick it up
tl;dr - I should fix up my code
It's great. You do need to add some code though to make sure that it actually stops the execution.
19:23
@SimonAndréForsberg IMHO, Guava is not a dependency--it's a baseline requirement. :)
@skiwi You need to add if (Thread.interrupted()) throw new UncheckedTimeoutException(); to various places in your code
@DavidHarkness Good point. Although Java 8 adds a whole lot of stuff that Guava provides.
@SimonAndréForsberg True enough. Same thing with JodaTime, though someone told me Java8 doesn't include its Interval class.
@DavidHarkness Closest thing would be docs.oracle.com/javase/8/docs/api/java/time/Duration.html , although I suspect Interval has a specific starting + ending time?
@SimonAndréForsberg Correct, you can compare two Interval to see if they overlap in time.
Oh, that would be helpful.
19:35
@SimonAndréForsberg ...
I have a feeling I'm going to be most pinged user in this room for today...
Feels like everyone is pinging me :)
(Not that I'm complaining of course)
@SimonAndréForsberg why that?
@SimonAndréForsberg are you uncomfortable with that?
@SimonAndréForsberg I can even make a message ping multiple times...
@SimonAndréForsberg no reason, just a feeling I have ^^
lol
3
^^ My first starred lol (had to happen some time)
5
@SimonAndréForsberg no way!
I've never felt to really need Guava here... But okay I started on Java 7, that may help
@skiwi My main use of Guava is for its immutable collections which are indispensable when writing thread-safe code
@SimonAndréForsberg Why the second one has more stars than the first one ?
@DavidHarkness I haven't had a need for those yet
@Marc-Andre Probably because someone ran out of stars after starring the first wait a minute, that makes no sense...
Though I did write some thread safe code
19:41
I use Preconditions, but I've built that class many times in the past. Range is nice too. Once I included it I took the time to peruse what it offers and used the best parts.
I suppose I've built some of those things on my own :p
It also has a nice thread-safe cache implementation.
@DavidHarkness Two words interfaces: Predicate and IntStream
Yes, but it's nice to know you have Google engineers testing parts of your code. ;)
@SimonAndréForsberg Oh yeah! I'm very excited to start using the new goodies in Java8, but we need to wait a bit for the dust to settle before we trust it in production.
@DavidHarkness Understandable.
19:43
I can really see now why bugs rise when you are tired
Even doing a git commit is quite dangerous to do correctly (with correct message, issue reference, etc.)
@skiwi git commit --amend :)
@DavidHarkness Not that issue from within Netbeans, though I figured the console out two days ago I think
coveralls.io/r/skiwi2/TCG?branch=master +0.07% coverage, beat that @SimonAndréForsberg
@skiwi Another time, I'm working on refactoring! (Or rather, making a new card game with more flexibility than before, and hopefully cleaner)
Making it anew?!
21 tickets still open... There's still work to do here
@SimonAndréForsberg works with 5 players? ;)
19:55
@Mat'sMug Didn't have that in mind originally, but thanks for reminding me. I'll see about that :)
@skiwi I'm creating classes that extends the previous ones. So I'm not throwing anything away - yet.
// TODO: Feature-Request by @Mat'sMug: Support five players
2
Reopened:
0
Q: Command line tools to format tables

TiagoI am a a big fan of one-liners using sed awk perl and other tools. But there are things hard to do in one-liner like when you working with a CSV file and there are comma between quotes, or when you want to print a centralized field with printf. Few months ago I wrote ftable more for fun than any...

20:13
you can always switch to NetBeans, just a thought — Olayinka 2 mins ago
@SimonAndréForsberg ^
20:24
I use NetBeans for PHP/JS/CSS/HTML, and yet I prefer Eclipse for Java. But I'm pretty sure if I bit the bullet and switched to IntelliJ et al I'd be much happier.
I use Eclipse for Python and Ruby too, but wow PDT really blows. :(
@DavidHarkness IndelliJ is also still on my todo list
I knew I was tired, I didn't check code coverage before pushing to github
Probably the biggest downside to IntelliJ is that I'd then need to buy separate versions for other languages. I'd really rather have a single IDE. Hopefully they at least share key bindings and other language-agnostic settings.
0% coverage on a custom exception class, lame
I'm better off going to bed :P
For interest, immutability is appereantly not that hard in ruby
3
Q: Ruby equivalent of Java's Collections.unmodifiableList and Collections.unmodifiableMap

razenhaIs there a equivalent in the Ruby standard API for Java's Collections.unmodifiableList and Collections.unmodifiableMap?

Just popped up on my SO list
0
Q: A Sudoku game made from Google's Dart language

kllrshrkThis is my first real web project and I have never touched JavaScript (barely touched CSS), so I just skipped that and went to dart for fun. Here's a live demo The code for the dart file is down below. If you could help me improve the code in any way, that would be nice. Sudoku.dart import 'd...

20:40
Percentage-wise, is 66% unanswered.
@skiwi For thread-safety, immutability is not about blocking modifications (there are thread-safe mutable collections) but rather safe publication: every thread is guaranteed to see the same state of the object without relying on synchronization by using final fields.
@SimonAndréForsberg hey, either you're flexible or you're not! ;) TTQW (late actually), later @all!
@skiwi Did you know that they've seemed to have released a JDK 9 snapshot already?
21:05
@Morwenn Any interest in this about-to-expire bounty?
8
Q: Variant class with full move support

OrientI tried to write my own variant class, that is fully move-semantics enabled. WRT to implemented visitors, they don't require any policy and like to be derived from boost::static_visitor or to contain typedefed result_type. The result type of the visitor deduced by means of std::result_of and als...

@200_success Let rolfl take a crack at it. He's a C++ expert now!
@200_success This one's all yours, @rolfl! ;-)
By the way, I have now created on Meta.
9 bounties at once! Wow!
Sigh, I really don't know how to help Webby. With each "new" question he changes the requirements and pulls me into trying to help with the design. I know it's not the goal of CR exactly, yet I tried to help. At least someone will finally get some karma out of it lol.
21:23
@DavidHarkness Oh, I have some review input on that question..... Don't use purple lines on a graph....!
@rolfl Sorry, I was talking about this one:
2
Q: Is my below code thread safe w.r.t all the main application threads should get consistent data?

WebbyI am working on a project in which I construct a url with a valid hostname (but not a blocked hostname) and then execute that URL using RestTemplate from my main application thread. I also have a single background thread in my application which parses the data from the url and extracts the block ...

Oh, I had not seen that one.
It's third (fourth?) in a series.
K, I see.
I answered one of the previous ones.
22:01
0
Q: Find triangles from line

nkintI have some lines that form triangles. I'd like to challenge the fastest way to find all triangles. In particular the code should take an ArrayList of Line2D object and return an ArrayList of Triangle2D. The only constrain is to use p1.distanceToSquared(p2) < 1) as equal function. Note: My c...

Okay, I've done my best to explain why atomicity is probably not required in this case and provided the tradeoffs. See anything I missed?
0
A: Is my below code thread safe w.r.t all the main application threads should get consistent data?

David HarknessAs I've stated in my previous answers, the first thing you must decide is "What level of atomicity does this application require?" I don't mean simple thread-safety, which the above code provides by not throwing exceptions or behaving in bizarre ways. Here are two examples where atomicity is vio...

23:00
0
Q: Checking PHP security on my file

mvascoI have created a PHP to change the user's login password. This is my code: <?php require_once('Connections/conexion.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION <...

23:22
Zombie kill!
0
A: A pointer vector sorted by its member function

JamalThere's probably much that can be done here, but I'll point out some things I've noticed: Since you're not overloading the default constructor, you don't have to include it. The compiler will make a default one for you. It looks like Add() is doing too many things: the actual adding updating...

0
Q: Correct way to center logo and navigation

JustinI'm new to CSS and HTML and while I've achieved a centering of the logo and navigation links, it feels wrong. I'm developing a site for a small non-profit for a side project. I have a logo next to a few navigation links. I put the logo and navigation links in a list. I have the logo and links...

hello!
@Jamal That's some crazy code!
hi
23 minutes to reload... counting.......
23:37
I've realized CR is an even better distraction than SO.
6
you know what they say, CRitter one day...
@DavidHarkness Your gravatar looks a tad like Corbin's, and I almost thought you were him. :P
@Jamal Yeah, one of these days I'll upload a real one.
@DavidHarkness - I threw in a competing answer on the Webby wuestion ;-)
^^^ I think I will keep the typo
@rolfl I'm weading it wow.
23:40
I thought it was intentional. :-)
I was wondewing if it was intentional ;)
So did I!
I wushed it to see if I could sqweeze in before 00:00Z ;-)
$5 says he accepts your answer and immediately posts your code in a new question.
My code is .... incomplete.
But it suggests a complete redesign of his process.
I hope it will take hime some time to digest .... and think through what I claim are the advantages.
23:45
If his head doesn't explode first ;)
Well, if it made sense to you .... ? (did it?)
(someone upvoted, and I know many folk are
@Mat'sMug did you get an e-mail from tim yet?
6-8 weeks, folk!
Patience
really?
I just wanted to make sure that I didn't get it in my junk mail or something
23:54
(checks junk inbox)
nope
> you'll all receive an email from me in the next few days to collect your size, prize preference and shipping information.
I'm wrong.
@rolfl It makes sense to me, yes. And I upvoted for that reason. But given the difficulty he's had understanding much simpler refactorings, I decided to target my answer specifically at his question.
Yeah, I understand, actually ;-)
@Malachi / @Mat'sMug - I recommend patience until at least tomorrow end-of-day ... give the US folk the time off....
Bahhhh ... I'm not going to make it today :(
23:57
Yes, today's a holiday for most everyone here.
I was at the beach most of the day...lol
I expect the SE folk mostly deserve the same ;-)
yeah. I just wasn't sure if it had already been sent sometime this last week... I don't know what their measurement of "next couple of days" is equal to in Real Time

« first day (387 days earlier)      last day (3929 days later) »