« first day (1754 days earlier)      last day (3200 days later) » 

1:34 AM
posted on August 05, 2015 by Scott Hanselman

In 2013 I asked the questions "Is the Windows user ready for apt-get?" As with nearly all my blog posts, the comments are better than the post itself. ;) Now it's 2015 and many of us are upgrading to Windows 10. One of the little gems in Windows 10 that no one is talking about (yet) is OneGet. You can read about OneGet architecture here. It's easy (and wrong) to just say that

 
2:30 AM
Guys let's say you gave me an to write up a quick .net mvc app to show my skills, what would you look for?
An hour*
 
2:43 AM
@KalaJ - An hour? I wouldn't really ask for that. I'd sooner have them talk about what they would do and see if they use the terminology appropriately. Or I'd have a pre-built application with bugs and easy to implement improvements that I'd ask them to attempt.
 
2:58 AM
ah ok. I have an onsite interview in two days, just wondering what to expect
@SpencerRuport, currently I'm going over things like abstract vs interface, reverse string, etc..
and I am wondering if they would ask anything technial related to mvc or wpf
 
Honestly, I've found the best policy is if you don't know just say so.
But I mean, you've clearly got a lot of experience and you seem to enjoy this line of work and have a real interest in it.
Ultimately that's all any worthwhile company is looking for in a potential developer
 
hopefully :P
Thanks Spence! :D
 
3:37 AM
@KalaJ - No problem! Good luck!
 
4:01 AM
I agree, and if you don't know something, just say you're not familiar with it, but say what you would do to find out.
At least in my experience, I'm much more keen on people that can figure stuff out more than I am about people who know everything off the top of their heads.
 
Good evening, gentlemen
 
4:20 AM
@MoonOwl21 howdy howdy.
 
@JGrindal Hope you are well and enjoying you morning
 
@MoonOwl21 Not morning here for another 40 minutes!
 
@JGrindal I see. Anything interesting you're working on?
 
@MoonOwl21 algorithmic trading strategy backtesting for fitness determination of discrete strategies.
pretty interesting stuff, actually. The maths are super fun.
And playing GuildWars2.
but mostly the trading thing.
 
4:35 AM
That sounds petty awesome.
I'm still a student and trying to find my path in this drk world
There is so much in CS and SE I don't even know what to specialise in
 
I'm still very much learning. I understand the math, but I'm learning the programming.
 
I am planning on tripple majoring in Comp Sci, Math and Inf Sys. You will quickly pick up the programming
 
 
5:05 AM
hullo
 
5:57 AM
Morning
@BenjaminDiele You're an early bird
 
@Loetn A bit earlier than usual yeah :D
 
@BenjaminDiele You call that 'a bit'? :p
 
30 minutes is not that much :D
 
@BenjaminDiele In the morning, it is
:)
 
I'm a morning person, not so much an evening person
 
6:01 AM
@BenjaminDiele That helps
 
6:12 AM
Morning all
 
Haha, it's so funny that Trump is actually running for president.
4
 
Sigh, a customer sends an email "why is this working like this?", with a screenshot for ants.
 
Morning.
 
@BenjaminDiele Hope they are not enslaving you
 
6:21 AM
Why would I be enslaved? :D
 
Hi guys !
@scheien : Wassup ?
 
hey @bhuvin, what's up?
 
ahh going great !
 
Not much going on here. Browsing the latest news
 
guys : One Question -
I have got a Desktop Application , and a Web Application.
Web Application hits AJAX calls, using the WebSockets.
Now, from Desktop application does it make a difference using the Web sockets ?
by default what i know is that whenever there are WebRequests are sent it creates a TCP socket .. now there are different states wherein the Sockets wil lie into Close_Wait states

Now, what i guess is that whenever theres a webrequest call going will re-use the same ...
 
6:57 AM
how many of you guys know how to use git command tools? now how many of you guys know how to use svn command tools?
 
@StevenLiekens Negative on both
 
^
 
step it up, guys
 
We're not even using git/svn here.
 
