« first day (417 days earlier)      last day (3583 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
@chillworld "Attention to detail", "structured thinker", and "Lucky" are all characteristics that seem appropriate for your resume... ;-)
C# Folk... I know I should keep my nose out of these places, but, is C# performance always such a guessing game? : codereview.stackexchange.com/q/55220/31503
 
0
Q: Vectorize Matlab sum

Seanny123I have the following Matlab function: function [res] = a3_funct(x) res = 0; for i = 1:size(x,1) res = res + abs(x(i))^i; end end It's emulating this equation: Here is an example use: >> a3_funct([1,2,3]') ans = 32 I know I should be able to use the sum() function...

 
4:32 PM
0
Q: Better way of comparing integers

alexI wrote this class which is comparing some values, how can I improve its performance and maybe make it prettier? You can see at the bottom what type of data it requires, also the array size can reach 100 000 elements. As it is the class is working fine, but I would like to get a second opinion ...

0
Q: PHP : Is it possible to optimize two for loops and a foreach?

user3510209I'm writing a php function to collect data from different positions in an given array, I've done it as follows which gives me what I require. for ($a=9; $a < 13; $a++) { $n = $arr[$a][2]; $p = $arr[$a][3]; $c = $p; $v1[] = array($n,$p,$c); } for ($b=3; $b < 16; $b+=4) { $h...

 
@rolfl I don't use C# much either, but the last time I did, the profiler I used seemed to be pretty competent.
 
@JeroenVannevel I still think it's a bad design if a class about network connections starts to give UI popups by default... I could slightly understand it as optional
Haskell, what?
data PointSet s a where
    Halfplane :: RealFrac a =>
                 a -> a -> a -> (a -> a -> Bool) -> a ->
                 PointSet Halfplane
 
@skiwi Decoupling error detection from reporting is one of the (big) reasons nearly all reasonably modern languages include some sort of exceptions/exception handling.
 
@JerryCoffin But C# has exceptions, right?
 
@skiwi Yes, I believe so.
 
4:39 PM
Then it's a really messed up design there?
 
@skiwi Where? Not sure what code you're talking about.
 
11
A: Windows.Web.Http.HttpClient#GetAsync throws an incomplete exception when invalid credentials are used with basic authentication

Yuval ItzchakovAfter reconstructing your example and playing around, i figured out what happens. var data = await client.GetAsync(new Uri("https://mytestdomain/v2/apikey?format=Json")); The GetAsync method invokes the http request with invalid credentials. What happens is that the returned request tries to l...

It is code that does an async call to an URL, and returns the data
 
@skiwi I'm not at all sure, but it looks to me like that's not quite the case. Rather, it looks like an exception is being thrown somewhere deep down, and (by default) they install a top-level exception handler that simply displays a message if an exception was thrown, and nothing else caught it.
 
@ckuhn203 hope I didn't overlap too much: codereview.stackexchange.com/a/55240/23788 ;)
 
@JerryCoffin I see, that changes the case somewhat... yet still not what I would expect
 
4:50 PM
I hope you're not bots! - Well this is awkward... — syb0rg 2 days ago
^^ lol!
 
Huh.... I hate when I have to eat crow.
2
 
@rolfl You what?
 
@Mat'sMug I'll check it out in a minute.
 
@rolfl what do you mean, such a guessing game?
They called it Code Hunt because Code Golf was already taken! — Mat's Mug 6 secs ago
 
2
A: Finding the largest mirror image of a subset of integers present in an array of integers

rolflThe algorithm you have chosen is not optimal. You scan all possible values and when you find a solution you remember it if it is bigger than the previous. Instead, what you can do, is work optimistically, and assume the solution will be big, and work backwards from there... then, you can exit wit...

 
4:58 PM
is this an answer?
0
A: Finding the largest mirror image of a subset of integers present in an array of integers

mjolkaAs your code has already been reviewed, I would just like to propose another solution: to find the longest common "substring" of the array and its reversal. Finding this by dynamic programming can be done in \$O(n^2)\$ time and \$O(n)\$ space.

NAA'd.
 
ravenspoint - let's continue this discussion in chat -> The 2nd Monitorrolfl ♦ 8 secs ago
@Mat'sMug - would be nice if you were here if/when he joins ...
C# ... not my strongest language.
But, I suspect he's got a misunderstanding of how Sockets work in C#.
 
noticed my tag score? :)
 
