« first day (486 days earlier)      last day (3525 days later) » 
00:00 - 19:0019:00 - 00:00

7:00 PM
You make a good point though. I need to make a note of it for when I translate it.
Because after the upgrade, that will be 100% true.
 
What language is it anyway?
 
JDA SpaceAutomation
 
JDA == NullReferenceException
 
Really? They're pretty huge in the retail world.
 
(JavaDeveloperAnswer)
(but yeah, never heard of / fiddled with JDA SpaceAutomation)
 
7:05 PM
I'd like to see one of those actually.
 
@Mat'sMug look at this fiddle it looks like MySQL coerces an empty string to 0 automagically when casting it to decimal, so perhaps your whole case statement is not needed
 
It's Space Planning software. Or, rather the backassward proprietary scripting language for their Space Planning software.
 
merchandise assortment planning?
 
Although I'd hate to rely on a feature (bug?) like that
 
Well. I've started a blog. I wonder how long this'll last.
 
7:09 PM
Trying to do the same thing with pgSQL throws this error:
> ERROR: invalid input syntax for type numeric: "": select cast(A as decimal (10,2)) from test
 
^^ I get that as a warning when I try to insert or update, but nothing when I just select.
 
SQL Server does the same thing
 
wow, it got slightly longer than planned...
 
