« first day (389 days earlier)      last day (3629 days later) » 

12:00 AM
Hello, World!
 
Hello World!
@200 ... I think I should feel offended that your bear-knob out-ranks my door-handle!
 
As I've written all my first programs in new languages: "Sup, world?"
 
Yeah, hit the rep-cap and earned a Good Answer badge.
Clearly the audience loves answers involving bears.
2
 
(note to self .... yeah)
I have more comments than you have upvotes... and that.... sucks.
 
It's really weird how that question took off.
 
12:08 AM
Someone went in ad edited my pictures to be smaller, it's a good edit. I think that, as well as other things has made the question hot.
It has been protected, so I assume new-users have been posting crap....
But, I was a new user, and would not have been able to post if the question was protected before I got there.
 
Does the +100 reputation bonus bypass protection?
 
No
 
As long as we're venturing off-topic for CR… @Donald.McLean, would you weigh in on this?
 
Did he just misspell his own name?
 
Ha!
 
12:14 AM
Convenient, too. That part is noise.
 
0
Q: Domain Name Service Class - Preparing for Refactor

ckuhn203I recently wrote a DSN class for use with the Access flavor of VBA. I'm preparing to refactor and would appreciate feedback. I am aware of two issues. I added the findSectionKey() function to the Registry class (which is separate and out of scope for this question) that I call, but never went ...

 
12:32 AM
0
Q: My code is too long. How do I trim it down when code posted here is expected to function?

ckuhn203The code I would like to have reviewed, found here, is more than 30,000 characters long. I don't feel like that in and of itself makes it off topic, but removing code from it so that it can be posted here WILL make it off topic, because it will no longer function. I've read How long is long code...

 
Bears is now tied for the top answer.
 
hi!
 
Hi!
 
waits for someone to change their avatar to a bear
 
0
Q: Object oriented PHP

JeanWould someone tell how I can improve this piece of code? <?php include_once './Core/Database/Db_connection.php'; class Post extends Db_connection { private $totalPage; private $per_page; private $page; function __construct() { parent::__construct(); } functi...

 
12:48 AM
 
giggles
 
Welcome to Code Review! It's usually better to provide reviewers with a bit of context; tell us what your code is doing, what aspects of it you're concerned with. This will help you decide which answer to accept when you get answers :) — Mat's Mug 8 secs ago
 
1:15 AM
@Corbin: I've made some changes to yesterday's answer, mostly having to do with std::map. I'm still waiting for the OP to respond.
 
@Jamal I really hope he's responds. Hopefully he will since he seems to still be around on SO.
 
Until then... my answer will just sit there, which may or may not be wrong in certain ways. The std::map stuff may be enough, if that's related. And Jerry did tell me that such cases of returning bools is C-like.
 
1:32 AM
Last seen 11 hours ago on SO. Hopefully he'll see the notification of a new answer and an edit.
 
I'd hate to post an off-topic comment on one of his questions, too. Or perhaps someone can send a chat invitation.
 
GOAL!!!
 
this freenas is pissing me off. I can't connect to any shares
 
2:01 AM
0
Q: Avoid calling nested method two times

fotanusFor a given file name path, I need to get the folder one level before it. This can be accomplish in ruby with the following code: File.dirname(File.dirname("/a/b/c.txt")) => "/a" Independently from this exact case, how one can I dry two method calls in sequence?

 
2:14 AM
0
Q: Implementing repository pattern and DAL with stored procedures

ChakaUsing .net 3.5, implementation of the repository pattern along with enterprise library 5 and stored procedures. Did not use EF, stored procedures already available and VS2008 is limited to EF 3/4. Looking at the following code, what are your recommendations for each section: Domain/Repositories...

 
GOAAALLLL!!!!
 
2:42 AM
7-4!!!! What a game!!
now this is one solid (cough) piece of code. a reviewer's delight!
2
Q: Domain Name Service Class

ckuhn203I recently wrote a DSN class for use with the Access flavor of VBA. I'm preparing to refactor and would appreciate feedback. I am aware of two issues. I added the findSectionKey() function to the Registry class (which is separate and out of scope for this question) that I call, but never went ...

And there will be a game 6!!
 
