« first day (3174 days earlier)      last day (1767 days later) » 

12:00 PM
That's far too broad a question.
 
Yes you should use a web application, better than fiddling with GDI Windows only.
 
You can do it in a web application, sure. You can do it in WPF as a Windows desktop app. Depends on your needs and use-case.
 
Man you could do it in javascript, f*** C# :)
 
Let's put it this way - the graphical requirements of a mind-map app don't preclude web-apps or native apps, mobile apps or desktop apps. So your choice of platform shouldn't be determined by that factor.
 
Must. Refrain... From... Kicking....
 
12:01 PM
there's bound to be a minmap.js
minmap LOL minDmap.js
 
@HollyStyles You can probably write something on top of d3.js. Maybe something already exists.
 
!!googleme mindmap.js
 
@HollyStyles this looks good :)
 
12:03 PM
!!googleme worlddomination.js
 
Better would be something like this -->
 
that mind map looks so ugly
 
Is it called a graph?
 
theres little to no reception in this office so i find myself with my headphones on with no music, forgetting that i've got them on and then being scared shitless when music starts to play
 
12:03 PM
its way too crowded
 
@kame Yeah, a mind map is a form of graph. Using a graphing library (like d3) as the basis is a good start.
Using something more specialized built on top of d3 might save you even more time, at the cost of being less flexible.
 
@Harry at least you managed to get your headphone on
I use in-ear plugs
and I sometimes spend 5 minutes trying to figure out why they wont fit
then I realize I try to put the left plug in the right ear and the right plug in the left ear
 
I just inflict my musical tastes on the rest of the office.
 
instead, I should put both the plugs in the right ears
 
I can only wear over-ears for long periods. buds/on-ears just get painful after an hour.
 
12:05 PM
ive gotta go for over ears 1) to avoid that happening 2) because theyre just better
 
With ANC
 
I have ear plugs with noise cancelling
 
@AvnerShahar-Kashtan D3 looks great. And then I could combine C# and JS?
 
they are really good and work flawlessly
 
For that truly disconnected ambiance :)
 
12:06 PM
othere are only 2 downsides
1, they arent wireless
 
@kame D3 is a front-end library that's made to run in your browser, meaning JS (and derivatives).
 
@Wietlol that's the only way to do it right
 
2, they cost 100 euros
 
100 EUROS
 
100 EUROS
 
12:07 PM
100 EUROS
 
GASP!
 
You can use C# for the back-end, to fetch the data, and JS for the front-end and the graphical output.
 
@AvnerShahar-Kashtan this is a cool project for training
 
@HollyStyles glad you corrected that i thought you were trying to say GDP
 
Nobody buys Sony
 
12:08 PM
...
i have sony...
 
Oops
 
yeah sony is great
i have sony headphones and a mp3 player
 
Better than Bose?
 
I have to say my favorite pair of headphones are cheap-ass $30 Skullcandy bluetooth headphones and they're really good.
 
sennheiser?
 
12:09 PM
@HollyStyles I can't tell i never had Bose
 
nothing is better than bose
 
I am old
 
but sony is a lot cheaper
and i am a teenager
3
 
most asian Brands are trash
 
I've had good Sennheiser earbuds, too.
 
12:09 PM
but not the japanese ones
especially Sony
 
so i cannot afford things that arent great
 
I used to only buy sennheisers when they had the only acceptable priced products with decent quality
 
I've got a pair of skull candy in ears
cost me £10
haven't failed so far
music quality is decent
 
@Hans1984 what about hyundai
 
thats good too
but Samsung and huawei for example are trash
overpriced trash(Samsung)
 
12:11 PM
@CaptainSquirrel Yup. I'm no audiophile, but I can tell shitty headphones, and my Skullcandy Uproar Wireless aren't shitty. Totally worth their price and more.
 
you just Need to flod the market long enough
 
@AvnerShahar-Kashtan mine are wired :D
 
eventually you can sell your stuff costly
thats what Samsung did
 
I think they might be getting slightly quieter
but i also think that might be me going slightly deaf so
Swings and roundabouts
 
but thats just my oppinion
it also goes back to me having a very bad experience with my Samsung Smartphone years ago
 
12:13 PM
I have these. Does the job: mixcder.com/products/…
 
Looks good
i have similiar ones from sony
 
Sony ANC will be better than these
 
The issue i have with actual headphones is unless they are designed a specific way, the top of my head starts to hurt and parts of my ears hurt too
 
