« first day (1756 days earlier)      last day (3194 days later) » 

8:01 PM
lol
 
@TravisJ well that sounds like the difference wouldn't be much of a muchness
 
@TomW - Yeah, maybe. I saw a bottle of Johnny Walker black label at Costco once that was $50,000. I think it was from the 1940's.
 
...at Costco?
0.o
 
I've got a Johnny Walker course in here somewhere.
 
It was in a secured bullet proof glass display case
 
8:05 PM
The most exclusive scotch I'm aware of, never seen or drunk, is a series of 4 Macallans that are between 45 and 60 years old
presented in handmade Lalique decanters
 
it's got some classy sax music.
 
@TomW - On occasion I will buy some 22 year old Bowmore.
 
I've idly discussed with friends the possibility of buying a malt barrel as a syndicate
The normal size yields 360 bottles
ish
 
@TomW - How is the stock stuff going. Today looks like a rough day
 
@TravisJ meh. I have ARM dithering +-1.5% or thereabouts
 
8:12 PM
 
and two copies, neither of whom are doing much, and that's it
The epic fail on oil from a couple days ago erased all my incremental gains
 
bummer
Should have just stuck with Mondi :P
They look like a really strong stock, even went positive today in a down market
 
oh I've had bitcoin ticking over for months and months
it was +20something% on when I bought it in about september, it's now -20something
should have cashed out
I'm trying to break out of my sunk cost fallacy but I can't bear to close it at a loss
 
ahaha, I recognise this
there was a 'click for stuff' type game to do with elves or something a while back
 
8:25 PM
@TomW :D
Here's another one: twinbeard.com/frog-fractions
 
@TomW - I would suggest never going more than 0.2% negative.
If it gets below that mark, just leave.
If you are at -5, then it is real bad and you need to leave immediately.
Reason being is that, did you plan on taking a big hit in the stock? No. You planned on it going up. So when it turns negative, even at -0.2%, you are in a stock that you cannot predict.
 
Can anyone tell me, I am brand new to sockets and can't work this out. Which one of these codes gives me the incoming socket? (the client)
Socket incoming = (Socket)AR.AsyncState;
does this code do that?
 
Out of curiousity, does anyone still use ADO.NET and sqlconnection strings?
 
Please post complete code
 
@KalaJ - Legacy does extensively
 
8:30 PM
@Kendall Frey me?
 
via EF, yes
 
There's no way we can answer with only one line
 
@TravisJ, That is soo depressing.
 
@TravisJ Is there an easy way to download a image in MVC?
 
@Greg - Expand?
 
8:31 PM
@Kendall Frey pastebin.com/rYWJtNtg
 
@KalaJ I wish we did
 
you wish?? lol why??
 
because I don't understand ORMs
 
There are times I know what I want to do and don't need an ORM
 
@TravisJ Like I have a link and pass a url and I want it to download a image from that server.
 
8:32 PM
I asked if I could use Code First and LINQ instead and interviewing company said no. o.O
I was like ok....
their reason: we want to see you write raw SQL, avoid LINQ
 
@Greg - I am not aware of the process to do that, but I know it should be easy.
 
@KalaJ good answer. They want you to show that you understand what ORM is doing
 
It's super tedious though
 
SQL is great for certain specific classes of problem
 
and I have to spend time getting the sql syntax right
 
8:33 PM
I don't think I could write any sql on the spot at the moment.
I have everything so farmed out to expressions, it is all code based.
 
Hm
 
yeah me too. I'm used to writing out expression instead of raw sql
 
INCOMING TAUTOLOGY: SQL is great for solving the kinds of problems posed by SQL
 
Feel like put too much emphasis on sql and less on C#
 
@AshSimpson To quote the documentation, "EndAccept will return a new Socket object that you can use to send and receive data with the remote host."
 
8:35 PM
@TravisJ for you to say that surprises me a lot
I write raw SQL in SSMS every day
 
WTF
why
 
because we have databases
 
@TomW - I don't deal in SQL. I can go in and parse it if I really have to, but writing it is a pain. I am an expression tree ninja.
 
why would you not?
 
@TomW We do too
@TomW Because I don't need to?
I have no problems that would be solved by writing raw SQL
 
8:36 PM
I only write it when I have to directly manipulation the database in SSMS
*manipulate
 
Me too
 
like if company decides they don't need field xyz
 
The only stuff that I manipulate is table structure.
 
i.e. never
 
or table xyz
 
8:37 PM
@KendallFrey I tried the code Roel gave today. But it freezes at ReadLineAsync(). Can you help? gist.github.com/Deathspike/e726c8b50c8de607cc46
 
yeah me too, just table structure
 
But even migrations, I am not about to start dealing with strings or some massive insert statements
 
@KalaJ If we decide that, the db is updated automatically
 
I will farm that out to async processes that run for an hour and do it for me.
30 lines of code and a free lunch
 
I never wrote an inner join query or things like that
why would I?
I just use DROP, ALTER etc...
 
8:38 PM
I did a long time ago.
And then I started using expression trees.
And now I am in love.
 
@KeremZaman depends what freezes means
 
I have used the one that resets the table recently. But it was only 1 line of SQL
truncate
 
@KeremZaman It also depends which one it freezes at.
 
I love LINQ to objects, use it all the time. But LINQ to SQL, and in that I include entity framework...what's the point? Just use the language that's designed to solve that problem within the platform you're using
 
@TravisJ The fuck? Our database takes seconds to tear down and rebuild from scratch
 
8:40 PM
@KendallFrey - How large is your database?
@KendallFrey - And are you doing it from the same machine to the same machine?
 
I'm not even good at SQL. Really lousy, actually
 
@KendallFrey - I am talking about migrating data between server farms.
 
