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

9:00 PM
@KalaJ I use LogicPoint for my blog, Azure for actual projects
 
@Pheonixblade9 I don't understand what the issue is. One table for the third party stuff, one table for the records as you actually plan to consume them. Update triggers, whatever.
 
So if the server code is not running, where does it stop unexpectedly?
 
ah ok
 
@KalaJ GitHub
 
oh github pages
 
9:00 PM
@Pheonixblade9 are you saying the API returns results with the same ID, but with different parameters, on subsequent calls?
 
Great for blogs
 
@Jeremy the problem is that there is no real unique key, so in order to do updates, I need to calculate a hash on the entire record
 
not for apps
 
@TomW yup.
it's a shit API
 
Ugh.
This is screaming to me anti-corruption layer
 
9:01 PM
that's essentially what I proposed but THEY WANT ALL THE DATA FOREVER FOR SOME REASON THAT WE CAN'T EXPLAIN NOW
 
write something whose whole job is to call that API and make the results make sense, then talk to that
 
@KendallFrey It doesn't stop because it never starts :)
 
@TomW well, I have that. It's the third party service. It's a WCF thing
 
@KeremZaman Well, there's clearly code that calls it, it has to stop somewhere
 
it runs once a week, or on demand for new policies
 
9:02 PM
Are you saying that if you put a breakpoint on the first line of the Server method, it never gets hit?
 
@KendallFrey it doesn't stop. Stopped one is client. When client stops, server never starts.
Yes, I am.
All code stops at client.
 
@Pheonixblade9 the anticorruption layer is the part that's not making sense?
 
No, you're misunderstanding something
 
erm.
 
@TomW so... just curious if my effed up method sounds like it will work
@TomW well, the anticorruption layer has to deal with the shitty data somehow. That's what I'm trying to figure out
 
9:03 PM
the server code should run long before ReadLineAsync on the client
 
oh I see, that's the part you're writing?
 
Hm. Tell the BA to stfu
this is a technical concern
 
and their answer was essentially "the entire record is the primary key", they can't provide an actual unique key
@TomW dude do you think I'd hate this project so much if my opinion mattered?
I'm a fucking code monkey
I'm probably on a PIP
because I'm so pissed about their ignoring my technical recommendations - what they pay me for
 
@KendallFrey but I put breakpoint on the first line of it, which doesn't get hit
 
9:05 PM
@KeremZaman So put a breakpoint on var client = Task.Run(() => Client());, and run. Does it hit the breakpoint?
 
I recommend you do something that will probably be extremely disingenuous to you
 
yes, it does
 
Now press F10
 
@Pheonixblade9 find a senior executive at your customer and tell them what you just said
 
What line is the execution on now?
 
9:06 PM
var server = Task.Run(() => Server());
 
@TomW what? that they are ignoring my concerns?
@TomW the reasoning is that they might want the extra "diverted" records for a data point in the future
 
Place a breakpoint on var listener = new TcpListener(IPAddress.Any, 8080); and press F10
 
ignoring that I offered up other solutions for that
like putting the diverted flights as a separate table or something
 
yes, now it is on line
 
or even a self-referenced table
 
9:07 PM
@Pheonixblade9 OK, well have your mediator log everything as a separate event, then return a query over that that ignores everything except the thing you want
event sourcing style
 
@KeremZaman On what line?
 
@TomW the problem isn't returning stuff, the problem is updating/inserting into the DB
there is no PK, so I have to calculate a hash to determine if ANYTHING in the record has changed
actually...
any reason I can't delete the old record and reinsert if the hash doesn't match?
 
@KendallFrey listener = new TcpListener(IPAddress.Any, 8080);
 
@Pheonixblade9 my point is that you change the meaning of the entity when you write this kind of mediator over this kind of service. The entity isn't the result from the service, the entity is the event recording the fact that you received a result from the service
 
I can just delete everything with the ID they give us and reinsert stuff with a new hash code
 
9:09 PM
@KeremZaman I'm beginning to hate you
You said that breakpoint never got hit
How can I help you if you're lying?
 
@Pheonixblade9 The API talks about flights. Your mediator talks about events where you called the API. They're different entities. Record those, treating them as events in time, and you are literally preserving everything that they could possibly want for this nebulous future requirement
 
@TomW the problem is that I get the same event back at least one additional time
and I need to be able to handle that event having new data
 
@Pheonixblade9 define 'same'
 
the same physical event that happened is returned multiple times across multiple API calls
 
