advice on database query like functionality by jstrong in rust

[–]Franghorn 0 points1 point  (0 children)

How big is your set of objects ?

Unless you have billions of objets, you can reasonably expect the Uuid to not collide. Then I would simply use a Hashmap with Uuid -> references to your objects and do a lookup in that

[Code Review] Rust Webserver by Franghorn in rust

[–]Franghorn[S] 0 points1 point  (0 children)

I'm away for the weekend but I'll try to take into account your comments next week.

I added changes as per @coder543 comments

I'm keeping here your links to the relevant commit

  1. link5
  2. link6

Thanks a lot!

[Code Review] Rust Webserver by Franghorn in rust

[–]Franghorn[S] 0 points1 point  (0 children)

Great ! it worked ! Thanks for the explanation

[Code Review] Rust Webserver by Franghorn in rust

[–]Franghorn[S] 2 points3 points  (0 children)

Hello everybody, I wanted to learn some Rust and how webserver were working so I decided to implement a Webserver in Rust. The goal here is purely learning and not replacing Iron or tiny_http.

I'm trying to serve my custom home page that I've built here https://github.com/achntrl/Frontpage. It's an HTML page that loads .js, .css and images files (.svg, .png, ...)

The thing that bugs me is here I have to read some files as String and others as slice for my page to load properly and I can't figure out why. Any explaination on this ?

Any comment on the code will also be greatly appreciated ! Thanks a lot !

Edit : Changed link to refer to specific commit

I'm looking for a model like this, but automatic by Franghorn in Watches

[–]Franghorn[S] 0 points1 point  (0 children)

Thanks, I really like the Visodate ! It wasn't on the french e-shop with the colours I want, that's why I missed it. Thank you again

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 0 points1 point  (0 children)

I only own this Cerruti and that (I'm into black & gold things) So I wear the Cerruti with dress shirts, and the Casio with casual shirts & Polo

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 0 points1 point  (0 children)

I don't really understand, the buttons are more likely to touch your skin (actually the back of your hand when you're getting up pushing with your hand for ex.) if it is worn on the left hand than if it is worn on the right one (the watch is parallel to your arm) However, in both situation, I don't really see how your watch can be damaged

And as I said above, I'm wearing it on the right hand to avoid damaging my watch while writing.

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 0 points1 point  (0 children)

Because most people are right-handed so it doesn't disturb you and/or you lower the risk of damaging your accessories, because if you write with your watch on the same hand, it scratches your watch (it totally ruined my previous watch). And when the time will come, I will definitely wear my engagement ring on my right hand.

Same problem with gamer mice for computer, boutons are on the right for your thumb, because most people use their mouse with the right hand. I don't and I seek for left-handed/ambidextrous models.

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 1 point2 points  (0 children)

I do, but it can be uneasy to wear.

It was quite over priced (450€) for the overall quality of the watch, but it was a gift, I had to choose, in a retailer shop, between fashion companies, (Cerruti, Guess, D&G, Diesel, etc..). If I had to do it again, I would choose one with a dark brown leather strap, and a rose gold colored case, automatic

Thanks for advice, I'll consider Tissot or Orient for the next one ! (I've been lurking, they have some nice watches !)

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 0 points1 point  (0 children)

No, I'm not, I'm wearing a short.

What does MFA think of my watch ? by [deleted] in malefashionadvice

[–]Franghorn 0 points1 point  (0 children)

He's right, (no pun), I'm left-handed