quarta-feira, 27 de fevereiro de 2019

AWS S3 Upload file

using Amazon.S3;
using Amazon.S3.Transfer;
using System;
using System.IO;
using System.Threading.Tasks;

namespace Amazon.DocSamples.S3
{

    public class UploadFileMPUHighLevelAPITest
    {
        private const string bucketName = "your_bucket";
        private const string filePath = @"D:\mydata\s3_upload_text.txt";

        public void ExecS3()
        {
            try
            {
                AmazonS3Client lamcs3 = new AmazonS3Client("key", "secret_key",RegionEndpoint.SAEast1);
                var fileTrasnferUtility = new TransferUtility(lamcs3);
                TransferUtilityUploadRequest ltup = new TransferUtilityUploadRequest();

             
                ltup.FilePath = filePath;
                ltup.BucketName = "your bucket";
             
                //prod/teste.txt is direcotry and the name of the file I want s3_upload_text.txt to be stored.
                fileTrasnferUtility.Upload(filePath, "your bucket","prod/teste.txt");
            }
            catch(Exception ex)
            {
                Console.Write(ex.Message);
            }


        }

    }
}

terça-feira, 19 de fevereiro de 2019

Deep learning frameworks

Caffe/Cafee2
CNTK
DL4J
Keras
Lasagne
mxnet
PaddlePaddle
TensorFlow
Theano
Torch

segunda-feira, 3 de dezembro de 2018

MSDEPLOY - example 2


"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb=sync -source:package=C:\Deploy\Pacote\PacoteWebDesenv.zip -dest:contentPath=websitename,publishSettings=C:\Deploy\publish-profile\desenv\myproject-web.pubxml,userName=="LS-DEVELOPER\user.deploy",password="*******" -allowUntrusted -enableRule:DoNotDeleteRule


This is a result of trying to publish an angular website.

sexta-feira, 30 de novembro de 2018

MSDEPLOY - example


msdeploy -verb:sync -source:package="C:\Deploy\Pacote\XXXXX.zip" -dest:contentPath="[mysite.web]",computerName="the computer name",userName="your user",password="XXXX",authtype="Basic",publishSettings="C:\Deploy\publish-profile\desenv\example.pubxml" -allowUntrusted

example.pubxml
<?xml version="1.0" encoding="utf-8"?>
<publishData>
  <publishProfile
    publishUrl="https://ec0-00-000-000.sa-east-1.compute.amazonaws.com:8172/msdeploy.axd"
    msdeploySite="mysite.web"
    destinationAppUrl="http://dev.xxxx.com.br:80/"
    mySQLDBConnectionString=""
    SQLServerDBConnectionString=""
    profileName="Default Settings"
    publishMethod="MSDeploy"
    userName="your user" />
</publishData>


quinta-feira, 29 de novembro de 2018

Could not find module "@angular-devkit/build-angular" from "C:\\Program Files (x86)\\Jenkins\\workspace\\Desenv_Web".

Solution

npm install --save-dev @angular-devkit/build-angular

-----------

Error: Could not find module "@angular-devkit/build-angular" from "C:\\Program Files (x86)\\Jenkins\\workspace\\Lawsoft_Desenv_Web".
    at Object.resolve (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\core\node\resolve.js:141:11)
    at Observable.rxjs_1.Observable [as _subscribe] (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\architect\src\architect.js:132:40)
    at Observable._trySubscribe (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\Observable.js:44:25)
    at Observable.subscribe (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\Observable.js:30:22)
    at DoOperator.call (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\operators\tap.js:32:23)
    at Observable.subscribe (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\Observable.js:25:22)
    at C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\util\subscribeTo.js:22:31
    at Object.subscribeToResult (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\util\subscribeToResult.js:10:45)
    at MergeMapSubscriber._innerSub (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\operators\mergeMap.js:82:29)
    at MergeMapSubscriber._tryNext (C:\Users\jenkins-devops\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rxjs\internal\operators\mergeMap.js:76:14)