« first day (444 days earlier)      last day (3574 days later) » 

1:03 PM
Welcome to CR! I must say this is an impressive first answer. — ckuhn203 32 secs ago
 
@syb0rg resorting to sabotage now??? JK thanks for the Edit! :)
 
0
Q: Better way to assert correct return values in Groovy

valenterryI have written a function that returns me the duplicates of a list: static List<SomeClass> findDuplicateElements(List<SomeClass> myObjects) { List<SomeClass> duplicates = myObjects .groupBy { it.someAttribute } .findAll { it.value.size() > 1 } .collect { it.value } .flatten()...

 
@Donald.McLean Like seldom logging in on Saturdays?
 
@rolfl No, I logged in and checked the site, but whatever I did on one particular day apparently didn't count, and so I lost the streak.
 
If you click on the 'x days consecutive' in your profile it shows you a calendar of what days you signed in.
 
1:13 PM
@rolfl Yes, I know.
It also shows you the last time you were "active".
 
@Jamal, can you find a better title for this? or @rolfl (it's Java) codereview.stackexchange.com/q/36117/18427
or anyone I guess
 
@Malachi I am drawing a blank
 
@rolfl lol it's hard to make that shorter or make it clearer without making it longer.
 
Hi everyone!
 
Now tag badges - those I respect.
4
 
1:19 PM
Hey @Marc
 
oh that link
 
think I got it @rolfl give me a second
 
@Marc-Andre Greetings.
 
Hello everyone =D
 
0
Q: how to make an app lightweight in blackberry browserfield

user3828709Following is the code for my app MyApp.java public class MyApp extends UiApplication { public static void main(String[] args) { // Create a new instance of the application and make the currently // running thread the application's event dispatch thread. MyApp theApp = new MyApp(); theAp...

 
1:21 PM
@ckuhn203 What did you mean by your comment ?
 
I made some other changes to the question as well, hope I didn't over step
 
@Marc-Andre This one?
It is and there's actually been some discussion about this on meta, but I don't want to get chatty in the comments. That's what the second monitor is for. — ckuhn203 4 mins ago
 
Yeah
Is it for me or in general ?
 
Just responding to a comment about how giving full answers is hard.
 
ohh ok
 
1:24 PM
@ckuhn203 Giving a full answer is actually hard because you can't just point out 1 thing and be done... you'd be missing more than half of the question. And then this was a natural result once I went down that path =D. I'd love to see someone else catch somethings that I missed, however. Now that I've invested some time in this I wanna see how it can be improved too. — Pimgd 12 mins ago
 
Yeah I'm starting to write smaller answer, cause I don't have that much time to write wall of texts!
 
Yah that. It's like "oh but you can do this..." oh wait and then you can do that... and then that... hmm... but that's obviously not gonna work unless you change that too... and before you know it it's 40 minutes later and you've gone through 5 cycles and there's not a lot of original code left
 
@rolfl Maven is playing with me, he's duplicating files when constructing the JAR. Sometimes automated tools can be a pain!
 
I'm a fan of it. Pick one or two things to focus on and let others pick up the other things. I think it generates more overall rep on the site that way.
And makes it easier to find the time to write a review.
 
Someone minds aiding me to cross the 2k mark today?
1
Q: check if bit is only set once in a vector of int

magu_I have a vector of uint16_t now I want to check if there is a bit which is only set in one vector. And then get its position within the vector as well as from the bit. Let's say we have: v[0] = 0100 v[1] = 0110 v[2] = 1001 I would like to know that ind = 1 and val = 2. In clumsy code this wo...

 
1:26 PM
@Marc-Andre only sometimes..... if you use ant it is not a pain.
 
@ckuhn203 exactly!
 
Jun 3 at 17:22, by rolfl
All systems have some flaws.... but, maven seems to be built specifically to do things the way that make the least amount of sense.
 
TBH I went for a (semi-?)full answer because I redirected the asker here and I didn't think he would get a full answer because AS3 is not a popular language & I'd hate for the guy, after a redirect, not to get his question answered
 
Jun 3 at 17:19, by rolfl
@skiwi - there have been very few things I have tried in life, and truly grown to hate. Maven is one of those though.
 
1:27 PM
@rolfl Well I have only seen one or two ant files and god it was awful too! (But the people who did it were not prepare to do something clean IMHO)
 
@ckuhn203: there is also
> validationField.Requiered)
 
@Nobody I believe think the IDE would pick that up when changing the one I pointed out.
 
@rolfl Yeah I'm just not sure how I would handle libraries in a personal project.
 
@ckuhn203: Oh, I somehow mistook it and thought it was yet another mistake but it is the same that you pointed out
 
have you considered creating a folder called 'libs', and downloading the jars in to it?
 
1:29 PM
I've started to learn a new web framework! So I'll probably have something to review soon!
2
 
then putting it in your classpath?
Like most people do.... then, you check in the jars to your version control too.
 
Finally 2k, thanks Santa!
 
@rolfl It's the classpath part I've never been good at it!
 
And you think learning maven is easier than understanding the classpath?
 
Well that's the tool we have at work so It's kind of my job to learn it ;)
 
1:32 PM
@Nobody Grats!
 
@Nobody I'm not so sure about using an enum there
 
OK, so, two things..... learning maven is not an alternative to understanding the classpath. In fact, the fact that maven dependencies occasionally screw up the classpath is the prime reason to learn it (how classpaths work).
 
And the last time I've used a library it was in a school project!
 
@Yuushi: After seeing it I am not sure as well
It got a bit too verbose I think
 
@rolfl I have yet so much to learn still!
 
1:34 PM
It is my opinion that, since 90% of the 'value' of maven is the 'automatic' management of the classpath, that you should learn the classpath concept before you learn maven.
 
@Nobody it's not really that verbose...I wrote up something but didn't post it because it's probably even more verbose
 
@Yuushi: If it is not the verboseness then what do you dislike about the enum?
(besides the ugly names)
 
@rolfl I guess you're right, but in my work environment I'm not under "mentoring" by a senior or something, so I'm a bit on my own to choose what I must concentrate on ! Will take the time to learn the concept when I'll be working with my new project.
 
Also, if you're interested in having the code from your answer reviewed, we have a bit of a friendly competition going on. – ckuhn203 14 mins ago
I'd be interested, but the asker has circumstances where they have to do the refactoring as an assignment, so I'd hate to make them look like a plagarismistist (or however you call that). Is there some way I can enter and polish my code without doing that on the specific question?
Also how do you link to comments =/
 
@Pimgd juste paste the url withouth any other info or caracter
 
1:39 PM
@Nobody I'm not quite sure...it just seems somehow unnecessary
 
Woah, so much chat
 
Also, if you're interested in having the code from your answer reviewed, we have a bit of a friendly competition going on. — ckuhn203 17 mins ago
 
I've been bug hunting here at work.
 
@Yuushi: It basically is a state machine hardcoded with an enum and a switch and only one input
 
Hi @Pimgd!
 
1:40 PM
Hi =)
 
welcome to CR / The 2nd Monitor, @Pimgd!
 
@Pimgd Hmmmmmm..... interesting question, but I would think that's on him to make sure he implements your suggestions himself.
 
@Nobody Now that you mention it, a state machine probably isn't the worst way of solving it
I think it was just something very different from the way I thought about it is all
 
I mean... and this might be mighty naive, but when I refactor a given piece of code, it ends up looking some other way. If I were to refactor a said piece of code again, it would look more or less the same as the first refactor attempt, if there's no external suggestions. So if he's gonna refactor his code via my suggestions, and I'm gonna do it like that as well, there's a pretty high chance it ends up looking the same
 
@Pimgd - all content posted to Stack Exchange is posted under the CC-A-SA license. Posting a link to the source should be fine, and it's notplagarism then ;)
4
 
1:44 PM
@Yuushi: I have added a counter based version
 
Hey @Mat'sMug !
 
@Marc-Andre You need some Maven assistance?
 
^^^ he needs maven purging ;-)
 
