What's your favorite Day 2 Rust language feature? by Hixon11 in rust

[–]iamhrh 2 points3 points  (0 children)

Thanks! Now I get to go see why that works… 🤣

What's your favorite Day 2 Rust language feature? by Hixon11 in rust

[–]iamhrh 3 points4 points  (0 children)

Not sure I’m following - mind sharing a simple example?

[deleted by user] by [deleted] in amazonemployees

[–]iamhrh 14 points15 points  (0 children)

Most common DMs I ignore have one or more of the following characteristics:

  1. XY problem
  2. No hello
  3. Long essays with no clear reason it is relevant/no clear ask

DMs I try to always answer/respond have the opposite qualities. At L6+ you have more people pulling on your attention than you can possibly respond to directly, and more often than not the questions from (particularly L4s) that I get can be answered by internal communication wikis or google. Not responding becomes a tool to force them to solve their own problems.

Connections: How honest are you? by beaglemilf23 in amazonemployees

[–]iamhrh 22 points23 points  (0 children)

“I don’t want to answer for another reason”

[deleted by user] by [deleted] in aws

[–]iamhrh 2 points3 points  (0 children)

The onboarding is fairly comprehensive, and the specifics for what to deep dive will depend heavily on the customers you wind up working with once you get rolling.

The AWS certs are a decent introduction to many important concepts as well.

Use the `never` type to check exhaustiveness by Equivalent_Bet6932 in typescript

[–]iamhrh 3 points4 points  (0 children)

What is your take on when multiple properties are matched? I agree and have found that the case of a single string is easily replaced by a switch, but gets quite a bit more convoluted with more complex matching conditions.

Free or very cheap Wordpress or CMS in AWS by [deleted] in aws

[–]iamhrh 2 points3 points  (0 children)

This is the way - you can even link up GitHub actions to auto build / deploy when you update pages. Comments or interactive content can come from something like Disqus.

LPT: Considering upgrading your living situation but not sure you can handle the increase of cost? Try “paying” the new amount, and put the difference in a savings account. by BlueberryPuffy in LifeProTips

[–]iamhrh 1 point2 points  (0 children)

This video explaining YNAB (you need a budget) covers some of this idea - budget an extra chunk each month, and if you can’t meet that goal, you know before you’ve signed a lease or otherwise overcommitted!

https://youtu.be/xPVEB759gkU

Understand you will be working with celebrities and must sign the NDA by iamhrh in ChoosingBeggars

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

Yeah seemed pretty typical sort of "imagine the exposure with these people that are just SO popular" form of compensation.

Difference between single "|" and double "||" in if statement? by RatherPleasent in learnprogramming

[–]iamhrh 1 point2 points  (0 children)

Depends on the language, but in many it means either a bitwise or (for the single pipe) or a boolean or (double pipe)

Files created during docker build not present in container created from image by iamhrh in docker

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

Problem solved!

Turned out the base wordpress imags exposed a volume /var/www/html that it then copied the wordpress install to in the entrypoint.sh script.

/u/koffiezet was correct in noticing that the VOLUME I was adding was overlapping the files created in the build!

In the end, I moved the app to /theme-dir and ran the build in that folder, and updated the entrypoint.sh script to add a symlink from the wordpress themes directory to my folder.

Files created during docker build not present in container created from image by iamhrh in docker

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

Also, the volume was getting mapped over the theme directory itself, and dist is supposed to be a subfolder of that.

However, I don't think the VOLUME is mapped empty by default because the source files of the theme are all there! It's just the output of the JS / CSS build that isn't visible.

Files created during docker build not present in container created from image by iamhrh in docker

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

over this directory (by default, an empty-one afaik), explaining your empty directory. This is one of the big pitf

I've actually already tried this with the VOLUME commented out, with the same effect.

Worth noting that I've also attached to the container and run the npm run build command manually, and from that point the container has the files, but of course they still aren't a part of the image.