aem99

aem99

Member Since 9 Months Ago

Experience Points
10,580
Total
Experience

4,420 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
96
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 3
10,580 XP
Sep
07
1 week ago
Activity icon

Replied to Distance Calculations Between 2 Addresses

@bobbybouwmann Just had a look into their website, it's all messed up. Hardly was able to sign up for a token. Tried their documentation as well and can't read a thing. Tried both Safari and Chrome. Is it showing fine for you? and if it's, what browser?

Sep
06
1 week ago
Activity icon

Started a new Conversation Distance Calculations Between 2 Addresses

Hi,

This is not a Laravel specific question, sorry if that's not allowed. I am trying to implement a feature that calculates the delivery fee based on the distance between pick-up point the the delivery point. I researched the topic for the past few days and found 2 options:

  • Use google Distance Matrix API
  • Use google geo coding api and manually calculate distance using coordinates

Given that I only need the distance, the distance matrix api seem to be a little bit of overkill as it returns so much information I don't need (and will be paying for if I decide to use it). And I don't think the geocoding option is accurate enough (+ the driving distance makes more sense for me anyway).

The other question I am trying to answer is should I be caching these information? Had a quick look into Google's pricing and it can get very expensive very fast. Not sure how would I go about caching these efficiently, efficient being the keyword here.

I am not sure if someone was faced with that problem before, but I am just looking for inspiration/ideas. So any input is welcomed.

Thanks!

Aug
05
1 month ago
Activity icon

Replied to Laravel Queues With SQS

@bobbybouwmann So far it didn't happen again, so I am guessing that it was fixed. Thank you so much for your help, that issue was driving me nuts.

Jul
27
1 month ago
Activity icon

Replied to Laravel Queues With SQS

@bobbybouwmann Didn't know that cron runs in parallel, thought it's a simple polling program. This actually makes a lot of sense. I will update and test for the rest of this week and update this thread then. Thanks a lot for your help so far.

Jul
26
1 month ago
Activity icon

Replied to Laravel Queues With SQS

@bobbybouwmann So I have a console command that's being called every minute with cron. The actual email sending part is this

logger("--------------- Notification id: {$notification->id}. Menu id: {$notification->menu_id} ---------");

        foreach ($customers as $customer) {
            logger("email: {$customer->email}, id: {$customer->id}");
            //send out email
            $email = new $emailType($menu, $cook_profile, $customer);
            \Mail::to($customer)->send($email);
        }
        logger('--------------------- Notification Done -------------------');

The $emailType is just a value stored in the notification table. So as you can see I am logging every single user the notification is being sent to. I have double checked that the user is not being sent the email more than once, the the actual notification record is not processed more than once. So that means the email is being queued only once. An example of the email class is this

class MenuOpen implements ShouldQueue
{
    use Queueable;

    public function __construct()
    {
        ///
    }

    public function build()
    {
        ///
    }
}
Jul
23
1 month ago
Activity icon

Replied to Laravel Queues With SQS

@bobbybouwmann I have one queue and one SQS connection. I am having a weird problem where messages are being processed more than once on a regular basis. I have made sure that the message is being queued only once by the application. I have looked through the queue log file looking at the job id, and doesn't seem to have any duplication.

The problem only happens for email jobs, so my first thought was that the timeout period could be too short for the email to be generated and sent. But the timeout period is 30 seconds which should be more than enough + there's not a single failed job in the queue log file.

@martinbean I don't want to repeat jobs, I was asking just in case sqs was not reliable and I wasn't aware of that.

I have looked into everything I could think of, and couldn't find any problems, so any ideas are welcome.

Jul
19
2 months ago
Activity icon

Started a new Conversation Laravel Queues With SQS

Hi,

I just have a quick question, if Laravel queue workers is used with SQS normal queue, is there a possibility for messages being processed twice? And if the answer is yes, any ideas about how to approach that problem?

Thank you!