The Official Status Thread


  • :belt_onion:

    Since I'm under new management, it'll be interesting to see if I'm going to get disciplined for having asked an architect, "Can you please let me finish my fucking sentence?" in this meeting today.

    Not my proudest moment. But in my own defense, I did say please. Also it was about halfway through the nine-hour meeting, so I don't think anything I said can be held against me.



  • @heterodox nine hour meeting? Nine hour meeting? I think the only reason that was left out of the Geneva Conventions is that they didn't think anyone would stoop that low.



  • Status: drinking Hopsecutioner and posting too damn many videos here.


  • :belt_onion:

    @benjamin-hall said in The Official Status Thread:

    @heterodox nine hour meeting? Nine hour meeting? I think the only reason that was left out of the Geneva Conventions is that they didn't think anyone would stoop that low.

    The only saving grace is I have a deal with my boss that I get to expense one case of Monster for each of those meetings I have to attend.

    I still generally lose the will to live about three hours in.


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    Puzzling how to create a token from an Asp.Net Identity.

    It seems if I manage to get an AuthenticationTicket of some sort, and a TicketDataFormat from a DataProtector that uses the same key as the OWIN thing, I should be able to just call Protect() on it and magic will happen.

    We'll see tomorrow...


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    Now to figure out why Master Server isn't storing delayed knocks properly...

    Status: Made an adjustment, now MasterServer won't properly forget delayed knocks. :facepalm: Time to add another property methinks...


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    The plan is to splat the majority of the project onto the spinner and had-link in the intermediates and cache folders (which weigh in about 20gb but are the files that get accessed randomly more often than anything else). Build results get shunted off to the NAS when done.

    The plan seems to have worked! When jenkins decides it wants to build on the new box (it's the third node, and Jenkins tends to prefer whatever box was last built on for raisins) build times are between 12-22 minutes, down from 34-53 minutes:

    0_1516172396243_da740af6-86e3-410d-967d-6beca371a199-image.png

    Was it worth $1200?


  • Considered Harmful

    Status: Apparently I failed Triplebyte's test. They probably didn't want me to leave one of the four coding challenges completely blank. :(


  • Notification Spam Recipient

    @pie_flavor said in The Official Status Thread:

    leave one of the four coding challenges completely blank.

    Ouch


  • 🚽 Regular

    Status: Broken the toilet outside my office, handle came off. Brilliant.

    Edit: broken it good and proper! Maintenance says it needs to be replaced. That's two weeks walking to the cold one :(



  • @tsaukpaetra said in The Official Status Thread:

    Status: Puzzling how to create a token from an Asp.Net Identity.

    You can collect it by listening to the OnValidateClientAuthentication event (or some similar event depending on your authentication service) but it probably wouldn't be useful to you since most federated authentication systems have an "audience" parameter and unless what you want to fling the token at accepts your server's audience as its own it's just going to reject it.

    You can, of course, go full identity provider and repackage the ClaimsIdentity into a brand new token, but :effort:...



  • @tsaukpaetra said in The Official Status Thread:

    Also, Edge is fuckin' terrible....

    Thanks for the hint.

    We didn't already realized that 🍹


  • Notification Spam Recipient

    @twelvebaud said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    Status: Puzzling how to create a token from an Asp.Net Identity.

    You can, of course, go full identity provider and repackage the ClaimsIdentity into a brand new token, but :effort:...

    I believe this is the route I'll need to take. The user already has been authenticated at this point (most likely via cookies) so hooking any events in the OWIN system would be largely pointless.


  • Notification Spam Recipient

    @timebandit said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    Also, Edge is fuckin' terrible....

    Thanks for the hint.

    We didn't already realized that 🍹

    Interestingly enough, it may be caused by the VM having no graphics acceleration. Of course, Chrome handles this just fine and uses software rendering, but can Edge do that? Nah!



  • Status: And I'm off to cancel my cellular contract so I can transfer my mobile number to a new provider which is a) cheaper for more features and b) provides better coverage.

    Wish me luck. Because I'll try to cancel over the phone and the waiting lines have been rumored to be epic.

    If it doesn't work out I'll use snail mail.



  • Status: Finally played through the entire tutorial for Skyworld. It was quite fun. The second level made me actually play properly, and was really hard as a result, but I managed to rebuild my general and get some upgrades and actually win a fight. It's a great game.


  • :belt_onion:

    @rhywden said in The Official Status Thread:

    Status: And I'm off to cancel my cellular contract so I can transfer my mobile number to a new provider which is a) cheaper for more features and b) provides better coverage.

    Wish me luck. Because I'll try to cancel over the phone and the waiting lines have been rumored to be epic.

    If it doesn't work out I'll use snail mail.

    Don't know if it works the same in Germany, but you might want to transfer the number before you cancel the previous contract; otherwise, you may lose it.


  • kills Dumbledore

    @heterodox said in The Official Status Thread:

    @rhywden said in The Official Status Thread:

    Status: And I'm off to cancel my cellular contract so I can transfer my mobile number to a new provider which is a) cheaper for more features and b) provides better coverage.

    Wish me luck. Because I'll try to cancel over the phone and the waiting lines have been rumored to be epic.

    If it doesn't work out I'll use snail mail.

    Don't know if it works the same in Germany, but you might want to transfer the number before you cancel the previous contract; otherwise, you may lose it.

    In the UK, you usually have to ask the network you're leaving for a PAK code, which you then give to the new network



  • @heterodox said in The Official Status Thread:

    @rhywden said in The Official Status Thread:

    Status: And I'm off to cancel my cellular contract so I can transfer my mobile number to a new provider which is a) cheaper for more features and b) provides better coverage.

    Wish me luck. Because I'll try to cancel over the phone and the waiting lines have been rumored to be epic.

    If it doesn't work out I'll use snail mail.

    Don't know if it works the same in Germany, but you might want to transfer the number before you cancel the previous contract; otherwise, you may lose it.

    No, that's not the case anymore. You can transfer a number anytime as long as the contract hasn't expired. Yes, even when you in fact didn't cancel the contract. They changed it a bit - it previously was indeed a bit of a nightmare (I had to deal with that myself when I was a callcenter agent for a cable provider / telco).

    In other news: The phone call was productive - I had to wait only a minute, the agent didn't try to get me to renew the contract when I told him that I cancelled due to connectivity issues and all in all I was on the phone for 3 minutes.


  • kills Dumbledore

    @rhywden said in The Official Status Thread:

    cancelled due to connectivity issues and all in all I was on the phone for 3 minutes.

    ...before you got disconnected and had to start again?


  • :belt_onion:

    @rhywden said in The Official Status Thread:

    the agent didn't try to get me to renew the contract when I told him that I cancelled due to connectivity issues

    Lucky. Your providers must be more polite in Germany; last time I cancelled phone service (that I'd been using for six years), they really tried to fucking guilt me out of it before they would put it through. Even though the reason I was switching was because I was going overseas and their service literally would not work for me (CDMA-only). Could not be more clear that it was out of necessity and no loyalty-based retention argument was going to be successful.



  • Status: Ah, Georgia, where the very possibility of snow leads to panic buying and three days of school closings, and the transit systems shut down for a week over < 5mm of overnight accumulation.

    And yeah, I get that it is mostly due to the lack of sanders and so forth, but seriously, the roads get more dangerous during in the heavy rainfalls here than they now are from the light dusting we got in Athens (which has already mostly melted). Everything - buses, stores, public services - shut down like there were five foot drifts blocking the roads. They actually have some of the hilly streets blocked off by the Public Works dept., FFS.

    OK, I get that it isn't fair for me to compare the responses here to those in, say, Connecticut. But comparing it to the response in the Gay Area - where it snows even less often - is entirely fair; of the three times it actually snowed while I lived in the East Bay (twice in Berkeley, once in Hayward), the one time it actually accumulated noticeably, people were mostly like "Oh, so that's what snow is like" and otherwise went on with things.

    And it isn't as if it never snows here; rarely, yes, but in the past nine years this has happened four times, so it isn't exactly a freak occurrence. Also, some of the upstate counties do have equipment and plans, because regular snowfall is kind of a thing when you are up on a mountain. Couldn't they have asked someplace like Dahlonega to send some equipment the night before or something? Yes, they need it themselves, but my point is, this is a predictable problem that could have been addressed ahead of time.

    Of course, I hear it is even worse in places like Houston, so I probably shouldn't complain too much. I did get one of my appointments rescheduled already at least, so it isn't exactly a disaster.



  • @scholrlea said in The Official Status Thread:

    I get that it is mostly due to the lack of sanders and so forth

    What makes you think Democratic Socialismfried chicken would do anything to solve problems with snow?



  • @heterodox Both CDMA providers in the US are happy to offer "world phone" services (CDMA stateside, but GSM pondside due to a partnership with Vodaphone or Orange), and are happy to force-cancel you if you ever have the gall to actually use those services.



  • @scholrlea I live in Portland. When it snows here, people freak out and start hitting trees and stuff, and everything closes down. Even like 1 inch.

    And this happens most years.


  • Discourse touched me in a no-no place

    @magus said in The Official Status Thread:

    hitting trees

    #NotAllMen


  • Notification Spam Recipient

    @rhywden said in The Official Status Thread:

    Status: And I'm off to cancel my cellular contract so I can transfer my mobile number to a new provider which is a) cheaper for more features and b) provides better coverage.

    Wish me luck. Because I'll try to cancel over the phone and the waiting lines have been rumored to be epic.

    If it doesn't work out I'll use snail mail.

    You probably want to transfer the number before cancelling. Bad things happen to those who no longer own their number and then try to get it back...

    Edit: But apparently things have changed for the better. I'll be darned.


  • :belt_onion:

    No key provider information
    Cannot find the certificate and private key for decryption.
    Encryption test passed
    CertUtil: -repairstore command FAILED: 0x8009001a (-2146893798 NTE_KEYSET_ENTRY_BAD)
    CertUtil: Keyset as registered is invalid
    

    That's bad news bears. PLEASE tell me I didn't lose the private key (necessitating me going to the CA, saying my bad, you have to revoke that cert and issue a new one).


  • Notification Spam Recipient

    @heterodox said in The Official Status Thread:

    PLEASE tell me I didn't lose the private key

    Did you not have any (securely stored) copies anywhere?


  • Garbage Person

    Almost assuredly unobtainably so in my niche. I think the #1 and #2 in the genre get anywhere near that, and both are externally financed.


  • :belt_onion:

    @tsaukpaetra said in The Official Status Thread:

    Did you not have any (securely stored) copies anywhere?

    I sorted it out. I had generated the certificate request from another server instead of locally so the private key got put in that server's store. Export, import locally, done (and remember to document that you shouldn't do that).


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    @twelvebaud said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    Status: Puzzling how to create a token from an Asp.Net Identity.

    You can, of course, go full identity provider and repackage the ClaimsIdentity into a brand new token, but :effort:...

    I believe this is the route I'll need to take. The user already has been authenticated at this point (most likely via cookies) so hooking any events in the OWIN system would be largely pointless.

    Status: My tomfoolery with this has thusly led me this far:

                ApplicationUser user = null;
                user = userManager.FindByNameAsync(User.Identity.Name).GetAwaiter().GetResult();
    
                
                ClaimsIdentity oAuthIdentity = userManager.CreateIdentityAsync(user, OAuthDefaults.AuthenticationType).Result;
                
                AuthenticationTicket t = new AuthenticationTicket(oAuthIdentity, new AuthenticationProperties());
    
    
    
                var app = ControllerContext.HttpContext.GetOwinContext().Get<AppBuilderProvider>().Get();
                var provider = app.GetDataProtectionProvider();
    
                // Use the same token generation logic as the OAuthBearer Owin middleware. 
                IDataProtector dp = provider.Create("self"); ;// app.CreateDataProtector(typeof(OAuthAuthorizationServerMiddleware).Namespace,"self", "v1"); ;
                var tdf = new TicketDataFormat(dp);
                var ticket = new AuthenticationTicket(oAuthIdentity, new AuthenticationProperties { ExpiresUtc = DateTime.UtcNow.AddHours(1) });
                var accessToken = tdf.Protect(ticket);
    
                var d = tdf.Unprotect(accessToken);
    
    

    Inside this method I can protect and unprotect that identity just fine. But of course, the token isn't valid for the actual OWIN authentication. :headdesk:

    I have a feeling my creation parameters aren't the same as OWIN's?

    Ugh, why is this so hard???!!?


  • Discourse touched me in a no-no place

    @tsaukpaetra said in The Official Status Thread:

    Ugh, why is this so hard???!!?

    It's security software. It's supposed to be hard so that you can't see the glaring flaws in it!!!


  • :belt_onion:

    My Windows logon screen is somehow showing only one out of three certificates that can be used for logon.

    How... is it even doing that. Time for a reboot, reason "can't happen".


  • Java Dev

    Status: Successfully converted a O(n²) fragment into an O(n) fragment because a key site accidentally hit a situation where n was very large.

    I'm not sure what it's going to do in practice. The fragment next to it is O(nm) with about the same constant and it's not too unreasonable for both to be large under similar situations, but that one's much harder to fix.

    I'll cross that bridge when I get there, I guess.


  • Notification Spam Recipient

    Status: ODBC. Why can't you behave?

    I'm getting to the point where I have to check the result code after literally every command, and it's bloating the class enough I'm considering refactoring...


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    Why can't you behave?

    I hate it when adding additional logging slows down the app enough that the problems go away...

    Edit: Goddammit WHY?!?!?

    0_1516218486798_259047a2-7f4a-43c0-9fa5-39dc1b87f9cf-image.png



  • @tsaukpaetra said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    Why can't you behave?

    I hate it when adding additional logging slows down the app enough that the problems go away...

    Edit: Goddammit WHY?!?!?

    0_1516218486798_259047a2-7f4a-43c0-9fa5-39dc1b87f9cf-image.png

    WHY WOULD YOU NAME A VARIABLE RETURN


  • Notification Spam Recipient

    @ben_lubar said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    Why can't you behave?

    I hate it when adding additional logging slows down the app enough that the problems go away...

    Edit: Goddammit WHY?!?!?

    0_1516218486798_259047a2-7f4a-43c0-9fa5-39dc1b87f9cf-image.png

    WHY WOULD YOU NAME A VARIABLE RETURN

    Because apparently they never intended to actually return it and was trying the compiler's patience? Who knows.


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    the problems

    Apparently, while executing SQLGetData() you might get a return code 2. Here I go to make another Do While loop...



  • Status: came down from a methylphenidate (more popularly known as "ritalin") high.

    Yeah, my psychiatrist gave me a prescription for ADD medication "just to see if it does something". Feels a lot like a caffeine high to be honest, gave me a lot of energy, but not motivation. Quite the opposite actually, makes browsing memes much more enjoyable than working.



  • @tsaukpaetra said in The Official Status Thread:

    @tsaukpaetra said in The Official Status Thread:

    the problems

    Apparently, while executing SQLGetData() you might get a return code 2. Here I go to make another Do While loop...

    Some people might not like Go, but Go's "everything pretends to be synchronous but is actually async behind the scenes" is much better than C's "everything is asynchronous and waiting is an error" or C#'s "some things are asynchronous but you're going to have a bad time if you want to call them from synchronous code" or JavaScript's "we couldn't settle on an async model so here are three different terrible ones and one that barely anything supports that might be okay but still can't be called from synchronous code" or Java's "everything is synchronous and sleep() can throw exceptions".



  • @anonymous234 said in The Official Status Thread:

    Status: came down from a methylphenidate (more popularly known as "ritalin") high.

    Yeah, my psychiatrist gave me a prescription for ADD medication "just to see if it does something". Feels a lot like a caffeine high to be honest, gave me a lot of energy, but not motivation. Quite the opposite actually, makes browsing memes much more enjoyable than working.

    I'm on that stuff too. For me, it's context-switching that I'm bad at. If I get sidetracked, I'll stay sidetracked for hours, but it's really easy for me to concentrate on something that I'm currently doing.



  • @scholrlea said in The Official Status Thread:

    But comparing it to the response in the Gay Area - where it snows even less often

    I've been here (south bay) 22 years. I think there's been accumulation once (if you can call a dusting an accumulation). And that was only on the grass. Now going over 17 was a little more dangerous. I was commuting to Scotts Valley at the time. Of course, I grew up learning to drive outside of Chicago. Snow? It's only 6 inches, what's the problem???


  • Considered Harmful

    @anonymous234 I wish I was still on that stuff.


  • :belt_onion:

    Fucking Selenium. Script says to enter a value in a text box at the bottom of the page (have to scroll to get to it). So far so good. Then click a button at the top of the page. Fucking thing clicks where the button would be if we were at the top of the page. Fucking what?

    Research, looks like a MoveToElement action should scroll the element into view if it's not already. I don't have to do that for anything else but whatever, this may be a special case. ... no, certainly not scrolled into view; the exact same thing happens. Looks like my best at this point is to execute JavaScript in the context of the page to scroll back up. Which to me completely invalidates the idea of this being a UI test. Fucking what?!

    The whole idea of this framework is to abstract out the nonsense; if I'd known I'd have to worry about things like the size of the browser window and elements that could be present but not in the viewport... well, I just fucking wouldn't have put UI testing within the scope of this project, that's what I wouldn't have done. This fucking sucks.


  • Notification Spam Recipient

    @tsaukpaetra said in The Official Status Thread:

    led me this far:

    Final version:

    
                var userManager = ControllerContext.HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
                ApplicationUser user = userManager.FindByNameAsync(User.Identity.Name).GetAwaiter().GetResult();
    
                if (user == null)
                    RedirectToAction("Index");
    
    
    
                ClaimsIdentity oAuthIdentity = userManager.CreateIdentityAsync(user, OAuthDefaults.AuthenticationType).Result;
                
                // Use the same token generation logic as the OAuthBearer Owin middleware. 
                IDataProtector dp = ControllerContext.HttpContext.GetOwinContext().Get<AppBuilderProvider>().Get().GetDataProtectionProvider()
                    .Create(typeof(OAuthAuthorizationServerMiddleware).Namespace, "Access_Token", "v1");
                AuthenticationTicket ticket = new AuthenticationTicket(oAuthIdentity, new AuthenticationProperties { ExpiresUtc = DateTime.UtcNow.AddMinutes(1) });
                string accessToken = (new TicketDataFormat(dp)).Protect(ticket);
    
    

    AppBuilderProvider is merely a stub class tacked on that holds the IAppBuilder instance that was used to build the OWIN stuff.

    It... works.

    Will probably break in weird ways eventually, but for now I get a nice token without needing to login again.



  • I love Jerry Wu:

    0_1516249244752_Untitled.png

    Poor guy was born without a sense of humor.



  • @blakeyrat said in The Official Status Thread:

    I love Jerry Wu:

    0_1516249244752_Untitled.png

    Poor guy was born without a sense of humor.

    We should start a charity


  • Notification Spam Recipient

    Status: Trying to hack a no-longer-supported network DVR access app that's locked behind an online activation.

    0_1516252489263_ec2895d2-7a87-401e-a87e-95de6fc48883-image.png

    It seems controlled by these .kc module files, the layout kinda reminds me of python, but...

    0_1516252352491_bf5795f7-11d9-4d5f-bf0e-a92b124f9f31-image.png

    No dice.


Log in to reply