« first day (2042 days earlier)      last day (2898 days later) » 

user47589
6:03 PM
why is it so quiet in here?
 
user47589
has everyone been eaten by the grue i heard lurking around?
 
I'm too busy looking forward to after work
 
shhhh. Be wary quiet. We're hunting requirements
2
 
lel
 
user47589
lol @mikeTheLiar
 
6:07 PM
blargh! decimal parameters in SqlClient are pissing me off
 
user47589
destroy them
 
it keeps rounding my damn parameters and I don't understand why
I know it is rounding because sometimes it rounds up (3.75 becomes 4.00) and 3.5 etc. becomes 3
I'm able to set the values to 3.75 3.5 etc. in t-sql, so that makes me suspicious that somehow my C# is wrong
public int PushScheduleTier(int CS_ID, decimal NewTierMin)
        {
            using (var conn = new SqlConnection(ERP_ConnectionString))
            using (var cmd = new SqlCommand() { Connection = conn })
            {
                conn.Open();
                cmd.CommandText = "EXEC sp_PushScheduleTier @CS_ID = @CommissionSchedule, @NewTierMin = @Minimum;";
                cmd.Parameters.Add("@CommissionSchedule", SqlDbType.Int);
                cmd.Parameters["@CommissionSchedule"].Value = CS_ID;
the precision and scale are set exactly the same as the database column they're going into
hmm... maybe it is the precision / scale of the stored procedure parameter that is the problem?
YES! that was it
 
user47589
another happy ending
 
Why the hell does SQL Server default its decimals to 18,0
what the bloody flaming fuck
 
user47589
dunno
 
user47589
6:15 PM
i wouldn't be surprised if sql server can be configured to use another default, though
 
I think the lesson is though that you just gotta be careful to make sure your decimal types are consistent across stored procedures, application code, table definitions, etc.
and to never trust the default decimal
it is just annoying that they decided 18,0 is a good default unless it is the case that decimals are mostly used to represent integers
 
@Jakotheshadows - Maybe you should consider using an ORM.
 
@TravisJ I have already considered it, and in this case it is a bad idea
 
user47589
Dapper is easy to convert to, and is a joy to use. It sits directly on top of SqlConnection
 
I usually do use them, but for this particular project it just isn't in the cards
 
user47589
6:19 PM
its a micro-orm
 
Hm, apparently I misused the words maybe and consider
;)
 
@TravisJ tear out all of your existing code and replace everything with an ORM.
 
To all SQL, stick all panini in your ORM.
 
Database access? ORM. Business logic? ORM. Authentication and authorization? ORM.
UI? O. R. M.
 
6:21 PM
@mikeTheLiar - I like it.
 
maybe dapper would work, but I've never build my own data layer from scratch before so I think it is something I should do at least once in my career just to say I did, and also I determined that EF was risky because I'm extending a 3rd party database (with their blessing) rather than building my own db from scratch
 
Building a data layer from scratch can be tricky. I've worked on enough fucked up ones to know that.
 
the worry is that EF would not see the existing mountain of database objects in my model and delete them, when I don't need the whole mountain but a few pebbles in my model
is this a problem that dapper can overcome?
 
user47589
Dapper won't change the DB structure.
 
user47589
its not like EF
 
6:24 PM
Hmmm... I shall have to learn this dapper then. It sounds nifty.
 
Maybe try FOP
 
what is FOP
another ORM?
 
user47589
its quick and easy to pick up from the examples. you can run with dapper in less than 5 minutes.
 
@Jakotheshadows - Database.SetInitializer<Context>(null);
That will prevent EF from modifying existing tables, and it is up to you to define what it maps to as far as individual rows.
 
6:27 PM
@TravisJ that annoys me. Where is the statement of intent in that line of code?
'that' = the API for that particular behaviour
Why isn't it called Database.ShouldBarfForNoReason = false;
 
@TomW - I don't know? I didn't get to name any of it except for Context.
 
user47589
i blame @TravisJ
 
I blame Zoidberg
 
Rhetorical question
 
WAT
 
6:31 PM
Why the fuck does Outlook online have the ability to "like" an email?
 
@TravisJ so that means EF would never ever ever attempt to do any table creation / deletion, and that would be something I would be able to handle separately and still be able to map to the separately created tables / stored procedures without fubaring the roughly 500 or so other database objects that aren't part of my data model?
 
user47589
does it like the email? or does it like like the email?
 
ffff
 
@Amy it's FWB with the email
 
and I'd also want to do database-first since some things I want to handle at the sql server level with stored procedures for.... reasons
 
6:32 PM
@Jakotheshadows - yup
@Jakotheshadows - You should of course test to ensure that your version and setup will not modify tables in a dev environment and not in production :) But that will prevent it from doing that.
 