@KendallFrey What? I never lied. It can be about pressing F10. Because I was pressing F5 and the result was what I said before.
 
9:12 PM
 
@Pheonixblade9 I'm trying to see whether I've missed something. I think I've made a good case for what I'm suggesting and I don't see what the problem is now
 
@TomW sorry - could you restate what your suggestion is?
 
ok, so if you delete all breakpoints in your app and put one on listener = new TcpListener(IPAddress.Any, 8080);, what happens when you run your project?
 
it gets hit
 
9:14 PM
@Pheonixblade9 treat every API call as a separate event so that every API record returned is stored in your mediator as an event with a composite key comprising the identifier of that particular call to the API, the index of the row in the API result set, and the ID that the API says the result has
 
So, does the server code all execute?
 
@Pheonixblade9 then for the specific use case you're currently developing for, return to the application the result of querying that event stream, using the query you think makes sense, throwing away any records you know are duplicates
 
it doesn't get hit on while block
 
@TomW how do I detect which records are duplicates, then?
 
@Pheonixblade9 the same way you've previously suggested doing. You've stored everything the API gives you, no information is lost
 
9:17 PM
@TomW I don't see how that's different than what I have now though
 
@KeremZaman You mean it stops at Start()?
 
sorry if I'm being dense :P
 
@Pheonixblade9 it shuts up the stupid BA who thinks you should do something different
you've captured everything and appended unique identifying information to it. Whatever they could possibly want to use it for, you can
 
hmm
so the unique identifying information would be the timestamp of the call?
 
just write a different query that suits the application
 
9:18 PM
that's kinda what the current plan is
 
Yeah, I suppose so. That and something that identifies which repetition of that particular ID the row was
 
yes
 
well right now the plan is to use a hashcode to determine the row's uniqueness
my thinking is that I should just say "does this hashcode exist in the DB? no? well then delete all records with the ID we're using and insert the new ones"
then I don't have to do messy "what is the most recent record" logic
 
What volume of data are we talking about?
 
Can anyone tell me how I can keep a System.Timers.Timer running more than twice? the below code only runs it twice.
        this.timer.AutoReset = false; // keep it running
 
9:20 PM
each row is a flight - up to 2000 current policies X the number of flights they contain
so upwards of millions of rows
 
@AshSimpson You have some reading to do
 
per [time period]?
 
@Pheonixblade9 so I think the problem comes about because of this talk of deletion. Clearly the volumes of data we're talking about aren't a trivial storage issue.
 
@TomW right - and with the current solution that we have, we would be storing every single API call, not just every record
 
9:23 PM
So some thought needs to be given to whether preserving absolutely every piece of information that passes through the system is within the capacity of the hardware
 
@Pheonixblade9 - Temporal database?
 
@TravisJ eh wot?
 
@Pheonixblade9 if business is not prepared to pay for a warehouse full of hard drives, BA's suggestion is moot.
 
!!wiki temporal database
 
@ton.yeung some storage is.
 
9:24 PM
it's not storage I'm concerned about, these guys put 6GB responses in a BLOB column. It's recalling the data and computing the indexes I'm concerned about
 
A temporal database is a database with built-in support for handling data involving time, being related to the slowly changing dimension concept, for example a temporal data model and a temporal version of Structured Query Language (SQL). More specifically the temporal aspects usually include valid time and transaction time. These attributes can be combined to form bitemporal data. Valid time is the time period during which a fact is true with respect to the real world. Transaction time is the time period during which a fact stored in the database is considered to be true. Bitemporal data combines...
 
@ton.yeung lots of storage poses a problem
 
nah, the actual storage size is not a concern. My concern is that the recall won't be performany
 
@ton.yeung how?
 
9:25 PM
@Pheonixblade9 - pastebin.com/8Yz030GZ
 
I mean - how would you partition it? I know how to partition :D
 
@ton.yeung one can always expand the definition of the problem. Unless storage is actually free, someone can always propose a system that would consume too much
 
@ton.yeung uhm... it's the data from the last year for any given natural key
 
@AshSimpson Jesus fucking Christ, would it kill you to READ THE FUCKING MANUAL?
 
@ton.yeung to plug into a massive set of transformations that calculate scores based on the data
 
9:27 PM
I can't read well.
I am dyslexic.
 
@AshSimpson You don't need to be able to read well
 
I gotta run - I think talking it out helped me come up with a better solution. Thanks @TomW :)
 
@Pheonixblade9 no prob, glad I could help
/rubber duck
 
something like that :D
smart rubber duck, haha
 
