Pinning for mobile users
- Have moved to Eden@queer.cloud -
Ooh, I decided to get a curiouscat.
https://curiouscat.me/EdensAesthetic
Feel free to ask/tell me stuff! :)
And if I manage to finish a successful demo tomorrow, I'll feel like I had a successful project from my holiday?
Like okay I might not have done everything I wanted, but finishing that project is something tangible that'd be cool to take back.
Like I'd like to say today wasn't that successful, because I didn't really finish the project or get to a good stopping point.
But the code now deserializes pretty much exactly how I needed it to, and I get what I'm doing with serde now.
And I've found a solution to the infinite data-gather issue, so like it should be a matter of putting it together tomorrow and hopefully getting a minor response back.
If nothing else, I've learned how to setup a local presto cluster?
Buttttt there's a bigger problem, which is how PrestoDB sends data.
So they send data in rows at a time. Which is cool, unless you mix data types like
[1, "a"], [2, "b"], [3, "c"]
And that's not really valid in Rust. Or really most languages without lists etc. And I'm not doing a list.
So I need to transpose *during deserialization*, because that'll give me
[1, 2, 3] ["a", "b", "c"]
Which is even more problems, because that gives me 3 objects, because there are three rows, but now I'm doing it in columns I only want 2 columns of 3 values.
which is frankly kinda butts, but I've had to do worse in deserialization already?
Found a method in #Rust #Rust!Hyper to effectively request_until:
So you can do an infinite loop with
loop_fn(acc, |x| {
x.function()
.and_then(|x| {
if x.done {
Ok(future::Loop::Break(x))
}})})
Which is fairly neat! And it solves my problem of needing to basically keep requesting data until there's no more data.
pro tip: ".svg" is pronounced "savage"
Okay so if you want racer to work with multirust, you apparently need the source of Rust installed too, and multirust doesn't use that.
So you have to clone rust source, then set a path variable to the rust source, then reinstall.
Then if you reinstall the extension, Visual Code can use the addon to do racer and code checking for you.
...so this is what an attention trap is like on adderall. That was two and half hours gone. Oops.
reminder that the woman who designed the ARM processor in your smartphone is transgender
I guess this is why you don't teach newbies about multirust? They do shit like this.
oh shit it turns out I was working on Rust Nightly instead of Stable.
...I hope this breaks nothing. I really hope this breaks nothing.
Oh sweet the post about me being wrong got fame-witched :')
I *want* to post that I don't think racer is working with multirust, but I feel like I've learned a lesson from this...
I'm torn.
I want to go back to work soon to fix a fuckup I saw being discussed over asana, as I can't figure out how to make it not notify over holidays.
But also not being at work is fantastic for my stress levels. :')
Apparently the instant I post any complaint to Mastodon, I find a fix for the problem.
So the git ignore does work, it just didn't like the formatting of the automatic one.
Still can't get the git ignore to work for shit, but this is significantly better than it was
Oh shit I actually just found a workaround, awks.
Anyway, if this does bother you, just do
eval "$(ssh-agent -s)"
Then add
"Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa"
in your ~/.ssh/config
And add it to the agent you started by using
ssh-add -K ~/.ssh/id_rsa
because then visual studio can use the agent you started, and the agent has access to your keychain, which has your password.
Visual Code advertised itself as this amazing IDE, and I was totally sold.
Can use Git within it, can have a terminal in it, doesn't eat all memory, soldddd.
Except Git _only works with SSH when it has no passphrase_
HOW DID THAT GET PAST RELEASE.
I'm starting to think R isn't a good first language for someone.
I mean, technically my first language was Python when I was fifteen, but does anything pre-transition really count?
REGEX in Rust is butts to get used to
You can just be like
r"http://"
instead of
http\:\/\/
And if you're coming from R, it's instead of
http\\:\\/\\/
which is a hell of a muscle memory to unlearn. :(
smartphone keyboards should have an incognito mode, just like web browsers, in which text typed into it is not used as material for either autocorrect or text suggestion.
TfL: "Uber is violating worker rights"
London: "Aye, but it's a very cheap worker rights violation"
Oh no. I've done all the things I do to kill time.
I might need to get up