@bhuvin A HTTP request is just a short-lived request over a regular TCP connection. A WebSocket merely 'upgrades' the HTTP request into a binary duplex communication protocol, therefore, so long as you stick to the protocol, it's no different than a regular TCP socket.
@StevenLiekens I use(d) GUIs for both.
 
7:07 AM
@StevenLiekens Only git here.
 
GUIs are so limited though
I use tortoise svn now
I miss using git with powershell
 
If you don't need more than what a GUI offers, a GUI is good (enough).
 
I find GUI's confusing :(
Especially the newer versions. All these fancy and hip icons, but no text, nor a tooltip. So you have to guess what's it gonna do.
 
me too
 
You're using one right now..
The VS integrated GUI and GitHub's GUI are really crystal clear though.
 
7:13 AM
Can you believe I dislike using most web apps? No help content anywhere, nor any way to learn what each button does.
 
@BenjaminDiele Trial and error
 
You're a fool :P
 
Yeah, because the VS version of Git uses buttons with text, instead of images everywhere. And where they use images, they have a tooltip.
@Loetn Not something I want to risk with my not-yet-version-controlled code :D
 
@BenjaminDiele Aah come on, it'll be fun!
 
7:26 AM
Want some cheese with that whine?
 
@scheien That's a good one :D
 
Yea, I like that one :)
 
