Visual Code for PHP development

Posted: November 8, 2018 in Anouncements

After Visual Studio, Visual Code is my favourite IDE.

Visual Code is quick, is clean is simple and very extensible. In the past months i had been working with PHP and the first things every Developer should grant is the enabling of debug actions on the IDE.

I discover today that the process is not none by everyone so i am posting youtube video from Lyall van der Linde that explians step by step what you need to do.

Full video on https://www.youtube.com/watch?v=a14kN2u5nEk

All the copy rights of this KB goes to Lyall van der Linde

Advertisements

js packages and security

Posted: October 15, 2018 in ECMAScript 6, javascript
Tags:

Nowadays JavaScript is on the top of the mind of everyone on Digital World. This humble language is something clients and developers follow and that is the main language for all the generation millennial of developer’s.

When JavaScript had scale to the podium of the top languages and being a language available to use on the forntend, on the backend and app level  package distribution had start to be a standard also.

NPM is the most common package manager used by JavaScript community. 6 months ago in a project where security was one of the main concerns i discover something i would like to share today.

If you can upload and modify packages is possible to have security breaches or the induction of attacks via js package. Since developers are bringing NPM or other source JavaScript packages they can been bringing also security themes.

That’s way i decided to write this post to help you with a clue off how to see if you can or not believe in one or more packages giving you a new best practice.

The best way to grant protection of the packages you are bringing on to the project, with identified package references at the package.json file is to check for security news of vulnerability.

If you are using a version older then the version 6 of NPM you should check package security using th efollowing trick.

  1. install the node security platform : ‘npm install -g nsp’
  2. wait for the installation of the package
  3. use nsp chck to grant that every module that is obtain by package and refered in the package.json is vulnerabilities free

If you are using Node 6 or a biger version, NSP had become built in feature, so you have a new command ‘npm audit’ that allow to make a security audit.

To run one off this method’s should be a recurrent task on a JavaScript project even if you are behind the trenaches of a framework (React, Angular, Vue.js)

If you are using a compiler or a DEVOPS with autonation process you should include this validation in the built of the solution.

 

 

In the last months i had been working on a project that had require that to solve some issues to build a lot off simple tools to help us achieve a new milestone.

Today i had a new simple need and find a lot of troubles to get an answer. I had just to copy some images to a new folder from a vast universe.

This little tool should run on a production server. Powershell comes to the rescue, but i had a lot off trouble to get a spinet for my problem.

So here the way i solve this:

1st: identify the files i want to copy and get a kind off database for that, we had create a CSV file for that with the following struture

YourFileName
2.docx
4.docx
n.docx

n+many.docx

2st create a folder where i will save the copying files

3st Iterate for each line of the YourFileName column and copy each file for the destiny folder

what i need to know to do this:

  • How to load the CSV file fot powershell consumption, this can be made by the command ‘Import-Csv fileList1.csv’ this will load into memory the whole file
  • How to read each line, since we had the need to create a cycle we can use the following instruction ForEach { }
  • Define the intended action for each row in the CSV file

The result of this comes in the fantastic line of code

Import-Csv fileList1.csv | ForEach {Copy-Item “c:\AllFilesUniverse\$($_.YourFileName)” f:\SelectedFiles }

We now just have to open the Windows powershell

and execute or command, a special attention in order for the command work we should runit on c:\ otherwize we need to put the full path for the csv file

 

 

 

Today I’ receive the awarded of Microsoft MVP, it was like in the first time it happen, a fantastic sensation of work done and many plans to continue the work the innovation and technical mentoring, hands on of communities, clients, colleagues and of course students.

I would like to make a special thanks to my wife for all the patient and inspiration, I know isn´t easy to ear all the technical discussions to see me always trying to implement another geek plan. To my daughter for all the inspiration from the top of her 3 years, she had help me a lot to refresh the children in me. And we all know how much childness we have to be. To the rest of my heroes a big thanks and this heroes are my family that are always investing in me.

A thanks also to all the technical, business, design and educational teams who had work with me this year. From the different companies I had represent but special to the one who had work close to me in the past year. Also a special thanks to the clients with I had work who had help me dealing with real challenges and bring the result of that to the communities.

