- This week we are going to do the following:
- Plot the clusters via Data IQ using Gaussian Mixture for clustering the arrivals.
- Create tests in backend
- Integrate CI/CD
Week 6 review
- This week we only have deliverables in the following:
- Backend service:
- Testing
- More testing
- Backend service:
week 6 planning
This week we will do the following:
- Make a PoC using Random Forest
- Develop in Python a Markov Chain with the datasets disposed
- Test backend service
- Do unit testing
- Do integration testing
- Complete the Homepage view (frontend)
- Only boilerplate
- UX is the priority
- Configure CircleCI
- For automating tests
- In a short term will help to deploy
- Configure TCP sockets in backend
- Impment TCP Connection Address in GO
Week 5 review
This week we have done the following:
- We did a cluster in Data IQ this week

- We completed as well the backend service
- Only the most basic endpoints
- https://github.com/vic3r/smart-cities-back/pull/4
A Bigger Brother
Our personal data is being collected every day by the technology we use. We know there are privacy terms (that many of us doesn’t read, just accept them) telling us the use that they will give to our data, and maybe they use it for another purposes that are not established in the terms. In other words, the companies that we granted the access to our data know who we are and what are we are doing, and maybe they’re sharing it with another companies. Remember that fantastic clothes you were searching one hour ago, that was transformed in a recommendation add about that items linking to an online store (probably Amazon), or searching about cool places in a city in Europe that became in an add linking to a page where you can get tickets to travel. Look into the section «My Activity» in Google Maps to know where you were being at a certain time.
That data was capture probably using a device (smartphone or computer), now imagine more data being capture as you move, what places you like to frequent more, what kind of transportation you use more and what streets you use to move and being categorized as a «probably burglar» or a «good citizen», well now that’s possible and is being tested in the streets of Amsterdam, it is being used to reduce the number of crimes in the city and to make them more secure.
The data is being capture using small traffic lights that detect the MAC address of smartphone or the device you have connected to the internet. You can say you are smart enough and leave the device at home, but probably the identify you using facial recognition with the smart cameras of the city, and let’s be honest, we can live without our smartphone, everything is so connected nowadays that we have to use our gadgets to do (or even in an easier way) a lot of things.
You can see this article for read more about this.
https://www.theguardian.com/cities/2018/mar/01/smart-cities-data-privacy-eindhoven-utrecht

TCR && TDD
Testing the code is a fundamental part while developing an application, it ensures maintainability, usability and scalability. There are several test tools and frameworks for every ecosystem and programming language that makes the stage of deploying easier.
The method of «test && commit || revert» described by Kent Beck, called my attention, because it enforces the developer to write good tests because if a tests fails it returns the code to the last green commit (all passing tests), that’s why it has to check the code meticulously to ensure it won’t fail and also to save the last state of the code where it worked perfectly. Basically the command runs the nexts operations.
git commit -ma "Test worked" // if passed
git reset --hard // if not
In the experience I had testing my applications it always has been present the part that I do the commit, and then the tests fails in an specific case, so I go back and fix it, and then commit again but because of that fix another part crashed, and so on and so on, so definitely I will try this technique for making me more productive.

An area that is very important for me in the team is the DevOps, it’s impressive how you can speed the development and deployment of a project when you have a well structured CI/CD. I have a little experience in the DevOps area, setting up the CI/CD scripts and the pipelines for the VCS. It is very delightful seeing the tests passing in a deployment process, making newest versions of the application more maintainable and ready-to-deploy. DevOps is an area that every software company has to have.

