Tag Archives: open source

Finally got Webmaker-app running on windows 8.1!!

After so much grueling time spent removing, updating, and downloading software and dependencies I’ve finally got it running.

All kinds of different errors would pop up just form npm install, a lot mainly to do with the maria sql dependencies, or possibly some node-gyp dependencies as well.. either way keeping track of these was becoming time consuming and costly to other work and school as well.

so I snooped into the dependencies for bower and decided that those would be important, and I installed visual studio 2013 in order to get the VC dependencies I would need, as well as the Microsoft .NET Framework 2.0 because it showed a necessity among the errors I was getting.

Npm install still showed a few errors after running the command a couple times, but my “gulp dev” eventually brought up the app so It’s safe to assume I’ve finally got something up and running.

Special thanks to Ryan Dang and Kate Hudson for their great input!

Off to work..

Ramping up on Webmaker-app

So after adventuring through David’s choices for a project to work on for our next release; I’ve chosen Webmaker-app.

I found this appealing mostly due to the fact that I’m also in York University’s Tech Ed program, meaning that I’m interested in finding ways to use the web and other tools to inspire and engage youth into technology and that its use goes beyond taking sweet selfies.

I’m also sure that since the main community is all about furthering this exact cause, that they’ll be empathetic to me being a n00b trying to learn new things myself, so I shouldn’t feel overwhelmed to help out or ask for help.

I’ve signed up for bug #305 (https://github.com/mozillafordevelopment/webmaker-app/issues/305) which is to display to the user that something has gone wrong with their sign up process because they haven’t “accepted” the terms and conditions.

I’m excited to start foraging through code and get to resolving this.

Implement Du?…Du hast…. Du hast mich..

This is exactly how I feel about this release. I come to my keyboard with bloodshot eyes, coffee stained shirt, and bleeding fingers, but it’s finally done. It took a bit of time finagling around the filer code to understand where certain things belonged.

First steps- what the hell is a filer?? I started reading about the project in the github pages Dave had sent us just so I could have a broad understanding of what it was for us to do this release. So Filer is a neat little POSIX based file system  interface for node.js; alright, got it, we needs commands!

Next I needed to know what to du (see what I did there?). Ok seriously though, I found out that du was a utility that displayed the disk usage of a directory structure.

Dave’s presentation of how to go about creating this was actually extremely helpful. Like him i started putting two and du together ( I swear i can do this all day). Looking for code among the repo that resembled unix based calls like cat, touch and ls. I came to this conclusion :

shell.js &
filer.js &
test-utils.js &
(insert unix command here).spec.js  … all had a relationship!

This WAS THE MOST TRICKY PART and took almost more time than coding the damn thing! The biggest issue here was that shell.js and filer.js BOTH HAD IMPLEMENTATIONS! WHY?! THis IS S-du-PID!!

I started slowly and first placed code in test-utils as to declare it ready for testing, then basically copying a spec.js file and modifying it to just recognize the du function. Then placing the implementation ( a very basic one at that) in BOTH shell.js and filer.js (which i still don’t know if it was correct or not but we’ll see after the merge request).

Du has very similiar functionality to ls. Meaning that they both recursively traverse directory structures collecting information about files and directories so I decided to mimic the code found in ls implementations as well as the ls.spec.js code test file.

The rest is history, coding didn’t take much too long after getting a hang of the workflow. I really enjoyed this chance to really play with my editor and use different plugins; like JSHint. I plugged that sucker in and set it up on a shortcut key so i could constantly evaluate my javascript code in case i missed semi colons or brackets (ohhhh those freaking brackets!!!!!!!!!!)

All in all this was a great first exercise and a real eye opener. I only wish i had gotten it in sooner. Sorry Dave… me bad student…

Looking for a JSHint????

So I’ve decided to pick JSHint from the leftovers of research options for our case study.

JSHint is a community-driven tool to detect errors and potential problems in JavaScript code. Developed and maintained by Anton Kovalyov (who holds the Grandmaster title of chess in Canada), it is very flexible so you can easily adjust it to your particular coding guidelines and the environment you expect your code to execute in. JSHint is open source and will always stay this way.

Its License is fairly standard in the Open Source sense. All that’s really required is to place the copyright notice in all copies and portions of the software. Also because it includes the JSLint library, Douglas Crockford (the creator of JSLint) stated in his license that anything with his software must also include this little tidbit just for the lulz…
– “The Software shall be used for Good, not Evil.”

