Quick demo? Easier than heroku? Look at @ngrok.
I have periodically needed something that lets me painlessly set up a demo from my laptop that I could just email a link to anyone on the internet.
I guess that ngrok.com would be a pretty valuable target to pwn. Maybe it wouldn't be too hard to install on my own host.
Thanks to @lmonson for retweeting about @ngrok.
Thoughts and comments by John Sumsion about life and software.
Alma 34:38 Live in thanksgiving daily, for the many mercies and blessings which he doth bestow upon you.
Showing posts with label lazy. Show all posts
Showing posts with label lazy. Show all posts
29 March 2014
04 March 2013
xcl: X Clipboard Helper
As a pragmatic command-line user, I just found a new way to easily interact with the clipboard.
Yes, yes, I knew about 'xclip' before now -- but it was just way too hard to use because it made me type (and remember) lots of options for simple clipboard operations.
Introducing 'xcl', a simple, helpful wrapper around 'xclip':
This uses a little-known trick from bash (really from the 'test' or '[' builtin), which allows me to detect whether a file descriptor is attached to a live terminal.
Hope this is helpful to you.
Yes, yes, I knew about 'xclip' before now -- but it was just way too hard to use because it made me type (and remember) lots of options for simple clipboard operations.
Introducing 'xcl', a simple, helpful wrapper around 'xclip':
This uses a little-known trick from bash (really from the 'test' or '[' builtin), which allows me to detect whether a file descriptor is attached to a live terminal.
Hope this is helpful to you.
27 November 2012
X Clipboard Cleaner
Ever copy/paste from a web page and have the web page's style mess up the document you are pasting into?
That's pretty common for me.
Chrome/Firefox both preserve HTML style when copying text to the clipboard, and the following are common targets:
That's pretty common for me.
Chrome/Firefox both preserve HTML style when copying text to the clipboard, and the following are common targets:
- HTML-enabled editor widget
- word processor document
My old process was:
- copy text/link from web page
- open up a text editor
- paste inside the text editor
- copy the same text again, this time without the style
- paste into the target location
I finally got sick of doing this manually all the time, so I wrote a script and put it in my app launcher bar.
Here is a gist with a script you can download:
27 September 2011
Using dot from graphviz
The whole graphviz package is an amazingly useful piece of software. Especially the dot program.
Another very helpful article was written on this topic by Diomidis Spinellis. Now that I think about it, there is another very helpful article about how to get a hand-written sketch into digital form.
I've watched other people hand-craft Visio documents that go out of date really fast.
I've also watched developers try to use design tools for high-level sketch kind of diagrams and get bogged down with superfluous code-sync features.
I've also watched developers try to use design tools for high-level sketch kind of diagrams and get bogged down with superfluous code-sync features.
When I want to illustrate a point, just plain old boxes and arrows work wonders. Especially when I can commit the source and be able to tweak it afterwards.
I've found that dot meets and exceeds the my common use goals. I would guess that 80% of the time, the diagram communicates what I want to say without any tweaking at all. About 15% of the time, it takes some layout/shape/font/color tweaking to get the message across in a clear & direct manner. About 5% of the time, I have to output the graph as SVG and load it into Inkscape for further slight tweaking.
Here are some especially helpful links:
- official site
- gallery of examples, also
- up-to-date language reference, and other documentation
- outdated, but very well-organized Users Guide
- dot-functions.sh
The last piece of software is intended as a helper for invoking dot quickly from the command line as part of a REPL authoring flow.
To use dot-functions.sh, first download it. The script defines a bash function that can be used from a bash CLI. Source it into the current shell by doing: source dot-functions.sh, followed by dot somefile.dot.
Here is the source of dot-functions.sh:
Here is the source of dot-functions.sh:
Another very helpful article was written on this topic by Diomidis Spinellis. Now that I think about it, there is another very helpful article about how to get a hand-written sketch into digital form.
31 August 2011
Lazy Developer plus No Slack equals Funding Guilt
I have enough hubris to consider myself a lazy software developer. I also work in an organization where there is not a lot of slack. Overall, I consider myself very blessed to be a part of the software group in which I work. There are many intangible rewards that I receive personally by working on the projects I'm assigned to work on.
P.S. FWIW, many of the ideas in this post come from having read and digested the following:
- Pragmatic Thinking & Learning (personal learning)
- Driving Technical Change (organizational rollout affordances)
- Mythical Man-month (multi-pass thinking)
- using Git on a daily basis (multi-pass thinking)
- Pay to Learn when playing the game of software (optimizing for learning)
- Sooner Not Faster (optimizing for learning)
- Reductionist Agile Manifesto (paring things down to the core)
Subscribe to:
Posts (Atom)