« first day (2682 days earlier)      last day (2492 days later) » 

user5500750
02:02
How can I get all properties of T in Class<T>?
user5500750
Something like this; T.GetType().GetProperties()
03:27
like you have an obj of type List<something> and you want to get something's props?
var list = new List<string>();
var typeArgs = list.GetType().GetGenericArguments();
var props = typeArgs[0].GetProperties();
user5500750
04:24
@FurkanKambay I found PropertyInfo[] properties = typeof(T).GetProperties();
user5500750
But ended up using; PropertyInfo[] properties = modelObject.GetType().GetProperties(); since I had the physical object T modelObject
07:50
Good morning.
 
2 hours later…
09:29
ahoy o/
 
2 hours later…
11:21
When life gets my down, the pressure is up and everything is overwhelming, I like to come into the C# chat on a Sunday morning. For peace and quiet.
12:16
makes a lot of noise
No!!! My fortress of solitude!
makes a mess on the floor
starts summoning the Frey of Kendalls
I have an IIS log with the following fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus
If someone asks me to give him the client ip and the fdqn of the client ip, what does it mean?
The client ip is the field c-ip
but the fqdn?
@WilliamMariager talk about Haskell. I'm pretty sure he has an alert set up for it
@ErroreFatale full qualified domain name.
12:29
@AvnerShahar-Kashtan and which is the field?
@ErroreFatale I don't think IIS stores that. You'll have to do a lookup on the client IP.
@TomW Say it three times.
@TomW Let's try: "You know what Haskell needs? More NULLs"
Speaking of nulls, I was brushing up on my C++ yesterday. I never realized references couldn't be null.
@AvnerShahar-Kashtan I have to write an application which parses the IIS log file, and (in a web page) shows the list of all client ip, the fqdn of the client ip and how many calls from that client ip. So the lookup must be automated... what service would you use?
12:32
@ErroreFatale System.Net.Dns should do it.
@AvnerShahar-Kashtan how does it work? It connects to a DNS server of Microsoft to retrieve information?
@ErroreFatale It connects to your local DNS server. It's a wrapper around the built-in OS network stack.
Basically, it should use the same API that nslookup.exe uses, I suppose.
Thanks. And my last question: an IP has always the same FQDN?
Nope
A hosting provider, for instance, hosts many sites and domain names on the same IP addresses.
@WilliamMariager the compiler requires an expression that guarantees it's assigned, I'm guessing?
12:40
Yeah
@WilliamMariager That's one of the things that separates them from pointers, isn't it? It's not a general purpose "reference to a memory location". It's an alias to a specific, assigned object, right?
@AvnerShahar-Kashtan the problem is that in the IIS log I have calls of 2 years ago. So, how can I determine the FQDN of an ip in the past... I can always perform a look up, which tells me what is the FQDN of the ip now
Exactly Avner
*I can only perform
@ErroreFatale Not much you can do.
IP address from 2 years ago are of limited usefulness. Yeah, they probably weren't reassigned to a completely different ISP or country, but assuming they're IPs for commercial ISP customers, they don't mean much.
If it's for forensic/law enforcement purposes, you can probably get a warrant to ask the ISP for logs of who was assigned that IP 2 years ago. For anything else, there probably won't be too much info.
Again, depending on your use case. If all you care about is knowing what ISP or company gateway accessed your site, you'll probably be fine.
12:45
@AvnerShahar-Kashtan so you are saying that the exclusive thing I can do is to perform a look up and use the FQDN I get... even if the ip was connected two years ago?
@ErroreFatale I don't know of any public repository of DNS lookup history.
There are probably security research companies that keep it.
Just found: dnstrails.com
I don't know if it's what I need
 
6 hours later…
user5500750
18:39
This is taking me a long time to search;
user5500750
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) gives me; C:\Users\username\AppData\Roaming\
user5500750
I am trying to find the path to C:\Users\username\AppData
 
1 hour later…
20:38
@AvnerShahar-Kashtan Nulls are unacceptable at the high level
I believe when you construct a type from another one by removing null, you empower the values of the type
> empower
You give the type dignity

« first day (2682 days earlier)      last day (2492 days later) »