For me Bazzite has been the most reliable distro I have tried, mainly because a) most everything I need is pre-installed and configured and b) being atomic means updating is very reliable and simple to rollback if there is an issue.
Is it possible/advisable to use Laravel as the API backend to a BI tool like Superset or Metabase?
We have a Laravel web app with a pretty complicated data security layer in the Laravel code. I am trying to figure out how to give users a BI tool like Superset or Metabase but have the existing Laravel security code sit between the BI tool and the database serving up secured datasets. It seems like the BI tools support API data sources, but I'm not very familiar with them. I'm wondering if anyone has done something like this and how well it worked, pitfalls etc? Thanks.
Our users would like the ability to create their own reports and charts from our database. I've been looking at tools like Apache Superset, but the problem is we need to pass all data through our Laravel app's security layer as the security model of who should see what is pretty complicated. Are their any open source tools for doing this? Laravel Charts and Datatables both seem like they are for creating reports for your users, not letting them create them.
> I wish rents were priced fairly relative to comparable mortgages
I'm not sure where you're looking, but they usually are assuming you're looking the full cost of being a landlord: mortgage, down-payment opportunity cost, taxes, insurance, upkeep, and the owners time managing it all. Have you looked at just the mortgage on a 1.2M property?
Is it possible to call an artisan command from a non-laravel php app? I have a legacy Zend web application which uses it's own autoloader, and I'd like to call an artisan command. I was able to get it working by installing laravel alongside the app and using exec("php artisan <command>") but that spawns a new process and seems kinda hacky. I'd prefer to do an Artisan::call($command) but I have no idea how to get the environment laravel works. Any tips?
I don't see how it's a big deal when my API will accept a username and password
That's a little like saying "I don't see why I should bother with the seat belt, I'm only driving down the block". It's actually hard to predict what might happen in that short drive, and equally hard to predict who/what/how your code will be used in the future. So you do the little things that will move you from 99.9% sure there won't be a problem to 100% sure. One of Laravel's strengths is it doesn't just make good code possible, it makes it the path of least resistance, and little guardrails like fillable help make it that way.
Then when you pull the template you run it through a function to substitute the merge fields for real data or empty strings.
Is there some package or other way to do this so I don't have to write the substitution code myself? It's not a complex thing, but also feels like such a common pattern that it should be already implemented somewhere, which is why I jumped on the view blade functionality.
Using a database is a much cleaner solution. For example, the user wants to define the subject line and the content block. In the database that's just 2 columns, but if using the filesystem I'd still have to find a place to store the subject line.
they can execute all the code that they want on your server.
So you are saying that having access to the view blade lets you run anything you want? I though the whole idea of passing the rendering engine a view and a set of values to substitute into the view was to stop there from being code in your view.
I've done those exact same streams on a machine with a worse CPU, Ryzen 3 2200G, with Ubuntu, and it's worked fine without noticeably slowing the system down. I forget what browser or other performance settings I was using. You might try Chromium instead of Firefox. It won't be as CPU friendly as Windows though, and possibly substantially so. It's the fault of the browser makers not Linux, that's just how it is when you are 1% of their market share.
Saying virtual machine in the title is just confusing, you mean remote desktop. You can use Remina as a client to Windows RDP. If you want to game and happen to have an nVidia graphics card on the Windows box you can use Moonlight to connect to nVidia game streaming feature which works really well IME.
And once I understood that it was just a little googling to discover I needed to run the PHP server specifying a host of 0.0.0.0 for some reason. Adding it here in case anyone else is looking for the info:
Ah yes that was a great idea! If I launch the python server on the same port as the laravel server I can access it fine, so it's nothing to do with port forwarding or firewalls. The PHP server must have something in place to only be accessible locally, maybe fore security. Thank you!
Yes I can do the port forwarding for ssh and apache, then connect on both those guest services from the host. It seems like something specific to using the PHP built-in web server. Either that or it's something special about ports 22 and 80 that's letting me forward them and not others. I have been careful to make sure UFW (firewall) is set up correctly, but I wonder if Ubuntu has some other firewalling mechanism at play.
I have tried swapping the ports used but it didn't help, so I doubt it's anything special about 8000. Since I can port forward SSH and Apache to the host machine just fine it really seems like it's something specific to the PHP built-in webserver. I will check out Wireshark, thanks
Thanks but no that didn't change anything. Here is my new simplified for testing command with the changes you suggested, and it still picks up the .git dirs (and otherwise correctly includes the PHP files). Pretty sure the issue is that include '*/' pulls in all directories regardless, and perhaps I shouldn't care as it's still skipping the underlying files, but still I'd like it to only sync exactly what I want. Honestly rsync include/exclude syntax seems pretty broken, it shouldn't be this hard to say sync all *.php files in this dir tree.
Still using Emacs so I think I accepted that term long ago. There seems to be a trend in the last decade of always looking for the next great thing and never becoming proficient or happy with anything. I've even encountered some folks for whom it's a career to sound cutting edge in an interview but never produce much in real life because they are so busy looking at cool shiny languages and frameworks. What matters at the end of the day to me is providing value to users and thus the organization. Is it stable, well supported, easy to maintain, easy to hire for, etc are the questions to ask. Using those metrics, pick the best tool for the job. Of course looking at new languages and stacks is very worthwhile, but I think you want to wait until you see them garner a critical mass before adopting them. The trend I do think is reaching some critical mass is moving more code out of PHP and into javascript on the client, reducing PHP to a web service platform.
Has GPU pass-through gotten easier? Last I looked, several years back, you had to have a CPU that supported specific features, and possibly some other hardware requirements, and the setup was no picnic.
I have lots of experience with Linux gaming. It's great, we can play a lot of games, both natively and via Proton, but at the same time it severely limited compared to Windows gaming. Game Pass doesn't work at all on Linux. Epic and Twitch freebies often take work to get running if they will run at all. DRM stops some games from working. There is often a performance hit with Proton, and even sometimes natively.
I do dual boot, but that has it own challenges. For example, when I am working in Linux during the day I can't queue up a large download to play in the evening. So far dual boot is the best solution, but I am always looking for better options.
For me Bazzite has been the most reliable distro I have tried, mainly because a) most everything I need is pre-installed and configured and b) being atomic means updating is very reliable and simple to rollback if there is an issue.
How can anyone afford to run Claude 24/7?
Why do you care if AI was involved? If the guy is submitting code that regularly breaks, that's the problem, not their use of AI.
Is it possible/advisable to use Laravel as the API backend to a BI tool like Superset or Metabase?
We have a Laravel web app with a pretty complicated data security layer in the Laravel code. I am trying to figure out how to give users a BI tool like Superset or Metabase but have the existing Laravel security code sit between the BI tool and the database serving up secured datasets. It seems like the BI tools support API data sources, but I'm not very familiar with them. I'm wondering if anyone has done something like this and how well it worked, pitfalls etc? Thanks.
Our users would like the ability to create their own reports and charts from our database. I've been looking at tools like Apache Superset, but the problem is we need to pass all data through our Laravel app's security layer as the security model of who should see what is pretty complicated. Are their any open source tools for doing this? Laravel Charts and Datatables both seem like they are for creating reports for your users, not letting them create them.
> I wish rents were priced fairly relative to comparable mortgages
I'm not sure where you're looking, but they usually are assuming you're looking the full cost of being a landlord: mortgage, down-payment opportunity cost, taxes, insurance, upkeep, and the owners time managing it all. Have you looked at just the mortgage on a 1.2M property?
Is it possible to call an artisan command from a non-laravel php app? I have a legacy Zend web application which uses it's own autoloader, and I'd like to call an artisan command. I was able to get it working by installing laravel alongside the app and using exec("php artisan <command>") but that spawns a new process and seems kinda hacky. I'd prefer to do an Artisan::call($command) but I have no idea how to get the environment laravel works. Any tips?
Yeah that's what us devs do, but it's kinda messy for multiple testers/QA to use one mailtrap account.
That's a little like saying "I don't see why I should bother with the seat belt, I'm only driving down the block". It's actually hard to predict what might happen in that short drive, and equally hard to predict who/what/how your code will be used in the future. So you do the little things that will move you from 99.9% sure there won't be a problem to 100% sure. One of Laravel's strengths is it doesn't just make good code possible, it makes it the path of least resistance, and little guardrails like fillable help make it that way.
Is there some package or other way to do this so I don't have to write the substitution code myself? It's not a complex thing, but also feels like such a common pattern that it should be already implemented somewhere, which is why I jumped on the view blade functionality.
Using a database is a much cleaner solution. For example, the user wants to define the subject line and the content block. In the database that's just 2 columns, but if using the filesystem I'd still have to find a place to store the subject line.
So you are saying that having access to the view blade lets you run anything you want? I though the whole idea of passing the rendering engine a view and a set of values to substitute into the view was to stop there from being code in your view.
Great thanks for the info!
I've done those exact same streams on a machine with a worse CPU, Ryzen 3 2200G, with Ubuntu, and it's worked fine without noticeably slowing the system down. I forget what browser or other performance settings I was using. You might try Chromium instead of Firefox. It won't be as CPU friendly as Windows though, and possibly substantially so. It's the fault of the browser makers not Linux, that's just how it is when you are 1% of their market share.
Saying virtual machine in the title is just confusing, you mean remote desktop. You can use Remina as a client to Windows RDP. If you want to game and happen to have an nVidia graphics card on the Windows box you can use Moonlight to connect to nVidia game streaming feature which works really well IME.
And once I understood that it was just a little googling to discover I needed to run the PHP server specifying a host of 0.0.0.0 for some reason. Adding it here in case anyone else is looking for the info:
php artisan serve --host 0.0.0.0 --port 8000
Not sure what that does, but it works.
Ah yes that was a great idea! If I launch the python server on the same port as the laravel server I can access it fine, so it's nothing to do with port forwarding or firewalls. The PHP server must have something in place to only be accessible locally, maybe fore security. Thank you!
Yes I can do the port forwarding for ssh and apache, then connect on both those guest services from the host. It seems like something specific to using the PHP built-in web server. Either that or it's something special about ports 22 and 80 that's letting me forward them and not others. I have been careful to make sure UFW (firewall) is set up correctly, but I wonder if Ubuntu has some other firewalling mechanism at play.
I have tried swapping the ports used but it didn't help, so I doubt it's anything special about 8000. Since I can port forward SSH and Apache to the host machine just fine it really seems like it's something specific to the PHP built-in webserver. I will check out Wireshark, thanks
It's a VM so there is just the Host and Guest. Where else could there be firewalls? Also what do you mean "filters"?
Thanks but no that didn't change anything. Here is my new simplified for testing command with the changes you suggested, and it still picks up the .git dirs (and otherwise correctly includes the PHP files). Pretty sure the issue is that include '*/' pulls in all directories regardless, and perhaps I shouldn't care as it's still skipping the underlying files, but still I'd like it to only sync exactly what I want. Honestly rsync include/exclude syntax seems pretty broken, it shouldn't be this hard to say sync all *.php files in this dir tree.
rsync -aPh --include='*/' --include='**/*.php' --exclude='*' --dry-run <source> <dest>
Still using Emacs so I think I accepted that term long ago. There seems to be a trend in the last decade of always looking for the next great thing and never becoming proficient or happy with anything. I've even encountered some folks for whom it's a career to sound cutting edge in an interview but never produce much in real life because they are so busy looking at cool shiny languages and frameworks. What matters at the end of the day to me is providing value to users and thus the organization. Is it stable, well supported, easy to maintain, easy to hire for, etc are the questions to ask. Using those metrics, pick the best tool for the job. Of course looking at new languages and stacks is very worthwhile, but I think you want to wait until you see them garner a critical mass before adopting them. The trend I do think is reaching some critical mass is moving more code out of PHP and into javascript on the client, reducing PHP to a web service platform.
Has GPU pass-through gotten easier? Last I looked, several years back, you had to have a CPU that supported specific features, and possibly some other hardware requirements, and the setup was no picnic.
I have lots of experience with Linux gaming. It's great, we can play a lot of games, both natively and via Proton, but at the same time it severely limited compared to Windows gaming. Game Pass doesn't work at all on Linux. Epic and Twitch freebies often take work to get running if they will run at all. DRM stops some games from working. There is often a performance hit with Proton, and even sometimes natively.
I do dual boot, but that has it own challenges. For example, when I am working in Linux during the day I can't queue up a large download to play in the evening. So far dual boot is the best solution, but I am always looking for better options.
Because Linux is still lacking for gaming, and games need direct access to the hardware.