Any code base eventually becomes huge at some point, and simple mistakes—that would not show themselves when written—can become show stoppers and waste hours of debugging. And this is when static code analysis tools come into play and help developers to spot such problems. JSHint scans a program written in JavaScript and reports about commonly made mistakes and potential bugs. The potential problem could be a syntax error, a bug due to implicit type conversion, a leaking variable or something else.

The codebase in github currently has over 150 contributors and is used by over 30 different companies and projects including Mozilla, Facebook, Twitter, SoundCloud and Yahoo!.

Getting involved is very easy. There’s a Git repository with all the code (https://github.com/jshint/jshint). If a developer would like to get involved, they just need to clone that repository, make changes* and open a pull request to get their code in.
* To find what changes one can make, they can go to the list of bugs and fix one of them.

Anton’s Handles are:
email: anton@kovalyov.net.
twitter:https://twitter.com/valueof
github:https://github.com/valueof

What’s up with this EULA thing?

So I decided to peruse a popular piece of software’s License agreement; Windows 8. I figured that it would be interesting to see what the agreements are that we blindly accept so that we can continue on with our lives.

I chose the Windows 8 EULA that is distributed with a computer. I’ve never actually read one of these things all the way through but I managed to find a few interesting things.

“Automatic Internet Activation”
This little clause in the “How does Internet activation work?” section stipulated that once your PC verifies an internet connection, your OS will immediately connect to Microsoft servers to verify that your installation is legit (Skynet anyone??).  This is to make sure that the Windows OS you have installed is the proper one licensed for that specific PC, and btw, “you may not bypass or circumvent activation“.

“How does Microsoft use your information?”
Not only does it connect to the servers and verify, but it also sends system info as well about where you are and if there are any issues with your version of Windows.  This clause also stated that Microsoft will share this info with vendors (but mostly error reports) so that other developers can be up-to-date with issues regarding the OS.

“We know where you are..”
Another interesting tidbit I found was in section “3.CHOICE OF LAW”. Laws are different across the varying countries on this great big earth of ours, and now I understand why they ask us to choose which region we are in when we are installing our software. Microsoft knows which country your version of Windows belongs to and once its through the activation process, they verify and allow you to continue installation/registration.  I never considered that location would be a great issue. It seems that if you are installing in a certain area, Microsoft tailors its updates and installation according to where you are, and if you are trying to install the software in the wrong location, Microsoft withholds the right to adhere you from updates or even complete installation.

Now to “Open” things up (see what I did there 😉 )

I decided to look into an Open source license from Apache since I’ve used so many of their services especially Maven and Tomcat.

What I really liked was that they make it clear who is who and what is what.

‘”You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.’

‘”Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.’

As much as I like being told who I am ( actually I don’t), I actually enjoyed reading this License; and not just because it was so short. The license clearly states that we can do whatever we want to with the software and what our responsibilities are. They even absolve themselves from any issues if you decide to start making a product and selling it.

 So in conclusion what have I really noticed about Licensing? well its pretty clear. Licensing protects software and those who manufacture/sell it. These licenses lay down the rules of use of the software for which it was originally made; so things shouldn’t come as a shock to you if you try doing something you weren’t supposed to do; like give a friend in Australia your Canadian registration key, Or try and go after Apache if you can’t configure your tomcat server to work for your own homebrew enterprise application. As developers in training Scope means alot to us, and licenses help to establish what the proper use of software really is.

HELLO DPS()(…

Hi Everybody!  I’m Frank and I’ll be using this blog for posting things for  DPS909 and possibly other courses as well.  But first, an introduction is in order..

I’m in my 7th semester of the BSD program, freshly back after spending a year working at BlackBerry for my co-op. I’m also in my second semester of York’s highly advertised Bachelor of Education in Technological Education program. I love anything Tech related especially video games, but I still love to go out and enjoy live music and meeting new people.

I actually used to be in construction as a concrete finisher but decided to take a turn into something new and dusted off my passion for technology and joined the BSD program. Working at BlackBerry this last year has really opened my eyes to what it takes to run a tech company, especially one so vast as BlackBerry.

Things I’ve worked on at BlackBerry:

  • MVS – Mobile Voice Solution – allows voice calls through data or wifi
  • IOT proof of concept – connecting medical devices through blackberry enterprise server infrastructure
  • Enterprise Continuous Delivery –  Code integration through the use of Jenkins Build systems

H-enyway, I’ll post up some things about EULA very soon