« first day (1754 days earlier)      last day (3211 days later) » 

3:08 PM
@ton.yeung I feel like processor news has been underwhelming for the last 5 years or so
I've always been an AMD guy, I'll take the 5% hit in performance without the 300% hit to my wallet.
But I am looking forward to Skylake in SP4...
though I can't help but think I could actually afford a Surface if it had AMD cores...
other than some more RAM because I had to start working with Adobe software for work I haven't purchased anything in 7 or 8 years, I've got a Phenom II quad core.
I can still play all the new games and whatnot
nah, I spent $650 and didn't have to return a thing. The equivalent Intel CPU at the time was $550 on it's own.
Everything has been overclocked for that entire time too.
in other news: kotaku.com/enter-a-huge-butthole-in-japan-1722184062 (maybe a little NSFW?)
 
no doubt there's no virgin over 16 year-old in japan
 
hi guys I have implemented webapi get method thats returning access to a websocket on our web api using the following code http://pastie.org/10331592

based on the link here http://blogs.msdn.com/b/youssefm/archive/2012/07/17/building-real-time-web-apps-with-asp-net-webapi-and-websockets.aspx

which is working and i get the socket back no probs. I then want to do another api call to then trigger some events that I want devices that are registered to the websocket to receive the messages through c#
 
oh wait... it's about the same in US
 
@ton.yeung I see, I was considering getting another motherboard because I can't get Hyper V to work on mine but then didn't because AMD was planning a socket change next year. I guess I'll find out.
@tweray actually there are a lot of them... and it is a problem because no babies.
 
3:24 PM
i assume the no baby is more from birth control, and legal... i don't want to spell that word... you know what i mean
 
The problem seems to be that all the men are afraid of the women and all the women won't shack up with men that make sub-doctor level salaries.
 
Good morning, friends.
 
lol
@KendallFrey next time when you do this, use the "don't fucking click this" tag
 
@tweray you were warned
 
3:30 PM
warn is the level you use when some one walk into a 2 feet deep pond, you are pushing ppl into a 100 feet deep one with a dozen of crocodile in it
 
@JGrindal Morning - Coders
Morning @ton.yeung - get to pull a transmission from a dodge this weekend :) Fun!
Those are Nice all done, ya rear wheel are more fun
 
@ton.yeung just take another car and put the integra body on top.
 
get one now, save it
have a grand am, I love Pontiac, in the garage waiting for the funds. its not a GTO butt i like it
 
I want a 4wd Mini Cooper.
 
Invest well - TomW just made a killing
reminds me - what is apple taking a hit like today
 
3:35 PM
@juanvan ha. Hardly.
I'm making cents at a time
and losing a ton today
 
lol I am too on divid
 
turns out oil has a bit further to fall than I thought
 
ya that is my next one
netflix split
good buy
 
Hi guys I've return a WebSocket through an Api get method which can be seen here http://pastie.org/10331592
I want to then trigger an method which will start running some tasks and send message back down the socket to anyone listening.
 
i was going to invest in apple back in the 90's when I got out of HS should have..
 
3:37 PM
I have the following code as an example but my the onmessage isnt being triggered or receiveing the Hello Worl message
public IHttpActionResult CommissionDevice(string deviceid)
{
var ws = new DeviceTestsWebSocketHandler(deviceid);

ws.Send("HELLO WORLD");

return Ok();
}
 
@ton.yeung just go with safe stocks like Yahoo
 
or aol?
 
JGrindal's plan to riches in 2 easy steps:
Step1: Short oil
Step2: Retire
 
any ideas what stupid thin I am doing wrong here?
 
@user3545438 does the method hit?
 
3:38 PM
yes the method hits and doesnt throw an error or anything
but the onmessage client side isnt picking up the message??
the onopen has been triggered though
 
@JGrindal Isn't even the middle east making a loss selling it atm?
 
@TomW No, incremental costs for Saudi Arabia/Oman/Iraq, etc production are about $7/bbl. They are, however, making it completely uneconomical for shale oil production here in the US.
 
heres the js if it helps
 
@ton.yeung set aside a small amount of money that you feel safe losing and just dick around
 
@TomW Yeah, that's how I got started. Super small positions.
 
3:41 PM
@JGrindal I read something by the Saudi oil minister I think, a couple of months ago, saying more or less "We don't want to open up production at this price, but we have to to get the volume through or we'll have to send people home and cancel investment and that will screw us"
In other words, producing at this price hurts us, but not producing hurts us more
 
