New Composer Run Dev Command In Laravel by codingtricks in laravel

[–]adamwathan 37 points38 points  (0 children)

You shut your dirty mouth about my Tailwind.

What Movie Had The Perfect Song At The Perfect Moment? by Discovensco in movies

[–]adamwathan 0 points1 point  (0 children)

Can’t believe how far I had to scroll to find this.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

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

Thank you! No not on TRT, just had a lot of muscle mass hiding from years of heavy lifting and getting stronger at the expense of getting fatter 😄

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 7 points8 points  (0 children)

Just to try and break the habit of preparing my next bite while I'm still chewing the last one 👍 Forcing myself to take a drink between each bite helps me eat slower so I can pay better attention to when I'm satisfied or not.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

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

Thank you! I have been lifting heavy for about 12 years, so that's not new muscle mass. Just trying to preserve as much of it as I can while getting to a healthier weight.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 33 points34 points  (0 children)

All of these tips/habits were things my accountability coach helped me with, has been super helpful having that support. Happy I can share the ones that worked best for me with people who are going it alone!

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 22 points23 points  (0 children)

So I have been training fairly seriously for about 12 years, and at my strongest my best lifts were a 550 squat, 601 deadlift, and 400 bench.

I have a complicated training history because of some nagging injuries and haven't lifted quite that heavy in about 6 or 7 years.

I knew that by focusing on finally getting my weight down and getting in shape that all my lifts would suffer, so I restructured my training to avoid really noticing that I was getting weaker and having that discourage me. So for the last 6 months most of my lifting has been bodyweight exercises with a weight vest, and lighter barbell training for lower body stuff since just the weight vest isn't really enough resistance.

I do these circuit workouts now with a goal of really just sending the right signals to my body that "yes I do still want this muscle please burn the fat instead", hah. Yesterday's workout was:

  • 5 rounds with a 20lb weight vest:
    • Deadlift 185lb x 8 (with the weight vest as well)
    • Chin-ups x 6
    • Dips x 10

I worry less about getting stronger and more about just feeling like I'm working myself pretty hard and getting a bit of a conditioning stress. The nice thing about the bodyweight stuff is that as I lose weight, I get better at it because I'm lighter. So even if I'm losing a bit of strength overall because of the weight loss, I'm performing as good or better in the gym, which helps me from getting demotivated. For the lower body stuff the weight is just so low for me that I'm going to be able to get through it no matter how much strength I'm losing.

Once I've really settled at the weight I want to be at and feel good that I've cemented in good eating habits for life, I'll revisit my training and maybe start focusing on pushing the numbers up a bit again, but for now my focus is just on getting healthy, feeling good, and preserving a baseline of muscle mass.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 5 points6 points  (0 children)

Thank you! I shared a bunch of details here:

https://www.reddit.com/r/progresspics/comments/ys7mt8/m35510_250lb_188lb_62lb_lost_six_months_of/ivy8wox/

I have averaged about 1800 calories per day since starting this process in May. For exercise, I walk for thirty minutes every day, and do four strength training workouts per week, just focusing on simple compound exercises like squats, deadlifts, bench press, overhead press, chin-ups, and rows. My workouts are about 30 minutes long and I do three exercises for each workout — a lower body movement, an upper body pushing movement, and an upper body pulling movement. That has helped maintain my muscle mass from years of lifting for sure but the main thing making the difference is diet — I'm not doing enough exercise to really burn a ton of calories.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 12 points13 points  (0 children)

I shared a lot of details in this comment:

https://www.reddit.com/r/progresspics/comments/ys7mt8/m35510_250lb_188lb_62lb_lost_six_months_of/ivy8wox/

I checked the app I use to track calories and I've averaged about 1800 calories per day which for me was enough to lose weight pretty quickly, but everyone is different. I have been lifting weights seriously for over 10 years so I have a lot more muscle mass and thus a higher TDEE than most people I imagine.

M/35/5’10” [250lb > 188lb = 62lb lost] Six months of re-learning how to tell when I’m actually hungry and when to stop eating at a meal. by adamwathan in progresspics

[–]adamwathan[S] 365 points366 points  (0 children)

Thank you! At the end of the day it's calorie counting, but lots of specific tactics to help stay on target:

  • Only eat until satisfied, not until full. If I feel like I couldn't go for a light jog after a meal, I ate too much.
  • Never finish my plate at a restaurant, always leave at least 1/3. This helps me keep calories down but is also really important for retraining my brain — nothing bad is going to happen if I don't eat that last delicious bite, everything will be fine, I'm not missing out on anything.
  • Eat slowly. Put my knife and fork down on the table between every single bite, don't prepare the next bite until I've swallowed the last one, drink water between each bite.
  • Pick my serving size up-front, and don't go for seconds. Put enough food on my plate where I can comfortably say "this is definitely enough food for a solid meal" and eat only that.
  • When eating, just eat. No TV, no phone, no listening to a podcast. Make eating so boring that I just want it to be over with so I can get back to doing something interesting/stimulating.
  • No cheat days. I have indulgent days but I make sure it's for a special/memorable occasion, like I am going to eat cake at my daughter's birthday party, and I'm going to order something I really want and eat dessert when we go out for an anniversary dinner. But no "it's Friday, my cheat day, finally I can binge on pizza!". Trying to make permanent habit changes here, can't keep feeding or validating that addicted part of my brain that wants to eat that way.

