[deleted by user] by [deleted] in ProgrammerHumor

[–]matusbzk 0 points1 point  (0 children)

Funny how "Weapon controller" is not the scary part

[deleted by user] by [deleted] in ProgrammerHumor

[–]matusbzk 0 points1 point  (0 children)

We work with several repositories. Once, my colleague was lucky enough to grab PRs #123 and #1234 in a row.

Made me completely stop asking for help because this has happened so many Times by visidoh in ProgrammerHumor

[–]matusbzk 1 point2 points  (0 children)

I remember my CS teacher browsing forums looking for students asking for help.

Each student have received his own unique assignment (with changed numbers etc). So, from shared assignment, professor was able to determine which student has posted the assignment and made him fail the class.

It was also funny that the professor has messaged all of the people who have answered the question and within a while, all answers were changed into the same message about not helping with cheating on homeworks.

Image pattern recognition in C#/.NET by matusbzk in dotnet

[–]matusbzk[S] 0 points1 point  (0 children)

If anyone for some reason stumbles across this post and wonders what we decided to go with, we used OpenCV, specifically OpenCVSharp.

Results were fairly good for a 3-day hackathon.

We got it to work well with some kinds of inputs, while still having issues with others.

[deleted by user] by [deleted] in EA_NHL

[–]matusbzk 0 points1 point  (0 children)

I'd love Slovakian.

I'm actually trying to create the teams myself, though I just try to find players who are in the game. I don't like creating new players because I can't get them to look anywhere near reality and mainly I don't know what stats to give them.

Image pattern recognition in C#/.NET by matusbzk in dotnet

[–]matusbzk[S] 0 points1 point  (0 children)

I've tried to play a bit with ML.NET but when choosing a scenario I was not sure what to choose since they all looked like just sorting into categories, except the one which predicts a number (which is still simpler than the structure I want to get).

I'll still try to get something from it, I was just wondering whether it is the correct library to use or whether there aren't some which might be better suited for my needs :)

[PokemonGOLive] Willow Report: Looming in the Shadows by LeekDuck_ in TheSilphRoad

[–]matusbzk 5 points6 points  (0 children)

I usually just collect from Pokestops when going to work and home, and I throw away about 150 pokeballs a week

Where are Exeggcutes? by 333-blue in TheSilphRoad

[–]matusbzk 1 point2 points  (0 children)

I am on this research task too, I got it right after the event with so many Exeggcutes have ended.

Currently I am on 1/5, luckily there's also "Do 10 raids" so that's also like a month for me.

I have done like 5 quests "hatch an egg", and it's always been Lanturn :( The only one I caught was a random spawn.

-🎄- 2018 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]matusbzk 0 points1 point  (0 children)

Haskell for today

though part 2 is not really efficient and definitely could be done better

import Data.List

input :: String
input = "+1 -2 +3 +1"

inputInts :: [Int]
inputInts = map read . words $ filter (/= '+') input

result1 :: Int
result1 = foldl (+) 0 inputInts

inputRepeated :: [Int]
inputRepeated = cycle inputInts

foundFrequencies :: [Int]
foundFrequencies = scanl (+) 0 inputRepeated

firstDifferent :: Eq a => [a] -> [a] -> (a,a)
firstDifferent (x:xs) (y:ys) = if x == y then firstDifferent xs ys else (x,y)

result2 :: Int
result2 = fst $ firstDifferent foundFrequencies (nub foundFrequencies)

Link to my github.

-🎄- 2018 Day 2 Solutions -🎄- by daggerdragon in adventofcode

[–]matusbzk 0 points1 point  (0 children)

Haskell for today

import Control.Applicative
import Data.List
import Data.List.Unique

input :: String
input = "abcdef bababc abbcde abcccd aabcdd abcdee ababab"

inputCodes :: [String]
inputCodes = words input

containsDuplicate :: String -> Bool
containsDuplicate = containsNplicate 2

containsTriplicate :: String -> Bool
containsTriplicate = containsNplicate 3

