« first day (2022 days earlier)      last day (2929 days later) » 

6:00 PM
I think I added you on linkedin greg
 
If I wanted to do error handling globally for mvc, if I have a base controller blah : uxcontroller

If I have it shared in the ux, everything inheriting should be able to access protected ovveride void OnException correct.
@Sippy What is your name?
brb meeting
 
6:12 PM
for(;;)
print "why why why would they do it like this.......";
 
for(print("f");;print("u"));
 
where to learn wcf service
?
 
pluralsight has a ton of videos on it
 
no pluralsight
No video actually
 
Excuse me?
 
6:19 PM
Oh, see, I thought you were looking for a solution to a problem you're facing. If you just want a bunch of links to things that may or may not work, I'd recommend Google - it's a hell of a lot faster and less judgmental. – Shog9♦
6
:D
 
that's... amazing
 
inorite
 
so i go to options>Environment>Fonts and COlors and there I am trying to change colors for individual stuff like class names, strings etc in c#, the only option i see for a language is C++ though...what am i missing?
 
Uh, where do you see that option?
 
lemme get a screenshot up on imgur
that stuff: imgur.com/7et3g4Q i'm assuming there is something for C# somewhere as well, changing c++ related stuff has no effect on c#
 
6:28 PM
That stuff doesn't say C# beside it
 
@NicolásCarlo - I don't have c++ as an option
 
If you want to change the colour of a class name, you want User Types - Classes
 
Heh, the colour
:P
 
@KendallFrey just figured that out while screwing around with more colors, thanks
@TravisJ may be because I installed c++ related stuff on vs
 
@NicolásCarlo - No clue. We also have different vs versions. Mine is 2012
 
6:30 PM
@TravisJ Just because you're the only country that spells funny...
 
@KendallFrey - It's true, we totally bastardized the language
 
we spell color as color too...granted its in spanish but thats not really important
 
Kindergarden? American.
 
that's a thing? lol
 
@Sippy I'm now connected.
@MikeAsdf Back.
 
6:32 PM
@Greg woo
 
We kind of hodgepodged a bunch of languages together and then made up our own accents.
 
As the story goes, the American accent was the original British, and the current British accent was adopted because it sounds posh.
 
That sounds like some stinky bullshit to me
 
So um if I'm taking time off next month, do I email CEO and PM or just PM? lol
we have no timesheet or booking or anything
 
@KalaJ - I guess it depends on the size of the company. Usually HR has paperwork for that.
 
6:34 PM
I don't think we have HR
:S
There's 21 of us
 
@Sippy As opposed to the good-smelling bullshit
 
You don't have HR?
 
no
 
In the past 3 days, how many people have told you to work on something?
 
1
my PM
 
6:35 PM
Tell that person
 
ok lol
 
@KalaJ - And if you talk to the CEO, tell him you need to have someone take on the responsibility of HR! jeez :P
 
I'm too afraid to ask if we even have HR haha
I think we have Insperity
and i think that's HR?
I don't know if I can book time off on that
 
Do you have an angry lady that files your I-9's, enters in accounts receivable, and answers the phones?
 
What would be the ideal way to do global error handling in MVC?
 
6:37 PM
Because often that is as close to HR that most small companies get.
@Greg - With a global filter?
 
@TravisJ, normally yes but with this company, no :O
I'm in a weird situation where we provide tech solutions to other startups and we're all housed in an incubator
so there's more of us (Not sure how many exactly) but my company that provides the tech is 21 ppl
 
user47589
angry people belong in HR. its their native habitat
 
and I don't think their HR is our HR
We just use Insperity. insperity takes care of billing
 
@TravisJ Well, my goal is that if an error occurs at all in the project. To simply redirect to a nice error page, that isn't going to return an ugly server error.
 
@KalaJ damn, speak to your incubator warden then
 
6:39 PM
but COO handles it I guess
 
@Amy soulless husks that resemble people belong in HR
It's how we keep them from bleeding into the general population
 
@Greg - Yeah, you can wire global filters from your global.asax.cs, in fact you probably already have some in there
 
We had a meeting yesterday to discuss how to properly do estimates because we just set sprint dates and no estimates lol
 