@rolfl it might not be plagarism, but it's like you pull your essay from the internet. You still require to attribute, and that nets you a "please do the work yourself next time, here's your F"
 
@SimonAndréForsberg Well I think I found my problem, and I think it's related to windows and case-sensitivity.
 
1:46 PM
@Pimgd Maybe I missed some context .... but, sure, if your assignment is to do your own work, and you don't, you will get the F, but still be legal ;-)
 
Looking at codereview.stackexchange.com/questions/tagged/rags-to-riches , you need to post a seperate question with the tag?
 
0
Q: Improving nested for loops for sub menu creation

HulazI have a nested loop which creates a drop down with 3 levels. Works fine on modern browsers but on IE8 it hangs and takes several seconds when theres even a moderate volume of data. It creates a list of publishers, when i click a publisher i get that publishers authors, click an author i get th...

 
@Marc-Andre Sounds like a reasonable problem.
 
My problem is I can't modify my jar after I've created it because there are duplicate files. The duplicate are LICENSE.txt, license.txt and NOTICE.txt,notice.txt
 
Yeah, that definitely sounds like a case-insensetive problem.
 
1:48 PM
I'll be having fun writing custom appenders in a bit.
 
@Pimgd The concept is simple, a lot of people on CR either ask questions, or provide answers. One of the ideas for is to provide a way for people who normally only answer, to actually ask a question.
 
