« first day (2160 days earlier)      last day (2787 days later) » 

12:55 AM
@scheien causing trouble :) and thanks
 
 
5 hours later…
5:43 AM
Good mornin viatnam!
 
o--------------/
 
            \--------------o
 
6:09 AM
Mooooooorning
 
o--------------/
 
6:44 AM
\---------------o---------------/
 
 o___/ <waves>
/|
/ \
 
0'---------------o---------------/
^ he ded
 
but ies he dieded?
 
7:00 AM
yaa
 
:(
 
Morn all
Amazon Echo UK launch this morning
 
what did he launch?
the morning?
fucky you amazon, you could have waited some more hours before launching it
I'm sleepy
 
this morning..not now
 
9:14 is morning imo
and it was just a shitty joke because your sentence reads as if amazon had launched the morning
 
7:15 AM
\o
 
not that amazon echo was launched this morning
hey ro
roelie(?)
 
its still correct statement I cant help if your parser cant handle it
:-p
 
oh
like its not still launched
 
eyup there ASK
Symbol. Servers. Are. So. Slow.
 
7:31 AM
I have never once gotten a symbol server to work
 
5 hours trying to get something to work yesterday. Left work stressed and angry. Got to work this morning, fixed it within 30 minutes.
 
@RoelvanUden morning sensai
 
It's like the most productive thing I can do is Not Work.
 
I've known people like that
The less 'work' they do the better.
 
hah
 
7:32 AM
There are days like that for everyone. Where you've looked at the problem so long you have to go do something else.
 
Good morning everyone
 
@Bechi Good morning.
 
Is there someone out there willing to be my rubberduck?
 
Oooh, sounds kinky.
(Yes, I know what it means :))
 
I have a class myClass with some properties. Let's assume we simply have a myData property of type object, and one property myKey of type myKeyType
 
7:43 AM
IIRC the think about rubber ducking is that you dont actually need another human
 
What I want to do is to create a Collection of instances of MyClass
Wait, a set of instances
And this set should use only the value of the myKey property to check if an instance is present in the set
 
@Aimnox what is IIRC?
 
Two questions:
 
If i remember correctly
 
ah k thx
Enough abot rubber ducks, whats with rubber dolls? (blowup dolls)
 
7:45 AM
One: I must create an IEqualityComparer<MyClass>, and use it in the HashSet-Constructor, right?
 
You're asking if someone wants to wear a full suit of rubber while you play with them in the bath..
 
poor Bechi, we are ruinng the question :<
 
Two: As IEqualityComparer asks to overwrite GetHashCode Method, I have to be sure that MyKey is readonly (not only immutable, but readonly), right?
 
In software engineering, rubber duck debugging or rubber ducking is a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. Many other terms exist for this technique, often involving different inanimate objects. Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process...
 
And third (well, after this I'm really through): The IEqualityComparer implementation can provide a different GetHashCode Method than myClass, right?
Did I miss anything important?
 
7:47 AM
@Aimnox smarter every day
thanks 4 sharing
 
@Bechi readonly is just a way to ensure immutability.
Immutability is a design concept. readonly is a C# syntax feature that helps guarantee immutability.
Also, there are two (similar) ways to do this. If you always want your MyClass instances to be comparable the same way, regardless of container or collection, you should implement IEquatable<MyClass> on MyClass itself, and ensure that you override Equals and GetHashcode accordingly.
But if you only want this logic applied in specific scenarios, you should extract the logic to an IEqualityComparer and use it explicitly in the scenarios where you want this identity logic applied.
 
@AvnerShahar-Kashtan Thank you. My Example was misleading. In fact, there is a GetHashCode Method in MyClass that uses both properties.
So yeah, I only want this special logic in one scenario. I want to remove the redundancy (and possible inconsistency) in Dictionary<MyKey, MyClass>
 
In this case, you only need a comparer for MyKey, not MyClass.
 
Yes, but MyKey is a member of MyClass
More than that, my logic currently uses the Dictionary<Mykey, MyClass>, where the MyKey isntance is the MyClass.MyKey
 
And you want to switch to a HashSet<MyClass> because you don't really need a lookup dictionary, just something to maintain uniqueness?
 
8:01 AM
Yes, I need only the enumerability and the uniqueness (O(1) check in the contains method) of the set.
A question aside: Obvously, my question was not clear and potentially inappropriate in this chat. I sometimes find myself asking such kind of questions here, and I'm not happy about it. Could you give me some advice on this, too?
@AvnerShahar-Kashtan My problem with the dictionary is, it is creating redundancy, and possible inconsistencies. If I add a KeyValuePair to it, the MyKey (as Key in dict) and the MyClass.MyKey (taken from the value in the dict) is the same. If someone comes, and changes the value (MyClass) belonging to that MyKey, the MyKey property is no longer consistent (between Key and Value of the entry in the dictionary)
 
@Bechi It's true that for a dictionary, the key and the value aren't necessarily linked. The fact that the MyKey is the one from inside MyClass is accidental. HashSet, as you said, is the better choice.
However, while I asked several clarifying questions, your question was mostly clear, and not even remote inappropriate, so you don't really have to worry about that.
 
8:17 AM
@AvnerShahar-Kashtan Yeah, but maybe i "abuse" this chat on SO, since there are the questions already out there. However, there is no other dedicated software developer over here who I could have a chat with.
 
Generally speaking, feel free to ask questions. People here are A) good at ignoring questions they don't want to answer, and B) good at telling people if they're being obnoxious, needy or help-vampires.
2
So far, you've been none of them.
 
