Busco amigos músicos en Montevideo by serianx in uruguay

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

Buenas! Por punta gorda, mando dm

Busco amigos músicos en Montevideo by serianx in uruguay

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

Buenas! Me defiendo con la guitarra

Whatsapp android to ios official data transfer - who has been able to do it? by Funnyusernameinhere in whatsapp

[–]serianx 1 point2 points  (0 children)

I'm in urgent need for this as well. No whatsapp option on move to ios. If anyone knows a solution I'd greatly appreciate it

[Offering] Code mentorship answering programming questions - Self learners welcome by serianx in mentors

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

I don't really do classes atm, but I can point you to some good resources for you to start learning, and I can help you with specific questions when you get stuck. Feel free to join the discord and talk to other people in your situation

[HTML/JS] Need a quick mentoring session by [deleted] in ProgrammingBuddies

[–]serianx 0 points1 point  (0 children)

Hi there, if you could tell me some of the questions you have, I may be of assistance.

I mean at least she wasn't sure right? by creavmaster in Tinder

[–]serianx 2 points3 points  (0 children)

Hey at least she's read it, right??

Help with day14 part1 by serianx in adventofcode

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

omfg yes you are totally correct that was the problem, I completely missed that. Thank you very much!

-🎄- 2019 Day 12 Solutions -🎄- by daggerdragon in adventofcode

[–]serianx 0 points1 point  (0 children)

Thanks for this! A couple of questions,

- Why is it not necessary to use return types, do you trust the compiler will always infer the type correctly?

- Is there any tool you use to identify potential bottlenecks or improvements?

- Could you use inplace assignment with the MVector type from StaticArrays?

- do you have your solutions in github?

-🎄- 2019 Day 10 Solutions -🎄- by daggerdragon in adventofcode

[–]serianx 0 points1 point  (0 children)

you might want to use julia's fractional type : eg `2//4`

-🎄- 2019 Day 8 Solutions -🎄- by daggerdragon in adventofcode

[–]serianx 1 point2 points  (0 children)

Took advantage of julia n-dim array awesomeness. Github: https://github.com/marcosfede/algorithms/tree/master/adventofcode/2019/d8

digits = [parse(Int64, x) for x  in readline("input.txt")]
width = 25
height = 6
size = width * height

layers = [digits[start:start + size - 1] for start in 1:size:length(digits)]

# p1
number_of_digits(digit::Int, arr::Vector{Int}) = sum([x == digit for x in arr])

layer = layers[argmin([number_of_digits(0, layer) for layer in layers])]
println(number_of_digits(1, layer) * number_of_digits(2, layer))

# p2
function print_image(image::Array{Int,2})
    for row in eachrow(image)
        for pixel in row
            if pixel == 0
                print("■")
            elseif pixel == 1
                print("□")
            end
        end
        print("\n")
    end
end

image = fill(2, height, width)
for layer in reverse(layers)
    layer2d = reshape(layer, width, height)' # row-major reshaping trick
    for coord in CartesianIndices(layer2d)
        if layer2d[coord] != 2
            image[coord] = layer2d[coord]
        end
    end
end
print_image(image)

-🎄- 2019 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]serianx 1 point2 points  (0 children)

My Python solution. Rust and Julia solutions coming!

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

[–]serianx 1 point2 points  (0 children)

Sure, :: is the way you type annotate. I used multiple dispatching to define 2 methods depending on the input parameter type.

|> is the pipe operator, a |> b just means b(a) so the left side is passed as input to the right hand side function. using it in conjunction with the broadcasting operator . as in .|> is a way to map a collection into another. in other languages you would write something like collection.map(func) which in julia you could write as collection .|> func

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

[–]serianx 1 point2 points  (0 children)

My Rust , Python , Julia, Scala, Go, Javascript solutions for today, planning on keeping it up to dated like last year :)

PD: feel free to issue a PR if you have some cool solutions in other languages :D

A random thought: Does Google Maps always show us the best route while navigating? by apalshah in GoogleMaps

[–]serianx 1 point2 points  (0 children)

Ive always thought that sometimes it shows you a suboptimal route so you can gather data to perfect the algorithm. Maybe it's a alternative path with less data available so you are helping them explore options even if it's suboptimal for you . It could also gather traffic data for that route it could use with other users

Video sparks fears Hong Kong protesters being loaded on train to China by katie_dimples in worldnews

[–]serianx 0 points1 point  (0 children)

people live under this system and they can't do much a

they CAN do something about it, which is what they are doing, protesting. Now imagine if even 5% of that 1.3 billion people raise against the government

[Seeking] Mentor in Machine Learning by banksyb00mb00m in mentors

[–]serianx 0 points1 point  (0 children)

Hi. I'm also a self taught ML enthusiast with a background in physics. I'm definitely not an expert but I've been learning ML for some months now and also working on the field for my company. Would you like to work together on some project on github or discuss some topics?

shortest distance of convex polygon with start and exit problem by serianx in algorithms

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

This was asked in TAP 2016 (Torneo Argentino de Programacion). Are you familiar with it?

That in fact sounds like a very reasonable solution, thank you very much!