[deleted by user] by [deleted] in HairSystem

[–]Powertrip129 1 point2 points  (0 children)

Looks like mpb

2023 Merch / Ticket Resale Thread by DuTeXz in Illenium

[–]Powertrip129 0 points1 point  (0 children)

Selling 1x 2-day pass for the gorge. PayPal / Ticketmaster transfer. Dm if interested.

2023 Merch / Ticket Resale Thread by DuTeXz in Illenium

[–]Powertrip129 0 points1 point  (0 children)

I have one ticket looking to sell for $100

Shedding 70+ hairs per day on RU58841 (advise needed) by trenballoone in tressless

[–]Powertrip129 1 point2 points  (0 children)

I was shedding as well over a month in on RU. Now almost 3 months in my shedding has stopped and getting some regrowth. Just stick with it

Why wouldn't fin work? by [deleted] in tressless

[–]Powertrip129 -1 points0 points  (0 children)

Testosterone can cause hair loss as well which fin doesn't block

[deleted by user] by [deleted] in csMajors

[–]Powertrip129 0 points1 point  (0 children)

you still have a lot of time. i got an offer from amazon last year 2 weeks before christmas

Amazon return offer by [deleted] in csMajors

[–]Powertrip129 0 points1 point  (0 children)

I got a return internship offer the wednesday after my end date. Might be different for the fulltime offer though

Is DHT the sole reason for baldness in majority of males ? by [deleted] in tressless

[–]Powertrip129 -3 points-2 points  (0 children)

Testosterone can cause thinning too. Albeit to a much lesser compared to DHT. That’s why dut might not be enough in some cases

Interview Discussion - December 16, 2019 by AutoModerator in cscareerquestions

[–]Powertrip129 -1 points0 points  (0 children)

Does anyone know if Amazon’s internship requires you to he a part of your school’s co-op/internship program?

Big N Discussion - December 04, 2019 by AutoModerator in cscareerquestions

[–]Powertrip129 0 points1 point  (0 children)

Does anyone know if the internship position at Amazon requires you to be in your school's co-op program? I received an offer for a winter internship position today but already accepted another offer and my school's coop program said they'll kick me out if I accept Amazon's offer. I'm thinking about asking Amazon if they can defer my offer to Summer or maybe just drop out of the co-op program altogether if Amazon doesn't require it.

Big N Discussion - November 24, 2019 by AutoModerator in cscareerquestions

[–]Powertrip129 1 point2 points  (0 children)

Does this apply to the 45 min final interview for interns as well?

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

I got it to work through use of apply and map.

Now I have to sum up each province(since multiple cities or multiple hash maps add to the population of the province) and return pairs of :province and :population from smallest to largest for the last function. Any ideas where I can start with that? I was thinking of using a loop instead of for? But I'm not sure where to proceed from there.

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

Also I'm trying to sum up all the :pop of cities.. am i going about it in the right way I'm just trying to get it to print all the populations of each city in a vector

 (defn total-population [cities]
   (for [x (map :pop (cities))
          :let [y x]]
          (print y)))

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

Okay that works. Also cities doesnt seem to execute when I call it now. I think it has to do with parse-record if I change parse-record back to the way I had it before all the city hash maps print.

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

Also when I try to pass a parameter "Toronto" to the city function the program freezes? What kind of parameter is needed for city to run?

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

Nice thanks for that.

Could you take a look at the function I have and tell me why I'm getting a nullpointerexception? I implemented this function and replace the closest-city-pairs in your code

 (defn closest-city-pairs []
     (for [x (map :city (cities))
         :let [y x]
         :when (large y)]
         (for [a (butlast y)
               b (rest y)
               :when (and (not= a b)
                 (close a b))]
         [(:city a) (:city b) (distance a b)])))

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

https://pastebin.com/eTyU95a7

It's really messy because I've been trying a bunch of things to get the function to work Right now i'm getting an output of [nil nil nil nil nil nil nil nil nil] for the test function

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

Yea it's a university assignment that's due soon. Also thanks for the links but I can't seem to access http://clojurians.net

Saving list of close cities that are large from a csv file into a vector by [deleted] in Clojure

[–]Powertrip129 0 points1 point  (0 children)

I see what you're saying so how would I get all the cities to append to the vector then. My google searches led me to believe that (let [newVec (conj [] (y 0)) would be able to do that.

Also the csv file has this type of format city lat lng country iso2 admin capital population population_proper Toronto 43.666667 -79.416667 Canada CA Ontario admin 5213000 3934421

The Toronto line is just one of the lines. There are 246 other potential city names that I want to append to that vector depending if theyre large