8:33 AM
Yep
as you can see we are pretty good at A
And this is still stackoverflow, maybe here we chat off topic too but IMO (and im a newcomer to the chat so idk) in topic stuff should have priority
 
It's a chat, mainly about C#, but that doesn't mean we're robots that talk about nothing but code.
 
@Ggalla1779 LOL Morning is launched guys! Prepare the coffee
 
@Bechi don't trust @RoelvanUden, he is a robot programmed to supervise and controll this chat
 
lol
 
I'm a person with feelings >_<'
 
8:43 AM
@Squiggle yeah it funny how the universe likes distance.... in all things!
 
♥ sensai
 
I really dont think Roel would pass the turing test
@Nerdintraining have he ever noticed you?
 
lol
I must agree.
Have you heard of the google bot, that would even pass a turing-hearing-test
 
When a general AI pass it I will be impress
 
People forget that turing tests have two sides. And for a computer to pass the turing test you need either a very smart AI or a pretty stupid human.
 
8:48 AM
a chat bot, meh
 
haha :D
Hasn't the turing test already been passed in liek '73?
 
To be fair there is people who fail for the porn sites ads of "Hey, how are you :) I'm alone at $yourcity"
 
A bot already passed it
 
called roel?
 
8:51 AM
wow...its starting
 
@RoelvanUden when was that?
 
2014.
 
jeez long long time ago
 
hmm
Eugene was first developed in 2001 en.wikipedia.org/wiki/Eugene_Goostman
 
how do the best actual chat bots deal with sarcasm?
 
9:01 AM
Why dont you test it :)
we have one among us
 
@Aimnox I know a guy whose PhD disseration was about detecting sarcasm.
It works really well.
 
No one on over at HTML/CSS :/ Sadface

Does anyone know how to get a "li"-sibling of this one:

.main > ul > li > a.active
a.active has a sibling I want to access
 
$('.main > ul > li > a.active').siblings()?
 
Pure css
 
If i have 10 methods in a class A, I am inheriting this class , with class B and class C. I want particular 5 methods of class A to be accessible in class B and those 5 methods will not be accessible to class C and vice a versa .. ( Class C with other 5 methods accessible which are not accessible to Class B.) how can I achieve this?
 
9:08 AM
No javascript :)
 
oh
 
.main > ul > li > a.active ~ li ?
 
@Sagar create to interfaces. Make A implement both of them
 
@Sagar great tutorial on inheritance
 
9:10 AM
I think it should find all <li> that are after the a.active.
 
might even give nth-child a try.
 
B and C will implement the 2 separate interfaces, and use only the interface
 
@ntohl but both of them will have access to all methods in that case
 
not B and C
 
9:11 AM
@Sagar who cares. You define the exact 5 method, that the user of B should use
 
@ntohl but he should not have access to other 5 methods is the case
 
No success with either, sadly
 
I host my wcf application in a console appliction
 
or wait..
 
how to do to deoploy it on server?
 
9:13 AM
It worked.. Fockin hell I have been stiring myself blind.. It was an "i"-tag and not "li".
Thanks
 
haha :)
 
@Sagar I'm making an example. I don't know when will I finish (I have to do several other things too)
 
@JakobMillah o/
hey I want to learn to develop for android but am wondering if I should repolish my rusty hello world java skills or go with Xamarin
 
Or go with Cordova.
 
haha
 
9:27 AM
@RoelvanUden Cordova should work well for like 80% of app scenarios like uber, instagram,quora kind of apps right?
All I get from comparison on google is that if am not too keen on device hardware api's per say then hybrid apps built on say Cordova,Phonegap should be fine.
 
