« first day (3132 days earlier)      last day (1815 days later) » 

3:00 PM
Really? I heard that as time passes the oil gets ions -> electric conductivity
 
interesting
 
3:13 PM
Ya that's cool but have you tried it with dolphin blood
 
Hi, is there a way to run a project downloaded from GitHub without downloading the repo?
this: https://github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/websockets/samples
 
Well did you download the project or didn't you?
 
mr5
you're basically asking for a remote desktop aren't you?
 
And unless they've made an executable or installer available, I don't think so.
 
mr5
Oh, you mean download the sub modules in a repo?
 
3:21 PM
I downloaded the samples folder
 
Looks like they are their own projects
you should be able to load just those and run them, pending dependencies
 
 
Looks like there's a lot of documentation in github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcore/…
 
Yes, I was reading on docs, and there I found the link to samples
 
3:42 PM
Set up the sample like you would any other site, no?
 
mr5
God, I wish I am smart enough to participate in this forum: quantumcomputing.stackexchange.com
 
im gonna run off chaps
ill probably be around tomorrow
 
4:10 PM
Why when you download a sample from github you have to put the roslyn folder in(mcv/FW)
 
mr5
Quantum teleportation in End Game is a lie. It really means, transferring of data rather than matter.
Although, it sounds like you can duplicate the matter having a "server" listening for every data it receives and assemble it.
> What's more, Bell states are most easily shared using photons from lasers, and so teleportation could be done, in principle, through open space, i.e., without the need to send the light through cables or optical fibers.
Global Router!
 
4:28 PM
isn't energy and matter the same thing?
therefore your body gets converted to energy, transmitted, then converted back to matter
 
@erotavlas does light have mass
 
I don't know, I don't think it does
its an electromagnetic wave
 
mr5
It's unclear to me if matter is a subset of energy, the other way around, or other.
I just concluded it from this excerpt:
> Although the name is inspired by the teleportation commonly used in fiction, quantum teleportation is limited to the transfer of information rather than matter itself.
where it seems the information is referring to an energy
and matter refers to a tangible object
 
i guess they'd have to destroy the original if teleportation was just quantum information transfer
i mean if they did a whole person
 
mr5
it's more like of a "clone" rather than "move"
although it also says that qubits are non-moveable and non-deletable.
 
4:39 PM
hu photons are massless at rest
TIL
 
does a qubit exist on the other end, just waiting to take on the state of the sender?
 
mr5
I guess so, that's how I interpret it.
the only advantage I am seeing now in cloning at the quantum level is that, theoretically, it's much faster than voltages or frequency
I'm just mumbling words here ^^
 
mrMumbles
 
mr5
heyyy macarena!
 
5:06 PM
what will the programing language look like for a quantum computer?
 
probably it will have quantum developers
 
I predict us no longer using keyboards, and no more traditional language, it will be based on light
yeah quantum developers, they can be at home sleeping and at work developing at the same time
 
I mean technically they aren't but maybe they are
 
5:55 PM
if I call multiple async functions that return a task and then use Task.WaitAll(...) on that set of tasks, would one of the tasks throwing an exception cause the others to halt execution?
 
No
Only if one task relies on another
Then obviously the failed task will cause the dependent one to fail as well.
 
So something like this would be the approach to handle exceptions of the tasks?
try
{
Task.WailAll(ListOf3Tasks)
}
catch (ExceptionTask1 ex)
{
//handle it
}
catch (ExceptionTask2 ex)
{
//handle it
}
catch (ExceptionTask3 ex)
{
//handle it
}
 
They should get wrapped up in an aggregateexception
Are you familiar with the type?
 
I am not
I'll look it up
 
To the docs you go!
 
6:04 PM
Ahhh
yeah that is what I was needing. Thank you
 
My pleasure
 
6:32 PM
Hey, anyone want to talk about MVC Views, Controllers, and paths?
 
Anyone? Probably.
 
I have a partial view on a User view that performs some relation functions, including adding roles to a user. I found the User controller getting cluttered, so I thought it might be handy to try moving the Roles methods to a new Roles controller. That worked, but then I had to use the fully formed path to return the User view, and when loading it, another partial found in the original User view folder is not being found.
So... what am I doing wrong?
Or, what concept am I misunderstanding?
 
You're using the ASP Identity MVC 5 out of the box?
Sounds like a you have an ActionLink with out an area? are you even using areas?
Going to need some more context @SeaCharp
 
Nothing to do with Identity, actually. I'm not familiar with areas.
The Users and Roles in this case are for a legacy application, so it isn't using Identity or the built in roles at all.
 
