The Official Status Thread
-
@error said in The Official Status Thread:
@GΔ ska said in The Official Status Thread:
@error said in The Official Status Thread:
Fuck Kotlin.
Any particular reason, or is it just the usual JVM crap?
Aggravated with the weird quirks of anonymous classes.
In C#, anonymous classes can't inherit from classes or implement interfaces. In Kotlin... they must, or all their members are private.
There must be a middle ground here.
Actually just wanting an inline object literal like in Javascript.
Just define a data class. They're one-liners for a reason.
-
@pie_flavor The type I want resembles something like TypeScript:
Record<'color'|'position'|'uv', Attrib>
.I'd be fine with
Record<string, Attrib>
(a hashmap of attribs with property syntax).It's not a roadblock, I just want to rapidly prototype this thing out and I'm annoyed that I have to write a bunch of type definitions for things I'm probably going to throw away.
I guess I'm just spoiled by using a better language (TypeScript)
-
data class MyRecord(val color: Color, val position: Vector3d, val uv: WhateverUVMeans) // optionally: : Map<String, Any> by mapOf("color" to color, "position" to position, "uv" to uv)
It's really easy.
-
@pie_flavor Yeah I did that, and I bitched about it. (And I told you, they're all
Attrib
s)
-
@error Great.
data class MyRecord(val color: Attrib, val position: Attrib, val uv: Attrib): Map<String, Attrib> by mapOf("color" to color, "position" to position, "uv" to uv)
Also, you can use maps for property delegation:
data class MyRecord(val map: Map<String, Attrib>) { val color by map val position by map val uv by map }
-
TBH I'm grumpy because I'm having to write a ton of boilerplate code to make OpenGL's procedural API resemble something object-oriented, and redirecting a lot of that frustration on the unfamiliarity of everything in this toolchain.
-
Status: I want another shower. 28Β°C degrees and approximately 100% humidity after last night's thunderstorm. I'm sticking to my mousemat already and it's only 9am.
I need to invent an excuse to spend all day in the server room where there is aircon.
-
@Cursorkeys said in The Official Status Thread:
I want another shower.
@Cursorkeys said in The Official Status Thread:
approximately 100% humidity
What would be the point?
-
Status: Still trying to render movies of simulations with Paraview.
Got it to work on one file, so I tried to script it with the built-in Python interpreter and let it run over night for the other files. Some worked correctly, some had one of the two views with a wrong camera position, some have the wrong frame rate.Problem 1: I didn't actually write much of the script, as I have no fucking clue how to get a decent reference to all things I need besides hoping that Google finds the right page on the Wiki. So I used the macro recorder to do the needful and patched something together. Now, the script it created looks something like this:
renderView2 = FindViewOrCreate('RenderView2', viewtype='RenderView') renderView2.CameraPosition = # ... renderView1 = GetActiveViewOrCreate('RenderView1') renderView1.CameraPosition = # ...
The idiocy is in the third line. While the first two lines find and set camera position for "RenderView2", the third one only looks like it acts on "RenderView1", but actually changes the camera position of whatever's active. So it somehow managed to set the wrong camera position in some videos. Okay, blame on me for using generated code, I guess.
Problem 2: The call to write the video explicitly says:
SaveAnimation("filename...", SaveAllViews=1, ImageResolution=[1200, 600], FrameRate=20)
The
FrameRate=20
is right there. How do you fuck that up?!My guess: that named parameter, which the macro recorder created, doesn't actually exist for the function. It only worked in the first few movies because I had set it to 20 in the GUI when manually exporting the first one, then that got picked as default. I had restarted ParaView in between and my guess is that it defaulted back to 1 after that.
-
Status: The cloud API I've been given doesn't exactly match the actual data that needs to be stuffed into it.
I've been asked to stress test it, which I can do in its current state. Multithreaded C# vs Javascript; FIGHT!
-
@error said in The Official Status Thread:
@topspin I'd heard cannabidiol doesn't get you high, but might help with anxiety, but my doctor said there was no useful research for or against that claim. I tend to assume unsubstantiated claims are bullshit unless proven otherwise.
It's mostly anecdotal. It costs about Β£50 for a month's supply. That's in try it and see if it works terrority. If its a miracle for you then keep it up. I wouldn't bother vaping it if you inhale nicotine nor if you want to apply the scientific method.
-
STATUS I've decided that I'm going to blow my bonus on a new PC instead of saving it. My current PC is almost 8 years old and this appears to satisfy my miserly thrifting nature.
-
Status: Colleague has 100MB Powerpoint, she wants to send it to Colleague B. She keeps complaining that the email bounces back.
It's already in a place both of you can access! Send him a link, email is not a bloody file transfer protocol.
-
@Cursorkeys said in The Official Status Thread:
Multithreaded C# vs Javascript; FIGHT!
Don't forget to unlock the httpclient requests...
-
@Cursorkeys said in The Official Status Thread:
email is not a bloody file transfer protocol.
I'm still somewhat sad that GMailFS died...
-
@Tsaukpaetra said in The Official Status Thread:
@Cursorkeys said in The Official Status Thread:
Multithreaded C# vs Javascript; FIGHT!
Don't forget to unlock the httpclient requests...
Thanks! It was still set to the default.
-
Today on representative method names:
ConfigureAppConfiguration()
-
@izzion said in The Official Status Thread:
But what if we buy power from an electric coop and thus literally own stock in the power company?
-
@Cursorkeys said in The Official Status Thread:
It's already in a place both of you can access!
You're assuming that's concepts she understands.
@Cursorkeys said in The Official Status Thread:
Send him a link
Next up she'll start sending people actual LNK files and wonder why it's not working (outside of environments with the same network drives).
-
Status: dying of heatstroke. It's supposedly a couple of degrees cooler than yesterday, but yesterday I managed pretty well with the window open and an ice bottle, and today it's Hell.
I made sure I don't have the sun on me/my desk, but I keep feeling a hotspot on my right side (nearest the window) as if it has direct sunlight on, and as far as I can tell it's just the heat reflecting off the windowsill where it is shining directly, and being so intense as to feel like it's burning me 2-3 feet over.
-
@CarrieVS Yeah, I've had to put some towels on the bed and sleep on them, because I keep waking up with the bed sheets entirely drenched with my own sweat. That's despite sleeping naked with a fan blowing air at me. Between 4 and 7 pm I have to keep the window blinds closed because otherwise my room heats up like an oven. It's not very pleasant weather.
-
Something in the desk in my home office is rumbling/slowly vibrating, and nothing in here is supposed to do that.
-
Why does my oven have a function to remind me to turn it off after n minutes, and not just a function to turn itself off after n minutes?
-
@error Because it's not a Smart oven
-
@error said in The Official Status Thread:
Something in the desk in my home office is rumbling/slowly vibrating, and nothing in here is supposed to do that.
Sorry, I've got my desk fan running, and it resonates a bit.
-
@error said in The Official Status Thread:
Why does my oven have a function to remind me to turn it off after n minutes, and not just a function to turn itself off after n minutes?
Because the actual heating is controlled by a (somewhat) mechanical switch mechanism, whereas the alarm is directly connected to an IC?
-
@error said in The Official Status Thread:
Why does my oven have a function to remind me to turn it off after n minutes, and not just a function to turn itself off after n minutes?
You might get into a 737 Max situation where your oven thinks it needs to turn off, preventing you from solving some critical baking emergency?
-
Status: finally got my mouse. Cheapest one was actually a "vertical mouse", but decided not to risk it and went with the horizontal one.
Surprisingly very few models have the forward-backward side buttons. Also very few models are wired anymore, and I really don't want to deal with batteries. Basically out of like 50 I only had 3 to choose from.
Also, all USB devices you buy have a small chance to include some self-installing Chinese spyware, so that's something to be concerned about! (not that you can do anything to avoid it)
-
@anonymous234 said in The Official Status Thread:
not that you can do anything to avoid it
You can, just don't use Windows
-
@anonymous234 said in The Official Status Thread:
Surprisingly very few models have the forward-backward side buttons
Good. Those things are awful. They sit exactly in the place where I grip the mouse.
-
@anonymous234 USB -> PS/2 => PS/2 -> USB?
-
@topspin Good thinking. However a malicious device could still pretend to be a mouse+keyboard combo and just do win+r then quickly type some commands when it thinks you're not looking. Probably won't, though, because that would be found out quickly.
Hmm, you could embed it in the firmware and set a timer to run after 3 years. This gives you time to clear your tracks and disappear before it happens.
-
@mott555 said in The Official Status Thread:
@anonymous234 said in The Official Status Thread:
Surprisingly very few models have the forward-backward side buttons
Good. Those things are awful. They sit exactly in the place where I grip the mouse.
You're holding it wrong
-
@anonymous234 said in The Official Status Thread:
Hmm, you could embed it in the firmware and set a timer to run after 3 years. This gives you time to clear your tracks and disappear before it happens.
The Evil ideas thread, etc.
Which mouse did you buy?
-
@topspin So, last I checked, those things were electrically passive, just mapping power lines onto power lines and data lines onto data lines. Whatever side is newer realizes that the device it's talking with doesn't speak USB and switches to PS/2. However, because both sides are capable of speaking USB, that protocol shift doesn't occur, and it can be whatever USB device it wants.
-
@error said in The Official Status Thread:
Why does my oven have a function to remind me to turn it off after n minutes, and not just a function to turn itself off after n minutes?
Because frequently you want a reminder to check it after
n
minutes, but cooking may or may not be done at that point. Cooking is not a precision thing at all in regards to time.
-
@TwelveBaud: both kinds exist.
Passive adapters that only work for devices that natively support both protocols, which look like this:
And active converters, which look like this:
-
@Zerosquare It's just a 14β¬ generic-brand one. It works very well though.
-
@anonymous234: ah, you're left-handed. That's differentβ’.
-
@Zerosquare No, the mouse is right-handed. I didn't notice that on the link.
-
@Zerosquare said in The Official Status Thread:
@anonymous234: ah, you're left-handed.
That's differentYou're holding it wrongβ’.
-
@anonymous234 The Logitech M570 is the go-to.
-
Status: The association is redoing our roof today.
-
Status: Either we've just had World War 3, or someone in the wider neighbourhood is getting married and a whole load of fireworks were set off in celebration.
-
Status: I just learned that my brother, who has cancer, will be dying Monday (using medical assistance)
I was not expecting that so quickly
-
@TimeBandit said in The Official Status Thread:
has cancer
Oof. Yeah, it can come swiftly, that's for sure.
-
@Parody said in The Official Status Thread:
Status: The association is redoing our roof today.
Update: They've stopped for now. The silence is deafening.
-
@TimeBandit said in The Official Status Thread:
Status: I just learned that my brother, who has cancer, will be dying Monday (using medical assistance)
I was not expecting that so quickly
Sorry for your loss. I buried my dad just over a year ago, he only lasted a few weeks after his cancer diagnosis
-
Status: The response from this library method is
dynamic
and can be approximatly a billion different things. Starting to change my opinion ofdynamic
, youruntimebinderexception
.
-
I have been provided with a desk fan - after a slight delay as the office's entire stockpile were claimed and we had to order more - and may now survive the afternoon. It's hot enough that even moving air feels pretty warm, though.