## Sailing to Byzantium

That is no country for old men. The young
In one another’s arms, birds in the trees
– Those dying generations – at their song,
The salmon?falls, the mackerel?crowded seas,
Fish, flesh, or fowl, commend all summer long
Whatever is begotten, born, and dies.
Caught in that sensual music all neglect
Monuments of unageing intellect.

An aged man is but a paltry thing,
A tattered coat upon a stick, unless
Soul clap its hands and sing, and louder sing
For every tatter in its mortal dress,
Nor is there singing school but studying
Monuments of its own magnificence;
And therefore I have sailed the seas and come
To the holy city of Byzantium.

O sages standing in God’s holy fire
As in the gold mosaic of a wall,
Come from the holy fire, perne in a gyre,
And be the singing?masters of my soul.
Consume my heart away; sick with desire
And fastened to a dying animal
It knows not what it is; and gather me
Into the artifice of eternity.

Once out of nature I shall never take
My bodily form from any natural thing,
But such a form as Grecian goldsmiths make
Of hammered gold and gold enamelling
To keep a drowsy Emperor awake;
Or set upon a golden bough to sing
To lords and ladies of Byzantium
Of what is past, or passing, or to come.

— William Butler Yeats, “Sailing to Byzantium”

## The Time for Song and Frivolity is Over!

A colleague went to see his son’s Christmas pageant, a day care thing where the kids try to sing “Jingle Bells.”

He says once his older daughter got to kindergarten, the school didn’t do singing Christmas shows anymore . . .

THIS IS KINDERGARTEN! THE TIME FOR SONG AND FRIVOLITY IS OVER! DO YOU HEAR YOUR PARENTS GOING AROUND SINGING ALL THE TIME? THAT’S WHAT GROWING UP IS ALL ABOUT! ALL JOYOUS ACTIVITIES ARE SURRENDERED OR STRIPPED AWAY FROM YOU!

## Activities That No One Does Anymore

I got an email today from a company wanting to introduce me to their faxing API (Application Programming Interface).

Faxing!? Will they also help me do other activities that no one does anymore, like playing the zither or baking my own bread?

## Are You Sure?

I was closing out of Remote Desktop Connection Manager and got the popup shown here.

Am I sure? To the extent that we can really be sure about anything, then yes I’m sure.

Why is the No option selected as the default? Is there an assumption that I’m flying by the seat of my pants, acting randomly and without certitude?

That I’m not a confident person? That I lack the courage of my convictions?

## Teaching Computer Science: What is a Computer Science Integration Specialist?

Sheena Vaidyanathan, a computer science integration specialist at Los Altos School District in California, says that states, school districts and boards of education have not prioritized computer science education the way they should. Even if not every child will grow up to work as a computer scientist, she thinks everyone should at least get exposure to how computers work.

A couple of things I don’t understand there . . . one is why everyone needs to know “how computers work.” They work on electricity, that’s about all I know about it.

Actually, I know a little more than that, but there’s no reason that everyone should know “how computers work,” any more than everyone should know how phones work, or how cars work, or how refrigerators work.

You can use things without knowing how they work.

I do think everyone can benefit from understanding how programmers think, which is based in part on knowing how computers work, but if you know that computers do exactly what you tell them to do — no more and no less — that’s about all you need to know.

The other thing I don’t understand is what is a “computer science integration specialist”? I had to look up a job description:

• Consult with each school leader or their designees to gather information about program needs, objectives, functions, features, and data metric requirements. Research need and create plans for computer science/technical personnel and other resources required for implementations for each school.
• Analyze, define, and document all relevant requirements for the teaching and learning of computer science, including but not limited to the impact on courses of study, streams of data and data capture, logical processes, computer lab or other learning environment requirements. Write and maintain specifications and document relevant workflows.
• Perform (department management approved) intervention(s) on the identified gaps by implementing existing or developing new appropriate interventions or programs to help create cultures or conditions of success in which computer science programs can flourish.

It goes on and on like that, but after reading the whole thing, I find myself no wiser as to how a person in this role is helping students learn computer science.

Money is available for this but not for hiring teachers with actual computer science education or experience?

Thus spoke The Programmer.

## Angelino Heights

The “Charmed” house:

Scheerer House, Queen Anne cottage:

Out of place amongst the Victorians:

Heim House:

Sessions House, 1889:

The gardener said the house was used in a DiCaprio movie but didn’t know which one (Pretty sure it wasn’t Titanic.):

