« first day (1860 days earlier)      last day (3087 days later) » 

8:01 PM
ugh I'm totally in that "i wanna learn something new, but don't know what to learn" mode
 
want to learn about WPF :)
 
that's for windows forms stuff?
all I do is web stuff..
 
well then that is a good reason to learn it
;-)
 
haha
 
out side the box
 
8:02 PM
touche
right I just know I wont use it at work
 
persuasive?
 
but, doesn't mean I shouldn't learn it, right
 
ahh you do angular?
 
nah
gone from webforms apps to mvc apps
don't do angular tho
 
ahh
 
8:03 PM
@Bubbas are you saying 'don't do angular' or 'you don't do angular?'
 
I'm saying I dont
 
you.. don't
 
not advising on it at all
one way or the other
 
alrighty... so are you still going to be using server-side controls, in mvc?
 
ive been doing razor in views
raw html and javascript
not using webforms "controls" anymore in that sense. is that what you mean?
 
8:07 PM
yes, certainly an aspect of it..
are you familiar with IHttpHandler (GenericHandler pages - ashx) usage?
 
don't think so
!!google IHttpHandler
 
she is dead atm
 
lol isee
 
Question, why can't I return an object based on a username and date.
 
@Greg Return an object from...?
 
8:19 PM
IList<T> List<T>(params Expression<Func<T, object>>[] includes) where T : class, IEntity;
I get the following:
An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code

Additional information: The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.
I did:
 context.List<ProofOfDelivery>(pod => pod.Username.Contains(branch) && DateTime.Compare(pod.Date, date) == 0);
 
@juanvan: no, it's built in
 
@Greg Will regular LINQ not work for this?
 
That is for Entity Framework.
 
what is
 
The call to database.
 
8:25 PM
huh..?
 
context.List<TEntity>(Delegate) is not linq of from EntityFrameword afaik
it looks like a repository pattern on top of EF
 
It is
So, why do I receive that error. I have Unity and some other stuff.
Why do I get that error?
 
man i thought repo patterns were old
 
context.List is EF function?
 
@Greg .. consider your method signature here.. your expression is a where clause.. that is not the usage of include
 
8:31 PM
Can you explain @BrettCaswell or provide an example?
 
are you using a repo pattern just to add your .List<T>(param)
 
That is what I did:
public IList<ProofOfDelivery> GetProofOfDelivery(string branch)
{
    using (var context = factory.Create())
        return context.List<ProofOfDelivery>(pod => pod.Username.Contains(branch) && DateTime.Compare(pod.Date, date) == 0);;
}
 
@Greg, consider this PersonContext.Where(WhereExpressionFn).Include(IncludeExpressionFn).Select(Sele‌​ctExpressionFn);
 
is ProofOfDeliverty an EF entity?
 
Yes.
 
8:34 PM
context.Where(pod => pod.Username.Contains(branch) && DateTime.Compare(pod.Date, date) == 0).ToList<ProofOfDelivery>();
 
Hi everybody.
 
why not: context.ProofOfDevliery.Where(expression)
 
Hi Dr. Nick
 
Well, I originally did the where. But with the date it returned zero results. Which was weird.
 
@JackyNguyen a repository pattern uses generic methods Query<TEntity>() because it is not supposed to be coupled to the domain/entity types
 
8:36 PM
@Greg Did you look at the intellitrace
 
@BrettCaswell: huh?
 
to actually see the sql statement
 
I have a problem with creation setup file by using installshield. Can anyone help me?
 
sup my peeps
 
Hi @NicolásCarlo
 
8:37 PM
@ElvinMammadov Just ask your question
 
@Greg: in debug, see what SQL statement it generates, copy and paste it to SQL management tool to run
 
@ElvinMammadov are you making a new app?
 
@JackyNguyen You might need sql profiler
depending on how is intellitrace picks it up
 
ok, My promlem in Adding SqLite database file to setup file by using installshield
 
How do I do that? That would be helpful.
 
8:38 PM
@JackyNguyen, IQueryable<TEntity> IGenericRepository.Query<TEntity>() { return DbContext.DbSet<TEntity>(); }
 
@Greg Do you use intellitrace
 