user47589
@Jakotheshadows in my current big project at work, i use EF with 3 different databases, two of which are read-only. the third is the app db, and uses EF migrations. but EF will never automatically change any of the DBs on its own if you set the initializer to null
 
@TravisJ well sheeeit, should I just keep running with what I already have? or should I throw it all out and use EF now. Where were you a week ago when I was trying to make this decision T_T (seriously though, thanks for the knowledge)
 
I am using EF right now
as well
 
user47589
personally, i dont like to use EF with SPROCS. it works fine, but i prefer Dapper for SPROCS
 
@Amy I agree
 
6:35 PM
If I could I would curl up to my laptop vents and go to sleep. Why do businesses think they need to keep it 60°F in the office?
 
I've already written the data layer.. It is fairly simple around 20 methods with little-to no filtering options (not necessary, this is a fairly simple and constrained in-house app)
 
@Sidney One of my best friends works in the dark
his supervisor keeps all the lights off
 
There are certainly still bugs but I'm working through them steadily
 
23 mins ago, by Jakotheshadows
what the bloody flaming fuck
 
he hates it because he is always tired post lunch
 
6:37 PM
That's your body telling you "Fuck dis shit"
 
i laugh as these ultra-brite led bulbs radiate me from 20m away
jk my eyes are slowly dying and i wish i could work in the dark
or at least have soft/ambient lighting
I never realized how ambient or soft lighting affects how you feel until a couple months ago
good lights + standing desk = carefree
 
Does anyone know JetBrains rider and could help me ? :/
Could really need some help right now
 
@genaray No sorry
we're mostly a VS shop here
 
Never heard of rider.
 
@Sidney It's jetbrains C# IDE
 
6:40 PM
@Failsafe dude the closer to daylight I can work the better. Soft light sends me to sleep
 
:/ Ok ... thanks anyway
 
sunlight is technically ambient light
 
user47589
i use f.lux at home for nighttime reading
 
depending on where your desk is located
unless you are directly next to the window
 
user47589
CFL lighting gives me a slight headache if i look up at the ceiling, for some reason.
 
6:41 PM
I would guess that's the pulsing
 
natural light is great but it only lasts during the day lol
TFW you get may 2016 patches straight from google
 
'Normal' household lighting on a dim day is about 1/100 the intensity of bright sunshine outdoors, human eyes are logarithmic so you don't perceive it like that
 
the nexus is a great phone
i don't think i can ever buy a branded phone again
 
@TomW is that why bulbs that are listed as "sunlight" look so unnatural? They're the right color temperature, but they're too dim?
 
@Sidney Maybe!
Pop quiz: what colour is the sun?
 
6:44 PM
@Failsafe Werd. I stopped custom romming when I got my first nexus
A: Cancer
 
(I intend to grossly misrepresent the term 'colour'...)
 
(I think I already did, but go ahead)
 
Black.
 
What frequency am i looking at it on
 
It's a very bright black.
 
6:45 PM
i think frequency is the wrong word
 
But yeah, in a manner of speaking the sun is black. In that its frequency distribution is the same shape as a black object you'd encounter in nature
 
._. I went out and stared at the sun. It is not black.
 
@TomW Isn't everything black until light reflects off of it then
by our perspective
as humans
 
!!tell Sidney praise
 
@Sidney \[T]/
 