@TomW They have to move the volume because otherwise they'll lose their position as "top dog"
 
Exactly.
 
@user3545438 step into the Send()?
and that ws is creating an object
 
So what I conclude from that is that the price is now low enough that it even hurts Saudi, that has comparatively cheap reserves to extract. Can politics really trump economics and push it even lower?
 
Yes it Will
 
3:43 PM
Right now, newest inventories in the US are 455,300,000 bbls, the highest that they've ever been at this time of the year.
 
with the new deals going on, we might see 1$ gas
 
@juanvan Unlikely, seeing as fall is refinery turnaround season.
 
@juanvan Iok i'll do that now I jst put a breakpoint on the OnMessage method and that wasnt firing
 
Race to the bottom hey?
 
put a breakpoint on the var ws line, F10 is step over F11 is step INTO that method
 
3:45 PM
Hey governments: Hoofing great gas tax.
They can afford it
 
extra money in the bank accounts, get it off them NOW
 
@juanvan I cant step into the .Send as its part of the Microsoft.Web.WebSockets that the class is extending
although like i said the OnMessage isn't firing so I am doing something wrong here
I also tried calling the OnOpen method
 
  ws.onopen = function (evt) { onOpen(evt) };
 
Hey! The Daily WTF are running a series of programming competitions. The prizes are:
- stickers
- a mug
- a Single Developer licence for Infragistics controls
 
that is what you are calling?
 
3:49 PM
if anyone needed an incentive not to enter, that was it
 
I need stickers :)
 
sori mean fromthe server Microsoft.Web.WebSockets
 
make your own
bacon > sleep
 
See, if you had simply followed the @JGrindal two-step investing strategy, you would make $1,000 for every $4,700 you throw out there today.
 
oh ffs
I hit my extremely aggressive stop loss
money is gone
opened with $25, closed with just over $6. Fuuu.
 