tens of tables, currently a handful of records per table
 
@KendallFrey it freezes at ReadLineAsync() in Client(). It doesn't do any work after ReadLineAsync() as well as GUI.
 
I have 20 tables with over 100k records per table
 
8:41 PM
@KeremZaman The GUI freezes?
 
it's like the difference between writing a shell script to rename files, vs. writing a C# console application to do the same thing
 
Yeah, if its local it makes sense. But what about when you are moving from one machine to another.
 
herro rora
 
Or from one set of machines to another set of machines.
 
@TravisJ We don't do that, the dbs aren't in prod
 
8:42 PM
@KendallFrey my application's gui freezes. I mean it does NOTHING after the line containing ReadLineAsync(), it freezes.
 
lol... if it does nothing, it wouldn't freeze?
 
@KendallFrey - Yeah, well that makes sense then, but it doesn't fit the scenario I was dealing with which is why it took so long.
 
@KeremZaman There is no GUI code in that gist. If you copied code blindly without understanding how to use it, I can't help you
BTW, that code looks a LOT like the Haskell I wrote recently
 
@KendallFrey I said GUI for giving an example to the fact that nothing works. After that line, all codes stop working. I mean this by saying "it freezes."
 
I can't help you unless you give me some broken code to diagnose
 
8:44 PM
Doge-like typing detected
 
@TomW ctrlcctrlv hardly counts as typing
 
@KendallFrey I meant the explanation
 
@KendallFrey it is broken code also. I said that nothing works after that line, so lines under ReadLineAsync() doesn't work.
 
heh, I started making a simple Func<string,double>
 
8:46 PM
@KeremZaman are you running a console application?
 
Turned into Func<string, Dictionary<string,Tuple<int,double,List<string>>>, bool> recRate = (str,dict) => { };
 
@Netscape no
 
welp
 
oh BTW #2, my Haskell does at least as much as that C#, and it's only 12 LOC not counting imports
 
8:47 PM
@KendallFrey - As mine?
 
@KeremZaman your code is working, you need to give it data to read
 
@KeremZaman Don't point at code that you copied and call it broken just because your app is broken
@TravisJ Roel's
@TravisJ You need Haskell, my friend
 
@Netscape When I write Mbox.Show("something") instead of Console.WriteLine() it doesn't work. It freezes at ReadLineAsync()
 
@KeremZaman just a hunch, try removing the Task.WaitAll line
 
so... can I run this design by you guys?
it's... stupid but the BA won't budge on it
@ton.yeung SCREWWWW YOUUUUUU
 
8:50 PM
@Pheonixblade9 a BA is a bucket for opinions. Stuff is not meant to come out of a bucket
 
we have a bunch of records that have a "unique" ID, but it's not really unique... we can get multiple back. The third party recommends collapsing the multiple records into a single one, but we can't do that because the BA insists that we might need that duplicate data... for reasons... in the future
 
That doesn't make sense
is it unique or not
 
so the design we came up with... I essentially hash the individual response object from the API, use the hash as the PK, and we write a new record every time we get an updated hash (a value changes) and maintain that with an "InsertedDate" column
 
@KendallFrey when I do this, it doesn't freeze, but doesn't run the codes under that line again.
 
@KendallFrey it's a "unique identifier" but they send us multiple records with the same ID. So no, their documentation is lying
ok so here's the fun part... I have a chunk of SQL that looks at the database and updates an "Ignore" column based on some algorithm that tries to figure out if data is out of place
 
8:52 PM
@Pheonixblade9 is it the same entity manifesting itself n times?
 
so I also have to have a "Deprecated" column that I update before I run this update code
@TomW what do you mean
 
@KeremZaman Is the server code running OK?
 
I mean, do the rows represent the singular entity with that ID registering some event?
Try again...
Do the rows represent a number of changes to the same entity
 
@TomW yeah, the ID corresponds to a single event, but they return multiple rows to us sometimes because an event can be diverted to another location
anyways, I'm concerned about hash collisions and the like in the DB
 
@KendallFrey after ReadLineAsync() in Client(), it runs neither Server nor ServerForClient.
 
8:54 PM
Hmmm. OK. So a number of different actors report the same thing, like an echo?
 
@TomW a flight can be diverted from one airport to another. That produces an additional record
 
@KeremZaman I don't care about after, I just want to know if the server code is running as expected
 
It is most definitely the same entity, in that case
 
I also want to know why you expect us to do your debugging for you.
 
Oh, well..
@Pheonixblade9 is the row the flight, or is it a system raising an event about that flight?
 
8:56 PM
@TomW yes, I agree. But the BA wants the diverted records stored, as well.
@TomW ...both?
the API provider recommends collapsing those records together
 
I would say collapse them then
 
I'm talking semantics now. I think the intended meaning of the query that returns these rows is crucial
 
but the documentation is lying in other places soo
 
Are you trying to harvest information about flights, or are you trying to harvest information about events that happened during the course of flights?
Is this the only chance you get to retrieve that data through that API?
 
@KendallFrey if only they listened to their engineers for technical decisions, I might not be driven insane by this project!
@TomW information about flights.
there's a final record that we use, but I need a way to be able to "update" records because sometimes they are changed when we call the API later
 
8:58 PM
@KendallFrey I said it doesn't. After client, server code block comes and I mean server doesn't work by saying that neither server nor serverforclient works after the client. Also, I don't want you to expect to do my debugging. How can you make an inference like that ?
 
What hosting providers do you guys use? That way, if something happens, I will blame you for recommendation :P
 
so this is the terrible, bad design, cobbled together thing that I came up with after trying to figure out how to work through all these arcane requirements
 
@KeremZaman It's not supposed to be happening "after"
 

« first day (1756 days earlier)      last day (3194 days later) »