6:48 PM
@Failsafe Nope, most objects preferentially re-radiate certain frequencies and absorb the rest
 
user47589
or, ignore frequencies entirely
 
can we forget about the color and simply praise the fucking sun?
 
'Black' objects have quite a smooth distribution of re-emission, there's a peak but it drops smoothly across frequencies. There's a single equation that relates intensity to frequency for a black body, which I forget
 
user47589
a photon can only affect an electron if it has the exact amount of energy needed to kick it up into a higher orbital. if it doesn't match, they dont interact
 
\[T]/
 
6:50 PM
If you ever feel powerless just think about your shadow. Light traveled the 93 million miles from the sun to Earth only to be stopped at the last two feet by your bitch ass.
@tweray 420 praise it \[T]/
 
@Amy Isn't it at least enough energy?
 
@Amy ehhm there's a little bit of leeway, but not a lot
 
user47589
no
 
happy to know there are still some knight of the sun here
 
no
 
user47589
6:51 PM
there can't be any leftover energy. it's all or nothing
 
Praise the Sun required ahead
 
user47589
fuck the sun. what has it ever done for me?
 
user47589
shakes fist at the sky god
 
like... keep you alive?
 
@TomW mm yeah i was thinking nothing is exact. thanks to heisenberg, it can be approximate
 
6:52 PM
@Amy or create life in general?
 
@Amy Teach us about friendship?
 
@KendallFrey there are a number of different effects that broaden peaks but IIRC that's one of them
 
i know that the blade of the darkmoon got another hot chick and recruited a lot kids, but a true knight of the sun will never get shaken
 
6:54 PM
My DS3 character is named SunnyD
 
lol I got in this morning to my skip level manager asking everybody to come into a meeting room... I worked at a startup, I'm gun shy about that sort of thing :P
 
i used to see a guy named Solaire but he's a blade of the darkmoon
 
@Codeman In terms of like
funding getting cut
 
nah
just our team getting a new project to own
and I'm going to have to work on the server product of TFS now sigh
 
Nice
 
6:59 PM
you get one chance to save the world now
wipe out the source code and source control
 
@tweray I've had access to the TFS source code since I started here :P
 
what are you waiting for!
Just let it go!
 
@Codeman which is presumably hosted in TFS
find the exploit...go on
> TFS code reportedly lost in 'accident'
 
@TomW I bet it's git
 
7:08 PM
en.wikipedia.org/wiki/Foodfight! Kasanoff reported that hard drives containing unfinished assets from the film had been stolen in what he called an act of "industrial espionage".
 
> Charlie Sheen as Dex Dogtective,[9] a anthropomorphic dog private investigator
 
user47589
wtf
 
best bad movie ever
 
Is this before or after Charlie Sheen disappeared up his own ass?
 
user47589
is he still bi-winning?
 
7:10 PM
rho.. someone know why windows smartScreen prevent my apps.. and I can't install it.. What should I do to remove this disclamer?
 
Seriously, find a way to watch it. FoodFight is a bizarre experience.
 
> The story opens with the protagonist Dex Dogtective (Charlie Sheen) saving kittens before he tells his friend, Daredevil Dan (Wayne Brady), that he is about to ask his girlfriend Sunshine Goodness (Hilary Duff) to marry him
Why do other movies even exist?
@Amy no, now he's just positive
 
@MikeAsdf Someone accidentally deleted Toy Story 2 during production. Luckily someone had a copy at home from working on it after hours or something.
true story
 
I heard an anecote about one of the lotr movies
The effects team are watching the final cut to make sure they didn't miss or fuck up anything
"The eagles are coming!"
"What fucking eagles?!"
 
I've had a long night and I hate the fucking Eagles
 
7:12 PM
ok not final cut but, whatever is meant to be the wrap on the effects
 
So apparently if multiple threads are using File.Replace to target the same file simultaneously, a FileNotFoundException can be thrown with the message 'Could not find file "" '
I wonder if the empty string shit is just on mono/xamarin/ios
My logs and debugging prove I'm not passing a damn empty string to any of the 3 arguments
 