@Greg - public static void RegisterGlobalFilters(GlobalFilterCollection filters)
 
user47589
MVC and WebApi both have a error handler filter by default.
 
6:41 PM
I actually had to make a custom error handler to fix the response stream for the yellow screen of death
I ported an mvc3 project to mvc4 and for some reason the ysod came out as a bunch of garbled junk
It took a lot of research to solve
@Greg - Inside of that method, you can register a custom handler, this is the structure of the handler:
    public class HandleErrorEncodingAttribute : FilterAttribute, IExceptionFilter
    {
        public virtual void OnException(ExceptionContext filterContext)
        {
        }
     }
The class name was one I used, it doesn't have to be named that
And then in your global method again, just register it like this:
filters.Add(new HandleErrorEncodingAttribute());
 
Would that be any different then simply having:

Home : BaseController

But inside UxController exist the OnException, which would be inherited to all other controller?
 
user47589
its a little different. what if the error doesn't originate from within the controller?
 
As long as every controller inherits from Base, then you can go that route too.
@Amy - Good point
A routing error may actually bypass that.
 
user47589
the error handler attribute will catch all exceptions that bubble up. the controller factory can throw an error, for example
 
Although to be fair, a routing error would also probably bypass the filter as well
 
6:46 PM
So I should create an Attribute to decorate all my routes?
 
user47589
a routing error.....yeah, i guess so
 
I think using a custom controller or a custom attribute would solve a very large percent of the issue
 
user47589
damn, i have a meeting in 15 minutes.
 
So really it isn't that different.
 
And the outliers probably aren't much of problem
 
6:47 PM
Have fun Amy
 
@Greg - Here is my question in retort to that though: Why are you letting exceptions make it all the way to the user?
 
The attribute could be overlooked though, which is why I leaned to the Custom Controller. Cause this custom controller already invokes a large chunk of Temporary Data and other functionality used throughout the application.
@TravisJ Well, I'm not. But every so often our reporting database is down for maintenance. Which causes some errors.
 
Often, when something throws an exception, that means something unexpected happened. In those cases, it is best to create custom failure messages to explain what went wrong to the user.
It makes the application feel very polished at a very small expense.
 
That is my goal.
 
user47589
I'm a fan of using custom exceptions that store data available at the site of the throw
 
6:50 PM
I basically want to catch the error, then load the site with a message to the user.
 
But if you create a global exception handler, it will not be able to create granular responses.
 
user47589
that way i can, you know, figure out what caused the exception
 
Wouldn't it throw more than likely what it throws into our server error logs?
Which is well, not helpful.
 
user47589
Dictionary<T,U> throws a KeyNotFoundException sometimes, but notably, the exception doesn't tell you the sought key
 
Ah, that is incredibly true.
 
6:52 PM
If something doesn't work in areas of either entry, modification, or removal, I try to ensure a custom message is available to say that "X was not modified", or w/e is relevant, just to be clear that something failed and what it was working on.
It doesn't have to say "the execution plan for the query exceeded too many characters so the resulting modification didn't take place as a result of timeout".
Just "hey, fooing the bar went haywire. good luck!"
@Amy - Do you really log exceptions in a database?
 
So i am trying to access my c# code base in linq pad, how can I accesss the libraries for my code? where are they located?
 
@Obviously wherever you put them
 
Are the dlls in obj folder are the one?
 
user47589
the bin folder.
 
user47589
do you know the difference between bin/ and obj/?
 
6:55 PM
@Obviously very probably not
 
@amy
 
Hm, you've given me a lot to think on @TravisJ @Amy
 
Nah I dont
 
@Greg :D
 
I'll have to decide what the ideal route should be.
 
user47589
 
pun intended? :P
 
Oh yeah the one in bin worked
thanks guys
 
user47589
My reflection code keeps choking on a type with name = "TEnum[]&"
 
@Amy thanks for the link, i will read it
 
@TravisJ Saw this article not sure if it is any good.
 
6:58 PM
@Amy - and what?
 
@Amy That name is weird.
 
user47589
and dying!
 
user47589
the & indicates its an out parameter
 
@Greg - Yeah, that is a good article
 
user47589
Strangely, and I didn't know this before today, Type.Fullname can be null.
 
6:59 PM
do elaborate
 
