#whoifollow if Isaac Newton were alive today, I’d totally follow him. He’s so #BadAss with his #Mane of hair
I’ve using Cloud 9 IDE and one thing that has cropped up is the need to hide sensitive information in public work spaces.
If you are unsure of what Cloud 9 IDE is, it’s a browser based Integrated Development Environment. It’s great for things like node apps and it has a few templates for things like Ruby on Rails, Node C/C++, etc… Head over to http://c9.io for more details.
The other great thing is that all projects have a terminal that adds a great deal of flexibility when coding.
I was trying to hide the API key and secret to the data store in one of my Node projects and because the projects on C9 are public workspaces other people can potentially see what you have written in your code.
The first thing I tried was to add an environment variable from the shell. This did add the variable but for some reason it wasn’t exposed in node through ‘process.env’ and the more i searched the less i found.
Not to be disappointed I looked through my C9 project and I found an area called Run & Debug and in there I was able to create different run profiles. Each of these profiles had an option to add command line arguments. After a bit of reading i found that these arguments are exposed in Node through the ‘process.argv’ array. Not ideal but it works.
In this example environment the argument was at index 2 in the array but this may vary in other environments. I did get a friend to log into their Cloud 9 account and see if they could see the run profiles and she couldn’t see it.
I’m not sure if this is the best way to do this and I would love to know if anyone else has found a better way to hide sensitive information in Cloud 9 IDE public work spaces.
Enjoy
After a bit more reading I found a popular node module called optimist. It hashes the options you pass in the command line. So now you can just pass in whatever key & value into the Cmd Line Args.
Have a look at the examples
I would have to agree with….
Ultimately I think Steve Jobs was good at making things look cool and that’s where we identified him as a revolutionary because everybody wanted to be cool and use an iPhone and so the industry moved.
Good read
Photons + Ultra Cold Atoms = Lightsabers
OMG Lightsabers could be come a reality…..
Well maybe not but this article states a breakthrough in an understanding of how photons interact with each other.
Yes that sounds really vague and I’m sure the physics behind this is really complex… But think of the lightsabers people!!!!
I propose we start a new organisation that pioneers the research into photons interacting. We could call it ‘Joule Electron Displacement Initiative’…maybe.
Anyway this article was pretty cool but it was way cooler because they mentioned Lightsabers.
Enjoy
Love this article on Coffee Script
Nicolas Bevacqua is a very passionate individual. He blogs about the obfuscation created by Coffee Script in things like answering questions on forums or posting examples
It’s quite a funny read and I personally agree with him. I’m not saying CoffeeScript is bad, i think it looks nice but the point being made is CoffeeScript !== JavaScript and you can’t expect people to understand your code if they have only ever known JavaScript.
Enjoy
Raffaello D’Andrea gives this demonstration of their amazing work with applying mathematics and algorithms to some quadrocopters.
It’s an amazing presentation and these guys are destined for huge things. I can’t wait to see what the future brings.
Not a bad move from steam, the home theatre / game lounge is a growing area and makes sense for a product like steam to go into this market.
The only issue is valve needs to make this OS work well. If it’s plagued by bugs and ‘Service Unavailable’ issues then it’s not going to fly with the lounge gaming community.