« first day (1973 days earlier)      last day (2969 days later) » 

8:00 PM
fizzbuzz is simple, but really good developers still fail it when put on the spot and given only a couple mins
 
yea, I am terrible with puzzles, I get too nervous
 
@Jeremy - All the git commands work. I'm not sure if that's what you mean
 
@SpencerRuport It was a bad joke. I don't know the answer to your question
 
@CharlieBrown true. The stress factor may be high for some
 
@Jeremy - D:
 
8:01 PM
To be honest, unless I REALLY liked the place, I'd expect to be paid for the time it took to do any interview "assignments"
 
i had to write a native c function in c# once, it wa dumbo
 
unsafe code question?
 
I had this fantasy that I'd open up an Ikea with no employees. Job interviews would consist of building a piece of furniture for the showroom, and I would hire nobody, but encourage them to come back later that month.
 
thats pretty original
 
I don't want to work for that software company.
 
8:03 PM
hi guys. may i ask a technical question?
 
Shoot
 
at some point the exams in the interviews will be 8 hours and then they'll be obligated to pay for a day of work
 
@Alex no, it's friday, come back on monday
:^)
 
:)
i know. i wish
 
@Jeremy Do companies even do that?
 
8:04 PM
I'm joking, ask please!
@scheien There are companies that rely very heavily on intern/temp work
Even decent ones.
Or so I've heard.
 
I guess I just think too good about people
 
