« first day (2860 days earlier)      last day (2089 days later) » 
00:00 - 10:0010:00 - 21:00

10:00 AM
@AvnerShahar-Kashtan knowing apple, you would still only have one button
 
Hi! Sorry to disturb you guys - Can I just ask a question?
 
@Xariez YOU'RE WRONG
 
it'd probably say "Save things"
 
lol
 
!!justask
 
10:00 AM
@UmeshKonduru you just did
 
Aug 28 '17 at 15:53, by mikeTheLiar
Don't ask if you can ask, it creates an infinite recursive loop. Just ask your question. If someone is around who can help, they will.
 
@AvnerShahar-Kashtan I've seen extremely few CRM apps, so no
 
> If someone is around who can help, they will.
this is a very aggressive assumption
> If someone is around who can help, they will.
 
Wanna argue with mike?
 
Thanks :) I am completely new to C# (I know nothing about it). But I do have some knowledge of Python and Java. Can anyone suggest a good tutorial?
 
10:01 AM
im around, and I can help, but the question of if I want to help still remains
 
@UmeshKonduru Go to MVA, watch a few videos, build those tutorial apps.
 
@UmeshKonduru considering you know Java, you just have to get used to the different keywords in C#
 
@Wietlol The distinction between "can't" and "won't" isn't very productive here. Won't help, can't help.
 
there are also some common practises you should get used to though
 
And different coding style. Methods have UpperCamelCasing
 
10:02 AM
I do not know much Java though - I'm better at python - anyway, thanks :)
What is MVA ?
 
@AvnerShahar-Kashtan i have no idea what you mean, but I'll just say "okay" :D
 
!!tell Umesh googleme microsoft virtual academy
 
@Squirrelkiller everything with UpperCamelCasing
 
Thanks :) I'm still in 9th grade. Just wanted to explore Unity and c# programming. Please don't mind the disturbance
 
10:04 AM
what is 9th grade?
 
4th year of high school
in India - or it is the 1st year of high school in USA
 
oh high school
in the netherlands, its all school
a high school would be one with at least 10 floors
 
Don't you...like...just count your school years from the beginning?
 
nope
 
Damn you strange. Has to be all the weed.
 
10:06 AM
In India, it is 4th year of high school, but in US it is 1st year of high school. @Squirrelkiller exactly - 9th grade means 9th year from the beginning
 
what if you drop out school and start another one?
 
Preschool is 1-3, Elementary 4-6, Highschool 7-9, Upper secondary school back to 1-3, then College/uni also back to 1-3
 
Here in the UK, Arrays start at 0, so fuck you all
2
 
According to Finnish standards
 
10:07 AM
i know people who have been in school for 17 years, does that mean they are in 17th grade?
 
@Wietlol Then it depends where you start - do you have to start over from 1st grade? I don't think so.
 
Wait wait, let's sort things out - things are different in each country - so it won't help arguing over them
 
@Wietlol 17 years of doing one grade after another, o did they have to redo some grades? Because if you fail 6th grade, you gotta repeat 6th grade.
 
In our country, there's no kindergarten - 1-5 is Primary School and 6-10 is Secondary School
 
You may be in your 7th year, but you're still in 6th grade
 
10:09 AM
@LeeButler The EU wants arrays to start at 1! That's why you need brexit!
 
We 1-4 primary school and 5-9/10/12/13 secondary school
 
11th and 12th are called Senior Secondary or Intermediate Education
After that, you gotta get into Universities or Colleges
 
Reception (effectively year 0), year 1, year 2 are "Key stage 1, IE the first 3 years. Year 2 through 6 are "Key stage 2", and after that you move from "primary school" to "High school". Years 7-9 are "KS3", the lower years of High school, then years 10 and 11 are KS4, the upper years of high school and when you actually start getting qualifications
 
I guess in US it is like this - KG to 5th - Elementary School
6th to 8th - Middle School
 
we have 8 years of "basisschool" (teaching meth and stuff), then we have 4 to 6 years of "middelbare school" (teaching biology... like sex), then you can go to stuff like a university, which can take any number of years based on the certificate you want
 
10:10 AM
9th to 12th High School
 
Since I left, KS5, often, but not always called years 12 and 13, has become mandatory, and is where you get your qualifications to go to university
 
I am 14 years old right now
 
Here there are three years of kindergarten. Then either six years of elementary + 3 years of middle school + 3 years of high-school, or 8 years of elementary + 4 years of high-school (same 12 years, but might be divided differently in different schools)
 
And I've spent about 10 years at school (KG to 9th)
In India, there are 2 years of Kindergarten, but I did only one since I was in US when I was in Kindergarten
 
