« first day (2970 days earlier)      last day (1981 days later) » 
01:00 - 15:0015:00 - 23:00

1:04 AM
Folks, what's the recommended application for viewing output files from XmlWriterTraceListener ?
 
1:49 AM
hello nerds
good morning
at least where i'm from
 
 
2 hours later…
3:20 AM
Name of C# renamed by VisualStudio to Visual C#
 
Morning all, can someone found C# extension methods which have similar behavior of ArrayList.removeIf() (remove with conditional) and Collections.addAll() (adding multiple values with same type to a predefined collection) in Java? Or I should create my own RemoveIf() and AddAll() extension methods by extending List<T> or implementing IList<T> interface?
 
Ofcoz, it is called LinQ in C#. It uses conbination of generic type and lambda expression.
list.Where(item=>*item condition*) Same as filtering.
list.RemoveAll(item=>*item condition*) Same as removeif.
@TetsuyaYamamoto Tell me if you has any problem with LinQ.
Working example rextester.com/HNHI9353
 
 
1 hour later…
4:47 AM
anyone here using automapper?
 
 
2 hours later…
6:44 AM
can anyone know how to create angular project in visual studio
 
You can create it in VSCode
 
7:12 AM
Goooood moorniiiiing CeeeeeShaaaarp! Have you tried any previously unknown alcoholic beverages lately?
Also I'm pretty sure VS can create angular projects too, I remember the logo in the VS new project creator assistent.
There you go, @MohanSrinivas
Wtf is going on I come in later than usual and I'm the first damn dev in here, where there's usually one dude in a wheelchair who is usually here half an hour before me and one dude who lives just around the corner and usually comes in just after the wheelchair dude. Now it's half an hour after I came in late, and I'm still the only one.
Also there's hardly people in this chatroom, usually there's like 2 people active enough to at least say good morning when I come in.
What the hell kinda monday is today?
 
7:27 AM
ohayou
 
Hey Proxy o/
 
morning.
Oh, shit, is @Squirrelkiller on to our coordinated Day Away From Squirrelkiller plans?
 
I just went over to the kitchenette to grab a drink and it looks like there's nobody from my group here either. Not a single one.
Wow, most of the starboard is over a week old. The room has really been dead, hasn't it?
it's all the Americans with their Thanksgiving and then the Christmas season, isn't it?
 
7:45 AM
I'm pretty sure the Americans have stopped eating for Thanksgiving (pretty sure >.> )
 
7:57 AM
Hi,
Anyone familiar with TFS, I'm trying to create wiki, but getting the error:
TF401027: You need the Git 'CreateRepository' permission to perform this action
 
I'm no expert, but I'm guessing you need the CreateRepository permission to perform that action.
 
I'm guessing the same thing. Perhaps you should get the CreateRepository permission and try again.
 
Will try to find it
 
Don't get me wrong, I will totally enjoy everyone leaving me alone for a day, but I'd appreciate a warning so I know you aren't all dead.
@mshwf I jsut have a problem with you using TFS and it complaining about a git permission.
 
@Squirrelkiller I'm having the same concern , and can't figure out what does this mean!
 
8:14 AM
@Squirrelkiller Cloud TFS (Azure DevOps) uses git as its default source control provider these days.
 
@AvnerShahar-Kashtan But we use TFVC
 
@mshwf But maybe the Wiki feature uses git internally for revision tracking.
> Each team project wiki is powered by a Git repository in the back-end. When you create a team project, a Wiki Git repo is not created by default. To start using a wiki, you must either provision a Git repository to store your wiki markdown files, or publish existing markdown files from a Git repository to a wiki.
(This is the docs for "Azure DevOps Services | Azure DevOps Server 2019 | TFS 2018")
 
in this page: https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfssecurity-cmd
the CreateRepository only found in the Git repositories section
BTW, the admin of the project can create wiki
 
Well, I'm guessing he has the Git 'CreateRepository' permission. Maybe he can perform the action.
 
@AvnerShahar-Kashtan we are trying to find its location in the TFS settings
 
8:35 AM
Look in Git settings.
Because it's a git setting.
 
TFS != git
We gotta get some precision in here, people
 
@Squirrelkiller Isn't it TFVC? :\
 
Good point
 
TFS is Team Foundation Server (recently rebranded Azure DevOps Server, I think) a devops/ALM product that includes several components, including source control, issue tracking, wikis and more.
 
TFS hosts TFVC
 
