<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Camilo Baquero | Data and Cloud on Medium]]></title>
        <description><![CDATA[Stories by Camilo Baquero | Data and Cloud on Medium]]></description>
        <link>https://medium.com/@camilooob?source=rss-91d786de6b14------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sSoJZfTHHqoHIFHMaUFBtQ.jpeg</url>
            <title>Stories by Camilo Baquero | Data and Cloud on Medium</title>
            <link>https://medium.com/@camilooob?source=rss-91d786de6b14------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:56:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@camilooob/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying Go Lambda Functions with AWS CDK with GO: A Step by Step Guide]]></title>
            <link>https://medium.com/@camilooob/deploying-go-lambda-functions-with-aws-cdk-with-go-a-step-by-step-guide-721741e7b1b7?source=rss-91d786de6b14------2</link>
            <guid isPermaLink="false">https://medium.com/p/721741e7b1b7</guid>
            <category><![CDATA[aws-cdk]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Camilo Baquero | Data and Cloud]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 17:54:12 GMT</pubDate>
            <atom:updated>2025-01-24T17:54:12.158Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GOBzYZWMMjYnQDYXeNfJ3w.png" /></figure><p><strong>Step 1: Install AWS CDK and Create Project Directory</strong></p><p>Before you can start building your infrastructure with AWS CDK, you need to install the AWS CDK toolkit globally on your machine. Additionally, you’ll create a dedicated directory for your project to keep all related files organized.</p><pre>npm install -g aws-cdk<br>mkdir golangworld<br>cd golangworld</pre><p><strong>Step 2: Initialize a New CDK App with Go Language</strong></p><p>Initialize a new AWS CDK application configured to use the Go programming language. This sets up the necessary project structure and configuration files. The cdk bootstrapcommand prepares your AWS environment by setting up the required resources that the CDK needs to deploy your app.</p><pre>cdk init app --language go<br>cdk bootstrap --show-template &gt; my-bootstrap-template.yaml</pre><p><strong>Step 3: Set Up the Golang CDK Application</strong></p><p>This step involves defining your CDK stack in Go. You’ll create a new Go file (golangworld.go) where you&#39;ll specify the AWS resources your application will use, such as S3 buckets and Lambda functions. The code sets up an S3 bucket and a Lambda function that interacts with it.</p><pre>//golangworld.go<br>package main<br><br>import (<br> &quot;github.com/aws/aws-cdk-go/awscdk/v2&quot;<br> &quot;github.com/aws/aws-cdk-go/awscdk/v2/awslambda&quot;<br> &quot;github.com/aws/aws-cdk-go/awscdk/v2/awss3&quot;<br> // &quot;github.com/aws/aws-cdk-go/awscdk/v2/awssqs&quot;<br> &quot;github.com/aws/constructs-go/constructs/v10&quot;<br> &quot;github.com/aws/jsii-runtime-go&quot;<br>)<br><br>type GolangworldStackProps struct {<br> awscdk.StackProps<br>}<br><br>func NewGolangworldStack(scope constructs.Construct, id string, props *GolangworldStackProps) awscdk.Stack {<br> var sprops awscdk.StackProps<br> if props != nil {<br>  sprops = props.StackProps<br> }<br> stack := awscdk.NewStack(scope, &amp;id, &amp;sprops)<br><br> // Create S3 bucket<br> //awss3.NewBucket(stack, jsii.String(&quot;Hol&quot;), &amp;awss3.BucketProps{<br> // Import existing S3 bucket<br> bucket := awss3.Bucket_FromBucketName(stack, jsii.String(&quot;ExistingWorldDataBucket&quot;), jsii.String(&quot;world_data_5328&quot;))<br> // Create Lambda function<br> awslambda.NewFunction(stack, jsii.String(&quot;main&quot;), &amp;awslambda.FunctionProps{<br>  Code:         awslambda.Code_FromAsset(jsii.String(&quot;lambda&quot;), nil), //folder where bootstrap executable is located<br>  Runtime:      awslambda.Runtime_PROVIDED_AL2023(),<br>  Handler:      jsii.String(&quot;bootstrap&quot;), // Handler named bootstrap<br>  Architecture: awslambda.Architecture_ARM_64(),<br>  Environment: &amp;map[string]*string{<br>   &quot;BUCKET_NAME&quot;: bucket.BucketName(),<br>  },<br> })<br><br> return stack<br>}<br><br>func main() {<br> defer jsii.Close()<br><br> app := awscdk.NewApp(nil)<br><br> NewGolangworldStack(app, &quot;GolangworldStack&quot;, &amp;GolangworldStackProps{<br>  awscdk.StackProps{<br>   Env: env(),<br>  },<br> })<br><br> app.Synth(nil)<br>}<br><br>// env determines the AWS environment (account+region) in which our stack is to<br>// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html<br>func env() *awscdk.Environment {<br> // If unspecified, this stack will be &quot;environment-agnostic&quot;.<br> // Account/Region-dependent features and context lookups will not work, but a<br> // single synthesized template can be deployed anywhere.<br> //---------------------------------------------------------------------------<br> return nil<br><br> // Uncomment if you know exactly what account and region you want to deploy<br> // the stack to. This is the recommendation for production stacks.<br> //---------------------------------------------------------------------------<br> // return &amp;awscdk.Environment{<br> //  Account: jsii.String(&quot;123456789012&quot;),<br> //  Region:  jsii.String(&quot;us-east-1&quot;),<br> // }<br><br> // Uncomment to specialize this stack for the AWS Account and Region that are<br> // implied by the current CLI configuration. This is recommended for dev<br> // stacks.<br> //---------------------------------------------------------------------------<br> // return &amp;awscdk.Environment{<br> //  Account: jsii.String(os.Getenv(&quot;CDK_DEFAULT_ACCOUNT&quot;)),<br> //  Region:  jsii.String(os.Getenv(&quot;CDK_DEFAULT_REGION&quot;)),<br> // }<br>}</pre><p><strong>Step 4: Create Directory for Lambda Function</strong></p><p>Create a dedicated directory for your Lambda function’s code. This separation ensures that your function code is organized and easily maintainable. Inside this directory, you’ll create the main Go file for your Lambda function.</p><pre>mkdir lambda<br>cd lambda<br>touch main.go</pre><p><strong>Step 5: Define the Lambda Function in Go</strong></p><p>Write the code for your Lambda function in Go. This function is a simple handler that returns a greeting message. It’s structured to work with AWS Lambda’s Go runtime, handling incoming requests and returning responses in the expected format.</p><pre>// lambda/main.go<br>package main<br><br>import (<br> &quot;context&quot;<br> &quot;github.com/aws/aws-lambda-go/lambda&quot;<br>)<br><br>// Define the structure of the response payload<br>type Response struct {<br> Message string `json:&quot;message&quot;`<br>}<br><br>// Handler function returns the Response struct v2 camilo<br>func handleRequest(ctx context.Context) (Response, error) {<br> return Response{Message: &quot;Hello, Hi im fuck 2025 Lambda!&quot;}, nil<br>}<br><br>func main() {<br> lambda.Start(handleRequest)<br>}</pre><p><strong>Step 6: Build the Lambda Function for Deployment</strong></p><p>Compile your Go Lambda function for the Linux AMD64 architecture, which is compatible with AWS Lambda’s execution environment. The compiled binary is named bootstrap, which is the default handler name expected by the Lambda runtime when using the provided runtime.</p><pre>cd lambda<br>GOARCH=amd64 GOOS=linux go build -o bootstrap main.go</pre><pre>cdk configure<br></pre><p><strong>Step 7: Synthesize the CloudFormation Template</strong></p><p>Generate the CloudFormation template from your CDK app. This template is a JSON or YAML file that AWS CloudFormation uses to provision the resources defined in your CDK stack. Reviewing the synthesized template can help you understand the infrastructure that will be deployed.</p><pre>cdk sysh</pre><p><strong>Step 8: Deploy the Stack to AWS</strong></p><p>Deploy your CDK stack to your AWS account. This action provisions all the defined resources (like S3 buckets and Lambda functions) in your AWS environment. Ensure that your AWS CLI is configured with the necessary permissions to perform deployments.</p><pre>cdk deploy</pre><p>Step 9: Invoke the Deployed Lambda Function</p><p>After deploying, you can test your Lambda function by invoking it directly using the AWS CLI. This command executes the function and saves the response to a file named response.json.</p><pre>aws lambda invoke --function-name namelambda response.json</pre><p>Congratulations, with these simple steps you have already deployed your lambda functions using CDK with GO.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=721741e7b1b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up GitHub with SSH on macOS and Linux (No HTTP Needed)]]></title>
            <link>https://medium.com/@camilooob/how-to-set-up-github-with-ssh-on-macos-and-linux-no-http-needed-490a6958ad0b?source=rss-91d786de6b14------2</link>
            <guid isPermaLink="false">https://medium.com/p/490a6958ad0b</guid>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Camilo Baquero | Data and Cloud]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 17:25:48 GMT</pubDate>
            <atom:updated>2025-01-24T17:25:48.293Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*yY-r2qtod8iPbzPv" /></figure><p>Git is a version control software of that was design by Linus Torvals. From the outset, it was intended to function as a low-level software, with others taking care of design the graph user interface.</p><p>However, today Git is a version control software that is 100% meant for users on the terminal or shell. It’s true that many GUIs exist for Git, but in this post we focus in shell in Linux and Mac.</p><p>In summary, Git is a Tool and GitHub is a web service that uses Git. Other services similar to Github include Bitbucket, Gitlab.</p><p>Install a Git in Linux is very easy. Open you terminal, the installations process might vary depending on you version of Linux.</p><pre>git --version</pre><p>If you get an answer like git version x.x.x. You alredy have Git installed. But if get something like “git command not found” follow this command to install git.</p><pre>sudo apt-get install git</pre><p>Install Git (Mac) with brew:</p><pre>brew install git</pre><p>This instructions are the same for Linux and Mac. We need to set up GIT with your username and email. It’s crucial that the email is the same as the one you used to set up your Github account to avoid conflicts.</p><pre>git config --global user.name &quot;you_user&quot;</pre><pre>git config --global user.mail &quot;email@email.com&quot;</pre><p>Now, you are ready to use GIT from your local compute, but the true power of GIT comes from the collaborative work in a distributed form. The perfect platform for using Git is Github. Now we need connect our local Git with Github.</p><p>In this tutorial we will use SSH connection. This has several advantages like:</p><ul><li>Only need set up login once.</li><li>No need to type user and password in console each time you make a commit.</li><li>Better security and performance that HTTPS connections.</li><li>Can user one SSH key for each device that config with you account.</li></ul><p>You need to create a public key and private key. First, check if the SSHt folder exists on your computer:</p><pre>ls -a | grep .ssh</pre><p>If .ssh is the answer, you already have the folder, If terminal dont show result, create the folder with the follow command:</p><p>With own SSH folder ready, the next step is to create keys using the following command:</p><pre>ssh-keygen -t rsa -b 4096 -C &quot;email@emai.com&quot;</pre><p>When this message is displayed “Generating public/private rsa key pair.” Press Enter multiple times until finished.</p><p>With these steps, we finish generating the keys on your computer.</p><p>Now we have two files in SSH folder: the id_rsa.pub is a public key and id_rsa is a private key. Don’t shere the private key with anyone.</p><pre>ssh-add ~/.ssh/id\_rsa</pre><pre>cat ~/.ssh/id\_rsa.pub</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5g-tCBP6EbNILhnu" /></figure><p><a href="https://github.com/settings/keys">https://github.com/settings/keys</a></p><p>Click in “New SHH Key”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AWCRx9SC5iPgDGL-" /></figure><p>Paste the key that copied before and click in “Add SSH Key”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XQ6C9D4P-WvaOcBx" /></figure><p>Congratulations, if everything worked fine, you should see something similar to this imagen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C6kD_Yomi5IxWl8K" /></figure><p>Test Connection:</p><p>Try to connect some repo using a command like this:</p><pre>mkdir my_git_test cd my_git_test git init git remote add origin `git remote add origin git@github.com:almapase/xxx_project.git`</pre><p>Congratulations. You have correctly connected to Github through SSH.</p><p>#gihub #setup_gihub #setup_git #setup_linux_git #setup_mac_git #setup_git_with_shh</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=490a6958ad0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience Working in DataETL Project]]></title>
            <link>https://medium.com/@camilooob/my-experience-working-in-dataetl-project-6c1f2f4231ee?source=rss-91d786de6b14------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c1f2f4231ee</guid>
            <dc:creator><![CDATA[Camilo Baquero | Data and Cloud]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 01:25:19 GMT</pubDate>
            <atom:updated>2020-06-25T03:37:28.783Z</atom:updated>
            <content:encoded><![CDATA[<h3>My experience working in Data Project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKexubdmVyji4G8Bs2VkNg.png" /></figure><p>ETL (Extract, Transform and Load) is the procedure of migrating data from one system to another. Data extraction is the process of retrieving data out of homogeneous or heterogeneous sources for further data processing and data storage. During data processing, the data is being cleaned and incorrect or inaccurate records are being modified or deleted. Finally, the processed data is loaded in a target database such as a data warehouse or data lake.</p><p>The functionality of these tools can be coarsely summarized in the following prominent tasks, which include: (a) the identification of relevant information at the source side; (b) the extraction of this information; © the customization and integration of the information coming from multiple sources into a common format; (d) the cleaning of the resulting data set, on the basis of database and business rules, and (e) the propagation of the data to the data warehouse and data marts.</p><p>We have decided these roles in terms of the knowledge of each one and also taking into account what we like to perform, so we decided that Camilo who has more experience working in the <strong>Back-end </strong>as in the <strong>Front-end, </strong>and Luis working in the <strong>Back-end</strong> since is of your preference.</p><p>In my team Luis has been passionate about code since he was young, he studied at Holberton School to improve his skills, for his experience in this project he will be responsible for deploying servers and web architecture in AWS along with his help in the backend with his great ability using Python.</p><p>And me Camilo is passionate about everything related to Data and financial information processing, he has a Degree in Finance but his passion for technology led him to be a professional in Python, he currently works as a Data Engineer. Due to his profile in this project, the Backend Engineer will be in charge of configuring Django. and build the API.</p><p>We are alternately evaluating using Elastic Beanstalk to save time on Devops work, AWS Elastic Beanstalk to manage the web servers that power or SaaS projects.</p><p>Specifically, these are two dynamic web-based platforms that power internal innovations and creativity. In this post, I’ll detail how we used it and what’s gone well, as well as what hasn’t, so you can decide if it’s the right tool for your needs.</p><p>Elastic Beanstalk’s main benefits include timesaving server configuration, powerful customization, and a cost-effective price point.</p><p>Elastic Beanstalk automates the setup, configuration, and provisioning of other AWS services like EC2, RDS, and Elastic Load Balancing to create a web service. You can log into your AWS management console, and have a new site up and accessible in less than an hour. Elastic Beanstalk also creates a fairly standard configuration for a modern</p><p>Support: AWS Elastic Beanstalk supports Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker web applications.</p><p>AWS Elastic Load Balancer: Running and with the correct configuration for the Rails servers.</p><p>AWS security groups and policies are created, along with permissions for these services to securely talk to each other. All the servers are configured so they can only talk to and have permissions for what they need. For example, your Rails servers have just one port open specifically for the load balancers, and nothing can talk to your</p><p>An easy and secure way (either in the Elastic Beanstalk UI or through the AWS command line tools) to set custom ENV variables. For example, you can set your Mailchimp account and password and have it accessible to your running Rails code as an ENV variable.</p><p>Monitoring: Basic monitoring of your servers through Cloudwatch.</p><p>Powerful Customization</p><p>With Elastic Beanstalk, it’s all under your control. Everything that is created is just an AWS service — so you can look at EC2, see the new instances, and ssh into them. You can update your database config file. You can update the security group for all of the machines, so that, for example, the entire application is only accessible from your office.</p><p>IP address.</p><p>While at some level this is a similar service to Heroku, it also gives you more low level access and control. Customization is more complicated, but much more flexible and powerful than using Heroku. For example, when we wanted to add sidekiq, it wasn’t straightforward (but possible) — that’s another post for another time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3DoFAhfpDH3hRyVC" /></figure><p>As can be seen in tables 1,2 and 3 of chapter two, the most used extractions in our project by clients are Gmail and SFTP. The means to extract these sources are: Zapier and SFTP extractor, respectively. Another thing to highlight is that the total of the sources that come from these means are put in a bucket of the AWS S3 service.</p><p>In our project, it has been identified that companies want the data collected in their operation to “speak” to them and allow them to make better decisions. Either by collecting data from a single source of truth or by reconciliations between various sources and their respective results (dashboards, alarms).</p><p>This, in addition, brings an important problem that is: how companies collect their data and who makes the implemented solution sustainable. For this, companies are choosing professionals (Data Engineers) who, are in charge of maintaining flows, cleaning and guaranteeing that the information is the best.</p><p>Additionally, each time the Data Engineer — Data Scientist key becomes stronger, since one guarantees that the information received by the other is correct. This person is someone with a knowledge of technology, programming skills, and cloud services. This is the person who will use the product and to whom, our project will help you maintain and guarantee the information flows of your company.</p><h4>Risks</h4><p>In this section, we show how the ETL optimization problem can be modeled as a space search problem. First, we give a formal definition of the constituents of an ETL workflow and we describe the states. Then, we define a set of transitions that can be applied to the states in order to produce the search space. Finally, we formulate the problem of the optimization of an ETL workflow.</p><p>We have the problem of ETL workflow optimization, In our context, equivalent states are assumed to be states that based on the same input produce the same output. Practically, this is achieved in the following way:</p><ul><li>Transforming the execution sequence of the activities of the state, by interchanging two activities of the workflow in terms of their execution sequence.</li><li>Replacing common tasks in parallel flows with an equivalent task over a flow to which these parallel flows converge.</li><li>Dividing tasks of a joint flow to clones applied to parallel flows that converge towards the joint flow. Swap concerns only unary activities, e.g., selection, checking for nulls, primary key violation, projection, function application, etc.</li></ul><p>These operations involve the interchange of a binary activity, e.g., union, join, difference, etc., and at least two unary activities that have the same functionality, but are applied over different data flows that converge towards the involved binary activity.</p><p>Among the most outstanding risks when implementing ETL are the following.</p><ul><li>The non-implementation that qualities control that guarantees that the information is extracted from the corresponding sources listed in the Data.</li><li>That the data quality is not optimal.</li><li>Make unnecessary changes due to growth or new requirements that arise in the project.</li><li>Make a bad choice in the sources of information regarding its quality and correct updating.</li><li>Non-technical risks</li><li>Failure to meet the planned times on the schedule.</li><li>Bad execution of the work plan.</li><li>Lack of communication between the team.</li><li>Problems with Holberton or Staff.</li><li>Lack of knowledge.</li><li>Low quality of work delivered.</li></ul><h4>Infrastructure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LSrmWB9QNnq-1DHn" /></figure><p>Testing</p><p>For testing we user Travis CI and Selenium Test. Travis CI offers a SaaS version that allows free testing for open source projects, Tavis CI can also automate other parts of your development process by managing deployments and notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YeTnv7WxA5zJT7sR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*93E0l1UFloM3sH8p" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SnaaEI0hpbP6aU5M" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Q2kFad61qiwIbUA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X7Uz-S1tmFro4Kue" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c1f2f4231ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Works Internet of Things?]]></title>
            <link>https://medium.com/@camilooob/how-works-internet-of-things-97d70f52bbc2?source=rss-91d786de6b14------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d70f52bbc2</guid>
            <dc:creator><![CDATA[Camilo Baquero | Data and Cloud]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 02:14:06 GMT</pubDate>
            <atom:updated>2020-03-09T02:14:06.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Mo_nQMDtfa3NfAFjK7DoaQ.jpeg" /></figure><p>Our increasingly digitalised world is becoming ever more interconnected. The Internet of Things (IoT) will impact nearly every industry, as machines begin to communicate and make decisions autonomously, without human intervention. Innovations range from smart thermostats maximising energy efficiency by adjusting the temperature of consumers’ homes depending on whether they are at home; to refrigerators automatically ordering groceries when food is running low; to sensors on machinery parts that enable data gathering, helping to avoid costly failures by pre-emptively notifying that maintenance will soon be needed.</p><p>But what is the IoT? The IoT is the internetworking 1 of physical devices embedded with electronics, software, sensors and exchange data (also referred to as “connected devices” and “smart devices”). Simply put, the IoT transforms physical objects into smart devices to collect communicate, monitor and interpret information from their surroundings in real time (WCO, 2019).</p><p>The IoT connects devices through the Internet, where each device has a unique IP address, enabling remote monitoring and control through cloud-based control systems. The goal of the IoT is to increasingly automate aspects of our lives while increasing the efficiency of processes. In the power sector, the IoT could play a valuable role in making electricity systems more efficient, or “smart”. The IoT is a pillar of “smart grids”, which are fundamentally an “electricity network that can intelligently integrate the actions of all users connected to it — generators, consumers and those that do both — in order to efficiently deliver sustainable, economic and secure electricity supplies” (IEC, 2019). Features of smart grids include the rapidly controllable two-way flow of electrical power, the automated, bidirectional flow of information and even automatic system dispatch on an economic basis.</p><p>When the decentralisation of the system is considered, through the deployment of distributed energy generation and battery storage, the IoT holds significant potential for new management and business model options due to its capacity to aggregate data. The deployment of distributed energy resources changes a typical power system from having hundreds of control points to potentially millions. Future decentralised systems require micro-level monitoring and control to reach their potential as providers of services to enhance electricity systems operation.</p><p>IoT technology has the potential to increase the flexibility and responsiveness of the smart assets connected to the grid, as well as the visibility of these assets for the system operator. By connecting energy suppliers, consumers and grid infrastructure, IoT technology aims to facilitate the operation of complex systems and to open new commercial possibilities by enabling clients to further monetise the value created by their assets by providing different services through demand-side management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_JEfT4L8ol-JP92JpcicQ.png" /></figure><p>Internet of things (IoT) is an active research domain which is playing an essential role in the development of society. The term IoT was introduced by Ashton in 1998. He highlighted the importance of the IoT to change the world as the Internet did in early 1990s. MIT Auto-ID center was pioneer to present vision related to IoT in 2001. Later in 2005, ITU Internet report formally introduced the concept and technology of IoT. IoT is usually defined as the Internet of Things which allows people and things to be connected anytime, anyplace, with anything and anyone, ideally using any network and service. IoT devices are interrelated and are connected through the internet and cover almost every field of life, such as transportation, safety, home automation, and different wearable gadgets. Shows the statistics of globally connected IoT devices. The main components of IoT include sensors, devices, gateways, cloud, etc. IoT is expanding at high speed and the worldwide market for IoT solutions is expected to grow up to $7.1 trillion by 2020 . There are many challenges in IoT such as installation and maintenance of centralized cloud server farms, firmware updates to millions of smart devices regularly from security and maintenance point of view.</p><p>Moreover, the lack of trust has also become the main research problem in IoT especially after the leaks of Edward Snowden user data, used for a mass surveillance programs and closed source code in IoT which was stored by the internet and telecommunication companies that lead to the lack of trust. There are fifty four IoT application domains and seven major characteristics in the IoT based on their study such as intelligence, time considerations, architecture, size considerations complex system, space considerations, and everything-as-a-service. The main challenges in IoT are security and privacy.</p><p>These technologies are simply combined in a new and creative way to provide a new platform on which one can start building diverse solutions. Generally, Blockchain looks like a network of node computers where data is no longer stored in a central place, but distributed across a global ledger, using the highest level of cryptography. The main components of Blockchain are Ledger, Peer Network, Membership Services, Smart Contract, Wallet, Events, Systems Management, and Systems Integration. When any transaction is conducted on Blockchain, it is posted across tens of thousands of computers around the globe which are the part of this Blockchain network. These transactions are then recorded as blocks. Further, these blocks are joined using the information of adjacent blocks in a chain. It has three main features, namely Decentralized control, Immutability (written data is tamper-resistant, and the block is ordered) and Independent ability to create &amp; transfer assets. Blockchain was first used for financial transactions in a cryptocurrency Bitcoin, but currently it is emerging in several research domains. At the same time, the Blockchain technology has been applied to many fields, including medicine, economics, Internet of things, software engineering, healthcare, voting, election reforms, supply chain, value chain, Walmart.</p><p>Blockchain is contributing to the Internet of Things. The decision to determine whether Blockchain is required in IoT is based on several factors. Among those the first factor is related to decentralization, if decentralization is required in IoT or there are privacy and security issues, then Blockchain can play a very important role to address these issues. Secondly if peer to peer (P2P) system is required in IoT, then Blockchain is a good solution. P2P communication is only required for applications such as mist computing and intelligent swarms.</p><p>The third factor is the requirement of the payment process in IoT. In such cases, Blockchain may be a good choice as Blockchain got famous because of a payment system such as Bitcoin that eliminates the need to trust any third party, such as a bank. It is expected that Blockchain technology will automate the payment process in cryptocurrency. The fourth factor is related to the requirement for keeping a log of sequential transactions, if required Blockchain can be used. Finally, if traceability is required in the IoT systems then Blockchain will be very helpful. Traceability can be required for different reasons, such as for auditing purposes. Blockchain merged with the Internet of things is referred to as BIoT.</p><p>Although the first application of Blockchain was Bitcoin; however, it was not limited to just Bitcoin; it found its applications in smart contracts. Later, it evolved into applications where coordination was an important factor. Blockchain can be used in many cases and in many fields where IoT is involved, such as management of identities, data storage, in different sensors, for timestamps, daily life applications like smart homes, wearables, supply chain management and cyber law.</p><p>It has been proposed by some researchers to control and configure the IoT device remotely for that Blockchain based system can be really helpful. The main challenges in IoT and the main features of Blockchain relate each other and opened ground for researchers to work in this domain. Hence the number of publications in this domain is increasing. The research topics in this domain include edge/fog/cloud computing, industrial IoT <a href="https://www.sciencedirect.com/science/article/pii/S0045790618333913#bib0006">[6]</a>, methodologies, security and privacy, healthcare, management, etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d70f52bbc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning to my Grandma]]></title>
            <link>https://medium.com/@camilooob/machine-learning-to-my-grandma-7e69d25c911?source=rss-91d786de6b14------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e69d25c911</guid>
            <dc:creator><![CDATA[Camilo Baquero | Data and Cloud]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 04:33:19 GMT</pubDate>
            <atom:updated>2020-01-27T08:28:31.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GBpNay9fQ9wq8EgcpoSDsg.jpeg" /></figure><p>Hi Grandma, today we talk about Machine Learning.</p><p>Grandma says: What? What is that, son?</p><p>Well, Grandma, every day you use Artificial Intelligence, but usually hidden in our life, behind that your favorite apps like Google Translate, recommendation videos of Youtube, or questions to Siri, went search similar pictures, or but and book in Amazon, when Facebook recognizes friends and family, avoiding the spam in your email, or each time you search on Google they have Bots that learn by themselves and choosing for you. Works because software learning every day with your behavior.</p><p>That bots, we called “Artificial Intelligence” and the way “how to learn” we called “Machine Learning”. in other words Machine Learning gives computers the ability to learn without being explicitly programmed. Machine Learning is a science of getting computers to learn without beginning explicitly programmed.</p><p><strong>How Computers Learning?</strong></p><p>A computer program is said to learn from experience E with respect to some class of task T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience.” by Tom Mitchell</p><p>In a resume, any machine learning problem can be assigned.</p><p><strong>Types of Machine Learning</strong></p><p>Ok Granma, It is easy, let me explain to you. Depending on the problem that we have, the Bots have different ways of learning. There are four:</p><ol><li>Supervised Learning</li><li>Semi-Supervised Learning</li><li>Unsupervised Learning</li><li>Reinforced Learning</li></ol><p>Now, see in details each one:</p><ol><li><strong>Supervised Learning</strong></li></ol><p>We give the bot a problem and answers, after that we train him for learning to solve the problem, knowing the answer. Normally in this methodology, we use techniques like Random Forest, Gradient Tree, Decision Tree, Lineal Regression, Naive Bayes, Linear Regression Multiple.</p><p>We train the bot for identifying categories with examples of the questions and answers, we can see behavior bot and make changes along the way, with regressions and forecasting of data.</p><p>Don’t worry if you don’t know these methodologies, we will detail them later.</p><p>In resume Supervised Learning refers to gave algorithms a data set in which the right answers. Normally these are classification problems. In supervised learning, we are given a data set and already know what our correct output should look like, having the idea that there is a relationship between the input and the output.</p><p>Supervised learning problems are categorized into “regression” and “classification” problems. In a regression problem, we are trying to predict results within a continuous output, meaning that we are trying to map input variables to some continuous function. In a classification problem, we are instead trying to predict results in a discrete output. In other words, we are trying to map input variables into discrete categories.</p><p><strong>2.Semi-supervised Learning</strong></p><p>It is similar to Supervised Learning but the main difference is that label that the categories and learning with this data.</p><p><strong>3.Unsupervised Learning</strong></p><p>This technique we know the problem that we have but we don’t know the answers, We trained a bot to find the most efficient answers to a given problem. In this category, we can use Deep Learning, Dimension Reduction, and Clustering.</p><p>The Main technics are Gaussian Mixture, DBSCAN, Probabilistic, K-nodes, K-nearest neighbor. In Unsupervised Learning, we’re given data that looks different than data that looks like this that doesn’t have any labels or that all has the same label or no labels.</p><p>Unsupervised learning allows us to approach problems with little or no idea what our results should look like. We can derive structure from data where we don’t necessarily know the effect of the variables.</p><p>We can derive this structure by clustering the data based on relationships among the variables in the data. With unsupervised learning there is no feedback based on the prediction results.</p><p><strong>Example:</strong></p><p>Clustering: Take a collection of 1,000,000 different genes, and find a way to automatically group these genes into groups that are somehow similar or related by different variables, such as lifespan, location, roles, and so on.</p><p>Non-clustering: The “Cocktail Party Algorithm”, allows you to find structure in a chaotic environment.</p><p>If you were trying to do this in C++ or Java, this would be many many lines of code linking complex C++ or Java libraries. So, you can implement this stuff as C++ or Java or Python, it’s just much more complicated to do so in those languages.</p><p>And in fact what many people will do to in the large Silicon Valley companies use an algorithm and only after you’ve gotten it to work, then you migrate it to C++ or Java or whatever. It turns out that by doing things this way, you can often get your algorithm to work much faster than if you were starting out in C++.</p><p>I am going to ask you to trust me on this one, and say that you, you will, I think your time, your development time is one of the most valuable resources. And having seen lots of people do this, I think you as a machine learning researcher, or machine learning developer will be much more productive if you learn to start in prototype, to start in Octave, in some other language.</p><p><strong>4.Reinforced Learning</strong></p><p>Like Humans, a machine needs the practice to improve, we need to give to robot many examples about the problem to improve with try-and-error.</p><p><strong>Neural Network</strong></p><p>After that choosing our methodology, we need to build the brain of a robot, we called Neural Network. and like a human brain, the Neural Network has Neurons.</p><p>Humans don’t start their thinking from scratch every second. As you read this essay, you understand each word based on your understanding of previous words. You don’t throw everything away and start thinking from scratch again. Your thoughts have persistence.</p><p>Traditional neural networks can’t do this, and it seems like a major shortcoming. For example, imagine you want to classify what kind of event is happening at every point in a movie. It’s unclear how a traditional neural network could use its reasoning about previous events in the film to inform later ones.</p><p>Recurrent neural networks address this issue. They are networks with loops in them, allowing information to persist.</p><p>Any complex system can be abstracted in a simple way, or at least dissected to its basic abstract components. Complexity arises by the accumulation of several simple layers. The goal of this post, is to explain how neural networks work with the most simple abstraction. We will try to reduce the machine learning mechanism in NN to its basic abstract components. Unlike other posts that explain neural networks, we will try to use the least possible amount of mathematical equations and programming code, and focus only on the abstract high level concepts.</p><p><strong>Recurrent Neural Networks</strong></p><p>A glaring limitation of Vanilla Neural Networks (and also Convolutional Networks) is that their API is too constrained: they accept a fixed-sized vector as input (e.g. an image) and produce a fixed-sized vector as output (e.g. probabilities of different classes). Not only that: These models perform this mapping using a fixed amount of computational steps (e.g. the number of layers in the model).</p><p>The core reason that recurrent nets are more exciting is that they allow us to operate over sequences of vectors: Sequences in the input, the output, or in the most general case both.</p><p>A few examples may make this more concrete:</p><p>Each rectangle is a vector and arrows represent functions (e.g. matrix multiply). Input vectors are in red, output vectors are in blue and green vectors hold the RNN’s state (more on this soon). From left to right:</p><ol><li>Vanilla mode of processing without RNN, from fixed-sized input to fixed-sized output (e.g. image classification).</li><li>Sequence output (e.g. image captioning takes an image and outputs a sentence of words).</li><li>Sequence input (e.g. sentiment analysis where a given sentence is classified as expressing positive or negative sentiment)</li><li>Sequence input and sequence output (e.g. Machine Translation: an RNN reads a sentence in English and then outputs a sentence in French).</li><li>Synced sequence input and output (e.g. video classification where we wish to label each frame of the video).</li></ol><p><em>Notice that in every case are no pre-specified constraints on the lengths sequences because the recurrent transformation (green) is fixed and can be applied as many times as we like.</em></p><p>We’ll see in a bit, RNNs combine the input vector with their state vector with a fixed (but learned) function to produce a new state vector.</p><p>It is short for “Recurrent Neural Network”, and is basically a neural network that can be used when your data is treated as a sequence, where the particular order of the data-points matter. More importantly, this sequence can be of <em>arbitrary length</em>.</p><p>The most straight-forward example is perhaps a time-series of numbers, where the task is to predict the next value given previous values. The input to the RNN at every time-step is the <em>current value</em> as well as a <em>state vector</em> which represent what the network has “seen” at time-steps before. This state-vector is the encoded memory of the RNN, initially set to zero.</p><p>To build our Bot and make to learn we need to use a language. The most popular for Machine Learning in Python with the libraries like Numpy for matrix processing and computations. Pandas for numerical analysis.</p><p>I hope that your learn alot with this introduction about Machine Learning. See ya!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e69d25c911" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>