developers are good people
:(
 
I'll sure be hanging on to that thought the next time I'm given an assignment during a hiring process.
I'll license that piece of code (if possible)
 
@SpencerRuport - Okay
@SpencerRuport - Oh, with Git? I am the wrong person to ask :(
 
Here's the problem... my Entity Framework 6 context has a stored procedure that returns a resultset. The result type was assigned by EF as FindEmployee_Result which is almost identical to the Employee model class it generated. I'm going to bind this to a DataGrid in WPF and then persist the changes back to EF and save to database. But my database uses the Employee model class to write to the Employee table. I've tried converting and have had no luck.
 
8:07 PM
hold on a second where did this FindEmployee_Result come from
 
> EF [...] DataGrid
run awayyyyy
Joking. Kind of.
 
Anyhow this is what you do
 
it's what EF created when doing a database-first creation of the models
it's for a stored procedure called "FindEmployee"
 
FindEmployee_Result.Select(s => new Employee{ id = s.ID, etc .. etc... etc.. });
the most ineffecient and fast fix I can think of
 
i found the answer to my original question there. but now stuck how to return Employee objects
 
8:09 PM
return it to where
 
@SpencerRuport Take a look at 'git add -p'
 
i'm new to WPF and EF, so bear with me if i say the wrong terms. return it to the constructor of the MainWindow, to be consumed by the DataGrid
 
@SpencerRuport NO wait I think I misinterpreted that question
 
@Alex did you do what the answer said? and convert it to List?
 
I wonder if my bosses understand that the absolute BEST WAY to keep me from working this afternoon was to schedule a four hour meeting this morning. I'm done. Let the weekend start.
 
8:12 PM
suck it up butter cup
get to work
 
haha
 
b-b-b-but, I don't wannnaaaaaaaaa
 
told you steve was the boss
2
 
@misha130 i did. but have a further question... now, when it's bound to the DataGrid and its data is edited by the user, can i persist that to the database even though its type is FindEmployee_Result?
 
lol
 
8:13 PM
@Alex you mean that you want your grid to edit your db?
you'd have to write another proxy method
you could basically drop the stored procedure, write the sql query yourself with linq
and it would be the same effect only you have no employee_results
and only employee
 
@misha130 hmm
never thought of that
would i write the LINQ on the context object?
 
do you have any problems writing with linq?
yes
 
not ON it
 
well, i've just started with linq :)
 
on it's properties
 
8:15 PM
LINQ is love, LINQ is life
 
19
A: Git - show history of a file?

Jeff Ferlandgit log -p will generate the a patch (the diff) for every commit selected. For a single file, use git log --follow -p $file. If you're looking for a particular change, use git bisect to find the change in log(n) views by splitting the number of commits in half until you find where what you're lo...

 
Like dbContext.Employees.Find(id);
 
dang. that was too easy!!!!
 
err yea
 
not to be confused with List
 
8:16 PM
oops
it doesnt return a list, it returns a single item
 
@misha130 FindAll()
maybe?
 
Where
IQueryable<Employee> employees = dbContext.Employees.Where(s => ID == s.ID);
sorry steve I fucked up chat with my remove
 
it's alright
 
a twist... the user enters the search value and chooses a dropdown to select which column to search
 
it wasn't wrong as i think you meant list as in a natural language way, not the type, but i just wanted to make it clear
 
8:18 PM
m e e t i n g t i m e
see you all monday, probably
 
two choices
 
later man
 
wish you could do native linq in javascript. would be the cheese
 
nevermind... i would just pass the column selected to the linq query
 
err no
 
8:19 PM
underscore has functions that do linq type stuff, just not as much and way uglier
 
lodash has more, but yes, the api is not as nice
 
underscore is painful. i used it with Backbone. almost lost my backbone in the process
 
oh i've never heard of lodash
 
@CharlieBrown you mean like jslinq?
 
jslinq is not native
 
8:21 PM
thanks, @misha130. your reply put me on the right track. i don't even need a stored proc for this
 
[{ name: 'John' }, { name: 'mike' }].select((x) => x.name);
 
well good luck
 
why reinvent the wheel
 
because the guy before me made it a square
thats how i feel sometimes
this code works, but it's realllly shitty
i cut a 50 line method down to 4 lines the other day, felt good
 
its not reinvent the wheel, native would give you better performance, optimized
 
8:22 PM
a follow-up... once the user has edited the data in that IQuerable employees list (is it a list?), how do you persist the data back to the database?
 
read up about IQueryable IEnumerable and IList
 
@CharlieBrown you should submit a proposal to ecmascript then
 
Iqueryable is not a list, it's kind of like a dynamic sql statement, when you put filters on it, it doesn't execute until you enumerate it, so you can stack a bunch of filters on it at different layers, and it'll just make 1 sql statement, but as soon as you enumerate it or tolist it or whatever
 
That line is bogus anyway. The wheel has been around for what? 4000 years? People use that phrase about software libraries less than 5 years old.
 
then it's past the point of sql, and you're operating on it in memory
 
8:24 PM
and if you want to update you could read up here @Alex msdn.microsoft.com/en-us/data/jj592676.aspx
 
ok. i'm also listening to the EF 6 Plural Sight video "Getting Started with Entity Framework 6"
 
@NickSuperb generators are the first step, its close now
 
!!wiki wheel
 
A wheel is a circular component that is intended to rotate on an axle bearing. The wheel is one of the main components of the wheel and axle which is one of the six simple machines. Wheels, in conjunction with axles, allow heavy objects to be moved easily facilitating movement or transportation while supporting a load, or performing labor in machines. Wheels are also used for other purposes, such as a ship's wheel, steering wheel, potter's wheel and flywheel. Common examples are found in transport applications. A wheel greatly reduces friction by facilitating motion by rolling together with the...
 
thanks again, @misha130. i'm headed to the link now :)
happy Friday, all :D
 
8:25 PM
@SpencerRuport Under alternatives it says : Hovercraft
 
um thanks, but credit other people too ;_;
 
sorry, thanks, everyone on chat :D
 
!!wiki hovercraft
 
A hovercraft, also known as an air-cushion vehicle or ACV, is a craft capable of travelling over land, water, mud or ice and other surfaces. Hovercraft are hybrid vessels operated by a pilot as an aircraft rather than a captain as a marine vessel. Hovercraft use blowers to produce a large volume of air below the hull that is slightly above atmospheric pressure. The pressure difference between the higher pressure air below the hull and lower pressure ambient air above it produces lift, which causes the hull to float above the running surface. For stability reasons, the air is typically blown through...
 
So I guess technically you're a pilot instead of a captain because you're travelling "over" the water rather than "in" the water
 
8:27 PM
How about this one
!!wiki Screw-propelled vehicle
 
A screw-propelled vehicle is a land or amphibious vehicle designed to cope with difficult snow and ice or mud and swamp. Such vehicles are distinguished by being moved by the rotation of one or more auger-like cylinders fitted with a helical flange that engages with the medium through or over which the vehicle is moving. Modern vehicles called Amphirols and other similar vehicles have specialised uses. The weight of the vehicle is typically borne by one or more pairs of large flanged cylinders; sometimes a single flanged cylinder is used with additional stabilising skis. These cylinders each have...
 
lol
 
Iqueryable<DomainModel> filtered = context.DomainModels.Where( x=> x.Id == 1) //   doesn't execute
filtered = filtered.Where(x => x.State == "MI") // still doesn't execute

List<Domain> filteredList = filtered.ToList(); // executes the sql

var reallyFilteredList = filteredList.Where(x => x.Total > 100.00); // executes in memory because you already enumerated the iqueryable, so no sql here
 
soo... driver?
 
@SteveG didn't know that it's not going to execute until you do .ToList()
 
8:29 PM
or, if you foreach over it
 
@NickSuperb I guess I only wonder how it steers ;o
 
it's called deferred execution
you can google it for more info
 
@R593B opposing thrust
or ... screwing
or something
 
@NickSuperb Ah yeah just like with a tank I guess.
 
8:30 PM
Is that... a hovercraft?
 
@SpencerRuport damn that's big
 
@SpencerRuport Those are called the Zubr class if I recall rightly
and yeah they're enormous
 
user47589
is it a transformer?
 
@TomW - Correct. I was just reading through the article. That thing looks scary as hell.
 
@Amy decepticon for sure
 
8:31 PM
@SpencerRuport Do they mention the speed?
 
!!wiki Zubr-class
 
Zubr can refer to: Żubr or Zubr, the name in several Slavonic languages for the wisent or European bison (Bison bonasus) Zubr (political organization) - a civic youth organization in Belarus Zubr - a novel by Daniil Granin Zubr class LCAC - a Russian hovercraft Żubr (beer) - a Polish brand of beer Zubr (beer) - a Czech brand of beer Zubr - a village near Daugavpils in modern Latvia LWS-6 Żubr - a Polish aircraft AMZ Żubr - a Polish armored car...
 
The next-largest I think are the Mountbatten class, British civilian passenger craft. Obsolete now and rotting away in a yard on the south coast :(
 
The Zubr-class (Project 1232.2, NATO reporting name "Pomornik") is a class of air-cushioned landing craft (LCAC). This class of military hovercraft is, as of 2012, the world’s largest, with a standard full load displacement of 555 tons. The hovercraft is designed to sealift amphibious assault units (such as marines and tanks) from equipped/non-equipped vessels to non-equipped shores, as well as transport and plant naval mines. There are currently seven Zubr-class hovercraft in active service worldwide with several pending delivery. There are two vessels in service with the Russian Navy, one in...
 
63 knots and 55 if sustained.
 
8:33 PM
If you think those are scary
!!wiki ekranoplan
 
A ground effect vehicle (GEV) is one that attains level flight near the surface of the Earth, making use of the aerodynamic interaction between the wings and the surface known as ground effect. Best known are the Soviet ekranoplans, but names like wing-in-ground-effect (WIG), flarecraft, sea skimmer, or wing-in-surface-effect ship (WISE) are also used. In recent years a large number of different GEV types have been developed for both civilian and military use. However, these craft have yet to enter widespread use. The German Tandem Airfoil Flairboats or Skimmerfoils constructed by Gunther Jörg...
 
knot = ~1.1 mph
 
@SpencerRuport Was just googling that but for Km/h :P Its 116ish km/h
 
The tubes on its back are cruise missiles
 
8:34 PM
@NickSuperb huh thats odd check the right sidebar with the General characteristics
It states different speeds there.
Failed with left and right ....
 
your right.. must be top speeds
 
I guess so maybe the 30-40 is with full personal etc?
 
for those curious, more on deferred execution here... msdn.microsoft.com/library/bb738633(v=vs.100).aspx
 
redline=55
gonnablow=63
wowthatsfast=30-40
 
when you write js, do you all use "use strict"?
 
user47589
8:42 PM
sometimes
 
^
sometimes i do a lot of things
 
jshint reports it as an error if you don't, so somebody put it on every method
 
user47589
typically on a function-by-function basis
 
in our project, i'm not a fan
 
@SteveG Then what are you? a desk?
 
user47589
8:44 PM
I propose we science @SteveG to see what he is.
 
lol
 
So far i've heard hes the boss.
 
let me get a bottle of booze, probe away
 
readies panino
 
lmao
i always take things too far
 
8:45 PM
@Amy By the way the The Expanse is great so far am at episode 7 now :)
 
user47589
cool
 
@R593B holden seems too young for me, i pictured him older
 
@CharlieBrown To young for the show or?
 
younger than the book implied his character to be
wow, really set myself up on that one, suprised no one took a shot
 
I should write an x86 assembly-to-JS transpiler for maintainability.
 
8:54 PM
Ah I didn't read the book I was looking for a new SciFi series and Amy recommended this one :)
 
a question... does Entity Framework automatically make entities plural? for example, in this line: dbContext.Employees.Where(...), there's no Employee on the dbContext with IntelliSense, only Employees -- plural. does EF do this for us?
 
interesting
 
collections are many things, so plural only makes sense
crazy people and singulars on table names
 
having programmed with SQL Server during the days of Classic ASP, this is light years ahead :)
 
8:56 PM
I was mightily amused when using EF database-first, when I ended up with entities called FooStatu
From a table called FooStatus
 
ahhh
that's why my EmployeeStatus table got that funny name!
 
im always amazed at the variations of crazy naming schemes db developers come up with
 
i've been doing the db stuff for 15 years and i've seen it all
and don't get me started on MS Access, being used for enterprise applications and web sites
it's a good db, don't get me wrong. but after a certain size, it's going to have issues
 
I have a knowledgeable and competent colleague who did this, in 2014
'Enterprise'. Getting anything onto a SQL Server instance involved so much bureaucracy that it just wasn't worth it
 
i won't judge people. just have had to convert too many Access db's to something with more power.
i know about the red tape. that'll take forever, and at some point, you just want the thing to work.
 
9:00 PM
Can you script db creation in a sane way with Access?
 
user47589
i've worked at a company that used "Enterprise" as the root namespace for everything they developed. we believed it was because they were intent on selling the company
 
nice
 
They say postgresql is nice.
I have never used it.
 
user47589
postgresql is great, much better than mysql
 
yep. that's what i've heard too. not crazy about MySQL. at least the versions from 5 years ago
i'm comfortable with SQL Server. it plays (mostly) nice with other MS tech
 
9:02 PM
sql server has some better tools/utilities, but mysql is pretty similar
 
Why
 
user47589
imo sql server has the best tools
 
used the DTS tools back in the day :)
then SSIS
 