@ElvinMammadov Ahh ok
 
when you debug, it will be a tab next to solution explorer
 
@BrettCaswell: i didn't ask about repository pattern, lol
@BrettCaswell: wrong ping lol
 
It generated:
SELECT
    [Extent1].[Id] AS [Id],
    [Extent1].[Username] AS [Username],
    [Extent1].[PrintedName] AS [PrintedName],
    [Extent1].[InvoiceNumber] AS [InvoiceNumber],
    [Extent1].[Signature] AS [Signature],
    [Extent1].[Location] AS [Location],
    [Extent1].[Photo] AS [Photo],
    [Extent1].[Comment] AS [Comment],
    [Extent1].[Date] AS [Date]
    FROM [dbo].[ProofOfDelivery] AS [Extent1]
    WHERE ([Extent1].[Username] LIKE @p__linq__0 ESCAPE N'~') AND (([Extent1].[Date] = @p__linq__1) OR (([Extent1].[Date] IS NULL) AND (@p__linq__1 IS NULL)))
 
8:40 PM
use sql profiler
it should come with sql server if you have that installed
 
@RyanTernier delayed reaction here but...you trained cops to..what, find weed? Because you were/are an expert in...hiding weed?
 
it will show you the full query
 
@JackyNguyen "why not: context.ProofOfDevliery" .. ??
 
@TomW He's canadian, that's obviously true
 
@TomW Incident, homicide, collision investigation. How to mark up the scene, record it, manage physical information, determine bullet trajectory, vehicle speeds based on skid patterns, etc.
 
8:40 PM
@BrettCaswell: he said ProofOfDelivery is an EF entity
 
He did
 
@BrettCaswell: so he can surely use: context.ProofOfDevliery
 
indeed..
 
@RyanTernier hm, interesting change of careers. I used to work at the private contractor who did RTA investigation for the south of england
we had an orange LWB Volvo in the car park
 
@RyanTernier What made you change careers if you don't mind me asking?
 
8:43 PM
my colleague who used to be the #2 in that car gave that up, worked on crash rigs instead, then quit that and became an IT recruiter. He now places fintech python devs in NYC. And he's like 25
 
@Failsafe I was a developer at that company, but they realized that I relate to cops more than any of their current trainers. So, because I built the software used, they got me certified to train cops how to do it in the field, and then transfer it to the 3d diagraming software.
 
@RyanTernier Was it the mustache?
 
@Failsafe lmao
 
We were the first to use 3D scanning for accident reconstruction. The police weren't interested until we showed them it worked
 
@Failsafe it's movember - does everyone look like an undercover cop to you? ;)
 
8:45 PM
@Jeremy Dude I have a full beard
I look like a pothead
 
@JackyNguyen why do you keep removing your messages?
 
especially on casual friday
 
@Failsafe hipster
 
I apparently look like a smoker
 
i look like a pothead every day
 
8:45 PM
@NicolásCarlo: because my question has been answered
 
people always ask me, out of any group of people, for cigarettes
 
+ives/-ives of working from home, no one gives a crap what you look like so you end up perpetually looking like crap
 
@Jeremy you should just carry a couple loosies that look super gross with you
 
@NicolásCarlo I would like to work naked
 
@Failsafe work from home ;)
 
8:46 PM
but unfortunately thats "public indecency"
 
@NicolásCarlo: i wish i could work from home
 
i can work in whichever condition i want... :D
 
@NicolásCarlo wouldn't that be great
 
@JackyNguyen its not all its hyped up to be
for example, i think working in an office has the advantage that you can bounce ideas off of your colleagues...working from home means you have to talk to weird strangers on C# chat
 
so I am weird then :P
 
8:48 PM
lol
i'm kidding, but you get the idea what i mean
 
lol yeah
 
I'm not in chat rooms when I'm working from home.. but I certainly do reference lookups that bring me to SO Q&A whenever my flow is interrupted
 
@BrettCaswell same. whenever i have a lot of work i don't do chat rooms at all, but my second computer is usually around just to be able to google/SO questions i have
 
Im literally only here during work
SO chat 8-4 est
 
