About these ads

Bacon, Alcohol, Tobacco, Firearms, Explosives

Things I love

Archive for the ‘Tech’ Category

I guess seven years will do that

In 2005, when I went to work for Microsoft, I bought a new LCD for cheap. Seven years on, I finally bought a small upgrade – mostly so I can go back to a dual-head setup. What strikes me most is how very, very yellow the older monitor is. This may be a feature of LED versus LCD, or it may be a feature of age; whatever the reason, I can hardly look at my older monitor now. At this point, I’m keeping it on my desk because it has an integrated USB hub and the replacement monitor doesn’t; I’m sure, in a few weeks, I’ll reclaim the space used by the monitor. In fact, I think that day is the second of May, or perhaps the evening thereof.

About these ads

Written by Ry Jones

22 April 2012 at 20:21

Posted in Tech

Well, bye

I didn’t so much switch as Windows 8 is not something I want to participate in.
And so the conversion begins

That and multiple recent hardware failures caused me to re-evaluate spending time and money fixing my PC or moving on. I choose to move.

Written by Ry Jones

20 April 2012 at 12:05

Posted in Apple, Microsoft, Tech

Oxygen, the magical fruit

Did you know production of liquid oxygen is really easy? Did you know liquid oxygen is paramagnetic? I knew neither of these things.

Written by Ry Jones

18 March 2012 at 5:33

Posted in Tech

Confusing UI

What they’re asking for is a phone number. Thanks for being opaque, Verizon!

Written by Ry Jones

16 March 2012 at 15:05

Posted in Tech

AT&T film on waves

Neat film on wave systems and impedance matching. I dig the wave machines!

Written by Ry Jones

10 February 2012 at 13:15

Posted in Tech

On fame, or nearness to it

It sucks when you’re searching for someone that shares a name with a famous person; I wish there was a way to say “no, not that Famous Name” and have Bing or Google subtract all results known to be about the famous person. Also, searching for someone named after a place is almost impossible; worse yet when the last name is shared by someone mildly famous from that place. Imagine having gone to school with Indianapolis Payton or worked with Dallas Cuban; give up, the information you seek is lost in the chaff.

Written by Ry Jones

6 February 2012 at 11:23

Posted in Tech

Trigraphs, digraphs: part two

Nobody guessed in the comments, so I’ll go ahead and answer. Trigraphs were added to C89 because ISO-646 (“Invariant ASCII”) was not rich enough to express C.

The solution is an internationally agreed-upon repertoire, in terms of which an international representation of C can be defined. The ISO has defined such a standard:ISO 646 describes aninvariant subset of ASCII. The characters in the ASCII repertoire used by C and absent from the ISO 646 repertoire are: #[]{}\|~^ Given this repertoire, the Committee faced the problem of defining representations for the absent characters. The obvious idea of defining two-character escape sequences fails because C uses all the characters which are in the ISO 646 repertoire: no single escape character is available. The best that can be done is to use a trigraph – an escape digraph followed by a distinguishing character. ?? was selected as the escape digraph because it is not used anywhere else in C (except as noted below); it suggests that something unusual is going on. The third character was chosen with an eye to graphical similarity to the character being represented.

Since digraphs were out for C89, how did they end up in C99? They were imported from AMD1 (Amendment 1), AKA C95. Why were they added? Trigraphs are ugly.

C90 addresses the problem in a different way. It provides replacements at the level of individual characters using three-character sequences called trigraphs (see §5.2.1.1). For example, ??< is entirely equivalent to {, even within a character constant or string literal. While this approach provides a solution for the known limitations of EBCDIC (except for the exclamation mark) and ISO/IEC 646, the result is arguably not highly readable.

Thus, AMD1 provides a set of more readable digraphs (see §6.4.6). These are two-character alternate spellings for several of the operators and punctuators that can be hard to read with ISO/IEC 646 national variants. Trigraphs are still required within character constants and string literals, but at least the more common operators and punctuators can have more suggestive spellings using digraphs.

Not what I thought, either.

Written by Ry Jones

20 September 2011 at 12:33

Posted in Tech

Trigraphs, digraphs, K&R

In order to resolve a geek fight (not in my favor, I might add), I dug in and found out when and why di- and trigraphs were added to the C programming language. Without using a search engine, do you know when and why? Hint: the answer has nothing to do with keyboards.

Answer in a day or two, unless someone pipes up in the comments.

Written by Ry Jones

17 September 2011 at 21:17

Posted in Tech

New EDC knife?

I threw all my knives in the garbage when I saw knives that inject CO2 into your target. $400, too; what a bargain!

Written by Ry Jones

17 August 2011 at 0:38

Posted in Tech

I am the top result for yet another search

however, you won’t get any closer to the cheddar. Explains the comment I got this morning.

Written by Ry Jones

8 July 2011 at 12:00

Posted in Tech

Follow

Get every new post delivered to your Inbox.

Join 29 other followers