Archive for the ‘Dev enviroment’ Category

DEVOPS is a trend in IT sector, if you are Developer or System Administrator or even Tester all you had ear about DEVOp’s.

Even more important  our Bosses had also ear about and think is great and will solve everything in a couple of seconds.

For sometime i had work and was the architect of DEVOP’s sported projects i even had give mentoring related with this topic.

Last week i had been reviewing a book i would like i had read at the begining of my DEVOP’s road and i am sure is a great book to help the ones whos strating or deciding about DEVOP’s.

But even more important you can read for free the first 6 chapters that are the most important!

 

you can download it here https://azure.microsoft.com/pt-pt/resources/effective-devops/

 

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

 

 

 

I was get my development environment for a new project that as the goal to create a totally cross platform app.

This app will work on web and will also have a Android Mobile APP and a IOS Mobile APP.

Typically i would have a MACOS to compile the Mobile APP and this can also be usefull to test web developments on
MACOS browsers.

Since i am working on different client and offices this isn’t the best approach. I believe this question is also the question
some off my colleagues Developers and Architects have, so i would like to share with you the solution i end up implementing.

First i had to choose a Virtual Machine technology, in my case i already have Virtual Box on my machine and i choose to use that.

Then i generate a Virtual Machine from my MAC development machine, to use as hard disk of my MACOS development VM.

If you don’t have how to generate the VM, you have a downloadable vm at https://drive.google.com/drive/folders/0B-PSijxodhB1OUZlLURhLUYwS2s thanks to wikigain.com (i don’t know if it his total legal to use this).

Once you have the disk image on your pc, create a new Virtual Machine on Virtual Box and attatch the MACOS image as the disk of the VM.

In case you intend to use Xamarin like in my case don’t forget to grant that your physicall Windows Machine and the VM are at the same network subnet.

You have also a good tutorial about the usage of the MACOS image at the follow Wikigain video https://youtu.be/jojB18n50dU.

 

!!!Important note

For the ones who don’t want all this hard work or don’t have processing available for this i also recommend you to try https://www.macincloud.com/ a option that allow you to rent a MACOS in the cloud.