The Official Status Thread
-
Hopes of getting out tomorrow dashed. Oxygen levels right down and getting out of breath just sitting in a chair.
-
Status: WTF is this shit?
Fucking NO!
Microsoft, "No" means "No", get it?
-
Status: I'm just going to leave this here:
public class IntObject { public int Value { get; set; } IntObject(int val) { Value = val; } public static implicit operator IntObject(int val) { return new IntObject(val); } public static implicit operator int(IntObject val) { return val.Value; } public override string ToString() { return Value.ToString(); } public override int GetHashCode() { return Value.GetHashCode(); } public override bool Equals(object obj) { return Value.Equals(obj); } }
-
@tsaukpaetra This is why Java's better than C#. Java has this sort of thing built in. </intern>
-
@blakeyrat said in The Official Status Thread:
ESO is basically state-of-the-art for MMOs. [list of features that Guild Wars 2 had in 2012 when it came out and WoW had before then]
-
@pie_flavor said in The Official Status Thread:
@tsaukpaetra This is why Java's better than C#. Java has this sort of thing built in. </intern>
C# has the ability to use int in generics without any of the stuff @Tsaukpaetra posted, so I'm not sure what that code is useful for.
In Java, you need to use
java.lang.Integer
, which is basically what @Tsaukpaetra wrote just now.
-
@ben_lubar
:that's_the_joke.wvm:
-
@pie_flavor said in The Official Status Thread:
@ben_lubar
:that's_the_joke.wvm:
I'm so used to you sincerely defending indefensible things that I got confused.
-
@ben_lubar And that's why I wrote </intern> there, to signify that anyone who knew what they were doing (read: wasn't an intern) knew that.
-
@ben_lubar said in The Official Status Thread:
[list of features that Guild Wars 2 had in 2012 when it came out and WoW had before then]
INVERSE KINEMATICS.
-
@blakeyrat said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
[list of features that Guild Wars 2 had in 2012 when it came out and WoW had before then]
INVERSE KINEMATICS.
The only MMO I've ever played that didn't have IK the entire time I was playing it was RuneScape.
-
@ben_lubar said in The Official Status Thread:
C# has the ability to use int in generics without any of the stuff @Tsaukpaetra posted, so I'm not sure what that code is useful for.
I was trying to bind a
List<int>
to a datagrid and failing horribly, so just to make sure it wasn't the fact that I wasn't specifying the binding property properly as the problem, I spat this out for testing.Spoiler: That wasn't the problem.
-
@tsaukpaetra You'd want an
ObservableCollection<int>
, or something that callsNotifyPropertyChanged
whenever the list changes.
-
@ben_lubar said in The Official Status Thread:
@tsaukpaetra You'd want an
ObservableCollection<int>
, or something that callsNotifyPropertyChanged
whenever the list changes.Yes, I had that in place already, but it was being dumb and not firing the changed event on the right Dispatcher thread.
Ended up wiring up a wrapper class that keep track of whatever dispatcher you want to fire change notifications on and raises the event there. Partial snippet here.
-
@ben_lubar Probably
INotifyCollectionChanged
.
-
@tsaukpaetra What I don't understand is why you're messing around with events here in the first place.
-
@magus said in The Official Status Thread:
@tsaukpaetra What I don't understand is why you're messing around with events here in the first place.
Because when I modify the collection without the WPF window open, everything's fine. But when it's open and actually watching it, the events try to fire on the wrong thread by default apparently. But only most of the time. And trying my normal method of "Toss it into a synchronizationcontext callback" just wasn't working.
-
@tsaukpaetra The whole point of WPF is that if you have ObservableCollections, you can just not think about events. They just work. I'm not sure what in the world you're doing that can even cause this problem.
-
@magus said in The Official Status Thread:
@tsaukpaetra The whole point of WPF is that if you have ObservableCollections, you can just not think about events. They just work. I'm not sure what in the world you're doing that can even cause this problem.
I don't know either. There are only two of these lists that require this shenanigan dance, so I just threw up my arms and passed along whatever Dispatcher reference it's apparently expecting into a class that shouldn't really care so it can pass it into my encapsulated ObservableCollection so it can raise the INotifyCollectionChanegd event on the right thread.
Bullshit is what this is.
-
@tsaukpaetra I have a feeling you're somewhere, and getting your UI objects made in the background threads or some weirdness.
-
@magus said in The Official Status Thread:
UI objects
Ah, see that's the rub. This wasn't designed to be a UI object, it's a client object representing users connected to the chat server. the WPF form is supposed to tendril its way into the client's properties and display them. This works fine if I don't want it updated in any way. It does not work fine if two specific lists (of the ~15 properties, 4 being lists of ints) get updated. But only those two lists! The other stuff updates just fine...
-
@tsaukpaetra That's what WPF is for, though. Are you binding within your own view or something?
-
@magus said in The Official Status Thread:
@tsaukpaetra That's what WPF is for, though. Are you binding within your own view or something?
I don't think I understand the question. But when I construct the WPF window I'm essentially passing in the client object to it, and it takes that and assigns it to the form's DataContext. From there's it's
{Binding WhateverProperty}
from there down in the XAML, including the lists. Actually I think that's pretty much the extent of it, there's a small amount of stuff in code behind to react to a button press that asks the client to be pinged, but that's not broken at the moment.
-
@tsaukpaetra said in The Official Status Thread:
But when I construct the WPF window I'm essentially passing in the client object to it, and it takes that and assigns it to the form's DataContext.
That CAN be fine, but handling the data in the code-behind can do weird things.
-
@magus said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
But when I construct the WPF window I'm essentially passing in the client object to it, and it takes that and assigns it to the form's DataContext.
That CAN be fine, but handling the data in the code-behind can do weird things.
I'm not handling data in the code being, it's mostly just prodding it to call a send function.
-
STATUS
My death metal loving colleagues are discussing how deep and great "A Serbian Film" is.
FML.
-
STATUS:
Working with an Indian outsourcer.
I come in to work, Bhupendra is there, churning out mediocre code.
I go home, Bhupendra has more questions.
It's 10 PM, Bhupendra is still working.Bhupendra is either being worked to death, or there are multiple people behind that account.
-
-
@cartman82 said in The Official Status Thread:
My death metal loving colleagues are discussing how deep and great "A Serbian Film" is.
Chose your fighter:
NO
https://www.youtube.com/watch?v=bcgL3r24b84
The film is about {twitch} let's talk about Serbian politics which means the film is {painful twitch} the cinematography WHY ARE YOU MAKING ME WATCH THIS?
https://www.youtube.com/watch?v=J1XPPVQi4yc
Sir Not Appearing In This Youtube, But I'd Rather Watch The Literal Shit-Eating Movie Again Than This
{If Brad Jones ever re-uploads his review of it, that's the trifecta}
-
@tsaukpaetra said in The Official Status Thread:
Trying to figure out how I want to redesign out the voting system so it's basically not a voting system....
The not-a-voting-system seems to be working perfectly:
-
@lorne-kates said in The Official Status Thread:
You mightbolded text**** be able to get one of those "draft stop" things to put at the base of your apartment door, to block off the positive pressure in the hallway. Then when you open the window, hot air just goes out, and doesn't get replaced.
Thanks! I ended up
hauling backwheeling in an old portable AC unit... I'm glad electricity is included in my rent.
-
STATUS
My outlook email is acting up, I am not getting connect requests on Skype and now I see the red "1 notification" badge on WTDWTF but no notifications.
I am getting into a Blakeyrat rage here. Software is shit.
-
...
-
@adynathos said in The Official Status Thread:
@tsaukpaetra said in The Official Status Thread:
Trying to figure out how I want to redesign out the voting system so it's basically not a voting system....
The not-a-voting-system seems to be working perfectly:
Well, just the landing page is being worked on. The submission endpoint that displays that is going away in favor of Ajax.
-
@sockpuppet7 said in The Official Status Thread:
I thought about commenting on some WTF that would be too identifiable out of the lounge, but the evil gatekeeping @mods don't let me in. I would probably have already deleted it anyway.
All you do is request access. It's not hard.
-
...
-
@sockpuppet7 said in The Official Status Thread:
@tsaukpaetra the request was denied, it is hard to work around that
Not really, if you think about it.
-
...
-
@sockpuppet7 said in The Official Status Thread:
@tsaukpaetra I don't have the $ to bribe @boomzilla
Who says you need $? Just get a good old fashion reference and make sure it's a good strong object.
-
@tsaukpaetra We're all just references to a single instance of @boomzilla.
-
@hardwaregeek said in The Official Status Thread:
@tsaukpaetra We're all just references to a single instance of @boomzilla.
Exactly! Someone seems to have forgotten theirself...
-
@sockpuppet7 said in The Official Status Thread:
I would probably have already deleted it anyway.
Upvoted for honesty.
-
@cartman82 said in The Official Status Thread:
STATUS
My outlook email is acting up, I am not getting connect requests on Skype and now I see the red "1 notification" badge on WTDWTF but no notifications.
I am getting into a Blakeyrat rage here. Software is shit.
Make your email client 3px wider.
-
@jaloopa said in The Official Status Thread:
Hopes of getting out tomorrow dashed. Oxygen levels right down and getting out of breath just sitting in a chair.
When I got out, I had to lug around an oxygen bottle for a couple weeks - until the clot in the lung broke up enough.
-
@cartman82 said in The Official Status Thread:
Bhupendra is either being worked to death, or there are multiple people behind that account.
Bhupendra is @Nagesh
-
This red team I'm working with has the coolest logo I've ever seen in my life. I want a cool logo as the blue team now.
-
@heterodox said in The Official Status Thread:
This red team I'm working with has the coolest logo I've ever seen in my life. I want a cool logo as the blue team now.
-
status Fun compiler errors.
// 900 lines o code if ((condition && condition2) { // code } // 3000 lines o code (for a total of 3887 lines in file)
1>DaFile.cpp(3889): fatal error C1060: compiler is out of heap space
Luckily I was undoing a change, so finding the error was easy.
I especially like how the error is 2 lines after the end-of-file.
-
- Unbalanced parentheses
- fatal error C1234: file too long
- fatal error C7890: using MSVC
-
Status: Spawning in 200 radio bots (that essentially share the same audio stream) works fine. RIP earphone users...