I read boolAsString as badAssString
2
 
2:58 AM
std::badass_string
 
hmm.. tag badge in sight
I like that he makes a boolAsString function to return "T" or "F" and then inlines a condition to convert a Boolean to "Yes" or "No"
 
is next, after 1 more answer and 5 more upvotes.
 
@Mat'sMug heheheh for me ...? ;-)
 
lol <-- well-deserved
could be too
hey @Yuushi
 
3:27 AM
answer #20 now posted.
 
@Jamal codereview.stackexchange.com/… says that's #21 ;)
 
those guys are dicks
 
@Malachi who?
 
what's the point of a chat room for a Server site if you can't ask server questions ?

 The Comms Room

ServerFault's lobby
 
@Mat'sMug True, but one of them is wiki. My profile page confirmed that I had 19 eligible ones.
 
3:36 AM
those guys are dicks
in The Comms Room, 32 secs ago, by Mark Henderson
@Malachi We spend most of our time in here talking about tubs of sex lube
 
Lounge<C++> comes to mind...
 
don't go there. surprised that chat room even exists, or that site for that matter
I just wanna go hide some where and pull out the hair I don't have. wish I could grab one of them and punch them in the face
 
Tubs of sex lube? Really? I give that snark a 1/10.
 
one of those guys is a mod there that was treating me like shit.
wait until I own a company and find out that asshole works for me....oh will that be fun
any one of those Jerks.
 
A mod? WTF
 
3:40 AM
go have a look, he was the nicer one
in The Comms Room, 6 mins ago, by Mark Henderson
@Malachi My biggest guess though? I'd grep for PEBKAC errors.
Just read from where I dropped in there, I asked a simple question, far from live support, but not enough for a full question
the person that made the remark about the sex lube is a mod as well.
 
edifying
 
I've dropped that message link into the main mod chatroom. I can't do much against another mod, but a CM can investigate if needed. I've never heard a mod respond like that before.
 
@Jamal thank you. I didn't think a place like that existed on the Stack Exchange. now I know why I don't see very many links to that site on google
I was almost as mad as when I find someone hacking my game on Call of Duty, and that is me being pretty pissed.....lol
it doesn't help that I am frustrated to begin with and then they treat me like I am an idiot.
 
I can't guarantee anything, though. Chat is already frustrating to moderate.
 
@Jamal I hear that.
have you read their help page?
and it is not about…

Anything in a home or development environment
back to google I guess
 
4:03 AM
35
Q: Why do door knobs still exist?

Mladen JablanovićAs far as I know, in US, grip-and-turn style door knobs are still the most popular, as opposed to lever-style handles, which dominate in the rest of the world. Is there some UX advantage to door knobs that I am not aware of, which is the reason for keeping them around? Edit: To clarify the dif...

But... we have feelings too :'( — Doorknob yesterday
2
TTGTB - 'night @all!
 
Night!
 
4:22 AM
night everyone that is still hanging around
 
Good night
 
@Phrancis - Really? Makes little sense....
 
I made a mistake... Sorry, let me edit and comment again
I did have to make a few changes related to MySQL specific syntax but your logic is sound.
 
I had it working in the mysql JSFiddle ... so what changes were needed?
(just curious...).
Also, feel free to edit my answer if that will make it better for the next person through.
 
Just one semicolon missing, after END))
 
4:35 AM
Ah, OK.
 
Of course it won't let me edit because it's <6 characters
 
Perfect
You guys' suggestions run really fast. Thanks again!
 
4:57 AM
You're welcome.
 
monking all
 
Indeed!
 
0
Q: Example of properly hashing and salting with bcrypt()?

AGENT_P6Is this code an example of a secure way hash a users password using blowfish with 22 character per-password salts? I'm not worried about code cleanliness or optimization at this point, only the security of the code. A little background: I'm working on creating my first PHP database driven w...

 
5:16 AM
@rolfl any comments on mine answer here?
2
A: MouseListener Lag in Piano Tiles game

