« first day (2321 days earlier)      last day (2634 days later) » 

12:21 AM
@Cerbrus - I also made a dark version, it should take 30 minutes to clear the deploy process in the store and then be available
 
 
1 hour later…
1:34 AM
oh great I just got really stuck in the full stop sense.
 
 
4 hours later…
6:01 AM
posted on February 22, 2017 by Scott Hanselman

I just discovered that you can see a preview (almost like a daily build) of the Azure Portal if you go to https://preview.portal.azure.com instead of https://portal.azure.com. Sometimes the changes are big, sometimes they are subtle. It feels faster to me. A few days ago I blogged that I had found a number of things in Azure that I wasn't previously aware of like "Metrics per instance (App

 
6:48 AM
@Feeds lets call all the things we couldn't properly display in our messy ui "hidden gems"
 
GoOoOOoOoOoOooOoOOoOoOoOod mornin my brothers from diffrent mothers
 
Hello gents and ladies
 
There are no ladies in the C# room
Only olgas
 
7:17 AM
@TravisJ What trickery is this?
 
Good morning, people and peoplettes.
 
ohayou
 
@TravisJ I seem to have gotten used to the light version. Something isn't quite right about that dark one. (Probably the bar's size making it too much of an eye-catcher)
 
7:41 AM
おはよう :)
(good morning)
 
Hi everyone
just a question
I want to do this in c# : Check if AD User was part of the AD Group which could be in its sub group
0
Q: Check if AD User was part of the AD Group which could be in its sub group

Aaron OoiI would like to query a user whether he was part of the group, the issue here is.. it sometimes hard to identify whether it was part of it because he could be in many level of the group sub group. Example if I wanted to check if user was in "All Sales Users". He could be in the subgroup of "All ...

Should I iterate in the members collection
 
and browse if the member is a group
Thank you @SebastianL
I'll check now
 
No, you shouldn't recursively go over group membership. It's slow and pointless.
A user's login token contains all the groups he's a member of, regardless of how deep the nesting goes, as a flat list.
This is old but probably still relevant - informit.com/articles/article.aspx?p=474649&seqNum=6
The AD property you want is tokenGroups, which is a binary-encoded list of SIDs.
 
quick question
isn't "list?.doStuff()" a kind of monad?
 
7:57 AM
@Nerdintraining I learnt to say "I love you" in russian from cs:go : "cyka blyat"
 
Awwwwww
those are the two single most beautiful words i've ever witnessed
idi nahui <3
@satibel ver much related youtube.com/watch?v=iB3fZGTm6a8
 
appropriating my culture
 
@satibel and i thought "cyka blyat" means "rush B"
 
Morn all
 
@Nerdintraining I didn't watch, but I can assume this involves adidas jogging pants.
 
8:04 AM
@SebastianL Oh, I always thought it meant "For pony!"...
 
cheeki breeki :)
 
Hi , Anyone from windows 8 app development ,

how to run one .jar from C# (windows runtime component)
please help
 
War
@ArjunTRaj do what you normally do to execute a process
 
@ArjunTRaj Define "run". If the user has Java installed, you can call java.exe to launch the JAR file in a new process.
 
War
Process.Start("javac params")
 
8:08 AM
@War@AvnerShahar-Kashtan am new to windows dev , i tried with Process but its showing error in VS
its windows 8 mobile application
and am creating one runtime component to integrate with JS based application
 
Well, chances are your mobile phone does not have a Java runtime installed, then.
 
js or java?
 
@AvnerShahar-Kashtan no its only for predefined devices
@satibel Javascript
@satibel java should be thr n our target device
 
@satibel watch it^^
 
@War@AvnerShahar-Kashtan i tried with ProcessStartInfo , but showing namespace name could not be found are u missing dirctv or assbly ref
 
8:13 AM
@Nerdintraining XD
 
Haven't written much for Windows Phone. Don't know how the process launch model works there.
 
War
literally the first result
 
@ArjunTRaj Windows mobile app running Java? That ain't gonna happen bruh.
 
@satibel it's great uisnt it
 
