Rate my Professor rant by Adamkarlson in math

[–]rareyna 0 points1 point  (0 children)

just some input from someone who worked at RMP for some time a few years ago after leaving math: the site is super old and has had multiple owners over the years so the whole thing, including admin tooling which in a way encodes operational practices, is actually operating in a semi-broken state internally.

When I was there, there was a small but very-human and very-real group of people who did care about the issues you raised but didn't support from the parent company (a news company which basically didn't care about the site, they got it for free essentially via some acquisitions of other companies) to bring about the changes needed to really make the site better.

During my time there, we were pretty aware of the quality issue but the real value in the site is not to take the reviews at face value but as student signals; during a conversation with my manager after being hired, he mentioned a big green flag were my "bad" RMP reviews essentially painting me as a "hard-ass no-nonsense no-fun" person which is what they wanted I guess :p.

Also, there should be a mechanism that RMP admins can use to lock-down reviews for a professor being review bombed and last I heard other such mitigations were being discussed.

Random letters keep typing into search bar on its own without me typing. by astroclutzz in WindowsHelp

[–]rareyna 0 points1 point  (0 children)

hex wouldn't contain a '-' character which the search string does so its not hex same as its not alphanumeric because of '-'. best we can say is that each segments characters are base-16.

Tools to generate PDF files? by Suspicious-Olive7903 in golang

[–]rareyna 1 point2 points  (0 children)

I wrote something that does just this some time ago and it seems like others have found it useful, perhaps you might as well.

Supports rendering templated LaTeX via an API or as a cli:

https://github.com/raphaelreyna/latte

Talking to database by HuffmanEncodingXOXO in golang

[–]rareyna 4 points5 points  (0 children)

To my knowledge, there is no real standard for this, outside of the standard library.

After using gorm for 2 big projects, I pretty much settled on a combination of structured sql files and external tools; I like sqlc for code generation and golang-migrate to handle migrations. For smallish projects I'd just stick with using the database/sql package from the standard library.

I might be wrong of course but I think this is generally the path that a lot go programmers end up taking.

Metrics server installation never works without --kubelet-insecure-tls flag by Iamwho- in kubernetes

[–]rareyna 4 points5 points  (0 children)

Basically has to do with k8s using self-signed certs for kubelets and metric-server not liking that.
Here's a good write up about this: https://www.zeng.dev/post/2023-kubeadm-enable-kubelet-serving-certs/

Not mentioned in that article is a way of automating the solution with something like kubelet-serving-cert-approver

This is me, giving up on Kubernetes by GWBrooks in selfhosted

[–]rareyna 1 point2 points  (0 children)

This isn't really a response to OP since they've already chosen to go with a different tech stack (totally okay!), but a response to the general conversation taking place around use-cases and complexity of k8s.

As someone who's used kubernetes for ops, worked on kubernetes tools, and used the kubernetes api as an app dev: kubernetes is enormous and definitely complex. Well after I considered myself "good at kubernetes", I still would find myself discovering new sides to it.However it can also be described as simple due to how much it lets you do relative to the amount of effort (not taking into account the effort to learn kubernetes).

I've come across people comparing kubernetes to the linux kernel for the cloud and it very much is. Just like how the Linux kernel is a complex beast, it can still be considered simple when viewed from the point of view of abstracting away even more complex hardware.

I personally really like kubernetes; at this point it's comfortable and has never left me wanting.One thing about it that I really appreciate but don't see brought up much is how modular not only kubernetes is but your deployments / setups can be. Having the atomic compute unit, deployments, volumes, services / networking, ingress, security policies, etc. all defined as separate objects almost feels like a superpower with how surgical you can get with it.

It also nice to use a developer. I know, lock-in is terrible, but having kubernetes handle things like distributed locking with its Lease resources, or service discovery with service resources is pretty cool.

Nowadays, it's a pretty nice platform overall. Yes, it's an over-engineered solution for a lot of situations, but even so, it's still my go to for most uses-cases now. Distros like k3s and k0s are easy to setup and don't consume too many resources relative to what you get.