To all the MVP’s special the old ones who keep having all the patient to help me out, and to ear me, you are my role models (even more special the Portuguese yes I am saying thanks to you coach 😉)

To the Microsoft employees that had help me with my question, special to our MVP lead and his crew.

To all the technical mentees and startups, each day you make me prouder.

To my students who come with the questions I woud never ask and that allow me to grow (and if you are reading this 😊 we are waiting for you at the communities).

To all the Communities, Foruns, meetups and places where I had learn so much this year and that have give me the opportunity to share my ideas in speaking sessions.

This Award is off all you that I had mention, together we are a team and this award represent us as a team.

I hope I can make you proud of our road. And of course thanks Microsoft for remembering me once again.

Another year and double challenges we have a lot to do to learn and to share 😊

THANK YOU ALL!

PWA choices

Posted: May 23, 2018 in Anouncements, PWA
Tags: ,

For the last years i had been talking and experimenting some theorical PWA development, in my market PWA had been until a few weaks.

Today o had read a fantastic article about PWA choices from Smashing magazine and i thisnk would be very important to note that and share with the ones who had interest in this topics

https://www.smashingmagazine.com/2018/02/native-and-pwa-choices-not-challengers/

All the merit to Smashing magazine and Aaron for the fantastic article.

 

 

“In computing, reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change.
This means that it becomes possible to express static (e.g. arrays) or dynamic (e.g. event emitters) data streams with ease via the employed programming language(s), and that an inferred dependency within the associated execution model exists, which facilitates the automatic propagation of the change involved with data flow.”

Wikipedia

Many of you know me as the .net guy or the Angular Guy, but what i always say is we should consider and understand the problem and his
ramifications before you go to the technical stack or ecosystem.

And that had bring me in to two projects where mobile and cross platform was a topic and that the interface was must reactive.
The best toolset for that would be React Native and that was the solution, every one who knows me no how i make the choice and why i
choose so many times Angular or View over Angular, but that would be another post.

The buttom line is that i have launch 2 mobile projects powered by React Native one with a team and another as one man show and have deliver also some SPA’s in React.js.

 

God knows how much i think React is powerfull and how many times i say that not always having a good use especially in teams.

React is one off that technologies to easy and quick to enter, and many times difficult to make a right use.

That´s why after many requests i will launch soon a workshop where i will teach everything i had learn and the best pratices i have.

So keep tone and i hope soon to bring you all my trenches lessons of react.

And will be great to see the comparation, wins and lost of different toolsets to same problems, and how to excel with web development 🙂 of you around Portugal i hope to see you on

“React Foundations” from the trenches 32 hours of no bullshit or marketing but straight on real world training

Fake Rest services for POC

Posted: April 23, 2018 in React, React Native
Tags:

Many of us when entering in a new technology, or to prototype some concepts had allways an issue that many times make new projects
born inside a project. Sometimes this is good but most of the times thi mines a lost off focus and if the goal is just learn a new
Library or technology of frontend or integration, dealing with the backend can make things last longer.

 

In my Workshops, study projects R&D and prototypes i am having one off tree approaches, that i would like to share with the
community, because they had been a good bet until now.

– Azure Hub Services: For a quick creation of a backend and to have some struture on the cloud;
– Firebase: A recent aquisition, and had been very impressive. This SAS is very easy to costumise and real cheap.
For classroms until now has been a gooda approach;
– Fake Services: Using generic Services created once for the effecta and reused. I have some solution on Azure Hub Services, based on
different topics like Movies, Contacts and Photo Galleries created for reuse. Other approach is https://jsonplaceholder.typicode.com.

https://jsonplaceholder.typicode.com is great for tests and it is already on the web and from every local you can use it.

 

All image copyrights to his author

In Example right now i am looking to the sea and building a propousal with a demo part, this react native demo. This need of puting a
real functional demos had born from a phone call. And this is the kind off challenge where time will be all. https://jsonplaceholder.typicode.com
is saving me. In the next hours i will only focus on the build off the frontend demo part, since i am out off the office and backend
is something not important for know. This approach can save your day.

I hope this post is usefull for you.

Cya