So you want to display quotes on your computer's locked screen when you're not at your desk. There's one way I know. Looking for a powerpoint that will sequence through slides like in kiosk mode? Sorry, that's not an option (yet) in Windows 10 for the lock screen.
Save your ppt as JPEG images (File > Save As > change the format - the name you provide will be a folder containing each slide)
That done, click on the Window (Start button) on the left of your taskbar and then on the Gear (settings). You'll launch Windows Settings.
Here, in the search box, type "lock" (it might suggest "add a folder to your lock screen slideshow", but don't jump the gun.
At the new menu, change the "Background" option from "Windows Spotlight" to "Slideshow" (drop down)
Then, under "Choose albums for your slideshow", add your new folder.
Then, click on "Advanced slideshow settings" and adjust "When my PC is inactive, show lock .." and "Turn off screen after slideshow has played for".. to your choice.
And that's it. Hit WIN-L and see the result!
Yes, the slides will be displayed in random order - nothing you can do about that :(
Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Sunday, July 30, 2017
Thursday, July 27, 2017
Perl Insert Contents of One File Into Another at Line Matching Regex
Nice to have something I think is better than stackexchange - how often does that happen :) ?
To insert after a line matching the regex
perl -n -i -e 'print; print `cat FILE_TO_INSERT` if m#REGEX_TO_MATCH#; ' FILE_TO_MODIFY
To insert before :
perl -n -i -e 'print `cat FILE_TO_INSERT` if m#REGEX_TO_MATCH#; print;' FILE_TO_MODIFY
If you want the insertion to happen at the first match ONLY :
perl -n -i -e 'print `cat FILE_TO_INSERT` if m?REGEX_TO_MATCH?; print;' FILE_TO_MODIFY
A very valid question is, what do you do if your match pattern has the question-mark character? :)
https://unix.stackexchange.com/questions/32908/how-to-insert-the-content-of-a-file-into-another-file-before-a-pattern-marker
To insert after a line matching the regex
perl -n -i -e 'print; print `cat FILE_TO_INSERT` if m#REGEX_TO_MATCH#; ' FILE_TO_MODIFY
To insert before :
perl -n -i -e 'print `cat FILE_TO_INSERT` if m#REGEX_TO_MATCH#; print;' FILE_TO_MODIFY
If you want the insertion to happen at the first match ONLY :
perl -n -i -e 'print `cat FILE_TO_INSERT` if m?REGEX_TO_MATCH?; print;' FILE_TO_MODIFY
A very valid question is, what do you do if your match pattern has the question-mark character? :)
https://unix.stackexchange.com/questions/32908/how-to-insert-the-content-of-a-file-into-another-file-before-a-pattern-marker
Saturday, July 08, 2017
A (Relatively) Low IQ Not Apparent in a Prepared Speech
Man, what a nice speech - he's succinctly put all 3 things together - Versailles > War > Lebensraum > the problem necessitating the formation of NATO. One thing missing is the human emotions that caused WW1 to happen in 1914 in the first place. When is being swollen-headed a crime? When is it a crime to want your own "place in the sun"? Is military-posturing a crime against peace if it is likely to lead to war? And he conveniently leaves out his role in the Final Solution as well.
This Trial will go down in history as a model example of how, while appealing to hitherto unknown legal formulas and the spirit of fairness, one can evade the cardinal problems of 25 years of the gravest human history.
If the roots of our trouble lie in the Treaty of Versailles--and they do lie there--was it really to the purpose to prevent a discussion about a treaty which the intelligent men even among its authors had characterized as the source of future trouble, while the wisest were already predicting from which of the faults of Versailles a new world war would arise?
I have devoted more than twenty years of my life to the elimination of this evil, with the result that foreign statesmen who know about this today write in their affidavits that they did not believe me. They ought to have written that in the interests of their own country they were not prepared to believe me. I am held responsible for the conduct of a foreign policy which was determined by another. I knew only this much of it, that it never concerned itself with plans of a world domination, but rather, for example, with the elimination of the consequences of Versailles and with the food problems of the German people.
If I deny that this German foreign policy planned and prepared for a war of aggression, that is not an excuse on my part. The truth of this is proved by the strength that we developed in the course of the second World War and the fact how weak we were at the beginning of this war.
History will believe us when I say that we would have prepared a war of aggression immeasurably better if we had actually intended one. What we intended was to look after our elementary necessities of life, in the same way that England looked after her own interests in order to make one-fifth of the world subject to her, and in the same way that the United States brought an entire continent and Russia brought the largest inland territory of the world under their hegemony. The only difference between the policies of these countries as compared with ours is that we demanded parcels of land such as Danzig and the Corridor which were taken from us against all rights, whereas the other powers are accustomed to thinking only in terms of continents.
Before the establishment of the Charter of this Tribunal, even the signatory powers of the London Agreement mast have had different views about international law and policy than they have today. When I went to see Marshal Stalin in Moscow in 1939, he did not discuss with me the possibility of a peaceful settlement of the German Polish conflict within the framework of the Kellogg-Briand Pact; but rather he hinted that if in addition to half of Poland and the Baltic countries he did not receive Lithuania and the harbor of Libau, I might as well return home.
In 1939 the waging of war was obviously not yet regarded as an international crime against peace, otherwise I could not explain Stalin's telegram at the conclusion of the Polish campaign, which read, I quote:
"The friendship of Germany and the Soviet Union, based on the blood which they have shed together, has every prospect of being a firm and lasting one."
Here I should like to emphasize and stress the fact that even I ardently desired this friendship at that time. Of this friendship there remains today only the primary problem for Europe and the world: Will Asia dominate Europe, or will the Western Powers be able to stem or even push back the influence of the Soviets at the Elbe, at the Adriatic coast, and at the Dardanelles?
In other words, practically speaking: Great Britain and the United States today face the same dilemma as Germany faced at the time when I was carrying on negotiations with Russia. For my country's sake I hope with all my heart that they may be more successful in their results.
Subscribe to:
Posts (Atom)