(and MySQL doesn't seem to be able to add up decimals)
 
0
A: RAII Pattern for Downgradable ReadWriteLock

Vogel612You didn't give a terrible amount of code to be reviewed, and I am not really proficient in concurrency and the like but I still got a few points I want to make. But enough of introduction let's jump into the code: public class RWLockWrapper implements AutoCloseable { Wonderful, concise and...

 
7:12 PM
@Mat'sMug Not so much assortment planning, but actual placement schematics.
It can take an external assortment plan as an input though. JDA has a tool for that too.
 
and yet this returns the expected result:
select
	cast('316.73' as decimal(10,2))
	+cast('0' as decimal(10,2))
	+cast('770' as decimal(10,2))
	-cast('2.25' as decimal(10,2))
	-cast('0' as decimal(10,2))
	-cast('13.24' as decimal(10,2))
	-cast('2.86' as decimal(10,2))
	-cast('15.15' as decimal(10,2)) Result
 
@skiwi you could checkout the remote branch reference into a detached HEAD state and then create a new branch on that.
 
^^ same with cast('' as decimal(10,2)) instead of '0'.. I just don't get it
 
git checkout origin/core-improvements
should do the trick
 
@RubberDuck so a merchandising tool then. I was more into merchandise planning
(buying budgets / OTB)
 
7:17 PM
@Mat'sMug Yup. Exactly like that. It's like playing with legos all day. I kind of miss it actualy.
 
-10
Q: Have they no shame using Microsoft .NEt for SO?

peterretiefI just don't understand how fully grown adults can use .NET C# for SE, without any shame? Have they any idea how dumb it is to use Microsoft to develop anything?

 
(10K+ link BTW)
 
> get with the program, MS is toast
(the page is still in one of my tabs)
 
print screen?
 
@Mat'sMug I tried your query above and all 3 RDBMS return 1053.23, is that not what is expected?
 
7:27 PM
I just figured it out
and I have to say I'm quite ashamed of myself
one of the +'s needed to be a -......
 
user image
2
 
^ wtf
(that is an opponent's car on top of me)
 
@skiwi not possible. this will be based on your origin/core-improvements. BUT, did you fetch from origin first? Because origin/core-improvements might be out of date.
 
@skiwi thought it was RL pic for a second
 
@janos I managed to fix it with stashing
@Mat'sMug lol :P
I need to upload the vid to youtube, but I'm a bit lazy :p
 
7:29 PM
What game is that?
 
GRID Autosport
 
LOL. Have they no shame?
 
McLaren F1 + Washing Street Circuit + AI = Unhappy AI
I cannot wait to see it happen in the Oculus Rift
 
lol
@Mat'sMug ..... Is it really that bad :( — ImClarky 49 secs ago
 
Just came to say Thank You Santa!
 
7:39 PM
is this a fine Python question?
2
Q: MySQL class to add user/database

setevoyI'm creating tool to add new virtualhost on UNIX-box. One of tasks is to add a new user and database to MariaDB (aka MySQL) server. In fact - this my first 'real' attempt to use OOP. Here is class, which I created for it: class mysqlUserDb: warnings.filterwarnings('error') def _...

if yesI'm counting on Santas to upvote the guy so that he can upvote me :p
 
wow that was quick
thanks Santa Mat and others !
 
---strike---
 
found it, but thanks :p
 
7:46 PM
New user with a good answer.
2
A: Converting multiple query to use parameters to avoid SQL injection

jeanThe recommended way to avoid sqs injection attack are to use parameters. Also I can recomend you to create a store procedure instead of using dynamic SQL. You can pass your dropdowns indexes as parameters to your SP and use the old trick of using it as conditional on the where clause Your selec...

 
not. but Q got some
ah, I needed something to downvote! at last!
 
select CT.columnA, CT.columnB
from tableA CT
join columnB SE on SE.idA = CT.id
This does not appear to be valid syntax... or can MySQL join a column to a table?
 
Here's the video of how it ended up that way:
eh
that's no video
This one ^
 
@Phrancis I don't think it runs.. unless there's a table called ... columnB??
 
@Phrancis thank you Santa!
 
7:53 PM
*or a view
 
@Mat'sMug: It looks like your second question has undelete votes.
 
dammit lolcode...
Mat's question is creeping up on my 100 is a magic number question...
 
> Table 'db_2_459f4.columnb' doesn't exist: select CT.columnA, CT.columnB from tableA CT join columnB SE on SE.idA = CT.id
 
@janos I CAN HAZ LULZ?
 
no you cannot
 
7:58 PM
Why not?
 
just kidding, here, some lulz for you:
 
I likes Lulz @janos and Quackers. Ducks wuv quackers.
 
(searching for lulz now...)
user image
5
 
bahahahahahahaa
It's important to relieve stress.
 
8:16 PM
0
Q: Over-editing my own answer

firdaIt looks that I have just over-edited my own (first!) answer and got a comment: Please try to keep the edits down to a minimal now. Thanks! I was wondering what has just happened, searched a bit and found this question here: ... Every time you edit, your question is bumped to the fron...

 
quick look before bed time ;)
 
> Instead, the database will likely need to convert the varchar column to nvarchar for this query (which is a widening conversion that is guaranteed not to lose information). The problem is that it will need to do this for every row in your table.
^^ this is scary that a DBMS would be allowed to do that instead of throwing an error...
 
8:49 PM
I didn't know this until just now.....
4
A: Increase number of edits before post becomes community wiki

JamalAs of today, auto-CW conversion for posts has been disabled, therefore this request is now technically considered status-completed. The full announcement can be viewed here. The first paragraph outlining this change is as follows: No More Community Wiki Auto-Conversion We have removed ...

 
9:11 PM
evening
 
I couldn't agree more about Ruby @dan.
 
@RubberDuck I've written several small utilities in Ruby in half hour that would've taken hours to write and debug in C#
 
You might want a more professional photo though.
 
unfortunately my boss has a tendency to "HOW DARE YOU WE DON'T UNDERSTAND RUBY" even though ruby is, like, plain english
It's not a professional blog
:)
 
Dude, Ruby is just FUN.
 
9:16 PM
Not yet, anyway.
 
Doesn't matter. Your name is attached to it.
 
No one is going to see it :) Likely not. Everything I do online kinda flops.
 
I promise you that any place considering you for employe meant will google your name.
 
Either wya I don't have the means currently
I am currently employed ^^ but I will take it into consideration for when I next get employed
I'll probably consider a professional photo in october when I get paid
 
And by then, you'll have forgotten all about it. =)
Where's the damned follow button?
 
9:18 PM
Well, as I said, I don't have the means.
top right?
or am I too spoiled by tumblr
 
Bottom right for me
Tucked away in the corner
 
apparently wordpress does not want me to follow my own blog
the narcissistic side of me is questioning wordpress right now
 