Can we all agree oracle is terrible
 
the license on sql server is what sucks, but the free version is pretty decent now and you can get some azure sql storage for free or cheap
 
9:03 PM
Saw ssis
 
second
 
@SteveG mostly
 
@SteveG - #agree
 
agree for the most part. i like packages
 
Ewww*
 
9:03 PM
is there such a thing for SQL Server as a package?
 
We're finding that local development oracle services just won't start
The Windows service is meant to bootstrap the oracle process or something. The service shows as started...database is unresponsive
 
oracle, oh god oracle. i could b*($% all day about oracle
 
Any scripts run against the oracle instance just hang
 
id did an ASP.NET 1.1 app on Oracle about 10 years ago. quite painful
 
@Alex I've been working on the assumption that package == stored procedure
I don't think that's quite right, but close enough
 
9:05 PM
the only thing that keeps oracle happy is wrapping it up in a docker container so you can destroy and redeploy everytime it wets its pants
 
@TomW, on oracle, you can package your stored proc's, UDF's, cursors, give them to the DBA to create on prod
but i can live without packages
 
@Alex oh I see. There's an 'auto generate creation scripts' feature in SSMS
That sounds like basically the same thing
 
you're right. with the scripting, you can package it all up very nicely
 
Can't remember exactly what it calls it
 
hello ,who can we stream mp3 on wpf in the same time we listen and we download, and next time the user don't need to load the same mp3 file from the servier
 
9:07 PM
you've got functions and you've got stored procs. packages are really not much more than that
 
oh and there's something called a DAC, which stands for 'Data-Tier Application'
Good job with that English, Microsoft.
 
using c# code
 
lol @ meta melt down
I'm going nuclear freak bitches. — cade galt 0 1 min ago
#friday
 
This should be a warhammer chaos reference
but alas
 
9:08 PM
@NickSuperb yep. that's pretty much all a package is. just a fancy keyword to wrap a script to create the programming objects on the db
 
#waitingforthebosstologout
 
@Alex Visual Studio database projects are quite nice
 
@Alex if you haven't coded since ASP 1.1 why are you back at it with the C#?
 
They bundle everything into a nice zip with a 'double click to install' type shell script
 
but hey you can execute java code in Oracle though... that's kinda cool
 
9:09 PM
@misha130 nope. been coding since then too :)
 