0
Q: C# EF6-Lambda Expressions deep big-tree query improvement for efficiency and clean code

beto_veHi there fellow coders, I am looking to improve the following query. We are using EF6 (CodeFirst) and C# Lambda Expressions, and Repository/Unit of Work patterns. Also, we needed to restrict the query in a way that we could inner-query the entities so that the query will only retrieve a subset...

 
5:13 PM
(non-score actually)
 
Well. yeah, but, just because noone asks questions with sockets as the tag....
 
I don't think it overlapped too bad @Mat'sMug. When it did, it clarified what I was trying to say. You're gold.
 
lol thanks :)
 
It makes me feel like I did a pretty good job though. If you're worried about overlapping, I was pretty thorough.
 
0
A: Making a phone call in the background

CommonsWare Is it possible for my service to make a quiet phone call? No.

Such a descriptive answer.
 
5:19 PM
Why is someone even trying to do that? I'd be furious if I found out an app I was running was quietly making phone calls in the background.
 
0
Q: Javascript - running code once

user3699801I only want my JavaScript to run once, but I cannot control how many times the javascript file is executed. Basically I'm writing a tiny JS snippet into a CMS, and the CMS is actually calling it 5-10 times. So this is my solution: var doneTheStuff; $( document ).ready(function() { if (!doneTheSt...

0
Q: Accelerated c++ - exercise 4-5

user3263252I'm extremely new in c++ and doing the exercises on the book Accelerated c++. Here is one of the exercises. 4-5. Write a function that reads words from an input stream and stores them in a vector. Use that function both to write programs that count the number of words in the input, and to count ...

 
@Jamal Well, what more is there to say? The question is nuts to begin with...
 
I know
 
41 mugs...
 
Perhaps I should have destroyed the MugFactory instead of the mugs on the wall...
3
 
5:35 PM
wait, is that an abstract factory?
just tweak the IoC config to inject a SimonFactory instead then!
 
lol
 
oh, that would be sockpuppetting. nevermind ;)
 
@Mat'sMug I don't know, are you abstract?
 
only when I STM'd.
 
0
Q: Troubleshooting a multi producer single consumer circular buffer implementation

