Skip to main content

Posts

I-Team vs We-Team

Agile Agile Agile....  The loudest buzzword of many I get to hear lately.  Even though we hear it does it actually sink in to our everyday practices.  So many seem to know the Agile Manifesto to heart, and also the 12 principles.  What is interesting to me in working in some of the teams is that even though we call our team an agile team, it still acts like the old waterfall project work. I could spell out many reasons why I see conflicts that inject a lot of churn within the team.  However the biggest and I believe root cause is the word TEAM itself.   For instance within your own group have you ever said or heard something like, "we all should be responsible for the outcome"?  Then when someone is asked to do something a little outside their comfort zone they get mad or offensive and say "That is not my job", or "I do not feel qualified to do that." This is what I like to call the I-Team.  Or Individual Team.  In General these p...

Juniper VPN using OpenConnect

Finally there is a tool worth using for vpn besides the default from Juniper that works on Linux. Its rather quick to get started. Install Arch $ pacman -S openconnect Install Ubuntu $ apt-get install openconnect Install Fedora/RedHat $ dnf install openconnect or this if you have older Fedora/RedHat $ yum install openconnect Once you have it installed you may need to reboot. This will allow proper access to /dev/net/tun Run it $ openconnect --juniper vpn.domain.com

I'll Fly Away - Lyrics and Chords

VERSE 1: G Some glad morning when this life is o'er, C I'll fly away G To a home on God's celestial shore, C I'll fly away CHORUS: G I'll fly away, O glory, C I'll fly away G In the morning. G When I die, E hallelujah, by and by G I'll D I'll fly away VERSE 2: G When the shadows of this life have grown, C I'll fly away G Like a bird from prison bars has flown, C I'll fly away VERSE 3: G Just a few more weary days, and then, C I'll fly away G To a land where joys shall never end, C I'll fly away

Waiting for asynchronous calls in Protractor

Sometimes when dealing with tests the asynchronous objects are just a little ugly and hard to read. For instance if you have 3 buttons on a page and you wanted to make sure that all 3 were the same size. You would have to wrap all 3 elements together with a promise all. I am sure you can imagine the fun. With ES6 there is as new option to await asynchronous calls. First you will need to add some libraries to your project $ npm install babel-core babel-plugin-transform-async-to-generator Then you will need to add some information to the protractor-conf.js //You can add this either at the top of the file or you can put it within your onPrepare section. require('babel-core/register'); Now create a .bashrc file { "plugins": ["transform-async-to-generator"] } Now the fun part accessing the power of async and await. On you it statement we need to add an async. it('should give us text', async function() {... or like this if your are mor...

Query Selector: How to Or Selection

This is probably an odd topic, however I was recently asked how could one select between 2 possible elements on a browser using Protractor. If you are unfamiliar with Protractor it is a testing tool for AngularJS applications. To start lets show a code example of what we are looking at. <html> <body> <div id='ex1'> <!-- some code here --> </div> <div id='ex2'> <!-- some code here --> </div> </body> </html> Notice from the code that we have 2 divs with id's ex1 and ex2. Now depending on the code you ex1 or ex2 can be hidden. Lets say hypothetically they both do the exact same thing and you just want to click which ever one happens to be available. At the same time you also don't want to add expensive checks for isPresent or waits. To get around this you can do the following with the by.css query selector. $('[id="ex1"], [id="ex2"]') ...

Add Search to Blogger

Simple way to add a search to your blog on Blogger. Click -> Layout Click -> Add a Gadget Click -> HTML/Javascript Paste -> Code below <form action="/search" id="searchthis" method="get" style="display: inline;"> <input id="search-box" name="q" size="30" style="height: 30px;" type="text" /> <input id="search-btn" type="submit" value="Search" /> </form>