oh
 
and Oracle has queues also
 
just not familiar with EF and MVVM Light, WPF, ...
 
oh well
 
been doing a lot of frontend and SharePoint dev
 
9:10 PM
I already wanted to suggest to run away from ms as far as possible
 
learning some exciting stuff now :)
 
to hide under some rock or something
and make that rock compile python
 
:D
a friend used Python. with a few lines he could get something done that would take so much effort in Java/C#, etc.
 
We had a python dev in here who'd never seen the notion of assemblies and namespaces before. He was smart, just had never used anything but python as far as I could tell
That requires a few steps back from my usual altitude
 
programming is programming. just need some good resources to read up and be up and running
believe it or not, at one place i worked, they had Cobol.
 
9:13 PM
well I just feel that technology is leading the projects not the other way around
 
you're telling me.
 
Cobol was once introduced as the programming language that even the mailman could master without prior experience
 
people pick their tech and then try to jam it into whatever problem
 
haven't got a clue what were they thinking
 
My client still has Cobol code
I was making bug fixes to Fortran code in 2009
 
9:14 PM
Cobol hurt my eyes and my brain. there was once a Cobol.NET
not sure if it's still there
 
@misha130 given how hard it is to get hold of competent developers I'd say that's not an irrational decision
 
but they assumed wrong
 
