« first day (2415 days earlier)      last day (2527 days later) » 

2:49 AM
Oh boy! 5 hours of sleep is the best!
 
3:30 AM
@KamilSolecki Especially when followed immediately by 5 more!
 
3:51 AM
Never have I thought about it. Must try that out thanx
I still fail to understand how are you online at the same times as me, even though you are from Canada @KendallFrey
I don't think you sleep at all
 
 
2 hours later…
6:21 AM
Any one there?
 
 
1 hour later…
7:42 AM
me and kamil are here
 
8:24 AM
ye me and proxy are here
 
9:24 AM
Question guys
In test explorer I can filter tests with Trait: -Trait:"RunNightly"
there is "-" so test with RunNightly category should not run
it is works in test explorer
but what I want is to create batch file and share with programmers in out team
so for running tests we should use that batch file not every time exclude RunNighlty tests and run
I can use vstest.console.exe and from -targetargs:"FirstTestsProject.dll" I can exclude tests with RunNightly category
but we have multiple projects with tests so how can I run from vstest.console.exe multiple project's tests&
?
 
 
1 hour later…
10:33 AM
?
 
11:05 AM
Surely it says in the documentation
 
11:36 AM
Hello guys i have another question:

in this code:
static void Main()
	{
		int i = 22, j = 7;

		double fraction = (double)i / (double)j;
		Console.Write("Division result: " + fraction);

		Console.Read();

		if (true)
		{
			Console.WriteLine("Truth Prevails!");
		}
		Console.Read();
	}
I used Console.Read() first, it takes input so that the console screen freezes till we input something and press enter
For the second Console.Read() this does not happen
Do we have something like cin.ignore() of C++ in C#?
Well Console.ReadKey() works for me!!
 
12:17 PM
@samjoe heya
What happens exactly?
 
Hello fellow memers
 
12:33 PM
Its saturday, GO HOME.
Saturdays this is officially my brooding chamber where I play Sarah Mclachlan songs and cry myself into various naps throughout the day.
 
1:16 PM
@samjoe I think that's because it's reading the second character you typed in the first line, so it doesn't have to wait for you to type anything. That's why I usually use Console.ReadLine()
 
 
1 hour later…
2:32 PM
HEy ALL
i got an error that a class constructor doesn't take 1 arguments even though it does , how come ?
 
2:56 PM
source code please
 
A second constructor that takes more, and the data type of arg1 matches it and not the constructor you think. Maybe. Show code...
 
3:09 PM
there is no second constructor
 
it's private...
 
you mean the method ? so what ?
 
3:24 PM
oh look, there's no error dotnetfiddle.net/xyUIdR
 
so whats up with my compiler omg
 
Hello everyone,
 
4:21 PM
Anyone available to try and find where i've gone wrong?
 
4:46 PM
@samjoe I believe the Read() thing is because {Enter}/newline is 2 characters in windows..seems read is only takinging 1 out of buffer, leaving 1.
 
 
2 hours later…
7:10 PM
hi is anyone online that could help me with my c# homework
 
7:28 PM
just write you question
if aynone can help they will
 
Write me a program that prints out the following header and data for each of the 13 pre-defined
simple value types, producing an aligned, columnar output like the following:
Type Min Max
float -3.402823E+38 3.402823E+38
decimal -79228162514264337593543950335 79228162514264337593543950335
Note:
 The data MUST align with the column header (Type, Min, Max). When you cut / paste
your output might be off, but I will know its correctness from your code.
 For the bool type, use a min defined as bool.FalseString and bool.TrueString.
am i just literally using console.writeline for this assignment
With Console.WriteLine("{0} {1} {2}", "int", int.MaxValue, int.MinValue);
Console.WriteLine("{0} {1} {2}", "char", char.MaxValue, char.MinValue); tc
etc
 
what problem are you facing
 
well its more like am i missing something
does the problem just require console.writeline
because to me it seems like printing out just the 13 data types
 
seems to be the case
 
awesome and has anyone here used Xamarin for coding c#
it doesnt let me execute my file anymore
 