@Greg - See how they have the result = new view inside of the error handler attribute? You can do that, and wire the filter to be global instead of placing it on only some actionresults.
 
user47589
meeting.
 
Happy Friday Children of the Corn.
 
@Nathvi - Are those two things related?
I get to go to SF all weekend after this :D
 
yes
@TravisJ
 
7:01 PM
@TravisJ, I'll be in San Jose for Google I/O
:)
Idk if you work near there
 
@KalaJ - Near San Jose? Nah I work near Santa Barbara.
Which is like 5 hours south
 
Nope, no thank you lol
 
But I will be in SF for a friends wedding this weekend. Staying near Pier 39 :)
 
I will not be renting a car although maybe I should.
Nice
 
I always rent a car when I travel, makes everything so much less stress.
 
7:04 PM
I have a few hours to spend sightseeing in San Jose but no idea where to go besides the Computer Museum
Apparently, the nearest beach is 2 hours away?
 
@KalaJ - Yeah, and it is cold.
 
Why is it always cold, when is it warm in CA?
September?
 
That would be Santa Cruz. Not really worth the drive.
The water in northern california is always cold
 
@TravisJ One thing where it displays the view, does that require a controller or is it expecting a partial?
 
The weather should be mid 70's
@Greg - Hm, yeah looks like it expects a partial view.
 
7:07 PM
70s is nice but not beach weather. It should be in the 90s :)
 
@KalaJ - I would suggest checking out the googleplex
@KalaJ - It is only like 20 minutes by car from San Jose
 
I was going to say I don't know anyone
but actually my old CS TA works there
Maybe I can ask him for a tour
 
@KalaJ - That is a good idea
@KalaJ - SF isn't very far from San Jose either, tons to do there
 
Yeah that's true
maybe I should have scheduled a flight a day earlier
 
@KalaJ - Although it looks like it will take you 2 hours to get to somewhere in SF from San Jose
oh, nvm that is by bus lol
It says 1 hour on google for SJ -> SF by car
That seems manageable
 
7:10 PM
I imagine traffic will be insane because of I/O
on top of normal traffic
 
Doubtful, maybe near the conference center
 
I was thinking maybe the rail?
 
@TravisJ How can you tell that it is a partial?
 
@Greg - Because it doesn't list an action result. If you look lower in that related page you showed earlier it shows how to define the structure of the view. It looks like it is just a blank view with no layout.
@Greg - You may also be able to redirect to action from there as well
 
Ah, got you.
 
7:12 PM
anyone here play electric guitar seriously?
 
no I wish
closest I got was Rocksmith lol
 
Phase Shift
 
I can't play any instruments :( I can do the mic though!
 
sheeeeiiit
 
To be honest, do we look like a group of people who could play the electric guitar?
 
7:14 PM
Cody plays like 2000 instruments
also I play the guitar
 
If I had to guess anyone it would be him
 
so
my Vive is arriving on monday
>.>
i just got an email lol
RIP my bank acc
 
haha, this is my most exciting purchase, I can't wait until I get it in the mail. cheap camera for next month's trip: amazon.com/Nikon-Coolpix-Digital-Optical-3-0-Inch/dp/B00THKEKEQ
 
I bought a car last week :P
 
congrats and nice :)
 
7:19 PM
@TravisJ the Camaro?
 
No way you bought a camaro?
Welcome to my November 2017
 
I waiting until I make six figures to get a car since it's really not important here in the city
 
haha
I can't wait
probably more like march 2018 though
 
@TomW - Yup
 
Are they still kind of basic in cabin equipment etc or is that a thing of the past?
I've heard talk of plasticky dashboards etc
 
7:21 PM
@TomW - The entire interior is either leather or carbon fiber
 
so no then
 
@TomW The trim changed
2016 - like 2022
I am gonna get a 2017 right at the end of the model year
cheap af
the trim won't change so im not worried about it
 