@RyanTernier oh, this will make you facepalm. One of the other jobs my old employer had was archiving and digitising police accident reports, including fatal ones. Certain ones were transcribed in comic sans. There were repeat offenders. Certain forces obviously know better. Others...need some sensitivity training.
 
8:50 PM
all the reason weirdness aside, C# chat room is a pretty good place and the most helpful i've found so far
 
besides the past 2 days yea
 
"This class is recommended to be defined as static"...why
 
@NicolásCarlo it's cause we're generally nice people
@NicolásCarlo didn't I answer that yesterday?
 
generally @Codeman :D
 
lol the android room, people just show off their app...
 
8:51 PM
see what i mean?
:P
 
meh, even I'm an asshole sometimes
 
@Codeman thats my secret, im always an asshole
 
@JackyNguyen the closed one? or the Java Android one?
 
yeah i think you did, i wasn't the one asking so maybe i missed it, did you say its meaningless? basically to let others know that its static? @Codeman
 
8:51 PM
@BrettCaswell: the closed one
 
@NicolásCarlo it prevents people using the class from instantiating it
 
@Codeman oh okay, cool so works for my purpose, thanks
 
it makes no difference when using static methods, but if it's truly a static class that has no state, not defining it as static is a misnomer
 
@BrettCaswell: just read their room, it does say: show off their magic. LOL
no wonder why
 
8:56 PM
@JackyNguyen @BrettCaswell @Failsafe It was the time it added, because I wanted an exact match it never returned a result.
 
@JackyNguyen I've actually been reviewing Android development recently.. a fair about of abstraction and imperative usage going on there.. the AdapterView being an additional consideration over standard web app development..
 
"the AdapterView being an additional consideration over standard web app development" i am confused with this line
 
@TomW Yea... face palm... I worked with the Mississippi AGO and the FBI on a domestic violence system. They asked me to debug the production site once... all i needed to say was I wish someone had a license to kill. :(
 
@RyanTernier are you allowed to talk about that?
 
I mean, mvc can implement something similiar (likely already has), but their notion seems like an event driven ViewContext
 
9:00 PM
@ShotgunNinja That was over 5 years ago. I have no more ties to that project :)
 
gf: you know my friends just told me?
me: huh?
gf: they get some bad ot and she decided to stay night at office, and on 2 am, the printer all of sudden started to print something...
me: there got to be some scheduled task or something doing the printing then
gf: fuck you, let me finish!
i hated my background
 
@tweray always go with "NO WAY!"
 
did they conclude it as being Ghosts in the Machines @tweray ?
 
@tweray Never interrupt a girls story, or they'll never want to tell you stories again... wait.. i mean do interrupt them
 
and will start over again..
 
9:06 PM
@tweray: sounds like a good plot for a horror movie :P
 
it's certainly not applicable to any particular gender, or relationship... I'm sure we've all had a manager or two that was blissfully ignorant of computer systems and their processes... and treat every irregularity as malicious or omnipotent..
 
dude, small words
 
does anyone in here know a thing or two about gitIgnore files?
 
I've only had one cup of coffee today
@BobSinclar I know hgignores better
 
@BobSinclar: what about them that you wanna know?
 
9:08 PM
skips those file on push?
 
# Build results
[Bb]in/

!bin/bob.dll
ok so i have a dll
that i cant get from nuget
due to a non perfect internal dev environment
right now my git ignore has this which i think is the bin folder
# Build results
[Bb]in/
to add to that and say ignore the bin folder except this one file in it
would i just put !bin/bob.dll
if bob.dll is my dll that i cant get from nuget
below it
 
!bin/bob.dll not work for you?
hmmm
 
* it should jacky
i havent tried it yet
i was wondering if thats the right approach
 
it seems fine to me
 
![Bb]in/bob.dll

that would be better right so if bin is capitolized i still grab it right
 
9:15 PM
in git config
you can tell it to ignore case sensitive
i belive
 
oh cool
also jack
 
what i am saying is what i have to do right
if i right click
ad reference and point to a dll in the bin. I need to check that bin into the source control right if it was NOT created from a nuget package right?
 
yeah
 
* was not
thanks
 
9:18 PM
but i would create a folder
called dlls
and put all the dlls that can't be obtained by nugets
 
