Prazo de entrega: 19 de junho de 2018, durante a aula.
Valor: 2,0 pontos.
Faça um programa que leia quatro valores: I, A, B e C, onde I é um número inteiro positivo e A, B, e C são quaisquer valores reais. O programa deve escrever os valores lidos e:
- se I = 1, escrever os três valores A, B e C em ordem crescente;
- se I = 2, escrever os três valores A, B e C em ordem decrescente;
- se I = 3, escrever os três valores A, B, e C de forma que o maior valor fique entre os outros dois;
- se I não for um dos três valores acima, dar uma mensagem indicando isto.
O programa pode ser feito em dupla e deverá ser entregue por escrito ao professor.
The paper “Utilização de um ambiente de aprendizagem como proposta de auxílio ao ensino de algoritmos e programação” was published in SEPA. To download the paper, follow the link below:
It is perceived that new methods and strategies of education are needed to aid teachers and provoke in students the curiosity, motivation and search for knowledge. Among these new tools, we can highlight learning environments designed pedagogically to teach in a playful way. These new methods are being developed in education, however, they still facing some opposition from teachers who do not detach from the old paradigms. In face of this need, a learning environment was developed with the purpose of assisting in the teaching of algorithms based on problems suggested by the tool and with the possibility of the student to build the programming code that implements a solution to that problem. After its use in a real environment, it was possible to verify with an evaluation questionnaire the acceptance of the tool by the students.
The paper "TwitterSensing: An Event-Based Approach for Wireless Sensor Networks Optimization Exploiting Social Media in Smart City Applications" was published in Sensors (Open Access). To download the paper, follow the link below:
Modern cities are subject to periodic or unexpected critical events, which may bring economic losses or even put people in danger. When some monitoring systems based on wireless sensor networks are deployed, sensing and transmission configurations of sensor nodes may be adjusted exploiting the relevance of the considered events, but efficient detection and classification of events of interest may be hard to achieve. In Smart City environments, several people spontaneously post information in social media about some event that is being observed and such information may be mined and processed for detection and classification of critical events. This article proposes an integrated approach to detect and classify events of interest posted in social media, notably in Twitter, and the assignment of sensing priorities to source nodes. By doing so, wireless sensor networks deployed in Smart City scenarios can be optimized for higher efficiency when monitoring areas under the influence of the detected events.
MobSink 1.4 released!
This version brings new features:
- Sensor control: you can create dynamic sensors that changes relevance levels and activity over time.
- Import maps from OpenStreetMaps, to create simulations in real world cities.
- Traffic control: simulate traffic jams in your WSN and sinks will have to find a better route.
- New user interface.
Also, Windows binaries are available. Go to MobSink page to get download links and check its features.
Hello all, and Happy New Year! 🙂
It’s been a while from the last v490 update. I’ve had some issues at the end of last year and forgot to make a December build:
- My Nexus 5 has died: I was trying to fix its Wi-Fi hardware and happened to broke the whole thing. Now I’m struggling with a Samsung Galaxy Grand Prime Duos TV (long name, shitty hardware) until I buy a new phone. A good new phone in Brazil costs too much and some good brands are not available here (no Pixel, for example). I want to buy a OnePlus 5T soon from GearBest.
- LineageOS 15.0 for LG G Pad 8: until now, mycax could make it boot, but no Wi-Fi and no sensors at all. He tried to use a modified aboot image but the device bricked. I’m gonna go back to work with him on this next month.
- Co-advisor in a MS work: currently, I am spending much of my time being a Co-advisor Professor in a MS work. This is top priority for now.
I wish you all a happy flashing! 🙂
The paper "Wireless visual sensor networks for smart city applications: A relevance-based approach for multiple sinks mobility" is available for free from ScienceDirect until July 27th, 2017. Follow the link below to get the full paper:
Nowadays, the major cities of the world have to solve problems that were unthinkable in past decades. Due to the population growing rate, new issues are still arising, but technology can be used to address such issues and improve life quality in big cities. In that scenario, surveillance is a highly desired service and most governments are already using different types of devices to provide high levels of security. Wireless Visual Sensor Networks (WVSN) can be used to monitor every part of a city without the cost of running cables all over it. However, there must be an efficient way to gather all information collected by the sensors and cameras, with reduced energy consumption and average latency. This work proposes a new algorithm to position multiple mobile sinks in WVSN deployed along roads and streets. A relevance-based approach was designed to position sinks closer to source nodes with higher sensing relevance, since they are expected to transmit more data packets. The proposed algorithm can detect forbidden and disconnected zones, making sure sinks will be positioned in permitted areas, which makes this approach very suitable for realistic smart city applications.
Hello, guys! If you are experiencing Google Setup Wizard crashes after flashing LineageOS, then read this.
Google Setup Wizard (the wizard that asks for your Google account and tries to restore apps and configuration from other devices) is crashing in devices with 1 GB of RAM or less (that’s the case of LG G Pad 8). To properly boot your tablet, you will need to do the following:
1) Enter recovery mode (TWRP) and format /system (tap “Wipe”, “Advanced”).
2) Flash LineageOS ONLY (don’t flash GApps).
3) Boot your device.
4) After the first boot, enter recovery again and then flash GApps.
Google Setup Wizard will not run and you will be able to use LineageOS in your tablet 🙂
Leave a comment below if you have any doubts.
Hello, everyone! There is a new build for v490 this week.
Some people contacted me recently to inform that the last build for v490 (20170409) was not working. Actually, TWRP refused to install it because of some date error. An user has sent me a photo of his device screen and I could see that TWRP informed the date in Brazilian Portuguese format. So I figured out that maybe it had something to do with the fact that I changed Ubuntu language settings recently.
I got back to English and made a new build yesterday. If you had problems installing the 20170409 build, try installing this new one: lineage-14.1-20170505-UNOFFICIAL-v490.zip
If anything goes wrong again, just leave a comment below.
Happy flashing 🙂
Hello, everyone. In this post, I’ll talk about the development of both MobSink and LineageOS.
First of all, I’ve made new builds of TWRP for v480 and v490. It is now version 3.1.0-0 and you can download it via the links below:
Also, as promised, there is a monthly unofficial build for v490, which you can download via the link in this blog’s LineageOS page.
Currently I’m trying to fix the Wi-Fi bug that prevents the device to automatically connect to a known Wi-Fi network. I suppose it is related to the vendor blobs I’m using. I also tried to make some improvement to touchscreen, since some people are reporting bad responses. I got some logcats from two of these users, but it gives no clue about the problem. Anyway, I’ll try again later (Wi-Fi is priority).
At last, MobSink is having some improvements for the new version. In this week, I coded a command-line tool to convert OpenStreetMap XML files to MobSink XML, so we can use real maps to simulate a Relevance-based WSN. Also, MobSink now allows to create a relevance schedule for sensors in a WSN (this will be documented this week in MobSink page).
That’s what I have to say by now. If you have any question, write a comment below.
Tagged with: android
, lg g pad 8
Hello, guys. This week I’ve built new TWRP images for v480 and v490. These are 3.0.3-0 version.
So, why would you update your device’s recovery to this new version? For v480 users, the best answer is "to get LineageOS OTA updates!". For v490 users, there is no special reason, you can still use the older version, since there is no OTA updates for it yet (unless you want to keep your device fully updated).
The download links are below:
Happy flashing! 🙂