@War i have imported using System.Diagnostics;
but showing err on VS 2015 , do i nee dto add som assbly ref ?
 
@AvnerShahar-Kashtan let me try
 
War
@ArjunTRaj if its uwp the rules might be different
uwp is designed to be cross platform so it might not availble
I don't do UWP stuff so have no idea sorry
 
my coworker unplugged my cable -_-
- "but I unplugged the printer"
- that's not the printer, that's my PC.
 
War
walk over to their desk ... unplug the computer
what ... I only unplugged the printer
 
no, war
straight up punch them in the face
and get that over with
 
8:29 AM
just stumble over the switch for the sockets ;)
 
well lads what does being malicious towards a less competent person bring to the table
 
what kind of fun are we talking about here
like sadistic fun or what
 
seems so
 
@misha130 he has 40 years experience...
 
8:34 AM
he is incompetent in unplugging cables
 
@satibel arent you in some sort of govermental laid back service department?
 
maybe he just made an error... can happen to anyone
 
@SebastianL nope "it's jurassic park here, we have dinosaurs." - manager
 
@satibel and what species does your coworker belong to?
 
edmontosaurus annectens
 
8:44 AM
Question: I made an interface IColorize . is it a good practice to go through all controls like foreach(var control in this.Controls) { if (control is IColorize) { ... } } ?
 
:35775477 foreach (var colorizable in this.Controls.OfType<IColorize>())
 
oh okay. Thank you :)
 
Remember, though, that this.Controls probably isn't a recursive list.
Just the top-level controls.
 
yeah it doesn't need to be recursive ^^
 
8:46 AM
Forms
 
morning
 
i am using it so i can apply a ColorScheme to my app
 
Does anyone have good exp with Windows 2012
 
War
@misha130 LMAO
you may have a point
 
@Ggalla1779 not much but ask anyway ;)
 
War
8:50 AM
@satibel is he one of those types that has same 1 year of experience 40 times over perhaps?
I meet a lot of those on my travels
 
@Ggalla1779 I've had nothing but good experience with 2012.
 
I have a problem I run a client on Windows Servwer 2012 ,it connects to blackbox service (filenet). It works for one session but not 2 at once.... it did before
 
i read 2012 and i was like
Yeah Gangnam Style
 
second cliemt app gets message user already logged onto domain
its the same app just run twice...same credentials...it worked before but not on Windows 2012
 
@Ggalla1779 and that blackbox service didn't change?
 
8:52 AM
Windows itself has no problem with multiple logins for the same user.
 
@SebastianL nope only the server its being run on changed
well OS changed
 
Good morning all!
 
@Ggalla1779 is something like this (technet.microsoft.com/en-us/library/cc160794.aspx) in place?
 
Is it possible to change authentication type from "Individual User Accounts" to "Active Directory based" in ASP.NET MVC Identity?
 
@SebastianL thanks will have a look
 
War
8:59 AM
@KevinMaxwell yes
you have to implement / find an implementation of, the various interfaces
 
@War I believe it's not that simple to do that, right?
 
War
you might be able to find a nuget package or two you can plug in
it's fiddly as all hell though
I got my SSO server working and have deliberately stayed away from it since
 
After 2 years of production with Individual User Acscount, the project manager showed up and said, we need to implement AD based authentication now.
We have our AD servers in NY
 
@KevinMaxwell We use both as well in our app, though our code is a bit of an ugly hack on top of Identity Framework.
(Based on WebAPI)
 
I've never done AD based application, is there any article or tutorial?
@AvnerShahar-Kashtan yes, what he wants is to remove the Individual User completely and instead implement AD based.
 
9:03 AM
If your server is part of your domain, it should be trivial to implement.
 
yes, it is.
 
IIS supports Windows authentication automatically. It handles authentication for you and persists the user's details in the Request object. You can hook that up to your authorization. [Authorize(Roles="Administrators")], will just work for AD group membership.
 
@SebastianL Maybe the AD has a limit on it, for security
 
@Ggalla1779 thats not unusual, but it's not there if noone implements it
 
In the current app, I also have a table called User Profile where I store additional information like Time Zone and etc, am I still able to get AD users ID and store them in that table?
 