and put it there?
 
call it like: required_dlls
 
at the same level of controllers
models
fonts
 
same levels of your project
or wherever you use it
 
and you know when i tell the reference to look at this DLL
where is that saved
 
9:19 PM
because put required external dlls into bin folder sounds strange
 
thats not in my packages.config right
 
right click on References -> add references -> browse
 
i know that
but i mean for source control
where is that saved
in a references file or something?
oh i see it in the .csproj
* actually i dont see I added it to a required_dlls folder and i see my .csproj file changed but i dont see how it changed
 
when you create a folder called required_dlls and put the dlls into then commit to source tree
it should create the folder for you
 
That i understood
 
9:22 PM
wait, i am confused
lol
 
yeah i am not being articulate (most people question english being my first language and its my only language)
so lets say i make that folder
required_dlls. and i add 4 dlls to it. I then click add reference and tell it about those dlls
where does visual studio right down that i clicked the 4 references and the path to them
ie if i add new nuget packages i see my packages.config file changes
what file should change when i add references
 
look at the References in the project
it should display in there
 
*your the man
thanks so much Jacky
 
is that what you asking?
lol
if you get your dll from outside without using nuget, the packages.config won't update for you
are you new to visual studio?
 
yes sorry
it makes sence
yeah i came from rails
 
9:30 PM
Client: Tell me about your software development policies and methodologies
me: <1 sentence explanation>
client: can you expand on that? We have a 2 hour meeting, let's fill it up, but please don't use any jargon, I don't know anything about software development
me: <cries>
 
what i was asking in short is you can add a dll through the gui , add reference etc. where does microsoft scafold that change into a file?
where if i add a nuget package through the gui after i do it i see microsofts visual studio updated my packages.config file
 
@RyanTernier "Time is money, and I like to piss it all away"
Sounds like they're asking to be over-billed.
;)
 
I pretty much regurgitated what he could find online: cgi.com/en/it-outsourcing-services/…
 
@BobSinclar: i wish i can tell lol
 
Quick poll, who hasn't read this: csharpchat.com ?
 
9:34 PM
Content Blocked!
thanks to the corporate networking rules
 
really?
ahahahahah
 
yes
most likely because the name chat is in it
 
my network admin block access to angular2.0
 
what would be funny is if chatroullete wasnt blocked
 
9:35 PM
i can't have access to pastebin either
hahha
 
our networking team messed up once and blocked our own website
our corporate website of 40k+ employees
 
Where do you work Bob?
 
@RyanTernier: anyway, you got 2 hours for a meeting just to talk about policies and methodologies?
 
@JackyNguyen in a meeting yes. now i'm writing a document about it. I'm just taking what we sent for another government contract and changing the client name.
 
www.bd.com
 
9:37 PM
@BobSinclar is that safe for work
just... bd... back d....
 
``code block``
 
yes that is
using Bob.library.one23;
oh wow neat
 
Nice company. good stock price. HOpefully you have a stock plan with them
 
it isnt bad
the care fusion thing seems to be working well
i dont follow our financials that closely because software isnt really that monetized yet
alot of manufacturing of sharp pointy things (needles) and big million dollar machines that run tests
i check the stock price 2 times a year
 
9:41 PM
I have worked for government for 3 years, so excited to move to private firm next year
 
software as business support vs. software as main product
 
im also a fan of selling at least half or 90% of your stock the second it vests and diversifying
 
@JackyNguyen Where you moving to?
 
@RyanTernier: singapore
 
@BobSinclar I started at CIG ~5 years ago. Stock price was 14$. I did what you did. I'm kicking myself now because it's now ~55$
 
9:42 PM
my previous company was odd, your default 401k matching would be in company stock unless you changed it
some really talented 40-50 year old software engineers had 50-100% of their stock in boeing stock
I was like thats terrible
and their reply was why its doing great?
my thought is if the company does terrible you not only could be laid off, but you will loose a good portion of your wealth too
 
