« first day (2862 days earlier)      last day (2081 days later) » 
01:00 - 14:0014:00 - 19:00

1:11 AM
posted on August 17, 2018 by Scott Hanselman

If you've looked at csproj (C# (csharp) projects) in the past in a text editor you probably looked away quickly. They are effectively MSBuild files that orchestrate the build process. Phrased differently, a csproj file is an instance of an MSBuild file. In Visual Studio 2017 and .NET Core 2 (and beyond) the csproj format is MUCH MUCH leaner. There's a lot of smart defaults, support for "globb

 
 
2 hours later…
3:03 AM
giaw
 
3:25 AM
Hmmm.. A beginner question:
How do I know the moment of my 2 or more async task is all completed?
I mean is there has more reliable solution
 
4:02 AM
 
 
2 hours later…
5:37 AM
hello all
 
Gooood morniiing CeeeShaaaarp!!
Have you encountered any previously unknown compile errors lately?
@nyconing You can pass the task a TaskCompletionSource that then tells you when hte task is finished
 
sup
hahahaha
energy on the high level ther
 
Oh that's just the 5 minutes after sitting down that my body is still used to walking and needs to put the energy somewhere, so it ends up at my figurative mouth
So now I have my coffee, I can put my circadian cycle to sleep and get to my workadian cycle - permanently almost falling asleep, being totally awake only when getting coffee.
 
6:21 AM
ohayou
 
Morning Proxy o/
 
Good morning.
 
6:46 AM
\o/
/°\
\_/
This didn't work so hard I forgot what I was going for in the first place
is there a nicer way of doing
object.someVar = someArray[1];
if(object.someVar == 0) object.someVar = 1;
?
I saw, the ?? operator doesnt work for zero
 
mr5
7:10 AM
why would ?? work for ints?
o/
\o
\o/
 
~o~
Because maybe I don't wanna put a zero into my int that's gonna be a datetime parameter on the next line?
 
7:27 AM
@Squirrelintraining lol
 
7:58 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
Why is room ded?
And why is the first thing i Read when i get to work is, that @Rish writes lol to me
Aswell can i ban him from room for that progile picture?
 
We should just do a Thanos on this room at some point you know.
 
@Squirrel no
@Roel why the hell would Thanos not just double all the resources when that's his problem?
 
@Squirrelkiller can you make someArray Nullable<T>?
@RoelvanUden I don't get it.
aswell teneray operator.
someVar = (someArray[1] == 0)? 1 : someArray[1];
 
@Squirrelkiller You're asking some difficult questions here.
 
One doesn't simply double all the resources.
 
8:07 AM
lol
Then ask 'why boolean exist'
 
boolean tells the truth
@Squirrelkiller Can't you design your code so that it doesn't have that behavior, or just iterate the entire array at once?
 
?? check for null, not default.
 
^boolean
Although, maybe an operator which checks for default would be interesting.
 
Who wants to hear a funny story?
 
Thanks for TaskCompletionSource
I think I needs some control of how much task can be run in a time
Google said degreeOfParallelism
 
8:12 AM
I tend to batch my tasks depending on which resource they are consuming.
Memory, process threads, connection threads, etc.
 
Should be memory and processor count.
OutOfMemory will be thrown if there is running too much task at a time
 
Running out of connection threads is in my opinion worse than running out of memory, because it takes a long time for the GC to fix.
Running out of memory is generally an instant and loud fail.
 
@Squirrelkiller "I hate when plebs as questions and then leave" - the Killerino
Bevore he left after asking a question.
Anyway, found an alternate solution wich doesn't useternary or ?? this video goes pretty well in depth about it. it's worth a try.
 
I feel like once you have seen that video, you really know where null is coming from.
 
I know right? - Anyway back to work for me
 
8:30 AM
> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Configuration.ConfigurationManager.get_AppSettings()
guess who's back
 
@Squirrel I can't change the types, since those are of the elder kind I can't change without destroying everything
Also because of the length of each variable and array, the ternary operator would be extremely long and ugly
@Roel I'm asking the one fucking question that somebody should have asked Thanos before he killed half the population of the fucking universe
 