kill the BA?
 
9:28 PM
nah, he's a good guy
it's not his fault that he's the word of god
he's just not an engineer but he knows enough to make suggestions that sound good and would technically work, but in reality are TERRIBLE designs
 
@Pheonixblade9 - Make your db temporal and you can partition easily on date. Side affect is having nice little audit messages in edit screeens for example i.imgur.com/Wlv18xm.png
 
@TravisJ I am not allowed to make changes that big :/
anyways - gotta run
 
oh, bummer
o/
 
fml, need to replace my vacuum and it's only been a year and half :S
 
dyson is pricy tho
Yeah they work nice
I like shark as well
 
9:34 PM
Am I missing something, should this always have a null:

foreach(var content in Model)
{
     <a href="@{ String.Format("Http://www.google.com?{0}", content.Id); }">@content.Id</a>
}
 
@ton.yeung - The only reviews I read was that they were heavy, but I haven't experienced that. I have this one target.com/p/shark-navigator-professional-vacuum-nv80/-/…
 
So, the @content.Id is visible, but everything in the String.Format isn't.
@ton.yeung Defined ^
 
@{} isn't generally used for output
you want @()
 
@TravisJ I shall try, thank you.
 
<a href="@( String.Format("Http://www.google.com?{0}", content.Id))">@content.Id</a>
@ton.yeung - ah
@ton.yeung - zzzzzzzz
I have a decent amount of carpet that needs to get cleaned regularly. Just like Kendall's mom!
:D
I don't know why anyone puts carpet in anymore though to be honest. Wood is just as cheap and far easier to maintain. It looks better too
Yeah
 
9:38 PM
@TravisJ But the {0} isn't displaying in it.
 
@Greg - so it just looks like <a href="http://www.google.com?">93</a> ?
 
What's the SpecialFolder enum for LocalLow app data? is there not one?
 
@TravisJ I'm a moron, I know why.
 
:)
 
@TravisJ Yes, it was. But I figured out why.
 
9:40 PM
77
A: Why are there directories called Local, LocalLow, and Roaming under \Users\<username>?

Jared HarleyRoaming is the folder that would be synchronized with a server if you logged into a domain with a roaming profile (enabling you to log into any computer in a domain and access your favorites, documents, etc. Firefox stores its information here, so you could even have the same bookmarks between co...

 
@TravisJ Question, if I were to implement a Sort on some data before I push it into the View. What would be a proper place to put it?
 
@Greg - Generally you would do that before it was sent to the view. However, if you view is using multiple versions of a list such as sort orders and whatnot, then just do it in your foreach loop in the view.
 
So it should be done inside the view, rather than the code behind.
Well, I was trying not to use a Grid. Was doing a loop through Model then dump of data.
It is, but trying to sort via Client interaction.
Yes.
 
@TravisJ idk about that... you can access Local using SpecialFolders.LocalApplicationData... getting path of that does not give me LocalLow
 
Yeah, I get an additional sort. But maybe the user wants to Sort on Invoice vs Id.
Or Name vs Id
 
9:48 PM
@TravisJ, which vacuum do you have now?
@ton.yeung, dyson is pricey
 
@ton.yeung Ah, seems like a wasteful call.
 
@KalaJ - The one I linked earlier
 
@ton.yeung So I would be better off with JavaScript sorting of said data.
 
let me scroll up lol
 
I do send it all down.
 
9:49 PM
@Greg - How many invoices are there?
 
ah okay, I'm looking for $200 range and lower for vacuums
the old one I had was hoover
 
@KalaJ - It was only 199
 
I won't get lucky like you @ton.yeung
 
Sending it all down to the client is going to scale terribly.
 
yeah I am thinking about shark
 
9:50 PM
@TravisJ I only allow them 200 total to be displayed.
 
@Greg - Then sort in javascript
 
I heard mixed reviews about dyson though @ton.yeung
Is the above one the one you got?
 
Okay.
 
hmm ok
 
can someone please help me here redd.it/3g6dxe
 
dyson vacuums are awesome yo.
I went from not cleaning my room to almost everyday
 
does your application need to be run as admin for log4net write to files in a directory that maybe the user doesn't have access to?
 
@ton.yeung - lol see, firefox is bad
@NETscape - yes
@NETscape - the m in lamp is mysql
boom
 
doh. i was thinking mssql
ir, derp
but about the log4net question...
 
9:59 PM
hello
 
I was thinking about amazon.com/dp/B002HFDLCK/…
Hi Fun
 
hey
 

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