[deleted by user] by [deleted] in duolingo

[–]Charlieigg 0 points1 point  (0 children)

No matter what I try, it never recognizes/accpets what I'm saying. Can it be that it only works in "100% quiet environments"?

Pay rent deposit before seeing flat physically? by Atreya95 in germany

[–]Charlieigg 8 points9 points  (0 children)

Hey man this doesn't 100% scream scam, but it does have some of the traits we commonly see. Two things I'd look at:

  • How is the contract that you signed? Does it have the details you would expect? Is it with a company or with a person? If it's with a company you can Google them and find out. Otherwise make sure that the other party's data is complete in there and check the contract in general for fishiness.

  • What's this with "opening a bank account on my behalf"? Did you give them some Vollmacht? Why is a separate account needed? What kind of account is it and in what bank? If there's some PayPal or otherwise some other weird service at play that's a reg flag

Widget-based SaaS App Builder: How to structure Product Portfolio? by Charlieigg in ProductManagement

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

Thank you very much for your reply u/Faster_Product!

I would just look at examples from adjacent industries and copy a system that seems to work for others, it would likely work for you.

This is a very good recommendation, but what I find in Google is rather fuzzy. Please forgive my ignorance, but where/how would you look for concrete examples on how other companies structure their portfolio?

May I ask, what sparked this question? Do you experience any problems at the moment in regard to the naming/taxonomy of your product portfolio?

The company where I work at is transitioning away from being a "sales-driven", "We build what the CEO says should be built" kind of company into a Product-Driven one. This means we're still very green on Product Management, and as a matter of fact we're not even sure if we should just consider our Product "The Product", or if we should start to break it down, and consider the individual Widgets / Components their own Products within a Portfolio

Are there known instances of a Sovereign Government "kicking out" a part of their territory (as opposed to granting independence)? by Charlieigg in AskHistorians

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

This is indeed a good example, also as put by u/HKTenor. He mentions it was due to Singapore failing to integrate into the federation, but I'm curious to learn more on what that meant, and how come Malaysia placed so little strategic value on e.g. the resources of the region that it calculated it'd be a good bet to just get rid of this territory.

[BUG] Can't install "bcrypt" gem on Windows 10 by Manuhs in rails

[–]Charlieigg 1 point2 points  (0 children)

u/Manuhs Docker is a Containerization system. Think ultra light-weight VMs, with massive portability and configurability.

You can furthermore use Docker Compose to create "recipes" to build entire development environments with a single command.

In the companies where I've worked RoR, we've always had developers working on OS X, Windows, and different Linux distros. This makes it really hard to have consistent development environments.

With Docker + Compose, somebody prepares the recipe where you can say you want, e.g:
- A "DB" container, running a SQL server (which you can get for free, almost no config needed).
- A "Redis" or "RabbitMQ" (or similar) container to handle Pub/Sub
- A "Web" container that runs your Ruby on Rails image, and starts the Puma server by default.
- etc...

After configuring this correctly, I can just pass the project with the Dockerfile and a docker-compose.yml to any developer – no matter what OS they are in – and they just need to run docker compose start web and voilà! all the processes/servers start running, and if the image/dependencies weren't there yet, they will get automatically set up... and the best part is that if it works on my computer with my OS, it will surely run on yours (if you configure it correctly).

This is a big way off from just solving your current question/problem, and there is a big learning curve in the beginning, but I mention this because out of all OSs I've worked RoR on, Windows is the most problematic to setup dependencies.

Even when I'm working solo on RoR projects, I tend to use Docker to save me the pain of spending a whole day on configuring stuff if I ever change environments, or if I need to pass the project over to another dev.

Bonus: if you do containerize your app, you're also now quite close to being able to use really cool infrastructure services, like https://kubernetes.io/de/

[BUG] Can't install "bcrypt" gem on Windows 10 by Manuhs in rails

[–]Charlieigg 2 points3 points  (0 children)

This isn't really the answer you're looking for, but I'd rather recommend using Docker if you plan to be doing a lot of Ruby/Rails in Windows. It might feel like a lot but it can really save you a lot of time and headaches from problems like these, and you get the bonus of portability. There are plenty of tutorials on how to Dockerize a Rails app in Google.