chillworldReviewing the code. At first sight it look all nice and clean. Nice formatting of the code. Java standarts are a little differtent then you use, but you are consistent and that is good. The deviation is where you set your {. This is normally done at the same line and not a new line. Still some i...

could I improve it with something?
 
5:41 AM
Only comment:
private Tile[][] tileArray
should be:
private final Tile[][] tileArray
Noce answer.
Now, who knows Node.js?
 
k will change it
done
class overriding now for the error NOSuchFieldError
hacking stuff but I gues he takes an wrong version of Jboss logging (the one deployed with jboss itself)
ah lol he takes an ancient version of log4J
so prob a old version of log4j in classpath of jboss
 
6:04 AM
Welcome to code review and thanks for your answer. Can you explain it a little more why you did these modifications so that the OP understand why he shoud changed it? — chillworld 29 secs ago
morning @skiwi
 
monking
 
0
Q: Generic Converter framework

HawkI find myself frequently converting between formats so I have come up with the following conversion framework: The converter interface surfaces a method to convert from a source type to a target type. public interface IConverter<in TSource, out TTarget> { TTarget Convert(TSource source); } ...

 
going to work now
 
Hey, bye
 
coffee timefor me
damn cafeteria closed
mhh hacking way stumbs up class loader constraint violation
 
6:38 AM
yes mine hacking way works now :D
now off to the ear
 
Second monking to all
 
wb skiwi
 
thanks
I wonder if I should switch build system from Ant to Gradle in one project during work...
might cause a delay
The script though is nothing more than a simple build
 
6:55 AM
Javascript, and closures .... experts here?
(actually, novices will do fine....)
 
euuh google is expert :D
 
Argh .... I have gone circles on google... making me feel stupid ;-)
(partly because it is 3am)
 
what's the problem?
 
   var sources = {};
   sources['time'] = 'http://time.jsontest.com/';
   sources['date'] = 'http://date.jsontest.com/';
   var results = {};
   for (var src in sources ) {
       console.log('Starting ' + src + ' -> ' + sources[src]);
       var lsrc = src;

       var callback = function(data) {
           results[lsrc] = data;
           console.log('Callback ' + lsrc + ' -> ' + results[lsrc]);
           complete();
       };

       download(sources[lsrc], callback);
   }
Each call is logging to 'date', and not time, date.
my closure.... is not.
 
Quick help: What exactly is a closure in javascript in this case?
 
6:58 AM
I want the 'callback' function to have 'time' in the first iteration, and 'date' in the second.
Not sure it makes a difference, but it's Node.js context.
 
sources.forEach(function(src))
 
Ahh.... give me a minute, or 4....
 
So a closure is when an anonymous function accesses data outside itself?
 
in the first one just do console.log('Starting ' + src + ' -> ' + src);
oh damn, with the for each you don't have date
 
7:06 AM
Hmm... and foreach is not real ... on my sources
> 500 TypeError: Object #<Object> has no method 'forEach'
 
806
Q: For each in an array. How to do that in JavaScript?

Dante1986I have an array of a varying number of objects. At a certain point, I want to do something to all the objects in that array. How do I do this with JavaScript? I thought of something like this: forEach(instance in objects) (where objects is my array of objects) but this does not seem to be corr...

the only difference is that var src is declared above the for
 
@skiwi More or less. Technically, the function in question doesn't really have to be anonymous, but that's common, primarily because closures mostly came from Lisp, which was based on Lambda calculus, which separated functions themselves from names for the functions, so basically every function definition starts out anonymous, to which you can optionally bind a name--but closures are frequently used in cases where names aren't needed, so they frequently remain anonymous.
 
@JerryCoffin Okay, I see
 
@rolfl when you see at the question : Other numbers (non-integers, negative numbers, numbers greater than 2^32 - 2, are not array indexes).
 
I suppose I'll only do one project with Gradle in Netbeans... the support isn't that good yet
 
7:14 AM
Oh god... Is someone in here venturing into JavaScript for the first time? :D
 
hehehehe ..... yeah.
 
That's a rough few days lol
 
I'm starting off simple... ;p
 
JavaScript is my second favorite language after C++ (and it's a very close second), but my god is it a gross language to pick up from scratch. You'll basically go through the stages of grieving. "Nooo... it can't be that bad... It's... really that bad? Who the fuck made this piece of shit?! Well... I guess there are some good parts." :)
 
