BehindTheBarrier

joined 1 year ago
[–] BehindTheBarrier 2 points 4 hours ago* (last edited 4 hours ago)

I made a super basic blog by hand using actix-web. Basic processing of markdown into HTML and then present it through handmade (and chatgpt assisted) html+css with htmx to spice things up and try to do mimic a single page application. I don't have much web experience though, so much of it is crude.

I don't host myself yet, I used Shuttle which procides free hosting for hobby rust projects. It also comes with postgres so I have been looking into how to move from storing articles in files to a database for more consistent article support. Shuttle also supports other things than actix-web, so you don't havr to use that specifically.

While I said blog, I don't support new articles without a redeploy yet... And it only has like 3 random articles based on reddit posts. But it works at least.

https://handmade-blog.shuttleapp.rs/

[–] BehindTheBarrier 3 points 2 days ago

I guess I should be happy I applied a work discount, which extended my subscription until Oktober 2026 or something.

[–] BehindTheBarrier 2 points 5 days ago

That data display is really cool, since I don't know too much about how a specific number is presented like that double.

That unit calculation is also pretty cool.

[–] BehindTheBarrier 4 points 1 week ago* (last edited 1 week ago) (1 children)

Because I want to be a God.

It's a bit of hyperbole, but I was using some program on my pc and was frustrated because it didn't do things I wanted it to do. Or it had bugs, and there was no way for me to get that changed, so I was left to pray that somehow the creator would find this small problem and fix it. I was envious of those people that could make these windows with buttons that made things happen. I wanted this power that transcended what I could see on my screen, and change how that world worked.

And so, I learned to program. I took the powers to shaped my own creations and ascended.

[–] BehindTheBarrier 5 points 1 week ago

Thanks, I figured I was missing some connection.

[–] BehindTheBarrier 8 points 1 week ago* (last edited 1 week ago) (2 children)

Unsure if a joke or not, but in the event of a serious question:

scrum masters are heads of scrum teams, their main purpose is facilitating good work conditions for the workers in the team. This generally means arranging and leading typical scrum meetings, helping workers do their job and shielding them from the Production Owner (the guy that decides what they are to make/deliver during a sprint . (sprints are 2-3 weeks long, where work is done according to a selection done at the start of the sprint and interruptions are kept low during that time.)

I don't want to say that it's an easy roles, but it's more a management type of role than a worker role. In my team the scrum master is also doing development work, since scrum master tasks alone aren't that huge with the way we do things.

[–] BehindTheBarrier 1 points 2 weeks ago

Then you have a bit more to do yeah, you should look into object oriented programming and classes. Classes are pretty much everywhere in C#. At the beginner level they aren't as bad as they seem but you need to understand it's basics. The guide I linked in another comment also has short introduction to using a class for example.

[–] BehindTheBarrier 2 points 2 weeks ago

In my case, I had local music synced up in a playlist, and the playlist still did shuffle though my music. (which Spotify didn't know the artist of given that it wasn't part of their library.) The broken shuffle was just one of many reasons why I stopped using streaming and went with local music players back in the day.

[–] BehindTheBarrier 4 points 2 weeks ago (2 children)

I sure don't sound helpful saying this, but it's mostly about finding the equivalent to the python action/types, and typing them out when making functions and variables. Though 99% of the time, you are completely fine defining variables as var to avoid excessive typing.

I assume you dealt a bit with classes in python, if not then you're doing double time with both changing language and learning object oriented classes at the same time.

If there is any specific I can try to give some clarity since I also came from Python to C#.

[–] BehindTheBarrier 6 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

I found C# to pretty much be python just with strict types and semicolons. Jumped right into it really on my first job and it worked out pretty fine, granted I got to orient myself in the existing project where I started.

You are perhaps already familiar, but some things stand out like public/private annotations and other class related things like interfaces which work to create a more organized and controlled use compared to pythons "we are all consenting adults" approach were nothing ever really truly blocked from you. It depends a little on what you want to do/use it for, there's frameworks and different uses like WPF / .NET for the frontend.

While it may be too basic for you, ZetCode was useful for me back when learning PyQt in python, so you might find some use with the C# intro: https://zetcode.com/all/#csharp

[–] BehindTheBarrier 1 points 2 weeks ago (2 children)

It doesn't make much practical sense when the entire playlist if downloaded and they still do this. Just ruins the listening experience.

[–] BehindTheBarrier 5 points 2 weeks ago

For me it looped though the same 30 songs out of more than 1000. I much prefer a one time shuffle that guarantee all songs in my playlist, just in a new order. It's not exactly rocket science, if it's in the playlist it naturally should be played. That and horrible sync with local music made me just go all "offline" with PowerAmp on mobile and Foobar2000 on pc...

 

Some background, I work full stack while we also man the support email from users. I'm manning the support email this week, but today I was also tech support for a fellow developer.

We use HP docks to connect everything from screens to keyboards. But today a dock would not do anything when my colleague attempted to use it.

Being the nosy kind, I went and asked the usual

  • Did you reboot?
  • Did you remove the power to the dock?
  • Try messing with the drivers?
  • lock the screen before unplugging?
  • Tried another dock?

All yes, none worked. Our IT support hadn't opened for the day yet and he was looking into updating the specific dock driver.

So I asked, did you try the other USB-C port? And what do you know, that worked. Then he just plugged right back into the first USB-C port and everything was back to normal. I don't know who made the drivers, but it's pretty danning when they can brick a specific USB port until it's forced to redo whatever config that messes it up, by using another USB port...

If anyone wonders, the docks have a magnetically joined charging and USB plug, so it's fairly natural to plug them in together side by side. It's also almost uniquely a dock issue and not a dead USB port, so it's funny that the enite thing uncloggs from just using another port for a second. But a reboot does not...

22
submitted 1 year ago* (last edited 1 year ago) by BehindTheBarrier to c/rust
 

I'm super new to Rust, like a day old really.

But I tried a program made in Rust on Windows, and it refuses to work.

Never prints anything. Just straight up instantly dead. Long story short, this thing relies on some linked stuff like ffmpeg in some form. So, I did my best trying to gather all the things it needs per github issues, reddit and other souces. And the end result was that it now spent 0.1 s longer before crashing, actually leaving time for some error in the Windows Event log. Nothing useful there either as far as I can see.

So I clone the repo and get the required things to compile Rust, and I managed to build it from source at least. The executable doesn't run, but the Run in VS Code works, somehow. It prints the error messages corresponding to missing input. So i try to debug it, but nothing happens. No breakpoint is hit, and nothing is printed in the terminal, unlike when using Run or cargo Run. I can also just strip out everything it does in the file the main function is in, and it will hit breakpoints. But that didn't help me find out what is missing/broken though.

So what the difference, is there a way to catch and prevent Rust from just going silent, and actually tell you what dependencies it failed to load?

My entire reason for getting it running locally is to fix that. Because no one sane wants to deal with a program that doesn't tell you why it will not run... And when debugging also does nothing... I'm out of ideas.

The program is called Av1an for reference, and it's a video encoding tool. I used a python version before they migrated to Rust, and wanted to give it a try again.

Edit: Wrote linked library, but i think the proper term is dynamic libraries. I'm really not good with compiled programs.

Update: Figured it out. Had to copy the out files from the ffmpeg compiled stuff back to the executable. Apparently Cargo Run includes that location when looing for the files, while running from the command line clearly doesn't.

But the biggest whiplash, was that I got a full windows dialog popup when i tried to in the exectuable in CMD instead of Powershell. Told me the exact file I was missing too. I know PowerShell is a bitch when piping stuff, but I'm amazed no other program or error message could hand me that vital information. Fuck me, I wish I had tried that from the start....

view more: next ›