Arguably, for the
Ruby
computer programming language, the default
graphical user interface
(GUI) toolkit is Tk (a part of
Tcl/Tk).
A high-level toolkit, it is cross-platform as well.
Some ways of installing Ruby include Tk automatically.
Tk has been given a beautiful introduction in a
tutorial
by Mark Roseman at
TkDocs.
Begun in 2008 (its full history can be seen
here),
it covers multiple languages:
Perl 5,
Python 3,
Ruby,
and
Tcl.
Roseman's tutorial provides eighteen (18) code examples.
They are all written in each of the four languages listed above.
Naturally, the code is written in a way which eschews each language's idiomatic features.
At least, uncomfortably, I experienced this for Ruby!
In order to learn more fully how to use Tk, I borrowed the tutorial's Ruby example code and rewrote it, using the kind of programming style I might use for production.
All eighteen of the resulting Ruby production-style example programs (each in its own file) together comprise my GitHub repository,
tutorial-tkdocs.
Copyright (c) 2019 Mark D. Blackwell.
Showing posts with label UI. Show all posts
Showing posts with label UI. Show all posts
Sunday, March 17, 2019
Thursday, March 31, 2016
Mega.co.nz, web-based file streaming & Copy.com users
The following is an open letter to Mega.co.nz about implementing web-based audio file streaming (and attracting Copy.com users):
March 31, 2016
To the management (and developers) of Mega.co.nz:
In two months, on May 1, 2016 (as you may know), Barracuda Networks will close its (reportedly) "highly rated" Copy.com service.
They are directing "millions of users" to convert to Microsoft's similar service.
Instead, to attract some of those users, it might be in Mega.co.nz's best interest to implement certain Copy.com features. I'm thinking of one in particular:
Copy.com's web-based file manager directly automatically streams audio files (particularly Ogg-Vorbis files: those with extension OGG; and MP3 files).
Thus, whenever users shared (with other people) a web link to a directory tree on Copy.com, then the recipients, simply by navigating there, could stream that audio immediately and directly.
In other words, the recipients of the link could find and stream (in a web browser) any audio file: this without any additional (bothersome or worrisome) steps required; i.e., to:
This is particularly true in the case of public links.
Many Copy.com users would find this direct-streaming feature highly useful, IMO.
Mega.co.nz could attract more Copy.com users to their service by duplicating this feature.
Does Mega.co.nz plan to add this functionality—of direct-streaming Ogg-Vorbis (extension .ogg) or MP3 files—to their web-based file manager? Would Mega.co.nz's management consider it?
Already, Mega.co.nz's phone apps stream audio. In the web-based file manager, a need for this exists also, for the easiest possible access when sharing web links.
With warm regards,
Copyright (c) 2016 Mark D. Blackwell.
March 31, 2016
To the management (and developers) of Mega.co.nz:
In two months, on May 1, 2016 (as you may know), Barracuda Networks will close its (reportedly) "highly rated" Copy.com service.
They are directing "millions of users" to convert to Microsoft's similar service.
Instead, to attract some of those users, it might be in Mega.co.nz's best interest to implement certain Copy.com features. I'm thinking of one in particular:
Copy.com's web-based file manager directly automatically streams audio files (particularly Ogg-Vorbis files: those with extension OGG; and MP3 files).
Thus, whenever users shared (with other people) a web link to a directory tree on Copy.com, then the recipients, simply by navigating there, could stream that audio immediately and directly.
In other words, the recipients of the link could find and stream (in a web browser) any audio file: this without any additional (bothersome or worrisome) steps required; i.e., to:
- Download the audio file;
- Choose an audio player program; or even
- Install a special audio player for Ogg-Vorbis files.
This is particularly true in the case of public links.
Many Copy.com users would find this direct-streaming feature highly useful, IMO.
Mega.co.nz could attract more Copy.com users to their service by duplicating this feature.
Does Mega.co.nz plan to add this functionality—of direct-streaming Ogg-Vorbis (extension .ogg) or MP3 files—to their web-based file manager? Would Mega.co.nz's management consider it?
Already, Mega.co.nz's phone apps stream audio. In the web-based file manager, a need for this exists also, for the easiest possible access when sharing web links.
With warm regards,
Copyright (c) 2016 Mark D. Blackwell.
Tuesday, January 7, 2014
GitHub should ease line-specific links to the latest commit while browsing master
While (naturally) browsing on branch 'master', GitHub currently requires three(!) clicks to generate any line-specific link for future (permanent) use. These clicks are: History, Browse code (at the top of the history list), and (again) clicking the desired line.
But (only) rarely do people follow these three (extra) steps.
You can blame people (posters) for not following these extra steps, but (as a matter of human nature, IMHO) we can't expect most people actually to follow them, because currently (as they observe it) their gathered links are correct. They merely become obsolete over time.
In practice, this screws up blog and StackOverflow posts, etc. which contain links to specific locations inside source code (on GitHub). For most of these links, their reasonable use is to point to source code (sometimes source lines) visible in the latest commit. Yet these posters (almost always) gather links which actually point to an evolving branch (usually 'master'). As source code evolves, these links quickly become obsolete.
This obsolescence is especially bad with line-specific links, but also happens for file-specific ones.
Here let me say that GitHub's wonderfully good UI is GitHub's greatest and best feature! :)
But the clumsiness of this detail of GitHub's UI (here) is at fault IMHO for this problem. :(
I tried to enlist StackExchange's help to argue this case with GitHub, but to no avail. Also, I asked GitHub directly. We shall see.
This screwup (of obsolete links in people's posts) is apparent, bothersome, and quite frequent!
As a solution, GitHub should consider implementing the following UI improvement:
Make generating such permanent, line-specific links (in browsers' address bars) much easier for their users by adding a button (to all source-display web pages on branches). This button (with a single click) would:
GitHub already distinguishes branch heads from blobs. This is apparent in GitHub's sometime use of the word 'blob' as an URL path segment name (versus the words 'commits/master').
Therefore, GitHub seems easily able to find the latest commit SHA1 for a given branch and do what is desired here: that is, redirect the browser to the corresponding line in the latest commit.
UPDATE: Just four(!) hours later, this nice reply came back from a GitHub staffperson:
"Great idea, thanks! There is a shortcut key "y" that you can hit on any code page to change the URL to the permanent link. But you're right that people may not always choose to do that.
"I've added your idea to our internal Feature Request List. We can't say if/when we may add a feature, however your feedback has definitely been recorded."
Although GitHub's pages don't present this feature in an obvious way, GitHub's Help here further describes their 'Y' shortcut key's hidden access (to it) that she's talking about.
UPDATE: StackExchange support replied with:
I'm not entirely certain what you were trying to accomplish with that post. First, it was on meta.stackoverflow.com, where users go to talk about Stack Overflow itself. We discuss features, community governance, file bugs and similar activities on meta.
However, your post would not have been on topic for Stack Overflow either, it's a complaint about how Github works, as far as I can tell, not a question. We're not a typical forum, we're a Q&A site. To get a better idea of how our engine works, take a brief tour of the features.
Sorry that you had a bad experience, but there's not much we can do about it at this point. If you've got a succinct programming question where the problem can be demonstrated with a short code snippet, you're more than welcome to ask on Stack Overflow. If you have a question about Stack Overflow itself, how it works, or an idea to improve it - then feel free to post on meta.
Regards
Stack Exchange Team
I replied to StackExchange support with:
Hi, Team,
> it was on meta.stackoverflow.com, where users go to talk about Stack Overflow[.]
> about Stack Overflow itself, how it works, or an idea to improve it -
> then feel free to post on meta.
> it's a complaint about how Github works, as far as I can tell, not a question.
Yes, this is about StackExchange.
If you think about it, permanent links, including those to GitHub.com, comprise part of the business value of the StackExchange family of sites.
Your reply doesn't answer my suggestion that it's in the interest of StackExchange, the company, to try to encourage GitHub, the company, to improve their GUI, so that permanent links are easier (and less error-prone) to make.
I'm sure there are ways the staff of StackExchange can convey this interest (of the StackExchange company) to the staff of GitHub.
I cast about for how I can communicate this (I believe helpful) idea to the staff of StackExchange, and the two methods I tried (which you already know about) came to mind. Yes, I have contacted GitHub about this, but I am suggesting that StackExchange do this for itself, as well.
Who else can I contact, besides the StackExchange support team? Do tell!
> Sorry that you had a bad experience
To me, that has little importance. Much more important is the business suggestion for StackExchange, and (as you know) to improve the world, if I can.
From a reply from GitHub, I learned that hitting the 'Y' key switches their webpages to permanent links, easily.
For StackExchange, the problem is that accessing this GitHub switching functionality by hitting 'Y' is not widely known. So, in questions and answers on StackExchange, many people (perhaps) are sharing transient GitHub links.
GitHub may be reluctant to use a half-square inch of real estate on their webpages to make this functionality visible, since that visibility wouldn't help them directly.
But as good neighbors (or something like that) GitHub may be willing to "do the right thing," especially if StackExchange and Wikipedia, et al, ask them to. That's what I think.
Who knows whether GitHub might actually respond? Why doesn't StackExchange try? (i.e., for the purpose of aiding StackExchange's own business interest).
With warm regards,
Mark D. Blackwell
Copyright (c) 2014 Mark D. Blackwell.
But (only) rarely do people follow these three (extra) steps.
You can blame people (posters) for not following these extra steps, but (as a matter of human nature, IMHO) we can't expect most people actually to follow them, because currently (as they observe it) their gathered links are correct. They merely become obsolete over time.
In practice, this screws up blog and StackOverflow posts, etc. which contain links to specific locations inside source code (on GitHub). For most of these links, their reasonable use is to point to source code (sometimes source lines) visible in the latest commit. Yet these posters (almost always) gather links which actually point to an evolving branch (usually 'master'). As source code evolves, these links quickly become obsolete.
This obsolescence is especially bad with line-specific links, but also happens for file-specific ones.
Here let me say that GitHub's wonderfully good UI is GitHub's greatest and best feature! :)
But the clumsiness of this detail of GitHub's UI (here) is at fault IMHO for this problem. :(
I tried to enlist StackExchange's help to argue this case with GitHub, but to no avail. Also, I asked GitHub directly. We shall see.
This screwup (of obsolete links in people's posts) is apparent, bothersome, and quite frequent!
As a solution, GitHub should consider implementing the following UI improvement:
Make generating such permanent, line-specific links (in browsers' address bars) much easier for their users by adding a button (to all source-display web pages on branches). This button (with a single click) would:
- Switch from viewing the source code (including a line reference) on a branch, to viewing that source code (including the same line reference) in a blob. To be helpful, that blob must be the latest commit of that branch.
GitHub already distinguishes branch heads from blobs. This is apparent in GitHub's sometime use of the word 'blob' as an URL path segment name (versus the words 'commits/master').
Therefore, GitHub seems easily able to find the latest commit SHA1 for a given branch and do what is desired here: that is, redirect the browser to the corresponding line in the latest commit.
UPDATE: Just four(!) hours later, this nice reply came back from a GitHub staffperson:
"Great idea, thanks! There is a shortcut key "y" that you can hit on any code page to change the URL to the permanent link. But you're right that people may not always choose to do that.
"I've added your idea to our internal Feature Request List. We can't say if/when we may add a feature, however your feedback has definitely been recorded."
Although GitHub's pages don't present this feature in an obvious way, GitHub's Help here further describes their 'Y' shortcut key's hidden access (to it) that she's talking about.
UPDATE: StackExchange support replied with:
I'm not entirely certain what you were trying to accomplish with that post. First, it was on meta.stackoverflow.com, where users go to talk about Stack Overflow itself. We discuss features, community governance, file bugs and similar activities on meta.
However, your post would not have been on topic for Stack Overflow either, it's a complaint about how Github works, as far as I can tell, not a question. We're not a typical forum, we're a Q&A site. To get a better idea of how our engine works, take a brief tour of the features.
Sorry that you had a bad experience, but there's not much we can do about it at this point. If you've got a succinct programming question where the problem can be demonstrated with a short code snippet, you're more than welcome to ask on Stack Overflow. If you have a question about Stack Overflow itself, how it works, or an idea to improve it - then feel free to post on meta.
Regards
Stack Exchange Team
I replied to StackExchange support with:
Hi, Team,
> it was on meta.stackoverflow.com, where users go to talk about Stack Overflow[.]
> about Stack Overflow itself, how it works, or an idea to improve it -
> then feel free to post on meta.
> it's a complaint about how Github works, as far as I can tell, not a question.
Yes, this is about StackExchange.
If you think about it, permanent links, including those to GitHub.com, comprise part of the business value of the StackExchange family of sites.
Your reply doesn't answer my suggestion that it's in the interest of StackExchange, the company, to try to encourage GitHub, the company, to improve their GUI, so that permanent links are easier (and less error-prone) to make.
I'm sure there are ways the staff of StackExchange can convey this interest (of the StackExchange company) to the staff of GitHub.
I cast about for how I can communicate this (I believe helpful) idea to the staff of StackExchange, and the two methods I tried (which you already know about) came to mind. Yes, I have contacted GitHub about this, but I am suggesting that StackExchange do this for itself, as well.
Who else can I contact, besides the StackExchange support team? Do tell!
> Sorry that you had a bad experience
To me, that has little importance. Much more important is the business suggestion for StackExchange, and (as you know) to improve the world, if I can.
From a reply from GitHub, I learned that hitting the 'Y' key switches their webpages to permanent links, easily.
For StackExchange, the problem is that accessing this GitHub switching functionality by hitting 'Y' is not widely known. So, in questions and answers on StackExchange, many people (perhaps) are sharing transient GitHub links.
GitHub may be reluctant to use a half-square inch of real estate on their webpages to make this functionality visible, since that visibility wouldn't help them directly.
But as good neighbors (or something like that) GitHub may be willing to "do the right thing," especially if StackExchange and Wikipedia, et al, ask them to. That's what I think.
Who knows whether GitHub might actually respond? Why doesn't StackExchange try? (i.e., for the purpose of aiding StackExchange's own business interest).
With warm regards,
Mark D. Blackwell
Copyright (c) 2014 Mark D. Blackwell.
Labels:
blogging,
bug,
computer,
data loss,
ease,
efficient,
error,
github,
history,
programming,
psychology,
stackExchange,
UI,
usability
Tuesday, June 4, 2013
Blog posts' date position
Just now I was reading a blog to avoid emailing its author with questions they already blogged about. Like others with this purpose, I read it reverse-chronologically (i.e. from the top).
While reading a blog purposefully to learn the current status of a fast-changing software system it seems important to gather a quick sense of time context for each post.
Inevitably I observe myself sliding my browser window downward to the bottom of each post to get a sense of how long prior to the post above it each was released—just in case the time interval is much, much longer than those above.
Then I slide the window back, indeed with resulting uncertainty that I have recovered the proper beginning of the proper post.
Some blogs may never have a delay of more than two weeks between posts.
If I knew this were the case always I wouldn't even look. But since I am not sure, I find myself looking at the dates.
Viewing a blog's archive helps somewhat (and furthermore I can read a whole blog by clicking its posts in an archive list; but this seems less natural).
So the minor suggestion here, for blog formatters' consideration, comprises the usefulness of placing the date of each post immediately below its title.
Copyright (c) 2013 Mark D. Blackwell.
While reading a blog purposefully to learn the current status of a fast-changing software system it seems important to gather a quick sense of time context for each post.
Inevitably I observe myself sliding my browser window downward to the bottom of each post to get a sense of how long prior to the post above it each was released—just in case the time interval is much, much longer than those above.
Then I slide the window back, indeed with resulting uncertainty that I have recovered the proper beginning of the proper post.
Some blogs may never have a delay of more than two weeks between posts.
If I knew this were the case always I wouldn't even look. But since I am not sure, I find myself looking at the dates.
Viewing a blog's archive helps somewhat (and furthermore I can read a whole blog by clicking its posts in an archive list; but this seems less natural).
So the minor suggestion here, for blog formatters' consideration, comprises the usefulness of placing the date of each post immediately below its title.
Copyright (c) 2013 Mark D. Blackwell.
Thursday, April 25, 2013
Meetup authentication & email addresses
As part of its OAuth authentication process with other apps, Meetup doesn't provide email addresses of its users. (I refer to this official Meetup forum question, and to this page in the Meetup API docs—search the page for 'email'.)
Twitter doesn't provide email addresses either. However, Meetup seems nicer than Twitter.
People use multiple Twitter accounts (I know some who do). But people don't use multiple Meetup accounts (at least supposedly not).
When registering new users through this difficult class of OAuth authentication providers (those which don't supply an email address) one might ask each new user directly for some email address, or might not. Requesting this is normally recommended.
If an app uses Meetup authentication (and it doesn't request and confirm an email address during user registration), and uses another form of authentication also (even added later) then there's no way to identify the same user, if or when they sign on by a different way.
So Meetup authentication (without email) is only good if the app is forever limited to using Meetup authentication alone. With that permanent limitation, in such an app, nobody (mysteriously) will run into the problem of having more than one account.
Of course, having Meetup as the single method of authentication is useful, reasonably, only to apps which are already limited to Meetup users.
Keeping the UI simple (by not requesting an email address when people register) means the app might never have email addresses. But that might be okay if an app uses Meetup authentication alone, forever.
Then one need not bother people with asking for their email address when they first use an app. The ease of that emotional UX moment when new customers are forming their first impression of an app (and making their initial commitment to it), from the standpoint of building a customer base—depending on the app—could be considered more important than ever knowing their email addresses.
BTW, omniauth-meetup is a good gem for doing Meetup authentication in Rails.
Copyright (c) 2013 Mark D. Blackwell.
Twitter doesn't provide email addresses either. However, Meetup seems nicer than Twitter.
People use multiple Twitter accounts (I know some who do). But people don't use multiple Meetup accounts (at least supposedly not).
When registering new users through this difficult class of OAuth authentication providers (those which don't supply an email address) one might ask each new user directly for some email address, or might not. Requesting this is normally recommended.
If an app uses Meetup authentication (and it doesn't request and confirm an email address during user registration), and uses another form of authentication also (even added later) then there's no way to identify the same user, if or when they sign on by a different way.
So Meetup authentication (without email) is only good if the app is forever limited to using Meetup authentication alone. With that permanent limitation, in such an app, nobody (mysteriously) will run into the problem of having more than one account.
Of course, having Meetup as the single method of authentication is useful, reasonably, only to apps which are already limited to Meetup users.
Keeping the UI simple (by not requesting an email address when people register) means the app might never have email addresses. But that might be okay if an app uses Meetup authentication alone, forever.
Then one need not bother people with asking for their email address when they first use an app. The ease of that emotional UX moment when new customers are forming their first impression of an app (and making their initial commitment to it), from the standpoint of building a customer base—depending on the app—could be considered more important than ever knowing their email addresses.
BTW, omniauth-meetup is a good gem for doing Meetup authentication in Rails.
Copyright (c) 2013 Mark D. Blackwell.
Saturday, April 20, 2013
Flat UI and Twitter Bootstrap "Mobile First" for Rails
Designmodo's announcement for their free Flat UI (which uses Sass) mentions plans (in the discussion) to release a pay version containing LESS code. And an issue on their Flat UI gem floats a suggestion of possibly porting it to LESS.
Darthdeus' gem flat-ui-rails contains Flat UI precompiled to CSS with no LESS code.
Whether Flat UI will continue to be maintained and useful for Rails doesn't relate to Darthdeus' trivially easy to maintain gem but therefore instead to Designmodo's free Flat UI product itself. So far, BTW, their Pro version seems to be vaporware.
There is a rumor Twitter Bootstrap version 3 "Mobile first" will have a flatter UI, but that's only temporary (for development purposes) according to this article.
Web searching revealed no sign how Designmodo's Flat UI might be affected by Twitter's new "Mobile first" initiative otherwise.
Copyright (c) 2013 Mark D. Blackwell.
Darthdeus' gem flat-ui-rails contains Flat UI precompiled to CSS with no LESS code.
Whether Flat UI will continue to be maintained and useful for Rails doesn't relate to Darthdeus' trivially easy to maintain gem but therefore instead to Designmodo's free Flat UI product itself. So far, BTW, their Pro version seems to be vaporware.
There is a rumor Twitter Bootstrap version 3 "Mobile first" will have a flatter UI, but that's only temporary (for development purposes) according to this article.
Web searching revealed no sign how Designmodo's Flat UI might be affected by Twitter's new "Mobile first" initiative otherwise.
Copyright (c) 2013 Mark D. Blackwell.
Friday, September 28, 2012
Frontend experience
Recently, I acquired some practical website frontend experience—which took quite a bit of learning!
For an initial demo for a startup, I analyzed, selected and set up all the infrastructure (Rails, Heroku & Amazon). I wrote all the CSS frontend. I also wrote all the working database backend.
See the demo! See how its layout is fluid?
(Click here, if you missed the above links.)
It doesn't have multiple user capability yet; it's just a demo, at this time.
I made this in the pursuit of becoming a does-everything website developer.
Copyright (c) 2012 Mark D. Blackwell.
For an initial demo for a startup, I analyzed, selected and set up all the infrastructure (Rails, Heroku & Amazon). I wrote all the CSS frontend. I also wrote all the working database backend.
See the demo! See how its layout is fluid?
(Click here, if you missed the above links.)
It doesn't have multiple user capability yet; it's just a demo, at this time.
I made this in the pursuit of becoming a does-everything website developer.
Copyright (c) 2012 Mark D. Blackwell.
Monday, September 17, 2012
Website page layouts, proofs of concept
A big part of frontend website development is implementing webpage layouts using CSS stylesheets (of course).
Recently, I've been experiencing a great deal more of business in the area of layouts (specifically for Rails websites) and especially the work of implementing these layouts through developing CSS stylesheets—whether or not this is really programming! (Well, I think it is.)
I find it much less efficient to run the Rails server, and much more efficient to 'web-browse' the local filesystem. The work progresses much more quickly, in other words, when it is isolated from any complicating factors arising from our misunderstanding of the Rails server, jQuery, ERB/HAML, and perhaps even Sass. The weightiest reason for this improvement (by far) is the troubleshooting principle: 'divide and conquer'. Less important is that the filesystem also is relatively quicker.
It is much more doable (dare I say, even feasible) to get isolated layouts working using pure CSS and HTML (while keeping class names simple). And the same is true while paring down a stylesheet to be as simple and clean as possible.
Of course, further simplifying cross-browser development is the use of a CSS-reset stylesheet. Also it is essential, for HTML5's semantic tags: header, footer and nav (etc.), to include a (JavaScript) HTML5 shim (or 'shiv') script. So I include both of these best practices.
I have prepared a repository of my CSS (layout) proofs of concept on GitHub—including nine(!) useful proofs (as of now, September, 2012).
These layout proofs contain stylesheet code the way I write for Rails projects as much as possible (without actually including Rails).
Copyright (c) 2012 Mark D. Blackwell.
Recently, I've been experiencing a great deal more of business in the area of layouts (specifically for Rails websites) and especially the work of implementing these layouts through developing CSS stylesheets—whether or not this is really programming! (Well, I think it is.)
I find it much less efficient to run the Rails server, and much more efficient to 'web-browse' the local filesystem. The work progresses much more quickly, in other words, when it is isolated from any complicating factors arising from our misunderstanding of the Rails server, jQuery, ERB/HAML, and perhaps even Sass. The weightiest reason for this improvement (by far) is the troubleshooting principle: 'divide and conquer'. Less important is that the filesystem also is relatively quicker.
It is much more doable (dare I say, even feasible) to get isolated layouts working using pure CSS and HTML (while keeping class names simple). And the same is true while paring down a stylesheet to be as simple and clean as possible.
Of course, further simplifying cross-browser development is the use of a CSS-reset stylesheet. Also it is essential, for HTML5's semantic tags: header, footer and nav (etc.), to include a (JavaScript) HTML5 shim (or 'shiv') script. So I include both of these best practices.
I have prepared a repository of my CSS (layout) proofs of concept on GitHub—including nine(!) useful proofs (as of now, September, 2012).
These layout proofs contain stylesheet code the way I write for Rails projects as much as possible (without actually including Rails).
Copyright (c) 2012 Mark D. Blackwell.
Labels:
browser,
complex,
css,
divide and conquer,
efficient,
error,
filesystem,
frontend,
github,
javascript,
programming,
Rails,
select,
server,
startup,
testing,
troubleshoot,
UI,
web,
web service
Friday, December 16, 2011
Chrome browser cookie exceptions, howto
Google's fast, new Chrome browser has a development process that seems to fix problems rapidly.
An unmet need in the user interface, however, is explicating (right on the page) how to enter domains for cookie handling exceptions.
The proper way to be secure (though you may disagree) IMHO follows:
* Wrench-Options-Under the Hood-Content Settings-Cookies.
* Select, `Block sites from setting any data'.
* Check, `Block third party cookies from being set'.
* Check, `Clear cookies and other site and plug-in data when I close my browser'.
* Click, `Manage Exceptions...'.
* Add and delete hostname patterns until you see what you like.
The problem is, it gives no subdomain examples. Per one bug report, the user cannot figure out the right syntax to enter them. Without adding the right subdomains, navigating to blogger.com mysteriously redirects us in a loop.
Its unusual wildcard syntax, for Google blogging, is:
[*.]blogger.com
[*.]google.com
The brackets must be entered explicitly. In other words, they do not merely indicate optional content.
Some kind of, `"Learn more" about the pattern syntax' link would be awesome.
Explicitly also, one could enter all the relevant subdomains (which is appropriate for some domains):
blogger.com
www.blogger.com
markdblackwell.blogspot.com
google.com
accounts.google.com
Copyright (c) 2011 Mark D. Blackwell.
An unmet need in the user interface, however, is explicating (right on the page) how to enter domains for cookie handling exceptions.
The proper way to be secure (though you may disagree) IMHO follows:
* Wrench-Options-Under the Hood-Content Settings-Cookies.
* Select, `Block sites from setting any data'.
* Check, `Block third party cookies from being set'.
* Check, `Clear cookies and other site and plug-in data when I close my browser'.
* Click, `Manage Exceptions...'.
* Add and delete hostname patterns until you see what you like.
The problem is, it gives no subdomain examples. Per one bug report, the user cannot figure out the right syntax to enter them. Without adding the right subdomains, navigating to blogger.com mysteriously redirects us in a loop.
Its unusual wildcard syntax, for Google blogging, is:
[*.]blogger.com
[*.]google.com
The brackets must be entered explicitly. In other words, they do not merely indicate optional content.
Some kind of, `"Learn more" about the pattern syntax' link would be awesome.
Explicitly also, one could enter all the relevant subdomains (which is appropriate for some domains):
blogger.com
www.blogger.com
markdblackwell.blogspot.com
google.com
accounts.google.com
Copyright (c) 2011 Mark D. Blackwell.
Thursday, December 8, 2011
One-click registration on websites belonging to phone apps
Recently, gmail passed me this advert (just for example). It is for a programming competition site that (incidentally) offers one-click registration (you know, while signed into other prestigious sites).
In most websites created for phone apps, user registration is better if it's one-click (in addition to signin). Sites (as above) do this in order to facilitate acting on impulse. (I'm not telling you anything you already don't know.)
In just two clicks (total!), users can register at the new website (even before buying the phone app) while they are skimming (or reading) posts or articles about the phone app's general topic (or smartphone technology), from a link which mentions some jazzy, new, tech feature. Generating this kind of news is something popular bloggers love to do. And it increases the phone app's mindshare.
Plausibly, in this way (huge) numbers of people would have an emotional commitment for trying-and-buying that phone app, and some would do so. If they are browsing in their smartphone, in one click they can purchase (and download) the app. Synergy! because websites are linked in ... well, a web.
People who use information aggregators (some generated by grassroots online communities, like my friend M) would (in their instream) see links to this new website, and inform their friends the same way. Thus will social synergy cause an explosive chain reaction!
One-click registration transfers (part of) the reputation of a very popular website, onto the new website.
After a person has gone through the effort of deciding to register themselves (and their personal information) on a popular website, and thus trust it, they desire also to trust (on the web) wherever else that (particular) website automatically allows them to register.
With the first website, we are in a 'community,' or have established a relationship. This leverages the natural human tendency to trust anyone referred to us, by a trusted other. Communities are a strong part of (genetically programmed) human nature.
This level of referral trust seems even to exceed the trust from (simple) hyperlink clicking. Perhaps what is called, 'cognitive dissonance' also plays a part.
Copyright (c) 2011 Mark D. Blackwell.
In most websites created for phone apps, user registration is better if it's one-click (in addition to signin). Sites (as above) do this in order to facilitate acting on impulse. (I'm not telling you anything you already don't know.)
In just two clicks (total!), users can register at the new website (even before buying the phone app) while they are skimming (or reading) posts or articles about the phone app's general topic (or smartphone technology), from a link which mentions some jazzy, new, tech feature. Generating this kind of news is something popular bloggers love to do. And it increases the phone app's mindshare.
Plausibly, in this way (huge) numbers of people would have an emotional commitment for trying-and-buying that phone app, and some would do so. If they are browsing in their smartphone, in one click they can purchase (and download) the app. Synergy! because websites are linked in ... well, a web.
People who use information aggregators (some generated by grassroots online communities, like my friend M) would (in their instream) see links to this new website, and inform their friends the same way. Thus will social synergy cause an explosive chain reaction!
One-click registration transfers (part of) the reputation of a very popular website, onto the new website.
After a person has gone through the effort of deciding to register themselves (and their personal information) on a popular website, and thus trust it, they desire also to trust (on the web) wherever else that (particular) website automatically allows them to register.
With the first website, we are in a 'community,' or have established a relationship. This leverages the natural human tendency to trust anyone referred to us, by a trusted other. Communities are a strong part of (genetically programmed) human nature.
This level of referral trust seems even to exceed the trust from (simple) hyperlink clicking. Perhaps what is called, 'cognitive dissonance' also plays a part.
Copyright (c) 2011 Mark D. Blackwell.
Labels:
business,
computer,
data entry,
ease,
efficient,
programming,
psychology,
security,
shortcut,
startup,
UI
Monday, July 25, 2011
Prevent accidental drag and drop on touchpad laptops in Windows Explorer, howto
For convenience on many laptops, the touchpad functions like (left) clicking a mouse. However, in Windows Explorer, a classic problem occurs. We can drag and drop folders by mistake into other folders--they can get lost that way, or mess up our carefully organized tree.
The solution is a distance, a threshold, before accepting a drag (of a clicked mouse). We don't want natural hand jitter (visible at small resolutions) or accidental motion (while clicking) to be interpreted as a request to drag graphical objects around. This problem is well known--and Windows has such a threshold. However, their default is 4 pixels!
Some people's jitter is greater than others' (viz. Parkinson's disease); the default may be way too small to avoid the problem for touchpads, too.
Using 40 pixels as the threshold, I first move past two folders (or files) in Windows Explorer. Then before releasing the mouse, I pull it back to wherever I want, even to the adjacent folder.
There are two settings: horizontal and vertical. I set both the same--the horizontal is important, too, to prevent inadvertent mouse drags.
HKEY_CURRENT_USER\Control Panel\Desktop
DragHeight = "40"
DragWidth = "40"
Restart the computer for the change to take effect.
This setting allows windows also to be dragged conveniently. Drag a centimeter (half an inch) then back to your new, desired, fine location. The feeling is like a momentary slow response.
If you wish, you can use Microsoft's TweakUI (a free-of-charge Windows XP download) to set these.
You might enjoy playing with click-lock (on the mouse) for this problem, though it changes the user interface in a deep way, globally.
I wonder if someone in the leadership structure of Microsoft might be big enough to admit--to themselves--they are continuing a mistake (whether small or important) that occurred some time in the past but was correct at one time, the mistake caused by an increase in monitor resolution (as others have said), and respond to some users' cries for help by changing this 4-pixel default? Because the key difficulty is in admitting a mistake. Already they have enabled us to change our setting; it's merely avoiding a redecision about the default which is causing a problem in the wider world.
The current state on this issue seems one of drifting inertia and big-company self-insulation. (Some of their attitude about it is visible on their Developer Network.)
Ref:
Disable Drag And Drop In Windows Explorer? (from Scot's Newsletter's Forum, editor of ComputerWorld)
Stop Windows copying files accidentally when Ctrl-click selecting (How-To Geek: more)
Prevent folder moving (see R. McCarty's answer)
Click lock (see S. Goodkin's answer)
Copyright (c) 2011 Mark D. Blackwell.
The solution is a distance, a threshold, before accepting a drag (of a clicked mouse). We don't want natural hand jitter (visible at small resolutions) or accidental motion (while clicking) to be interpreted as a request to drag graphical objects around. This problem is well known--and Windows has such a threshold. However, their default is 4 pixels!
Some people's jitter is greater than others' (viz. Parkinson's disease); the default may be way too small to avoid the problem for touchpads, too.
Using 40 pixels as the threshold, I first move past two folders (or files) in Windows Explorer. Then before releasing the mouse, I pull it back to wherever I want, even to the adjacent folder.
There are two settings: horizontal and vertical. I set both the same--the horizontal is important, too, to prevent inadvertent mouse drags.
HKEY_CURRENT_USER\Control Panel\Desktop
DragHeight = "40"
DragWidth = "40"
Restart the computer for the change to take effect.
This setting allows windows also to be dragged conveniently. Drag a centimeter (half an inch) then back to your new, desired, fine location. The feeling is like a momentary slow response.
If you wish, you can use Microsoft's TweakUI (a free-of-charge Windows XP download) to set these.
You might enjoy playing with click-lock (on the mouse) for this problem, though it changes the user interface in a deep way, globally.
I wonder if someone in the leadership structure of Microsoft might be big enough to admit--to themselves--they are continuing a mistake (whether small or important) that occurred some time in the past but was correct at one time, the mistake caused by an increase in monitor resolution (as others have said), and respond to some users' cries for help by changing this 4-pixel default? Because the key difficulty is in admitting a mistake. Already they have enabled us to change our setting; it's merely avoiding a redecision about the default which is causing a problem in the wider world.
The current state on this issue seems one of drifting inertia and big-company self-insulation. (Some of their attitude about it is visible on their Developer Network.)
Ref:
Disable Drag And Drop In Windows Explorer? (from Scot's Newsletter's Forum, editor of ComputerWorld)
Stop Windows copying files accidentally when Ctrl-click selecting (How-To Geek: more)
Prevent folder moving (see R. McCarty's answer)
Click lock (see S. Goodkin's answer)
Copyright (c) 2011 Mark D. Blackwell.
Labels:
accident,
accidental drag and drop,
click lock,
computer,
drag and drop,
error,
hand jitter,
howto,
laptop,
mouse,
prevent,
psychology,
touchpad,
TweakUI,
UI
Monday, July 11, 2011
Unfamiliar Windows keyboard shortcuts
I like to open folders sometimes in a new window, sometimes the same window.
It's difficult to right-click my particular computer mouse.
Also, generally I prefer keyboard shortcuts.
First I tried using Microsoft Windows Explorer's option which always opens a new window; soon I was frustrated, closing the many resulting windows. (See Windows Explorer-Menu-Tools-Folder Options-General-Browse Folders.)
To open the other view (folder or explorer) in a new window, I was motivated to find a shortcut: either with the keyboard or a left mouse click. Some research found many that were unfamiliar and quite useful.
Here are my select keyboard and mouse shortcuts for Windows XP and later. You might not know all of them—I think you will find at least one excitingly useful!
Abbreviations:
App = Application key (AKA Menu key, context menu key)
Win = Windows key (AKA Flag key, Meta key, MOD4, Start key, Super key, Windows logo key, WinKey)
General:
Alt+ Esc: Cycle programs in starting order
Alt+ F6: Cycle windows of active program
Alt+ PrintScreen: Capture program window (paste into Paint)
Alt+ Shift+ Esc: Cycle programs in starting order, backward
Alt+ Spacebar M Arrow: Move active window
Alt+ Spacebar S Arrow: Resize active window
App: Show context menu
Ctrl+ Shift+ Esc: Task manager
F6: Cycle screen elements (e.g., in SeaMonkey, go to address bar)
Win: Show start menu
Win+ Break: Show system properties
Win+ D: Show desktop (toggle)
Win+ E: Explore My Computer
Win+ L: Lock/logon screen (switch user)
Win+ M: Minimize all windows
Win+ R: Run
Win+ Shift+ M: Undo minimize all windows (also undo show desktop)
Win+ Shift+ Tab Enter: Cycle programs in taskbar, backward
Win+ Tab Enter: Cycle programs in taskbar
Win+ U: Utility manager (accessibility)
(Shift+ F10: same as App)
Command-line window:
Alt+ Spacebar E K (make selection) Enter: Select text
Alt+ Spacebar E L Arrow: Scroll
Alt+ Spacebar E P: Paste text
Desktop:
Alt+ Double-click: Show properties (single folder or file)
Alt+ Enter: Show properties (multiple folders & files)
Enter: Open single selection in folder view (or last-selected)
Shift+ Enter: Explore single selection (or last-selected)
(App O: same as Enter; App X: same as Shift+ Enter)
Multi-document program:
Ctrl+ F4: Close active document
... Icon of non-maximized document:
Double-click: Close
Windows Explorer (file chooser in other programs):
Alt+ Double-click: Show properties (of single folder or file; except explore-view navigation pane)
Alt+ Enter: Show properties (multiple folders & files)
Alt F W Enter: Create new folder
Alt V E O: Show navigation pane (toggle)
Ctrl+ Keypad '+': Fit columns
F4: Show folder trail (toggle)
Shift+ Click: Select from top to pointer
Finally, to avoid right-clicking, here are the shortcuts I was looking for:
... In explore view:
App O: New folder-view window(s)
Enter: Change to single selection; explore (some of) multiple selection in new windows
(App X, Click Shift+ Double-click: same as Enter)
... In folder view:
Ctrl+ Enter: Open single (or some of multiple) selection in new window(s)
Enter: Change to first-selected
Shift+ Enter: Explore in new window(s)
(App X, Click Shift+ Double-click: same as Shift+ Enter)
Sources:
http://www.computerhope.com/shortcut/windows.htm
http://support.microsoft.com/kb/301583
http://support.microsoft.com/kb/126449
http://en.wikipedia.org/wiki/Windows_key
http://en.wikipedia.org/wiki/Menu_key
First I tried using Microsoft Windows Explorer's option which always opens a new window; soon I was frustrated, closing the many resulting windows. (See Windows Explorer-Menu-Tools-Folder Options-General-Browse Folders.)
To open the other view (folder or explorer) in a new window, I was motivated to find a shortcut: either with the keyboard or a left mouse click. Some research found many that were unfamiliar and quite useful.
Here are my select keyboard and mouse shortcuts for Windows XP and later. You might not know all of them—I think you will find at least one excitingly useful!
Abbreviations:
App = Application key (AKA Menu key, context menu key)
Win = Windows key (AKA Flag key, Meta key, MOD4, Start key, Super key, Windows logo key, WinKey)
General:
Alt+ Esc: Cycle programs in starting order
Alt+ F6: Cycle windows of active program
Alt+ PrintScreen: Capture program window (paste into Paint)
Alt+ Shift+ Esc: Cycle programs in starting order, backward
Alt+ Spacebar M Arrow: Move active window
Alt+ Spacebar S Arrow: Resize active window
App: Show context menu
Ctrl+ Shift+ Esc: Task manager
F6: Cycle screen elements (e.g., in SeaMonkey, go to address bar)
Win: Show start menu
Win+ Break: Show system properties
Win+ D: Show desktop (toggle)
Win+ E: Explore My Computer
Win+ L: Lock/logon screen (switch user)
Win+ M: Minimize all windows
Win+ R: Run
Win+ Shift+ M: Undo minimize all windows (also undo show desktop)
Win+ Shift+ Tab Enter: Cycle programs in taskbar, backward
Win+ Tab Enter: Cycle programs in taskbar
Win+ U: Utility manager (accessibility)
(Shift+ F10: same as App)
Command-line window:
Alt+ Spacebar E K (make selection) Enter: Select text
Alt+ Spacebar E L Arrow: Scroll
Alt+ Spacebar E P: Paste text
Desktop:
Alt+ Double-click: Show properties (single folder or file)
Alt+ Enter: Show properties (multiple folders & files)
Enter: Open single selection in folder view (or last-selected)
Shift+ Enter: Explore single selection (or last-selected)
(App O: same as Enter; App X: same as Shift+ Enter)
Multi-document program:
Ctrl+ F4: Close active document
... Icon of non-maximized document:
Double-click: Close
Windows Explorer (file chooser in other programs):
Alt+ Double-click: Show properties (of single folder or file; except explore-view navigation pane)
Alt+ Enter: Show properties (multiple folders & files)
Alt F W Enter: Create new folder
Alt V E O: Show navigation pane (toggle)
Ctrl+ Keypad '+': Fit columns
F4: Show folder trail (toggle)
Shift+ Click: Select from top to pointer
Finally, to avoid right-clicking, here are the shortcuts I was looking for:
... In explore view:
App O: New folder-view window(s)
Enter: Change to single selection; explore (some of) multiple selection in new windows
(App X, Click Shift+ Double-click: same as Enter)
... In folder view:
Ctrl+ Enter: Open single (or some of multiple) selection in new window(s)
Enter: Change to first-selected
Shift+ Enter: Explore in new window(s)
(App X, Click Shift+ Double-click: same as Shift+ Enter)
Sources:
http://www.computerhope.com/shortcut/windows.htm
http://support.microsoft.com/kb/301583
http://support.microsoft.com/kb/126449
http://en.wikipedia.org/wiki/Windows_key
http://en.wikipedia.org/wiki/Menu_key
Tuesday, September 8, 2009
Old DOS games in Linux using DOSBox, howto
My friend, M loves old computer games, and she loves running DOS games in her Windows XP system using the emulator, DOSBox. At a party with friends, I was inspired to remark that possibly these games could be played on a Linux system. Specifically, I wondered whether DOS games could be run on UNIX systems using DOSBox. Subsequently, I discovered Debian's package, 'dosbox'. Being an x86 emulator, it is available for many architectures beside i386.
I installed the lenny package, and I was pleased to find indeed that it ran well! Caveat: I do not have sound on my system at the moment, so I did not test that part. Following the advice of my friend, these are the steps I followed:
o Make a directory for all your DOSBox games:
mkdir ~/dos-box
o Download a DOS game. My friend recommended the site, Classic DOS games. (I downloaded Crystal Caves.)
o If the download is a zip file, decompress it (with 'unzip') into a subdirectory of dos-box.
o Start DOSBox from the Start menu or from an X terminal (with 'dosbox').
The following steps take place inside the DOSBox window, and are not UNIX commands:
o As DOSBox's C: drive, select your DOSBox directory:
mount c: ~/dos-box
c:
o Navigate (with 'cd') into the game's subdirectory.
o Run the game's installation program, if it has one.
o Follow the games's README instructions to run the game within DOSBox.
o Enjoy!
Copyright (c) 2009 Mark D. Blackwell.
I installed the lenny package, and I was pleased to find indeed that it ran well! Caveat: I do not have sound on my system at the moment, so I did not test that part. Following the advice of my friend, these are the steps I followed:
o Make a directory for all your DOSBox games:
mkdir ~/dos-box
o Download a DOS game. My friend recommended the site, Classic DOS games. (I downloaded Crystal Caves.)
o If the download is a zip file, decompress it (with 'unzip') into a subdirectory of dos-box.
o Start DOSBox from the Start menu or from an X terminal (with 'dosbox').
The following steps take place inside the DOSBox window, and are not UNIX commands:
o As DOSBox's C: drive, select your DOSBox directory:
mount c: ~/dos-box
c:
o Navigate (with 'cd') into the game's subdirectory.
o Run the game's installation program, if it has one.
o Follow the games's README instructions to run the game within DOSBox.
o Enjoy!
Copyright (c) 2009 Mark D. Blackwell.
Subscribe to:
Posts (Atom)