@UmeshKonduru Interesting that it's considered one block. In Israel - and I believe in the US as well - "school" starts at 1st grade/age 6, and kindergarten is considered a separate "track", not part of school.
 
10:12 AM
Anyway, my question about tutorial has triggered a highly off-topic discussion lol
 
Off-topic. That's what we do here.
 
There is a rough link to how the US system works here, KS1 = kindergarten, KS2 is Elementary, KS3 is Middle, KS4 is high, KS5 is the weird bit between high school and real university courses
 
We call KS5 "College" usually, but apparently that means something else in the US
 
Yeah, college in the US is a thing that gives you a bachelor's degree.
 
mr5
10:14 AM
after 6 hours of EF Core. I think I can already make a "decent" Web API*
"decent" being Microsoft's standard
and *Web API as coined by Microsoft
 
anyone can make a web api
but not everyone can make the service behind it
 
I always associate US-college with lots of drugs, sex and alcohol. Dunno why.
Then again I guess most colleges/unis are like that
 
@Wietlol Here's a very detailed write-up of a proposed standard for writing web apis. VERY detailed. opensource.zalando.com/restful-api-guidelines
@Xariez It makes sense. It's the first time most people are out on their own, not living with their parents.
 
!!giphy one does not simply create a web API
 
10:17 AM
Not what i was going for
 
In the US, specifically, people often travel very far for their college. Far from home, free from inhibitions.
 
Yeah, I guess @AvnerShahar-Kashtan
And as someone in a Finnish UAS, studying is a lot easier with a alcoholic beverage close by
Within it's limits of course
 
mr5
@Squirrelintraining why is the web API a returns HTML?
@AvnerShahar-Kashtan we do that too in my country
 
@AvnerShahar-Kashtan Holy fuck that's big
 
@mr5 don't not don't care
 
10:23 AM
3 mins ago, by Lee Butler
@AvnerShahar-Kashtan Holy fuck that's big
 
mr5
@Squirrelintraining okay. I caren't don't
 
Holy fuck-that's-big?
 
Yesn't
 
mr5
@Xariez that's what she said
 
@Xariez Meh. Not as much fun when the star board doesn't show who he's responding to. :)
 
10:25 AM
True
 
11:16 AM
In ASP.NET I have a Route("list") and a Route("{id}"). When I go to /list, it actually goes to the {id} route. Anyone can give me some tips? I use the following routes:

            routes.MapRoute(
                name: "DefaultAction",
                url: "api/{controller}/{action}"
            );

            routes.MapRoute(
                name: "DefaultId",
                url: "api/{controller}/{id}",
                defaults: null,
                constraints: new { id = @"\d+" }
            );
 
How can it distinguish between them?
What are the controller actions you have? What does id map to?
 
I hoped it could distinguish between them by the order in which I added the mappings in routes.MapRoute.
{id} maps to GetById(PKType id) // some generic
list maps to List(opt_var, opt_var2, opt_var3)
 
And the actions themselves are annotated with [HttpGet("list")] and HttpGet["{id}"]?
Or do you only use the routing?
I actually almost never use the route mapping. I prefer explicit attributes.
 
[HttpGet]
[Route("list")]

The [HttpGet("list")] is dot net core.
 
I too prefer attributes
 
11:23 AM
++
 
So I could remove the whole MapRoute part?
 
@ErwinOkken Ah, yes. Can't remember which is which.
If you have teh attribute, and the call to MapAttributeRoutes, I think the route mapping is redundant.
 
