« first day (1416 days earlier)      last day (3526 days later) » 
00:00 - 15:0015:00 - 23:00

3:01 PM
i don't think "the risk for" makes sense
i think both your examples would be "risk of"
 
It does
The risk for cutting off your leg is dying.
The risk of cutting off your leg depends on what you are doing.
 
doesn't sound right
 
It is right :P
 
The risk of cutting of your leg is that you will die.
 
Wrong context.
 
3:03 PM
"at risk for something"
"the risk of something"
but not "the risk for something"
imo
 
Grammar != opinion :P
It might not be commonly used but it's correct.
 
shrug the googles shows me risk for / risk of being used in the same context
 
@drch that's because Google is shit.
 
Hmm how to describe it
 
3:05 PM
with a link perhaps
 
the risk for doing something describes the risk you get when you do said something
The risk of something is the risk of said something actually happening
The risk for opening a barrel of nuclear waste is radiation poisoning
 
The risk of opening a barrel of nuclear waste is pretty low ..
 
i dont see "risk for" anywhere on that page
your "risk for" sentence doesn't make sense
 
"I will take the risk for it"
risk for doing something
It makes perfect sense.
"I will take the risk of it" doesn't make sense in that context.
 
3:08 PM
Ok, I think I've come up with a pretty good (but weird) definition lol...

The risk _of_ contracting HIV is something I'm willing to take if it means I don't have to wear a condom.


What will you risk your life _for_? A: Unprotected sex.
 
[citation needed]
 
Not bad, baeltazor.
 
yay
 
drch go ask on the English stack overflow
 
i dont have to - i found a source that backs me up
 
3:09 PM
I'm sure the grammar nerdzis will give you a good answer.
 
:P
shit - i forgot to push changes from my other machine
 
@drch if you gave me a job, I wouldn't do that... :P (but i'd probably do other, equally bad things)
 
Hired!
 