@ntohl thanks .. I will look into it :)
 
@Sagar Tho I would just not use B and C, and A would implement both interfaces, and segregate the methods with interface
 
considering I don't own a mac my crossplatform with Xamarin will basically be windows and android :-)
 
okey
 
War
hmmm ok VS its one of those days is it ...
Cannot insert the value NULL into column 'Content', table 'Utilities.dbo.QueuedEmails'; column does not allow nulls. UPDATE fails.
Stack trace:
get called on controller
get called on service
get called on my ef context
findasync called on dbcontext
what about that is doing anything with insertion?
WTF!!!!
 
@JakobMillah what is this?
 
not kool
 
@ntohl Game called Besieged
Pretty nice if you like good physics and engineering
Not my cup of tea when off work :P
 
nice
 
9:54 AM
@GotaloveCode Cordova can do pretty much anything. But, the more native stuff you need in the background, the more plugins you'll write (or use existing plugins).
In the foreground I never needed something special
 
any one knows how to deploy console application as windows service?
 
War
@Kob_24 you need to wrap the logic you have in the program.cs file in a class that inherits ServiceBase
 
cool. @RoelvanUden everything definitely points to hybrid right now considering I should also flex my js skills and learn more.
 
War
having done that you can then that up from program.cs or call it up from the service host in windows by deploying it as a normal windows service
 
and then?
any tutorial about it
@War
 
10:03 AM
@JakobMillah lol
 
@GotaloveCode It really just depends on what you need.
 
10:22 AM
god
im so sleepy
like at two minutes of not forcing myself to be awake of failing sleep
send help pls
or a bed
a bed better
 
SQL server on a 8GB Ram machine ... should we burn it ... stone it ...
 
War
@Kob_24 there's this wonderful invention thats been around for some time now ... we call it "google", it's really clever and allows us to search for publicly available information such as perhaps "how to create and debug windows services"
 
@Hamza_L What's wrong with that?
 
many users connected on this "server"
 
10:29 AM
the server is suffocating
 
That's not the fault of its RAM capacity.
 
many queries
many big queries
 
@War i like fast answers thats why am here and thats why we have the chatroom
;)
 
@RoelvanUden, even with big queries ?
 
10:32 AM
I can tell the difference, because there is a copy of the sql server in another machine, and it's doing well
 
HD reading speed?
 
@Kob_24 dont work with windwos services
you'll cry!
U willw atn 2 kill urself
U will start seeing things
no wait, that was lotus script, windows services arnt tha t bad
 
War
@Aimnox yeh no shit that was point to @Kob_24
 
@Nerdintraining hehe
 
10:35 AM
Just dhowing lmgtfy
cause <3
 
It's a walkthrough how to create a service
 
War
@Kob_24 we aren't here to answer questions that you haven't at least thought about a bit yourself ... it's like asking where to go to install VS ... figure it out, come back with more specific questions, besides that ... I gave you an answer how hard is it to follow up with a google query?
You guys do much factory based stuff ?
 
@War man dont bother
 
War
I have a gneeric factory for building my services
 
i solved it
 
War
10:37 AM
got this wierd situation
 
lol
 
@war the way i would do it (service) is just ctrl+c ctrl+v
the code :D
 
War
@Nerdintraining :facepalm:
 
@Nerdintraining With that level of expertice you could be my teacher
 
\o/ yeahy, i am senpai now!
 
10:39 AM
saint god i have had some teachers with a) a terrible technical level or b) a terrible teaching ability
A-a-and do you no-notice me? S-senpai?
 
There there, take a cookie
 
A senpai cookie *-*
 
War
I have this code guys and I hate it ...
try   { return contextServiceType.MakeGenericType(typeof(T)); }
catch { return contextServiceType.MakeGenericType(typeof(T), typeof(TUser)); }
the problem is that I have a type I need to generic instance of but that type may have 1 or 2 generic params
 
@War That sound like an anonimous programmers sentence
Hello, my name is war and i have this code that i hate
 
War
The actual type of the variable "contextServiceType" is System.RuntimeType
which has a property I want to use
I can see the property at runtime in the watch window but I can't use it because RuntimeType is internal
 
10:44 AM
@War contextServiceType.GetGenericArguments() doesn't give the results you want?
 
War
contextServiceType.GetGenericArguments returns 0
contextServiceType.GetGenericParameters returns the number I need
contextServiceType.GetGenericParameters though is on the internel type RuntimeType so I can't access it
based on that I know how many params I need to give to build the generic instance
 
And I'm guessing you don't want to poke into the internal method with reflection.
Understandably.
 