user47589
weird
 
to be fair you could examine the source
 
user47589
look deeper
 
7:19 PM
@TomW [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool ReplaceFile(string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors, out MonoIOError error);
 
implementation?
 
it's extern
I guess I could look for the c code where I assume it dwells
oh yeah it does have some wrapper managed code that does some checks and throws some exceptions, but nothing obviously string-empty-spawning there
 
Fuck Gender norms, I'm bringing a blanket to work.
 
What does that have to do with gender?
 
Oh and my message is 'Could not find file "" ' looks like the managed code is throwing "{0} does not exist"
 
user47589
7:23 PM
what does a blanket have to do with gender norms?
 
what does a blanket have to do with gender norms?
fuck
 
Being a little bitch transcends gender
 
user47589
JINX @Failsafe
 
user47589
now you're my slave
 
7:24 PM
There was a recent workplace question about changing the temp in the office because it was something like 37 C
61
Q: How can I convince my boss to turn on air conditioning?

MatadeleoI know this can be a sore topic... But I work in an office with very few men and the vast majority of women. There is a dress code for men, but none as such for women. The male dress code is: Long sleeve shirt, black trousers and smart shoes. Tie is optional. We're currently hitting the start of...

 
!!convert 37C to F
 
@Sidney 66.6 degF
 
That seems... Off
 
That is very off.
!!convert 66.6 F to C
 
@mikeTheLiar 37 degC
 
7:26 PM
Go home Cap, you're drunk.
!!convert 100 C to F
 
@mikeTheLiar 180 degF
 
Yeah that ain't right
 
user47589
!!convert -40C to F
 
@Amy -72 degF
 
!!convert 0C to F
 
user47589
7:27 PM
they're supposed to be the same at -40
 
@Sidney 0 degF
 
wat
 
That is also wrong.
 
user47589
lets all fill out separate bug reports
 
can we extrapolate the nature of the incorrectness?
 
@MikeAsdf Zirak's an idiot
 
is it forgetting to offset by 32?
 
It looks like she's forgetting to add 32 to the resultant fractional multiplication.
 
@rlemon convert's all borked
 
not his fault
make a PR
 
7:28 PM
I didn't say it was his fault.
 
you know, in a sense, it's actually correct
 
user47589
what sense would that be?
 
!!convert 0.0001C to F
 
how many degrees are there between boiling and freezing?
 
@rlemon 0.0002 degF
 
7:29 PM
The sense that it's fucking retarded?
!!> (37 * (9/5)) + 32
 
@mikeTheLiar 98.60000000000001
 
1) nobody knows that feature exists 2) they know but it's not interesting enough for anyone to care 3) they believe it's correct 4) they know it's not but rely on the wrong behaviour anyway
c.f. spacebar heating
 
Sooo... I'm trying to create a custom serializeable exception class. I thought about just throwing normal exceptions, coverting the normal exception object to SerializableException, and then sending that object... yes, no?
 
user47589
IIRC that's what WCF does.
 
user47589
it wraps exceptions inside its own serializable exception, i can't remember what its called tho
 
7:34 PM
meh, I'll just do it myself.
not that hard. Just didn't know if there was any better ways to do it other than a wrapper
 
user47589
Exceptions should be serializable in general, though they can have data members (in the Data dictionary) that aren't
 
user47589
18
Q: Are all .NET exceptions serializable?

Esteban ArayaCan all .NET exception objects be serialized?

 
@Amy, that's exactly what happened to me.
 
sweet jesus, the animation is so bad
it's like an animation student's junior year final project
 
> you cold-farted itch
That's 37 seconds of my life I'll never get back
 
7:42 PM
posted on May 19, 2016 by ericlippert

> look In the middle this room a small shaft descends into darkness below. Above the shaft is a metal framework to which a heavy iron chain is attached. There are exits to the west and north. A foul odor … Continue reading →

 
uhm WAT?!
Did anyone understand that article?
 
user47589
the eric lippert one?
 
user47589
i dont have a clue what he's been blogging about.
 