Can't you just someArray.Select(i => i == 0 ? 1 : i).ToArray()
 
@TravisJ Can't change too much in that part of the code, it's an old part of our codebase everyone's afraid to touch, for good reasons.
@nyconing Could be called "Default-coalescing operator" then. GIhub has a nissue open about that. Seems pretty denied though.
 
Well, it should be safe, unless there are either events or custom iterators involved.
 
Branch -> "Test Thanos" -> change -> watch what happens
 
8:34 AM
@Squirrel I was talking about people who come here just to ask the quesiton. I'm here all the time, ya'll know I don't just leave.
Also I'll continue not watching videos at work, as previously stated.
@Travis that's actually not a bad idea, although I ogtta check if it works with this...particular kind of array. It's a special needs array.
 
Given that the amount of time it takes to consume resources is exponentially faster than the amount of time it takes to create population, it would stand to reason that you would need more than simply twice the amount of resources in order to create the same balance as half of the population.
 
So quadruple the resources, for good measure
 
;)
@Squirrelkiller Although, from a performance standpoint, straight for loop iteration is very hard to beat.
 
for? whats that? the gupta language from 20 years ago didnt have a for loop.
it's all
while(true)
{
  if(index == count) break;

  // stuff
}
 
while(index != count)
 
8:40 AM
lol
I heard that there is a Jobs feature on this site now :P
 
Has been for like a year or something
 
while (false) {
	loop:;
	if (index == count)
		goto ende;
}

goto loop;
ende:;
 
@nyconing I usually change it when I see it, just don't wanna change too much in this particular class, since I'll have to acully check it in at one point and then I need a really good excuse to touch this code.
 
I used goto jump for my first C# program
 
I used goto exactly once: in the tutorial project to convert arabic to roman numerals, inside the switch statement, to mimic a case fallthrough.
Because I liked case fallthrough.
 
8:46 AM
If that was my colleague I will definitly laugh at him by post that while(true) if(index == count) break; on company whatsapp group
 
The compiler uses it all the time.
 
@TravisJ but that is fine, the compiler is allowed to be clever, the programmer should not have this cannon
a developer should be smart, not clever
 
@Squirrelkiller YOu always LEAVE!
 
Googling "smart vs clever"
 
How is it goign with your gf?
 
8:49 AM
Didn't realize those two things were mutually exclusive :D
 
@Wietlol youre setting the curly brackets all wrong
 
i do that so in chat, it looks smaller
my curly braces are always on a new line
 
@Squirrelkiller Bro, it's a movie. I don't think anything is based on fucking logic.
 
@Wietlol You Sir just redemeed yourself.
 
It's drama. Imagine what it must have been like to get left with the cliffhanger that Han was in carbonite and Vader was Luke's father. Boom. Besides, we know Marvel can't afford to kill off that many blockbuster stars at once.
 
Then the earth will have sonic explosion cause by vacuum everywhere and atmospheric pressure drastically decreasing will destroy all ecology.
return i > 0 ? i << 2 : ~(i << 2) + 1;
I think this expression chain will can be extend further more.
I agreed on that Full namespace+class+method name is equals comment.
But sometime we need write down how param should pass
 
@Wietlol I like
 
@nyconing sure it might be extended, but the idea was to make it more performant
not just to obfuscate it
but the obfuscation is a side effect
one that we shouldnt tolerate
 
Nah no vacuum anywhere. People didnt jsut disappear, they became...whatever, dust? Also they felt it before it happened, so many people got the chance to e.g. stop their car.
Pilots though...not good.
 
No, the dust does not become transparent
 
9:10 AM
It goes where Ant Man goes when he gets small
An army of sand sprinting into nothingness like so many photons rushing through space
On a related note, reference source shows a cast with a negative value as being faster than using the bitwise operator.
 
I hope the next should having good ending.
 
Or at least a good beginning where it explains all the wtf's.
 
@Squirrelkiller What are you talking about?
 
15 mins ago, by nyconing
Then the earth will have sonic explosion cause by vacuum everywhere and atmospheric pressure drastically decreasing will destroy all ecology.
That
 
