Rok Kralj

Slovenia

rok-kralj.net

Age: 23

Currently I am computer science & maths student and computer programmer. I live in Slovenia, if you don't know where that is, google it up. :)

I am a very innovative person, always searching for the way to change something for better. I have a lot of ideas, so most of my projects are for my inner child, not commercial. As a true Sagittarius I rarely finish a project, because I get new idea before I manage to implement the last one.

Yay! Ruby, Scala, C++, Qt5 & QtCreator, ScalaFX, Haskell, PostgreSQL, tabs, Arch Linux, Gentoo Linux, Gnome Shell

Nay! PHP, Matlab, JavaEE, spaces, Ubuntu, KDE

Wish for 2014: Switch from Ruby to Scala for all my work,

Github: https://github.com/strelec

Jan
19
revised Group list of numbers into groups based on the range from the lowest number
edited body
Jan
19
revised Group list of numbers into groups based on the range from the lowest number
added 2 characters in body
Jan
18
revised Idiom for Scala's Option when doing equality tests
added 54 characters in body
Jan
18
comment Group list of numbers into groups based on the range from the lowest number
I have gotten a great idea how to do it nicely.
Jan
18
answered Group list of numbers into groups based on the range from the lowest number
Jan
3
comment How does Linux know that the new password is similar to the previous one?
Stupid answer, but an insight nevertheless. Why stupid? 1. You'd have to generate an unimaginable number of hashes. 2. Such setup would weaken the security of the original password. If someone obtained hashes of all similar passwords instead of just one hash, they'd have much easier time to crack it.
Jan
2
comment const array declaration in C++ header file
@bazz: Precision. However - this example is so small it doesn't really matter. But if it were a lot bigger, I'd prefer 0,01ms slower program startup to 200k bigger executable size.
Dec
27
revised Date format when creating invoice
deleted 1 character in body
Dec
27
answered Date format when creating invoice
Dec
20
comment How to create all possible combinations from the elements of a list?
Unless there are some heavy data structures in a list, making toSet (hashing) extremely slow.
Dec
18
awarded Good Answer
Dec
6
revised How can i interleave elements of 2 lists in scala
deleted 430 characters in body
Nov
29
comment Expressing square in Scala
I don't think you know what power of two really means: en.wikipedia.org/wiki/Power_of_two
Nov
28
comment A phrase "was there anybody there" is correct?
Apart from the missing question mark, everything is right.
Nov
27
revised How do you make a HIVE table out of JSON data?
added 58 characters in body
Nov
24
revised Replace transparency in PNG images with white background
added 335 characters in body
Nov
23
comment Does more RAM usage cause more battery usage?
LOL. 3 watts per stick is A LOT!
Nov
1
comment Is there a combination of takeWhile,dropWhile in Scala?
Not necessarily. Depends on the Scala optimiser.
Oct
22
answered Idiom for Scala's Option when doing equality tests
Oct
16
revised Which is faster: while(1) or while(2)?
added 39 characters in body
1 2 3 4 5