Programming Leftovers
-
Simple Linear Regression in R
To illustrate the idea of simple linear regression, we will use a very straightforward dataset. The average heights and weights of American women will be imported. There are 15 observations in the dataset. You want to determine whether weights and heights are positively connected.
-
Difference between R and Python
The decision between R Vs Python ultimately comes down to:
1. The goals of your mission are: Statistical evaluation or application
2. The time you have available
3. The most popular tool in your business or sector
-
Simple lock implementation
This is a simple sync.Locker implementation in Go for learning purposes. This is not a lock to be used seriously.
-
Avoiding Featurism
Throughout my career of designing and developing software I have run into this exact issue far too often. The major issue with getting sucked into a black-hole of “featurism” is there is no single person to blame. It probably seems easy to place all the responsibility on PMs or team leaders, but even if they are the ones adding excessive complexity to a given project, it is the role of developers and designers to speak up. It requires a team effort. Therefore, the whole team needs to be on-guard to avoid it.
-
Concurrency in Go: shared memory
I’ve been playing around with some examples to better understand how Go’s memory model behaves on concurrent programs. I’m going to try and explain what I’ve learned regarding operation ordering on multi-core CPUs.
The example I’m going to show is an extension of the Message Passing example written by Russ Cox in his Hardware Model post. After reading it I wanted to experiment with this behavior and see it for myself. This is the result.
-
IF ELSE- ELSE IF Statement in R
IF ELSE- ELSE IF Statement in R, A developer’s best tool when trying to return output based on a condition is an if-else statement. The syntax in R is: [...]
-
Announcing IndieWeb Utils v.0.3.1
I am excited to announce that IndieWeb Utils is now in v0.3.1. This update is the culmination of months of work from project contributors. Before I get any further, I want to note a special thank you to James, Tantek and Angelo for their collaboration in this project. Their contributions, code reviews, and suggestions have greatly enhanced this library.
-
Announcing getsitemap, a Python library for sitemap URL retrieval
I have worked on numerous projects that involve finding all of the URLs in the sitemaps associated with a website. For example, one of the first steps the IndieWeb Search crawler takes when it starts crawling a website is to find all of the URLs in all of the sitemaps. Separately, I have written scripts that validate the status codes of all the URLs in a sitemap.