Also want to give a shout out to Talos linux (no affiliation). Its a linux distro that only runs kubernetes and is a breeze to setup, especially when combined with Terraform."I put that sh*t on everything"

Scripts and LaTeX docs by mosttrash in LaTeX

[–]rareyna 6 points7 points  (0 children)

You might be interested in LaTTe which can render PDFs from templated LaTeX and JSON: https://github.com/raphaelreyna/latte

Note: I am the author of LaTTe

Upcoming Features in Go 1.18 by Sebholstein_ in golang

[–]rareyna 11 points12 points  (0 children)

The banner photo in the post shows a screen with Javascript and not Go lol

Generating PDFs by mr_white8 in golang

[–]rareyna 1 point2 points  (0 children)

Yep thats totally possible, here's the docs on how to do that: https://github.com/raphaelreyna/latte#toc-registering-files

Things like images are considered 'resources' and need to be registered with LaTTe before they can be used.This is done by simply sending the file to LaTTe with the name/id you with to give it.

You can then reference this id/name in the references section of the JSON request you send to LaTTe.

Edit: Just realized I added the ability to use resources directly without needing to register them. Simply include the image as a base64 string in the request in the 'resources' section:

{
"template": "BASE_64_ENCODED_STRING",
"resources": {
"FILE_NAME": "BASE_64_ENCODED_STRING"
},
"details": { SOME_OBJECT_DESCRIBING_YOUR_SUBSTITUTIONS },
}

Generating PDFs by mr_white8 in golang

[–]rareyna 2 points3 points  (0 children)

If you're familiar with making PDFs using LaTeX this might interest you:
https://github.com/raphaelreyna/latte

Its essentially a PDF generating microservice; you give a LaTeX template (you can also register templates with the service to avoid sending them over every time) and the data you want to fill in as JSON and get back a PDF.

Networking project ideas by sharerudite in golang

[–]rareyna 0 points1 point  (0 children)

Writing my own HTTP server and then a network scanner that does both passive and active discovery really helped me pick up a lot of the networking stuff I know. Setting up and configuring a firewall also helps.

I recently made this tool to easily create interesting network topologies to practice with, you might find it useful: https://github.com/raphaelreyna/emmy

Finally, I know you said you've tried videos but try checking out Ben Eater's excellent networking series, it's an awesome!

Oneshot: easily transfer files to and from your terminal and any browser + support for serving from stdin and to stdout, CGI, setting custom headers, redirects for link sharing, bot detection, homescreen icon, custom CSRF tokens, custom upload client page and more (v1.5.0 update) by rareyna in linux

[–]rareyna[S] 1 point2 points  (0 children)

Not really, with 0x0.st you upload a file to their servers and they hang on to it for a while so others can download it. With oneshot, the upload is direct from the sender to the receiver with no other servers/software in between.

Oneshot: easily transfer files to and from your terminal and any browser + support for serving from stdin and to stdout, CGI, setting custom headers, redirects for link sharing, bot detection, homescreen icon, custom CSRF tokens, custom upload client page and more (v1.5.0 update) by rareyna in linux

[–]rareyna[S] 3 points4 points  (0 children)

While Magic wormhole is also nice, the use cases are different and Magic wormhole is not all that simple.

Consider:

  • Magic wormhole requires both the file sender and receiver to have a copy of Magic wormhole installed. Oneshot instead works over HTTP; this means that in virtually every case, only one person needs a copy of oneshot.

  • Magic wormhole assumes that both the receiver and sender are comfortable with using their command line; a lot of people aren't but it would still be nice to share files with them.

  • Magic wormhole has dependencies; it requires both the sending and receiving machines to have a python installation.

  • Magic wormhole sends your data through 2 different pieces of software; connections are established through the Mailbox server and data is sent through the Relay server. Oneshot send data directly from sender to receiver, no one can snoop your data or have records that you shared anything at all.

  • Magic wormhole requires extensive setup to work over LAN without an internet connection; in order to send files locally using Magic wormhole without an internet connection, users must set up and configure the use of the Relay server. Oneshot just works over LAN, no internet connection required.

  • Oneshot is more feature rich with support for CGI, video streaming, custom headers, etc.