01.a = new Array();
02.a[0] = 'poop';
03.a[1] = 'crap';
04.
05.alert(a.length); // 2
06.alert(typeof(a)); // object
07.
08.b = new Array();
09.b[0] = 'poop';
10.b[1] = 'crap';
11.b['what'] = 'dookie';
12.
13.alert(b.length); // 2
14.alert(typeof(b)); // object
what do this tell you @rolfl?
 
7:17 AM
You might want to censor a little bit ;) ^
 
alert(b.length); // 2 <--- instinct says it should be 3.
 
it's because .length is only the numeric parts
the what becomes a property on the object
 
I have been successfully looping on the properties....
 
arrays are numerically indexed in JS. The oddity is just that arrays are also objects and thus can have properties.
 
   for (var src in sources) {
       console.log('Starting ' + src + ' -> ' + sources[src]);
       var callback = callbackCreator(src);

       download(sources[src], callback(data));
   };
 
7:19 AM
Oh also, don't expect typeof to behave sanely with arrays.... typeof [1, 2, 3] is object not array
 
My problem is that I have a callback, and the callback is being called after the loop is complete.
 
The problem is scoping
 
so, the loop-variable has the wrong value in the context of the callbakc
but I don't know how to give it the right 'scope'.
I know the problem, not the solution.
 
Nothing behaves sanely in javascript.
2
 
And the closure things is making it 'less' clear.
 
7:20 AM
You need to wrap the download call too
One second
Actually... is that your real code? That should work since callbackCreator closes src and sources[src] will be evaluated inside of the loop.
It is past 2 in the morning on a Tuesday for me though... So... There's a 63% chance I'm just having a moment.
 
It is the current broken code.... the last working (compiling) code was.... chat.stackexchange.com/transcript/message/15765404#15765404
25 mins ago, by rolfl
   var sources = {};
   sources['time'] = 'http://time.jsontest.com/';
   sources['date'] = 'http://date.jsontest.com/';
   var results = {};
   for (var src in sources ) {
       console.log('Starting ' + src + ' -> ' + sources[src]);
       var lsrc = src;

       var callback = function(data) {
           results[lsrc] = data;
           console.log('Callback ' + lsrc + ' -> ' + results[lsrc]);
           complete();
       };

       download(sources[lsrc], callback);
   }
That describes what I want to do. I have 'dozens' of sites I want to access in parallel, and only exit the overall system when all the sites are queried.
the complete function is:
 
Actually, I doubt that works correctly. callback doesn't capture lsrc in the way you think it does.
 
   function complete() {
        for (var k in sources) {
            if (! (k in results) ) {
                console.log('need ' + k);
                return;
            }
            console.log('got ' + k);
        }
        res.render('index', {results: results});
        console.log('Render complete');
   }
 
In strongtyped languages you at least know what is going on... Slightly.
 
@Corbin I know.
These are things i am trying to do to get it right.
(and this is why the code is not on Code Review ;-)
 
7:25 AM
Ah ok one second
 
So, I have a bunch of keyed URL's, I want to download them in parallel, and then render a page when all results are in.
it's 'all
 
for (var src in sources ) {
   console.log('Starting ' + src + ' -> ' + sources[src]);
   var lsrc = src;

   var callback = (function(results, src) {
		return function(data) {
		   results[src] = data;
		   console.log('Callback ' + src + ' -> ' + results[src]);
		   complete();
	   };
   }(results, src));
   download(sources[lsrc], callback);
}
whoops... janky spacing, but that's the general idea
 
@rolfl you ganno love javascript in a while ^^
 
Oh, the sneaky ( )(results,src) ... ?
 
Yeah
 
7:27 AM
Is that ()(resuts,src) or ( ... (results,src)) ?
 
Storing the results of an async operation into a variable like that is rather unusual btw
The second... I think?
Not sure how you mean. It's just calling the anonymous outer function immediately.
 
I'll try.
 
406
Q: Javascript closure inside loops - simple practical example