9:07 AM
Hey Guys
 
Or it's better to ask this way, which one is better and secure to use? Individual or AD?
 
@KevinMaxwell They're not really equivalent alternatives.
 
right
 
If this is a domain server and a business app used inside the domain, using AD auth makes the most sense.
It allows users to not have to have separate logins and passwords for the app, just use their existing credentials.
 
In some code I retrieved the Sessionname from the environment variables and at some users it just returned null and caused some errors (forgot error handling). I thought this will always return something. Could someone tell me why it returns null in some cases?
 
9:08 AM
@AvnerShahar-Kashtan that's exactly what we are trying to have.
@AvnerShahar-Kashtan So in this case, project manager was right.
 
@AvnerShahar-Kashtan we moved to more modern server farm and got Windows 2012...so it was just unexpected
 
@KevinMaxwell Yeah. Intranet apps really shouldn't manage their own users and passwords.
 
I told them they have to accept they need to rewrite the software to fix this
 
Ok, since I have the existing app running on individual based, what's the next step to convert it to AD?
 
@KevinMaxwell Create two empty apps in VS - one based on Individual Accounts, one based on Windows Credentials. See what the differences are. I'm guessing it's a matter of registering a different middleware component during startup config.
 
9:12 AM
Would AD understand my attributes like [Authorize(Roles = "Gold, Platinum, Diamond")]
I have many of them in different controllers to control the user access. I think in that case I need to create those same Roles inside AD right?
 
"Roles" in the sense of groups, yes.
 
yes, they're called Groups in AD.
So those attributes can still remain after the change, right?
 
Should work, yes.
 
Great
 
I'm not sure about names, though.
You might have to specify "DOMAIN\GroupName".
 
9:22 AM
Ok, I need to test
 
Although if it's in the same domain as the server and the user, it might automatically find a group named "Gold".
 
am I still able to store additional information inside User Profile?
I need to save user's Time Zone, name and etc.
I think the answer is yes. If I can get the AD user GUID and then rest should be the same.
 
You can use the unique DOMAIN\username as a key, you don't have to get a GUID.
 
ohh, interesting
Last question
Which one should I use?
 
We use a mixed-mode auth, with a single UserProfiles table. The username for individual accounts is just the account name, and for Windows accounts it's DOMAIN\Username, and there are no collissions.
 
9:33 AM
right
Single Organization, Multiple or On-Premises?
I think Single is the correct option.
 
On-Premises, I think.
Cloud is for a managed active directory, like Azure.
 
Thanks @AvnerShahar-Kashtan
 
9:56 AM
@AvnerShahar-Kashtan we did
 
War
What do you do when you have a problem that requires you building something generic and the future use of that thing is not very well known?
I have some ideas about the sort of thing that's needed but trying to translate it to a concrete requirement is tough
 
@War procrastinate.
 
Is it possible to test GUI on TFSbuildserver?
nevermind i just found what i was looking for
 
10:11 AM
cant I override method signature object with an entity?
like virtual object thing() & override ClassThing thing()
 
@misha130 in IL sure
 
IL?
 
War
@satibel yeh i've done about as much of that as I can lol
i'm now at a point where people are noticing I get more done at home on my own pet projects than I do in my work stuff lol
sorta need to get productive again with vague requirements
 
War
I've mapped out what I do and don't know with pretty pictures en all on a whiteboard
 
10:14 AM
@misha130 i dont know any other method of overriding a returntype
 
War
planning to call a team meeting to discuss and hash out some of the high level design goals
@SebastianL I didn't think you could
gneeric method maybe ?
one that returns a T
public virtual T DoFoo<T>() { }
might be able to override that for a specific type
 
nooooo
SO is down
 
War
AAHHHHHHHHHHHHH SOMEONE CALL 999 911 and erm ... Scott Hanselman
 
illuminati confirmed
 
War
@misha130 lol he meant Intermediary Language
its what the Roslyn compiler produces ... the code between C# and the native code spat out by JIT
 
10:18 AM
I get it
I am more complaining about C# not enabling it
 