i wants me a job dammit :(
 
I have two integers that I have set to zero: CurrentCount, and ActiveCount
I want to minus one from active count everytime I hit submit here is my code for the submit button:

foreach (System.Web.UI.WebControls.ListItem li in chkDepartments.Items)
{
if (li.Selected == true)
{
strDepartments += "'" + li.Value + "'" + ",";
CurrentCount += 1;
ActiveCount += 1;
}
}

and in the page load i have
if (Page.IsPostback){
ActiveCount -= 1
}
but the Active count remains only one under the Current count...how do i resolve this?
 
3:16 PM
--ActiveCount;
 
bael where do you live ...
 
@Skullomania you can't keep state in controls. new ones are created on each page request
 
If you can do ASP.NET (which is pretty much just C#) you can get a job. :D
 
you have to load that state from somewhere else
 
Australia. where everything's shit and expensive
 
3:17 PM
Mate ..
You have it good in Aus
 
@baeltazor where in AU?
 
@Sippy yeah, we do. but it still hurts because it's worse than when we were growing up. now i'm in a nostalgic state of mind about 80% of the time
@Sippy where you from?
@drch sydney
 
England.
At least your immigration laws make fucking sense.
 
ah cool. i lived in sydney for 3 or 4 months back in the day
 
@Sippy really? then why do we get all the pricks?
 
3:19 PM
Lol
In London, people are getting beaten and mugged every day for not complying with Sharia law.
That's Islamic religious law, from the middle east. Which is no where near the UK :D
 
@drch hidden field...why did i not think of this facepalm i will try...
 
Why did they legalise that? Do countries not protect their own "blood" anymore?
 
England doesn't because the MPs were born of families that couldn't go to war
The weak and the cowardly.
 
I've read that it's starting to happen all over the place
 
yep.
There was a section of London called Luton that was actually taken over, the Muslims living there have declared it as a Sharia law area.
The UK is weak and I hope it gets ended, I'll be outta here well before that though :P
 
3:24 PM
How can anyone just do that? I mean, didn't the Government have laws in place that prevent people from introducing their own laws?
 
Too many hippies and political correctness soldiers
Yeah but as soon as the muslims cried about them being oppressed, they just bowed down
Cos they're scared
Need an oldschool government
 
Yeah
 
To stop pussyfooting it and tell them if they don't fucking like it, fucking leave
 
i think we need that too
 
Lol
 
3:26 PM
that sounds like an aussie thing to say btw lol
 
Some guy was in the news recently who was hospitalised by Muslims for buying alcohol.
Sounds like oppression to me lol
 
everything about them is oppression. but when other people defend themselves they're somehow being oppressed. LOL
 
Lol
Some muslims are cool, met a few I got on with really well
But it seems like you're either a westernised muslim or a terrorist over here.
 
i would assume the vast majority don't beat up people for buying alcohol
 
There's no middle ground.
 
3:28 PM
uh lol?
 
Lol
In Luton you'd be lucky :D
 
you either drink beer or youre a terrorist
8
 
there doesn't seem to be any middle ground at all
 
No
 
they're either extreme or sympathisers
 
3:29 PM
You either accept that you live in a Western country where others drink alcohol, or you oppress them for it
Is what I meant.
What I also found funny was that when I was in Birmingham there were more muslims than white Brits, and further to that, I've never seen a single Christian out shouting on the streets in the UK about joining that religion. Not to say it doesn't happen in the US as I've seen, but the only religious shouting done on English streets is by Muslims.
That I have seen.
In my years.
I had that conversation with my Dad and he said the same thing
 
my best friend is a muslim. too bad i don't see him any more though, moved away not long ago. known him since i was about 7
 
hi guys
 
Sucks man
I was mates with a guy called Ravi in highschool and he always used to joke about blowing himself up if the teacher didn't do what he said .. lol
 
LOL
 
I am coding a web bot, I fill inputs with webBrowser and I want to run this code which is run when the link is clicked:
href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton", "", true, "TCm", "", false, true))"

I tried it:
string options = @" ""dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton"","""", true, ""TCm"", """",false,true ";
wb.Document.InvokeScript("WebForm_DoPostBackWithOptions", new object[] { ("new WebForm_PostBackOptions(" + options + ")") });
 
3:32 PM
Still, islamic extremists are pushing the west further and further away from allowing Islam to keep gaining more ground in the West
ISIS are fucking animals
Like Al Qaeda were bad but ISIS are just like .. it's like they're run by the Joker from Batman
They just drive round shooting people
 
LOL
 
Mental
 
I have no idea what ISIS is gonna have to look it up
 
There was a video that went viral in the US a week or two ago which was literally ISIS extremists joyriding and killing people in Iraq
 
oh
 
3:34 PM
Just random civilians
 
lol that's fucking crazy
 
Obama reacted by bombing them
Cos their stronghold got found by someone on Google maps or something
 
lolol
 
lmao
 
Turkish diplomats have been prisoners of ISIS for almost 2 months.
 
3:35 PM
you really think the US had no idea until that dude with google maps figured it out?
jesus christ
 
no don't say jeebus he good one lol
 
you don't think someone would notice the same bridge in 20 photos as well? someone whose paid to do that type of shit every day?
 
@drch Lol chill, I was joking.
 
damit. i forgot what song i wanted to listen to. now i cant listen to it ;(
 
Hate that .
 
3:38 PM
@Sippy you remind me of someone i know. personality wise, so far, is like 100% match lol
 
Haha
Know anyone in the military?
 
um
i did go down on someone from the military a few years ago... but i didn't really know them
 
Lol
Not that then
 
lol
 
Army chick?
Brave to go down on army chicks.
 
3:40 PM
she was lol. why brave?
 
Man if you saw the army girls in the UK you'd know why.
 
oh... they're like straight acting men?
 
Kinda!
 
LOL
 
I met one once that could pick me up with one arm
And like .. I'm not small
6ft and 12 stone
 
3:42 PM
haha
 
I was like wtf is this
 
LOL
nah i bet she couldn't pick me up. i'm too fat she'll just bounce away
 
Lol
 
brb
 
4:04 PM
back. whats up my little minions?
 
4:36 PM
private void OrderButton_Click(object sender, RoutedEventArgs e)
        {
            Order order = new Order(game.vegetables[Game.rand.Next(game.vegetables.Count)], game.protonz[Game.rand.Next(game.protonz.Count)],
                game.vegetables[Game.rand.Next(game.vegetables.Count)]);

            game.orders.Add(order);
            orderListBox.ItemsSource = game.orders;
            orderListBox.DisplayMemberPath = "Name";
        }
This is throwing an argument out of range exception, can someone point me in the right direction on this one?
 
Game.rand.Next(game.protonz.Count)
^ looks fishy
also use bindings, the single nicest thing in wpf
 
it's one of the three integers in your Order(...)
 
public Order(Vegetable ingOne, Protein ingTwo, Vegetable ingThree)
        {
            this.IngredientOne = ingOne;
            this.IngredientTwo = ingTwo;
            this.IngredientThree = ingThree;
            this.Skill = ingOne.Skill + ingTwo.Skill + ingThree.Skill;
            this.Name = "Test recipe";
        }
I'm learning bindings.
I just learned how to get my UI to update with bindings haha.
 
yeah, start simple.
bindings are not that hard, you bind the dependencyproperties of the control and implement notification in the source
 
Oh you are talking about how I have the ItemSource and MemberPath in my code?
 
4:43 PM
yeah
also try not to have that kind of logic in the clickhandler if the app is nontrivial
RelayCommand is nice for buttons
 
Hi @LexLuthor
 
Relay command? The logic goes in the model right?
Oh I figured out the exception, derp. The vegetable list was empty for some reason ><
 
@user2442335 model or viewmodel
For really simple apps it is fine to have the logic in the code behind
 
So I would want to put it in my model which is the game class.
 
When it gets nontrivial I try to move things away from code behind as much as possible
 
4:50 PM
Well I'd like to learn correct.
 
My advice is to try to move logic away from code behind and refactor as you go.
 
guys I am coding a web bot, I fill inputs with webBrowser and I want to run this code which is run when the link is clicked:
href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton", "", true, "TCm", "", false, true))"

I tried it:
string options = @" ""dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton"","""", true, ""TCm"", """",false,true ";
wb.Document.InvokeScript("WebForm_DoPostBackWithOptions", new object[] { ("new WebForm_PostBackOptions(" + options + ")") });
 
Refactor? >.>
 
The distinction model/viewmodel is probably less important.
@user2442335 Move things around, split large classes/methods up etc.
 
Oh yeah, I'm trying to do that.
but you know, newbie and all.
 
4:53 PM
Don't worry too much about MVVM then imo. Bind things and do only view stuff in code behind and good things will happen:)
 
I'm trying not to but I had to have a way for my UI to update.
So I kind of got forced to worry about it
It made me walk away from the code for a month or two.
Then I find out it was some silly little constructor I wrote keeping it from updating ><
To bind a List I need to have it as an observableobject right?
 
ObservableCollection
 
Which is just like a list right?
So if I change all my lists, it wont go crazy?
 
you must edit it from the UI thread
 
0
Q: How to PATCH in Web API and OData

gdoronFrom reading the RFC specification of the Patch verb it's clear that the Patch verb shouldn't get values to partially update the entity but operations to make: ...With PATCH, however, the enclosed entity contains a set of instructions describing how a resource currently residing on the ...

Someone familiar with OData and Web API?
 
5:08 PM
Edit it from the UI thread?
 
you can't add/remove stuff from threads other than the UI thread.
 
What do you mean thread though?
 
hmm, maybe don't worry about it, the exception is clear and the fix is easy.
I'm busy with a thing, don't have time to explain now.
 
Oh I fixed the exception.
 
Setting itemssource will also only work from the UI therad so switching to observablecollection will be fine
 
5:12 PM
Sorry, I ask a lot of questions.
 
don't be sorry
@user2442335 also
 
Thanks.
When I use .Count with a list it doesn't return an int?
 
@user2442335 What do you mean?
 
vegetables.Add(Game.gameVeg[Game.rand.Next(Game.gameVeg.Count)]);
It's saying that it's wrong, invalid arguments.
Hi Kendall <3
 
elaborate
 
5:25 PM
Error 2 Argument 1: cannot convert from 'method group' to 'int'
Error 1 The best overloaded method match for 'System.Random.Next(int)' has some invalid arguments
 
.Count is a method. .Count() is a method call
What type is gameVeg?
 
Well... one more try, does someone familiar with OData?
0
Q: How to PATCH in Web API and OData

gdoronFrom reading the RFC specification of the Patch verb it's clear that the Patch verb shouldn't get values to partially update the entity but operations to make: ...With PATCH, however, the enclosed entity contains a set of instructions describing how a resource currently residing on the ...

 
It's type is Vegetable
 
@user2442335 Why would a vegetable have a count?
 
@KendallFrey, Calories, obviously.
 
5:28 PM
oh geez don't talk to me about calories
I had so many this weekend
 
oh ok so I added it to the vegetable list that would have a count.
 
what do you mean?
 
@KendallFrey, fine, sodium
 
 public List<Vegetable> vegetables = new List<Vegetable>()
        {
            new Vegetable("onion", 10, 10),
            new Vegetable("Tomato", 10, 10),
        };
Error 1 An object reference is required for the non-static field, method, or property 'Cooksim.Game.vegetables'
1
 
What is Game.gameVeg?
 
5:30 PM
veg game?
 
static Vegetable gameVeg = new Vegetable();
 
3 mins ago, by Kendall Frey
@user2442335 Why would a vegetable have a count?
 
That line of code deserves a star!
 
I don't know D:
 
You know what can help you?
 
5:31 PM
If your code doesn't make sense, I can't help you with it
 
Well wouldn't the vegetable list have a count?
 
a list can have a count, sure
 
Thanks.
I got it now.
 
facepalm
 
Ol Kendall making me think outside the box.
 
5:36 PM
Yep that's @KendallFrey!
 
but it makes sense now.
what he was saying.
Sweeeet
Random vegetablessssss
 
Sorry folks, I need a confirmation whether or not my assumption is correct. I don't remember where I read it. The parameterless ctor of a base class is always called implicitly by parameterless ctor of a derived class via base keyword.
 
If you don't specify a base ctor, it implies the parameterless one
If there is no parameterless one, it fails
 
@KendallFrey: So explicit calling as follows is not necessary, right?
    public DerivedClass() : base()
    {
    }
 
no, certainly not
 
5:49 PM
You meant that it is certainly not necessary, did not you?
I am not an English native, so short comment is a bit confusing. :-)
 
yes, certainly :D
you don't need to use base(), it's redundant
 
@KendallFrey: OK. Thanks. It is time to continue learning C#. :-)
 
always!
 
@KendallFrey: Sorry. Which is more restrictive? Private or Internal? If private is more restrictive than internal, why can we define internal members inside private class? In my understanding, the members should be more restrictive than their containers.
 
@cyanide-basedfood You can define something to be more accessible than their containing type, but they will be limited to the type's visibility
if you have a public method in an internal class, the method will effectively be internal
There may be a difference, but not in normal code
 
6:02 PM
@KendallFrey Can we have an internal members in a private class?
 
sure, I think so
you can only have a private class inside another type
 
How about a public members in a private class.
 
sure
 
I am testing... :-)
I really dont understand why public method can be defined in a private class as follows.
class Program
    {
        static void Main(string[] args)
        {
            Foo.Display();
            Console.ReadKey();
        }

        private class Foo
        {
            public static void Display()
            {
                Console.WriteLine("Testing...");
            }
        }
    }
 
@Darek !entities.Exists(x => x.Key)
 
6:08 PM
The method is public, but since the class is private, you can't access the method anyway
 
@KendallFrey I can access it, I have tried.
 
from where?
 
@KendallFrey: see my code above.
 
You can access it in Program, because it's private to Program
 
I need help about webBrowser
 
6:16 PM
webBrowser that the new version IE?
 
no, c# webBrowser class
I am coding a web bot, I fill inputs with webBrowser and I want to run this code which is run when the link is clicked:
href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton", "", true, "TCm", "", false, true))"

I tried it:
string options = @" ""dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton"","""", true, ""TCm"", """",false,true ";
wb.Document.InvokeScript("WebForm_DoPostBackWithOptions", new object[] { ("new WebForm_PostBackOptions(" + options + ")") });
 
Well one thing at a time here I guess -
href="javascript:WebForm_DoPostBackWithOptions" never going to work
this name dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton never going to exist
javascript can't run server side code
can you post the page to pastie.org for a full view?
 
6:35 PM
@juanvan I cant do what is in link because I can't edit server-side of the page, I am creating a web bot to do post data and get data
 
6:46 PM
So this value dnn$ctr479$UserRegister$TCmBilgiGetirLinkButton will probably change everytime the page is loaded.
and you are making a new new WebForm_PostBackOptions() why not add the options to that instance - you would have to parse the string
 
No it doesn't change and it isn't a value it is id of link. I add options
wb.Document.InvokeScript("WebForm_DoPostBackWithOptions", new object[] { ("new WebForm_PostBackOptions(" + options + ")") });
@juanvan
 
But adding them like that Might not have them work correctly - what does the fiddler say when you click the link
 
what is fiddler?
 
sorry the request in firebug
 
Ok so when the program creates the first mainwindow of the program, does it give it a name?
ok nvm I figured it out ><
 
7:15 PM
What's the difference between OnPropertyChanged and NotifyPropertyChanged?
 
INotifyPropertyChanged is the interface, PropertyChanged is the event, OnPropertyChanged is a method that raises the interface implemented event.
 
7:31 PM
To be precise, OnPropertyChanged is a helper method to call PropertyChanged, and NotifyPropertyChanged is a helper method to call OnPropertyChanged.
 
So does it matter which one I use? I'm just trying to get a listbox to update.
 
You should use both
Neither is required for INotifyPropertyChanged
 
Hrm, not working again. Is there a difference in data binding a label vs a listbox? I figured I could just do what I did for my label and be good, haha.
 
hey there!
 
7:47 PM
Yo
 
 
2 hours later…
9:53 PM
any geometry whizzes on? I need to find all coords that are inside the area of a cone out to a specified distance. and sadly, my geometry skills are not quite up to the task
 
10:08 PM
@DreadPiratePeter What is the equation of the cone?
 
00:00 - 15:0015:00 - 23:00

« first day (1416 days earlier)      last day (3526 days later) »