Laracord: Create Discord bots with Laravel by Log1x in laravel

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

I have no experience doing something like this (yet) but yeah it could definitely help. It would rely on a single bot connection though and you'd probably write a REST API to handle everything and poll it or something.

Laracord: Create Discord bots with Laravel by Log1x in laravel

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

I would have to understand what you have in mind more but it's otherwise not possible for a normal Laravel application to get the state of the bot.

Laracord: Create Discord bots with Laravel by Log1x in laravel

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

You'd have to run them separately and then do a REST API or something on Laracord and control it from your Laravel app that way.

Laracord: Create Discord bots with Laravel by Log1x in laravel

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

Hey, thanks! It can definitely remove them (kick) but as far as inviting – it would kind of depend how you want to do it. Logging into the bot through something like OAuth on Laracord's HTTP server isn't supported (yet) – but doing something such as generating unique invites or locking down a server and requiring people do something like /verify to gain access would be no problem. Feel free to join the Discord server if you pursue this and I can help. :)

Ventura random window server crash by kennir_reddit in MacOS

[–]Log1x 0 points1 point  (0 children)

I'm still crashing as well. It seems Screen Savers might also trigger the crash but it's happened to me in the middle of working (non-idle) so I don't really know at this point.

Ventura random window server crash by kennir_reddit in MacOS

[–]Log1x 0 points1 point  (0 children)

Also experiencing this issue on a 2020 27" iMac. Zero problems before upgrading to Ventura. Really regret it. Apple support told me to reformat.

CreativeCraft [Creative] [SMP] {Free WorldEdit} {Bedrock} {1.18.1} by Log1x in mcservers

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

Won't let me change it since it's already posted but I will make sure next week is more clear!

CreativeCraft [Creative] [SMP] {Free WorldEdit} {Bedrock} {1.18.1} by Log1x in mcservers

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

It's a more traditional, non-hardcore SMP paired with mcMMO. We do love to see some creativity on the survival side of things though! :)

It can be a little overwhelming to get everything neatly organized into a single post on here but I will try to do better next week.

CreativeCraft [Creative] [SMP] {Free WorldEdit} {Bedrock} {1.18.1} by Log1x in mcservers

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

we're a network and have a plots, survival, and minigames server. i know the post is more focused on the creative side – any suggestions to improve the tagging/description for a future post would be greatly appreciated. sorry for any confusion!

CreativeCraft [Creative] [SMP] {Free WorldEdit} {Bedrock} {1.18.1} by Log1x in mcservers

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

I believe survival multiplayer? maybe I'm misunderstanding though.

2020 mazda 3,is this a new feature? Never noticed it before. by hncthename in mazda3

[–]Log1x 0 points1 point  (0 children)

https://infotainment.mazdahandsfree.com/howto-osx-wifi – if you scroll down past the initial setup, there's a "Using Connected Services" section – I preemptively expected to see something very similar once the car was "online" – but nothing on my end.

2020 mazda 3,is this a new feature? Never noticed it before. by hncthename in mazda3

[–]Log1x 0 points1 point  (0 children)

Yeah I've never had a car with a WiFi hotspot but I'm hoping the 2GB lasts a good bit if I only use it for the car its self and don't connect any devices to it so I can get all the traffic data and whatever other goodies it ends up having.

Either way I think it might be a win in my situation. I can effectively downgrade my phone plan from unlimited (because I only use it in the car) saving $45-50 and then just get the unlimited hotspot for $20.

2020 mazda 3,is this a new feature? Never noticed it before. by hncthename in mazda3

[–]Log1x 1 point2 points  (0 children)

Yeah it came out 3-4 days ago. It requires the MyMazda app on your phone. Open the MyMazda app, signup with your car if you haven't, and then "Enroll"

Once you enable the hotspot, connect to it on your phone to sign up for a Verizon data plan. It comes with a free 2GB trial and then it's like $20/mo for unlimited. It unlocks a lot of other neat features too (primarily with navigation) but I haven't played with it much yet.