@TomW - Well the carbon fiber is to keep the weight low. It is really nice inside. Heated seats, good climate controls, usb/aux in, cruise control, auto adjust seat positions, a ton of gauges, no rear view camera :(
 
@TravisJ Do you have trouble seeing out the rear window
because I definitely do
 
@Failsafe - They are a lot of fun. Really cheap for what you get to be honest
 
7:23 PM
@TravisJ Yea I know I can't wait
 
@Failsafe - Yeah, a little. It is slanted, tinted, and a little blurry due to the heating lines.
 
yeah I can't get over how cheap they are
 
Im getting nightfall grey metallic, aftermarket red stripe
black alloy wheels
so pumped
 
@Failsafe - This one came with a lot of after market on it though. It has 550 hp, I got it to 130mph in 4th gear (of 6)
 
If I had money to burn I might consider that sort of car, but never otherwise
Totally unsuited to the driving environment here, and would go bankrupt on fuel
 
7:25 PM
@TomW - Yeah my previous car was pretty run down. I made it to 270k miles :D Nothing worked on it lol
 
@TravisJ which trim?
1SS?
 
@Failsafe - 2SS with the RS package
 
god damn man
how much did that cost
$50k?
 
I kind of got lucky I suppose. I looked for like 3 months
It was 35k after taxes and registry and everything
 
ARE YOU FUCKING JOKING
 
7:26 PM
Well my neighbour has a 4 series BMW now apparently. So I need a better one.
 
Only had 7k miles on it
 
shakes fist angrily
 
When I was in the US I did a lil test drive in a 2015 Ford Mustang GT with 5000 miles on it
$35k
wanted to buy the fuckin thing right then and there lol
 
@TravisJ What site did you use to find it
 
@Failsafe - I actually got distracted looking at a lambo on an exotic car dealer, and they had one random camaro listed on their site. It wasn't listed anywhere else. I had been using cars.com
@Sippy - Nice :)
This one has like $25k of parts in it too though. Super charger, intake manifold, intake itself, cat back exhaust, exhaust manifold, headers, sway bar, rockers, short cam
 
7:29 PM
dude wtf
i need that luck
 
Just have to take a lot of time looking in my opinion
 
I need to go get a money transfer credit card so I can buy a new car lol
 
@Sippy - lol
 
In an ideal world I'd have 8 grand lying around but I'm 23
I don't think many 23 year olds have that
 
@Sippy I certainly didn't
 
7:31 PM
I had it last year but then I decided to spend it all moving up north like a pleb
 
I didn't then, nor even last year
 
Rutland's quite nice though
:D
 
@Sippy - Looks very green
 
Tis indeed
 
@Sippy - Are you close to skiing?
 
7:32 PM
whatnow
No, I live in England haha
 
@TravisJ The cheapest 2SS I can find near me is $40k
 
lol, I thought Vermont :P
 
Haha
 
@Failsafe - This car is a 2010 though, it isn't a 2015/16 model
 
one thing I know is that I can't have the same car as my Dad
That would be bad.
 
7:33 PM
@Failsafe - But still, I found the same type of price. For the most part the regular 2SS I was finding was lower 30's
 
@TravisJ ohhhhh
i thought it was a 2016 2ss
 
@Failsafe - Nope, it was a 2010, but since it only had 7000 miles it is practically new from a parts perspective
 
@TravisJ You spun me for a loop
I thought you were some negotiation god
 
@Sippy doo eeet
 
7:37 PM
@Failsafe - Nope, this was not brand new. It is damn near impossibru to negotiate at actual dealers for brand new cars.
 
@TravisJ I would only buy a car that's been sitting on the lot for a while
you can get at least 3-7k off of one of those
my dad got a 2016 mustang 5k off because it spent 3 months on the lot
lol
 
@Failsafe - Not bad. Most of the stuff I look at is already discount. Often when car lots discount a price then the discounted price is the new price. So if you wait for a couple of holidays to pass it tends to drop the inventory price overall
@Failsafe - Last year I bought a car for my fiancee. It was a 2015 ford fiesta ecoboost with 2000 miles and we got it $7k below bluebook for only 10k
 
I'm crossing my fingers that with the M2 in stock, my nearest BMW dealer will have M235is to get rid of
 
@TomW - Those are certainly stylish
 
And the best-driving BMW in years according to most reviews I've read
 
7:41 PM
still just want a John Cooper trim Cooper...
 
@TravisJ Same. I would never buy a car at sticker
I know people who got those 2015 z/28's for like $10k over sticker
 
