« first day (2356 days earlier)      last day (2599 days later) » 

12:01 AM
Okay, so I think it is solved. My test app just validated that it works! I am going to create an SO post and then answer it so I can paste the code to share with all.
Thank you all for the responses and help!
 
 
2 hours later…
1:43 AM
is anyone here that would be able to help me pls?
 
2:10 AM
 
2:31 AM
Alright boys and girls, I have a fun one
I have a string representing the name of some Enum type (which I don't know in advance). I am trying to find a way to get a reference to that Enum type based on it's string name. I've come very close via Reflection, but I get a Type object from the assembly, but as far as I can ascertain, there's no way to convert a Type object (even one that actually IS an Enum) to an Enum object
Also, because I'm a glutton for punishment, this is within Unity, so ancient version of Mono == no Enum.TryParse and cheating using a generic method with a default value :(
 
@JoshKitchens From what I understand, there's no way to know which enum value it should be, so you only option is to guess (maybe use the default(T) value)
 
Sorry, let me clarify: I have no interest in a given VALUE of the enum whatsoever. I'm purely interested in obtaining an object of type "Enum" whose name matches that of the string
Let's say I have an enum, "enum MyEnum{one, two, three}". I have a string with the value "MyEnum". What I'm after is an Enum object that references the MyEnum type, using the string value "MyEnum" to get it
 
2:57 AM
@JoshKitchens That would just be the Type, wouldn't it?
 
Sort of, but I want the Type object converted into an Enum object, as I'm trying to reference a specific given (but unknown) Enum type at runtime, which I identify by name. It sounds weird I know and it's pretty funky, but if I can get it to work it'll be a pretty cool result
 
You can't have an enum value without a value
 
I don't want an enum VALUE, I want an enum OBJECT which references the enum itself, NOT one of its values
 
That's like saying you want a number that represents the type of number, but you don't want it to be a number.
Unless you mean something different by "enum object"
 
I'm saying I have a field of type Enum (note the capital E). It's not a field of type MyEnum
 
3:00 AM
ok, but still
 
so my variable of type Enum would store a reference to the MyEnum type
 
that's not possible
Enum variables store enum values
not types
 
That's incorrect. I'm already storing enum types in my Enum variable in other parts of my code.
 
I find that unbelievable
How?
 
The variable is stored as a generic, and the calling class defines that generic to be of type "Enum".
 
3:04 AM
But how do you store a type in an Enum field?
That seems to me like parking a blueprint for a Lamborghini in your garage. You can't park a blueprint.
 
I'd store it as a string value of the class name and then write an enum extension to return the Type
 
sidenote: haha I am loving your analogies. But yeah that's just about where I was running into trouble, but I think I may have just gotten it.
 
but I only just read the last two lines of chat so I have no idea why I would be doing this
 
@hsimah the issue is I don't know the enum type at runtime, that's what I'm trying to find via the string name
 
3:25 AM
Damnit. Sorry Kendall, it appears you may have been correct after all and I was misunderstanding the compiler
I finally found what I thought was a solution, but I'm still only getting values, not enum references
Well, I may have to just abandon the string idea altogether then. That's frustrating, but I can find alternatives
but now I'm not even sure if fundamentally my idea is sound
I rarely say this, but "if only this were java"
 
3:45 AM
@RachelDockter Why not just pop in your question instead :) ?
 
 
3 hours later…
6:51 AM
morning :)
 
ohayou
 
@proxy ~~~ヾ(^∇^)おはよー♪
 
<3
 
Morn all
 
7:13 AM
flight to new york in less than 15 hours
still came to work, no one dares to say i have no work ethics :^)
 
morning
 
JRO
morning @ntohl :)
 
8:05 AM
Hi
 
@IccheGuri Hi
 
I am getting a problem with my code .
0
Q: How to get post data after form submission by asp.net