Aha! I wasn't logged in.
 
FWIW I ahd a similar photo on my S/O when I was hired, so there's that
 
Well, you've got a new follower.
 
9:21 PM
Wordpress.com is weird. Wordpress.org, on the other hand, I find wonderful. But you have to buy your own domain name & hosting then
 
I noticed. Thank you, @RubberDuck :)
@Phrancis: I have my own domain name, however you're right about hosting, NTY
Perhaps when I'm not ranting to a brick wall I'll consider it. I have an amazon ec2 lying around somewhere
 
This stupid IE8 browser is not letting me follow you now, but don't let me forget, I'll follow you once I get home in an hour or so
@DanPantry I made my website almost 100% with Wordpress.org and I have to say it was easy
 
> IE8 browser
> not letting me
it's funny how those two are always in the same sentence isn't it?
 
user image
6
 
I've seen that before and it still got a chuckle out of me
 
9:30 PM
This is what my website looks like with this browser
 
> PROUDLY POWERED BY WORDPRESS
2
 
@200_success sorry I didn't get back to you sooner about this. I saw new users giving less meaty answers and didn't pay much attention to the dates of their posting. I thought rather than let a bunch of people come in and post sub-par answers I would protect the question. do I need to revisit "When to Protect a question?"
 
Emphasis on PROUDLY
 
-1
Q: C++ Faculty/Student managing program compiles, but nothing happens at runtime. Possible txt file loading issue

Sarahhttps://gist.github.com/Sarahbravo/4e8104480b5285314f37 That is my code. It compiles, but nothing happens when it runs--I worry it is an issue with loading the txt files. Can someone take a look for me? I just don't know what's wrong...

 
this sounds like me when I fall into being nerdy on occasion, or when I open my mouth to speak......
 
9:58 PM
Weird. How is it that if I have an ArrayList of one class, but I pass in an object of a different class for ArrayList.contains(), the program still displays the correct results? All it tells me in the tooltip that my call is suspicious.
No, I'm not actually keeping this code in my program. I was just testing it out.
 
Can you give a code sample? What are "correct results"?
 
Class has started now, so I'll provide something later.
 
@janos wan't me! (Someone linked to your question in a comment to an answer on mine)
 
@Mat'sMug which one?
ah the duck, I remember
 
TTGH
 
10:11 PM
Quack
7
 
@Jamal It will return false?
2
 
10:45 PM
@DanPantry I'm following you now
 
@Jamal would it get undeleted with enough undelete votes? (i.e. without me undeleting it?)
 
How sweet of my wife... I walked into my office, and found on my desk a copy of Mostly Harmless - The fifth book in the increasingly inaccurately named Hitchhikers Trilogy
 
If so then I'll let the community undelete it. I've had enough attention with + already...
 
11:09 PM
@Jamal guessing the object you're passing to contains is null, or an instance of a subclass of the generic type
 
Or there's a squirrely equals method hiding somewhere
 
@mjolka No, Collection.contains method will accept any Object as a requirement of backward compatibility with the pre-generics API
As a consequence, it will simply do a basic null-check and member.equals(argument) for all values.
The equals will return false for a non-compatible value.
As a consequence, something like List<String> strings = ..... and strings.contains(Integer.valueOf(10)) will return false, just fine.
no compile warning, but some IDE's will give a hint that there is a warning condition.
 
11:27 PM
@rolfl what i'm saying is that you can do this ideone.com/f6jKN2 and it prints true
 
Yes, the type information of the argument to contains is just 'Object, and one null object always compares as equals to another null object, regardless of their type.
 
or ideone.com/BbLZIC and also get true
@rolfl i think we're in agreement :)
@rolfl if you were interviewing someone for a java job, what's a sort of "if you don't know this, don't bother continuing with the interview" question you might ask them?
i ask with an interview coming up, and a cursory knowledge of java
 
11:45 PM
@rolfl It turns out that I had left some other code in, hence why it still seemed to work. facepalm I guess it's a good thing that this is a partner assignment.
 
00:00 - 19:0019:00 - 00:00

« first day (486 days earlier)      last day (3525 days later) »