« first day (4050 days earlier)      last day (892 days later) » 

5:19 AM
@Squirrelkiller +1
 
5:43 AM
Hey guys! Um.. I am trying to use Cookie Authentication, but for some reason, it fails to add the Cookie. A little help?
 
6:33 AM
Anyone?
 
6:56 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
 
1 hour later…
8:18 AM
MORNING
oops
 
Good morning
 
8:39 AM
Why Odeon was called as cinema in all eu
 
9:26 AM
Gunday (transl. Outlaws) is a 2014 Indian Hindi-language action drama film written and directed by Ali Abbas Zafar and produced by Aditya Chopra. The film features Ranveer Singh, Arjun Kapoor, Priyanka Chopra and Irrfan Khan in the lead roles. Set in 1971–1988 Calcutta, Gunday is a story about two best friends and outlaws, who fall in love with a cabaret dancer, which causes rivalry and misunderstandings between them. Zafar conceived the film as an amalgam of stories he had heard from his father as a child about the effects of war-caused immigration and the Mafia Raj's illegal marketing of coal...
goon dey or gun day
 
I would assume "gun day" would be a national holiday for USA
 
10:17 AM
every day is a gun day there
 
 
1 hour later…
11:39 AM
When working with databases and storing images- do you guys store the URL in the table?
I remember something called BLOB type, not sure if that's needed.
 
generally speaking, any file is stored on a file server
the thing we store in the database is a URN
although, the URN may be shortened to a local "URN" which in our case is called the RRN or KRN depending on which "local" we use
 
A Uniform Resource Name (URN) is a Uniform Resource Identifier (URI) that uses the urn scheme. URNs are globally unique persistent identifiers assigned within defined namespaces so they will be available for a long period of time, even after the resource which they identify ceases to exist or becomes unavailable. URNs cannot be used to directly locate an item and need not be resolvable, as they are simply templates that another parser may use to find an item. == URIs, URNs, and URLs == URNs were originally conceived to be part of a three-part information architecture for the Internet, along with...
Is this what you're referring to?
 
yes
 
That's new to me, I'll take a look now
Before I do, why would one use "URN" compared to "URL"?
142
A: What is the difference between URI, URL and URN?

Gustavo MoriBelow I sum up Prateek Joshi's awesome explanation. The theory: URI (uniform resource identifier) identifies a resource (text document, image file, etc) URL (uniform resource locator) is a subset of the URIs that include a network location URN (uniform resource name) is a subset of URIs that i...

 
12:03 PM
depends
how do you intend to host your files?
 
12:22 PM
It'll be saved on our local network.
 
mr5
@EdGzi I'm pretty sure I've already read this before, but I still forgot it.
 
Includes a few good answers
 
but how will you access them?
will all files be accessed via http?
if so, then a URL should suffice
the url may never change though...
 
As the "App" is only running on the local network, I can simply store the data as \\SVR-DC\shared_data\Folder\Image.jpeg
 
an ERN (EdGzi Resource Name) could for example be
ern:imgur:user-id:images:image-id
your application could read it, and understand how to get the actual image
(example assumes you wrote imgur)
 
12:30 PM
and the user-id, is this typically who created the image?
 
yes
for example, we have rrn:mail:<tenant-id>:<mail-id>:attachment:<attachment-id> for mail attachments
which are stored on our servers at least until the mail, containing the attachments, has been sent
this file is not accessible by http because we do not expose it to the outside world
 
I see
 
a URL would be either incorrect or cumbersome
the mail itself is available online however
 
but the app you are building, is it for the use for anyone to download?
 
but only the body is
 
12:34 PM
or - a bespoke app for internal company use only?
 
no, our apps are for specific people
and the rrns and krns are often not exposed to the users
 
"Exposed" - the details of rrns and krns not displayed to the user?
 
usually not
they are application level information
 
Got me thinking about security now..
 
it is perfectly secure for us to share all of them
 
12:36 PM
Is there a way a user using the app can find the source of the image? If they we're to use a mobile application as an example.
 
... at least the ones belonging to the user's tenant and resources
 
Because websites has tools such as dev tools
whereas the apps, I don't really know what can be done.
 
if the image is exposed to the user, it must be sent somehow
usually, that is via http
but you could have a service behind the url https:://resources.wietlol.com/ and you send the wrn (Wietlol Resource Name) in the body, and receive the resource in the output
assuming that you are allowed to have this resource (they are from your account or your tenant) it should probably be fine for security
but having exposed resources is different than having hosted resources
not all resources must be exposed
 
agreed
 