War
This code is already quite reflection heavy ... it crawls the app domain to build binding rules for types
it only happens on app load so it shouldn't be too bad if its slow
can you get internal properties with reflection?
 
Hey, bevor i ask my real question, does any1 of you have experience with "Microsoft Visual Studio 2015 Installer Projects"-Instller or Installers in generell?
 
@Hamza_L Perhaps. Is it being topped on RAM and not CPU? Then sure, it's the RAM fault. But really, your database and queries must be ABSOLUTE MONSTERS to top that RAM :D
 
War
11:08 AM
@Nerdintraining its basically just a windows app as I understand it ... but designed to help you deploy stuff (obviously)
 
ya, i am working on a question atm cuz i didn't find a solution on google
I'll post the question here once I'M done
 
yawn
 
War
@AvnerShahar-Kashtan I think the issue is that GetGenericArguments() gets the type arguments given when you have the type of some instance, in my case I have something like Something<T> or I might have a Something<T1,T2> and i'm about to create an instance but I need to know how many args to pass
it's probably a design flaw that i'm even here if i'm honest but I can't think of a better way to handle the situation to this point
am I making sense here?
maybe the better way to say it is ...
GetGenericArguments() gets you the generic args when you have a type with them filled in, I have an array of args I can provide and a type that takes N number of them and I need to determine for the type before I call MakeGenericType(typeArgs) how many to pass to the call.
anyone got any thoughts on this?
...
Where is everyone today?
 
11:28 AM
Hey @war
 
War
^
depressing ... @scheien hi there
 
@War Where do GetGenericArguments() reside? In the type/class?
 
War
yeh
 
@JakobMillah shiiieeeeet wublublublbub
 
War
11:33 AM
so Imagine you have this ...
Foo
Foo<T, T2> : Foo
ContextFoo<T> : Foo<T, SomeType>
I have a Foo factory that needs to figure out which foo to return
The request will come in the form GetMeAFoo<T>()
based on some reflection code I figure out that in the AppDomain I Have a ContextFoo<T> or I might have for T only figured out that there is only a Foo<T, T2> available, I have that type but I have not yet passed any generic params because that happens when you call type.MakeGenericType(typeParams)
I need to determine how many params to give the call
GetGenericArguments() gets the list of args I gave in MakeGenericType, but before that the type I have is something like "Foo<,>" ... the type params are not yet known
 
@War Panic panic panic, so busy
 
War
@RoelvanUden hell broken loose there?
 
War
I had that last week ... rewrote the whole back end due to a security hole in the stack (this is basically the last of the fallout)
The code I have works but its ugly as all hell ... flow control with try catch is not a good idea
 
if only it was a saas stack
 
War
11:39 AM
it is ... lol
 
we have installations all over the place, at customers
aka more panic
 
War
except it's my stack that provides the saas
@RoelvanUden yeh sod that crap
did you guys not build in an automatic updates feature?
or at least a means that allows clients to whack a button and do the equivelent of a "get latest" from the app
that way you could roll out fixes real easy
 
I've finally finsiehd my question *yeahy *
here it is for all of you known with Installer Projects:
0
Q: Microsoft Visual Studio 2015 Installer Projects, acting on Selection

Nerd in trainingSo I am trying to create an installer (using Microsoft Visual Studio 2015 Installer Projects), which prompts the user if he wants to have a desktop shortcut for the programm which is to be installed. This is what i have done up till now. Navigated to the "Userface-Editor" Rightclicked on St...

#hopesomebodygivesafuck
 
nothing I have any knowledge on :(
 
On a positive note:
This means i can be Senpai on this field \o/
 
11:50 AM
@War no, because customers demand we can't do that.
@War most machines can't even connect to the internet really
besides, i'm still in the 'only this client has this weird issue' phase
 
ew.
I'm part of this company's strategy to clouderize everything. Even now most almost all of our projects here are custom on-site SharePoint thangs.
 
@RoelvanUden IoT man, get with it
 
War
@RoelvanUden awwww I hate that
it usually means though that they have a hit bug no one else has yet
 
or they fiddled with a configuration setting they weren't supposed to touch
"but I just wanted to create an extra account in the database so my nephew's university project could access our transaction records"
"I know you've got a REST API, but he's only learned SQL and Visual Basic so far."
 
War
:facepalm:
 
12:04 PM
Regular night in West Virginia
 
War
@RoelvanUden wait ... MOST ... that's not true surely??
most secure gov networks perhaps ... but just most !!!
 
Can anybody see anything in this path string that would cause a NotSupportedException which complains about the path's format?

using (StreamWriter sw = new StreamWriter(File.Create(@"‪C:\Users\22300\Desktop\Testing.txt")))

I'm at my wits end, unless trying to run this particular type of code in a unit test is causing the error (using NUnit and Resharper)...
 
@ChrisThompson There's an invisible character between the " and the C
 
War
what are the rules for multiple accounts on SO ?
 
@War SO does contain multiple accounts
 
War
12:17 PM
@KendallFrey no I mean is it against the rules for a person to have more than one account?
 
maybe
As long as you don't cross-vote, I don't think they care
I own 3 accounts
 
@KendallFrey Huh, that seems to have been the issue. Weird. I got the path from copying off a file...
 
I can't imagine the mods would miss an opportunity to bitch you out about something
Whether it does any actual harm or not
 
Heck, even Jon Skeet has multiple accounts
 
@KendallFrey how did u find that?
 
12:28 PM
By looking
 
@War Who do you think we work for ;-)
 