Is there such a thing as too much coffee?
 
user47589
yes
 
7:50 PM
no
Odin demands coffee
 
posted on May 19, 2016 by Scott Hanselman

.NET Core RC2 is out, it's open source, and it's on multiple platforms. I'm particularly proud of the cool vanity domain we got for it. http://dot.net. ;) It makes me smile. Here's the important blog posts to check out: Announcing .NET Core RC2 and .NET Core SDK Preview 1 Announcing ASP.NET Core RC2 Announcing Updated Web Development Tools for ASP.NET Core RC2 Announcing Entity Framework C

 
user47589
i've had so much caffeine that i was jittery like i was on crack
 
What's wrong with crack?
 
yeah the ol coffee crack jitters
 
user47589
any more caffeine and i would have transcended time and space like Philip J Fry
 
7:52 PM
I've started drinking gradually more and more since I've got my first gig
I didn't drink it at all in college
 
user47589
i drink a pot each day, six cups
 
user47589
freshly ground each morning
 
@BrianJ I've had a friend pass out from too much coffee.
 
Need to get some Stok creamer - it's like a cup of coffee in a shot
 
@KendallFrey haha what?
 
7:53 PM
lel
 
my fav is a flat white
what's your's?
 
@Amy and all other admins, you are arsesome.
 
user47589
flat white what? a whale?
 
*Awesome ;)
 
@BrianJ yeah, that's what we assume anyway
 
user47589
7:54 PM
a tapeworm?
 
lel
 
user47589
what is flat and white.... paper!
 
!!Google flat white coffee
 
user47589
cap's broken
 
oh nuuu
 
user47589
7:55 PM
oh yesssssss
 
user47589
search your feelings, you know it to be true
 
5th gear is a boring person's top gear
 
Bmo
Probably because his internal systems are misreporting temperatures.
 
user47589
i see. i prefer my coffee black as the devils hooves.
 
7:57 PM
@BrianJ not sure if that refers to TV or real life
 
me neither
 
black as the ace of spades?
 
user47589
blacker!
 
Do you enjoy your job?
 
user47589
8:01 PM
when i dont interact with the users
 
user47589
Kit has a point. There's not much variation in color across devices.
 
yeah
 
So it's entirely possible that I'm asking the wrong question here, but is it possible to debug a collection of async tasks in a way that is actually useful?
 
user47589
i dont like working with async code for that reason
 
8:17 PM
@Amy cyan colored devices are what got me into Windows Phone
because tired of the same colors.
 
var tasks = new List<Task>();
foreach (var item in items) {
    var task1 = Task.Factory.StartNew(() => {
        doStuff(item, _cancelSource.Token);
        Interlocked.Decrement(ref _loansInQueue);
    }, _cancelSource.Token);
    tasks.Add(task1);
}
Task.WaitAll(tasks.ToArray(), (int)_timeout.TotalMilliseconds, _cancelSource.Token);
 
there is some odd notion that colors = cheap, like HP Stream and iPhone 5c...
 
I have a breakpoint way deep down in doStuff that I need to debug.
And it just gets hit a bazillion times and stepping through just jumps all over the place.
 
can you make it a conditional breakpoint?
 
user47589
i think everything went to dark grey/black when Dell became the dominant manufacturer in the US.
 
8:19 PM
like, break if item.id = 5
 
user47589
then everyone except Apple followed suit
 
@CuddleBunny I could but I don't know what the condition is yet. That's part of what I'm trying to figure out
 
but even Apple abandoned their colorful iMacs for gray/white everything.
 
user47589
maybe not manufacturer. brand? distributor?
 
Some of these tasks are failing but we don't know what's causing the failure.
 
8:20 PM
I think those tiny candy colored laptops that dell did were the last thing I remember being super bright.
 
Well I know what's causing the failure but not how to replicate it, rather.
 
user47589
@mikeTheLiar add a shit ton of logging
 
@mikeTheLiar maybe use logs instead and debug the last log before it breaks?
 
I'll give that a shot. Or I'll task QA with replicating with a single data set.
 
