BehindTheBarrier

joined 2 years ago
[–] BehindTheBarrier 1 points 3 weeks ago

Not sure if this advice really applies, given i haven't used Git for any reports myself and I don't know how you are doing the text based project. I did pretty much all my uni reports in a online latex document site which allowed shared editing, so there was some history but all edits were live to the main doc.

But with the power of latex at least, you can have the main file do import and usages, and maybe some setup. And then combine other files representing anything you want. Such as one for front page, one per chapter or one for appendixes.

Then just can do changes/new sections in feature style branches, and it's up to you if you want things to go to the main branch, or have a dev like branch where further refinement can happen if your work is structured and not all over the place like my report writing was.

[–] BehindTheBarrier 5 points 1 month ago (1 children)

A worthwhile note is also that pretty much all US car manufacturers have dragged their feet doing EVs, excluding Tesla. So naturally US car manufacturers are struggling a lot with the massive costs related to adopting EVs now, and struggle competing with a country that spent this money getting established a good while ago.

The subsidies are still a problem, but the 100% tax is in my view a massive handout to domestic manufacturers that never bothered to try until they were behind. That 100% price increase in Chinese will probably mean high margins on EVs for yet some years before cheap alternatives come along.

[–] BehindTheBarrier 4 points 1 month ago (1 children)

The article goes into the first point though.

Using those services on your behalf is, potentially (in a legal sense) use of your data. By providing some information to a third party, even if Firefox itself doesn't itself use it. This may come from the fact that you don't directly agree to terms with the third parties when you start using the browser, with safe browsing for example. So Firefox is in a sense using/sharing private information. And in the changing legal landscape this usage may fall under modern privacy laws, such as the one mentioned in the article.

I agree the old wording was bad, but I do see the reasoning behind the new one.

[–] BehindTheBarrier 2 points 1 month ago

I'd expect modern cars to use proximity detection which means the fob only needs to be with you.

Like my Peguot has a fairly large fob, but it's just in the pocket of my jacket. Never leaves it. I guess it's a problem if you don't have a semi permanent thing like a jacket you use every day though.

[–] BehindTheBarrier 3 points 1 month ago

There's GUIs for it though. Obviously not for everyone, but I made my own.

That it can download virtually from any site is pretty useful, assuming you know what to give it.

[–] BehindTheBarrier 10 points 1 month ago* (last edited 1 month ago)

My solution to most things, make it a chore.

Like, if you don't buy it, you can't drink it. If you have it, put it in an inconvenient place so you you won't see it or bother getting it.

[–] BehindTheBarrier 11 points 1 month ago

Try making a list without copying every time you add something. Mutability matters then. Imagine copying 10000 elements, or copying 10000 references to items every time something were to be added or changed.

[–] BehindTheBarrier 4 points 1 month ago

It probably makes sense if the program they came from is a badcase, but at least ours don't go over board. It's always a "you are probably doing something wrong, but we will allow it if you want to" or a "please confirm you want to do this thing that may have huge consequences". With what they were learning, they were not touching anything related to the latter. So they probably were doing something wrong.

[–] BehindTheBarrier 21 points 1 month ago (3 children)

I was on-site for users learning our new program. Watched them do something, a dialog came up, and faster then i could catch what it was, they closed it. Dialogs are warnings or confirmations you know, and they did not know what it was...

So yeah, sometimes I do think there should be a wait time on the OK button.

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

I'm still a windows pleb, so no Zed for me. Fleet I haven't heard of before.

I'm also very much one that likes a lot of convenience. RustRover is know from experience with both pycharm and Rider. But my main points are convenient functionality, autocomplete, debugger, code navigation, formatting and cleanup and git diff readily available. RustRover might be big and heavy, but it let's me focus on writing and running my code without much issues.

[–] BehindTheBarrier 5 points 2 months ago (3 children)

The following isn't any professional advice or anything, I am writing HTML manually for my hobby blog code. I don't have much experience with HTML outside occasionally reading it.

I write a bit by hand, to layout my blog page, which is using HTMX. Generally I use RustRover since that actually gives details for attributes and such along with autocomplete. And apparently yesterday it asked if I wanted to enable HTMX support, which was even more intriguing. The main articles are however converted from markdown to HTML.

I do want a better way to design with preview of my page but I think it's a long shot to find something that does HTMX at the same time. Especially since that often means having segregated pieces of HTML mixed into one document at page loading.

 

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 2 years ago* (last edited 2 years 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 ›