Boolean.
 
9:15 AM
Also it's going great with the gf, she's gonna move in at the end of august...with all her stuff except for a jackets fitting in one suitcase^^
 
@Squirrelkiller Where is dis coming from?
 
Thanos
 
That glove though
 
Yeah, a metal glove? Gotta have zero feeling with that on.
 
But that glove asked him lol
 
9:21 AM
It did?
brb getting a package...
Btw I actually, finally built my PC yesterday after my PSU came in the mail
Good news: It didn't explode
Bad news: I got no image, screen stays black.
 
Did you forgot the 4pin molex
 
FOr what?
Got 2 molex': one for case fans, one for an HDD
 
GPU got 2 6-pin PCI-E plugs
Mainboard got 2x4pin
yup got those
 
Buy good PSU.
 
9:31 AM
Just did. Beautiful, new PSU. 600W.
all braided cords
 
PSU can make harddisk malfunction
 
I don't even get to trying to start the harddisk
 
Reset the bios?
 
how?
Remove cmos battery?
 
Take out battery from it, and short the nodes for few seconds
 
9:33 AM
I'm generally scared of just shorting stuff on a pc
 
Nope it just fine
 
sounds ok though
 
I saw this instruction it on IBM server too
 
9:44 AM
hi
 
up up up uup oooop ooop oop up
 
10:00 AM
!!funfriday
 
YEAH
 
@Squirrelkiller any motherboard beeps when powered on?
 
not sure actually. Will check when home.
 
10:32 AM
Anyone knows a backup service which provide more than 10TB or has experience with one?
 
20TB for 210USD/month
 
10:49 AM
Or just buy a few big HDDs
external
and use them
 
How can I use another ' ' inside ' '
?
I am making html with string
 
````````
 
string str = " 'function('x')' ";
it breaks
I tried using escape character but doesn't work
 
that runs fine for me
it all depends on where yo want to run it
values need to be escaped to be used in some context
 
well html structure is wrong when I inspect
 
11:01 AM
Why doesn't EF offer HasForeignKey for 1:1 relationships? Is there any way that I have to explicitely tell that it's in a different table or so?
 
in html, you need to use html codes
&stuff;
 
I made this is js tbh
trying to make dynamic html
 
also, code in a string is bad
because now you have a string in code in a string in code in a string in code
 
**
that is basically onClick function called for an html element
 
"x" has to be JS-escaped, "function('escaped-x')" has to be html-attribute-escaped and "attr='escaped-js'" has to be C#-escaped
if there is one thing that I hate about programming, it is PHP
but nested escaping is still pretty high at the top
now, imagine if "x" was an html element?
this can basically keep going on, and it will not be better
 
11:07 AM
damn
 
n umad?
 
mad u?
 
i love repeating people in reverse text :D
 
loltieW
Dx
 
yay, you spelled my name correctly
 
11:09 AM
(:
 
> :(
 
):
 
> :)
\o/
 
\> :)
thx markdown
 
karma markdown is a bitch
 
11:14 AM
> spam
 
11:33 AM
ty @nyconing @Squirrelkiller seems like buying a couple drives for an offsite server is indeed the cheaper way ^^
 
 
1 hour later…
12:50 PM
So much dead
 
but all are breathing
 
*badumtzz*
 
So much friday
 
@SebastianL Thanks for warnin' me in advance.
 
12:58 PM
stackoverfiow?
no thank you
 
@Default you have a typo there ;P
 
1:18 PM
@SebastianL Admit it, you registered that domain just for this :P
(Also: nothing goes through noscript without my permission)
 
naw i'm not that clever, dunno who owns the domain, but i use it for my entertainment ^^
 
hm.. that didn't say much
owned by.. GitHub, Inc.?
alright, seems my dns fooled me. I did a whois on stackoverfiow directly instead: whois.com/whois/stackoverfiow.com
 
1:33 PM
hey guys :)
 
hey me :)
 
hey you :)
 
hey you too :)
 
XD Got a bit of a weird question for ya
 