How do I reply on mobile
 
user47589
shout
 
^ that
:)
 
9:18 PM
I shouted at it, it didn't do anything
Lmao
 
Let it all out
 
@SteveG tap the message to highlight and it's the top left icon
 
@SteveG - Did you try turning it off and then back on again?
 
user47589
^
 
Lol
Yale funny
 
9:22 PM
...
 
Ya'll
 
Steve stop trying to English. You can't English.
 
Lol
@TravisJ test
 
@SteveG - That command didn't make much sense. Did you mean test? Please see the off button for more help.
 
got a question... for MVVM, should the auto-generated models from EF implement INotifyPropertyChanged?
 
9:24 PM
Shut the screen went black where are you at
Shit
 
i'm getting a stack overflow error when trying to get a Where clause to run
 
@Alex I'm gonna say no. The INPC is on the ViewModel, I think the EF classes are usually interpreted to be the second M, Model
wait no crap
Ms the other way round
 
INotifyPropertyChanged should not be present on an EF entity model
 
oh, so that's why it's throwing the stack overflow, i think
 
If you want to add event driven data awareness to your EF implementation, then do it from the SaveChanges method.
 
9:27 PM
@TomW wondering if you have any input on this. I eventually determined that Application_Error would be called properly if the API was invoked server side. If the API was invoked from the client Application_Error would not be called.
 
You can iterate through the attached entities and then refresh cached values at that point.
 
@mikeTheLiar makes sense. If it was for client errors it'd be called Client_Error wouldn't it? :P
 
#nontrivial
 
wait no what
 
is it possible to run the EDMX tool again to clean out all those modifications i made to the models?
 
9:29 PM
@mikeTheLiar why would anything invoke the API from the server side?
The point of APIs is to be invoked from the client
 
