Palestra realizada no PHP Conference 2018 sobre recursos avançados SQL do PostgreSQL que aumentam drasticamente o desempenho e simplificam o desenvolvimento da aplicação.
Palestra realizada no PHP Conference 2018 sobre recursos avançados SQL do PostgreSQL que aumentam drasticamente o desempenho e simplificam o desenvolvimento da aplicação.
Async Debugging - A Practical Guide to survive !Mirco Vanini
The speech talk about the specialised tools inside visual studio to survive from async code bugs with special look about how to write a right async code
zkStudyClub: CirC and Compiling Programs to CircuitsAlex Pruden
The programming languages community, the cryptography community, and others rely on translating programs in high-level source languages (e.g., C) to logical constraint representations. Unfortunately, building compilers for this task is difficult and time consuming. In this work, Alex Ozdemir et al present CirC, an infrastructure for building compilers for SNARKs that build upon a common abstraction: stateless, non-deterministic computations called existentially quantified circuits, or EQCs.
This is presentation from WG.NET (May 2019), where I'm discussing different aspects of virtualization, mainly in the context of programming languages. We'll covering up what stack vs. register based virtual machines are, what is interpreter and compiler and how to build our own bytecode interpreter for a toy programming language.
Sequence und Audit Spalten in Oracle 12R1. Anhand von live Beispielen wird gezeigt, wie ein Before Row Insert Trigger in 12c aussehen sollte. Es werden die typischen Aufgaben des Triggers analysiert und durch neue 12c Features ersetzt.
12c new features:
- identity columns und default values
- Kontexte verstehen und nutzen (sys_context)
- Performance Vergleich der verschiedenen Konzepte
This talk was given at GTC16 by James Beyer and Jeff Larkin, both members of the OpenACC and OpenMP committees. It's intended to be an unbiased discussion of the differences between the two languages and the tradeoffs to each approach.
We show GEO map search request with The Nominatim Search Service and one GPS Example. It has a Map Quest Search with a simple and efficient interface and powerful capabilities, and relies solely on data contributed to OpenStreetMap.
On the menu View/GEO Map View you can use the function without scripting.
Managing Large-scale Networks with Triggerjathanism
Trigger was designed to increase the speed and efficiency of managing network configuration while reducing human error, and is the bread and butter of how we manage the large-scale network at AOL. In this talk I intend to cover the problems we solved using Python to manage our network infrastructure, especially how each network vendor does things distinctly differently, and about the code and API that makes Trigger tick using detailed examples.
Given at SCaLE 11x, Los Angeles, CA
Video: http://www.youtube.com/watch?v=7zZ9980X_bs
Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2PVS-Studio
This is the second and last part of the large article about analysis of the Haiku operating system. In the first article, we discussed a variety of possible errors all of which one way or another deal with conditions. In this article, we will discuss the remaining analyzer warnings I have selected for you. The bug examples are grouped into several categories.
In most of our articles about project checks, we mention that bugs are found by the PVS-Studio static code analyzer. In certain cases – when dealing with projects of a complex structure – it is this particular analyzer that is needed. However, many developers will also appreciate its lightweight version, the CppCat analyzer. In this connection, we decided to use CppCat this time, when checking the TortoiseGit project.
Getting Started with Raspberry Pi - DCC 2013.1Tom Paulus
The Raspberry Pi is a small credit-card sized linux computer. Developers and hobbyists around the world are creating miraculous applications and projects, and now you can join them. Last year we presented Raspberry Pi, What We Have Learned So Far, This year's presentation covers the first steps to using your Pi. From the basics, like burning your SD Card to creating a News Reader, you will learn GPIO Basics and simple Python tools. Communication between other components using SPI or I2C will also be covered. It is recommended, but not required that you have a Raspberry Pi, some knowledge of Python and simple electronics.
Async Debugging - A Practical Guide to survive !Mirco Vanini
The speech talk about the specialised tools inside visual studio to survive from async code bugs with special look about how to write a right async code
zkStudyClub: CirC and Compiling Programs to CircuitsAlex Pruden
The programming languages community, the cryptography community, and others rely on translating programs in high-level source languages (e.g., C) to logical constraint representations. Unfortunately, building compilers for this task is difficult and time consuming. In this work, Alex Ozdemir et al present CirC, an infrastructure for building compilers for SNARKs that build upon a common abstraction: stateless, non-deterministic computations called existentially quantified circuits, or EQCs.
This is presentation from WG.NET (May 2019), where I'm discussing different aspects of virtualization, mainly in the context of programming languages. We'll covering up what stack vs. register based virtual machines are, what is interpreter and compiler and how to build our own bytecode interpreter for a toy programming language.
Sequence und Audit Spalten in Oracle 12R1. Anhand von live Beispielen wird gezeigt, wie ein Before Row Insert Trigger in 12c aussehen sollte. Es werden die typischen Aufgaben des Triggers analysiert und durch neue 12c Features ersetzt.
12c new features:
- identity columns und default values
- Kontexte verstehen und nutzen (sys_context)
- Performance Vergleich der verschiedenen Konzepte
This talk was given at GTC16 by James Beyer and Jeff Larkin, both members of the OpenACC and OpenMP committees. It's intended to be an unbiased discussion of the differences between the two languages and the tradeoffs to each approach.
We show GEO map search request with The Nominatim Search Service and one GPS Example. It has a Map Quest Search with a simple and efficient interface and powerful capabilities, and relies solely on data contributed to OpenStreetMap.
On the menu View/GEO Map View you can use the function without scripting.
Managing Large-scale Networks with Triggerjathanism
Trigger was designed to increase the speed and efficiency of managing network configuration while reducing human error, and is the bread and butter of how we manage the large-scale network at AOL. In this talk I intend to cover the problems we solved using Python to manage our network infrastructure, especially how each network vendor does things distinctly differently, and about the code and API that makes Trigger tick using detailed examples.
Given at SCaLE 11x, Los Angeles, CA
Video: http://www.youtube.com/watch?v=7zZ9980X_bs
Analysis of Haiku Operating System (BeOS Family) by PVS-Studio. Part 2PVS-Studio
This is the second and last part of the large article about analysis of the Haiku operating system. In the first article, we discussed a variety of possible errors all of which one way or another deal with conditions. In this article, we will discuss the remaining analyzer warnings I have selected for you. The bug examples are grouped into several categories.
In most of our articles about project checks, we mention that bugs are found by the PVS-Studio static code analyzer. In certain cases – when dealing with projects of a complex structure – it is this particular analyzer that is needed. However, many developers will also appreciate its lightweight version, the CppCat analyzer. In this connection, we decided to use CppCat this time, when checking the TortoiseGit project.
Getting Started with Raspberry Pi - DCC 2013.1Tom Paulus
The Raspberry Pi is a small credit-card sized linux computer. Developers and hobbyists around the world are creating miraculous applications and projects, and now you can join them. Last year we presented Raspberry Pi, What We Have Learned So Far, This year's presentation covers the first steps to using your Pi. From the basics, like burning your SD Card to creating a News Reader, you will learn GPIO Basics and simple Python tools. Communication between other components using SPI or I2C will also be covered. It is recommended, but not required that you have a Raspberry Pi, some knowledge of Python and simple electronics.
Metasepi team meeting #19: ATS application on ArduinoKiwamu Okabe
* [0] ATS application demo
* [1] What is Metasepi?
* [2] How to create Metasepi?
* [3] What is ATS language?
* [4] Let's read the demo code
* [5] Japan ATS User Group
You have one of those fruity *Pi arm boards and cheep sensor from China? Some buttons and LEDs? Do I really need to learn whole new scripting language and few web technologies to read my temperature, blink a led or toggle a relay? No, because your Linux kernel already has drivers for them and all you need is device tree and cat.
Since the emerging of the OpenStack cloud computing platform in the Ubuntu community, increasing number of public/private cloud service providers choose to deploy it all over the world. Recently, Spectre and Meltdown have caused a panic in the world and the Spectre V2 is the only one which can attack the host system from the guest VM. It's vital to know the detailed process of the attack. Gavin Guo will give a detail explanation and an example of how to attack the host system. Besides, v1/v3/v4 are also introduced in the slide.
Building High-Performance Language Implementations With Low EffortStefan Marr
This talk shows how languages can be implemented as self-optimizing interpreters, and how Truffle or RPython go about to just-in-time compile these interpreters to efficient native code.
Programming languages are never perfect, so people start building domain-specific languages to be able to solve their problems more easily. However, custom languages are often slow, or take enormous amounts of effort to be made fast by building custom compilers or virtual machines.
With the notion of self-optimizing interpreters, researchers proposed a way to implement languages easily and generate a JIT compiler from a simple interpreter. We explore the idea and experiment with it on top of RPython (of PyPy fame) with its meta-tracing JIT compiler, as well as Truffle, the JVM framework of Oracle Labs for self-optimizing interpreters.
In this talk, we show how a simple interpreter can reach the same order of magnitude of performance as the highly optimizing JVM for Java. We discuss the implementation on top of RPython as well as on top of Java with Truffle so that you can start right away, independent of whether you prefer the Python or JVM ecosystem.
While our own experiments focus on SOM, a little Smalltalk variant to keep things simple, other people have used this approach to improve peek performance of JRuby, or build languages such as JavaScript, R, and Python 3.
We have finished studying the patterns of 64-bit errors and the last thing we will speak about, concerning these errors, is in what ways they may occur in programs.
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
6. ws2812
(image from
green
5mm
‣ SMD5050 Package
‣ ws2811 controller
‣ three separate LEDs
red
blue
HARDWARE
controller
7. ws2811
one-wire serial data-signal
0 1.25μs 2.5μs 3.75μs
5μs
1 0 1 1
+5V
0V
t
wavelength λ pulsewidth
frequency 800kHz
wavelength 1.25μs
8. ws2811
one-wire serial data-signal
+5V
0V
350ns (±150ns) 800ns (±150ns)
λ = 1.25μs (±600ns)
(f = 800kHz)
0
t
9. ws2811
one-wire serial data-signal
+5V
0V
750ns (±150ns) 600ns (±150ns)
λ = 1.25μs (±600ns)
(f = 800kHz)
1
t
10. ws2811
one-wire serial data-signal
1 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0
b 2 8 0 f 4
#80b2f4
in HTML-Notation
11. ws2811
one-wire serial data-signal
LED 01
Register
#000000
DIN DOUT
LED 02
Register
#000000
DIN DOUT
LED 03
Register
#000000
DIN DOUT
+5V
GND
+5V
GND
+5V
GND
+5V
GND
12. ws2811
one-wire serial data-signal
LED 01
Register
#ff8800
DIN DOUT
1
#ff8800
LED 02
Register
#000000
DIN DOUT
LED 03
Register
#000000
DIN DOUT
— —
+5V
GND
+5V
GND
+5V
GND
+5V
GND
13. ws2811
one-wire serial data-signal
LED 01
Register
#ff8800
DIN DOUT
2
#00ffff
LED 02
Register
#00ffff
DIN DOUT
LED 03
Register
#000000
DIN DOUT
#00ffff —
+5V
GND
+5V
GND
+5V
GND
+5V
GND
14. ws2811
one-wire serial data-signal
LED 01
Register
#ff8800
DIN DOUT
3
#0000ff
LED 02
Register
#ffff00
DIN DOUT
LED 03
Register
#0000ff
DIN DOUT
#0000ff #0000ff
+5V
GND
+5V
GND
+5V
GND
+5V
GND
15. ws2811
one-wire serial data-signal
LED 01
Register
#000000
DIN DOUT
4
reset
LED 02
Register
#000000
DIN DOUT
LED 03
Register
#000000
DIN DOUT
reset reset
+5V
GND
+5V
GND
+5V
GND
+5V
GND
16. neopixel etc.
where to get your ws2812
USA http://www.adafruit.com/category/168
https://www.sparkfun.com/search/results?term=ws2812
http://www.watterott.com/index.php?page=search&keywords=ws2812
GERMANY
OTHER
INTERNATIONAL
ebay, amazon (search "ws2812")
direct from china: banggood.com, www.dx.com, alibaba.com
22. problem
the signal-level needs to be changed
1.6 Million times per second.
(image from http://www.electrobob.com/ws2812-level-translator/)
23. Arduino: no problem*
‣ CPU running at 16MHz
‣ 62 nanoseconds per instruction
‣ lots of time™ in between level changes…
* assembler-programming required :(
24. solution awesomeness
awesomeness
solutions
programming it
with arduino
#hhjs
sleep
(based on a totally representative study with 1 participant)
25. Raspbian: problem
‣ because multitasking.
‣ when the process runs depends on lots
of factors we can’t control
26. Raspberry Pi PWM
‣ „serializer“-mode
‣ bits in data-registers represent
signal-level per PWM-cycle
‣ only a few bytes in registers
‣ needs DMA to transport data
27. Raspberry Pi PWM
+5V
0V
1 0 0 bits written to
(frequency: 2.4 MHz)
0
t
PWM cycle: 416ns
PWM-Registers
28. Raspberry Pi PWM
+5V
0V
1 1 0 bits written to
(frequency: 2.4 MHz)
1
t
PWM cycle: 416ns
PWM-Registers
29. Raspbian: problem
‣ store prepared pixel-data in memory
‣ let the DMA-Controller transfer data
to PWM-Module
‣ CPU or OS are not involved!
30.
31. solution awesomeness
awesomeness
solutions
arduino
#hhjs
sleep
program it in C
on raspberry
build a server
in C and control
with node
write a
node-addon.
36. writing node-addons
accepting arguments/ throwing exceptions
// rpi_ws281x.cc
Handle<Value> Init(const Arguments& args) {
HandleScope scope;
if(args.Length() < 1 || !args[0]->IsNumber()) {
ThrowException(Exception::TypeError(
String::New("init(): argument 0 is not a number")));
return scope.Close(Undefined());
}
int numLEDs = args[0]->Int32Value();
// ... the actual binding-code ...
return scope.Close(Undefined());
}
37. writing node-addons
lessons learned…
‣ writing a simple node addon is not as
complicated as it seems
‣ i should write more C++
‣ most of the code to deal with arguments and
type-checking
‣ better understanding how V8 works
39. hello ws281x-native
the javascript-side
var ws281x = require('../lib/binding/ws281x-native');
var NUM_LEDS = 100,
data = new Uint32Array(NUM_LEDS);
ws281x.init(NUM_LEDS);
data[42] = 0xff0000;
ws281x.render(data);
setTimeout(function() { ws281x.reset(); }, 2000);
40. hello ws281x-native
of course it didn't end there
‣ API feels a bit too low-level
‣ numbers as colors are complicated
‣ need to manually manage the data-array
41. matrix-API
the javascript-side
var ws281x = require('../lib/ws281x'),
m = ws281x.createMatrix(10,10)
Color = ws281x.Color;
var offset = 0,
c1 = new Color('red'), c2 = new Color('blue');
setInterval(function() {
m.clear();
for(var i=0; i<10; i++) {
var color = Color.mix(c1, c2, ((i % 10) / 10));
m.set(i%10, (i+offset)%10, color);
}
offset++;
m.render();
}, 1000 / 30);
42. solution awesomeness
awesomeness
solutions
arduino
#hhjs
sleep
program it in C
on raspberry
build a server
in C and control
with node
✔
write a
node-addon.
43. solution awesomeness
awesomeness
solutions
#hhjs
sleep
program it in C
on raspberry
build a server
in C and control
with node
write a
node-addon.
use
<canvas>
44. canvas-API
‣ web-technology FTW!
‣ has more stuff than we need.
‣ can be rendered server-side with node-canvas
‣ also works in the browser
45. canvas-API
the javascript-side
var ws281x = require('../lib/ws281x'),
canvas = ws281x.createCanvas(10,10),
ctx = canvas.ctx,
Color = ws281x.Color;
var c1 = new Color('red'), c2 = new Color('blue');
function rnd(max) { return (max || 1) * Math.random(); }
function rndi(max) { return Math.round(rnd(max)); }
setInterval(function() {
var c = Color.mix(c1,c2, rnd());
ctx.clearRect(0,0,10,10);
ctx.fillStyle = 'rgb(' + c.rgb.join(',') + ')';
ctx.fillRect(rndi(10)-2, rndi(10)-2, rndi(10), rndi(10));
canvas.render();
}, 1000/5);
46. more to come…
‣ open-source everything [really soon]
‣ browser-based IDE on the raspberry [in progress]
‣ integrate with other hardware [planning]
‣ improved 3d-printed casing [some day…]
47. final thoughts
why would you want to do that?
‣ do something you love. just for the fun.
‣ understand how stuff works.
‣ learn something new.
‣ no deadlines (well, except you do a talk about it)
48. <3
thank you!
come to me if you have any questions…
Martin Schuhfuss – @usefulthink