Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

Astmehulk

Posted on February 21, 2015 - February 21, 2015 by margusja

Mingi hulga A astmehulgaks 2^A ehk P (A) nimetatakse selle hulga kõikide osahulkade hulka.

Näide: Olgu antud A = { a b } Sellise hulga A astmehulk on: 2^ A = P (A) = { { } { a } { b } { a b } }

Hulga { 0 , 1 , 2 } astmehulk on: 2^ {0 , 1 , 2} = P ( { 0 , 1 , 2 } ) = { { } {0} {1} {2} {0 1} {0 2} {1 2} { 0 1 2 } }

Posted in Linux

Regulaarsuse aksioom

Posted on February 21, 2015 - September 24, 2015 by margusja

Mul oli pikka aega regulaarsuse aksioomist keeriline aru saada. Kirjeldus, kuidas seda mulle esitleti oli:

Suvalises mittetühjas hulgas x peab leiduma selline element z nii, et x ja z ei oma ühiseid elemente.

Ehk on see minu isiklik probleem, et järgnev seletus tundub mulle asjakohasem:

Igas mittetühjas hulgas peab leiduma element, mille ühisosa antud hulgaga on tühi.

No ja kokkuvõtteks, milleks regulaarsuse aksioomi üldse vaja. Aksioomi eesmärgiks on välistada ebameeldivad olukorrad, nagu näiteks a kuulub a või a kuulub b ja b kuulub a.

Posted in Linux

I started to build my own digital clock using DS1302RTC

Posted on February 13, 2015 by margusja

I have long time considered how to build digital watch. Now I am ready for this. I did not wanted to do it without real time clock (DS1302). So ordered some from china and now I got them

I put together first prototype and it works nice

 

So RTC gives me time

2015-02-12 22.53.55

 

DS1302RTC is connected to Arduino. Later I will design my own board and going to use Atmega328PU. Battary keeps time even external power is down.

 

2015-02-12 22.54.112015-02-12 23.00.02

 

At the moment this is my fancy user interface. Later I will use LCD or OLED

 

2015-02-12 22.54.18

 

Posted in Elektroonika

Now I can measure battery level

Posted on February 12, 2015 by margusja

This is handy option. Now I can calculate exactly how long my outdoor sensors last

First sensor can send his battery level data

Screenshot 2015-02-12 22.55.42

Posted in Elektroonika

apache-spark 1.2.0

Posted on February 11, 2015 by margusja

[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ……………………… SUCCESS [ 6.556 s]
[INFO] Spark Project Networking ……………………… SUCCESS [ 9.198 s]
[INFO] Spark Project Shuffle Streaming Service ………… SUCCESS [ 6.381 s]
[INFO] Spark Project Core …………………………… SUCCESS [03:50 min]
[INFO] Spark Project Bagel ………………………….. SUCCESS [ 54.482 s]
[INFO] Spark Project GraphX …………………………. SUCCESS [06:40 min]
[INFO] Spark Project Streaming ………………………. SUCCESS [08:14 min]
[INFO] Spark Project Catalyst ……………………….. SUCCESS [11:32 min]
[INFO] Spark Project SQL ……………………………. SUCCESS [14:46 min]
[INFO] Spark Project ML Library ……………………… SUCCESS [19:02 min]
[INFO] Spark Project Tools ………………………….. SUCCESS [01:05 min]
[INFO] Spark Project Hive …………………………… SUCCESS [14:48 min]
[INFO] Spark Project REPL …………………………… SUCCESS [04:39 min]
[INFO] Spark Project Assembly ……………………….. SUCCESS [04:55 min]
[INFO] Spark Project External Twitter ………………… SUCCESS [ 50.438 s]
[INFO] Spark Project External Flume Sink ……………… SUCCESS [ 59.100 s]
[INFO] Spark Project External Flume ………………….. SUCCESS [01:59 min]
[INFO] Spark Project External MQTT …………………… SUCCESS [ 41.876 s]
[INFO] Spark Project External ZeroMQ …………………. SUCCESS [01:11 min]
[INFO] Spark Project External Kafka ………………….. SUCCESS [01:40 min]
[INFO] Spark Project Examples ……………………….. SUCCESS [09:52 min]
[INFO] ————————————————————————

Posted in IT

Beauty of Scala

Posted on February 11, 2015 - February 11, 2015 by margusja

scala> val kala = (x: Int, y: Int) => x + y
kala: (Int, Int) => Int = <function2>

scala> kala(1,3)
res71: Int = 4

scala> val kala2 = (x: Int, y: Int) => x + y

kala2: (Int, Int) => Int = <function2>

scala> val kala3 = (x: Int, y: Int) => kala(x,y)+kala2(y,x)
kala3: (Int, Int) => Int = <function2>

scala> kala3(1,2)
res75: Int = 6

 

Posted in Linux

Pulsikell

Posted on February 10, 2015 by margusja

Pulsikell

Posted in Fun

Arduino-Uno and TFT 2.4”

Posted on February 4, 2015 - February 4, 2015 by margusja

Bought new toy  2.4 Inch TFT LCD Shield Touch Board Display Module For Arduino UNO

It took about an hour to find right libs

Using ILI9325 driver

https://github.com/samuraijap/TFTLCD-Library

https://github.com/adafruit/Adafruit-GFX-Library

and to get first picture but here it is

2015-02-04 22.38.08

Posted in Elektroonika

One of the best explanation about bitwise operators

Posted on February 2, 2015 by margusja

Screenshot 2015-02-02 22.52.37

Posted in IT

Haskell – beauty of couding – get perfect numbers

Posted on January 11, 2015 - January 11, 2015 by margusja

Recently did some haskell coding and just some lines to explain my enthusiasm.

Let’s try to calculate  perfect numbers:

First I have helper function factors to get number factors:

factors :: Int -> [Int]
factors a = [ x | x <- [1..a], y <- [1..a], x*y == a ]

and the main function is:

perfects :: Int -> [Int]
perfects x = [a | a <- [1..x], sum (init(factors a)) == a, a <= x]

to get perfect numbers under limit believe me you want to limit the calculation 🙂

Posted in IT

Posts navigation

Older posts
Newer posts

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.