nickfClosures are one of those things which has been discussed a lot on SO, but this situation pops up a lot for me and I'm always left scratching my head what to do. var funcs = {}; for (var i = 0; i < 3; i++) { // let's create 3 functions funcs[i] = function() { // and store...

Goes over what essentially the problem/solution are here. It's pretty weird with no functional background though, and lexical scoping trips up basically everyone :/
 
Whoo Hooo....
   var sources = {};
   sources['time'] = 'http://time.jsontest.com/';
   sources['date'] = 'http://date.jsontest.com/';
   sources['a'] = 'http://date.jsontest.com/';
   sources['b'] = 'http://date.jsontest.com/';
   sources['c'] = 'http://date.jsontest.com/';
   sources['d'] = 'http://date.jsontest.com/';
   sources['e'] = 'http://date.jsontest.com/';
   sources['f'] = 'http://date.jsontest.com/';
Produces ......
 
:D
 
7:35 AM
gratz @rolfl
 
And, I think, I almost understand it ;-)
practice....
now, for the real URL's, which will jhave some provlems... not all of them work.
Time to test the download error handling.
Thanks all.!
 
Nice @rolfl
 
Glad to help :). Welcome to the wacky world of JavaScript!
 
I think its thx @Corbin :)
 
Any other reason you're still here at this time btw? Or got frustrated about it not working :)
 
7:38 AM
I'm working with the China folk at the same time.
 
ah okay
@JerryCoffin Where's the understanding of weekly typed languages?
 
@skiwi Only daily and monthly typed languages count.
 
@JerryCoffin there should be a third group of "But... we gotta get shit done today!"
:D
 
@Corbin Not enough time to do it right, but plenty to do it three times?
 
7:40 AM
(Though I love strong typing... Every time I get into scripting languages with their weird conversions and duck typing, I feel dirty.)
3
 
That's me.... right now.
 
@JerryCoffin there could be an asterisk over the "But we gotta get shit done today" that has a note at the bottom that reads "And we'll probably redo it tomorrow."
 
Only exception to me is Java lambdas
But technically they're strongly typed if you know what you're doing
 
lambdas can still be strongly typed (they are in C++ -- not sure if they are in Java?)
 
@Corbin They can appear weakly typed is what I meant I guess
 
7:42 AM
Ah, yeah. That's the beauty of them half the time though.
 
But okay a long code chain can also appear weakly typed, so what I said is nonsense :p
 
@skiwi Lack of explicitly declared types is entirely different from weak typing. Haskell is even more strongly typed than C++ or Java, but most well-written Haskell has very few explicit type declarations. Most types are inferred (but no less strong for that).
 
My brain just did something stupid there... I understood that already, but my brain forgot.
 
8:01 AM
> I 'quickly' learned Javascript/Node.js, express, jade, cloud foundry, xxx, and .... closures... and I now have a proof-of-concept node.js app running on the stage1 servers.
^^^ not sure I should includ ethat in the mail I'm about to send.
 
I love when languages can be "optionally strong typed" :p
 
They may think it's OK to expect me to do it again.
 
@rolfl Which you're not OK with.
 
:/
10
Q: Running application ends with "Segmentation Fault"

goldilocksI have a command line application that when run does not do what it is supposed to do and at a certain point leaves the message: Segmentation fault What does this mean? What should I do?

Why in the world does that have 10 upvotes?
There's like a 30 page wikipedia article on segmentation faults.
 
@Corbin also, it's a selfie..
 
8:08 AM
The wonders of Java
6
Q: Uncommonly used Java syntax (JavaParser)?

NederealmI'm exploring a Java grammar parser and I came across this strange piece of code that I wounln't normally use. Taken from https://code.google.com/p/javaparser/source/browse/branches/mavenized/JavaParser/src/main/java/japa/parser/ASTParser.java#1998 It has many functions that contains code such ...

 
@skiwi The old - lack of planning .... yeah. But, I am part-responsible for the big picture, but this particular aspect is behind for a few reasons... and I think some folk will be unhappy.
 
@Vogel612 oh my god. It is. That's infuriating. I have no issues with self questions, but that seems like obvious abuse.
 
I'm off to bed. Thanks all, Corbin espcially... I missed that one, and needed the point-in-the-right-direction.
 
No problem. I just showed up at the end :p. Good night.
 
@rolfl As long as it won't be a recurring thing, it can't harm.
 