user47589
8:22 PM
when logging make sure you log the task id, so you can follow the logs
 
user47589
its katamari in real life!
 
user47589
can you imagine being the victim of a hit and run of such a car? what if they don't stop, and you're glued to the hood screaming your ass off
 
lel
I want robots carrying me on a rickshaw
 
Stallman forgive me, for I have sinned...
catch { }
 
8:32 PM
catch { me = sinner;}
 
But... Why?
 
user47589
you monster
 
user47589
i wish this project targeted sql server 2012. i sure could use those Sequences right now.
 
try
{
  	int i = 1 / 0
}
catch
{
 	Log.WriteLine ("Something happened, I don't know what, it's your problem now");
}
 
user47589
8:37 PM
i have three tables. all three have a ControlId column, none of which can have values that overlap
 
user47589
i tried using a SQL computed column, using each table's primary key, multiplying it by 3, and adding 0, 1, or 2 as appropriate, that way overlap is avoided.
 
user47589
but that can't work, because i need the control id before the entity is actually written to the db
 
user47589
i dont have to use all possible control id values. so i can allocate them in blocks of, say, 25, and use a table to keep track of the last allocated block
 
user47589
i considered using another table, which has a primary key for the control id, and foreign keys to the other three tables
 
user47589
but, that runs into the same problem as the computed columns. i need a value before the entity is saved
 
user47589
8:41 PM
has anyone solved this sort of thing before?
 
user47589
i could use some advice here.
 
user47589
collectively these entities are referred to as "assembly items"
 
user47589
unfortunately the control ids must be an integer-type, can't be a string. that's a business requirement, unfortunately.
 
user47589
if they could be strings this would be done already :(
 
user47589
no one? perhaps if you combine your friendship powers together, some magic will happen
 
8:53 PM
@Amy this sounds silly, but can you address them out? Table A goes from 1-100, table B 101-200, table C 201-300.
Obviously your address spaces would be much larger (lets say 1/3 the address space of whatever data type you're using)
 
user47589
that's an option.
 
user47589
the number of each entity varies. for every entity A, there's about 12 of entity B, and maybe 4 of entity C.
 
user47589
it varies, but not by a lot
 
You'd run into issues if you had more table entries that (4294967295 / 3), but I suspect if that's the case you might have other problems.
 
user47589
i doubt it would run into a ceiling unless the ranges are too small
 
8:56 PM
So your proportional address space could not be evenly mapped?
!!> 4294967295 / 17
 
@Sidney 252645135
 
today I barely remembered it was my one year anniversary with my GF, lol
 
You could have a max of that many A's
 
user47589
i hope you got her flowers, @codeman
 
@Codeman Danger ahead
 
8:57 PM
@Amy well yeah
I'll grab some on the way home :)
 
This has been the last 90 minutes for me:
__Proddev__ - _$thing_ is broken!
__Me__ - Are you sure it's not _$obviousUserError_?
__Proddev__ - No, we checked. It's got to be a problem with _$thingThatShouldNotBeAProblem_.
__Me__ - I double that, but fine, I'll look into it.
_time passes_
__Me__ - It's _$obviousUserError_!
__Proddev__ - _sheepish look_
 
trader joes has the best flowers
 
Fuck you markdown.
 
user47589
you should get me and @Sidney some flowers, too.
 
If I ever got my wife flowers she'd laugh in my face.
 
user47589
8:58 PM
@Sidney i think i'll go with that idea. it's by far the simplest.
 
I know exactly what she'd say. "Why the fuck did you get me flowers? So I can watch them rot and throw them out in six weeks? Asshole."
 
@mikeTheLiar why? T_T
 
user47589
@Sidney and shouldn't cause any problems until well after i've left the company :)
 
@Amy Glad to hear it. Those are the best kind of time-bombs to leave.
:)
 
hey guys in microsoft azure, do you guys know about premium small app service hour charges?
 
user47589
8:59 PM
@mikeTheLiar get her some flowers that are still growing in soil, you dummy.
 

« first day (2042 days earlier)      last day (2898 days later) »