War
well maybe its possible with something like PostSharp
using an aspect oriented approach
 
if anyone wants to know more: github.com/dotnet/roslyn/issues/357
 
War
that does code weaving or something weird like that
or ... have a wrapper that puts the method in to a script, then the script can be rewritten at runtime before being executed by the script host
 
@War don't. Just don't
2
 
what the hell @War
2
 
War
10:21 AM
lol
hey i didn't say these were good ideas
 
10:34 AM
We're back up now. Apologies for the downtime. Deployment related issue which we're still investigating.
 
War
nice!
@misha130 oh i forgot about new
 
oh
lol me too
 
War
public virtual object Foo() {}
public new Something Foo() {}
does that work?
lol "simple langauge problem here" => war suggests rewrite the accepted global best practice for this one scenario => then there's a keyword
you know you've been a dev for too long when that happens
I found myself doing some wierd shit in signalr last night
Clients.Caller.eval(someBlockOfJSIJustGenerated);
it wasn't pretty at all
 
ignorance is bliss comes to mind
 
War
10:56 AM
lol ... i was doing some pretty brutal stuff though
I had this system where I could type in a block of c# in to a text box on the page and "save" that a as script, that would later be executed
that script might produce a block of c# for execution on another page
it made for some interestingly scripting scenarios but I wondered if it was a bit much ... rewriting the app without a re-compile => re-deploy
 
@Michael did you manage your subnetting issue?
 
Jze
hello guy
 
War
which one?
or is someone in here called guy?
 
Jze
LOL hello war!
 
In some code I retrieved the Sessionname from the environment variables and at some users it just returned null and caused some errors (forgot error handling). I thought this will always return something. Could someone tell me why it returns null in some cases?
I thought there's always a session/sessionname in windows
 
11:12 AM
What if there is no session? ;-)
e.g. the browser doesn't accept cookies
 
Jze
How can i clone session object without reference?
0
Q: How can i copy from Session Data without reference?

JzeI have Session object and how can i copy this value without reference. var temp=new T(Session["Tdata"] as T); temp.DataCount.RemoveAt(1); My T class is public T() { DataCount=new List<int>(); } public T(T tempt) { DataCount=tempt.DataCount; } public List<int> DataCount{get;set;} Wh...

Please let me know why its not work?
 
@Jze Haven't we been over this question a couple of weeks ago?
T is a class. Classes in .NET are reference types, meaning they are copied by reference. If you want a copy of the T in your session, you'll have to manually implement a Clone() method that creates a new instance.
List<int> is also a reference type.
So when your copy constructor copies the DataCount, it copies the same internal list.
 
Jze
object ICloneable.Clone()
{
return this.Clone();
}
public T Clone()
{
return (T)this.MemberwiseClone();
}
It also not work.
 
Now that I noticed you have a copy constructor, you can use that the same way you're doing it now - but instead of copying DataCount's reference, create a new List and copy DataCount's members.
I've answered your question on the site.
 
Jze
Ohh Thank you very much. @avner
 
11:24 AM
@RoelvanUden sorry, I forgot to say that I mean the windows session
 
... What if I use Linux?
 
@PhilippMüller First time I even noticed there's a %SESSIONNAME% in Windows.
 
.NET Framework, not even .net core or something
GetEnvironmentVariable("SESSIONNAME");
this returns the session name like RDP, Citrix whatever
 
But at some users it was just null, I just wonder why It can be null
 
oh okay, I don't found this. Thanks.
 
Jze
Ohhhhh!Thank you @Avner It work now.damm.I will kiss you if you beside me.:P
 
No problem.
I'm 500 points away from 10k rep. Yay for meaningless internet points!
 
looks like you get big balls soon
 
at 10k rep you are an influencer, and you can get free snacks :p
 
11:37 AM
if I get 10k one day, I will ask for a lifetime flatrate at our snack machine
 
there was a story from a somewhat big youtuber (eli maybe) where he was asked if he was an influencer in a restaurant, as they are entitled to free snacks, when he told he had 100k subs, they offered him the meal.
 