8:38 AM
Originally, TFS used TFVC as its source control provider. Starting a few years back, it offered git as an alternative.
These days, git is presented as teh default option, I believe, at least for cloud-hosted TFS, maybe on-prem as well.
The Wiki function, it would seem, relies on git internally, so even if you use TFVC for your source code, you still need to enable git repositories (and give yourself permissions to create them) before you can create a wiki.
 
Last company recently upgraded to tfs2011 onPrem, was TFVC. Wikipedia says it's stilll TFS, just the Azure app is DevOps
 
2011?
There's an on-prem version of Azure DevOps, but it seems it's not a rebrand of TFS, but a separate product.
 
how do you call the watermark in separate parts of a text input field?
like that
and that the "dd", "mm" and "yyyy" are watermarks and the slashes will remain
 
@Wietlol Placeholder or watermark.
 
yes, but what are the slashes?
or are they 3 separate textboxes?
 
8:48 AM
date delimiter?
not sure
 
the same with a currency sign in front of them
the euro sign is pretty easy though
but they also often have an auto-formatting thing on it to show thousands separators and decimal separator
 
Uhhh tfs2017 of course
wrong corner on the numpad
 
ah, its an input mask
oh I love asp.net
a MaskedTextBox is not a TextBox
common interface is "Control"
sigh
 
9:24 AM
Hey people
I have a class where one property is a float[]. How can I query this class as if it is a float[] itself?
 
@ActionHank Hay people
@ActionHank Define "query".
You can create an implicit conversion operator that converts your class to a float[], but I'm really not feeling it should be necessary.
 
basically I want to do this
@AvnerShahar-Kashtan I'm going to talk the farmer next door into doing this, thanks
 
implicit operator float[](){ return this.floatArrayField; };
or something
 
My gut says 'operator overloading' too yeah
but how about linq queries then. Are they also possible with this?
 
Another option, probably saner, is to implement IList<float> in your class, and just forward the implementation to the float[] inside.
Resharper will even cheerfully generate the delegating calls for you.
 
9:31 AM
a decorator :D
Rider can auto-generate this for you
not sure VS can do the same
public class A : IEnumerable<Single>
{
    private IEnumerable<Single> _enumerableImplementation;
    public IEnumerator<Single> GetEnumerator()
    {
        return _enumerableImplementation.GetEnumerator();
    }

    IEnumerator IEnumerable.GetEnumerator()
    {
        return ((IEnumerable) _enumerableImplementation).GetEnumerator();
    }
}
you then should rename the private field and give it the type you desire
 
Probably should be IList<> (or IReadOnlyList<>) if you want indexed access.
 
Besides, why not double?
Or if it's about money, decimal
@everyone is there anyreason to use float nowadays, except for extreme conditions?
 
if there is no reason to use anything else, then float is fine
but there is no real reason to use it
 
I never used float for anything except compatibility with older APIs.
 
@AvnerShahar-Kashtan well, this is the answer basically
sound & vibration app with a lot of api calls to a measurement system
I'm all for double though
 
9:38 AM
no love for BigDecimal?
 
@AvnerShahar-Kashtan gonna go with this approach, thanks man.
@Wietlol is this for millionaire programmers?
 
> float f = 0.1f;
> f
0.1
> double d = f;
> d
0.10000000149011612
just saying
 
@Squirrelkiller Well, if you cared about the precision that deeply in, you shouldn't have used a float in the first place.
Also, where are you getting that result?
 
C# interactive window
My go to for quick proofs of what c# does in a special case
 
Ah I use LINQpad for that
 
9:47 AM
I use Roslynpad.
And I get 1 as output.
ah, sorry, I tried 1.0, not 0.1.
 
you put in 0.1 and get 1?
ah ok lol
C# interactive in integrated in VS, so that's open anyway. No extra stuf required.
 
use float/double when you're specifying coordinates in 3d space or something
you wouldn't use it for precision calculation
 
@ActionHank most times you dont care about the performance anyway
 
When working with geo coordinates in university, we had to always use at least 5 digits behind the comma. Fuck geo coordinate calculations.
 
@Squirrelkiller what did you expect?
 
9:53 AM
For somebody to say "Just use double, float isn't needed in an era with gigabytes of RAM anymore." of course.
 
funny thing though
 
Many unfunny sentences started with that phrase
 
if you need to do money calculations, and you dont have a base10 decimal type to work with, just use strings and you will be fine
 
ya just use javascript
 
What the fuck no don't use strings
Use ints and count (insert local currency small unit here)
 
10:03 AM
When you consider that the size of the universe is something on the scale of 10^80 and the smallest scale is like 10^-40, that's a difference of 120
That means the most number of digits you'll ever require of PI are 120
anything more than that would be impractical, guaranteed
 
Precision, Neil, precision
 
