Posts

Showing posts from October, 2015

Tic Tac Toe Bonanza

Image
I have been staffing teams, coaching and interviewing for a long time and at multiple stages of those processes, I have always notices either about myself or my colleagues the application of some old habits.
Most recently a reader of this blog asked my opinion for an upcoming developer interview loop at a major corp. That led me to come up with a post on the subject. In basic terms, as a developer, you should expect to go through the following cycle of r knowledge. Warm-Up Question(s)Data StructuresAnalytical ThinkingAlgorithms In 20 years of experience that has been always an observed pattern in hiring a developer. If they don’t then doubt the company that is hiring you to be on the safe side. That usually also translates, and I can only generalize as the job description craft that flows as necessary, with the following practical questions:
Reverse a string, quicksortHash table, linked list, a queue of some kindHow much gift wrapping paper is used during holiday time?Map reduce, crypt…

Reading EDFs

Image
I was tinkering my homemade machinery for tracking my sleep. I often break it in the process of improving it :-) While I was tinkering my 10yo started asking questions (a ton of them) and while I was oversimplifying so she would not disappear at the first acronym from geek dad, it occurred to me that it is not common knowledge what you get out of traditional hospital devices normally used in a sleep study. DOH! In a nutshell: They attach around your body a ton of wires and often nostril connections to monitor your breathing patternsThere’s other hidden equipment into the room where you sleep that monitors other vitalsA technician monitors (or s/he supposed to…) you overnight and through a specific software marks (annotate) your streams of data coming from the equipment That type of gathered data is called EDF. There are an EU and US format, they don’t have too many differences from each other. Those types of files can be read with an EDT viewer, there are a few available and plenty fr…

Pretty code for blogging

Occasionally I use chunks of code in this blog, one lament that I heard (and I agree) is that the formatting often makes it difficult to read or copy the code chunks.
There are multiple solutions out there and I haven’t been using primarily for laziness, however, I managed to build a tiny script for my blog offline editor that snags in the HTML code necessary without having me going to the annoying step of switching from Rich Text to HTML. I used Google Prettifier that is hosted on GitHub. The setup is super simple and is explained already in this markdown. The result should be that the following code should not appear as of after a long night with your buddies and plenty of vodka in your bloodstream… func presentModalMessageComposeViewController(animated:Bool){ifMFMessageComposeViewController.canSendText(){let messageComposeVC =MFMessageComposeViewController() messageComposeVC.messageComposeDelegate =self messageComposeVC.body ="<#body#>" …

Keep Secrets, Secret.

Image
WikiHOW, gives some good pieces of wisdom when it comes to keeping a secret in the most traditional way of its meaning. When it comes to keeping your records, passwords, exchange message or any other mean that needs to stay in a close circle then you need to rely on tools that can help in achieving just that. About the history of cryptography, there’s a lot out however if you want to hear the juice of it you can watch the video below directly from 4 top-top experts. There’re several commercial and open-source tools out there that you can use to improve your privacy and data storage experience. In this post, I will explore some of those that I have successfully used in the past. Ultra generally speaking public-key encryption works on a simple principle. You have a piece of my puzzle that I call it a public key. I am the only one owning the other piece which enables the translation of gibberish into plain understandable language. That is called the private key. Mathematically speaking t…

C# with Visual Studio on macOS

Image
I have been coding with Microsoft .NET in C# since the day it came out as BETA1. On Windows it is my favorite language to deal with. Once I learned that the new CEO of Microsoft had pushed his ranks to think more cloudly therefore more multi-platform oriented I checked out the new Visual Studio IDE, which is free and multi-platform. I absolutely love Visual Studio for Windows, there’s nothing that beats it. I wanted to give a try the version for Mac OS X. My default platform for inventing. The experience is not remotely close to the richness of what you get on Windows but man they are on an awesome path to nail it. .NET comes to OS X (and Linux) via mono and other esoteric open source + corporate touches coding efforts. So documentation is a bit sparse but the value is coming out with regular updates. Foundational and Terminology There is plenty of new terminology to be understood and memorized, in a nutshell, the keywords that you want your brain to process right away are: DNVM, MCS…

Cocoapods and XCTest

Image
If you have been searching for a type of chocolate and ended up here stop reading as this type of chocolate isn’t going to be for your cup of tea. You know and love Cocoapods and you would like to support testing with XCode using those beautiful time-savers within the pods in your UI test targets too. There is only one problem. You paid a visit to the great Natasha’s blog and her solution although very elegant, didn’t work for you. Then you searched StackOverflow like nobody business and that left you more confused than with things to try. Finally, desperate and bleeding you ended up on this Github post. Which finally created in your mind an idea: I AM NOT CRAZY! This shit should actually work and it doesn’t. News flash for you, no. You are not crazy. At least pod related crazy. What happens If you run UI Tests, at build time XCode builds and then Pod scripts do not copy to the test target build location the frameworks belonging to the main target that you want to include. Not only t…

Gaming hints

Image

IPv6 - Where’s my RPi?

Image
A while back I posted my script for scanning your local network in search of your Raspberry Pi, IP address! It works great and every time the DHCP changes the assigned IP finding it is a breeze (I have no monitor or else attached to my Pis). Most recently I added a wireless adapter to my Pi and for reasons that are not totally clear to me while the ethernet interface gets an IPv4 address, the wlan0 gets an IPv6. At the time that I am writing this, a few folks over several forums are telling that’s “normal” followed by a various interpretations/explanations. That made my life complicated since the script wasn’t built to support IPv6 and nmap at the time I wrote that script (ages) didn’t support IPv6 either. This morning I set to learn more about the protocol, fix the script and share my experience. I am not a network engineer, I get by just fine but take that in account if my story doesn’t align with yours. And if you are a network guru please share away, I will be happy to update the…

Philosophy behind the making of Sensoria, the company.

In 2009 I had a personal drive to come up with something that I could have considered a game-changer. Not just as a functional force to generate an extra income but as something that would have pushed people in adopting it, naturally, self-driven because was simply filling a gap in people’s life. At that time the wave of wearables that so much is moving the market forces today (2014) wasn’t there. The demand wasn’t as near as strong as it is estimated to be today. Some forecasting is pretty bullish about the future of the wearable market and data does support that vision. My thinking at that time was: There is a general need of understanding more about what we do with our body, we as human like to “count” everything. We walk in a parking lot and look at the number of cars parked and judge “many” or “almost empty”. We aim to track our weight, food intake, we monitor our cash in terms of numbers, not in terms of purchase power.

Some call this phenomenon as quantified self. At the time …

Hacking Boxee

I wanted to validate a principle “if I am watching a movie and I was supposed to exercise, can I pause the movie and get a nudge?”. To do so I started hacking BOXEE. The product is commercially dead now but it still by far my most favorite MPC. In order to control the playback system, you need to make sure that you can write code that is executed while the movie is playing. In its natural state, the Boxee doesn’t let you do that unless you write an application that playback. That route was possible but also was less entertaining from the development point of view and there’s basically zero support out there. So I decided to hack Boxee with an upgraded twist. Entering… XBMC. Unless you have been leaving under a rock inside a cave covered by glacial material you should know what that it is, if you don’t just take a look at this. The first step was to add support for installing anything via ssh and memory stick. That can be easily achieved in the following way. Specifically, you add at …