Out of my portfolio, only CGI is doing well :( I sold every other stock last month that was positive
the ones in the red i'll keep as one day they'll return.
 
not a huge fan of that
I like to sell looses to help you around tax time
and let winners grow forever
 
I just pick whatever mutual funds are in vanguard that don't contain "Apple" in their list of primary holdings
 
to allow compounding interest
to help on long term capital gains tax
and only paying that tax once
 
how 2 in vest ? i only buy all GOOG stock 10 years ago and keep buy
 
9:46 PM
buy russian ETFs and pray
 
@Jeremy buy the bitcoins for big good
 
and diversify with lottery tickets
 
@TravisJ What is the proper way to store an object throughout an entire MVC application?
 
@Greg for a single request? for a lifetime of the server? or the lifetime of forever?
 
interested to know the answer also
 
9:48 PM
Once they login, I build their data and stores it forever.
Changes, if the data changes. Which I would check during login.
 
Database
 
yeah put it in the model and use entity framework to get in the DB
 
you could also use azure blog store
but a db is the way to go
 
never use azure
 
9:49 PM
I'm grabbing it from the database, I need it to dictate data on the application.
 
i nee to learn azure
 
a DB or an ORM atop a DB
 
or depending on your tolerance for pain and enterpriseyness, create stored procedures and data access classes
 
i do a ton with azure
i dont mind azure
 
I like azure usually
 
9:50 PM
microsoft put a ton of hours into it and the documentation kicks Amazons ass
especially the videos
* havent used AWS in 3 years
 
It's neat how easy it is to configure autoscaling of worker role machine count by queue size
 
so that could have changed
 
i got public disclosure policies with current employer => all stuff must be stored in house
no cloud
 
lame
 
9:50 PM
can't even use github
 
a lot of the security risks in azure
are no different than on prem
its just do you trust your networking and hardware team more
or microsofts
I would host a git server on an internal machine
 
@MikeAsdf I inquire because a Session is considered bad form, and a cookie doesn't seem appropriate.
 
* or find new work
 
usually, for the companies that have policies that prevent storing stuff in the cloud, the security sucks more on-prem than in the cloud
@Greg depending on how session is stored, it can be terribad for scaling
 
visual studio online is a really awesome git repo
so useful
 
9:52 PM
The default session storage is in memory, which means per webserver
 
public disclosure means when people request to see your work, you must give everything
and it doesn't make sense to ask github to dislose their server
 
@MikeAsdf That is why I asked.
 
it's not about security thing
 
Not sure the proper way to store something once they login to remember all of that user information.
 
@Greg in a table?
make an entity model?
 
9:53 PM
if a user's browser changes servers, ur hosed
 
which presumably means:
*"Who the hell are you?"*
*Mike Asdf logs in*
*"Ah, Mr Asdf, good to see you again"*
*Mike Asdf clicks 'store'*
*"Who the hell are you?"*
God dammit chat, format properly
 
I've pulled it out of the database, I have it. Now I need to remember it.
 
^ yeah, you'd need some server-level abstraction for session replication
most application servers have settings for transferring sessions between connected server instances
 
Yeah, the dilemma. That is why I wasn't sure.
 
I once worked on a webforms app that had a webfarm of multiple servers and made heavy use of session, so they used SQL session storage configuration
terrible for performance
Especially all the large objects that made their way in
 
9:55 PM
ugh
 
you know whats amazing about azure
 
Also the serialization is different
 
visual studio integration
 
Strangely, it formats correctly in the comments
 
being able to deploy something in seconds
 
9:55 PM
What would be the proper way to store something like that, once you've grabbed it out of the database?
 
So you could have problems that didn't show up on local machines using memory storage
 
where before i would have to build, collect the components and then go through an entire song and dance to publish it or get it into something demo worthy for the entire world
 
401 Who the hell are you?
403 I've told you before, GTFO
404 You want what?
405 You want to put WHAT in WHERE?
7
 
@Greg pull it out of the database again?
IMHO, Typically, each web request will access stuff from the db, even if it was duplicated from an earlier request, and that's just fine
For special cases an in-memory cache might be appropriate, with the knowledge that the objects might be out of date
For example, caches that service a series of requests for custom google map overlay tiles
 
@BobSinclar I'm going to be working in that space soon ;)
 

« first day (1860 days earlier)      last day (3087 days later) »