This is a list of the things tech that I have been given, in one way or another, in the last few weeks.

  • Create a minecraft server
  • Make a docker version of minecraft
  • Expand said server with kubernetes
  • Commercialize the minecraft docker kubernetes setup (MDK)
  • Now repeat but with RStudio (Some rstudio living in a docker managed by kubernetes)
  • Repeat with wordpress (this has been done)
  • Perform some RF analysis using the rdk (rstudio, docker, kubernetes) setup
  • Commercialize the RDK

What is amusing is that, while the list is in itself doable, and doubtless has been done before by many other companies, these requests all originate in some users that find themselves strapped for resources, needing something urgent, or possessed with a fiery DIY or at least a OIT attitude that leads them to avoid the existing commercial services.

I completely agree with that attitude. Open source makes life easier, people happier, and bean counters smile.

Tagged with: , ,

To install SuiteCRM, you have many options,but two of those are to go with a bitnami account, or simply to self-host. I am choosing the hard way, because what is a SaaS implementation without a little bit of pain? Furthermore, I get to completely manage the important aspects of the CRM implementation, and can choose different directions without depending too much on third party vendors.

First, get a linux distro. I am using Ubuntu, because that’s what is easier.

Install a new user with privileges; let’s choose a tree:

adduser poplar

And now, you wil be prompted for a difficult password:

Set password prompts:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Let’s give this user SUDO powers:

usermod -aG sudo username

Now that you are not that dangerous, let’s update and upgrade with apt. All the cool kids are using apt:

sudo apt update && sudo apt upgrade

Then, install all ancillary software to get this thing working:

sudo apt install apache2 libapache2-mod-php mariadb-server, php7.0, php7.0-curl, php7.0-gd, php7.0-imap, php7.0-intl, php7.0-json, php7.0-mbstring, php7.0-mcrypt, php7.0-mysql, php7.0-xml, php7.0-zip, php-imagick

Great, now set up your SuiteCRM, by changing the configuration for PHP in your ubuntu machine. Is ubuntu generic now? Can I say it in lowercase?

vim /etc/php/7.0/cli/php.ini 

OK, these are the values that you want, just so you don’t get crazy errors that have nothing to do with your work. These come later.

post_max_size = 64M
upload_max_filesize = 64M
max_input_time = 120
memory_limit = 256M

Let’s restart Apache:

sudo service apache2 restart

Fine, now you are ready to install the interesting stuff: the database.
First, let’s make it secure.

sudo mysql_secure_installation

And we make sure these are the answers:

Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

The last time I put a root password, the database was a bit finicky. Things might have to change there, though; and that is a shame, because there is not really a lot of info on this CRM to go to; the fora, and couple other websites, and voila, c’est tout!

Ok, now let’s wait another 8 months for my second update. Even George RR Martin writes faster than me.

Tagged with: ,

This was going to be a magic post about clustering an it amazing abilities to find out hidden gems, gaining insight from the data, reducing a problem to a manageable situation, or better explaining a given situation to business partners that might need to focus on an appropriately segmented market.

The problems that I usually deal with have a mix of categorical and continuous variables, often identifying demographic information and geographical information tied to customer satisfaction surveys that are one of the tools a business partner has to answer very specific problems about their planning process and the evolution of their offers.

Clustering is a great way to group these existing customers, identifying common characteristics and adjusting offers and planning process to satisfy current and expected demands. But, the categorical data puts a dent on the clustering process: I can’t properly calculate distances between observations without defining a metric or properly adjusting for what the categorical distances mean. Many people have mentioned that there is no sense on making, say, the days of the week into a number, because what exactly means 3.3 days, half a Wednesday? What does mean when you have 3.5 ethnicity? We have to find a new way to measure that; frequency of categories and measuring medoids.

Next: datasets that feature categorical and continuous variables.

Recently, with all the hoopla about Star Wars and derivative stories, there has been an increase in request with playtime with the stories relating to Star Wars and the changing contemporary mythology. My kid has been asking about Jedi, the Force, droids and things like it.

So, we started watching Episode IV, with a huge amount of commentary about the politics of the time when it was written, the desire of the author to write around Joseph Campbell’s the Hero’s Journey, the need to make the characters larger than life, almost unbelievable, and therefore the hyperbole, the exaggeration and, most importantly, the need to accept that the story is flawed, and we have to accept it without close examination, just watch and see the journey of our poor hero.

Of course, after all has been said and watched, all the Legos played with, there is one request.

Kid – “I want to make a Death Star.”

Me – “There is a nice Lego one.”

Kid – “No, it has to be real size.”

Me – “Of course.”

Kid – “Can we have it finished for the weekend?”

Can’t be easier than that. I just launched Digital Ocean instance, appliance Docker, and install Rocker. A perfect, nice RStudio server to play with when on the move.

Tagged with: ,

papier mache bullIn these days no party is complete without the correct amenities: a magician, a caterer, the correct decoration for the season.

After all the papel picado has been bought from that little quirky place in the totally not sketch store down the mall, bowdlerized and non-threatening enough, what else can the happy WASP get for a proper color for the party? We have the Day of the Dead decorations, the ghoulish decals and lights, and the yummy biscuits, what else can you get that your neighbors can’t simply buy at the local Whole Foods?