7:38 PM
@New_Racket_User "The data MUST align with the column header (Type, Min, Max)."
 
@KendallFrey so thats just Console.Writeline("Type, Min, Max);
before i write any code
 
no, like in a table
 
so i have to make a table with console.writeline then??
like several of them
 
Did custom patterns make it to C# 7? I can't seem to find information on them or get them to work
 
you can define a method/extension method for a type named Deconstruct that takes in only out parameters
 
7:44 PM
@milleniumbug Sounds good. Where can I find more info on it?
 
and this allows to decompose your type with tuple assignment like this (string x, int y) = aValue;
 
Oh. But I can't use a custom case or is pattern?
 
not sure, probably not
docs.microsoft.com/pl-pl/dotnet/csharp/whats-new/csharp-7 <- this "what's new in C# 7" page has more info than the other one
 
Sucks. It was in all the proposals until I stopped paying attention because I had to work
 
@New_Racket_User You're missing the part where the data needs to be ALIGNED
 
7:47 PM
Thanks for the link!
 
@GregRos You mean case (MyType t):? Yeah, I think that's implemented
 
@KendallFrey can you explain to me how I would do that because I don't think i understand what it means if im not using a bunch of console.writeline
 
@KendallFrey Nah, I mean is MyPattern(out1, out2)
 
I've never heard of that, and have no idea what it would do
@New_Racket_User I didn't say you can't use WriteLine, but the code you have so far doesn't align anything
 
@KendallFrey right i havent done that part yet
also does anyone know a good c# ide i can download for the mac
my xamarin doesnt work anymoer
 
7:50 PM
first, install Windows...
 
im a mac user lol...
 
boot camp
also virtualbox
 
next option plz lol
 
install virtualbox, create a virtual machine, install windows on a virtual machine, then install visual studio, then install resharper
 
i have bootcamp lol
i just hate switching from mac to windows
cuz i have to restart
 
7:54 PM
then run on a virtual machine
 
JS ish question maybe someone here knows JS room is dead today. I am having issues converting a blob url as in "blob:http........." to a file that can be saved. Everything bitches saying its not a blob but idk what the fuck you call that url. For some reason if I try visiting the link myself though it says it doesnt exist.... Brwoser is chrome
anyone?
are you all too stupid to figure it out?
idiots...
 
@JABFreeware Did you create the URL with URL.createObjectURL(), or where did you get it from?
 
@KendallFrey its from webrtc datachannel. Idk how the library generates it. I do know if I make it as a a tag with a download attribute the browser can download the files
 
@KendallFrey can you see if my code is the correct solution to the problem i gave earlier:

Console.WriteLine("Type \tMin \tMax");
Console.WriteLine("{0} {1} {2}", "int", int.MinValue, int.MaxValue);
Console.WriteLine("{0} {1} {2}", "float", float.MinValue, float.MaxValue);
Console.WriteLine("{0} {1} {2}", "char", char.MinValue, char.MaxValue);
Console.WriteLine("{0} {1} {2}", "double", double.MinValue, double.MaxValue);
Console.WriteLine("{0} {1} {2}", "decimal", decimal.MinValue, decimal.MaxValue);
 
basically im trying to zip multiple files in the browser using zip.js or jszip but they require blob objects
 
8:07 PM
@New_Racket_User No, you've made no attempt to align the values
 
I thought the object I used to get the download att value and the href was the blob object
and when I use console it says its a blob too
 
@KendallFrey i dont understand then what it means to align the values
 
yet the best I could get were files that just had the blob url as tehri content
 
You don't understand the meaning of the word align, or...?
 
like a text file...isntead of real content it just had the blob url
@KendallFrey lol
 
8:10 PM
@KendallFrey like should it all be aligned in a table??
 
I guess you could call it that
 
29 mins ago, by milleniumbug
no, like in a table
Let's try the nuclear approach
// not aligned
asdf                   lol                   UUUU
            345345   asdasd             234234
// aligned
asdf                   lol                   UUUU
345345                 asdasd                234234
 
@KendallFrey help?
 
how about this @milleniumbug @KendallFrey

Console.WriteLine(" Type \t\tMin \t\tMax");
Console.WriteLine("-----------------------------------------------------");
Console.WriteLine("{0} {1} {2}", "|int |", int.MinValue, int.MaxValue);
Console.WriteLine("{0} {1} {2}", "|float |", float.MinValue, float.MaxValue);
Console.WriteLine("{0} {1} {2}", "|char |", char.MinValue, char.MaxValue);
Console.WriteLine("{0} {1} {2}", "|double |", double.MinValue, double.MaxValue);
Console.WriteLine("{0} {1} {2}", "|decimal|", decimal.MinValue, decimal.MaxValue);
my output looks like this:

Type Min Max
-----------------------------------------------------
|int | -2147483648 2147483647
|float | -3,402823E+38 3,402823E+38
|char | ￿
|double | -1,79769313486232E+308 1,79769313486232E+308
|decimal| -79228162514264337593543950335 79228162514264337593543950335
|ulong | 0 18446744073709551615
|long | -9223372036854775808 9223372036854775807
|sbyte | -128 127
|byte | 0 255
|short | -32768 32767
|ushort | 0 65535
|uint | 0 4294967295
|bool | False True
 
omg nuclear approach failed
 
8:17 PM
@KendallFrey why hast though abandoned me
@milleniumbug ion cannon then
 
also that
 
@milleniumbug that button doesnt appear for me
I just use Ctrl + K
 
it only appears when you have more than one line of text
shitty UI
 
@milleniumbug the nuclear approach didnt fail u
 
@milleniumbug indeed
 
8:32 PM
@milleniumbug can you look at my new code:

Console.WriteLine("Type \tMin \t\t\t\tMax");
Console.WriteLine("{0} {1} \t\t\t{2}", "int ", int.MinValue, int.MaxValue);
Console.WriteLine("{0} {1} \t\t\t{2}", "float ", float.MinValue, float.MaxValue);
Console.WriteLine("{0} {1} \t{2}", "char ", char.MinValue, char.MaxValue);
Console.WriteLine("{0} {1} \t\t{2}", "double ", double.MinValue, double.MaxValue);
Console.WriteLine("{0} {1} \t{2}", "decimal", decimal.MinValue, decimal.MaxValue);
Console.WriteLine("{0} {1} \t\t\t\t{2}", "ulong ", ulong.MinValue, ulong.MaxValue);
@milleniumbug the output looks like this: file:///Users/hdar2013/Desktop/Screen%20Shot%202017-05-27%20at%204.32.04%20PM.pn‌​g
though i dont think u wud be able to see that link..
 
...
okay, I'm out
pester someone else from now
 
but its alligned
like u asked
 
@Brogrammer What is the question?
 
Write me a program that prints out the following header and data for each of the 13 pre-defined
simple value types, producing an aligned, columnar output like the following:
Type Min Max
float -3.402823E+38 3.402823E+38
decimal -79228162514264337593543950335 79228162514264337593543950335
Note:
 The data MUST align with the column header (Type, Min, Max). When you cut / paste
your output might be off, but I will know its correctness from your code.
 For the bool type, use a min defined as bool.FalseString and bool.TrueString.
and my solution is:

Console.WriteLine("Type \tMin \t\t\t\tMax");
Console.WriteLine("{0} {1} \t\t\t{2}", "int ", int.MinValue, int.MaxValue);
Console.WriteLine("{0} {1} \t\t\t{2}", "float ", float.MinValue, float.MaxValue);
Console.WriteLine("{0} {1} \t{2}", "char ", char.MinValue, char.MaxValue);
Console.WriteLine("{0} {1} \t\t{2}", "double ", double.MinValue, double.MaxValue);
Console.WriteLine("{0} {1} \t{2}", "decimal", decimal.MinValue, decimal.MaxValue);
Console.WriteLine("{0} {1} \t\t\t\t{2}", "ulong ", ulong.MinValue, ulong.MaxValue);
although i get a weird output for char
 
So again, what is the question?
 
8:38 PM
well i guess i have two questions now
1. is my output correct
2. why is my char output weird
 
Define correct, and define weird.
 
does my output answer the question correctly
and my char output comes out as a small box for the min value only but i get no max value
so thats what i mean by weird
 
I don't know. What are the 13 pre-defined simple value types, for starters?
 
int float char double decimal ulong etc
i wrote them all in my code
 
So char is one of them?
 
8:40 PM
yes
 
Then how is that supposed to be shown?
 
... i actually dont know
 
Nobody here does either
Displaying char.MinValue is pretty pointless, as is char.MaxValue, as the first won't actually be displayed in most ways to display strings, and the second isn't actually a unicode character at all.
Additionally, what does it mean to "align with the column header"?
 
is there a way i can send a pic here
 
Does it mean "only taking tab characters into account"? Or does it mean "tab characters are equivalent to going to the next tab stop that is every 8 characters".
Yes, by actually sending a picture, and not a link to your desktop.
 
8:43 PM
lol
 
Post it on img.ur or something.
 
thats my code solution
 
Yes, that does seem correct.
 
then what is char outputting
 
in terms of ... that's what I expect it would output... that is, other than the spacing.
It is outputting the lowest possible char value, which is \0x0000, and the highest possible char value, which is \0xffff, neither of which can be displayed.
 
8:47 PM
awesome thanks!
 
How did you get the output that you grabbed that screenshot from?
 
i used tabs
nothing special
some lines have more tabs than others
 
@Brogrammer I would assume the idea of the homework was to use the alignment options within Console.WriteLine, rather than implementing it yourself.
 
@KendallFrey ignore me much?
 
@KendallFrey i didnt know there was an alignment option
 
8:55 PM
@Brogrammer Now you do
@JABFreeware I was vidya games
 
@KendallFrey but i need you baby....
trust me when I say...
can't take my eyes off of you
 
that's a bit creepy
 
@kend
@KendallFrey how do i use the alignment options
 
I'm not going to do your homework for you
 
@KendallFrey pardon the way I stare
@KendallFrey my problem isnt homework
just throwing that out there
 
8:58 PM
@KendallFrey im not asking u to do my homework nor do i want you too
 
you kinda are
 
@JABFreeware im not asking for the code
 
@Brogrammer not the point
 
@JABFreeware im asking because i cant find anywhere in the book or notes that talk about this so call allignment
 
@Brogrammer yet you could easily google C# console alignment
 
9:03 PM
@JABFreeware my intention is not for him to do the homework and while i might come of as asking for that, do not tell me that i am asking him to do my homework
@JABFreeware i did already
did not help
 
uhuh
 
@milleniumbug wow duckduckgo has improved
does it actually get accurate results now?
 
it works similarly to how Google used to work in 2004
which is an acceptable level for me
I've been using DDG for 2 years already
 
thats not accepatble for me
 
9:36 PM
@KendallFrey like this:

Console.WriteLine("Type \tMin \t\t\t\tMax");
Console.WriteLine("{0} {1} {2,30}", "int ", int.MinValue, int.MaxValue);
Console.WriteLine("{0} {1} {2,30}", "float ", float.MinValue, float.MaxValue);
Console.WriteLine("{0} {1} \t{2}", "char ", char.MinValue, char.MaxValue);
Console.WriteLine("{0} {1} {2,30}", "double ", double.MinValue, double.MaxValue);
Console.WriteLine("{0} {1} {2,30}", "decimal", decimal.MinValue, decimal.MaxValue);
Console.WriteLine("{0} {1} {2,50}", "ulong ", ulong.MinValue, ulong.MaxValue);
i wasnt sure if i had to use the align options for the type, min, max as shown on the first line
 
...
 
 
2 hours later…
11:18 PM
how do i list in increasing order for the 13 pre defined data types?
 
what does the homework say lol
 
do i look at the min or max tho lol
seems kinda like a dumb question
but i wasnt sure
 
probably max ascending order
 
thats what i thought thank you!
 
sure
I love helping with homework
 
11:21 PM
what about char tho
it doesnt have an integer type
so i dont know how to classify it
 
max is 65535 which you'd know if you bothered to write one line of code to see what happens
 
i did write it out
but only a white box appeared
and that number is for ushort
 
oh look writing out a character writes out a character
how shocking
 
who knew
@Brogrammer you should know a char can be converted to an int representation
it so happens the max that can be is 65535
why that is if you ever decide to not be lazy and try to be a good programmer you can google
@Brogrammer you in college or highschool?
...or elementary?
 
11:37 PM
i forgotten about that ok im sry
 
highschool?
 
college
 
why are you taking the course?
 
because i want to learn c#
i want to program
i enjoy doing programming problems
like c++ and racket
and i wanted to add more languages on my resume
so im taking this with java
 
the best/fastest way is to pick something that interests you and learn what you need to complete it. Most homework is bullshit. That said getting into the habit of getting homework help wont do you any favours in learning. Pro tip for free.
 
11:40 PM
If you're looking simply to expand your skillset, I recommend Haskell
 
oh god
 
not haskell
 
i hate haskell
no offence
 
Why?
 
11:40 PM
its his gf
 
i just dont like the style of haskell
 
and no one uses it
 
then again i used to hate racket too
but now i like racket
 
:P jk
 
@Brogrammer What style? FP in general?
 
11:41 PM
like how its written out
the syntax tilts me
 
i used to hate JS
now I kinda like it
 
I like it because it's very clean and concise
Much cleaner than C# IME
 
how dare you
 
Even better are FP idioms though, since those can sometimes be ported to C#
 
traitor!
burn him!
 
11:43 PM
@KendallFrey that's surprising
 
My favourite types in C# are monads
 
heresy! heresy I say!
 
IEnumerable<T> is a monad
 
@milleniumbug For example, x=>x*2 vs (*2)
 
ah, you mean Haskell
 
11:44 PM
or x=>x.Name vs name
@milleniumbug Oh, no not JS lmao
JS is spray-n-pray
I do like it for its DPS though
 
The most disappointing part about Haskell IME is the tooling
GHCi and Hoogle are cool
 
Hoogle is the bees knees
 
but otherwise it lacks some kind of integrated solution
 
solution to what?
 
tried that Haskell IDE leskah or how was it called, but it was mostly broken on windows
 
11:47 PM
I guessed at the correct spelling even though I'd never heard of it
Leksah
 
@KendallFrey ...
 
clearly it's Haskel backwards
 
couldn't be bothered reversing the name
:)
 