@rolfl ah, to see if anything could be improved about the answer?
 
For example, the code I actually work on, is proprietary, and I can't post.
 
@rolfl We will soon need something for people who only ask question to answer !
5
 
@Pimgd No, it's more than that, it's a case of saying, hey, I came accross this interesting problem, I think I can do it/make it better, this is my attempt, how did I do?
 
1:50 PM
@Marc-Andre I'd be interested in seeing a JDA....
 
@skiwi I did that for Log4j 1.2.17, so that if I was online in my Minesweeper Flags game, it would send messages to me in-game. Pretty handy. Until it started spamming me like crazy so that my webbrowser would stop responding.....
 
Should I rethink this name?
public interface DocumentIdThreadedCleanPathWrappingConsumer extends CleanPathWrappingConsumer {
(No it is not a library interface nor going to be used by others)
 
@skiwi If you have to ask that question at all, the answer is yes.
 
Yes? It's too long and I don't know what it does
 
At least think about it.
 
1:51 PM
@skiwi Yes.
 
@Pimgd - a few things tend to happen on CR, and, like 'linked-list', and 'fizz buzz', a lot of the regulars who normally answer lots, have written implementations because these problems are intriguing.
Often done in a language they are not familiar with.
 
Some of us Me only even does it in
 
or that doesn't even exist
 
@SimonAndréForsberg he's insane
 
1:53 PM
@Pimgd Mabye just a little
 
I have a class that implements a functional interface that extends a functional interface that extends a functional interface that extends java.util.function.Consumer.
 
15
Q: FizzBuzz in Brainfuck

Simon André ForsbergInspired a bit by a previous Brainfuck question and the recent fizzbuzz invasion, I decided to make FizzBuzz in Brainfuck. The code is entirely my own, except for the inclusion of the Printing a number algorithm that I found on StackOverflow. My code is divided into several parts. Setup Const...

Although I have not yet made in ... Oh, the horror.
4
 
The only thing that would be more insane is something I saw on code golf once... it was valid brainfuck AND javascript, and in javascript it alerted 1. I dunno what it did in brainfuck.
 
tagging with indicates an attempt to claim that your code is 'exemplar', and .... also just indicates that the original problem/answer/issue is interesting, and not original.
 
Oh god, something serious was made in BF? — WaffleStealer654 Jul 19 at 6:03
 
1:54 PM
@skiwi You have a class that does something crazy.
 
Here, it was this one
33
A: Write program in your favorite language in another language

Clyde LoboBrainfuck in JS [][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[ !+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[ +!+[]]]]][([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+( ![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!...

 
@SimonAndréForsberg Can't easily share, but I'll be sure to do so once I can!
 
@Pimgd - you have seen the SO 404 page, right?
 
@Pimgd I'll try it
 
201
Q: What's the joke in the Stack Overflow 404 page code?

DexterI have journeyed thus and bruised into the lands of the error page on Stack Overflow. There, upon the hill I see a vision as such: For those reading with images off: # define v putchar # define print(x) main(){v(4+v(v(52)-4));return 0;}/* #>+++++++4+[>++++++<-]>++++.----.++++.*/ print(202*2...

 
1:57 PM
@Pimgd In Brainfuck, that does absolutely nothing.
 
@SimonAndréForsberg aww =/
 
Hmpf. I have to look up the docs every time I try to unpivot something in SQL...
 
How is that small Fibonacci answer getting 6 upvotes... what
 
@rolfl I just thought it was very poorly done code, done to look sciency. ... then again, I formulated that opinion like 4-8 years ago (I don't know exactly), when I first saw it. I never really looked at 404 pages after that.
 
(I was the same until someone pointed me to the meta post ;-)
 
2:01 PM
Woo, I reached 1k rep on SO
 
@rolfl I never knew what it really was! I just thought it was some pretty code to print 404.
 
@skiwi The power of the . Programmers eat it up.
 
The power of WTF.
2
@Override
default void cleanWrappingAccept(final Path path) throws Exception {
    String name = path.getFileName().toString();
    CachingExceptionThread thread = new CachingExceptionThread(() -> {
        try {
            threadedCleanWrappingAccept(path);
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
    }, "documentId=" + name);
    thread.setDaemon(true);
    thread.start();
    if (thread.getException().isPresent()) {
        Exception wrapperException = (Exception)thread.getException().get();
Smugging exceptions 101.
Yes, I'll get that reviewed before throwing it in live :)
 
@skiwi thread.start(); if (thread.getException() ? Really?
 
It blows up pretty quickly, I guess.
 
2:08 PM
thread.getException() I presume does a join?
If it does, then why have a thread?
 
Either that, or what @skiwi is doing won't work.
@rolfl Exactly what I thought.
I don't think it does a join though
 
in which case it does nothing ... ;-)
 
Is the join absolutely necessary for the code to continue?
I might want to must add it yes.
 
Even worse, there's no such method as thread.getException()...
 
@SimonAndréForsberg There is :)
 
2:10 PM
Oh wait, that's a CachingExceptionThread
 
@Simon ..... = new CachingExceptionThread(....)
 
class CachingExceptionThread extends Thread {
    private Optional<Throwable> exception = Optional.empty();

    {
        setUncaughtExceptionHandler((thread, ex) -> exception = Optional.of(ex));
    }

    CachingExceptionThread(final Runnable target) {
        super(target);
    }

    CachingExceptionThread(final Runnable target, final String name) {
        super(target, name);
    }

    public Optional<Throwable> getException() {
        return exception;
    }
}
 
Yes, yes, I'm blind. Move along :)
 
I bet I'll get an angry @rolfl once I put this on CR.
But for now it seems to fit the purpose
 
@skiwi And when you do, why do you even use another thread?
@skiwi You'll get an angry Simon too.
 
2:11 PM
@SimonAndréForsberg To be able to use a name in the custom appender
 
@skiwi - what happens if you put thread.start() after thread.getException() ?
 
@rolfl You don't. That's why it is not a library class
 
@skiwi A thread name? What are you going to do with that?
 
@skiwi Humour me , what will happen?
 
But it shouldn't matter, should it?
@rolfl Then thread.getException() returns whatever it wants, and thread.start() will behave exactly as regular Thread#start()
@SimonAndréForsberg Use it to log everything in the correct file
 
2:14 PM
@skiwi yes, now, with your current code, at what point do you ensure that the other thread starts (and completes) before calling thread.getException()?
 
@skiwi I don't think I will understand exactly what you're doing until I see all the code in context. Although I might not even understand it then.
2
 
@Pimgd I may or may not have something to do with that!
 
@rolfl That is what the invisible thread.join() does
@SimonAndréForsberg You'll understand, you'll understand.
 
Now, if you have an 'invisible' thread.join(), why do you need a thread?
 
Trust me, if it it was possible, I would've used an even more complicated solution.
 
2:15 PM
@rolfl Because without it there wouldn't be a WTF. Gotta keep the fun alive.
 
What you call a solution, isn't
 
@rolfl So the code can refer to Thread.getCurrentThread().getName()
 
wow.... that's the problem you are trying to solve?
 
@skiwi Add a complicated unit test!
 
Yes, I want to be able to retrieve the file/directory name at all times.
 
2:16 PM
How is the file/directory name related to the thread name?
 
And a lot of documents get processed on the same thread
@SimonAndréForsberg Threads are named as documentId=filename
 
create a class that extends runnable, and has an instance field called 'filename'.
 
then call try {myclass.run();} catch {Exception ....}
 
@rolfl The biggest problem is that I am calling all sorts of utility/library methods, and I do not want to pass the filename/logger around to all calls.
 
2:18 PM
hold it guys, I am away for 1 hour and you're waiting with 140+ messages??
 
@Vogel612 is chat normally asleep?
 
@rolfl OP incapable of deleting own question:
 
Since @rolfl is back it's way more active!
 
@Pimgd at this time not, but normally not that heavy...
I'd have expected some 30 - 50 messages..
(my SE extension also showed 7 comments)
 
2:19 PM
@Mat'sMug Probably right behind ya.
2
 
lol <---- bait
2
 
I really need to look up some faq about chat, it's not explained as well as the Q&A section of stackexchange
 
@Mat'sMug Where's the blue cheese monster when you need it...
 
2:22 PM
@rolfl already reading it
 
And I'm out of here for an hour or so ;-) Behave.
 
Less stars, more voting.
4
 
@rolfl I'll try :)
 
@Mat'sMug 255 left!
 
capped for the day?
 
2:25 PM
@SimonAndréForsberg Isn't this awesome?! It even works
[INFO] [2014-21-22 16:21:16] [documentId=1713] [1713] Converted PDF to TIFF with a DPI of 300
 
@Mat'sMug Nope, quite far from it
 
Now all I need ot do is to make everything with [documentId=1713] print to 1713.log
Ignore that extra [1713], that was an old temporary solution which involves passing the name everywhere around
 
@sim so 2 days / tomorrow then?
 
@Mat'sMug I think so, yes.
 
Sometimes it sounds like a human:
 
2:36 PM
@SimonAndréForsberg I think I just realised that like all of that extra code was unneccessary... When getting an exception it still doesn't log the name, because I handle it too late.
I think I'll rewrite a bunch of it.
It did work correctly though, but not as intended
 
1128 rep until 10k!!!
 
83 rep until 3k !
2
 
39 rep till I stop seeing ads! (Or get less, at least)
2
That sounds less sad than "39 rep till 200!"
=D
 
lol 39 rep until you're officially an "avid user" :)
2
 
Yeah @Pimgd, that^
=)
 
2:51 PM
oh oh I know, I can make suggested edits for easy rep
somewhere someone must have forgotten indentation
 
off topic ▼▼▼
1
Q: Returning information about the result of a file processing, without using output parameters

TerribadAs part of a C# class CsvConverter that converts various file types to CSV, I am designing a private class CsvConversionResult. It has two child classes CsvConversionError and CsvConversionSuccess that will be returned by the private methods of CsvConverter. As you see, I'm returning an empty Cs...

 
... that said I just found a huge glaring bug I missed in my answer by editting so that works out nicely
 
@Pimgd Please don't go editing the indentation on questions. Indentation (i.e. formatting) is a topic of conversation for a code review.
 
drat
 
@Pimgd careful with editing OP's code; messed-up indentation can be subject to review; you make more points with the votes on your answer that points that out than with the suggested edit that fixes it.
@ckuhn203 beat me to it
 
2:53 PM
Don't worry, there's always some kind of grammatical errors to be edited away.
 
Can I post a second answer if it's about a bug in the code or am I supposed to edit my existing answer
 
@Mat'sMug XD
 
specifics:
case "down":
stoppedDown();
break;
case "left":
stoppedLeft();
break;
etc etc...
 
It's gonna be a long day.
2
 
case "up":
stoppedUp();
case "right":
stoppedRight();
break;
whoops - someone forgot a break
 
2:54 PM
@ckuhn203 TS
2
 
Meta-TS^
 
Done and done
 
@Marc-Andre saves the day!
 
Will be 5$ each
 
My hero!
 
2:55 PM
:P
 
@SimonAndréForsberg it's just the Skeleton, no guts.
 
@Malachi Then you should say that it is off-topic because you consider it to be example code, not because it's a question about design.
Design questions are on-topic here as long as there is an existing design that can be reviewed.
 
the blueprints are there but there aren't any building blocks or working pieces. how can it be working code if you can't test and see results?
 
"Can I post a second answer if it's about a bug in the code of the question or am I supposed to edit my existing answer" - I just assumed that edit is the right choice here
 
@Malachi If it's working for the OP, it's working for the OP. Just because someone can't get it to work (because of a missing dependency for example) doesn't mean that it's not working code.
 
3:01 PM
@Pimgd I think it is too!
 
@Pimgd Feel free to add a second answer if you feel that the answers are about two different things. I myself tend to just edit though.
 
CR is very different from other SE sites, that's why I'm asking such things as they happen
 
@Pimgd That's why we are here.
 
I don't see any code that makes things happen, I guess it can be reviewed though...
@SimonAndréForsberg Deleted comment
 
codereview.stackexchange.com/q/57649 the first paragraph is only one long phrase. If someone has an idea to fix it
 
3:06 PM
fixiiing
"Under the end of the class I have, it doesn't seem like this would be the best way to do it."
nice try, but not quite
 
is it a good idea to have a procedure called TruncateAll in a database?
 
@Mat'sMug Sure, go ahead!
Ahem, I doubt.
 
it's useful while I'm testing the ETL procs though
 
@Mat'sMug If you plan on removing it once you're done with testing.
But good god don't leave it in there once it's production.
 
dev instance === prod instance
 
3:10 PM
Ugh^
Et tu @Mat'sMug?
 
yeah
I renamed it TruncateAll_RunThisAndDie
 
@Mat'sMug Again?
 
and done editing! now I only need to wait for people to approve the edit (nudge nudge wink wink)
2
 
@SimonAndréForsberg
@Pimgd TS
 
@Mat'sMug What does TS mean
 
3:13 PM
theoretical star :)
 
@Pimgd:
19
A: What's a Zombie? And what are the many other memes of Code Review?

Mat's MugMeme: TS | RSA Originator: SimonAndréForsberg (TS), rolfl (RSA) Cultural Height: star-power Background: The 2nd Monitor is quite a star-happy chatroom. How many of you know that there's only a number of times you can "star" a chat post - a star cap (like the rep cap and the vote cap, a star ca...

 
oh darn, the one below that also applied to this situation =D
 
I approved your edit, but I had to read a couple of times to make sure the meaning didn't change.
 
Yes, that's a side effect. But it should be clearer now.
 
@Mat'sMug Well it will be a long day for me too (ping me next time )
 
3:15 PM
hehe
 
Holy Thermometer it's hot here!!!
 
3
Q: Categorising a number in Javascript

Sam BeckhamThis is more of a best-practice question than anything else really. I've written a function that takes a number and returns a value depending on where that number lies on a pre-defined scale. That's probably a little confusing so I've put the code below and added a jsfiddle (although you might b...

 
Aircoooooo~
 
3:33 PM
@SimonAndréForsberg How did you know? You checking up on me?
 
@rolfl My thermometer shows 30 Celsius. That's how I knew. Although it does feel hotter than that.
 
You should take it out of your oven
2
crap, I have so much catching up to do still (at work) .... just one week away....
 
@Malachi We were cleaning up the tag ;)
@Mat'sMug Take a look at this: stackoverflow.com/a/24883898/1937270
 
Holy-moly!
26
Q: Can we get rid of [git-something] tags

Angelo NeuschitzerThere are lots tags, one for each git command. I think they should be removed. The questions are good enough if tagged git. I think they are too narrow as one can see by the low question count on each of them (compared to the 43k questions on git) As the help center states, tags are there to co...

This. is. madNEEESSSS
 
@syb0rg the fiddle is awesome :)
 
3:44 PM
@Mat'sMug I know! I just need to figure out how to stop it at the one point every time, and then I'm going to accept his answer.
 
you could always use that in the mean time
 
Do you like the rotating nucleus? It wasn't specified in my question, but it is kinda growing on me.
And he already responded to my comment! I love this guy! Show him some love (with votes):
4
A: Animate SVG electron around ring

squeamish ossifrageYour SVG code can be optimised a bit more, since it consists entirely of circle primitives: <svg width="80" height="80" style="position:fixed; top:5px; left:5px;"> <g transform="translate(40,40)"> <g id="a1" transform="rotate(40)"> <circle cx="0" cy="5" r="4" fill="#1c1f26" /> <...

 
@syb0rg love it
(already upvoted)
 
weekend!
 
Monking!
 
3:50 PM
Monking @Phrancisking
 
@syb0rg it's a good answer but please don't use jQuery for that, it's totally unnecessary.
 
@DaggNabbit What would you use instead?
 
@syb0rg nothing
I'd just do it the normal way
 
@DaggNabbit post a competing answer!
 
Agreed ^
 
3:53 PM
nope I'm done with SO
 
Earn some rep :)
 
I'll post a competing fiddle here
 
(then I'll comment "-1 not enough jQuery")
 
How do you guys like my math answer? math.stackexchange.com/a/874907/165761
 
@DaggNabbit So why not use jQuery?
 
3:54 PM
Math is hard
3
@syb0rg because it's not doing anything useful here
hang on i'll do a fiddle
 
@DaggNabbit Is it less efficient?
Unfortunately I don't have a Math.SE account.
 
@DaggNabbit: Answering with a program on math won't win you friends over there (I believe)
 
@Pimgd I just saw your answer, and I thought it was awesome! Welcome to the site!
 
2
Q: Where can I learn to refactor code?

learningWhere can I learn to refactor code?

3
 
@DaggNabbit ciel -> ceil I think?
 
3:58 PM
Yes, it was posted before CR's time. But it'll be closed soon enough.
 
@Jamal WAT.
Refactoring is a lifestyle.
 

« first day (444 days earlier)      last day (3574 days later) »