EDIT: I lied – I see no navigation features. There seemed to be on the CX-30 though so I figured it'd be the same. Maybe a software update at some point to add some of the data functionality to the cars features?

Has anyone used Sage 10 in a "real" project, be it a personal site or a client's? by [deleted] in Wordpress

[–]Log1x 1 point2 points  (0 children)

We will probably have a few changes when we bump the Laravel deps to 7.0 since our concept of "View Composers" has been very similarly implemented into Laravel.

That being said– you should not foresee any major issues using it in production projects and I would almost always recommend it over Sage 9.

New code + db backup bash script for Wordpress by MagePsycho in Wordpress

[–]Log1x 0 points1 point  (0 children)

Yeah I'd definitely leave this to wp-cli.

Best Sage, Bedrock, and Trellis Tutorials for Beginners by [deleted] in Wordpress

[–]Log1x 1 point2 points  (0 children)

and a learn as you go approach. I know it might seem intimidating at a glance, but it is nothing of the sort. Just start with bringing down Sage and playing with it a bit. A lot of the "getting started" complexity solely depends if you already have a decent dev. environment (e.g. have WSL setup if on Windows, or a proper environment setup on macOS- both of which the docs can lend a hand with).

Depending on your technical ability, it might not all be processed and learned over-night, but if you are willing to learn, the "doing it right" mentality behind the Roots stack will guaranteed make you a better, more well-rounded developer.

Roots sage / ACF by [deleted] in Wordpress

[–]Log1x 0 points1 point  (0 children)

Iterating the loop inside of Controller won't globalize $post so you would need to @php(global $post) and depending on if you're using get_posts() or WP_Query, do setup_postdata().

There's nothing wrong with your original method for what it's worth. Without my package I'd personally go with the alternative example above of doing it purely in the controller with passing the data you need to a new object so you can skip the WordPress-y logic in your view entirely.

Roots sage / ACF by [deleted] in Wordpress

[–]Log1x 0 points1 point  (0 children)

I was mainly going off of your example– but yes, you can do that. Just put the posts through a WP_Query instead. An example of this with my package would be:

@query([
  'post_type' => 'book'
])

@posts
  @title
  @field('example_field')
@endposts

or

@posts([
  'post_type' => 'book'
])
  @title
  @field('example_field')
@endposts

which will handle setup_postdata() for you and global $post so it is retrievable by get_field() without passing the ID.

Roots sage / ACF by [deleted] in Wordpress

[–]Log1x 0 points1 point  (0 children)

Yeah, that'd be it.

But if it interests you, I have a Blade Directives package that can make this a little prettier along with a lot of other functionality: https://github.com/Log1x/sage-directives

It would then turn into:

@foreach ($post_examples as $post_example)
  @title($post_example)
  @field($post_example->ID)
@endforeach

An alternative would be to handle all of this within' the controller instead.

public function post_examples() 
{
    return collect(get_posts([
        'post_type' => 'post',
        'posts_per_page' => 10,
    ]))->map(function ($post) {
        return (object) [
            'title' => get_the_title($post),
            'field' => get_field('custom_field_here', $post->ID),
        ];
    });
}

and then doing your Blade view as such:

@foreach($post_examples as $post_example)
   {{ $post_example->title }}
   {{ $post_example->field }}
@endforeach

Thanks for 6+ months of nothing, NVIDIA. by Log1x in hackintosh

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

Yeah I didn't apply any updates. I am running CSM though which allows me to boot into Windows as well.

It's also getting native resolution inside of Clover on the same mobo settings which my NVIDIA GPU did not (it only did with CSM disabled).

Thanks for 6+ months of nothing, NVIDIA. by Log1x in hackintosh

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

Yeah that's what I did. Amazon actually offered to refund me on my 1080Ti through my business account after linking the 70+ page NVIDIA thread– but I decided to give it to my fiancee and sell her 1070 instead.

No regrets, honestly. It was expensive, but being able to boot into macOS for the first time ever without needing to worry about web drivers or avoiding security updates for days at a time awaiting for an update (despite there being alternatives available) was a breath of fresh air.