8:12 AM
@skiwi that part on doing nothing if [cryptic identifier] returns true is not correct...
the statement could be rewritten as:
if (!jj_2_17(2)) {
    break label_23;
}
//code...
 
@Vogel612 I said "appears to be" there ;)
I figured it's more in line with the weirdness of the code
 
@skiwi you shouldn't confuse already confused readers..
 
@Vogel612 Wouldn't it unconfuse them?
 
depends...
 
Damn this generics was not fun:
private static <E extends Enum<E>, T extends IntValuedEnum<E>> Pointer<T> allocateEnumPointer(final Class<T> enumClass) {
    return Pointer.allocate(Pointer.intEnumType(enumClass));
}
In order to fix this:
Pointer<IntValuedEnum<Orientation>> orientation = Pointer.allocate(Pointer.intEnumType(Orientation.class));
 
8:21 AM
it's not like more alcohol makes you clean again... (even though it fixes the headache in the morning)
what the heck did you do there??
 
BridJ... (better as JNA though)
 
When I entered the room I was worried because I saw my star from 17 hours ago
Glad to see it quickly got worked out
 
Though it seems like T and E are still unrelated in that case, which should not be the case
 
@MadaraUchiha I hear your heart got pierced...
 
@Vogel612 Yeah :( It's an unfortunate situation.
But you know, I can still shout, so I guess I'm fine :D
Generally people without a heart... you know... die.
 
8:26 AM
Well these black lines on your body don't look so nice though...
 
In fact I think you are just too stubborn to die from something a simple as a missing heart, but well...
 
user image
3
I mean seriously though, Gai could barely make a hole in my by setting himself on fire
And that n00b manages to pierce my heart from behind just like that? Seriously?
 
Was thinking the exactly same....
Like wat the heck that was such a badly executed saving throw...
cpt. O "whoops I made that guy too OP, let's just [insert badly thought out plot rescue plan]"
 
8:53 AM
I kind of had a feeling this would fail...
@SuppressWarnings("unchecked")
private static <E extends Enum<E>, T extends IntValuedEnum<E>> T getEnumValueFromPointer(final Pointer<T> pointer) {
    T value = pointer.get();
    return (T)((E)value).getDeclaringClass().getEnumConstants()[(int)value.value()];
}
 
Today I learnt that drinking a drunkard's blood won't get you drunk.
Thanks xkcd.
 
@Morwenn I knew you were a Vampire..
 
I understand my confusion now...
IntValuedEnum does not extend Enum, aargh
 
@skiwi what the heck?
 
@Vogel612 I sometimes drink alcohol that smells like wood treatment oil, but blood is not really my thing.
 
8:58 AM
@JerryCoffin I have a quick question if you're still around. I was looking at your answer here codereview.stackexchange.com/a/51874/7308 and noticed that you suggested and enum to replace the bool flag instead of breaking the method into two methods. I've always heard that bool flags are an anti pattern, and honestly that makes sense to me: conditional functionality implies that the method is doing the work of two methods.
Anyway, what I'm getting at: did you suggest an enum because you disagree with this decision theory, or because an enum allows you to tunnel the flag through from a higher level (i.e. an object operating on the NetworkServer can have a deliveryType property).
(and that ended up being way longer than a "quick question" -- sorry!)
 
@Corbin I tend to think in more pragmatic terms. Which is a bigger loss: two functions that do almost identical things, or one function that does two things (that are nearly identical)? This could go either way, depending on how close to identical those things are, and whether you can clearly articulate a pattern that's followed either way so a single name describes the entire functionality cleanly, you can document it cleanly, and so on.
 
@JerryCoffin Hrmmmm ok. What about having a private shared function under the hood? Or do you mean you're worried about it from an interface perspective, not the implementation maintenance angle?
 
@Corbin I'm nearly always more concerned about the interface than maintaining the implementation. As for a single private function with two public interface functions: certainly possible. Also possible to go the opposite direction. One big question is whether (for example) you expect client code to need to do either/both based on something like configuration. If it should be configurable, reading and passing the correct value is often cleaner than a condition to decide which function to call.
 
Do you prefere pow, powf, powl, pown, pownf, pownl, pownfN, pownfNx, powndN, powndNx, powr, powrf, powrl, powrfN, powrfNx, powrdN, powrdNx (replace N by 32, 64 and 128) or would you rather have one function named pow?
 
9:13 AM
@JerryCoffin Ah, ok. I figured that was a major factor, but wanted to make sure.
@Morwenn That's a variation of type though, not a variation of functionality :)
 
@Corbin There are actually three variations: pow, pown and powr :)
None of which return an integer type.
 