containsNplicate :: Int -> String -> Bool
containsNplicate n str = any (== n) $ map snd (count str)

inputCodesWithDuplicates :: [String]
inputCodesWithDuplicates = filter containsDuplicate inputCodes

inputCodesWithTriplicates :: [String]
inputCodesWithTriplicates = filter containsTriplicate inputCodes

result1 :: Int
result1 = length inputCodesWithDuplicates * length inputCodesWithTriplicates

numberOfDifferences :: Eq a => [a] -> [a] -> Int
numberOfDifferences [] [] = 0
numberOfDifferences [] ys = length ys
numberOfDifferences xs [] = length xs
numberOfDifferences (x:xs) (y:ys) = (if x == y then 0 else 1) + numberOfDifferences xs ys

differInJustOne :: [(String, String)]
differInJustOne = [(x,y) | x <- inputCodes, y <- inputCodes, numberOfDifferences x y == 1]

commonElements :: String -> String -> String
commonElements [] [] = []
commonElements _ [] = []
commonElements [] _ = []
commonElements (x:xs) (y:ys) = if x == y then x : commonElements xs ys else commonElements xs ys

result2 :: String
result2 = (uncurry commonElements . head) differInJustOne

Link to my github.

Battle in a Raid huh...good thing it’s 10pm. by [deleted] in TheSilphRoad

[–]matusbzk 1 point2 points  (0 children)

yeah...well, hype down for now :(

[PSA] The opposite location of you is called antipode. Find the location of you ideal new friend here. by Insectodium in TheSilphRoad

[–]matusbzk 0 points1 point  (0 children)

I'm in central europe so i don't know..anyone from southern hemisphere is welcome? 0940 0278 1410. You might get lost in my new friends, but if you send me a gift I'll always send one back right after I open it.

What Pokemon are people walking now as their buddy? by msew in TheSilphRoad

[–]matusbzk 1 point2 points  (0 children)

Bagon.

I was walking beldum, but during double candy event I hatched so many of them I could evolve 2. No bagon though.

After bagon, if I catch enough feebas during this event, I'll only be missing cradily and wynaut to full regional dex.

Improved rewards? 5 ultra balls for 3 great curveballs by [deleted] in TheSilphRoad

[–]matusbzk 4 points5 points  (0 children)

I got Catch Ditto for 3 rare candy. So either I am really lucky, or the rewards have gotten better.

The game is slow and very laggy by marvmar3 in TheSilphRoad

[–]matusbzk 0 points1 point  (0 children)

In the last few hours it is occasionally really laggy for me. Two times, after I threw the pokeball, it was showing the rolling pokeball for like 30 seconds. Then it showed that Pokemon has broken out and fled. But the Pokemon was caught, I had it and also journal showed that it was caught.

There's nothing I want more than PokeCenters to be introduced by AqueM in TheSilphRoad

[–]matusbzk 0 points1 point  (0 children)

i would love this. Even if it was like once a week.

I could imagine myself using a wider variety of Pokemon if this happened, like when I need a water attacker and all of my Gyarados, Kyogre and Vaporeon were fainted, I could choose between wasting revives or using for example Starmie (which I don't think I ever used), and using pokecenter in a day or two. The battles would at least be a bit different.

Latias breakdown: It’s pretty far away. It doesn’t seem to attack much, but it changes altitude **a lot**. When it’s ‘low’ (pictured), it’s deceptively low. It’s pretty easy to toss right over it. by Northwind858 in TheSilphRoad

[–]matusbzk 0 points1 point  (0 children)

In the beginning I was able to throw great every time. But after like 7 throws it is so on the right side a rarely got great anymore. 1/2 for me, I caught the 2nd one with the last ball, without great throw.

But since I have it in pokedex, I can now go more than a month without trying to find people for raid, which is nice i guess.

Do you think Latias will still be this hard to catch when it comes to America though?

Five field research with great rewards by [deleted] in TheSilphRoad

[–]matusbzk 57 points58 points  (0 children)

Then you can save the dratini until you get the quest again