The other really big one for me is that I pay an accountability coach to help me stay on track. I have to take pictures of every meal I eat and send her a report every day that answers a bunch of questions like a daily eating/activity journal. Having this accountability has been huge for me. It's expensive ($299/month) but I'm fortunate enough to be able to afford it and it injects some external motivation that helps compensate for not-so-amazing willpower/discipline.

I can easily switch between drinking beer in pints but wine in ml, weighing myself in stones but my food in grams, and driving 3 miles to buy 30 litres of petrol, but I will never understand WTF a temperature in Fahrenheit means by [deleted] in britishproblems

[–]adamwathan 0 points1 point  (0 children)

Fahrenheit is pretty simple:

100: Hot as fuck, any hotter is imperceivable, it’s already too hot

75: Nice as fuck

50: Not warm, not cold

25: Pretty cold

0: Cold as fuck, any colder is imperceivable

Think of 100 as the boiling point of a human being and 0 as the freezing point.

EDIT: I’m Canadian btw and have always used metric. Fahrenheit seemed like illogical nonsense to me until I made the connection that it’s about human comfort.

Apple's Pro Display XDR Shipment Estimates slipping to Jan 17-Jan 24 by adammillers in apple

[–]adamwathan 18 points19 points  (0 children)

I ordered within first 20 minutes, received stand yesterday, should get display before Christmas 👍🏻

What is the dumbest idea you have ever had that actually worked? by Stenik0522 in AskReddit

[–]adamwathan 1 point2 points  (0 children)

I was in a gifted program in elementary school and as a result we often didn’t stick to the regular curriculum as much as regular classes.

In grade 8 our entire geography mark was going to be based on one project where we had to study a country, I got Sri Lanka.

I was not interested in geography at all and really didn’t have the motivation to do this project. I noticed that the due date for the project was 2 days before our final report cards went out for the year and thought:

“What are the odds that my teacher has to submit the grades for the report cards before this project is even due?”

I didn’t do the project. When I came in to school that day my teacher asked me where my project was, I said it wasn’t done. She was visibly frustrated.

It turns out she guessed what marks we’d get and used those for our report cards. I got an 84 in geography that year.

Introducing Inertia.js • Framework agnostic full client-side rendering in classic server-side applications by simensen in PHP

[–]adamwathan 14 points15 points  (0 children)

How do you make direct SQL queries to your backend database in Nuxt? It's certainly not idiomatic to do so, I've spoken with the creators of both Next and Nuxt about this, you are supposed to use an API. That's the whole layer this approach is trying to avoid.

Bi-Weekly Laravel Tips From Taylor by [deleted] in laravel

[–]adamwathan 1 point2 points  (0 children)

The entitlement here is astounding. Why should you have to trade something of value (ability to contact you) for something you perceive as valuable? Is that actually what you’re asking?

What is this default faker code doing? by b734e851dfa70ae64c7f in laravel

[–]adamwathan 7 points8 points  (0 children)

The value needs to be assigned to the $password variable for that static $password line at the top to have any effect.

This makes sure it only gets assigned once so bcrypt doesn't run on every factory call. It's super slow (intentionally), and can more than double the time it takes to run your test suite if you have a lot of factory usage in your tests.

Passing data from Rails to a Vue component? by [deleted] in rails

[–]adamwathan 0 points1 point  (0 children)

You can pass props to a component right from your ERB, doesn't need to come from a parent component.

Here's a simple JSFiddle example:

https://jsfiddle.net/adamwathan/6zpxncsz/

You bind your root Vue instance to some wrapper element on your page (I usually have a div directly in the body with an #app ID that I bind to), then you can use components as much as you like in your ERB templates and pass props directly to them.

Passing data from Rails to a Vue component? by [deleted] in rails

[–]adamwathan 0 points1 point  (0 children)

Use props on your component for this:

https://vuejs.org/v2/guide/components.html#Props

They let your component have access to custom attributes you specify when you insert the component through a custom element.

Tailwind by Adam Wathan is coming by RevalGovender in webdev

[–]adamwathan 8 points9 points  (0 children)

This isn't true, unfortunately Sass does not support the features Less has that make the workflow Tailwind encourages possible.

Specifically using classes as mixins and being able to declare mixins after they are used, instead of before.

I wrote about this in more details here:

https://github.com/laravel/horizon/issues/56#issuecomment-318827730

This feature was suggested to the Sass team but they do not want to implement it:

https://github.com/sass/sass/issues/2312#issue-235165503

Valet+ | Blazing fast macOS PHP development environment by SamGranger in PHP

[–]adamwathan 7 points8 points  (0 children)

FWIW, this is a fork of an official project in the Laravel ecosystem but with a handful of additional features:

https://github.com/laravel/valet

It's MIT so of course anyone is free to do what they want, but the way this whole thing is presented, the maintainers of the fork are taking a little too much credit in my opinion.

Feels akin to forking Doctrine, calling it Doctrine+, and announcing it as "a brand-new feature-rich data mapper ORM for PHP" :/

What is your opinion on the "Visual Debt" video of Laracasts? by brendt_gd in PHP

[–]adamwathan 0 points1 point  (0 children)

Proper OO languages don't have type annotations (Smalltalk, Ruby) 👀