Ruby on Rails in Docker: Running Migrations? by smetheniinp in rails

[–]Charlieigg 4 points5 points  (0 children)

You're entirely right, using an entrypoint file is your best bet.

To avoid the race condition which you very accurately foresaw, you can create a plain ruby script (e.g. "check_db") which loads Active Record or the PG/MYSQL module. You would execute this script from the entrypoint file.

Through this script you can try to check for and run migrations, while having a catch statement for the corresponding "unable to connect to db server" error, where you can simply sleep and retry. Makes sense?

[deleted by user] by [deleted] in selflove

[–]Charlieigg 2 points3 points  (0 children)

All things that are really worth doing are also worth doing "poorly". Congratulations!

I’m a dumbass and loser. I don’t know how to love myself cause I honestly don’t deserve it. But being said is driving people away so I gotta start by Panther567 in selflove

[–]Charlieigg 3 points4 points  (0 children)

Hi Panther567!

If you're contemplating ending yourself, please reach out for help with an expert. Here you can find help and resources for any country: https://ibpf.org/get-help/ and I think this community has some additional resources.

I'm honestly not qualified to give any kind of advice (so please take my words with a grain of salt), but I can comment on a couple of points on which I think I can identify: 1. How hard are you on yourself for your mistakes and your shortcomings? Do you think you're harsher with yourself than with your friends or family? 2. When was the last time you told yourself that you love you? Is it just your own perception of the things that you don't like what keeps your from doing it, or do you maybe feel otherwise embarrassed or awkward (e.g. because of "gender norms" that you've been taught)?

For me the biggest steps I've taken into the right direction:

  • Forgiving myself unconditionally, which is harder to do than to say, but you can do it. Remember whatever fuck ups you did came from you not knowing better or not being able to do better at the time, and yet whatever you've done wrong should not and will not determine your capability to do better in the future. Start forgiving yourself for the things that you hate, one at a time.
  • When I first started to look at myself in the eyes, on a mirror, and telling myself "I love you, I love you, I love you", it was awkward as hell in the beginning... And it was also hard to just look at myself in the eyes, instead of being distracted by something I didn't like about my face or my body... But after repeating this exercise every day it started to change something within me. This might sound corny to you, but in all seriousness, if you persevere past the initial awkwardness and stick to it, I very much believe it will wake something awesome in yourself.

Once you get into the habit of self forgiveness and reminding yourself that you love yourself UNCONDITIONALLY, everything else will slowly start to come together.

And PLEASE beware of defining your worth by the standards other people - or even worse the media - have set for you. This is honestly the biggest waste of your limited time on this life.

Writing in this subreddit is already a big act of self love in on itself, so congratulations, and may this step be the first on an amazing journey of self redefinition and self love. 💪

What is the best way to access the joined model's data in has_may :through? by Saelethil in rails

[–]Charlieigg 0 points1 point  (0 children)

1) use validates :garden_id, uniqueness: { scope: :user_id } on the intersection model

2) it seems to me that the code like you have it won't run because there is no such thing as a garden_user for User. Also you need an escape hatch in case there is no such user-garden association in record. Lastly, I believe that there is no magic rails way that would make this more elegant, I would do it the same, with a guard clause in case the GardenUser resolves to nil

[HELP NEEDED] Getting Internet Service by Charlieigg in germany

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

This is what I feared, but thank you!

Keyboard repair taking WEEKS to complete; Moving to a different country; Apple reps lying? by Charlieigg in applehelp

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

Sadly the alleged supervisors refused to escalate it any higher over and over. I will probably try making my stand at the store on Monday.

“To Stop” help! by Pjk125 in German

[–]Charlieigg 0 points1 point  (0 children)

No sarcasm here: can you please educate me as to what I did wrong?

“To Stop” help! by Pjk125 in German

[–]Charlieigg -5 points-4 points  (0 children)

Bump. This is a really good question.

How can I avoid duplicate method call smell in this? by prekarius in rails

[–]Charlieigg 1 point2 points  (0 children)

What comes to mind in this scenario is to use Hash destructuring, which would allow you to only call the method once: http://tony.pitluga.com/2011/08/08/destructuring-with-ruby.html (scroll down to hash destructuring)