https://medium.com/@kentbeck_7670/test-commit-revert-870bbd756864
hhttps://hanselminutes.com/663/test-commit-revert-with-kent-beck
Week 5 planning
This week we will do the following:
- Research using Data IQ
- Analyze the distribution of the data
- Make a PoC using Random Forest
- Develop in Python a Markov Chain with the datasets disposed
- Define endpoints needed for backend
- Make a PoC for every endpoint using Redis
- Testcases included
- Try to do a TDD strategy
- Complete the Homepage view (frontend)
- Only boilerplate
- UX is the priority
- Configure CircleCI
- For automating tests
- In a short term will help to deploy
- Configure TCP sockets in backend
- Impment TCP Connection Address in GO
The public transport system
In the past few weeks I used the public bus transport system frequently in Guadalajara after two years and a half (I got my first car and used bus a very few times) because of the fuel crisis we were suffering, I ran out of gasoline and the Uber prices were about 3-4 times the base price. I don’t have any problem using this kind of transportation like many people do (some people find like the bus is for the poor).
I would like to start using the public bus more often if it has better units. Let’s be honest, the vast majority of buses in the city are old, rusty, dirty and they left a lot of smog all the way (some are regulated, some not) and if there were a better distribution of the routes. My fist day waiting for the bus, it took like 30-40 minutes to the bus to pass, and I saw another route in the same street passing 7 times, around 5 minutes per bus. Those things have to be improved, because the main benefit of more people using the buses is less traffic in our city, which results in less contamination, less time that takes to go from one point to another.
We have to adopt the culture of the more developed countries and start using the public transport more, because of it benefits to our city and environment. Also, the government has to start changing the units for ones that uses renewable energy (e.j. electricity), regulate and apply fines to those ones that left a lot of smog. There are even cool apps that notifies you in what time a bus route is going to arrive at your bus top, one is Transit (https://transitapp.com/), in México is only available in CDMX, but probably will expand to more cities.
MiBici is a public prepaid bike system that right now is very used in Guadalajara, I find it very useful for short distances, also the user is doing exercise while using it, not to mention that is also eco-friendly. A month ago was implemented in my natal city, Mazatlán, making it the first city in the state, and the pretend to expand to the rest of the cities. Both systems can work with an application. Grin is another transporting app, but this uses scooters.
With all this stuff of everything connected maybe will see new ways of transportation in the next year, and let’s hope they use renewable energy and are eco-friendly.
https://www.milenio.com/mileniotv/estados/mazatlan-implementara-sistema-de-bici-publica
Week 4 Review
This week so far, we did and delivered the following:
- Backlog with detailed tasks for every sprint planning:
- As well, we have redesigned the problem:
- Now we will analyze clusters of respective regions, neighborhoods in every city which must have MiBici.
- The new model which we are going to implement will be a Bayesian Classification/Markov Chains instead of the Multinomial Logistic Regression.
- We are analyzing several solutions in Python, one that we have considered so far is the Random Forest algorithm.
- We have defined the team organization

- The models have been defined in the backend
- The mockups have been finished for the web platform
The gasoline crisis
On January 2019 there were a crisis in Guadalajara. Nearly the 90% of the distribution of gasoline was cut as a consequence of the battle versus the «huachicoleros»
El Colegio de México (México: El Colegio de México, versión electrónica <http://dem.colmex.mx/>, consultado el 20 de mayo de 2017), señala que el término huachicolero alude a la ‘persona que se dedica a bajar fruta de los árboles utilizando un cuachicol o huachicol’ y al ‘delincuente que se dedica a robar gasolina perforando los oleoductos que la conducen’
– Academia Mexicana de la Lengua, http://www.academia.org.mx/espin/respuestas/item/huachicoleroA
A lot of people were frustrated because in order to fill gasoline, they had to wait a minimum of 2 hours in a gas station, (this time takes in consideration that the station was opened and the pipe already discharging gasoline at the time they arrived). So basically you had the variables in order to gasoline.
Gas Station Opened
Pipe Discharging Gasoline
Number of liters discharged enough to fill all the cars before you
Not to mention that the vas majority of gas stations were rationalizing the gasoline, they were dispatching by car just 20 liters, and in some cases, 40.
The people living in Guadalajara saw the caos that this fight was causing, but was for a good cause, right? Besides that, we also realized how attached are we to this fuel, I can’t imagine what would have happened if it had been a vital product, like water or food.
These past days made me wonder that the caos around the city would have been less if more citizens had electric cars, but the caos itself shouldn’t be considered as a reason to switch to an electric car, that switching has to come by oneself, to realize that is time to switch to a renewable energy. But another thing comes in my mind, I think our city is not prepared to handle a considerable number of electric cars around the city. I just saw the charging station that is located in the parking of Plaza Andares, it is the only location that I know, but you know how it is, is the government starts to see that the number of electric cars in the city is increasing, and by request of the citizens, the number of charging stations in the city will increase to meet the demand.
But for now, let’s hope another gasoline crisis does not hit our city