Icche GuriI have the following form in one of my asp.net : <html> <head> <script type="text/javascript"> function GetSampleModel() { try { var wldscan = new ActiveXObject("WebLogonDemoClient.WLDScan"); var Sl_No = wldscan.GetSl...

Please look into this .
I know this is a very simple problem .
 
@IccheGuri have you tried to debug the request collection?
 
how can I debug that ?
 
move your cursor to the line (Request.Form[...]) and press F9
then start debugging with F5
 
8:19 AM
NameValueCollection nvclc = Request.Form;
After debuggin I am seeing the value of variable as following :

{__VIEWSTATE=%2fwEPDwUKLTE4MDU5MzAwNg9kFgICAw8WAh4GYWN0aW9uBUNmYW12ZXJpZnlUWC5hc3B4P25hbWU9JmFwcHVzZXI9JmFpbG9naWQ9JmRlcGFtb3VudD0mc2Vzc2lkPSZjdXN0bm89ZGRLaLIbf6gMRB5SeuUkSj7FHaf%2fRZQuSXp1AE1b4qHvCw%3d%3d&SampleModel=&Sl=&__VIEWSTATEGENERATOR=9EF55AFD}
@SebastianL
SampleModel value is nothing
Sl value is not nothing
 
8:30 AM
in your javascript, make an output to the console of both objects and verify that they are correct, and then look at every key in your nvclc
 
8:55 AM
Morning all o/
 
I have an alert like this :
                    alert(document.getElementById("scan").SampleModel.Value);
It shows the data.
@SebastianL
 
Begin with lower case name violating C# naming rules.
Type:Warning.
IDE1006 Naming rule violation: These words must begin with upper case characters
 
@IccheGuri the value from debugging shows that you don't get any data transmitted ...SampleModel=&Sl=&...
so you have an error somewhere in your js
 
9:12 AM
I have checked the console .
There is no error in it
 
try $("scan.input.SampleModel").value("somevalue") instead of the getById thingy
(not sure if syntax is correct for jQuery been a long time since i tried it)
74
Q: jQuery change input text value

JoricamI can't find the right selector for: <input maxlength="6" size="6" id="colorpickerField1" name="sitebg" value="#EEEEEE" type="text"> I want to change the value to = 000000. I need the selector to find the "name" not the id of the text input. Shouldn't this work?: $("text.sitebg").val("000000...

 
9:37 AM
@SebastianL You could just add a class and use as selector not relying on name or id
 
sure, but i have to use what @IccheGuri has provided for his question ^^
 
ok
 
0
Q: Add SoapHeader to Service Call c#

AliKI have a class that inherits SoapHeader public class SHeader:SoapHeader { //prors } I have generated a service from WSDL and it looks something like this (a lot of code removed to keep it short) public Interface ITestService { // CODEGEN: Parameter 'return' requires additional ...

 
I have checked by this :
$('input[name=sampleModel]').val(sampleModel);
But I am getting exception :
@SebastianL
 
9:45 AM
Hello, my lovelies.
 
o/
 
hello
 
|o
 
\o/
 
9:53 AM
~o~
 
>o<
 
~~~\o/~~~ help I don't know how to swim!
 
help me .
 
( ͡° ͜ʖ ͡°)
@IccheGuri at least post the exception youre getting...
 
(╯°□°)╯┻━┻
 
9:54 AM
> I am getting exception : @SebastianL
weird exception
 
"An exception of type SebastianL was thrown in C# stackoverflow chat."
 
22 hours ago, by Kieran
[Error]
An error occured displaying your error
 
object doesn't support this property or method .
@SebastianL
I am using this code :
$('input[name=SampleModel]').val(sampleModel);
 
well you are probably trying to use car.chimney()
is what the exception says.
 
i think val needs to be value
 
9:59 AM
That part is fine.
Wait a minute.
"This method does not accept any arguments."
 
.val( value )
value
Type: String or Number or Array
.val( function )
function
Type: Function( Integer index, String value ) => String
 
nvm. I hate JS anyway.
 
what is sampleModel?
 
a string variable
 function GetSampleModel() {
            try {
                 var wldscan = new ActiveXObject("WebLogonDemoClient.WLDScan");

                var Sl_No = wldscan.GetSl();
                var sampleModel = wldscan.GetVerifyTemplate();
                if (sampleModel.length == 0) {
                    alert("Something is Error!!!", "Error");
                }
                else {
                  //  document.getElementById("scan").Sl.Value = Sl_No;
                    //   document.getElementById("scan").SampleModel.Value = sampleModel;
 
have you checked if wldscan.GetVerifyTemplate(); returns null?
 
10:03 AM
yes
it gives value
 
what value?
 
!!learn IccheGuri <>alert("Something is Error!!!", "Error");
 
@satibel Command iccheguri already exists
 
Wait . I am giving screenshot
 
!!iccheguri
 
10:05 AM
@SebastianL Hey Sagor
 
wut
why
 
k
 
thats definetly not empty
 
My nickname is Sagor
 
10:07 AM
...is that IE?
shudder
 
Yes
 
!!SebastianL
 
@Proxy That didn't make much sense. Use the !!/help command to learn more.
 
!!proxy
 
HA! i'm incomprehensible
 
10:07 AM
@satibel That didn't make much sense. Maybe you meant: phony
 
XD
 
!!phony
 
pahaha
thats amazing
 
cmon
 
10:08 AM
@Proxy, you are wasting space of chat box
 
i know
i'm a fraud :/
 
I hope you are not not
 
!!learn Proxy <>http://chat.stackoverflow.com/transcript/message/36370032#36370032
 
@satibel Command proxy learned
 
!!proxy
 
10:10 AM
1 min ago, by Proxy
i'm a fraud :/
 
hey guys
 
:p
 
this is bullying right now
 
@Kieran, do you know how to call a dll from javascript ?
 
coming from a french man
 
10:10 AM
which should be run independent of browser ?
My code runs only in IE
6
 
ha ha you cant.
 
lol
 
Ouch
 
Heyyo,
So I currently got a application where I initialize a form like this:
@using (Html.BeginForm("Document", "Home", FormMethod.Post, new { form = "usrform" }))

However, it's not refreshing the site like i would expect it to when you hit one of the submit buttons, and I'm not sure if there's a way to force a site refresh (for example "return RedirectToAction("");" either in a public class, as that's where I'm handling other things associated with the button, so that being said, would anyone have any idea on what I could do? The general idae is that it saves what nedes to be saved to a d
 
npapi which would be able to do that is [being] discontinued.
 
10:14 AM
@IccheGuri Yeah, You don't
 
how i hate package updates for angular
update
nothing works anymore
 
Now I have to solve my main problem :
 
Story of my life.
 
Why am I not getting the value of this fields ?
0
Q: How to get post data after form submission by asp.net

Icche GuriI have the following form in one of my asp.net : <html> <head> <script type="text/javascript"> function GetSampleModel() { try { var wldscan = new ActiveXObject("WebLogonDemoClient.WLDScan"); var Sl_No = wldscan.GetSl...

 
@Proxy except seagate drives, nothing you do to them ever works (no exception for trying to make them not work anymore).
 
10:18 AM
oh that is an old name
 
that's a joke, I have 2 1tb baracuda including one with around 20Pb written (swap drive.) and they still both work well.
they also are 7 years old.
 
Pb as Lead or as in Petabyte?
 
Petabytes
20kTb
 
holy shit, thats a lot
 
(or 20k full read/writes)
around 3 years of 24/7 use, still going.
I probably hit a good drive.
(that's 3 years of 24/7 over 7 years)
 
10:25 AM
What is that bro ?
 
:O
 
@satibel seems so :D
 
mtbf 1,200,000 hours ... ok
 
you downloaded internet
?
 
@Proxy only wikipedia and a few other sites.
 
10:27 AM
I am not able to draw anyone attention
 
@IccheGuri there's J.Doe, you should not talk about that thing you are using, or you will unleash his wrath.
 
means ?
 
!!border-radius
 

border-radiusery

Jan 17 at 14:58, 13 minutes total – 45 messages, 7 users, 4 stars

Bookmarked Feb 1 at 12:36 by satibel

 
Fuck me he's here again @satibel
Did he somehow get ahold of the script Kendall uses for chat?
The one where anyone mentions Haskell and it gives him a notification
 
10:34 AM
@Kieran not today, I have a headache, honey.
 
God dammit @satibel, its a figure of speech D:
 
@Kieran are you angry ?
 
@IccheGuri no, Just the way i talk c:
 
Can I ask you a question if you do no mind ?
 
Sure
 
10:37 AM
3 mins ago, by Kieran
Fuck me he's here again @satibel
Who is that person ?
 
He's talking about J. Doe.
 
^
He's a guy who got banned for a year/banned perm by the SO mods
Reference:
 
@Kieran it's pretty easy to do, just do a dissection on caprica and remove the useless parts, and modify the part for STOP.
 
!!border-radius
 
HAMMERTIME!

border-radiusery

Jan 17 at 14:58, 13 minutes total – 45 messages, 7 users, 4 stars

Bookmarked Feb 1 at 12:36 by satibel

 
10:38 AM
Why did he get banned ?
 
HAMMERTIME!
 
for being annoying.
 
Oh god , that means I am in danger of being banned .
ok Guys .
Thanks for your trying
 
!!jhmckimm
 
@IccheGuri nope
 
10:39 AM
Mar 23 at 14:44, by jhmckimm
It melted through the grill in the oven. Like... The dough. Melted.
 
he also was not learning to stop his paranoïa on security breaches that have been fixed for 2-3 years.
!!satibel
 
Your english speech is running over my head
 
@satibel That didn't make much sense. Use the !!/help command to learn more.
 
@IccheGuri basically he was a tinfoil hat person over js and spying.
 
ow
Thanks guys
 
10:43 AM
 
!!learn satibel <>http://static.tvtropes.org/pmwiki/pub/images/weirdalfoil_2322.jpg
 
@jhmckimm Command satibel learned
 
There you go. You're not so lonely anymore.
 
I have solved my problem .
 
10:47 AM
Thank you @SebastianL
Your suggestion works for me .
 
11:29 AM
Anyone online who knows how to use wsdl files to consume web services?
When I include the service reference (in the wizard) I see the desired methods, but the generated file does not contain the proper class+methods.
 
you need a client
 
well I created a console application and want to use the wsdl file there
 
var client = new Webservice.ServiceClient();
client.myFunc();
try that
 
I don't have this client class in my generated code
 
replace Webservice by the name of your webservice
and service by the name of the service
 
11:39 AM
So, when I generated the class I have to set a namespace. let's call it MyService
so my new namespace is MyService and I have to have some class in it called MyService.ServiceClient but there is no proper class in namespace MyService
 
ServiceClient is not always the name.
for me its QuickcostServiceWS so, the thing to watch for is QuickcostServiceWSClient
 
366
Q: Jon Skeet Facts

Bill the LizardI'm looking for Chuck Norris Facts style answers. In case anyone is curious, this question was inspired by Jon's own comment to this question. EDIT: If you're into cryptography, you may enjoy these facts. Now with official sanction from the powers that be!

 
12:00 PM
What exactly indicates whether a Yield return will be skipped or not?
 
It's not?
 
So in function with "yield return 1; yield return 2; yield return 3; yield return 4;" etc. will return an enumerable that'll just return 1 forever?
*So a function
 
No, yield returns to the caller, and when the method is called again it continues from the yield call.
 
@HaniiPuppy no
 
AH, the function's paused until the next call?
 
12:05 PM
Pretty much.
 
It's not compiled to an ordinary function, the compiler creates a state machine.
 
if you materialize the enumerable with .ToList() you'll see it contains [1, 2, 3, 4]
 
I've been trying to look on google & stack exchange for some kind of explanation of why consecutive yield returns only seemed to happen once, but yield return in a loop returned multiple times. I was under the impression the each call to MoveNext in the iterator just called the function again and yield return was doing some kind of magic.
*that each call.
 
It calls the function again, but the state machine remembers what state it was in and resumes from where it left off.
For all intents and purposes, you can treat the function as running once from start to finish.
 
12:37 PM
:)
I SAID SMILEY FACE GOD DAMMIT
@007 isn't here to smile back :(
 
c:
@SteveG happy now?
 
yeshh
 
so has anyone had an issue with the JS Kendoui framework where graphs don't render anything other than your plot points?
 
i have not
 
JS? shudder
 
12:45 PM
I'm using this example code, litterally to just get the graph on the page
that's what im getting
 
pretty
 
not so much
Its supposed to look like that
there's litterally no difference
no dependency missing
no changes
 
the link you sent me works
thats what you're supposed to get?
 
Yeah i know
thats what it is supposed to look like
my screenshot is what it currently looks like
No Errors either, which is concerning
 
lol wut
 
12:48 PM
@Kieran are there other elements on the page?
 
Yep, a fair few
 
than reduce them until it works and add them in reverse
 
I think i have an idea of what it may be
the graph uses SVG's
I use svg's on other parts of the page
that have css
may be that
 
:)
 
well, not svg causing the issue
i have css for path elements
god dammit
Thanks for rubber duck
 
12:53 PM
are you refering to us as rubber ducks? :O
 
Maybe
 
okay
 
1:21 PM
Quack
 
Is there a way to specify that a generic type T has type parameters? I'm trying to write a method that accepts a T1<T2> and returns a T1<T3> where T1 is a Collection.
 
how can a type have parameters?
 
then just use Collection<T2>, if it inherits collection, it will work.
 
But I want to return the same type of collection that's passed in.
 
 
1:29 PM
@Feeds true, I always browse in incognito mode.
 
Were I just using Collection without type parameters, I'd be doing: TCol Foo(TCol Bar) where TCol : ICollection {} - Isn't there some way of doing something like TCol<T2> Foo(TCol<T1> Bar) where TCol<*> : ICollection<*> {} ?
 
Can someone explain to me what is happening in memory when you have an anonymous event handler that uses a variable that's declared and defined outside that handler, but still in function scope. The function call that the whole thing is contained in stays in memory until the event is returned?
 
afaik, you need to specify the type when implementing ICollection
 
ok i found a site that breaks my browser
well at least i can not play the video from it
 
Or is it just the values that the the handler uses that are retained?
 
1:41 PM
oh, nvm, you can make it a template
class Col<T>:ICollection<T>
@HaniiPuppy though is it a problem if you have to cast the result?
 
I suppose not, but it kinda defeats the point of generics a wee bit.
 
@Hypersapien The GIF of your avatar is so satisfying.
 
lol
When I first added it, it would animate. Now it doesn't. :(
 

« first day (2356 days earlier)      last day (2599 days later) »