ziuI have been trying to implement a MPSC circular buffer in C for Linux. Here it is the buffer structure: typedef struct mpsc_buffer_s { sem_t semaphore; unsigned char cache_pad_1[CACHE_LINE - sizeof(sem_t)]; uint64_t write_pos; unsigned char cache_pad_2[CACHE_LINE - sizeof(uint64_...

 
6:16 PM
0
Q: optimize way of reading and writing file in node.js

Harshal SawantI want to read the content of file then want to make few updates to content and then write that content to another file. I have created the code with node.js as follows. var filePath = path.join('public/index.html'), exactFileName = path.basename(filePath), outputDir = "output/"; function readCo...

3
Q: "Two-pass algorithm" implementation in Java

PickettI'm rather new to Java and to algorithms in general. I implemented the so called Two-pass algorithm, and want to know if there are improvements to my way of implementing it. What it does is it takes a matrix of ones and zeros and replaces all ones by labels. All ones that are connected should be ...

 
Stop smoking the documentation. It's bad for your health.
2
 
@ckuhn203 As if smoking something else is better for the health?
 
lol
3
 
@Simon when you answer that two-pass question ....
you may want to point out that int arrays are initialized to 0 in Java ;-)
 
@rolfl What makes you think that I'm going to answer it?
 
6:23 PM
this makes me twitch
int[][] matrix = {{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
        0, 0, 0, 0, 0, 0, 0}, {1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0,
        1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1}, {0, 1, 0, 0, 0, 0, 0,
        1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0}, {0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
        0, 1, 0, 0, 1, 0, 0, 1, 0}, {0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0,
        1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1}, {0, 0, 0, 0, 1,
 
Well, it was just presumptious.
 
Oh dear... I understand now...
 
And, I have 230 monkeys on the wall from today already.
 
@Mat'sMug I hope it's at least auto generated
 
@rolfl You have a wall?
 
6:27 PM
47 kiwi's here
 
100 Simon's today, I barely remember having answered anything today
 
@skiwi look at you, full of hopes!
4
 
Google I/O appereantly is now
Not the least interesting, Tessellation and Geometry shaders on Android/GPU, that's like up to par on OpenGL 4.3 or 4.2
(PC is at OpenGL 4.4 commonly, with the cards from one year old or maybe slightly older)
Where's the announcement that the ART will support Java 8? (:
 
Couldn't help
0
A: "Two-pass algorithm" implementation in Java

Mat's MugJust a small little comment about your array initializer: int[][] matrix = {{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1}, {0, 1, 0, 0, 0, 0, ...

 
If only I could read machine language. :-P
 
6:37 PM
it's more like a... bitmap.
 
I know. I was just thinking of machine language at the time.
 
Holy *** that question is hot!
 
0
Q: Refactor jQuery multiple click() event handlers

Jamie BI'm using basic jQuery to render tab data. I was wondering if anybody could comment on how to refactor the click() event handlers, and any general guidance or advice. Here's the code/output in jsFiddle Please see snapshot below of the main lines of code I'd like to clean up. Also be great if ...

 
@Simon - instead of using:
`List<List<Integer>> linked = new ArrayList<List<Integer>>();`
use
`List<List<Integer>> linked = new ArrayList<>();`
 
@SimonAndréForsberg What one?
 
6:46 PM
@rolfl You're assuming Java 7 is being used, but yes, I'll add that
 
@SimonAndréForsberg yes, I had to; doesn't it make the lined-up block stand out? :)
 
6
Q: "Two-pass algorithm" implementation in Java

PickettI'm rather new to Java and to algorithms in general. I implemented the so called Two-pass algorithm, and want to know if there are improvements to my way of implementing it. What it does is it takes a matrix of ones and zeros and replaces all ones by labels. All ones that are connected should be ...

 
Only valid reasons for Java 6 (or lowr) in my opinion are when you are writing general libraries intended for open source, or work at a company having only access to Java 6
All toy projects should be mandatory Java 8 by now! Well... Java 7 at least
Ah, then it just went hot
 
@skiwi Or are developing for low Android APIs and don't want to use retrolambda and gradle and all that stuff
 
@SimonAndréForsberg Hmm... that's an option as well
 
6:51 PM
There you go, 9 SotW's!
 
+170 today, how many more up-votes will I get? Should I post a +50 bounty somewhere?
 
make it +100 just to be on a safe side ;)
 
Nice try, Mug!
Perhaps I should keep my SotW's.
 
I can't post another answer until later tonight (knowledge transfer meeting 'till end-of-day), so you'll likely go to sleep leading the race..
 
And then I'll have nightmares about how your MugFactory destroys my wall?
3
 
6:54 PM
All in all, you're just another mug on the wall.
2
 
I'm so gonna get our of stars here.
We're lucky that every star does not cost 1 reputation on the main site.
 
0
Q: Optimization of aStar in Java

Andrew BI'm currently looking to optimize my aStar algorithm as my last run through took roughly a minute to generate one path. I've never had to optimize before as I've never run into performance issues, so I'm not sure where to even start with this one. If I could get some help on this it'd be great, ...

 
@CaptainObvious you gotta be kidding!
now we need a tag
and that's off-topic / no code.
 
Does it deserve immediate closure?
 
for not embedding the code? totally.
 
7:00 PM
By the way, 268 lines of code is not enormous! You ain't seen what enormous is!Simon André Forsberg 7 secs ago
@ckuhn203 I'm not a Mug!? (I hope!)
 
@Mat'sMug Astar is interesting, and comments could save the day!
 
lol. I could show him an enormous mess.
 
            //right child
            col++;
            addChild(row, col, tiles, currentNode, goal);

            //left child
            col -= 2;
            addChild(row, col, tiles, currentNode, goal);

            //top child
            col++;
            row--;
            addChild(row, col, tiles, currentNode, goal);

            //bottom child
            row += 2;
            addChild(row, col, tiles, currentNode, goal);
Oh dear....
 
My first question broke the 30000 character limit.
2
 
All my questions breaks that.
ping me if/when that question has the code embedded
 
7:05 PM
Hmm, I didn't put down where I have my exam tomorrow morning
 
ugh gotta go, won't be able to retract my close vote / vote to reopen when/if the code gets embeded. Please do keep an eye on that one!
 
And this is exactly why links to code isn't acceptable.
 
0
Q: Why do we have to directly insert our code into a question?

Some GuyI have an issue about being required to insert your code into your question. This can be extremely annoying for many. If you have a large chunk of code, it's also easier for users to understand if you can link your code in, for example, a pastebin paste. It also helps due to the fact that code fo...

 
@ckuhn203 This could be a good answer.
(if it weren't a dupe, at least)
 
7:10 PM
I know. I was just trying to figure out how to add it to the wiki without defacing such a professional answer.
 
0
Q: Batch startup log

09stephenbI have made this batch code: @echo off pushd %appdata%\Microsoft\Windows\Start Menu\Programs\Startup dir /s/b/o:gn > startup.txt move "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\startup.txt" %userprofile%\Desktop To use it copy it in to a txt file and then rename it from .txt to ....

 
0
A: Can I put my code on a third party site and link to the site in my question?

Mat's MugNo. Because there's a reason we require your code embedded in the question:

 
@Mat'sMug Beat me to it.
 
@Mat'sMug That works. :-)
 
At least we here are mature enough to refrain from downvoting if closevoting is enough.
 
7:15 PM
I think it's unfair to down vote if I vtc. If the question gets opened back up, it has a stigma attached to it.
 
Speaking of which, if you encounter an older (answered) question that only has a dead link, please flag it. There are still some around with code behind an intact link, but I haven't deleted them because the code was still available.
 
Yeah, I mean, what is a downvote going to do anyway? Solve world problems?
 
@skiwi If only it could...
 
@SimonAndréForsberg Downvote wars, oh damn, I did it again.
 
@skiwi Each downvote feeds one family in Bohazniland for two days.
2
 
7:20 PM
4 mins ago, by Simon André Forsberg
@skiwi If only it could...
 
He added the code guys.
0
Q: Optimization of aStar in Java

Andrew BI'm currently looking to optimize my aStar algorithm as my last run through took roughly a minute to generate one path. I've never had to optimize before as I've never run into performance issues, so I'm not sure where to even start with this one. If I could get some help on this it'd be great, ...

 
I'll start working on it meanwhile :)
 
0
Q: Is there a better version for verbosing the output of the euclidean method?

molnardenesMy class is look as follows. My question is how to make it more "professional". It's working right, but isn't this too newbie? public class Euklideszi { public int Euklideszi(int a, int b, boolean lepesrolLepesre) { int r = a % b; if (a < b) { r = a; ...

 
Wow, was the teacher drunk when writing this sentence? I'll do Dutch first, then google translate, then english translate with typos intact
"Stel, U zonder toestemming een film downloaden. De film is heel slecht en u kijkt nooit na deze film. Leg uit wat mensen die in natuurlijke rechten geloven zou zegen: is uw actie moreel jouist of unjiust?"
lol
"Suppose you download a movie without permission. The film is very bad, and you never look after this movie. Explain what people who believe in natural rights would be a blessing: your action is morally jouist or unjiust?"
The last one is clear enough ;)
 
7:36 PM
Oh dear, so many Java questions this evening
 
At least they're not JAVA questions.
7
 
@200_success Even better, employers looking for people proficient in JAVA.
 
@skiwi Java? No, we're hiring JAVA people. Sorry.
6
 
@skiwi I was once proficient in Pig-latin. That's pretty close, isn't it?
 
That A* code has to wait, Euclides is calling!
 
7:48 PM
@Jamal If you have time... I just noticed I'm out of my edit grace period
You could start with writing everything in English, while code in your own language may definately be considered professional in some branches, it is not the way to go with the curren internatiolization. — skiwi 20 mins ago
I believe I made a typo there ;-)
Though it was almost correct?
 
@skiwi Fixed
 
@skiwi A couple of typos, actually. "definitely", "current", and "internationalization". The comma after "English" should really be a period or semicolon as well.
3
 
Got them all.
Although next time, if a mod isn't around, you could just delete the comment and post a new one with all the corrections.
 
@Jamal That's... smart, I didn't think about that
I'll be sure to do so next time
@JerryCoffin Somehow I always keep messing up definately vs definately
 
I've kept the title on the Euclidean post slightly broken. It's a useful signal that the author has some difficulty with English.
 
7:53 PM
@skiwi If it's any comfort, you seem to have a lot of company.
 
0
Q: Large number to many characters

nickpandolfiMy goal is to take any size number, and convert it to a string of smaller characters that represent the concatenation of the binary expansion of the number. To illustrate what I am talking about, here is an example using the number 4820: 4820's binary: 0001001011011101 # 16 bits of binary,...

 
That reminds me, we haven't seen much of @palacsint lately.
 
Or ChrisW. Or Gareth Reese.
 
ChrisW told me he was taking a break after 10k.
 
Ah
Has Gareth said anything? I was expecting him to reach 10K, but Jerry may end up getting there first.
 
7:58 PM
@JerryCoffin Ahhh the once proud and noble semi-colon... now nearly exinct.
 
@ckuhn203 I tend to use a semi-colon a lot... In programming.
5
It's not gone, it changed habitat!
 
Bounty posted!
15
Q: Capture the notion of invertible functions

JavranI find sometimes it is useful to capture the notion of invertible functions. The idea is that if two functions f :: a -> b and g :: b -> a are the inverse function of each other, and if there is another function h :: b -> b, then h can also work on values of type a. Moreover, if there f' and g'...

That's our current top-voted unanswered question.
I hope I'll be able to rep-cap today anyway. 21 mugs on the wall
 
@SimonAndréForsberg That's some heavy code; Haskell looks extremely powerful.
 
@skiwi Honestly, I have absolutely no clue about what the code does.
 
@SimonAndréForsberg I have some clue... Though I also see lots of magic
 
8:06 PM
lol:
What a troll - "just a small comment"... proceeds to paste two gigantic matrices. — corsiKa 29 mins ago
 
Is there a reason that Java doesn't allow method declarations inside methods?
 
@Mat'sMug That guy is apparently a moderator at a SE site, he posted this comment on meta:
As a moderator on SQA, I do not believe a general "review my software" would be welcome. However, you could probably achieve the same results if you took the "teach to fish" approach. You could probably describe a bit about the app and what your goal is (better usability? better reliability?) and then ask "how would I test such an app for _____?" You could also consider the existing "User Experience" Stack Exchange, they might be able to help in that regard. — corsiKa 27 mins ago
 
Small question: Does this look okay?
public static void loadFrom(final Properties properties) {
    Function<String, Path> getPath = key -> Paths.get(properties.getProperty(Objects.requireNonNull(key, "key")));

    MANUAL_DIRECTORY = getPath.apply("ManualDirectory");
    CONFIG_FILE = getPath.apply("ConfigFile");
    ID_FILE = getPath.apply("IdFile");
}
Extracting a method would require me to pass properties all the time to that method
 
8:16 PM
@JerryCoffin hahahhahahhahaa epic
 
@ckuhn203 That's simply awesome.
(Out of stars :()
TTGTB
 
'night @skiwi;
 
Cya
 
Night @skiwi
@Mat'sMug My plan didn't work. I don't get any more rep today. I'm rep-capped, but only +150. :(
The bounty system apparently can't be (ab)used like that...
 
8:31 PM
aw
I got +140 today
so net +10 SotW's / -10 MotW's :)
...but it's not even 5pm on this side of the Atlantic :p
@SimonAndréForsberg speaking of bounties, I'll give the bounty to the answer you accept, if you accept one within the bounty period.
(the minesweeper post)
 
@Mat'sMug And I was about to say that I'll accept the answer you give the bounty to.
 
Mexican standoff; Code Review style. ^^
 
Right now, VoiceOfUnreason's answer is by far the best one. I'm not so sure about the latest answer is any good recommendation at all, I'll have to investigate that more.
@ckuhn203 Oh, crap. Out of stars. TS.
 
(RSA'd)
 
So am I. lol
 
8:39 PM
@Mat'sMug I knew you would come in handy one day, Mug.
 
I'll wait a bit more, +7 isn't too far from being a nice answer
 
Yeah, there's still some days left
 
and @Marc-Andre might edit his answer into one that beats @VoiceOfUnreason's
hey @Marc-Andre :)
 
@Mat'sMug well please :D I'm still digesting @Simon code !
 
haha, you should try it on some test boards @Marc-Andre. You can find some examples in the GitHub repository
 
8:42 PM
@SimonAndréForsberg Well it's my next step! I just have too much work at work, it's sad!
And the steam sale is killing me :P
 
TTQW - later @all!
damn I have too many stars
 
@Marc-Andre I'll second that.
 
0
Q: out of memory error for find and replace colors macro

user3711502I created a basic find and replace macro for colors. Users can either select a color to find and a color to replace by selecting cells or from the color palette. The macro runs correctly, but after it has run there appear five consecutive 'Out of memory' errors. (i.e. I hit ok on the error and it...

 
@CaptainObvious Broken code
TTGHAGD --> Time to go home and get drunk.
5
Cya guys.
 
9:05 PM
Bye
 
9:17 PM
0
Q: C Development Utilities Library

DaltonI have been working on a small library of development utilities for some time now, incrementally improving and expanding it as I make use of it in other projects. I feel that it is fairly mature now; I've worked out enough bugs that I can say it is decently stable and I feel that it is time for a...

 
9:27 PM
0
Q: Ruby Bot application (is it good for a noob)

Mark require 'sqlite3' #Open the SQLite3 Database @db = SQLite3::Database.open "data.db" #Getting information to create a bot with def start puts "Enter a Bots name:" @name = gets.chomp puts "Enter the age:" @age = gets.chomp puts "Enter a job:" @job = gets.chomp end...

 
Hey guys
 
@Phrancis Yo.
 
0
Q: Best Practice, Return type as int or bool from function returning booleans

beardint func (int a, int b){ if(a < b){ return false; // or 0 } else { return true; // or 1 } } Given the Above function, or another similar function that returns boolean true/false, Is it better to return 1/0 or true/false? What is the best practice? Alternatively would i...

 
10:04 PM
Well TTGAB later all
 
@Phrancis Have you played my tic-tac-toe?
 
Is this comment grammatically correct?
@molnardenes Excellent question! I've edited my answer and provided a clean way to do this. Although using Loggers, as suggested by 200_success, is also an option - unless you some day might want to save the steps to a list. — Simon André Forsberg 20 secs ago
Especially, is - between "option" and "unless" a good choice?
 
Are you suggesting that Java loggers can't save the steps to a list?
 
@Marc-Andre That's why I try to stay away from steam. (I only have one steam game anyway...)
@200_success Hmm... Now that you mention it, they probably can. Although I see no reason for why one would want that option instead of a callback interface if that was the case
 
Loggers are basically infinitely configurable, and you can even write plugins.
 
10:18 PM
Can a logger be gíven the a, b and r values without it being as a String?
@200_success lko(), nice one. Clever :)
 
Yes, loggers can log structured data as well as strings, using Logger.log(Level, String, Object[])
 
@200_success Which method would you say is preferable if you want it as a list, using a Logger or a callback interface?
Monkevening @rolfl
 
I think loggers are good enough that you probably don't want to reinvent the wheel. Especially since the original question just had S.o.println(). YAGNI.
And, in any case, loggers will be more flexible than anything you can write from scratch.
 
It suddenly sounds like loggers can be used for all kinds of interfaces, which does not sound like what they are meant for.
 
Explain your concern?
 
10:27 PM
I mean, if loggers can be used as a callback interface for "logging to a List<EuclidesStep>", they can be used for all other callback interfaces as well, although I believe that's not their intended purpose, they should probably only be used for logging to File and to Sysout.
 
The intention is probably to make it possible to write a plugin to log to a database, for example. You could abuse that extensibility, sure.
 
@SimonAndréForsberg I think Logback also supports a DB and a TCP/IP socket.
 
@Donald.McLean Yes, indeed it does.
 
Not to mention quite a variety of options for files (rolling over, etc).
 
Yeah, I remember them. I'm using Log4j every now and then...
 
10:46 PM
0
Q: Set up event on class and initialize state

JaredVery similar to this question, I'm curious about common patterns/best practices for handling events in coffeescript classes, particularly when you also need to call the event handlers immediately to initialize state. Unlike the answer to the question above though, let's assume though that you do...

 
TTGTB, night y'all
 
11:39 PM
@SimonAndréForsberg Delayed Monkevening
too late, it seems.
 
Hey all
 
hey @AlexL
 
11:57 PM
As I'm stuck here waiting on decompressing a bunch of files to import some test data, I can only think of how I could modify Devo's Whip It to be about compression and rename it to Zip It
 
0
Q: Skiena's Programming Challenges: The Trip problem

simonI have the following solution for the Trip problem from Skiena's and Revilla's Programming Challenges (full problem description here). #include <stdio.h> double truncate_to_2_decimals(double n) { return (double)((int)(n*100.0)) / 100.0; } double mean(int n, double numbers[]) { double r...

 
00:00 - 16:0016:00 - 00:00

« first day (417 days earlier)      last day (3583 days later) »