I use attributes basically everywhere. I thought it was a combination :(
 
Attributes are cool because you can see all the routing info actually with the method, instead of it being somewhere else
 
I like attributes but I never knew it could be there standalone xD
And my issue is fixed. Thanks guys :-p
 
11:26 AM
You just need to make sure you call MapHttpAttributeRoutes, which scans the attributes for all the controllers and registers them as routes.
(It's there by default, but don't remove it accidentally)
 
Yeah I got it, it's somewhere in Startup. It also uses my ODATA stuff
And my own provider that adds api/ in front and allows inheritance in the routing
 
11:42 AM
Party Part
Disco Disco
 
11:56 AM
Disco *Disc
 
12:09 PM
the what?
on ConfigurationManager.AppSettings["name"]
does that mean that ConfigurationManager.AppSettings getter caused the issue?
that getter cant possibly throw an NRE afaik
 
because I just looked at the implementation and I cant see anything that could throw it
public static NameValueCollection AppSettings
{
  get
  {
    object section = ConfigurationManager.GetSection("appSettings");
    if (section == null || !(section is NameValueCollection))
      throw new ConfigurationErrorsException(SR.GetString("Config_appsettings_declaration_invalid"));
    return (NameValueCollection) section;
  }
}
ConfigurationManager.GetSection is a static method
 
Maybe it's deeper into GetSection(), but taht was inlined/optimized so it doesn't show up in the stack trace.
 
SR.GetString is a static method
hmm...
AAAAAAAAAAAARRRRRRRRRRGGGGGGGGGGGGHHHHHHHHHHHH
why is this not working!?
 
you don't have a setting called name
 
12:25 PM
no, the ConfigurationManager.AppSettings causes the issue
 
sometimes it happens when I only add the setting in the config, and don't reopen Settings.Settings
reopening Settings.settings asks if it should regenerate the settings, and suddenly it works
 
Rebuild
 
If you're having weird issues, always rebuild, because for some reason that fixes things
 
Nothing is safe from it.
Just like Alt + F4 and reopen.
 
12:35 PM
Or turn it off and on again
 
Or format and reinstall.
Or redevelop the core equations of physics that underlie our modern electronic processors. That'll fix it.
 
we are talking with Wietlol. Careful. He might do it.
 
nah
!!wietlol2
maybe
the thing is that this application works fine on 4 of our 5 servers
dev, test, public dev thingy, 2 production servers
on one of the production servers, this happens
nowhere else
 
Almost in on the last hour on this years summerjob. Damn this summer has gone fast
 
Maybe ConfigurationManager.GetSection("appSettings") is returning null
If only there was a handy debugging tool, or a way of breaking the application at a particular point of execution
 
12:43 PM
@LeeButler if that returns null, the AppSettings throws a ConfigurationErrorsException
 
I wana go to bed for some weird reason..
 
except if SR.GetString throws an exception
 
SR is null?
Or ConfigurationManager is null
 
SR is a class... so...
ConfigurationManager is also a class
 
Do you mean static class
 
12:45 PM
maybe, but that is irrelevant
both of those methods are static methods
their qualifier is a class and cannot be null
 
Are you sure?
 
doesnt matter if that class is static, abstract, sealed, or whatever
 
Alternatively, is that 1 produciton server running the same version as the others
 
I am 200% sure
yep, yesterday we threw out the latest version of it on those production servers
 
But did it actually apply?
 
12:46 PM
yes
 
One of those things that you've said must be false
 
none are
the version is also logged and it says it is the version we deployed yesterday (the number is auto generated on each build)
the version is the same on both production servers
so, the version is the same
a static method invocation cannot possibly throw an NRE (the invocation, not the method's instructions, those can ofcourse throw an NRE)
 
Then the method must not be static
Or maybe null has been redefined
 
the app.config files are identical
> public static object GetSection(string sectionName)
> public static string GetString(string name)
I have the implementations right in front of me
this is the System.Configuration namespace for those that dont know the ConfigurationManager
 
Obviously something is not as you think it is
 
12:51 PM
(for those that do know the ConfigurationManager, it is also in the System.Configuration namespace.)
 
jeezus:
 try {
       try {
           s_configSystem = new ClientConfigurationSystem();
           s_initState = InitState.Usable;
            }
      catch (Exception e) {
                            s_initError = new  ConfigurationErrorsException(SR.GetString(SR.Config_client_config_init_error), e);
                            throw s_initError;
                        }
                    }
    catch {
        s_initState = InitState.Completed;
         throw;
}
 
the top 5 results on google are only about the result of the appsetting value being null (with various reasons) and the connectionstring being null
 
Two layers of try/catch, the outer one catching the inner one and setting the s_initState.
 
that outer one is basically a finally
 
I wonder if it's an artifact of the decompiler.
 
12:54 PM
try
{
    s_configSystem = new ClientConfigurationSystem();
    s_initState = InitState.Usable;
}
catch (Exception e)
{
    s_initState = InitState.Completed;
    throw new ConfigurationErrorsException(SR.GetString(SR.Config_client_config_init_error), e);
}
 
Not really finally, but it will only be called on error.
 
true
 
GetSection doesn't return a NameValueCollection anyway
 
hmm... mine is different
private static void EnsureConfigurationSystem()
{
  lock (ConfigurationManager.s_initLock)
  {
    if (ConfigurationManager.s_initState >= ConfigurationManager.InitState.Usable)
      return;
    ConfigurationManager.s_initState = ConfigurationManager.InitState.Started;
    try
    {
      try
      {
        ConfigurationManager.s_configSystem = (IInternalConfigSystem) new ClientConfigurationSystem();
        ConfigurationManager.s_initState = ConfigurationManager.InitState.Usable;
      }
      catch (Exception ex)
just slightly though
 
12:57 PM
What do you mean it's different? So it isn't the one which is part of the framework?
 
Mostly it looks like your decompiler adds explicit references to the current class for static members.
 
i think the decompiler Rider uses favors early returns over nested if-then blocks
it might also be because... .net 4.0
 
1:58 PM
Well, this summer job's done so I'll probably be less than usual on this chat (will try to visit every now and then however). Thanks to everyone, and bai!
2
 
Have fun in sunny Finland.
 
Goodbye and good luck with whatever it is
 
Guys, why might something fail when reading a string from console and initializing a static var with it before main?
 
What is it throwing?
 
TypeInitializationException
With message saying something about NRE
 
2:04 PM
Console app on dotnet core?
 
console
 
But are you using core
 
ah nope framework 4.6
 
@Squirrelkiller It works on my PC
 
Works on mine too. But crashes on apprentice's pc.
He asked me why that doesnt work. I didnt have an answer. I built the same setup on my machine, it didnt crash.
Built the same thing on dotnetfiddle. no crash
 
2:07 PM
quite possible that the console wasn't allocated yet.
 
He could type an input, it waited patiently. It only crashed when GetString() returned.
 
That was my though but I thought it's quite unlikely
 
after the return, when F10-ing over the closing curly brace
 
What's the stacktrace of the TIE's inner exception?
 
Didnt see it, will lok at it tomorrow, apprentice is gone now.
 
2:12 PM
Damn, deleting code is way faster than rewriting it
 
I'm also kinda gone now but I'm also on mobile online now.
 
@LeeButler Ctrl+A - Del
 
[ctrl]+[a], [ctrl]+[x], [ctrl]+[s], [ctrl]+[c], [alt]+[f4], [win]+[reboot]
 
2:46 PM
is Microsoft.Extensions.DependencyInjection.ServiceProvider classed as a DIC?
 
2:58 PM
> Disseminated intravascular coagulation
I'm gonna say no...
 
3:09 PM
DIC stands for dependency injection container.
lol
 
I have a hopefully easy question about GIT in VS... Is this an appropriate place to ask it?
 
Yes
!!dontask
 
Jul 3 at 19:41, by Kendall Frey
Don't ask if you're allowed to ask a question. Don't ask if anyone's available or knows how to use what you're using. Don't say you're going to post a question. Just ask your question.
 
Sorry. :)
Anyway, new to GIT, trying to figure out branches, so I made a new one, made a few changes to test out an idea, checked out master again to do some bug fixing, and noticed that all my test changes were still there... Am I doing something wrong?
 
Did you make the changes in the new branch?
i.e. check out the new branch and commit to it before checking out master?
 
3:21 PM
I didn't commit it before checking out master again
I'll have to try doing that
Ah ha! That appears to have been my problem.
Thanks!
 
If you don't commit something, it doesn't exist in a branch, it only exists in your workspace.
 
So do I need to commit the branch before I merge it back into master, once I'm happy with it? Or does that kind of happen automatically?
 
System.ComponentModel.Win32Exception (0x80004005): The current process has used all of its system allowance of handles for Window Manager objects
Damn, I just want to open hundreds of windows
 
3:39 PM
@AndyD273 Merging is a completely separate step
 
@KendallFrey K. Thanks for the tip. I'll have to play around with it more, but at least I think I'm starting to get how it all works.
 
private void YeAncienteFileeSaveeMethode() - 0 references
...
 
Is it a good idea to use a DIC in C#?
 
mr5
😁😁😁
Just bought oxelo town9 scooter
Going to use it tomorrow for work 😁
@a5266680 it's better to use fingers when doing C#
 
4:07 PM
Was that a joke, mr5?
not sure why people don't understand what DIC stands for
 
 
@a5266680 Because it's not a common acronym.
I can probably figure out what you mean, but it might mean something else.
 
5:08 PM
Hi
Someone that uses asp.net ?
I need some help
 
ask your question
 
well I need to do an web app
a fitness web app, is quite simple but I'm still a noob
 
5:29 PM
and im back
and its night
more like early morn.
 
6:02 PM
import ASP.Net.Fitness
 
mr5
6:18 PM
NoSleepTI8
 
 
1 hour later…
7:20 PM
It was like 3 days ago but I've only just found out
 
7:38 PM
3 days so long ago
 
can protected configuration be hacked? and by hacked I mean not directly, but if the WPF or asp.net app decrypts the configuration section....then can the decrypted information be obtained somehow by a hacker?
 
Gezz the update is 3gb
 
7:55 PM
I love how I need to update the installer to update VS
 
Oh look at you only having a 3gb update
 
8:31 PM
only I mean I don't have any game ide stuff on here
 
I used to have .Net desktop, UWP, Xamarin, Unity and unreal components. At one point I also had C++, but I don't think I had that at the same time
HOly shit I forgot how bad default VS fonts are
 
00:00 - 10:0010:00 - 21:00

« first day (2860 days earlier)      last day (2089 days later) »