PHPNews

Bitbucket Pipeline

BitBucket has a nice feature call Pipelines [https://bitbucket.org/product/features/pipelines](https://bitbucket.org/product/features/pipelines) for $0 you can, even for private repos have a decent CI flow. > Private repos CI Pipeline $0!! It took a bit to get going though since the docs do not talk about PHP …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday September 18, 2018


Bitbucket Pipeline

BitBucket has a nice feature call Pipelines [https://bitbucket.org/product/features/pipelines](https://bitbucket.org/product/features/pipelines) for $0 you can, even for private repos have a decent CI flow. > Private repos CI Pipeline $0!! It took a bit to get going though since the docs do not talk about PHP …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday September 18, 2018


Laravel Filter Scope on a Model

So I find myself writing searchable pages that, via an API or what not, someone can filter the page by different fields on the model. ![](https://dl.dropboxusercontent.com/s/qm3semea1hzutuk/filter_example.png?dl=0) This can end up being a Controller class that does a lot of filters off the Request. Or it can be a …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday August 20, 2018


JSONEditor, Vue and Vuex

As I post [here](https://alfrednutile.info/posts/222) I wanted to use JSONEditor as a component. But with Vuex I was able to reduce the work quite a ton. ![](https://dl.dropboxusercontent.com/s/g8n5brbtjom1ulp/Screenshot%202017-11-02%2013.17.32.png?dl=0) Here is my store for the json_field: ``` export default { …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday August 20, 2018


Query Strings, Vue and Bootstrap Active Tab

In order to have the tabs and URL change as needed when the user lands on the page or clicks the tab I had to setup a few things. ![](https://dl.dropboxusercontent.com/s/bdawx8hl7gisijs/tabs.gif?dl=0) First I setup the Vue.js router as seen [here](https://alfrednutile.info/posts/244) Then my component will work …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Sunday August 19, 2018


Python3 Fixtures

Just a reminder using pickle I can easily make fixtures for testing. When I get results from AWS SDK for example I can just ``` import pickle with open("fixtures/describe_task_defination.pickle", 'wb') as fixture: pickle.dump(self.stored_state_to_save, fixture) ``` Then when I want to feed it back in my …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Saturday August 11, 2018


PHPStan Setup

There is a good episode here [https://www.phproundtable.com/episode/using-static-analyzers-to-improve-our-php-codebases](https://www.phproundtable.com/episode/using-static-analyzers-to-improve-our-php-codebases) that talks about this. The short of it is that it can easily catch some issues that your tests or IDE did …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Sunday August 5, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday July 30, 2018


Vuex External File

Setup Vuex with external file [https://vuex.vuejs.org/installation.html](https://vuex.vuejs.org/installation.html) But after this make a file in the `resources/assets/js` called `store.js` then set it up as needed Here I will have one loading state ``` export default { state: { loading: true, }, getters: …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday July 3, 2018


Dusk Screenshots to S3 of Failing tests

I can be really annoying to troubleshoot a failed test in Dusk when using CI systems. What I ended up doing was setting up my project to send these files to S3 on fail. Here are the steps ## Setup You App This is just S3 storage so make sure you have a bucket and a folder in the bucket to write to. Basically for …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday June 26, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday June 19, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Saturday June 16, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Wednesday June 13, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-t…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday June 12, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go ## Links This started it all [https://char.gd/blog/2017/how-to-set-up-the-perfect-modern-dev-environment-on-windows](https://char.gd/blog/2017/how-to-set-up-the-perfect-modern-dev-environment-on-windows) ## NPM and Composer install take a long time Some of this is the Windowsantimal…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday June 11, 2018


Windows Dev Box Try 2 2018

Going to list somethings as I go ## NPM and Composer install take a long time Some of this is the Windowsantimalware running. If you go to Windows Security -> Exclusion you can have it not search this folder. More info [https://blog.emsisoft.com/en/28620/antimalware-service-executable/](https://blog.emsisoft.com/…

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Monday June 11, 2018


Query Strings and VueJS

Quick way to make the url reflect the query string so the user can share the url and filters. This is component based VueJS building so not an SPA But I still install `"vue-router": "^3.0.1"` And load it ``` import VueRouter from 'vue-router'; Vue.use(VueRouter); ``` The on the component I set a watch on the …

Continue reading »

Written by Alfred Nutile RSS - - Aggregated on Tuesday May 8, 2018