Saturday, October 29, 2016

oh Google, O Alphabets !

This is my untagged Facebook post today:

Yes, some followers do not know what Microsoft calls "Azure" or that an Amazon makes profits on Web Services for cloud storage or that Google is owned by Alphabet.
Bill Gates owns the art.
Google does NOT own the alphabet as THAT is in Unicode Version 9 which is NOT Plan 9 which is another obscure reference only to amuse someone who does not follow me anyway.

Friday, February 19, 2016

Red console view GUI

This is a simpler example to paste into a Red console to test the GUI basics of using the view dialect.

view [
    below
    tgl: text "Some test text"
    text 400x30 bold italic blue font-size 16 "Text with properties"
    button "Click Me" [tgl/text: "Text Changed!"]
    field 400 "SELECT this text then Type something into this entry field"
    area 400x200
]

A Red script might declare that it needs the view module in its header.

The above script was tested with the Feb 19 2016 build of Red.





Red PL do with block

The Red programming language is moving slowly to version 1.0 and today is at 0.5.4

I thought that it might be useful to look at a do block with the prin function when entered at the Red console.

My example is as follows:

do [
  t1: "test1"
  prin t1
  t1: "test2"
  prin t1
]

The console output will be

test1test2

and NOT

test2test2

Why?

I think that this is only really clear if you see the example code as

do [
  t1: "test1"
  prin :t1
  t1: "test2"
  prin :t1
]

The difference above is that each prin function explicitly is being passed the value of t1.

This is what happens in the short-hand or syntactic sugar version of the example as I first presented it.

If a new user of Red imagined that prin was being passed the ADDRESS of t1 or the ADDRESS of its value, one might expect the meta-level do block to output

test2test2.

This is obvious to old-hands from Rebol, but it may not be obvious to users who are new to expression-based languages.

Saturday, December 12, 2015

URL hyenas

The web hyenas are busy and logiquewerks.com has fallen prey to them, so that is now logiquewerks.ca

Some similar fate may await all things "eclectic-pencil" but a minus-sign as a hyphen in a web name is not worth defending!



Monday, May 18, 2015

How to Cancel a Facebook FRIEND Request


How to Cancel a Facebook Request once it has been SENT : a Yahoo user says to go to that person's Fb page then hover where it reads "Friend Request Sent" as there will be a selection to "cancel request". Click. Done.

Tada.




Wednesday, February 18, 2015

tanaguru color contrast for accessibility


The following 3 URL's give 3 different results from the tanaguru page ... and are all accepted by the tanaguru Firefox plugin.

http://contrast-finder.tanaguru.com/result.html?foreground=%23AA3333&background=%23330000&isBackgroundTested=false&ratio=4.5&algo=HSV

http://contrast-finder.tanaguru.com/result.html?foreground=%233333AA&background=%23330000&isBackgroundTested=false&ratio=4.5&algo=HSV

http://contrast-finder.tanaguru.com/result.html?foreground=%23006600&background=%23330000&isBackgroundTested=false&ratio=4.5&algo=HSV

In each case the background is the brown of #330000.

All of the results are acceptable contrasting colours for text on a brown background ... but I think what a better tool might give is a carousel of results.

Am I missing something ?

Here are my setting :