But you have to pay for it
 
Astro headphones did everything right, but i have no pair :(
 
those are mine
 
@j.Doe what do mean "without warning" ?
Oh because it's not declared (string? text ... in the parameter list?
Should be a warning on compilation, if you optin.
 
"without warning" means literally without warning even on compilation
 
So have you opted in for the warnings?
 
<Nullable>enable</Nullable>
Don't make of me idiot please
 
12:29 PM
Well I have no idea myself as I have not tried this myself and have not absorbed all the documentation
Shouldn't it be : <NullableReferenceTypes>true</NullableReferenceTypes>
 
Not from Visual Studio 2019.2
 
Sometimes the documentation isn't worth sh*t
 
Documentation is good
>The Nullable element was previously named NullableContextOptions. The rename ships with Visual Studio 2019, 16.2-p1. The .NET Core SDK 3.0.100-preview5-011568 does not have this change. If you are using the .NET Core CLI, you'll need to use NullableContextOptions until the next preview is available.
 
Are you actually dereferencing the text parameter in the method code?
 
When try text = null in Index action it produces normal error Converting null literal or possible null value to non-nullable type.
 
12:35 PM
When does it make sense to have a protected constructor inside a class?
Like there is a class called : BinaryWriter in .net framework which has protected constrcutor
 
@ILoveStackoverflow When you want it to be an abstract base class, and only allow concrete children to be instantiated.
 
I am not getting why does it has protected constructor since its a concrete class
 
No help there so time to ask .Net team directly. Thank you C# chat for nothing again
 
Like I said, rubber ducks here. You're welcome :)
 
12:43 PM
Oh god what happened
 
quack quack
ducks!
 
cue eerie music
 
haha
 
@ILoveStackoverflow To protect it so that you can create public class MyBinaryWriter : BinaryWriter { public MyBinaryWriter():base(){…}} and override the default constructor. But you cannot directly instantiate:var bw = new BinaryWriter() <- does not compile.
 
12:52 PM
maybe it's because it's considered non null from the caller, because the whole stack is <Nullable>enable</Nullable>. So it's an exceptional case if the incoming parameter is null.
 
am clumsy
confirmed
 
ever eaten cold ramen?
I had to eat cold ramen today because the microwave is broken :(
I added the water before I knew, go figure
 
Nullable types are to signal your intent, not warn when the client ignores it. So when the signature is public void some_method(string foo){…} you intend foo not to be null and therefore of you don't protect your invariant i.e. foo = foo ?? "some_default"; in the method you get a warning.
 
@HollyStyles but than why not mark it as private than?
 
Trying to do math with time is hard
Trying to do math is hard
math is hard
 
12:58 PM
@ILoveStackoverflow public = anyone, protected = just my fiends, private = nobody.
 
Just because BinaryWriter class has virtual method that is why it is not marked as sealed?
 
you shouldn't override methods, you should override classes
overriding individual methods is dangerous because you don't know what the relationship is in the class or how they're called
if you're not careful, you create a cyclic loop
 
math's not hard it just has crap syntax :)
 
@AvnerShahar-Kashtan Whas that molekule that one duck is thinking about?
Also WtF is that artwork on those dicks Oo
 
does virtual method design require careful consideration?
 
1:08 PM
designing virtual methods definitely requires careful consideration
from a compiler point of view
 
Everything in programming which is should make sense require careful consideration
 
but why it is like that?
 
especially since I made virtual methods yesterday
 
You are virtual AFAIK Wietlol
 
but making methods virtual shouldnt be necessary
as long as they are exposed by a public interface
overriding classes shouldnt be necessary
 
1:10 PM
hey guys quick question. I was trying to be a helpful member of the so community. and I'm trying to work on the answers I give. Do not upvote my post because im asking. I'm just wondering if someone can tell me what was wrong with my answerr so i can give better answers to questions in the future
 
interfaces should use vertical inheritance, classes should use horizontal inheritance
 
-1
A: Declaration Vs. Definition for classes

Samuel Wakemanthose are all definitions. a declaration in c++ has no {}. declartions are generally done in a header file. in a header file you might say something like public class student{ public void UpdateGpa(float grade, int credits); private float gpa; private string name; private int credits; } t...

 
:46593795 hehe that link :D
 
@ILoveStackoverflow Just like anything that is made to be extended, it requires thinking about more than just your immediate usage.
 
Avni now I've got that song stuck in my head
,ty
 
1:13 PM
yw
 
what song
 
♪ Duck, Duck, quack quack♫
 
i dont know it
dont really want to know it. not gonna listen to it.
just hit play...
 
@Squirrelintraining Bonus fact: the song was written (and sung? not sure) by Alan Moore, comic writer of works such as Watchmen, V for Vendetta, Batman: The Killing Joke and others.
 
1:15 PM
though in all seriousness if anyone could check that SO quesstion link from earlier and tell me how to write better answers id really appreciate it
 
@SamuelWakeman look at the artwork
 
@SamuelWakeman Don't sweat the occasional downvote. People downvote for all sorts of reasons. It could be as simple as "there was a mistake in that answer" to "I, personally, don't like that style", to "I'm an ass who downvotes people".
 
hmm... this better be good
 
just annoying because that means i can longer comment on posts to get clarifaction on questions
 
user10864482
good morning
 
1:17 PM
morning
 
Yeah, but one upvote = 10 downvotes, so once you get a couple of upvotes to your name, downvotes will barely be felt.
 
noted
 
and whats the thought process behind having a protected member inside a comncrete class?
protected Stream OutStream;
 
@ILoveStackoverflow Maybe it won't always be concrete?
 
ty to whoever just did that. you know who you are.
 
1:20 PM
@ILoveStackoverflow There might not be a good reason for it. BinaryWriter is a very old (.NET 1.0) class and the thinking might have changed since.
 
so its not good to have a protected member inside a concrete class?
 
Does it have only that ctor?
Ah, there we go. No, it also has public ctors.
 
@ILoveStackoverflow protected members are fine if you design it to be extendable
 
Which is what you would ordinarily use. But the protected ctor is there to make sure that if you inherit this class, you would always call one of the base-class constructors, either explicitly or implicitly, to initialize some variables.
 
1:23 PM
@ILoveStackoverflow If you don't intend on extending the class, then at worst it's just pointless
 
Here there is a protected member
  protected IHtmlGenerator Generator { get; set; }
I dont understand why protected
 
Though generally I'll make members protected if I think any extended classes would need to make use of them
 
Now this class NopActionConfirmationTagHelper is not inherited
 
@SamuelWakeman I think this time you tried too hard, your syntax is a little off (indentation missing) and there's more to read than there needs to be. Sometimes less is more.
 
than why it is protected ?
 
1:24 PM
@ILoveStackoverflow The distinction between public and protected/private is far greater than public/protected and private
 
@ILoveStackoverflow because it is designed to be extendable
 
thank you ill try to be succinct in the future
 
don't read into it too much. It's not public. That should be important enough
 
user10864482
@SamuelWakeman how things are doing for you?
 
Currently I am checking out some open source projects to learn things
 
1:25 PM
going ok. i set up a general table structure to work with locally
to make up some progress just working with the site for filtering and searching data
gonna save worrying about data importing for another date.
rn
i stored that that gsi though in my useful links section of the project readme
 
and so when I see something which is confusing I ask
 
@user23333 is it common practice to put useful links in a readme? i assume probably not but for projects where the team is this small it's probably fine?
 
user10864482
@SamuelWakeman personally until I deliver a project I keep a todo file and I leave note in it
 
I swear, i look away from chat for 2 seconds and recognize none of the conversations going on :(
 
a todo file sounds like a great idea
gonna make one
 
user10864482
1:38 PM
@SamuelWakeman I noticed you often use "rn"
What does it mean?
 
@user23333 "right now" I assume
 
guys what would you expect from a new junior dev in terms of ability? still need a fair bit of training?
 
@user23333 mike the liar is correcct
well as a coder expect to always be learning even when you get to be a senior developer
 
user10864482
@Harry I would expect them to build amazon
 
by themselves
...
 
user10864482
1:50 PM
yes, mvc is over-rated. I would expect him or her to do it in web assembly
 
Web Assembly?
Please, that is too easy
I build all my Amazon rip offs in Hex, convert that to binary and then compile to regular assembly
 
@Harry we are joking because im an intern and that is basically what is expected of me in some capacity. I'd guess junior developers would definitely still need some training especially if working with an unfamilliar framework
 
@CaptainSquirrel butterflies, dude
You can probably even order them off Amazon.
 
Kidnap and ransom Bezos off for a majority share of the company
 
1:55 PM
@Harry Every person starting a new job needs a fair bit of training. Junior. senior, everybody.
 
so its not uncommon to give them pluralsight courses to work from?
 
I'm starting a new project now, and the first step now is learning. There are always new technologies to learn.
 
Even if you know everything there is to know about every technology in existence, you still need to learn the domain
 
@Harry That sounds like more than most places would bother to do. Usually it's "here's a wiki page with a couple of links to articles to learn from".
 
@AvnerShahar-Kashtan is that a good thing?
 
user10864482
1:56 PM
yes
 
I started my new job, have done training & some work for the past 3 weeks
 
so i've just been told i need to do some stuff on pluralsight and thats not them saying im an idiot
 
@Harry Yes. Pluralsight courses tend to be above-average.
@Harry No, it means they're serious about training their new hires.
 
They didn't call you an idiot @Harry?
 
thank fuck for that
 
1:58 PM
I can remedy that for you now
 
id expect nothing less from you xx
 
You are a wizard idiot @Harry
 
i hate you
 
a widiot
 
1:59 PM
did i ever tell you guys my initials spell HP
 
Your response made me happy
OMG
HE IS THE ONE TRUE HARRY
 
user10864482
@harry to give you an idea, the framework we use take about a year to get to know it
 
There's a graveyard a couple of cities over from here with a bunch of British soldiers who died here in WWI, one of whom is named Harry Potter. Would be a popular tourist destination if it wasn't a neglected graveyard in a crappy city.
 
when i went to italy in february every italian i came across at the airport who need to see my passport told me in italian they thought my namre was harry potter
 
Oh, WWII. Whatever.
 
2:00 PM
@AvnerShahar-Kashtan im kinda glad its not a tourist attraction...it's a graveyard not a theme park
 
Yeah, well, some tour guides do take people there. *shrug*.
 
You'd hope even if it was, people would be respectful about it
 
^
 
I'm going to go out on a limb here and say that no, not everyone is.
 
@user23333 i have a feeling this framework (sitecore) I'm using at this new place is going to be the same sort of experience
 
2:03 PM
Anyway, it's time to head home. Good night, and beware the sinister ducks.
 
user10864482
we use wcf mvvm with telerik. It is intimidating
 
2:14 PM
on a different note does anyone know why my StackExhange profile image seems to always go from facebook and even though my SO profile picture has been changed you still see my fb profile picture. is there anyway to override that?
this is the main link i found but i only found that work for SO and not SE?
 
steal facebook from zucc
 
102
Q: How do I change my profile picture, or avatar?

SLCWhere does the image come from? How do I change my profile picture, or avatar? How do I change my profile picture on all SE sites at once? How can I use different avatars on different SE sites? How do avatars work? How do the SE sites know when I changed my Gravatar? Why do SE sites show a differ...

@Harry new get rich scheme
 
@SamuelWakeman I really hope you haven't changed it to some rotated squirrel image.
 
change it to a rotated roach
be like me
im starting a movement #roachrightsmatter
 
user10864482
I think everybody should delete their fb account
 
2:19 PM
#bigbrother 1984?
 
user10864482
we live in a capitalism of surveillance, yes
 
i changed it to a much more acurate depiction of whats going on when i code
 
do you become a roach when you code?
 
One day a big asteroid is gonna >rm -f /*
 
2:22 PM
It takes forever for new avatars to propagate out to the entire network
That shit is cached hard
 
how long is forever?
is there a way to invalidate?
anyway lets move on to some actual relevant coding questions
i set up a couple of my models like this
 
There's only two hard problems in programming - naming things, cache invalidation, and off by one errors.
 
public class Product
    {
        public int      ProductID { get; set; }

        public string   Name { get; set; }

        public string   SubCategoryName { get; set; }

        public double   Price { get; set; }

        public string   Seller { get; set; }

        public bool     Approved { get; set; }

        public string   Imgfilepath { get; set; }

        public float    Weight { get; set; }

        public float    Volume { get; set; }

        public string   SKU { get; set; }
        [Key]
        public int ProductID { get; set; }

        public string Drive { get; set; }

        public string Grade { get; set; }

        public string Head { get; set; }

        public float Size { get; set; }

        public float Length { get; set; }

        public float MaxLength { get; set; }

        public string Scale { get; set; }

        public string Material { get; set; }

        public string Finish { get;set; }
    }
 
Half of the property names are aligned and the other half aren't hiss
Also stop doing that
 
oh yeah mb
 
2:26 PM
Use pastebin or gist
 
ok
sec
so is there a way to properly link the fk
on product id?
like i could manually delete and add object until they line up but thats really bad
 
huh?
I don't understand the question
 
so like the fastener models doesnt really exist outside of the product model
maybe i should extend it
is extending models a thing?
 
@MikeTheLiar at least all property types are aligned
which is something that doesnt happen for our models
 
Good morning !
 
2:40 PM
slowly figuring it out on my own
@Sakthivel good morning to you
why can you only edit and delete your own posts for so long
?
in this chat
 
trying to containerize a .net core console app. The build command downloads the sdk from mcr.microsoft.com as i mentioned. is it necessary ? or can i use the sdk references in the project directory ?
 
i think it is the same in all SO chat rooms
editting messages is something you do when you miswrite something
not really to change the history
 
@SamuelWakeman i think after a period of time. after that the chat registers in transcript and history i guess
 
the only downside of it is that you cant hide images any more
 
user10864482
@Wietlol it make me think a snapchat-like image hosting would be nice
 
user10864482
2:45 PM
one that expire after x
 
user10864482
and then send message as image and boom, no more history
 
hey my profile picture updated yay
 
3:08 PM
guys quick quetion about visual studio whenever i open my sql server object explorerer it wont dock to the left. it will open as a windown the left but it wont dock to the left like the toolbox does when i open it
is there a way to make it do that
if only there were some pin button that made it stick there....
 
user10864482
vs version?
 
as i asked the question i realized it
im using 2019
 
It should stay wherever it's docked but yeah, the pin works too
Pin actually collapses the pane I think
 
3:37 PM
has anyone ever used sololearn
 
When does EF close a connection?
Trying to figure that out in profiler, in a using statement..
The connection is still open even when outside the using block
I thought it closed up after that, but seems to only close when the whole process completes
 
You're probably waiting on GC
Disposables get disposed whenever the garbage collector feels like it IIRC
 
ya they're on their own time table
I thought the using(DbContext){} (conn.close)
 
You can force (request?) a garbage collection I think
169
A: How to force garbage collector to run?

TalentTunerIt is not recommended to call gc explicitly, but if you call GC.Collect(); GC.WaitForPendingFinalizers(); It will call GC explicitly throughout your code, don't forget to call GC.WaitForPendingFinalizers(); after GC.Collect().

 
Maybe, have to see in the finally block
 
3:48 PM
I don't know how wise forcing the GC to run is
 
run the gc in the finally?
this is a demo app
 
28
A: Closing connections explicitly in Entity Framework

Giovanni GalboThis isn't the "normal" way of using EF. EF usually manages the connection for you. However: Managing Connections in Object Services (Entity Framework) Object Services exposes the EntityConnection by means of the Connection property. This enables you to manage the connection and transaction...

That's more along the lines of what I would do
 
Ya that makes it feel like raw sql more for the connection handlers
By default, Object Services manages the connection to the database. It opens connections only when required, for example to execute a query or to call SaveChanges. Object Services then closes the connection when the operation is complete
That's a lie
 
Well it doesn't close the connection before it completes
"When" is relative, it's a frame of mind
 
3:55 PM
"When you finish playing video games, can you wash the dishes"
 
Connection stays open during my for(int.max)
 
I bet if you add another using after the first one it'll close the first one
I wonder what happens if you run a GC.Collect() somewhere in there
 
Linq call happens, before the next Linq statement the connection closes and re-opens
Nope GC doesn't close
 
user10864482
4:15 PM
for(int.max) darn
 
5:53 PM
my bad
 
comes back after lunch to see two comments removed and a my bad
what idiocy happened here
 
okay,   public ReadOnlyCollection<Player> Players => players.AsReadOnly();
@SamuelWakeman I didnt notice the => and was wondering why mention .AsReadOnly(); if you're adding collection into a readonlycollection
 
sounds like a question id ask
 
3
Q: DDD: Identifying aggregate root in a simple example application domain

tjuggI'm trying to read about DDD, and i'm struggling a bit trying to to identify aggregate roots. I wrote a really simple app to divide players into different teams inside a game. So my entities are something like this: Game Entity: public class Game : DomainEntityBase, IDomainEntity { private...

 
6:40 PM
anyone here?
 
6:57 PM
yep
 
currently strugglying with some website structure asp.net
i extended a model and placed a view folder inside another views folder.
 
A daring move.
I am struggling with a stiff double brandy, and winning :)
 
i mean it makes sense to me right now
 

« first day (3174 days earlier)      last day (1767 days later) »