Showing posts with label Tools. Show all posts
Showing posts with label Tools. Show all posts

Tuesday, June 27, 2017

Better on-line photos!

A little photo juju for folks who like to post pictures: Use your phone or computer's built-in photo-editing features before posting that picture! Fix it up for better results:
  • Use the "Auto-enhance" feature for starters.
  • Too dark? Use the "Light, Shadows" control to bring the subjects and background out from the shadows. Or use the "Light, Brightness" to increase the overall lighting.
  • Dull look? Use the "Light, Contrast" control to increase the separation between lights and darks.
  • More pop? Use the "Color, Intensity" to add more color and the "Color, Saturation" control to increase the wash.
  • Zoom in on the subject or straighten the picture? Use the "Crop" or "Rotate" controls.
  • When posting a picture on-line, it's usually better to brighten it up rather than posting it "as is". This is because most cameras expose for prints, not monitors.
With just a little attention, you'll see the difference - and so will your friends!

Wednesday, November 2, 2016

Installing Robot Framework on a MacBook

I recently faced challenges getting the open source Robot Framework to work on my MacBook, which is running OS X El Capitan. In general, the installation process should be trivial, but here's what finally worked:

  1. If you have the brew package manager installed, update it:

        brew update
  2. Use brew to install (or upgrade) the chromedriver program:

      brew upgrade chromedriver
  3. Make and use a Python virtualenv for the framework installation:

      pip install --upgrade virtualenv
      source virtualenvwrapper.sh  # Note: Depends on where virtualenvwrapper.sh was installed to.
      mkvirtualenv robotframework
      workon robotframework
      cdvirtualenv
  4. Install the necessary framework packages:

      pip install --upgrade robotframework
      pip install --upgrade robotframework-selenium2library
      pip install --upgrade requests
Now, you'll be able to use the robot command to run test scripts OK :-)

Friday, March 6, 2015

Use rsync on Linux/Mac to move data fast

Here's how to use rsync(1) on a Mac or Linux to move data fast:

rsync –achv[n] {local-dir} {remote-hostname}:{remote-dir}

This will sync the contents of {local-dir} to remote-hostname, {remote-dir}. If you supply the –n option (noted in the square brackets above), it will do a *dry-run only* showing you what will be done – but not yet doing it (very handy to confirm you will be copying the desired stuff to the desired remote location first).

Works for git clones, and any other directories, too. If you want to delete files that exist on {remote-dir} but not {local-dir}, add the delete-after parameter (with two leading dashes), like this:

rsync –achv[n] —delete-after {local-dir} {remote-hostname}:{remote-dir}

Transfers are generally done over ssh, so you’ll have to supply your password when prompted for it.

Rsync can pull as well as push, meaning you can reverse the positions of {local-dir} and {remote-hostname}:{remote-dir}, too. You can even use it to copy files to a different location on the local host if desired, too. Plus it’s very efficient at moving data quickly :-)

Thursday, June 25, 2009

Website evaluation scorecard

Sometimes the best tools are the simplest :-)

I had to review some websites recently for usability, correct implementation, and security. Naturally, I thought there might be some open source tools or perhaps a scorecard to assist the process. Surprisingly, I didn't find much in either category. So, I decided to create a simple spreadsheet template that can be used to evaluate and compare websites in a consistent fashion.

The Website Evaluation Scorecard is available for download at sourceforge.net

JMeter - A very handy tool

I suppose some techies will laff when they read this, but I'm getting a first-time intro to JMeter and it's COOL! It's an open source tool, from Apache, which allows the test engineer to codify HTTP and other protocol requests, issue them to a test server, save the responses, and validate them vs. one or more assertions. Since it's written in Java, it runs on Windows or Linux nicely, too.

The UI is a little clunky and you have to make sure to Save your configuration changes before starting a run (it doesn't prompt you to do so), but it provides a lot of testing capability and flexibility.