Tell that to scientists, they'll string you up and pull the old "BURN THE WITCH" on you
 
well seriously, find a fault in that logic
you won't be measuring the area of a circle with that level of precision ever unless it's in a theoretical context
 
> unless it's in a theoretical context
And that's exactly why it's needed
What if Pi turns out to be rational!
 
now you're being irrational
I think they've proven that PI can't be rational
I saw the proof once, but I don't recall exactly how it goes
 
10:08 AM
Steve Patterson disagrees
 
I saw the proof too, and it's way too...meta-number-y for me to agree to it.
 
I think it's unlikely that it's an irrational number, otherwise how can a perfect circle exist. But that's me who also got an E in A-level maths
 
I feel like it can very well be irrational, since it's trying to show something analog in digital form. And, as far as I can think, in hte analog world things can be infinitely small.
pixels for example. What if we had pixels the size of a proton.
Now those make a circle. That's as perfect as it can get, no?
No.
From one proton in a circle to the next, there's a bit of a displacement
How big is this displacement? Not as big as a proton.
As big as an electron? iDunno, what if it's a really big cirlce of protons.
This displacement can always be smaller than whatever we're picturing right now
Unless we find some kind of planck constant but for a room dimension, there's jsut always a smaller distance
 
10:24 AM
In the 1760's, Johann Heinrich Lambert proved that the number Ï€ (pi) is irrational: that is, it cannot be expressed as a fraction a/b, where a is an integer and b is a non-zero integer. In the 19th century, Charles Hermite found a proof that requires no prerequisite knowledge beyond basic calculus. Three simplifications of Hermite's proof are due to Mary Cartwright, Ivan Niven, and Nicolas Bourbaki. Another proof, which is a simplification of Lambert's proof, is due to Miklós Laczkovich. In 1882, Ferdinand von Lindemann proved that Ï€ is not just irrational, but transcendental as well. == Lambert... ==
I won't pretend that I'm of the level to understand any of that, but there are several proofs nonetheless
I think it's generally accepted that PI is irrational
 
Well there's also scientific proof that the speed of light is the univerally maximum achievale speed.
And I don't agree with that.
 
why wouldn't you agree with accepted scientific proof?
 
What if I move wiht almost-lightspeed, and then extend my arm? While extending, it would be faster than me, right?
Therefore faster than c
 
I want to think that we could travel the universe like in star trek or something, but the evidence is rather overwhelming that it isn't possible
 
I agree because I have to, not because I like it
Well the warp drive is a different concept
spacetime bendy stuff
 
10:27 AM
If you were moving the speed of light, you wouldn't have an arm
that's kind of part of the proof.. only pure energy can move that speed
If we discover there's a way, it'll be through some spacetime bending as you said
and then technically that's not moving faster than the speed of light
 
Why can only pure energy move that fast?
I thought ligths isnt neccessarily just energy
 
anymore than wrapping a piece of paper to form a loop and getting to the opposite side in a fraction of a second is somehow "jumping" from one place to another
because of good ol' E=mc^2
 
And who says that is always true?
 
maybe it's not true in another part of the universe
it's true, but we have no reason to think this
 
Same as we can calculate speeds by how much energy you pump into a motor, you usually forego friciton on specific levels because it isn't relevant on that level
What if we're simply not on a level where we can perceive something like that yet?
 
10:31 AM
this is a theoretical limit though, not an empirical limit
It doesn't make any sense to us, because at low speeds, this effect is almost entirely nonexistant
It's like being at the bottom of a really really big sphere.. the surface would appear flat, not curved
 
Exactly
 
so to say the surface is curved seems weird and unintuitive
 
at 5km/h, friction is completely irrelevant
 
and yet we're on a planet, not a flat earth
 
And that, giant as the earth may be, is still visible
cuz horizon an' shit
 
10:51 AM
well what if the earth was even bigger?
like, so big you couldn't observably see curvature?
scientists would have probably assumed the earth was flat at that point, or at least right up to the point when someone like Einstein comes along and says that given what we've observed, the earth cannot be flat
nobody would believe it of course.. it seems so unintuitive afterall
and yet the evidence would point to this
so at that point, do you claim it's not true or do you find the truth for yourself?
whatever that may be
Again, I don't pretend to understand it, much less determine that it's wrong
 
11:12 AM
Are we doing physics Fridays early?
 
I was unaware there was a day for that, my apologies
Thought fridays were for rebecca black
 
Oh I totally agree that c might be the maximum universal speed.
I just don't agree that it absolutely is.
 
Yeah we tend not to talk about intellectual subjects because we usually butcher them hard
 