The Michael Jackson “Thriller” house:

## Elvis Costello at the House of Blues

First time I’ve seen a concert at House of Blues in Anaheim. It’s a general admission standing room venue that holds I’d say around 1,500 people plus a seated balcony that you can get into for a premium price.

Pros and cons you can probably guess: You’ll have to stand for about 3 hours but once the show starts, you don’t really think about it. If the 64-year-old performer can stand for the whole show, so can I.

On the plus side, you can get quite close to the stage. Maybe not right in front unless you’re first in line to get in, but the sides of the stage you can get to easily.

Also, you get to see an A-list performer in a small room.

I don’t go to concerts in large venues anymore — Staples Center, Honda Center, the Forum, Rose Bowl, etc. I wouldn’t enjoy that.

I go to medium-sized venues, but even then, I prefer something unusual or unique like the Neil Young solo acoustic show at the Dolby Theater.

I’ve included the set list (to the best of my recollection) here as a Spotify playlist. Everything after “Everyday I Write the Book” was performed as an encore.

## Making it Easier for Women to Do Things They Don’t Want to Do

Apple launching tech camps for women in bid to diversify industry

Like other major tech companies, Apple has been trying to lessen its dependence on men in high-paying programming jobs.

I don’t think “dependence” is the right word there. Is that dependence like alcohol dependence, or like dependence on foreign oil?

It’s an oblique way of saying “we’re trying to employ fewer men,” but explicitly singling out members of a certain group for unwelcome attention sounds discriminatory and possibly illegal.

Women filled just 23 percent of Apple’s technology jobs in 2017, according to the company’s latest breakdown.

“Just” — why do we assume that working at Apple is a goal that a lot of women have? Maybe women found better jobs? Or something else they’d rather be doing?

Industry critics have accused the technology companies of discriminating against women through a male-dominated hierarchy that has ruled the industry for decades.

I’m more inclined to think that if women wanted to work in technology in greater numbers, they’d be doing so.

I’ve noticed recently that when President Trump says something, the media report it, but they’ve started following it up with a caveat along the lines of “He offered no evidence to support his claims.”

Now there’s a phrase you could use all day long! “Industry critics have accused technology companies of discriminating against women. They offered no evidence to support their claims.”

The fact that men outnumber women — or the other way around — in a profession is not evidence of discrimination. It may be evidence that women have more of a preference for “helping professions” — healthcare, social work, teaching, counseling, in all of which women significantly outnumber men — and men have more of a preference for technology.

It’s the simplest available explanation. That doesn’t mean it has to be right, but I think it is.

Thus spoke The Programmer.

## Troll College

• Improve your trolling with these tips and techniques
• Classic and effective troll responses
• Rules for custom created responses that own your target

## Competitive Programming: SPOJ – Glass Beads

Once upon a time there was a famous actress. As you may expect, she played mostly Antique Comedies most of all. All the people loved her. But she was not interested in the crowds. Her big hobby were beads of any kind. Many bead makers were working for her and they manufactured new necklaces and bracelets every day. One day she called her main Inspector of Bead Makers (IBM) and told him she wanted a very long and special necklace.

The necklace should be made of glass beads of different sizes connected to each other but without any thread running through the beads, so that means the beads can be disconnected at any point. The actress chose the succession of beads she wants to have and the IBM promised to make the necklace. But then he realized a problem. The joint between two neighbouring beads is not very robust so it is possible that the necklace will get torn by its own weight. The situation becomes even worse when the necklace is disjoined. Moreover, the point of disconnection is very important. If there are small beads at the beginning, the possibility of tearing is much higher than if there were large beads. IBM wants to test the robustness of a necklace so he needs a program that will be able to determine the worst possible point of disjoining the beads.

The description of the necklace is a string $A = a_{1}a_{2} ... a_{m}$ specifying sizes of the particular beads, where the last character $a_{m}$ is considered to precede character $a_{1}$ in circular fashion.

The disjoint point $i$ is said to be worse than the disjoint point $j$ if and only if the string $a_{i}a_{i+1} ... a_{n}a_{1} ... a_{i-1}$ is lexicographically smaller than the string $a_{j}a_{j+1} ... a_{n}a_{1} ... a_{j-1}$. String $a_{1}a_2 ... a_n$ is lexicographically smaller than the string $b_1b_2 ... b_n$ if and only if there exists an integer $i, i \leq n$, so that $a_j = b_j$, for each $j, 1 \leq j < i$ and $a_i < b_i$.