You mean pow, exp and exp2?
 
Oh, and I forgot that all these functions also exist with the cr prefix.
 
Never heard of pown or powr
 
@Corbin They are proposed is the 4th part of the C decimal TR.
 
9:15 AM
Ah
 
@Corbin The two often go hand in hand. For example, a pow on reals doesn't have the functionality to find an even root of a negative number, but a pow on a complex normally will.
 
@JerryCoffin True.
 
Anyway, past 2AM here. I probably need to get some sleep.
 
@JerryCoffin You make me think that I also forget to name the pow function that work with complex numbers.
I should count how many pow functions will exist after the Decimal TR...
 
I should head to sleep too.... 4:20am here >.<. Night, all.
 
9:20 AM
That's quite insane.
Good night you two :)
 
Well, graduated uni about 2 weeks ago and haven't started my job yet, so I'm basically just fucking around for a month.... I am kind of shaming myself for being up this late on a Wednesday though, so I'm going to make myself attempt to sleep x.x. Night lol.
 
Monking
I don't understand SO. 1000 views, 0 votes.
 
@SimonAndréForsberg Morning :)
 
0
Q: Hibernate Bean Validation not available in the class path

Simon André ForsbergI decided to try out Hibernate today, which looks promising, although the setup could be easier. After having found solutions for the first million or so configuration errors I'm now stuck with this one: Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: manager...

@Morwenning
 
Morwning would be more subtle :p
Simorning.
 
9:26 AM
Also people apparently cannot read...
0
A: Hibernate Bean Validation not available in the class path

HardyYou need the Hibernate Validator artifact: <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>4.3.1.Final</version> </dependency> This will also include the Bean Validation API, which indeed is in this case a requirement as well. I...

 
@SimonAndréForsberg I did a zen upvote--you asked the question well enough to avoid the downvote I'd otherwise have given just for using JavaBeans. :-)
 
9:42 AM
@SimonAndréForsberg There's worse
The top is really insane
I feel my question is just wasting people's time when they are googling for a solution ^^
And damn I think I have been busy the last hour with one method signature and finally gave up.
btw for people with mature Gradle support in their IDE's, I highly recommend it for Java
 
9:59 AM
@JerryCoffin Zen upvote? Is that like a theoretical upvote?
@skiwi In Android Studio, I use a bit of Gradle. I haven't become a friend with Gradle yet though.
 
@SimonAndréForsberg Why not? :(
 
@skiwi For the same reason I haven't entirely become friends with Maven, Ant, or any other such build system. When it works, it's all great, but once there's a problem or you want to make something new... you're just completely lost. (or at least I am)
 
Not claiming that I have lots of knowledge
but I did manage to get building and dependencies working in one go
 
It's very rare that I manage to do that with Maven or Gradle.
 
Same here
I think the biggest showstopper at the moment is that I can't get JacocoCoverage tool in the context menu in Gradle projects
 
10:36 AM
I'm back :)
went sporting
 
0
Q: why -moz-full-screen-ancestor HTML5 Video custom controller in full screen?

AthimannilWhy :-moz-full-screen-ancestor necessary in firefox to display perfect result ? all other browsers are working very well without this code #skinn:-moz-full-screen-ancestor { bottom: 0; left: 0; position: absolute; width: 100%; } Demo : http://www.athimannil.com/player/

 
10:51 AM
0
Q: calculate future date based on business days

Mohammad FaisalI'd written a php code for calculating the future date after certain number of business days. function add_business_days($startdate,$businessdays,$holidays,$dateformat){ $i=1; $dayx = strtotime($startdate); while($i < $businessdays){ $day = date('N',$dayx); $date = d...

 

« first day (389 days earlier)      last day (3629 days later) »