Physics Phriday PhTW!
 
11:32 AM
yep, I don't have any problems admitting I'm a physics ignoramus
 
11:51 AM
Physics is just applied math
(according to xkcd)
 
If you want a real mindfuck, this was keeping me awake last night: en.wikipedia.org/wiki/…
 
@KendallFrey I'll click on that before bedtime thank you very much
@AvnerShahar-Kashtan So I implemented this, and now I want to cast a float[] to my class, but that's not working
 
@Squirrelkiller I say this completely unironically, but that depends upon what the meaning of the word "is" is.
 
that's quantum mechanics in a nutshell
 
like FloatClass a = new float[] { 1.0, 12.0, 15.0 };
 
11:58 AM
I prefer the many-worlds interpretation myself
 
The biggest problem with MWI is the name
 
Which basically states that if there are multiple paths for a particle to travel on, what changes is the world you're actually in observing the phenomenon, but the particle is traveling all paths at once
well it can't be proved or disproved either way
They're not really so much as theories as they are interpretations
 
There are no "branching universes", there is only one "world", but it is a highly entangled superposition, where everyone sees only one possible result
 
so the Copenhagen interpretation
the many worlds interpretation does actually suggest that there are multiple worlds, one for each possible scenario until the wave form collapses
 
Depends what you mean by "worlds" but no, not really.
 
12:02 PM
according to that interpretation yes
 
And there is no "until". Once two "branches" are separated, they never recombine
 
I had to look it up because I wasn't sure
"Also, it is a common misconception to think that branches are completely separate. In Everett's formulation, they may in principle quantum interfere (i.e., "merge" instead of "splitting") with each other in the future,[68] although this requires all "memory" of the earlier branching event to be lost, so no observer ever sees two branches of reality."
though they also do mention that the number of universes may be infinite
 
The typical explanation is that the "branch" occurs upon measurement, and no interference happens after that
 
well that would make sense
the universe just tends to act like it had always been that way
even entangled particles will behave like they always had opposite spins when observed but only if one of the two is observed
 
Well, not exactly, because the multiple paths thing is still evident
 
12:12 PM
I read that they've proven that by measuring the spin of one, the other will have the opposite, even when measured sooner than the speed of light will allow
 
In the double slit experiment, even after measuring it's obvious that the particles went through both slits
 
meaning it is either instantaneous or it always was that way to begin with
@KendallFrey well again, a matter of interpretation
 
There's another interpretation that I came up with so I don't know how it applies to the math
 
If we're looking at purely empirical evidence, the resulting pattern suggests a wave passed through both slits, not two particles
 
12:13 PM
but I view it like the entanglement collapses once you've measured both and compared the measurements
Particles are waves
 
no, that idea was entertained for a while, but they're not
 
Also, we have experimentally ruled out "it always was that way to begin with"
 
At least not while they're being observed they're not
 
@Neil What do you mean?
 
I mean, they act like waves, and they entertained the idea that the particle was "spread out" while not being observed
but they ruled out that possibility
 
12:15 PM
Public ActionResult Register()
{
    //catccha validation code
    //user save code/
    // email verification code
}
Now if for email verification code i do async then does that mean that it will free up my current thread for another endpoint request
and once email task is completed it will switch to main thread for scalability?
 
we just know that they act like waves when not being observed, but they aren't waves
Not particularly exciting when you don't add interpretation to it
 
As I understand, particles are quanta of quantum field theory. They are always waves, there is nothing "pointlike" about them
 
well you can tell how fast it's going or where it is, but not both
but it's enough to know which slit it passes through
they're not interested in how fast it's moving
 
Both of those are properties of the wave
related via a fourier transform
 
and yet, if you observe them, they behave as particles
I mean the whole point here was to know what is going on while they're not being observed
I mean you're not shooting a probability wave through the double slits, but in some ways you are
 
12:19 PM
MWI says they don't actually act as particles, they just look like it because of entanglement with the detector
 
right, MWI says that the detector itself is subject to the same quantum weirdness
if the particles making up the detector are the same particles making up the photons being fired through the double slits, it makes sense that you'd see one "reality"
literally, you're seeing one version of the events
and being in the universe where the particle passed through one or the other means the world branched
as difficult as it is to think there could be infinite worlds, it could just be what dimensions look like beyond 3 dimensions
 
That's the thing, you don't need extra dimensions of space for MWI. You don't need multiple universes. Everything still happens in our 3+1 dimensions, in some sense. It just decoheres.
You can deal with an infinite-dimensional Hilbert space, but afaik that's not specific to MWI
 