### Input

The input consists of $N$ cases. The first line of the input contains only positive integer $N$. Then follow the cases. Each case consists of exactly one line containing necklace description. Maximal length of each description is 10000 characters. Each bead is represented by a lower-case character of the English alphabet (a–z), where a < b … z.

### Output

For each case, print exactly one line containing only one integer — number of the bead which is the first at the worst possible disjoining, i.e. such $i$, that the string $A[i]$ is lexicographically smallest among all the $n$ possible disjoinings of a necklace. If there are more than one solution, print the one with the lowest $i$.

Time limit: 0.5s

Sample input

4
helloworld
amandamanda
dontcallmebfu
aaabaaa

Sample output

10
11
6
5



Solution below . . .

## The Saints Went Marching In

And, behold, the veil of the temple was rent in twain from the top to the bottom; and the earth did quake, and the rocks rent;

And the graves were opened; and many bodies of the saints which slept arose,

And came out of the graves after his resurrection, and went into the holy city, and appeared unto many.

It is an easy thing to tell a lie, but it is difficult to support the lie after it is told. The writer of the book of Matthew should have told us who the saints were who came to life again and went into the city. and what became of them afterward, and who it was that saw them — for he is not hardy enough to say that he saw them himself; whether they came out naked and all in natural buff, he-saints and she-saints; or whether they came fully dressed, and where they got their dresses; whether they went to their former habitations, and reclaimed their wives, their husbands and their property, and how they were received; whether they entered ejectments for the recovery of their possessions, or brought actions of crim. con. against the rival interlopers; whether they remained on earth, and followed their former occupation of preaching or working; or whether they died again, or went back to their graves alive and buried themselves.

Strange, indeed, that an army of saints should return to life and nobody know who they were, nor who it was that saw them, and that not a word more should be said upon the subject, nor these saints have anything to tell us!

Had it been the prophets who (as we are told) had formerly prophesied of these things, they must have had a great deal to say. They could have told us everything and we should have had posthumous prophecies, with notes and commentaries upon the first, a little better at least than we have now. Had it been Moses and Aaron and Joshua and Samuel and David, not an unconverted Jew had remained in all Jerusalem. Had it been John the Baptist, and the saints of the time then present, everybody would have known them, and they would have out-preached and out-famed all the other apostles. But, instead of this, these saints were made to pop up, like Jonah’s gourd in the night, for no purpose at all but to wither in the morning.

## A Reading From the Book of Numbers

And Moses, and Eleazar the priest, and all the princes of the congregation, went forth to meet them without the camp.

And Moses was wroth with the officers of the host, with the captains over thousands, and captains over hundreds, which came from the battle.

And Moses said unto them, Have ye saved all the women alive?

Behold, these caused the children of Israel, through the counsel of Balaam, to commit trespass against the Lord in the matter of Peor, and there was a plague among the congregation of the Lord.

Now therefore kill every male among the little ones, and kill every woman that hath known man by lying with him.

But all the women children, that have not known a man by lying with him, keep alive for yourselves.

The language is a bit archaic but you understand what’s happening: Kill the boys, kill their mothers, rape the daughters. Thus saith the Lord. Amen.

## What Comfort Can You Give Him?

When you get a person to look at the sun as it bakes down on the daily carnage taking place on earth, the ridiculous accidents, the utter fragility of life, the powerlessness of those he thought most powerful — what comfort can you give him from a psychotherapeutic point of view?

## Daily Affirmation

I start my daily commute by saying “OK Google, drive to work” into my phone, and Google responds by showing me the fastest route.

This morning, Google thought I said “have to work”:

## Competitive Programming: SPOJ – String Problem

Substring of some string A is defined as one or more (not necessary succeeding) elements of the string with maintaining the sequence.

There are given two strings, string VOKI and string TOKI. Write the program that will calculate the length of any shortest substring of string VOKI such as it is not substring of string TOKI.

### Input

In first line of input file there is string VOKI and in second one is string TOKI. The only characters that will occur are lowercase characters of English alphabet (‘a’- ‘z’). String lengths will be less or equal to 1000.

Note: input data will be such so there will always be a solution.

### Output

In the first line of file you should print the length of wanted substring.

Sample input

banana
anbnaanbaan

Sample output

5

(eg. banna)

Sample input

babab
babba

Sample output

3

(eg. aab)


Solution below . . .