ok
 
1:34 PM
any of you dabbled in xaml
 
42
 
NICE
thats exactly what i was looking for
btw, its xaml + c# uwp
basically its the worst
 
no, PHP is the wørst
 
touche
i will agree entirely with you on that
this is 3rd worst
java is second
I mean, its super easy to understand but im on the development build of WinSDK currently and this whole thing is causing me so many headaches
 
Java is second?
 
1:39 PM
on a standard basis how would you usually handle a button press
 
Java is bae
 
and yea. I personally hate Java with a passion
im sorry
 
hey guys do you know how plug ins would communicate errors and other messages back to the host?
 
I share that passion... but then for C#
 
woah! coming in here with a curveball erotavlas
 
1:40 PM
:)
 
@Batteredburrito normally by putting a listener on the click event
 
right. Exactly! now doing that in UWP is not as simple
atleast im fecking stumped as to how these two bloody work together XD
unless, you can pass names and put a listener on the xaml too
wait
i think ive got it
im being an idiot
 
in xaml bind the button to a command
 
^you da man
thats literally what ive just added in
sometimes you look at something for so long and just get lost in the spaghett
 
calling C# spaghetti, yet still hating Java :D
 
1:47 PM
i hate jave in more of a "WHY THE F ARE YOU ON EVERY DEVICE I BUMP INTO"
i just get fed up with looking at it XD
 
thats an odd thing to say
 
i mean, when youre dealing with Oracle on a daily basis as part of your job, im sure youd hate it to :P
sometimes, i wanna tear myself a new ass
 
lol my company uses oracle a lot too
 
do you wanna kill yourself too?
cause ive got some extra rope ready
 
@erotavlas no, Oracle uses your company
 
1:50 PM
luckily I dont have to deal with it
 
^^that
 
yes that's what I say...they have them by a leash
 
i mean, they use me like a cumrag
 
I dont deal with Oracle
 
although my coworker thinks oracle is the best thing ever and superior to all other DB
 
1:51 PM
oh
my
 
you are talking about OracleDb?
 
probably the only DB he ever worked with
 
im not a fan of any db really
 
it all sucks
anything with oracle in front of it sucks
eugh
 
in my opinion it all sucks, but I say that about literally everything
 
1:53 PM
public static ConcurrentDictionary<guid,object> _db; <-- Best DB in the world ever
 
youre not wrong though
 
public static ConcurrentDictionary<Guid, Object> OracleDb;
 
GAAAAAAAAAAAH
MY EYEES
 
lol
 
@Batteredburrito I think C# sucks, I think Java sucks, I think Typescript sucks, I think COBOL sucks, I think everything sucks
 
1:54 PM
yes. youre not wrong, BUT, you didnt say C++ or VB so im safe
 
Computers don't suck, they just oscillate. Don't blame the tools.
 
im currently tearing my balls of working with XAML and c#
and no @HollyStyles MY COMPURTAR WILL DO WHAT I SAY
 
C++ sucks, VB sucks²
 
if it wants*
 
@HollyStyles computers are fine, the communication between a programmer and a computer just sucks
@Batteredburrito and if it doesnt
 
1:56 PM
there should be just one language
 
one language thats accepts gibberish
 
PHP sucks²
one language to rule them all
 
There is, it has two symbols 1 and 0
 
if it doesnt listen, ill wee on it to assert my dominance
NO, DONT YOU HURT MY BINARY
I LOVE IT SO MUCH
 
@HollyStyles that is encoding, not a language
 
1:57 PM
IT TAKES ME 8 YEARS TO MAKE A HELLO WORLD APPLICATION
 
you can write Java in binary, you can write C# in binary, you can write them in base64, you can write them in utf-# (which I would recommend)
I think Kotlin and Typescript are currently the least sucking languages
 
@Batteredburrito Are you ten5?
 
both lack some features that would make it much better though, and typescript carries a lot of Javascript weight
so I'll stick to kotlin for the time being
 
Apparently so
 
01:00 - 14:0014:00 - 19:00

« first day (2862 days earlier)      last day (2081 days later) »