4:03 PM
@TomW =(
 
Anyone know the status for patches to 4.6 and 4.5 issues in .Net?
 
@TomW :(
nothing on 4.6 patch, won't let windows 10 update till they fix it.
 
Is 4.5 busted too? I thought it was just 4.6
 
@JGrindal Found random news article suggesting that oil may hit a temporary low of $30 around september/october
Are these things self-fulfilling prophecies?
 
4:18 PM
Here's what I'll say - if oil hits $37, I will be taking a HEAVY long position.
As in, I will be taking a position size which my account has termed "dangerously unwise"
 
@JGrindal there will have to be a political reaction at some point, surely?
Would that be the point where that would happen in your opinion?
 
@TomW Things get kinda hairy sub-50, but in the low 40's, it winds up being a bloodbath from a company standpoint. Anything under 40 is practically unsustainable nowadays.
 
The opinion of a random stranger on the internet is no worse than my current strategy
Why not
 
Haha, I've traded oil for a while now, and I've worked in the oil industry for over a decade. It's a world I understand pretty well.
I was short oil from 94 to 54 last year. That was a good trade.
 
I have no reason to doubt both of those things, but if you were an idiot, you'd still say that, wouldn't you? :P
 
4:23 PM
Guys any idea what questions related to multi threading can be asked in a C# interview?
 
@Obviously Task vs Thread.
@TomW I suppose I would.
 
@JGrindal I didn't mean that in a dismissive sense, by the way. I'm being flippant about my own incompetence
 
@TomW No, not at all. I tell everyone the same thing: we're all idiots in this business. We play a game which guarantees that we cannot be right all the time.
 
@CuddleBunny Some of the .Net issues can impact .Net 4.5
 
We're all looking at incomplete information, speculation and manipulation. You have to put together a plan that you're comfortable with, because if you try to just do what someone else is doing just because they're doing it, you're doomed to fail more than you succeed.
 
4:27 PM
@Obviously What the thread pool is, what a scheduler is
@Obviously And what are some synchronization constructs and patterns you can use
 
@Greg is it still only RyuJIT though? Other than random .NET bugs that are inevitably in every version of the code.
 
4:43 PM
@Obviously I'd maybe ask "Describe a concurrency issue you've debugged in the past"
 
@MikeAsdf 'my code doesn't have concurrency issues'
 
'I've never worked with other people's code'
 
> A transport-level error has occurred when sending the request to the server. (provider: Session Provider, error: 19 - Physical connection is not usable)
I'm at a complete loss
my SQL data provider simply isn't working
 
"Physical connection is not usable. Stop running your server via the free wifi from the McDonald's across the street."
 
oh fuck
that sounds familiar
 
4:55 PM
you are connecting using windows authentication?
 
@CuddleBunny I believe so, not sure if that got fixed.
 
@TomW I'm long on Singaporean lottery tickets
Trust me, I dated a Singaporean girl once.
 
@Greg I don't think they've released the patch at least.
 
@tweray probably
 
i heard that AD sometimes can mess it up
try create a connection string using sql auth, and try if it works
 
4:59 PM
naaaaah
try logging out and back in if you just changed some of you perms @KendallFrey
 
i didn't
I can't figure out what changed
 
can you ping the server?
 
I wonder if it's because I killed VS earlier
 
try accessing it by IP
 
@LazyCoder sure I can ping localhost
 
5:00 PM
oh :P
I'm late to the conversation
that is pretty weird then
is it localdb?
 
idk?
 
is the your refrigerator sql server service running?
 
i would assume so
let me check the Services
wait, I don't need to, I was using SSMS fine
so yes
 
forgot how to strikeout...
 
what is not connecting to it
 
5:05 PM
three strikes
duh
 
yeah, I clicked help
been away too long
 
@LazyCoder idk, my code
 
your code...from Access? :P
 
@KendallFrey create a simple console app, can you connect from that?
 
5:05 PM
thankfully no
 
you trollin bro?
 
maybe
I have no idea what is what
 
yeaaaaa
 
but most of my tests are passing
I have no idea what's different between them
 
your tests probably have their own connection string
I'd compare the two
...and copy paste the working one over the broken one :P
 
5:08 PM
The connection string is read from a config file, well, most of it
 
Are your tests in its own project though?
 
Hey guys quick question, if you have to generate an entity model from a database, do you include the foreign key columns ? If you have to change a related child entity, do you change it using the nav property or do you use the foreign key column ?
 
are we talking about a C# app here?
 
@LazyCoder I have about 7 different test projects
@LazyCoder yep
oh, wait, not anymore
like 15 I see
 
@JoanLeaven Yes include them, you don't have to manage the nav properties you can let the edmx file update from the database once you have made changes
 
5:10 PM
@LazyCoder So if I change, for exemple, Employee.SupervisorId, it is enough ?
 
sometimes you have to blow away the table and re-add it if you make a change subtle enough that it doesn't detect it though
 
if I do, for example,
using (var dbContext = new MyEntities())
{
myEntity.RelatedEntityId = 2;
dbContext.SaveChanges();
}

it will work ?
 
Well it depends is the db supposed to manage that ID?
if so, that will throw an error
oh wait nm
that's fine
thats a FK
 
as long as there is a reletedEntity with an ID of 2
 
5:18 PM
yeah that's the case, I was just wondering if it was better to do myEntity.RelatedEntityId = 2 or get the RelatedEntity with id 2 and do myEntity.RelatedEntity = foundRelatedEntity
 
ok guys - I'm not understanding DNX Core 5.0. when I create an ASP.NET 5 project, it automatically includes targets for "dnx451" and "dnxcore50". but if I add a package from Nuget, the compiler won't build against dnxcore50 because the package doesn't have a target for it. and if I create a class library, I can't even target 5.0.
so why do we have it included?
 
@JoanLeaven it is better practice to use the ID from the actual entity rather than hard code it
of course
 
5:50 PM
partial classes linked to an Entity Framework DB first class, good/bad want to override Equal/Compare
 
@juanvan hrrrrm....acceptable if they are value objects, maybe
if they are value objects; well, the clue is in the name. Entity framework. Although I guess it's probably not meant in that sense
 
Joe
quick question for anyone who will listen
 
well we read
 
Joe
(:
 
@TomW yes, single value object
 
5:53 PM
Having said that....
The notion of equality of objects in C# and the notion of equality of entities in DDD is not the same
 
and pow
the create object is of that entity type?
 
Joe
is it preferred to use a property with a custom getter/private set? or to have a public method on the class that returns the value? example: private string _formHtml;
public string FormHtml{
get{
//custom implementation
}
private set{
_formHtml = value;
}
}
or public string GetFormHtml(){
// get string
return string;
}
 
a property is a member that sets a backingfield and can execute methods
 

« first day (1754 days earlier)      last day (3211 days later) »