Why, invite a real Latino, of course!

They speak with an adorable accent, are not as threatening as the African American kids at school, will probably make less money than your spouse, so not a challenge there! Since these Latinos sort of understand English, you can always depend on them to give you help when carrying trays full of pan de muerto, and they are so helpful when cleaning afterwards!

Also, since they are trying to prove that they are better than the other minorities, their gifts are large and extravagant, the sort of thing that you can always use as a conversation piece in future parties; nothing to play with, of course, because these garish colours are dreadful, and so difficult to show, but above the mantel, these papier mâché bulls look astounding.

Be wary, though, there are caveats when inviting these colorful characters to your home. First, they will want to talk to you, with their terrible accents and their crazy loud shirts. Also, all those gold chains! Luckily, if you invite two they will just sit in a corner talking quietly amongst themselves. In that note, though, do not invite many more, because they get loud and obnoxious when in groups! Or simply ignore them, because soon they will start doing their silently stare into the horizon thing. It must be some shaman thing from this ancient ethnic group!

Finally, once you have them, if forced total to them, be sociable! These Latinos will love to answer your questions about their country and culture, so remember to ask them where are they from! Sometimes your might have to ask many times, like from where really, or their family, or their ancestors. Also, ask them where did they get their lovely accent, where to get a nice maid to clean the house, or what is their favorite Mexican restaurant, no matter whether they come from Peru or Chile, everybody knows the Latinos all love Mexican food.

Good luck with your party, and make sure you pin it!

And then somebody tells me that the technique I am using was developed only three years ago, and you can’t find information about it.

Seriously? this thing is as old as WWII.

school of fishThe continuous attempts to tame the flood of information have a lot in common with detecting emergent patterns in complex systems: we look for a deterministic model that can explain the behavior detected in the large number of observations, present that model and observe how it stacks out against further observation that might or might not fit into the model.

Our theoretical thinking, though, is limited to the outliers that actually perform the creation of the models, the examination of the underlying assumptions and the critical review of the results presented.

Yes, the large majority of data scientists behave in a critical manner, explore within the limits of their modelling tools, and then use those limitations to explore further, refine and limit their model and observation parameters.

Those limitations, the constraints inherent to the production of a theory of the particular model under study and the limitations of imperfect knowledge and limited computing time move scientists to accept limited modeling techniques, as well as try to extend the metaphor of the underlying theory, effectively assuming the model used to study physical or economic events might use the limited assumptions of theoretical spaces within which the model is first derived.

For example, the linear model attempting to simulate and predict a situation in which there are at least four independent variables is going to fall short of explaining situations that arise in those variables, Furthermore, the assumption that the model is linear is also one that further reduces the validity of said model, since it is impossible to explain various nonlinear effects that might occur. The presence of higher order components will lead to interesting behavior that can be explained with many different mathematical tools, but definitely not within the framework of a first order linear model.

Seeing this happen in academia makes me think about the silo nature of research: models that could benefit from the hand of a mathematician or physicist are left unregarded, barely explained, while extra rigour is demanded of the most simple of models, in an attempt tom formalize and eliminate criticism due to methodology, when that methodology is not at fault here: the initial assumptions forget that the reality being described is perhaps better described using some other, higher order, dynamic description.

Meanwhile , we get to listen as migration is explained as dependent on happiness, while a whole other raft of environmental, economic and social factors are left unmentioned.

These days that handle heat and patriotism, mixed with bubbles, street carnivals and overpriced flags made in China, are also reminders of subtler emotions, deeds and promises: we all read the books, and can almost TH understand the meaning and connect with the context, but history evades us amid the myriad distractions posted by the press, the friends and the parties. 4th of parties indeed, because we all became engrossed in enjoying a few days off, relaxing and for a couple days, allowing time to flow without a particular goal but that of letting the sun go down.

Simmer in the heat, allow the chair to creak and the ice melt, high pitched noises in the background squeals of delight and enjoyment, all along with the threat of storms and bugs happily ignored.

Tired feet, air conditioners on high, ice cream for once being a valid option, and a long walk home after a town festival, caring our thoughts about independence and rights as some cherished antiquities that inform our present hey need to be asked and aired far more often.

tax dayEverywhere we see that Wilkinson’s book The Spirit Level applies; one of these studies points to regressive taxes as indicators of inequality and their higher associated costs: The NYT published an article about it: In the South and West, a Tax on Being Poor, and one of the paragraphs sums it succinctly:

For every $100 increase on taxes at the poverty line, we saw an additional 7 deaths and 78 property crimes per 100,000 people, and a quarter of a percentage point decrease in high school completion.

The taxes tell part of the story, but as with other indicators, they are only a glimpse into a system that skews towards affluent minority, while eliminating the social safety net and penalizing the lower percentiles in ways that eliminate mobility, increase morbidity and places additional costs on the social group.

Early on we were having discussion on the social contract, and how the perception of that contract allows people, constituents, to express their concerns and have actual results in a decent time frame, thus diminishing the pain that misguided policies might inflict. However, when the contract emphasizes the individual right over the social one, we see issues such as the ones presented in the NYT article.

Austerity has long proven to be an ineffectual tool, and the policies resulting on measures that resemble that are painful, regressive and costly.