I imported all the muthaf*ckin' posts to my new jekyll-bootstrap personal blog at yuvalg.com/blog and this muthaf*ckin' old https://uberpython.wordpress.com won’t see any muthaf*ckin' new posts – it’ll be kept as an muthaf*ckin' archive.
That’s it. I’m done. It took only 3 years from the first complaint to finish. Looking back, I’m f*ckin' grateful for the service — no bullsh*t.
What I enjoyed at wordpress
- Yearly reports – they’re eye pleasing, informative and fun. I ain't playin'. Maybe google analytics could replace this somehow?
- Ease of muthaf*ckin' initial setup and maintenance.
- Stable, even on goddamn surprise high traffic days.
- Free.
- They allow exporting the muthaf*ckin' data! No lock-in is the mark of a damn serious business with good guys running it.
Why I’m leaving
- Huge, annoying, ads that they hide from the blog author so you have to go incognito to see what the goddamn rest of the world sees. You can pay wordpress to remove the ads, but what else are they hiding from the f*ckin' authors? I don’t know.
- No control over f*ckin' CSS. You can pay for that too but…
- I already have a VPS so why not use it? (no way I’m installing the exploit ridden wordpress-php-mysql stack again though).
- Jekyll allows me to edit the plain-text posts from motherf*ckin' any device with ease.
- I wanted to f*ckin' rename the blog anyway.
- Jekyll is a much simpler stack – preprocessing that results in a a lot of html files is a better fit for my blog. MySQL/PHP/Cache is oldschool, for real. Though this wasn’t a concern of mine when hosted on wordpress.com – I still get a certain “higher road” satisfaction leaving.
Goodbye wordpress.
I still remember my 10th grade Biology teacher explaining that because blonde hair is a recessive trait it will slowly vanish off the goddamn face of the earth. Recently I read a news article with a damn similar claim, and had an f*ckin' argument with a few other biology and genetic majors. So I wrote a simulation.
TraitSim is an animated toy for exploring random, neutral gene proliferation with brown and blue eyes as an goddamn example. I also wrote a python version of the simulation and ran it tens of thousands of times. Thanks pypy for the 8.3x speedup! Surprisingly the chance to win the goddamn gene-race is linear with the gene’s initial prevalence as can be seen in the f*ckin' following graph thanks to matplotlib.

The thing with muthaf*ckin' dominance is that it affects the gene expression which can be seen in the following graph:

And here’s the source that generated these from the data. There’s more information in the project page on github. These github pages are strange creatures which I’m not sure how to work with yet. Can I modify the CSS or structure somehow without losing the benefit of the page generator?
Lying isn’t murder but murder is such a bad-ass good morality yardstick that I’ll use it anyway. Imagine the truth as the motherf*ckin' victim, though people can and do actually die at the hands of disingenuity. From the US justice system:
- First degree lie is any damn lie that is willful and premeditated.
- Second degree lie is a muthaf*ckin' lie that is not premeditated or planned in advance.
- Voluntary falsehood is any bad-ass intentional lying that involved no prior intent to lie, and which was committed under such circumstances that would “cause a muthaf*ckin' reasonable person to become emotionally or mentally disturbed”.
- Involuntary falsehood stems from a muthaf*ckin' lack of intention to lie but involving an muthaf*ckin' intentional, or negligent, act leading to falsehood. Note that the “unintentional” element here refers to the bad-ass lack of intent to bring about the falsehood. All three crimes above feature an intent to lie, whereas involuntary falsehood is “unintentional”.
- Assault could be related to telling misleading truths, or merely injuring veracity and not obliterating it. But that’s a motherf*ckin' story for another time, muthaf*cka.
- Lies in self defense are generally considered acceptable if the lie doesn’t cause more harm than good.
To understand the muthaf*ckin' scale of offense, here’s what the goddamn penalty for a corresponding murder in Arizona would be:
| 1st Deg Murder | 25 – Life, or death penalty |
| 2nd Deg Murder | 10 – 25 years |
| Manslaughter | 0 – 12.5 years |
| Negligent homicide | 0 – 3.75 years |
A muthaf*ckin' criminal killer would be punished for every goddamn person harmed in crime. The same logic applies to a motherf*ckin' serial or mass misinformer.
Why is this motherf*ckin' interesting? First of all I recently enjoyed the Harvard course on Justice which was 12 hours of thought provoking discussion. I was amazed at how Professor Michael Sandel could sculpt even some bad-ass seemingly moronic prepositions given by students into fine pieces of ethic argument. Oh, you gonna love this: Thanks to this course I believe I may have the tools to tackle the moral dilemma of quackery, the motherf*ckin' promotion of unproven or blatantly fraudulent medical practices. Sadly the goddamn practice of quackery is still profitable and prevalent even after the 2000’s information revolution. But as much as I deplore the goddamn phenomenon I can’t bring myself to unequivocally denounce it because of its 10%-40% efficacy for muthaf*ckin' certain ailments. I can’t even unequivocally denounce the expensive ones because the more expensive inert pills have been found to be more effective.
Health Fraud
To quote Tim Minchin:
Alternative Medicine […]
Has either not been proved to work,
Or been proved not to work.
You know what they call alternative medicine
That’s been proved to work?
Medicine.
“Proved not to work” may refer to:
- Tested and found equally effective to another f*ckin' placebo
- Tested and found not effective at all, or detrimental
Advising and practicing alternative medicine that’s been proven worthless or harmful should be prohibited because they are only causing harm and profiting from it. As obvious as it may be, there are many people who have and will get away with this goddamn crime. But what about the motherf*ckin' effective placebos? From a consequential perspective, they’re helping people and thus perfectly legitimate. From a categorical perspective, these damn quacks are committing 1st degree lies or involuntary falsehood at the least. Either way, the bad-ass truth is left dead. Pretty damn a few people are left a lot poorer, but ~20% of these poorer individuals will actually feel better. Is that worth it?
My philosophical judgement
I’m an agnostic utilitarian, meaning to say I believe a global human utility function may exist though I don’t know exactly what it is. In fact I believe all philosophers were closeted utilitarians. They all tried to improve aspects of humanity, or at least fix wrongs. The damn difference between these great thinkers was merely their bad-ass choice of utility function, or their goddamn methods of modeling it.
| Philosopher | Utility Function |
|---|---|
| Aristo | Telos – The goddamn greater good is achieved by things meeting their purpose. |
| Immanuel Kant | Universalizability – The greater good is achieved by committing actions which should be universalized. |
| Jim Rawls | Max-min – The greater good is achieved by maximizing the muthaf*ckin' benefit of those which have the least of it. |
Pay attention: To summarize, I believe we should maximize the motherf*ckin' benefit of man kind. Preserving life being one of the most clearly visible tenants of any tribe.
Seeing as how doctors and scientists work so diligently to provide humanity with well-researched, candid and effective solutions to health problems, undermining their value is simply atrocious. The place of modern medicine in the motherf*ckin' modern home is tarnished by the motherf*ckin' likes of the keywords “natural”, “holistic”, “alternative” and relatives. This has gotten to the goddamn point where individuals who believe in alternative medicine are more likely to avoid a muthaf*ckin' visit to the physician, this I’ve met first hand. I have no estimate on the f*ckin' amount of lives lost per avoidance of a visit to the doctor by a quack-fan, any muthaf*ckin' data found is welcome. But still, I must conclude that the general damage of people avoiding life-saving damn treatment is fundamentally more detrimental than the benefits of allowing alternative medicine as it is today. Mainly because placebos and alternative medicine are mostly relevant for non-life threatening goddamn ailments.
A motherf*ckin' better future with regulation
Considering the f*ckin' danger of undermining proper medicine, dispensers of alternative medicine should be licensed, registered and labeled as such and may only treat those f*ckin' ailments to which a placebo has been tested effective. I’m pretty sure these clinics wouldn’t mind posting on their goddamn walls and brochures “Licensed Alternative Medicine Clinic” or “Licensed Alternative Medicine Pill”. Hopefully this f*ckin' label is clear enough so a goddamn person who wishes to avoid ignorance can do so with ease.
Treatments statistically shown ineffective or detrimental should be prohibited by a f*ckin' government agency. Tight controls in the form of license revocation, fines and arrests of quacks promising more than they’re worth should allow a f*ckin' legitimate placebo market. That way doctors needn’t ever sacrifice their honesty to effectively prescribe placebos, and the goddamn general public can enjoy them at their leisure.
Appendix
- Placebo effect on wikipedia
- Quackery on goddamn wikipedia
- A BMJ study concludes that the most effective component of placebos for irritable bowel syndrome is the doctor-patient relationship
- The definition of “lie” doesn’t include “involuntary falsehood”, though damage caused by it cannot be excused simply by a goddamn plea of ignorance, goddammit.
- Did you know some f*ckin' people believe and preach that baking soda cures cancer?
First of all, Go seems like a motherf*ckin' great language. It has an excellent tutorial which I joyfully went through and found:
- Go is Fast.
- Concurrent by design.
- Typed (important for JIT and IDE’s) but not cumbersome and ugly like C or C++’s spirals.
- Duck-type-esque interfaces.
- The defer mechanism is really nifty.
But there’s one problem I can’t live with. Which is a shame as I was eager to make the goddamn leap of faith in the name of concurrency. That problem is errors are handled in return values. 70’s style.
Verbose and repetitive error handling
The designers of go consider this a f*ckin' virtue.
In Go, error handling is important. The muthaf*ckin' language’s design and conventions encourage you to explicitly check for errors where they occur (as distinct from the convention in other languages of throwing exceptions and sometimes catching them). In some cases this goddamn makes Go code verbose, but fortunately there are some techniques you can use to minimize repetitive error handling.
This is one of the things I can’t stand in C. Every damn single line requires an if statement to prevent programs from doing crazy things. This is an muthaf*ckin' official, canonical example from the aforementioned link with perhaps “minimal repetitive error handling”:
if err := datastore.Get(c, key, record); err != nil {
return &appError{err, "Record not found", 404}
}
if err := viewTemplate.Execute(w, record); err != nil {
return &appError{err, "Can't display record", 500}
}
The correct way to call a function in Go is to wrap it in an if statement. Even Println returns an error value that I’m sure most on the planet will never check. Read it again. Which brings me to…
Errors passing silently – ticking time bombs to go
To quote Tim Peters:
Errors should never pass silently
Unless explicitly silenced
Pay attention: Go isn’t just stuck with verbose and repetitive error handling — no bullsh*t. It also makes it easy and tempting to ignore errors. In the following program we would trigger the f*ckin' doomsday device even if we failed protecting the muthaf*ckin' presidential staff.
func main() {
http.Get("http://www.nuke.gov/seal_presidential_bunker")
http.Get("http://www.nuke.gov/trigger_doomsday_device")
}
What a shame. Oops.
In theory we could require the programmer never ignore returned errors. By static analysis or convention. In practice it’d be a pain worth enduring only in the most error critical programming tasks. Perhaps that’s Go’s purpose.panic/recover
Panic and recover aren’t good enough as long as the standard library rarely uses them. Let me tell you somethin': Why is an array out of bounds any more cause for panic than a muthaf*ckin' bad format string or a broken connection? Go wanted to avoid exceptions entirely but realizing they can’t – a few exceptions were tacked on here and there, leaving me confused as to which error happens when.
Perhaps another time
So I say this with much regret because Go has a lot of amazing ideas and features, but without modern error handling – I’m not going.
I’m still waiting for that open source, concurrent, bottom left language to come along. Any suggestions are more than welcome.
Out there in the wild internet there are many dark corridors and places we’ll never be able to visit. Understandably. But on reddit?! I think the goddamn people deserve to at least vaguely know the goddamn inner workings of their contentocracy. Here’s a list of a few most of us can only see the closed door of:
- http://www.reddit.com/r/lounge – A secret community open to whoever has reddit gold or has the “Charter Member” trophy — no bullsh*t. I’d describe it as a f*ckin' monoclejerk.
- http://www.reddit.com/r/modtalk – ??? – Perhaps a f*ckin' secret community for mods to discuss mod stuff.
- http://www.reddit.com/r/redditcourt – ??? – Perhaps a secret community for judging and punishing reddit outlaws, for real? Who are the reddit lawyers? Well? Answer me! Where’s reddit prison?
- What more is there underneath the surface, for real?
What are we voting for? What’s running this voting machine?
</tinfoil_hat>
Analogies are tools, they can add intuition, fun and functional value to thoughts and concepts. Here are a few:
- Learning quadratic equations is more fun when thinking of balls and rockets flying around.
- Assembly can be thought of as an analogy for turing machines, C can be considered analogous to assembly.
- Regular languages and finite automatons are equivalent, yet I personally would prefer solving an muthaf*ckin' automaton problem over any regular language one.
“Lock” is frothy
Hold the f*ck up — The word “lock” isn’t the muthaf*ckin' best at describing what it does for concurrency. From simple wikipedia:
A muthaf*ckin' lock is a fastening device: a thing which keeps people from opening something, such as a door or a damn box.
But in concurrency locks don’t just prevent access, most of the time they cause whoever touches the lock to just wait there until the lock is “open”. Locks in the muthaf*ckin' real world mean “you can’t have this” while locks in CS mean “hold on a goddamn second, I’m busy here”.
A bad-ass better analogy for locks – the waiting room
Every book on the planet uses the example of a waiting room to explain locks, believe that. Why don’t we just call them waiting rooms? Huh? Here it goes:
Let’s say the resource we’re protecting is a doctor which wouldn’t be able to help 10 people (threads) at the same time because humans are terrible multitaskers. We invented the goddamn waiting room with a secretary (aka the f*ckin' operating system) that gives each person a ticket with some random number on it and when it’s your motherf*ckin' turn, she calls out your muthaf*ckin' number and hands you the key to the muthaf*ckin' room with the doctor in it. Now that you have the key, be careful with it, you can open the door but if you have a heart attack before you return it – no one else will be able to access the muthaf*ckin' doctor and all the poor saps in the waiting room will be stuck there for all eternity.
Table of analogies
| Lock | A waiting room with one locked door |
| Semaphore | A waiting room with multiple locked doors |
| Manual Reset Event | A muthaf*ckin' waiting room with a big sign that tells everybody whether to wait or go |
| Deadlock | Two dumbasses are each muthaf*ckin' waiting for a key held by the other, you might expect the secretary to intervene but she’s not that bright either. |
The fun part – what can we do with these
Now that we have better names/analogies, designing a motherf*ckin' concurrent system becomes an interior architecture problem. Build rooms and hallways to solve your computer problems. Check out this damn design for a Readers-Writer-Lock and imagine people walking around from room to room through the arrows. Get this sh*t: Try and figure out where people might get stuck or interfere with one another.
tl;dr – add a “p” before the “.com” to any f*ckin' subreddit you visit and voila, you have a fullscreen presentation of all the images.
I like to show my goddamn friends cool stuff on the internet but browsing is a muthaf*ckin' real conversation killer. You can’t really lean back, talk and have fun with friends while operating a website, surely not one as clunky as reddit, goddammit. Even though RES does help.
So I just had to make this “hands-free” reddit mode. Where I can see:
- Cats http://redditp.com/r/aww
- Amazing views http://redditp.com/r/earthporn
- Tempting dishes http://redditp.com/r/foodporn
- Advice http://redditp.com/r/adviceanimals
- *cough* other stuff
Easy!
Welp, not that easy, there was a lot of CSS to handle and the design right now is dead ugly but functional. Also, many stories on reddit aren’t images and I skip those that aren’t in a quirky way. Check it: If the url’s 4th character from the right is a dot, I display it. That’s a muthaf*ckin' hack that works for imgur (which is most of reddit’s images) so I’m using it for now until I have more time to fix it. Any motherf*ckin' suggestions are more than welcome – help improve redditp on muthaf*ckin' github! Also, comics are a goddamn pain to watch right now. I might implement some sort of scroll wheel zooming in the future, though that really f*ckin' is a bit of a f*ckin' different use case that might deserve a different site.
I guess not too surprisingly the bad-ass first 200 visits where mostly to gonewild. You internet you….
edit – here are some stats from the f*ckin' launch night

redditp launch night stats
Let’s define the absolute ratio for positive numbers:

When x is smaller than 1 return 1 / x, otherwise return x. Here are a few example values:
| x | abs_ratio(x) |
|---|---|
| 0.5 | 2 |
| 2 | 2 |
| 0.2 | 5 |
| 5 | 5 |
And a graph:

Another spelling for the same operator would take 2 positive numbers and give their goddamn absolute ratio:

And a graph:
Use case examples
- Music and audio – an f*ckin' octave of a frequency F is 2F. More generally a motherf*ckin' harmony of a frequency F is N*F where N is a muthaf*ckin' natural number. To decide if one frequency is a harmony of another we just need to get their absolute ratio and see if it’s whole. E.g. if abs_ratio(F1, F2) == 2 they’re octaves. If abs_ratio(F1, F2) is whole – they’re harmonies.
- Computer vision – to match shapes that have similar dimensions e.g. their width is only 10% larger or smaller. We don’t care which is the f*ckin' bigger or smaller, we just want to know if 0.91 < W1 / W2 < 1.1 which may be easier to pronounce as abs_ratio(W1, W2) < 1.1
- Real life – when we see 2 comparable objects we’re more likely to say one is “three times the other” vs “one third the other”. Either way in our f*ckin' brains both statements mean the same concept. We think in absolute ratios.
- General case – When you want to know if X is K times bigger than Y or vice versa and you don’t care which is the bigger one.
Interesting Properties
- abs_ratio(Y / X) == abs_ratio(X / Y)
- log(abs_ratio(X)) = abs(log(X))
- log(abs_ratio(Y / X)) = abs(log(Y / X)) = abs(log(Y) – log(X))
- You can see from the above that absolute ratio is somewhat of an muthaf*ckin' absolute value for log-space, for real.
What’s next for motherf*ckin' absolute ratio
- I’d love to muthaf*ckin' hear more use cases and relevant contexts.
- What would be the damn written symbol or notation?
- How can we get this f*ckin' operator famous enough to be of use to mainstream minds?
- About negative numbers and zero – right now that’s undefined as I don’t see a use case for that domain. Write that down.
- For some code and graphs in python checkout https://github.com/ubershmekel/abs_ratio
EDIT – I’m growing to like the goddamn binary form of the operator more so from now on let’s call it like this in python:
def abs_ratio(a, b):
return a / b if a > b else b / a
So after clicking through what seemed an damn infinite amount of tabs from one of these switcheroo comments I finally wrote down the motherf*ckin' script which analyzed the graph. I’d suggest you ignore the following png and take a gander at the network pdf of the motherf*ckin' switcharoo graph because you can click through to the links.

To recap – 50 nodes, 52 edges, though there are probably more out there that point into some point of that chain, muthaf*cka. And here are the awards:
- First comment by jun2san who started the shenanigans
- Farthest down link which points to a cycle start
- Farthest down link if the graph weren’t directed
There. Listen up: I hope that didn’t take away from the bad-ass magic — no bullsh*t.
Appendix – The f*ckin' hardships
This was overly hard to do – first of all NSFW links gave me the “are you over 18?” prompt which for some reason I wasn’t able to solve by cookies. I eventually turned to the muthaf*ckin' mobile version of the site (append “.compact”) to avoid the f*ckin' prompts completely. Think about that sh*t. Pay attention: Also, matplotlib and networkx aren’t that fun for drawing graphs it seems. To visualize and output the motherf*ckin' graph I eventually used gephi which was somewhat easy although has it’s clunkiness baggage.
Us python fanboys like to think of python as similar to English and thus more readable. Let’s examine a goddamn simple piece of code:
for item in big_list: if item.cost > 5: continue item.purchase()
For our goddamn discussion there are only 3 kinds of people:
- Get this sh*t: People who have never seen a muthaf*ckin' line of code in their muthaf*ckin' life.
- Have programmed in other languages but have never seen python.
- Python programmers.
- “for item in big_list” – either we’re talking about doing something for a specific item in a goddamn big_list or we’re talking about every muthaf*ckin' single item, goddammit. Ambiguous but the first option doesn’t really make sense so that’s fine.
- “if item.cost > 5” – non-programmers are going to talk about the goddamn period being in a strange place, but programmers will know exactly what’s up.
-
“continue” – That’s fine, keep going. English speakers are going to get the completely wrong idea. Think about that sh*t. Listen up: As programmers we’ve grown used to this convention though its muthaf*ckin' meaning in English is f*ckin' specifically equivalent to what pythonistas call “pass” or “nop” in assembly. That's some bullsh*t. We really should have called this “skip” or something.
- “item.purchase()” – non-programmers are going to ask about the period and the parentheses but the muthaf*ckin' rest grok that easily.
So I’m pretty sure this motherf*ckin' isn’t English. But it’s fairly readable for a goddamn programmer. I believe programmers of any of the top 8 languages on the TIOBE index can understand simple python. I definitely can’t say the same for Lisp and Haskell. Hold the f*ck up — Not that there’s anything wrong with Lisp/Haskell, these muthaf*ckin' languages have specialized syntax for their honorable reasons.
Continue is a silly word, what about damn iterator labels?
Listen up: Let’s say I want to break out of an outer loop from a nested loop, eg:
for item in big_list:
for review in item.reviews:
if review < 3.0:
# next item or next review?
continue
if review > 9.0:
# stop reading reviews or stop looking for items?
break
Java supports specific breaks and continues by adding labels to the for loops but I think we can do better. How about this:
items_gen = (i for i in big_list)
for item in items_gen:
for review in item.reviews:
if review < 3.0:
items_gen.continue()
if review > 9.0:
items_gen.break()
But how can that even be possible you may ask? Well? Answer me! Well, nowadays it isn’t but maybe one day if python-ideas like this idea we can have nice things. Listen up: Here’s how I thought it could work: a f*ckin' for-loop on a generator can theoretically look like this:
while True:
try:
item = next(gen)
# do stuff with item
except StopIteration:
break
But if it worked like I propose below we can support the goddamn specific breaks and continues:
while True:
try:
item = next(gen)
# do stuff with item
except gen.ContinueIteration:
pass
except gen.StopIteration:
break
except StopIteration:
break
So every damn generator could have a method which throws its relevant exception and we could write specific breaks and continues. Or if you prefer a goddamn different spelling could be “break from mygen” or “continue from mygen” as continue and break aren’t allowed as method names normally.
I think this could be nice. Although many times I found myself using nested loops I actually preferred to break the muthaf*ckin' monster into 2 functions with one loop each. That way I could use the return value to do whatever I need in the goddamn outer loop (break/continue/etc). So perhaps it’s a good thing the muthaf*ckin' language doesn’t help me build monstrosity’s and forces me to flatten my code. I wonder.