7:57 AM
A coffee is a good start to the day.
A coffee spilled over one's self is a bad start to the day.
FML :(
 
coffee? good idea
 
muttermuttermutter
 
the coffee here is pretty good compared to some places I worked
 
webforms generic handler (ashx) fun: Setting response HttpStatusCode to 401/403, automagically redirects to login page, in an ajax call.
A response full of markup rather than the simple "Unauthorized".
 
8:13 AM
morning guys :D
 
morning @SebastianL
 
@SebastianL Hello
 
Solution: set context.Response.SuppressFormsAuthenticationRedirect = true;. That should have been the other way around, opt in for redirect rather than opt out :(
 
solution: convert your webforms app to mvc
just kidding
6
A: Prevent ASP.NET from redirecting to login.aspx

Oualid KTATAIf you are using ASP.NET 4.5. you can disable forms authentication redirect HttpResponse.SuppressFormsAuthenticationRedirect property. In Global.asax: protected void Application_EndRequest(Object sender, EventArgs e) { HttpApplication context = (HttpApplication)sender; context....

that disables it for all requests
which can only be a good thing
 
+1 for converting to MVC
 
8:25 AM
@StevenLiekens: yea, would be awesome to do that. Unfortunately it's a rather big webshop, and I guess the customer isn't keen on making the change at this point atleast.
@StevenLiekens: Still need to redirect the customers to some login page when they try to refresh whatever restricted page and the session has expired.
 
8:49 AM
moin moin
 
HI InfraG team...I have faced lots of isues in infragistics controls mainly in chrome ..main issue is "webnumericedit doesnot work in the edit mode of the data grid in google chrome".

please put the answer as soon as possible!!!!!!!!
 
"InfraG team"?
 
He must be drunk.
 
hi Roel :)
 
@LibinCJacob You're hasty eh?
 
8:57 AM
@RoelvanUden @Loetn did you deduce that by the amount of exclamation marks he used?
 
Yes, that's my main method
 
(sorry @Loetn wasn't a reply to your chat)
 
Ooh :(
 
but I guess my comment worked perfectly for that as well
#germaneffiecency :p
 
infragistics
 
8:59 AM
@SteffenWinkler Ja!
@LibinCJacob You're in the wrong place here..
 
I've no clue what infragistics is/are.
 
@SteffenWinkler Pretty much.
 
@SteffenWinkler They create WPF/AJAX/... based controls.
 
@scheien Good morning
 
He's from India. He can't help looking drunk. :-( I'm sorry I thought you were drunk.
 
9:01 AM
ahh ok, thank you @Loetn
(test)
ah so strike through does work here
 
---sweet---
damn
 
it only applies one style
 
it's ---( and and equivalent closing
(test) test
 
Lol. A quick google shows that this guy's infragistics controls are ASP.Net web form libraries not maintained since 2011.
 
9:04 AM
@StevenLiekens as you can see it can apply two styles
 
one style
 
nope, see my comment. Two styles. Strike through and cursive
 
oh how did you do that?
 
I used the star inside the brackets.
 
((ha))
 
9:06 AM
now, how do I do bold?
 
or maybe __ __ __
 
thank you. Only knew that one star did cursive
 
ok sorry I'll quit now
 
9:07 AM
?
 
O̖͝h͈͚̱̤̫́ ̢͉s̳w̛̯̙eet̷̠ ̤̲͓͝j̪̬͎͎̲e̛su̗̲͍̮͖ͅͅs͙͔̮͈̟̙̞
 
@Squiggle WHAT HAVE YOU DONE?
stop using ASCII here. It's like Latin. It's old and nobody needs or wants it. Aside from a few people that use it to look cool to others.
 
@SteffenWinkler H̶̡͙̙̰͔̲͖͎̯̭͚͖̳̩̰̳̹͍̺͍e̶̶̜̠͕̱͖̣̞̩̭̞̼̯̭͍̬ ̶̧̦͔̼̞c̴̴͚̞͕͎̠̘o̡̤̘̺̟̯̠̹͓̭̪͚͠͠m̶̸͞͏̝̟̣̩̩͓̣̦̦͇̭̼̞̰̫̺̳̩ę̸̜̞͖͙́͘͟ș̷̢̘̭̳͔̺̗̫̮̟̙̫̀̕‌​̬̤̭͉
 
@SteffenWinkler " Aside from a few people that use it to look cool to others." Sorry..
 
@Loetn ?
 
9:10 AM
o/
 
o/
 
morning @KevinMaxwell!
 
9:28 AM
it should be company policy to fire anyone who suggests using a telerik control
rapid development my ass
frikn radgrid doesn't display the right amount of pages at the bottom
 
:O
 
also I've never actually seen anyone use bindings in webforms
am I the only one?
 
no I've used bindings before
but I haven't touched web forms in earnest for almost 2 years now
 
:D
 
9:44 AM
welp
 
@StevenLiekens be happy that you aren't stuck with Xceed...
 
that sounds familiar though
 
ah, better try not to remember where you heared it. You probably drank a great amount of booze after being done with it.
 
extended wpf toolkit?
 
also for WinForms
 
9:48 AM
that's what I know them for
 
no clue about the WPF part (you'd have to ask my colleague) but the WinForms part is not nice
man I love VS2015. You can set a breakpoint and make it only trigger when a certain condition is met
if they keep improving VS like that, the version after the next version will find and fix bugs for you.
 
@SteffenWinkler That was also possible in earlier versions? Or am I wrong?
 
@Loetn uh. Had VS2013 before that couldn't do that o_0
maybe the Ultimate version?
(we had the version below Ultimate and that didn't have that feature)
 
@SteffenWinkler Then I'm wrong. I'd VS2013 pro version.
Maybe I'm confusing it with something else.
 
or it wasn't as obvious as it is now.
oh. Just googled it
 
9:56 AM
@Loetn Couldn't you do that since 2010 or so? Right click your break point and set the condition
 
even VS2008 had that
how did I miss that?
 
@BenjaminDiele That's what I thought :)
 
wait...does that mean VS2015 can already find bugfixes on it's own and I didn'T find that feature yet?
 
@SteffenWinkler Perhaps all the booze from Xceed helped.
 
@SteffenWinkler Yes, I use it a lot :P
 
9:58 AM
<- non-alcoholic. Which explains why I still remember how bad it was :/
 
@SteffenWinkler "I won't be happy until VS writes my code for me"
The day draws near.
Can one of you or both of you choose a bloody nickname
Or another avatar
My brain has issues with differentiating you.
 
Get a new brain
 
@Sippy who?
 
10:17 AM
I guess Steffen & Steven, the dynamic duo
 
Ste[ff|v]en
 
Hey good day everyone
joined HP and got my stuff and all. no work so far.
 
ttj
(condition) ? stringVar : DBNull.Value <- There is no implicit conversion between string and System.DBNull
(condition) ? (object)stringVar : (object)DBNull.Value <- Cast is redundant.
should i ignore the cast warning? i'm using this value as a db parameter
 
HP?
you're working for Harry Potter?
 
yeah hewlett packard
 
10:25 AM
oh. Less interesting :P
 
lol no , my parent hid my hogwards letter :\
 
You let a muggle stop you?
 
i didnt know, i was a kid :(
 
@codebrain did you move for the job?
 
yeah I am at work now, HP OTP Chennai
 
10:28 AM
(y)
 
:)
 
@SteffenWinkler @StevenLiekens you should collaborate and pick the same avatar, if only to confuse @Sippy more than he is right now.
 
@RoelvanUden you sometimes remind me of Blackhat ;)
 
@SteffenWinkler What's that then?
 
@RoelvanUden what? I found an IT term the allknowing Roel van Uden does not know? ;)
there are Blackhats, Whitehats and Greyhats. They're terms to describe what kind of a hacker someone is. Which includes 'social engineers' to some degree
 
10:33 AM
Social engineering is the best part of hacking.
 
@codebrain are you satisfied at HP?
 
@RoelvanUden Blackhats -> someone finds a security hole and abuses it for his/her own good
Whitehat -> someone finds a security hole and alerts the person responsible to this
Greyhat -> similiar to a whitehat but will make that hole public if the person that is responsible is not fixing it
 
@SebastianL I just joined, its ma first day lol
why do you ask like that ?
 
@codebrain xD the father of my gf just quit HP recently
but for aging reasons :D
 
oops , may be. its a good company.
 
10:35 AM
I knew a guy who was contracted to test the resilience of a company's secure data center.
He paid the cleaner 10 quid to pull the power socket out of the wall. Job done.
 
lol i am 25. not 65 ffs
 
social engineering++
 
++socialEngineering
 
@codebrain i was just curious how HP is, at another location ^^
 
@Squiggle Did they like / accept that? :D
 
10:36 AM
i think its same. just indians all over here.
 
There's an HP site in Hook
don't know much other than that
 
i could send an pic later may be. stay tuned
 
@RoelvanUden faku
 
an example of two blackhats encountering eachother would probably look like this: @RoelvanUden
 
lol
 
10:46 AM
yep. Totally valid.
The guy works for the same company who run a lock picking workshop :) They're full of great stories.
 
@RoelvanUden : Now , but then i have various Calls going to the Same place ..
Won't TCP sockets handle the same ?
 
@SebastianL this is how hp at my location looks like -->
 
@codebrain Looks a big building man. How do you like it so far?
 
there are few more companies in the same building like verizon , RBS
 
dats bangalore right ?
 
10:55 AM
looks good, spacious, wifi everywhere. i kinda like it
nah, Chennai.
 
How long does it take you to get to work in a morning?
 
aha ..
 
I remember the roads being totally mental there
 
40 minutes if i drive crazy
@Squiggle It is mental lol
 
@codebrain Define 'crazy'. Indian crazy?
 
10:57 AM
It's like a gridlock that moves at 40mph. No lanes, no indicators. Just horns. SO MANY HORNS.
Chennai sounds like "vroom beep beeeep bip bip vroom beep beep" 24/7.
 
@Squiggle My head :/
 
yarp
Some of the best food on the planet though!
 
@Loetn yes abusing traffic rules and such
@Squiggle I dot like to horn. i hate if someone horns that much.
 
The weather is too nice here. I'm going to go jump in the river. bbl.
 
My friend who returned to india from Jacksonville told me that all indians follow traffic rules and behave well in there, but when they come back to india .... vroom bip beep..
ahh nice
 
11:07 AM
@SteffenWinkler Oh, you ment that. Yes, I do know the terms, and I see myself as a greyhat (even though I have acted like a blackhat on many occassions in the past).
 
11:25 AM
Is it possible to set password for local sql db?
 
hi guys. when using JsonConvert.Serialize(json). the returned json is adding the escape char before each " is there an easy way to remove this in the jsonsettings?
 
are you sure that's not just the debugger view doing that?
 
@user3545438 Then it wouldn't be valid JSON anymore, so, no.
@StevenLiekens Dunno what he means, but a string containing " would get it.
 
This thing again!
 
Hello, I'm using asp:RequiredFieldValidator on ASP.NET Web Form application. Each time I click on submit (Login button) it does a postback and then shows the error message for example (username or password is required), is there any way to disable the postback? I'm using HTML input and button...
 
11:35 AM
This one crops up every few weeks/months. MVC/api controllers (can't remember which, maybe both) assume that a response serialized to the response body is form-encoded by default, and escape it again
 
@RoelvanUden intellisense tooltips display " as \"
 
form encoding doesn't use \ though right?
 
<asp:RequiredFieldValidator runat="server" ID="UserNameValidator" ControlToValidate="username" Display="Dynamic" ValidationGroup="LoginVAL" SetFocusOnError="true" CssClass="badge badge-danger m-b-0" ErrorMessage="The username is required." />
 
@KendallFrey maybe it's not form encoding. Some response format that isn't json.
 
<button id="LogInBtn" runat="server" onserverclick="LogIn" class="btn btn-material-indigo btn-block btn-embossed ladda-button" form="signinform" validationgroup="LoginVAL" data-style="zoom-in">Login</button>
 
11:36 AM
@TomW Well if you manually encode an object to JSON and then pass it to Web API it will serialize the string as JSON yes.. and add escapes.
 
badger badger badger badger save the BAAAAAAAAAAAAAAADGERRRRRRRRRRRR
 
@RoelvanUden I can never remember exactly what the problem and solution is whenever it comes up. But it is almost always the same issue
 
@KevinMaxwell What do you mean by disabling the postback? You need to do a postback to log in
 
see
there is no actual backslash in the data
 
@StevenLiekens I've given that explanation several times. It most of the time turns out to be a red herring
 
11:38 AM
oh
I wasn't reading your messages :^)
 
@KendallFrey, Exactly but when you use ASP:Controls it doesn't postback until fields are validated, but on HTML control it ignores the rule. First Postback > Shows error message
 
@StevenLiekens Not today. But times this question has been asked before
I think this answer explains it correctly: stackoverflow.com/a/4140543/313414
@user3545438 what is the type of the variable json?
And are you doing this in a controller action?
 
@KevinMaxwell check if this helps
13
Q: ASP.net RequiredFieldValidator not preventing postback

DanaI have a question about what could stop a RequiredFieldValidator from preventing a postback. I began working on an older, but simple aspx form and my predecessor used manual, server-side form validation (checking to see if some form fields have a value and if not displaying an error message in a...

 
@codebrain Thanks, I've already seen that. That's not the solution. I'm using input instead of textbox. On ASP:Textbox or ASP:Button everything works as it should be but on HTML input and button it's not following the rules.
 
@TomW @RoelvanUden I agree its breaking json rules, but another company using the api has asked if its possible for these escape chars to be removed. basically i return Ok(JsonObject.Serialize(myObject)); when I return a call
 
11:51 AM
@user3545438 return Ok(myObject)
or just return myObject
You're doing it wrong. That's why they asked :P
 
the main reason for doing this was due to the date formatting, they want ISO 8601 UTC as default
 
Change the Web API settings instead, don't manually serialize.
 
@RoelvanUden ok sounds like a plan how would i do this please?
 
29
Q: How to set custom JsonSerializerSettings for Json.NET in MVC 4 Web API?

Richard Neil IlaganI understand that ASP.NET Web API natively uses Json.NET for (de)serializing objects, but is there a way to specify a JsonSerializerSettings object that you want for it to use? For example, what if I wanted to include type information into the serialized JSON string? Normally I'd inject setting...

 
ISO8601 is supposed to be the default already?
According to what I've just googled
 
11:54 AM
@TomW i didnt realise it used json.net as a standard
so really by default i should be able to just return the object?
i'll run some tests :)
 
I think so, yes. Didn't you start with that?
 
SJD
Hello guys.
I have some "existential" questions.
I have some trouble with threading stuff & async way of doing
To be more explicit, I have some exceptions but can't actually know where I get them from. So I begun to investigate which field/methods are done on UI thread.
Are there any known "structures" which by default, without explicit specifying to run on UI thread, are running on UI thread?
For instance: properties, some special methods, some specific types? :D
 

« first day (1754 days earlier)      last day (3200 days later) »