say you have three numbers (in a vec3 for example), and you want to sort them from small to big without branching. you can do this:

vec3 cuteSort( in vec3 n )
{
    float mi = min(min(n.x,n.y),n.z);
    float ma = max(max(n.x,n.y),n.z);
    return vec3( mi, n.x+n.y+n.z-mi-ma, ma );
}

isn’t it cute?? i’m very proud of my find (on how to get the middle element, that is).

san francisco parking signs:

“don’t park from tuesday to friday from 9am to 5pm, or sundays, unless noon to 7pm, or 4rth thursday of the month if no full moon or main cultural festivity, except if commercial area or school around and not in vacation period unless it’s between 7am and 9pm.”

now solve that equation in 5 seconds before it is too late and somebody else takes the spot.

today, after five years, i flipped the computer keyboard at work, and i got enough bread crumb to feed a family for a week.

i must remind you that there are assholes of all colors, sizes, sexual orientation and ages, no matter with what minority group you want to identify people.

for example, little adorable looking old ladies can be true assholes too. just saying.

“don’t sloth me down”

because laziness is tempting and contagious

besides distance units, weight units, volume units, temperature units, date formatting, and the day the weeks start with, it’s being a while now that the world has standarized the electrical sockets, the paper sheet sizes and the bed sizes as well.

and somebody has still to catch up…

if your sentence starts with “in the morning”, i already don’t like it

- para español, diga “español”
– 1
– for schedule information, say “schedule information”. for ticketing information, say “ticketing information”. for other information, say “other information”. to go back to the previous menu, say “back”
– “other information”
– sorry, i did get that. for schedule information, say “schedule information”. for ticketing information, say “ticketing information”. for other information, say “other information”. to go back to the previous menu, say “back”
– “other”, “information”
– sorry, i did get that. for schedule information, say “schedule information”. for ticketing information, say “ticketing information”. for other information, say “other information”. to go back to the previous menu, say “back”
– “Other”, “Information”
– sorry, i did get that. for schedule information, say “schedule information”. for ticketing information, say “ticketing information”. for other information, say “other information”. to go back to the previous menu, say “back”
– “FUCK YOU”
– sorry i did get that. for shcedule information…

speaking of science. i found this in the book store. it seems this guy called “Charles Darwin” claims something about the natural selection of the species that involves an evolutionary explanation to the forms of life we see around us. it’s very HOT news, and people all over america are arguing about it and having controversial disputes! probably because the proposed ideas are too modern and revolutionary!

:(

if the ratio between the size of the biggest thing in the universe (observable) and the size of the smallest thing in the universe (measurable) is 10^63… then why exactly are people obsessed with zooming into fractals to limits such as 10^1000? is it a “look, my dick is bigger” kind of thing?

speaking of values again (sorry), in economy and business this time, i believe the idea of measuring success through growth is not necessarily the best metric and philosophy. the simple observation that resources cannot grow forever should be a good hint. i feel.

(reading again how proud companies are to announce their quarter’s growth figures, and shacking my head as a result)

osmosis, as a method for studying, totally works. or did work for me, at least in this form:

look at the pictures in your books. think about then while in the shower, or the metro. but don’t read the text just yet, or if you do, do a very light diagonal read only. don’t study just yet, keep, at best think about the pictures during shampooing, your commute or in the supermarket. let the knowledge slowly filter into you and crystallize into intuitions.

then, before the exams, go study as needed, if needed.

it’s not 100% effective, but it always worked for me to some degree. if you are student, i recommend it. really.

i have this phone which is 2 generations old. it works great though, it does its thing smoothly and effectively.

however, i have just be given a new phone for free which is the latest of the latest. specs lovers who brag on numbers such as megapixels, gigahertz, cores and optics would masturbate to it for sure. it is the newer and fancier. supposedly.

because in my humble opinion, everything looks the same as in my old phone, i can’t tell if there’s any relevant difference. same software, same experience, same photos, same everything.

to be honest, i feel the mobile phone, as a product, has reached it maturity and there’s no need for further improvement. it seems to me that from now on new galaxy and iphone versions will simply be released by pure marketing inertia, or perhaps as planned by pre-programmed obsoletion. but to me, mobile communications and entertainment is a solved problem ladies and gentlemen, just like the word processor or the dinning table. unless there’s something new presentation paradigm arriving to our smart phones (such as virtual reality), the phone as we know it to day is a solved problem. thanks, lets move on.

of course i’m simplifying here for the sake of brainstorming. but i do feel this way. in fact, because of it and some other personal reasons, i have decided to put this new supposedly fancy phone away in a forgotten drawer and keep using my old phone.

saw this at the store today. offensive thoughts to the left, playful ideas to the right,

if you have walked in sanfran today… in the morning, under this beautiful sun, under this gorgeous sky, you have fallen in love with the city for sure.

perfection is a word for excellence, precision and correctness. there needs to be another meaning for perfection, one with connotations of blessing, and that expresses joyfulness. and then i’d use it to describe this morning walk in downtown in which, indeed, i’ve fallen in love with the city again.

live can’t get much better than this.

how amusing it is that when data aligns with our believes (and learnt truths) it is called “being informed”, but when it doesn’t it becomes “propaganda”

on delusions and learnt truths

i’ve been using this word for a while.

like “huggable”. but when i recently heard the word “huggable” in a movie i got so sad and disappointed, because it felt like i had been stolen my word.

of course, english is not my language, and i should realize that chances are little i invent and keep ownership my own words like i do in spanish.

when i heard “huggable” in that movie, i immediately feared that my beloved “prettiful” wouldn’t be mine either, as i believed it was. and indeed, google revealed that many people are using it already out there.

still. i’ll keep using them, i think “prettiful” and “huggable” are prettiful words.

mixt greens? mixt meats, please. asap

when it comes to bed sizes, i was aware of the usual “twin”, “full”, “queen” and “king” names. but today i learnt there’s something called “california king”.

of course, knowing californians, all i could think of at first was a massive swimming pool sized bed with the photograph of arnold schwarzenegger printed in it on which you have to roll for 5 minutes before you find your partner in it. “that’s what California King must be”, i though.

however it seems it’s not that crazy at all – in fact it’s just a king size with a slightly different aspect ratio. i’m glad. but also slightly disappointed.

Another very quick doodle during dinner based on a previous mathimage. This time the emphasis was into getting cheap antialiasing working, and little more. It was a fun one! Realtime animated version, and open source code, here: https://www.shadertoy.com/view/llXGR4