More than Just Lines on a Map: Best Practices for U.S Bike Routes
Java&raspberry
1. Java особенно хороша с
малиновым десертом!
Андрей Дмитриев
andrei-dmitriev@yandex.ru
Александр Белокрылов (@gigabel)
Alexander.belokrylov@oracle.com
17. Java ME Embedded и Raspberry Pi
IMP-NG
– MIDP 2.0 без UI и Game API
– Размер Run-time менее 4 Мб
API для доступа к GPIO, UART, SPI, I2C
– Device access API (DAAPI)
– Нужен root
http://docs.oracle.com/javame/config/cldc/rel/3.3/rasp/gs/html/getstart_raspi/toc.htm
http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html
19. Разреши, но только для себя
$JavaME_HOME/appdb/_policy.txt
В секции:
domain untrusted, unsecured
domain minimum, unsecured
Добавить:
allow: device_access
20. DAAPI
GPIOPinConfig pin4Config = new GPIOPinConfig(
0, // Port number
4, // Pin number
GPIOPinConfig.DIR_OUTPUT_ONLY,
GPIOPinConfig.DEFAULT,
GPIOPinConfig.TRIGGER_NONE,
false); // Initial state
Feel free to reuse this presentation for your local user groups. Some helpful comments are in the notes section, but feel free to embellish.For more details on JavaFX/Raspberry Pi hacking, check out this post:http://javafx.steveonjava.com/javafx-on-raspberry-pi-3-easy-steps/
A visualization of the node and routing information of a part of the Internet, in 2003. By the Opte Project. If this was a part of the Internet in 2003, imagine what it would look like today.
Automatic number plate recognitionRed-light violation detectionTraffic jam detectionVehicle location systemGeo-fences
High-speed data collection and analysisLocal storage and historical analysisFiltering, correlation and pattern matching of real-world data
Demand-based refrigeration to conserve energyDynamically changing prices based on weather and demandInventory management
Location trackingContainer contents monitoringIntrusion detectionTemperature and pressure monitoring
Data evaluation for potential health problemsAutomatic alerts to caregivers and healthcare providersHistorical data analysis
Real-time pricing with adaptive intelligence for carbon footprint reductionAutomatic water usage metering enables conservationIntrusion detection
The Raspberry Pi is a consumer-focused, low-cost board. It has a slightly slower ARM processor (ARMv6 700Mhz), but a better GPU than the BeagleBoard. Connectivity is via HDMI/Component, USBx2, Ethernet, and Audio out.
And do cool stuff with the Pi like this pic of the digital signage for Devoxx, which was running on HDMI monitors at 1920x1080 off of a Raspberry Pi.
And getting JavaFX is as simple as downloading Java 7 (it has been bundled since Java 7u4). Also, it is supported across different desktop platforms (shown in the picture).
And you can use your favorite IDE… IntelliJ, Eclipse, NetBeans, Oracle JDeveloper, etc. Many IDEs have special support, but all you need to do is create a generic Java project and add in the jfxrt.jar file from the jre/lib directory.
You can build JavaFX applications visually using Scene Builder. This is a good time to show aNetBeans/Scene Builder live demo where you can build a custom application for the audience you are working with, such as this app done for the Linux Users' Group of Davis in 15 minutes or so:https://github.com/steveonjava/LUGOD-Pi-Test