Python, Security

OWASP Insecure Deserialization with Python

Serialization and Deserialization is a method to transform data so it can be stored or transmitted.  

We call it serialization when an object is converted into a byte stream and deserialization when we convert a byte stream into an object.

Continue reading
Python

Websockets Angular and Python (Flask)

In this tutorial, we are going to see a very basic app that will allow to send messages between the server using Flask and an Angular. My goal is to send messages from the server to the client to keep the data updated on the client-side using WebSockets. 

One of the advantages of using WebSockets is that a single connection is used between the server and the client and either the server or the client can send data to each other. In my case a need to send data from my sensor (that is connected to my server) to the angular client to keep the values updated.

Selection_100.png

Continue reading

Python

How to communicate Beaglebone (Python) and Arduino wirelessly through Xbee

Today it is 13th of September and today is the programmers day and I am going to celebrate by posting a new tutorial that I´ve saved in my notes so hopefully, it will help other programmers.
If you have problems with this post or just wants to avoid adds, please visit my medium link 
In this tutorial, I am going to show you how you can send data wirelessly between an Arduino to a BBB (Beagle Bone Black) using the Xbee module (although you can easily replace the BBB for another board like Rasberry or another Arduino)
What is the project going to do?
First, the circuit will read the humidity and temperature using the digital DHT11 sensor that is connected into the Arduino, then using the Xbee module it will send the data wirelessly to the other Xbee that is connected to the  Beaglebone. Finally, the Beaglebone will read the data using a python programming language.

Continue reading

Deep Learning, Python

Real Time Object Recognition with OpenCV | Python | Deep Learning – Caffe Model

In this tutorial, we are going to build an application which is going to be able to recognize certain objects.

First of all, we are going to use a pretrained model that was trained using Cafee. Caffe is a Deep Learning Framework created by Facebook which allows us to create Deep Learning models. The model that was used is a Convolutional Neural Network.

A Convolutional Neural Network is a Deep Learning Architecture that is used for image recognition. This architecture has several variants some are better than others recognizing objects. You will choose a certain architecture depending on your needs, but basically, all have the same architecture.

Resultado de imagen para convolutional neural network

Continue reading