@TomW this was just for testing purposes
I was trying to figure out wtf was going on. I tried a lot of things.
 
That makes no sense
 
@Alex - I am not sure how the tool works in its current version to be honest. I manually compose both my ef classes and the database tables.
 
@TomW the fact that it works one way but not the other?
 
@TravisJ that's the smart way to do it. i found a way to force a refresh of all the models... just rename the folder containing the EDMX :)
 
9:31 PM
:)
 
data became Data
 
@mikeTheLiar yeah
 
Hmm does mkd3 still work to kick people off their router my neighbours music is annoying me.
 
exception is gone. that was it! use INotifyPropertyChanged only on ViewModel
 
user47589
Brent Spiner became Data too
 
9:34 PM
lol
loved him in that role
and his evil brother
 
Shouldn't his name be Datum? There was only one of him after all.
 
It does still work :) Finally silence.
 
now gotta figure why the 16 records aren't binding to the DataGrid
 
@Amy have you heard his impression of Patrick Stewart?
It's...fairly good.
 
@Alex - \o/
 
9:39 PM
\[T]/
 
Don't ask me about DataGrid, I has no ideas
 
user47589
@Alex try some glue
 
i'd love to bind it to anything at this point. just to show the records
Gorilla Glue... a friend had that to glue his shoe back together
:)
 
Is this still the way to go about coloring a groupBox border or is there another way by now? stackoverflow.com/questions/76455/…
(Winforms)
 
@Alex Have you tried Python? They're good at binding from what I've heard.
 
9:41 PM
i've seen the code, but never programmed in it. now, speaking of binding, those pythons will bind to your body and crush you to death :)
 
!!joke
 
i know
just giving you a hard time
 
@Alex - Did the shoe thing work?
 
it actually did. i was surprised. the guy lives on a fixed income. disability
 
9:43 PM
I have a pair of shoes - side note: forget all this coding business - that I love, but the front sole came off and I kept them in a box. I would love to glue them back together it is a good idea I suppose. How long did they last?
 
my brains are fried now. deep fried. info overload for this week
@TravisJ well, he glued the bottom of the tennis shoe in front and it seemed to hold pretty well. that was some months ago
 
hrm
 
@TravisJ Shoe Goo is an actual product designed to fix that
 
for some expensive shoes, that might give them some extra life. i wear things till they fall off
 
9:45 PM
@mikeTheLiar - I have used shoe goo, it is alright but never lasts that long from my experience. Was kind of hoping gorilla glue would be more efficient
 
Really? I've got a pair of sandals that I've been wearing for like 12 years now that I've repaired maybe twice with shoe goo
 
Wow, that is a long time. Do you have knee problems? Wearing sandals long term is hard on the joints.
 
well, Gorilla Glue seems to have some good reviews on Google. and a bottle's about $5
 
@TravisJ actually I do have knee problems but they stem from a jacked up ankle years back. I don't wear sandals that much since I moved to Boston, but they have held up impressively
 
Is there snow outside in Boston?
 
9:51 PM
Nah, it's been crazy warm lately. Wednesday it got up to 77
 
wow
 
Today's not so warm but still much warmer than usual
 
I read something pretty awesome discovered in Japan, bacteria that eats plastic commonly used in bags and bottles.
 
I'm trying to have a StreamReader() .ReadToEnd() an HTML file and I get: ERROR Illegal characters in path Is there simple way to read in an HTML file?
 
have a nice weekend, everyone :)
 
9:53 PM
o/
@TravisJ supposedly there's bacteria in Chernobyl that's eating the radioactive material
 
what the hell
a jewish only university
in bronx
what am i reading
 
@mikeTheLiar Wouldn't surprise me, nature seems to always adapt whereas we struggle.
 
hrm.
can you use fiddler to monitor server traffic instead of browser traffic?
e.g. an iis express hosted MVC app?
 
@MikeEdenfield - Yes as long as they are on the same network
@MikeEdenfield - Although wireshark may be more applicable for that
 
what about the actual elephant foot i wonder
 

« first day (1973 days earlier)      last day (2969 days later) »