and not all exposure is done the same way
a URN (or domain specific variant) solves this
you can uniquely identify resources, but leave the application in control of how to access it, how to authorize access and how to store it
 
12:41 PM
Ok - this answers a lot of my questions.
 
user12761381
1:06 PM
Greetings everyone
 
user12761381
I have a noob question regarding C# >Model >Constructor
 
user12761381
What is the difference between a model containing auto properties and adding a constructor to it?
I feel that the constructor is unnecessary
 
mr5
execution time
ctors would be invoke first before the assignment from properties take place.
 
auto properties?
init properties?
 
user12761381
Like: gaving only

public int Id { get; set; }
public RoomModel RoomData { get; }
public GuestModel GuestData { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public TimeSpan Length => EndDate.Subtract(StartDate);
 
user12761381
1:10 PM
vs
 
user12761381
#region <Member Variables>
public int Id { get; set; }
public RoomModel RoomData { get; }
public GuestModel GuestData { get; }
public DateTime StartDate { get; }
public DateTime EndDate { get; }
public TimeSpan Length => EndDate.Subtract(StartDate);
#endregion

#region <Constructor>
public ReservationModel(RoomModel roomID, GuestModel guestData, DateTime startDate, DateTime endDate)
{
RoomData = roomID;
GuestData = guestData;
StartDate = startDate;
EndDate = endDate;
StartDate = startDate;
EndDate = endDate;
 
generally speaking, you cant have the first
there is no good way of creating an instance of your model with values
a framework might work around it
but generally speaking, they either require a constructor or settable properties
 
user12761381
Bad practice then (the 1st)
 
but yes, a data model class in C# is filled with duplication
 
user12761381
Have been doing the thing wrong for quite some time (embarassed)
 
mr5
1:14 PM
@Wietlol are you saying he can't have the first because some don't have setters?
 
user12761381
oh
 
user12761381
rigth. I usually have setters
 
user12761381
(sopy paste issue)
 
user12761381
*copy
 
mr5
I don't understand how wietlol answers your question lol
 
user12761381
1:14 PM
I think he got the point
 
user12761381
Due to duplication I thought I was doing it properly (before)
 
if you have setters vs getters+constructor, then the question is more about style
 
user12761381
But.. I'm moving from winForms to WPF (Hobbyist Programmer).
And while learning mvvm; i've come to this question.
 
getters+constructor is more robust
 
mr5
Class a = new Class {
    A = "",
   ...
};

Class b = new Class("", ..)
 
1:16 PM
you cannot create an incomplete instance
 
mr5
I thought you were asking about the difference between those ^
 
you cannot forget fields
the compiler wont let you have instances where values are missing
 
user12761381
Makes sense
 
user12761381
=)
 
for setters, you could forget, fail to refactor, mismatch, etc
 
mr5
1:17 PM
is my reading comprehension this bad Y_Y
 
for setters vs init only, init only is preferred imo due to immutability
if you dont have setters, you can expect that the properties dont change at random
if you want a function that takes in a model and changes properties, let it return a new instance rather than mutate the existing one
but that is just different styles
I prefer the immutable way, others prefer headaches
the duplication of data classes in C# is simply due to how C# thinks you should put effort in
take this class for example:
public class Person
{
    public String Name { get; }
    public DateTime DateOfBirth { get; }
    public Gender Gender { get; }
    public Country CountryOfOrigin { get; }

    public Person(
        String name,
        DateTime dateOfBirth,
        Gender gender,
        Country countryOfOrigin)
    {
        Name = name;
        DateOfBirth = dateOfBirth;
        Gender = gender;
        CountryOfOrigin = countryOfOrigin;
    }

    public override Boolean Equals(Object obj)
    {
        if (ReferenceEquals(null, obj)) return false;
no line in this class is equal to another, yet the duplication is super high
each property has to be
- declared a property
- declared a constructor parameter
- declared a constructor's assignment
- declared an identity value
- declared an identity value (once again)
- declared a value property
 
[milleniumbug] records partially solve this issue, thankfully
 
^
 
[milleniumbug] not sure if I can actually use them in a .NET Standard 2.0 project, MS is a bit vague about this
 
but it is a fairly new feature, and might still not be available to you yet
so, yes, you may have a lot of duplication, but that is just C#
 
1:22 PM
[milleniumbug] I believe there is no technical reason for why it couldn't be, it's not like it requires runtime changes, like DIMs do
 
iirc, they do require a runtime class to be present
 
mr5
@Wietlol include the Java's setter/getter style
 
user12761381
Thumbs up - Learning never ends
 
[milleniumbug] should be usable with a nuget package then
 
@mr5 Java has it a lot better
 
1:24 PM
[milleniumbug] does it now
 
user12761381
Thank you both. I now have a better understanding (and further reading)
 
user12761381
=)
 
[milleniumbug] if the answer is Lombok I'm gonna whack you
 
@Data
public class Person {
    String name;
    LocalDate dateOfBirth;
    Gender gender;
    Country countryOfOrigin;
}
@milleniumbug do it :D
 
@nyconing Why the sudden interest?
 
mr5
1:25 PM
is that the data class equivalent in Java?
 
it pretty much is
 
user12761381
such resemblance
 
@kesarlingHe-Him I think
is goon deh
 
[milleniumbug] there is code that runs on compilation, it's not strictly a Jaba feature
 
because गुंडे as the name
 
1:26 PM
there is a new "data" class as well in Java: records, which is basically the same as C#'s records
 
Yep, it's a hindi word which loosely translates to outlaws/hitman
 
mr5
@Wietlol how would you make a readonly property from that?
 
oh wait, you speak hindi?
 
user12761381
criminals?
 
@mr5 iirc, those are final properties
 
1:27 PM
no translated by google
 
but I havent written Jaba in ages, so I might be wrong here
 
and frankly, it's Gun dey (u instead of oo)
 
[milleniumbug] I'd say the usual solution to the problems with Java the language is: use Kotlin
 
mr5
@Wietlol so the annotation will enforce the rule I guess?
 
user12761381
1:28 PM
"Gunde"
 
correct
 
@mr5 the annotation will write the class for you, then vanilla Jaba takes it from there
skip the wall of text and see the example code
(turns out they are settable, so you'd need final String name; to make them readonly)
 
mr5
wtf is vanilla Java?
is looks like "regular" Java to me
 
that is regular Jaba
 
mr5
where does that vanilla come from then?
iirc, vanilla is an ice cream flavor
 
1:30 PM
@mr5 It's probably like vanilla android
 
because iDunno
 
Rob
it comes from vanilla icecream, being the 'default' flavour
 
mr5
@kesarlingHe-Him I don't even heard that before
 
@mr5 Good boi :)
 
mr5
@Rob oic
 
1:30 PM
.... vanilla is a plant isnt?
 
@nyconing yes
Its seed extract is used
 
mr5
@Wietlol well, the @Data doesn't seem so helpful there.
 
user12761381
@mr5:
" execution time
ctors would be invoke first before the assignment from properties take place."
 
@mr5 why not?
 
user12761381
This means increases execution time?
 
1:32 PM
he probably meant execution order
 
mr5
^
 
generally speaking, execution time from setting properties or using a constructor are identical
 
mr5
@Wietlol oh nvm. I wasn't paying attention to the code.
 
Rob
No chocolate mint chip?
 
mr5
1:35 PM
yeah, annotation on compile time is very helpful
 
[Captain Obvious] Has anyone seen The ServicePointManager does not support proxies with the https scheme. in VS2022 when trying to donwload packages from nuget
 
user12761381
Alright. that makes sense
 
@Botler @milleniumbug turns out the records use init-only properties
 
[Captain Obvious] Mint choc chip is best ice cream
 
and init-only properties require System.Runtime.CompilerServices.IsExternalInit
so, .net standard cannot have record classes (unless you hack it by adding that class yourself)
 
1:40 PM
[Captain Obvious] That nuget thing works fine in 2019 🤔
 
mr5
Why don't C# copy Java's annotation
C# attributes is still runtime.
 
yes, moose tracks are def popular where I'm at
 
because Java's annotations are probably one of the most complex language features
 
Mint chip did contains the chocolate
 
after Java's generics and Java's visibility/access modifiers... and Java's interop, but that is just on another level
 
1:42 PM
mint is better tho and pennsylvania is the only based state
 
I ate all flavor of icecream came on my face
 
[Captain Obvious] Ah yes java interop
[Captain Obvious] Truly the most annoying fucking thing in existence
 
mr5
@nyconing even rotten flavored ice cream
 
user12761381
=S
 
user12761381
Rotten Flavored... Unthinkable!
 
mr5
1:50 PM
probably rotten is not the right word
 
user12761381
Were there flies around the ice cream?
 
user12761381
you might say chocolate chips
 
user12761381
but I meant flies
 
user12761381
x)
 
user12761381
(just kidding)
 
user12761381
1:51 PM
Sorry. It was the very 1st thing that crossed my mind
 
user12761381
"Bro's being bro's": "Swallow one!"
 
blue cheese flavored then yes
 

« first day (4050 days earlier)      last day (892 days later) »