ok Roles usually means that
 
6:40 PM
So you could replace the names with Company and Locations if that makes more sense.
 
;-)
Do you have the error of the missing view?
Why not have a base controller for all your user object needs?
 
I'm not sure what a base controller would look like, nor how to interact with it.
 
                var member = (MemberExpression)expression;
                try
                {
                    var value = Expression.Lambda(expression).Compile().DynamicInvoke();
                    return IsParameter(i++, value);
                }
                catch
                {

                }
this destroys my life
is there anyway to check if I can compile and invoke before doing so?
 
The error is saying it can't find the other partial because it's looking in the wrong folder, and there isn't any in this case. Does a controller always have to have a view?
Let me rephrase the question. Is there a way to use a separate controller for a partial view?
So for example, if I'm managing Company information, and there is a partial view for assigning company Locations, how should the controller/view structure work so that I don't have to put everything company related into one big controller?
 
Hello guys, where should one put Test utils code for a xUnit testing project?
 
7:12 PM
@SeaCharp Here is an example of extending the controller, You can see in the second Controller, it has all the properties from the Base to use in it's code.

This could save you on having to copy the Authentication properties/methods around.
Here is how to return partial views from a separate controller.
https://stackoverflow.com/questions/21089917/how-to-return-partial-view-of-another-controller-by-controller
 
7:31 PM
hey guys! Cna you possibly help me? Whenever I click on my DataGridView I get this error:System.MissingMethodException: 'Cannot create an abstract class.'
This error happens at runtime and is data bound to an abstract class with 2 concrete classes
 
Can you post the binding and the relevant classes?
 
I want it to actually be bound to a file so that when the program opens, it will read info from the file and populate while also reflecting changes made to the txt file during runtime
and yes I will thank you!
public abstract class Room
    {
        // VARS
        private int numberOfBeds;
        // PROPERTIES
        public string RoomNumber { get; set; }
        public bool Balcony { get; set; }
        public bool DownForRepair { get; set; }
        public int NumberOfBeds
        {
            get
            {
                return numberOfBeds;
            }
            set
            {
                if (value > 4 || value < 0)
                {
                    numberOfBeds = 2;
                }
how can I post the binding?
 
Hit Ctrl+K before sending to format your code
 
sorry, total newbie
one second
 
Press up to edit your message, continue pressing up cycle through your most recent messages
So press up three times, the Ctrl+K, enter
 
7:35 PM
Thanks!
 
👍
These classes are all abstract
You can share the grid view definition if you want but I suspect that's the problem
 
oh crap thank you, I'm gonna try it out
but to further explain my problem
 
Try it out before further explaining, no?
 
I am creating a hotel manager app that has 3 classes, Client, Occupancy, Room. The App will display a client list and a room list. When a Client is added to the app, he can then be checked in to the room and fill up an occupancy.
Yeah I will
That solves my problem as I didnt even realize that they were still abstract and everything about that makes sense
BUT it still shows that error
 
15
Q: Can abstract class be a parameter in a controller's action?

DimskiyI have an Action function inside of a Controller, which is being called with AJAX. That Action is taking in 1 parameter. Client side, I construct a JSON object which should serialize into that 1 parameter. The problem I ran into is that the parameter class is declared as abstract. Thus, it ca...

No idea if it's related
 
7:47 PM
Thank you @Sinjai for the help, it's not quite the same problem but it looks like a good read nonetheless
 
When in doubt, try to recreate the issue with the smallest amount of code possible to isolate it.
 
Thank you, will keep trying
 
8:11 PM
I need to update the client once a change has done in the server side (the state of a list of objects has changed), the browser doesn't need to notify the server. what tool should I use? WebSocket?
 
8:53 PM
So, I feel like I'm doing something wrong here, but here we go.

I'm trying to do a strategy pattern type thing. Given some information, we get a list of IDs from the database. For each of those IDs, instantiate the matching strategy class (with information from the database) and pass some information to it.

For now, my plan is a dictionary of IDs to functions that return the correct class. I feel like this could be a little simpler, but there's no, like, "first class constructor" thing.
 
9:25 PM
I can't think of anything particularly better @Grace
I can think of other approaches but not anything better
 
Yeah, it doesn't look so bad now that I did it. Thanks for looking!
 
 
2 hours later…
11:04 PM
I have an arrayList as my datasource for my datagridview, how can i edit/add/update the rows during runtime? Since it's databound every time i click on it i get an error System.IndexOutOfRangeException: 'Index -1 does not have a value.'
 

« first day (3132 days earlier)      last day (1815 days later) »