well you don't need it to observe the phenomenon, no. You don't technically need any interpretation beyond the effect itself
It just helps to try to imagine what the rest of the picture looks like to gain insight on what the universe looks like
Occham's Razor and all, right?
 
I mean you don't need it at all
 
as opposed to?
 
12:28 PM
As opposed to actually having physically separated universes.
MWI doesn't actually add anything to the bog standard math of QFT. That's the beauty of it.
 
I just found Explorer using 22GB of ram
 
no interpretation adds meaning to a theory
If it were testable, it would be a theory, not an interpretation
 
I don't mean that it doesn't add math, or predictions. It doesn't add anything.
It's sort of the "default interpretation".
 
On another server
 
well there is a formula for the MWI
and remarkably has just one and not several, which apparently it's a worthy goal to obtain by quantum physicists apparently
I saw this, and it does a decent job of discussing the multiple interpretations still being kicked around
 
12:39 PM
@LeeButler woah that's much
 
If you've got some time on your hands, it's quite entertaining
 
Holy shit
 
12:55 PM
how do I move/delete/copy folders/files from one server to another?
manually, I would do it using a remote desktop
but I want to automate it
 
scp / robocopy perhaps?
rsync
 
Ever used SSIS anyone >
 
how do I use robocopy across different servers?
 
I've used SSMS
@Wiet UNC
 
1:11 PM
do the servers then have to explicitly share those files/folders?
 
@ActionHank You can use a conversion operator for that, but what's wrong with just passing it into the constructor? It's a lot clearer.
 
@Wietlol you can probably access \\server\c$ with an admin to access the c drive. no file share needed in that case
 
@ActionHank If you must add a casting operator, I would do it an explicit cast, requiring FloatClass a = (FloatClass)new float[] {...}
 
@Wietlol or for that matter, go to "Computer management", then "shared folders", then "resources" to see which resources you can browse to without creating file shares
 
preferable without making shares or anything
say for example, I want to copy \\192.168.42.42\C:\temp\temp.txt to \\192.168.43.43\C:\temp\temp.txt
also create new folders, delete files/folders and stuff
 
1:18 PM
@AvnerShahar-Kashtan one word: AutoMapper
in class X it's a float[], in class Y it is now an ArrayOfFloats class (not really that name :P)
 
Array<Single>
i think ill try with impersonating
but im not sure if i can then move across different servers
 
1:33 PM
Is scalability really important in web apps?
 
Why SSIS is so difficult, I have this dataset I am getting from third party, all I want is to convert column with value "1" into "True" and if empty then false
 
1:50 PM
@Wiet Admin shares are your friend
 
i love example code
 
You could do something like robobopy \\192.168.42.42\c$\temp\temp.txt \\192.168.43.43\C$\temp\temp.txt
 
@Learning-Overthinker-Confused Depends on the expected amount of traffic. If you build a web app for 1000 users, then not really no. If you want to build something that should rival Facebook in traffic, then, yes, absolutely.
 
@LeeButler the process keeps waiting for some reason...
/C ROBOCOPY \\#.#.#.#\C$\temp\temp.txt \\#.#.#.#\C$\TEMP\temp.txt
i see no output or whatever in the console
and the file is nowhere big enough to even have to wait for longer than a second
running the command in cmd gives me a login error
but I expect to see the same output from the process
 
2:06 PM
It's probably waiting for input. I believe you can pass the creds as CLOps
 
Are we allowed to cross post questions from softwareengineering SE? Got an architecture question I'd appreciate help with but I'm working in c# softwareengineering.stackexchange.com/questions/382389/…
 
2:40 PM
@MattThrower testing private methods shouldnt be required, they should be tested by testing the public api of your classes
keep in mind that your external apis have almost nothing in common, so making a common api interface is odd in this situation
the thing they have in common is that they are accessed through http
for the behavior of those services, that is irrelevant
I would simply make a client library with models and a service object that calls the external service
then, you can set up the api using models instead of throwing back strings of (maybe) json
then, you can make that api in an interface so you can provide different implementations
a few as mocks, for testing purposes and one for the actual external service
possible some others for decorators and stuff, but you often dont start with them
 
2:57 PM
@Wietlol Thanks. I know I shouldn't test private methods - it's one of the things that convinced me my architecture was wrong. In this instance all the Api's I'm talking to share a common purpose, so putting them under a common interface is more useful than it appears
 
i'd keep the interface to the purpose
the purpose of an http client is the connection
the purpose of your classes is their input/output
this is the point where I start ranting about async
 
01:00 - 15:0015:00 - 23:00

« first day (2970 days earlier)      last day (1981 days later) »