@Nerdintraining Just hit backspace when the caret is in front of the 'C'
or you can copy it to notepad++ or something
 
Lol
thats interesting
 
Interestingly, Notepad++ doesn't show it either. Either that or Windows didn't actually copy it.
 
@"‪C:\Users\22300\Desktop\Testing.txt"
@KendallFrey It shows when switching encoding. UTF8 vs ANSI
 
War
12:30 PM
@RoelvanUden its a fallacy ... they think they have control but the reality is that the money controls the world, money pays us nerds to rewrite the world in their image ... if we all rose up we could fix the world but we accept the fallacy so we work for morons doing grunt balls til we facepalm ourselves to death
 
I may need to write yet another Stream wrapper
this is getting ridiculous
 
@War Whoaah. Easy there tiger.
 
War
<-- having a moment
 
@RoelvanUden NSA NSA NSA
 
@War iluminati confirmed?
 
12:42 PM
whyyyyy? why must I make so many Stream wrappers? why is is such a pita to do so?
 
using using using using
 
War
@KendallFrey maybe if you wrote one smart one that could do the job right the first time you wouldn't have to
learn and build something smarter!!!
 
               }
            }
         }
      }
   }
}
 
Shots fired.
 
Conspiracy illumianti = new Conspiracy(@War);
illuminati.Confirmed();
 
12:43 PM
@War That's not how things work
 
War
@KendallFrey sure it is ... if you can think that way ... bend yourself not the spoon
 
you just have to beliieeeeve
 
I can't just write a Stream wrapper that does EVERYTHING
Especially not if I have to pass in a configuration object to tell it which things it needs to do and not do
 
Take the red pill.
 
Maybe the situation would be improved by writing a base class for all my stream wrappers
I'm gonna end up with no less than five classes derived from Stream
 
1:02 PM
I cant see a difference between mvc and web api other than mvc supports views. Can someone help me out here? I tried reading through some "mvc vs web api" questions, but there is no clear answer.
 
In the .net core version there isn't one, the controllers are unified
WebAPI is MVC for data, basically
Or MVC is WebAPI for pages, if you will
 
In MVC6, WebAPI and MVC are merged..
So yeah. That should say something.
 
War
1:22 PM
<3 been waiting all this time
now I don't want to rewrite my core :(
 
then dont
 
We are the champions
 
shiiieeet
 
Can I call object names dynamically? For example: image0_1.Source = .. Say I have 0 and 1 inside int x, y. Is there some way to call image(x)_(y).Source = ..? This is assuming the object exists of course. Not creating them dynamically.
 
hey guys
 
1:29 PM
@icecub probably using reflection but I think now would be an excellent time to take a step back and re-consider your approach to whatever problem you're trying to solve.
 
@icecub you could use DynamicObject but yeah...seriously reconsider
 
@mikeTheLiar I'm currently in class. We're supposed to create a long list of if statements on each possible image. I was just wondering if I could speed up the process a bit, that's all
 
There are some problems that can only be solved using reflection. Those problems are few and far between.
 
You say 'not creating [them, what is 'them'?] dynamically' but what you're talking about is dynamic behaviour
 
@icecub I would probably just stick them in some sort of dictionary
Or some other collection that could be processed iteratively
 
1:32 PM
@mikeTheLiar Thanks I'll see what I can do :)
 
Talos guide you
 
Why the firg isnt Microsoft-Visual-Studio-2015-Installer-Projects setting up all the files and folders that i configured?!
Grrrr
 
@icecub Sounds like you want arrays
 
@KendallFrey Nah I just realised I can do it with FindName() :)
 

« first day (2160 days earlier)      last day (2787 days later) »