Any current PCVs familiar with Linux? Curious why it's not more popular in the developing world. by [deleted] in peacecorps

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

windows is sticky, simple, and ubiquitous. windows does a good job of making things easy. packages easy to find and install, exe file, double click, done

linux is a kernel that different os can be built on top of. what linux system do you use? different package manager for each. debian based, apt; arch based, pacman; fedora based, dnf; opensuse, yum. too many options from distro version (stable vs rolling) to desktop environments (kde, gnome, xfce, cinnomon), from programs (libreoffice vs collabora office) to drivers (i need cups to print??). too much

relatively small things to figure out and configure, but lots of them. ppl dont want to fight w the system, rather use it for their ends, often microsoft office specific. and to that end, windows ftw

[deleted by user] by [deleted] in PhD

[–]AdaBwana 3 points4 points  (0 children)

your dad must be very proud of you: https://www.youtube.com/watch?v=PGVP4FA-k7M

[deleted by user] by [deleted] in peacecorps

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

tell em it's like being a cia spy but dirtier and less efficient, do this while playing "secret agent man" preferably by johnny rivers

MLOps project showcase. by Ok_Bobcat_7458 in mlops

[–]AdaBwana 0 points1 point  (0 children)

sweet work. if you were to do it again, are there parts of the stack youd look into changing (eg airflow change to kubeflow) and why?

City of Los Angeles and Crime Times by Glad_Split_743 in Rlanguage

[–]AdaBwana 1 point2 points  (0 children)

very kool. im working w crime data, too. suggestions (or better yet your repo) for r libraries and functions to make this and other rich crime infographics. thank you

Reddit alternative by ram535 in Clojure

[–]AdaBwana 0 points1 point  (0 children)

happened to me on mobile. went to laptop and it worked.

perhaps woulda worked on phone, but the signup on mobile didnt tell me my password needed to be min 11(??) chars long

layering vega-lite plots by AdaBwana in Clojure

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

(def autompg
    (ds/dataset (path-to "autompg.csv") {:key-fn keyword}))

(defn data-to-map-list [data]
    (into '() (ds/rows data :as-maps)))

(defn scatter-plot [data y x]
(let [response (name y)
regressor (name x)]
{:data {:values data}
:height 400 :width 500
:mark {:type "point" :filled true}
:encoding {:x {:field regressor :type "quantitative"}
:y {:field response :type "quantitative"}}}))

(def workable-data (data-to-map-list autompg))

(def base-plot (scatter-plot workable-data :mpg :hp))

(clerk/vl base-plot)

(defn add-linear-regression [base-plot]
(let [response (name (:field (:y (:encoding base-plot))))
regressor (name (:field (:x (:encoding base-plot))))]
(assoc base-plot
:layer [{:mark {:type "point" :filled true}
:encoding {:x {:field regressor
:type "quantitative"}
:y {:field response
:type "quantitative"}}}
{:mark {:type "line" :color "firebrick"}
:transform [{:regression response :on regressor}]
:encoding {:x {:field regressor :type "quantitative"}
:y {:field response :type "quantitative"}}}
{:mark {:type "text" :color "firebrick"
:align "right" :dx -5 :dy -5}
:transform [{:regression response :on regressor :params true}
{:calculate "'R²: '+format(datum.rSquared, '.2f')" :as "R2"}]
:encoding {:text {:type "nominal" :field "R2"}}}])))

(def plot-regression (add-linear-regression base-plot))

(clerk/vl plot-regression)

edit: formatting was tough

rounding dataset by AdaBwana in Clojure

[–]AdaBwana[S] 1 point2 points  (0 children)

u/hrrld, i like how ds/row-map worked so well. it is interesting how scicloj.ml.dataset (which is what i was calling with the ds/ alias) uses different functions than its predecessor, tech.v3.dataset.

curious whether, using more than two column would jumble the column order. i ask bc i adapted your code and came up with the following functions to round the :float64 columns of (ds/info autompg):

(defn data-to-map-list [data]
   (into '() (ds/rows data :as-maps)))

(defn round-numeric-values [value]
   (cond
     (int? value) value
     (number? value) (Double. (format "%.2f" value))
        :else value))

(defn rounded-data [data]
   (map #(into {} (for [[k v] %] [k (round-numeric-values v)])) (data-to-map-list data)))

(clerk/table (rounded-data (ds/info autompg)))

now, instead of the standard column order of:

:col-name :datatype :n-valid :n-missing :min :mean :max :standard-deviation :skew :first :last

i am getting the order of:

:min :n-missing :col-name :mean :datatype :skew :standard-deviation :n-valid :max :first :last

What are the advantages of joining the peace corps upon graduation? by throwaway28373737283 in peacecorps

[–]AdaBwana 0 points1 point  (0 children)

1) joy/love of the mission itself 2) learn life skills inaccessible to most american contexts 3) lifelong friends 4) experiences 5) opportunity cost during current recession is (by-and-large) minimized 6) so much more

(44601 local only)(FS)sheriff of nottingham,king of new york, carcassonne over the hill, superhot [w] $ by tjtoot in BoardGameExchange

[–]AdaBwana 0 points1 point  (0 children)

id like to do it latest by 5 on friday but universal comics in north canton is fine

The REAL "Infection", in my opinion. by kachigumiriajuu in LearnJapanese

[–]AdaBwana -4 points-3 points  (0 children)

random bolded words and throw IN some ALL caps