Archive for the ‘Development Tools’ Category

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

 

 

 

Advertisements

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.

As technical speaker one of the places where i love to go back from time to time, is to NePonto community stage.

This was the first community where i start to collaborate initial not as speaker but as audience and chating with our pals.

From time to time i have the pleasure to go back to this stage to share some ideias and bring to the community  some off the presentation i have prepared for training and bootcamps where i have the role off technical trainer and speaker.

This session will be dedicated to Angular and what i had learn from the projects i had done with Angular and Microsoft technologies, but also what comes from the R&D pilots i had done for the last 2 years.

Another interesting thing will be to share the stage with my good friend and hoster of  NetPonto community Nuno Cancelo. Nuno is someone who have a lot to teach and has a funny way to present things.

Come join us and bring your cap. to register follow the link http://netponto.org/reuniao/76a-reuniao-presencial-da-comunidade-netponto-em-lisboa/

 

Is one off the best times to start with the Cross Platform APP if you are a .Net core developer or if you need to build LOB or cross platform apps.

Not only the Mono touch had become a Framework with full support to all the Mobile challenges today, but also is one-off the few platform that allow us to have full integrated a continuous development test and deliver system

 

xamarindev

If this is all new for you take a look at the follow links to learn what’s happening in Xamarin Devop’s field:

https://msdn.microsoft.com/magazine/mt767694

http://bit.ly/2cJG195

For these days Xamarin is also asking his experts to take development message and to share their knowledge around the world in a coordinated by Xamarin world wide event.

You can see when is your city time at:

https://www.xamarin.com/dev-days

In Portugal, Lisbon is the hoster for the event and i will had the pleasure to speak about Xamarin Forms,a technology that have been one excellent tools in my freeller live and in some apps i had launch in the past and had been also a important tool on the company where i work.

Here you have the direct link to the event

https://ti.to/xamarin/dev-days-lisbon

if you are in Lisbon don’t louse your chance to have the afternoon hands lab with some off the market experts in corss platform development field.

 

Soon i will bring you more informtion off what i had been discovering and playing lately, until then there is some clues.

Today i had to run again on my local machine some WordPress instances to find a bug and preview an integration with some services.

lamp_stack

image credits to shravam15.wordPress.com

Since the motivation is to have a quick development enviroment and at the time i had no access to the cloud VM’s and since creating WordPress solotions over IIS dangerous and tricky.
I had gone to one off my favourite tools for quick Lamp enviroments on a Windows Operating System :

xamp-downloads

By default Xampp uses siome ports and is always a fight to remember where we have to change things, that’s the reason for this digital note.

First we have to change the default ports used by the diferent tools that Xampp had embebed.

xampp-dashboard

For demonstration i will show how to change the Apache ports, since for cross platform and technologies developer’s like me may have as major issue (granting that IIS, Visual studio
and Apache both run on the same machine) In case off apache you should change the configurations on appache Conf file.

Go to the Xampp installation directory (in my case d:\Xampp) and find the apache path \apache\conf here choose the file httpd.conf and edit the following key values:

Key File Line Number Description
Listen 58 port where Apache is listening Web Requests
ServerName 221 in the case you din’t have a DNS you define how Apache can be found

This solve the problem off Apache.

To grant that also the XAMPP Control Panel Admin button is loking also to the right port We need to interact with the configurtion file off Xamp interface. This is done on the xampp-control.ini File on the section [ServicePorts] (in our case we are changing the port to 8080).

serviceports

Now we can have Xampp running Apache in a different port, the changes need to made to change MySQL and other services port is similar. I hope this post can be off any help if you fall in some stuck conner with Xampp configuration feel free to contact me maybe we can help you with our previous experience.