Sooo, today is actually my first day working with a UI in C#. Is it bad juju to point multiple event handlers to the same function?
 
@Failsafe - ouch
@Failsafe - The ZL1's are like $75k
 
@TravisJ That's what happens when they ship 1 z/28 a year to your area lol
@TravisJ Yea I don't need that
 
@Failsafe - Yeah, I think that was the case in my area too, there was only one and it was marked up as a result
@Failsafe - Mine is faster than the ZL1 :P
 
7:44 PM
wooooo i get my laptop tomorrow!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
You have a track near you?
 
Anyone really good with LINQ?
Which query is fast?
 
@Obviously Everyone in here is
 
@Obviously no but what do you need?
 
No :(
 
7:44 PM
from students in ctx.Students
where students.SomeStatus == 4
select new { StudentKey = students.StudentKey };
or this one
from students in ctx.Students where student.SomeStatus == 4
select students
 
@TravisJ Definitely take it to a track on an open track day
totally worth it
take a roadtrip to another state
 
@Failsafe - I speed in bursts when there is no one around, but for the most part I just disappoint people wanting a small race
 
this link says
Tip #2: Slim Down Your Queries with Projections
 
@TravisJ I was stuck behind 2 assholes on the freeway yesterday because they were racing eachother
 
@Failsafe - I have a few friends that have parking spots at semi local tracks
 
7:46 PM
one in an old 2002 camaro
 
@Failsafe - I beat a ducati in a race last weekend, he seemed bummed. There was definitely no one stuck behind us ;)
 
a ducati?
dude
thats a 0-150 in like 10 seconds
 
I think it was an 850 but still
This does 0-60 in 2.1
 
jesus
do you get like 8 mpg?
lol
 
lol I think when the gas pedal is more than 75% it probably gets like 4 mpg
 
7:47 PM
you should totally take some pics and show us
Yea that's why I don't really want a 2ss
13mpg
 
need a window into the tank so you can see it disappearing
 
There was the online listing with all the pictures but it went away and the wayback machine doesn't have it for some reason :(
@Failsafe - But if you are cruising around it gets like 26mpg
@TomW - haha :)
 
@TomW Can one truly be said to see something disappear?
 
@KendallFrey I see my money disappear every fucking day
 
lol
 
7:49 PM
@Failsafe shakes fist darn gubmint
 
@Failsafe I see your mother's clothes disappear every fucking night
 
im so sorry, nobody should ever have to endure that amount of hardship
 
@TomW jerrrrbs
 
@KendallFrey You and my mom vs. EVERYONE and your mom
small price to pay
 
7:50 PM
@SteveG your mom endures a lot of "hard"ship
 
@Failsafe - I found one of their pictures online
 
@TravisJ great color
 
@Failsafe your mom? you're right, she is quite inexpensive
 
yeah she does
 
@KendallFrey Yea shes a toothless crack whore nice lady
 
7:51 PM
this is escalating quickly
 
I should hope it's a toothless crack
 
simmer down now
 
@SteveG lmao you sound like my dad
 
My mom gums the best
 
haha
 
7:52 PM
GONNA SIMMER UP NOW
welcome to the club now
 
ugh
typical "I looked at the UI after it was finished rather than looking at the comps at the beginning of the process and I have a few "simple" changes that will actually kill your entire sprint" bullshit
"oh, can you just change something that completely compromises the design pattern you've been following for the past 3 months?"
 
@Codeman hey now that you're here
You know anything about electric guitars?
I want some opinions on a PRS i am thinking about buying
 
I bought a Mexican Fender Stratocaster. works great
PRS is overpriced unless you're touring and can tell the difference
 
this PRS isn't that overpriced in comparison to it's ibanez and schecter counterparts
 
if you know what you want and you want a PRS, get a PRS.
are you learning guitar or just buying another guitar?
 
7:58 PM
Just buying another guitar
replacing an old ibanez that I don't want to repair
 
well, Ibanez are shit for anything other than heavy metal shredding where you care more about durability and volume than musicality
 
Haha yea
 
what are you using it for?
 
In other words they are awesome
 
Prog mostly
 
7:59 PM
chugga chugga
 

« first day (2022 days earlier)      last day (2929 days later) »