Friend of mine mentioned the book "The Seven Habits of Highly Effective People" by Stephen Covey. I started to read it today.
Working on monitoring zenpack for Docker. It adds to Zenoss a "Docker Container" component and monitors it's state.
Have tested and works on:
- Zenoss Core 4.2.x
- Zenoss Resource Manager 4.2.x
UPDATE: Guys from Zenoss asked me to grant it to them. It still distributed under GNU license, so feel free to modify it at your taste.
You know, procrastination is a way to make yourself believe "Hey, I will surely do this tomorrow". You don't. Thats the truth.
So turn procrastination OFF and just do it NOW!
Appcelerator Titanium (http://www.appcelerator.com) is an Eclipse based IDE and platform for mobile development. I have used it some time ago in a small project. Now guys from appcelerator moved forward with their Alloy framework, a mix of XML, Backbone.js and Underscore.js
ZenPacks.community.ResponsiveUI is a free zenpack that overrides some of Zenoss pages when you access it from mobile device. IT Infrastructure (devices list), Events console, Device overview and components, graphs.
Why it said milestone? From my perspective of view main points here is to access devices data, review alerts, components statuses and performance graphs.
Actually tested it with my Motorola Atrix HD Android 4.2 device, iPad 2 and iPhone 6 emulator in Chrome browser.
I like how middleware implemented in Django. It is a good way to make some alterations in the middle of request path. Middleware can check wherever user is authenticated to append request object with some flag or data.
Same can be done with Zenoss application. Built on the top of Zope application server Zenoss grants user to extend it with Zenpacks, a plugins to extend core application with new features. For developer it means that one can add a code into Zenoss to perform tasks he need.
Say we want to extend page in Zenoss with a check for mobile device. So we patch original page controller and substitute it's __call__ with our own:
from Products.ZenUtils.Utils import monkeypatch
# For mobile browser returns lite UI
with open(here('resources/templates/itinfrastructure.html')) as f:
t = f.read()
# For desktop browser returns default Zenoss UI
Monkeypatch decorator also saves original method in original variable, so we can call it without a hassle. Those patches can be stacked, so we (and other developer) may use it multiple times on one page controller. Say:
self.request.facebook_token = settings.FB_TOKEN
if not csrf_check(self.request):
raise Exception("Security error: possible CSRF attack!")
Middleware should be loaded when Zope loads your zenpack, so you may place your patches in the __init__.py module of zenpack. Or create for it separate module and import it from __init__.py.
A little plugin, a zenpack for Zenoss 4.2.x Core / Resource Manager
It adds to Zenoss settings for User Interface colors and a button to hide sidebars/menus, aka "Zen mode".
Most of time, I use 13" mac as my primary development environment, and hiding one-two side panels helps a lot in some cases. So why I developed this in my free time. About color settings - thats wasn't planned and have been added just for fun.
This is free to use and open-source zenpack, so you may get it and use in a way you like.
As always, hosted on GitHub: https://github.com/vsergeyev/ZenPacks.community.ResponsiveUI
Quantum computing is highly promising area in software. It highly suitable for tasks where complexity grows with elements count: searching path in graph, iterating over list of data, searching for match in DB. Quantum algorithms operates with Qubits, some kind of classical "bits" of data. When classical computers relay on defined state of information bit, programmed Qubit at given moment of time holds all possible values for given data chunk. Every value has own probablity to be true, depending on input data and operations over Qubit.
To start with quantum programming it is good to use Quipper Language. This is high level functional language at top of Haskell.
0. Download Haskell for OSX if it is not already installed. Haskell has nice graphical installer so it is obviously easy to set it up on OSX.
1. Download Quipper.
2. Install pre-required packages:
cabal install random
cabal install mtl
cabal install primes
cabal install Lattices
cabal install zlib
cabal install fixedprec
cabal install containers
cabal install set-monad
cabal install quickcheck
3. Unpack Quipper, open terminal application in it's folder and use make to install it.
We worked on this game about a year, and it looks no chanse to publish it in App Store.
So it is pushed to Open Source on GitHub: https://github.com/vsergeyev/sol
Here is game video samples:
Just added two useful functions to Rain class.
pause() - removes rain renderer from on-frame handler.
resume() - set rain renderer back to Corona on-frame handler, so it will make it rain again :)