so lazy
you'll love haskell
I should sit down and learn LISP some time
 
the problem with learning lisp is that it's not a single language, but a family of languages, and they are quite far away (except for the syntax)
common lisp, scheme, clojure and emacslisp share very little
 
11:51 PM
@KendallFrey
 
Aren't they more like standard libraries, rather than different languages?
I hear the language itself is bloody simple
 
@KendallFrey
 
Don't make me kick you
 
WHAT ABOUT MY JS QUESTION????????
 
What about it?
 
11:53 PM
can you help me with my blobs?
 
well, the lisp languages have a very small set of things that are neither functions nor macros, but special forms which are intrinsic to the languages, but a.) even they subtly differ between language, and b.) no one sane programs with special forms directly
 
I said can not will you
 
I know what you said
 
don't get smart with me if you don't know js
everyone knows js
 
11:54 PM
I do know JS
 
then you could help
 
oh yeah??????????????????
 
Yeah
 
I'm not good at asking for help
would asking nicely help?
or do I need to insult you?
 
11:56 PM
That won't change my ability to help
It might affect your ability to enter this chat room
 
@KendallFrey huh
thats cool
 
@JABFreeware I don't know JS
 
@milleniumbug you're not real
 
no real scotsman
 
you're but a figment of this chat AI's imagination
 

« first day (2415 days earlier)      last day (2527 days later) »