12:04 PM
just read a really scary thing, if you replace the magnifier.exe with cmd.exe you can launch a commandline without logging in as system :O
 
@SebastianL This is the sort of thing Raymond Chen calls "Being on the other side of the airlock". To replace magnifier.exe, you need access to the machine with admin privileges. Once you have that, there's already so many nasty things you can do.
 
12:28 PM
@AvnerShahar-Kashtan awesome analogy
 
@AvnerShahar-Kashtan but what if you want to access an encrypted partition which is not the system partition and you replace magnifier.exe to get access to that (dunno if that would actually work)
 
War
@Jze oh hi :)
 
@garfbradaz Straight out of the Hitchhiker's Guide.
@SebastianL If you're logged in as admin, you can do a lot of things - including launching a process as System, for instance.
 
@AvnerShahar-Kashtan i read it as tip if someone has forgotten his/her password as a method to reset the password
 
I mean sure, if you've got access to a machine as admin only for a minute, you can use it to prepare an exploit for later.
 
12:41 PM
replacing the exe with a livesystem
 
@SebastianL I know a place - a security operations center of a bank, no less - where they used that trick for a while to bypass annoying group-policy restrictions to log in to their workstations without their smartcard.
Until IT figured out they were doing it and asked them to stop.
 
HAMMERTIME!
 
Then plugged the hole, too.
 
@AvnerShahar-Kashtan you can do it by booting on a live cd though.
 
@AvnerShahar-Kashtan Chen is a DotA Hero and I've never ever heard him saying that!
 
12:56 PM
i like to see these random skirmishes
 
1:10 PM
GOOD MORNING AND HAPPY HUMP DAY
 
hump day?
 
i still prefer friday
 
hi guys
string[] words = FileName.Split('-');
foreach (string word in words)
{
MessageBox.Show(words[0]);
}
I want to split a sentence if there is a '-'
But somehow it doesnt take the -
 
PSALM 21:19 - AND JESUS SAID, MAKE SURE THY WRAP IT BEFORE THY TAP IT ON HUMP DAY
 
1:14 PM
Anyone knowing what im doing wrong?
 
you want to keep the "-" too?
or what
 
No I don't
It's like a song name
Artist - SongName
 
in your message box you should alert word
not words[0]
 
MessageBox.Show(words[0]);
MessageBox.Show(word);
 
foreach takes 1 by 1 element from your words array
 
1:16 PM
ah
 
satibel is the winner
 
damn french guy
 
come see for your prize
 
@SteveG my mommy told me to be wary of strangers offering me gifts.
 
don't worry, i was just going to offer sarcasm and meanness
no candies for you
:p
jk
GET IN THE VAN
 
1:21 PM
@SteveG I'm the one with the white van.
 
lmao
 
I prefer regular expressions Gigitex, sometimes this splits are fucking you up with errors
 
@SteveG I had no idea Jesus was quoted in the psalms
 
idk what the psalms are
 
clearly
 
1:26 PM
i barely know what the Jesus is
 
1:41 PM
hey guys
i am learning aspx
but whats the name of the aspx style where you dont use the drag and drop
like dropping textbox and that kind of things
its webform without buttons
writting it like html
 
MVC?
 
MVC
 
asp.net mvc ?
 
yea
 
thnx guys
thnx both
have a nice day
 
1:46 PM
@SteveG is the only way to modify a view without causing a page reload to use javascript?
 
yeah
 
@peterpep Once you're in the client's browser, if you don't want to go to the server again (=page reload), the only code you can run is javascript code.
 
^
Avner o/
are you feeling better today
 
Microsoft used to pretend that you could write everything in server-side code and it would automatially transfer to the client side and everything would be transparent to the server-side dev. It never worked.
WebForms tried to pretend there's no client-side logic. It never worked.
Me? I'm fine, yeah.
 
GRRRR
thats frustrating
ive been trying to stay away from javascript lol
 
1:51 PM
Then stay away from web development.
Learn from WebForms' mistakes. Don't try to pretend client-side code isn't there and have it auto-generated by server-side controls. Just learn to use the client-side code properly.
 

« first day (2321 days earlier)      last day (2634 days later) »