While working on a custom HomeScreen for my FirefoxOS phone, I had to work my way around some undocumented things. As far as I understand, the webapp manifest documentation on MDN is far from being complete. While using the Application Manager, I realized that some application had no icons and as I knew, the Communication app should have multiple buttons.
Building an application for FirefoxOS is fairly easy as applications are simply html pages. In this tutorial, we'll build a more advanced type of web app using AngularJS as a base and browserify to compact things together. In our example, we'll make a simple StartStop timer application.
I recently bought a new phone as I broke my Nexus4 screen and repairing the screen would be as expensive or more expensive than buying a FireE. As I'm quite interested in FirefoxOS, I decided it would be much more worth it to get this phone. It doesn't much worry me that the current ecosystem on FirefoxOS is empty. As the platform is new, it feels like fresh air. There is a lot to be done. What we can see from FirefoxOS 1.3 is quite pleasant.
Unlike other database, couchdb can be used as a frontend database available directly through http. Couchdb security works in two modes: the admin party and secured. As long as there are no admins setup on the server, the server will work in admin party. When in admin party, anyone can do anything. When an admin is created on the database, the couchdb instance switch in a secured mode where there are 3 different types of users.
Recently I searched for a way to configure my Node.js application but most solutions I found on StackOverflow kind of depend on environment variables. I believe that relying on environment variables is pretty awkward and could be a potential source of unexpected problems. I got used to explicitely use a configuration file for pyramid web applications. I decided to achieve a more or less similar approach for my nodejs server.
After acquiring my new server, I came up with the wish to do things right. I wish that I can deploy most of my work with an integration server. Yesterday I got Strider to work “correctly” and I came up with the idea of managing my nginx config using Strider. Note that all of this could be possible using Jenkins/TeamCity and so on. The idea is quite simple and it's pretty cool once it works.
I recently switched my old server to a new one and with it… I decided to drop the bad habits and install a continuous integration server. For its simplicity, I'm currently trying to work with Strider. I'm not really interested in installing a Java Continuous Integration server like Jenkins or TeamCity.
Whoever is reading this, I've got some problems recently but now I feel much better and I felt that this discovery I made today was worth spreading. I've been messing with FirefoxOs for a couple of days and I find it magic. It's pretty far from perfect, it's probably barely useable for someone with an Android/iOS/wp8 background etc. From my point of view, FirefoxOS is a pretty impressive piece of software.
Context managers are things that are probably well known in the python community while it might not be well known that the use of the keyword “with” is actually a way to use a context manager. The
with statement has been introduced in python 2.5 in the pep-0343. The context managers define two functions:
After working with Scheme for some times, I really felt that I was missing modules from python. In python, it's quite simple a file is a module. There are also native module with a special extension and folder as module too using the
__init__ syntax. Modules have there own global scope which means anything defined in a module isn't global for every modules explicitely. Generally a function/variable is isolated in its own module. In Scheme, this is a whole different thing.