Every day seems to be World Something Day. Today is World Meteorological Day. Tomorrow will be something else, and the day after something else again. And those are just the UN sanctioned ones.
I think we need to have a day to honour all the people that get together and organise topic-based days. It takes a lot of coordination and determination to make sure that everything finds its right place. You don’t want World Dog Day and World Cat Day occurring at once, or you’ll just have lots of trouble in lots of parks around the world. You probably don’t want World Chocolate Day and World Diabetes Day to coincide. Or International Women’s Collaboration Brew Day to clash with Alcohol Awareness Month.
So, when should we schedule World World Day Day, a day organised in honour of all those people who spend their time organising days in honour of people? Somewhere near Administrative Professionals’ Day, perhaps.
Organising an event like that would be a good use of someone’s time. Maybe we could have a day to celebrate them.
Got this error, and they had the temerity to ask me if it was helpful. Pricks. Anyway. Could not save to new name. Could not save to external media. Could not save elsewhere on C:. In short, could not save.
One bit of advice I have read is to wait till Word does an autosave, then kill Word using task manager. Then when Word is restarted it will give an option to rescue the file. Sounds dangerous to me. Waited but save did not come.
First thing I did was print to PDF with all track changes and everything visible so I would at least have a record of what the file looked like.
Then created a new blank file. Tested that it could be saved. Yes. And in the same folder as the original file. (I knew that should be OK since I printed to PDF into the same folder).
Went to file I wanted to rescue, with track changes visible and all comments visible. Ctrl-A, Ctrl-C
Went to new empty doc and pasted. Got text and comments but not the track changes information. Well, that is still useful as a backup.
Now, it should be possible to make a copy with track changes information.
Another handy way to copy the text is to use the spike. Word users are so familiar with using the Clipboard to cut, copy, and paste information that we often forget about the spike. This is an area of Word that acts like a secondary Clipboard, with some significant differences. (You can learn more about the spike in other issues of WordTips or in Word’s online Help.) To use the spike to copy and paste text with Track Changes markings intact, follow these steps:
- In the source document, select the text you want to copy.
- Press Ctrl+F3. The text is cut from the document and placed on the spike. (If you wanted to copy, not cut, then immediately press Ctrl+Z to undo the cut. The selected text still remains on the spike.)
- In the target document, place the insertion point where you want the text inserted.
- Make sure that Track Changes is turned off in the target document.
- Press Shift+Ctrl+F3 to clear the spike and insert the spike’s text into your document.
So I went to source document ant hit Ctrl-A, then Ctrl-F3.
Opened blank with same template, track changes turned off (it is by default I think).
But does not save! The problems have come with it!
So that does not help.
Now, if I turn off track changes and accept all changes, I can save the document – so it is a bug somewhere in Word’s track changes code.
If the problem occurs again, can try the spike method with the different aspects of track changes turned on and off, to narrow it down.
So no satisfactory solution discovered. I do not know what change I put in that caused the issue, and it has never occurred before. So… I dunno. The above ideas are just partial solutions.
So I sometimes run the script stop.sh to shut down my Debian machine (it lives in ~/bin).
$ stop.sh [sudo] password for username:
It asks me for my root password then does an update to get the new file version information, then an upgrade and then halts the machine. It’s a one-liner:
cat stop.sh #!/bin/bash sudo apt-get update && sudo apt-get -y upgrade && sudo shutdown -h now
Now, what’s bad about this?
- Well, sudo ‘remembers’ that I’ve typed my password for (by default) five (or is it fifteen?) minutes, so if the early steps (update, for example) take a long time, the latter ones won’t work.
- Also, if my intent is to let it update and shut down without me, I’ll be walking away from a machine in which root access is available for that five (or is it fifteen?) minutes, so I probably want to lock the screen before I go. Not a big deal if it’s a home machine or you can lock the office, and probably not a big deal anyway unless you deal with sensitive information (or work with untrustworthy people…).
- The -y flag tells apt-get to say ‘yes’ to any queries the installer might ask. Could be a problem if I have a non-standard install or specific needs.
- I don’t see any information that the installer might give me, and I don’t find out if it worked till I come back and boot up.
- Some packages give information screens and ask the user to input a choice or acknowledge some information. They can mean it does not complete the task and so does not shut down.
The apt-get man page says:
-y, --yes, --assume-yes Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package, trying to install a unauthenticated package or removing an essential package occurs then apt-get will abort. Configuration Item: APT::Get::Assume-Yes.
So that should be borne in mind too.
Still, I use it anyway.
Guidelines Derived from Watching the Australian Cricket Team get Pummelled in Tasmania by South Africa in 2016
Should have put this out earlier; it’s already dated. On the other hand, I think some of it has turned out more or less correct. Some.
Based on listening closely to what has been coming out of the Australian ‘camp’ during their recent run of failures, I have arrived at four rules for selecting and running an Australian cricket team.
Rule 1: Choose players who at least look like they care. It’s not enough to pull a sad face or look angry when something goes wrong. Maybe if they pretend hard enough it will become true!
Rule 2: Forget supposed talent and look at results. Talent is as talent does not as it looks like it ought to be capable of. Australian selectors have a history of being seduced by players who look the part but perform marginally, and not playing those who are ‘unfashionable’ despite being better performing. How did Mark Waugh get to play over 100 tests?
Rule 3: ‘Stick with my natural game’ is code for ‘I don’t want to have to think very hard’ or possibly ‘I don’t really give a shit’. They are professionals who need to adapt to the conditions and match situation. If they cannot do that they are not good enough to be out there. Judge players on how they perform when things are tough, not when they are easy.
Rule 4: Any system with Greg Chappell (currently Cricket Australia’s National Talent Manager, whatever that means) involved fails. (This is not so much based on recent results as on watching the trail of destruction Chappell leaves whenever he is tasked with ‘managing’ anything. The words ‘piss-up’ and ‘brewery’ come to mind.)
I want to be able to use lp and print from command line, not just from gui. My Linux box (Debian, running FLWM as window manager), prints fine from applications with print dialogues, for example LibreOffice or evince, but I want to be able to use lp, a2ps, maybe print from xFig, and these all use the lp command line interface, and that is not set up.
I know I can go ($ is command line prompt)
$ lpadmin -d [printer-name]
but what is ‘printer-name’? I have a couple of printers attached by USB, not network.
It’s actually very simple.
$ lpstat -a FUJI_XEROX_DocuPrint_CP305_d accepting requests since Wed 02 Nov 2016 13:26:34 AEDT HL5340D accepting requests since Wed 14 Dec 2016 17:33:54 AEDT Stylus-TX100 accepting requests since Tue 13 Dec 2016 20:19:20 AEDT $ lpadmin -d HL5340D
As someone working in a technical field, I often feel like designers do not really appreciate the subtleties of notation and how to make it clear. In the title of this post, ‘I and l’ is upper case ‘eye’ and lower case ‘el’. Not that you can tell.
and here is the same formula using some sans serif fonts, using Microsoft Word…
Now, this is not to criticise these fonts. They are just not designed for this job. It is the chooser of the font who is being a wee bit silly if these fonts are used in a mathematical document. An even trickier example is…
which I have produced in LaTeX, and the nu and vee are well-differentiated, but that is because the font was designed by someone (Knuth) with the express purpose of laying out mathematics.
If I was able to give advice to anyone out there designing a text with mathematics in it, it would be to look at the two letter/symbol pairs I have shown here, and make sure they can be told apart. If not, the font choice is a poor one and needs to be changed. And what is fashionable at the moment is irrelevant beside the need for clarity and the fight against ambiguity and lack of precision.
Ignore this post.
Got a Fortran program that does some numerical work and I just have it outputting a single character (‘-‘) to the screen each cycle, so I know it’s ticking along. It looks like this, sort of:
-------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------> done
But I thought that was ugly, so I’ve got something much nicer now. You know how in some text-based programs the fact that it has not completely locked up is shown by having little rotating bar, made just by printing |, /, -, and \ in the same place one after the other? Well, this is one way to do it in Fortran (note, just a snippet, not a working program):
! declare array 'star()' character,dimension(1) :: star(4) star(1) = '|' star(2) = '/' star(3) = '-' star(4) = '\' !. !. !other code... !. !. do iloop=1,nloop write(6,'(a,a)',advance='no')achar(8),star(mod(iloop,4)+1) !. !. !content of loop... !. !. end do
So all that this does is write an ‘achar(8)’ character to make the output backspace, use “advance=’no'” to avoid adding a line return, and use ‘mod’ to run through the four characters in the array over and over again.
‘achar(13)’ also works but only if you want to return to the beginning of the line and overwrite everything.
While thinking about this, I wondered: The loop is fairly big (searches some big arrays, does some calculations, works out an energy in a Monte Carlo simulation, that sort of thing) and so since this starry thing is the only screen output, I was wondering — how much does it cost in runtime?
using Gfortran, with -O2 optimisation. With and without the above ‘write’ statement, times are:
$ time ./Dom2016G_tests < inputsG real 2m50.757s user 1m57.032s sys 0m1.616s
real 2m49.191s user 1m56.895s sys 0m1.587s
So there we have it, a time cost (looking at the ‘user’ time) of less than 0.2s, and only about 0.1%. So I think I’ll keep it. It looks nice.
Oh, and making the animated gif: I made four little bitmaps by screen grabs from LibreOffice, all the same size, and called them a1.gif, a2.gif a3.gif and a4.gif. Then just this command line (I put loopcount in to stop it after a finite number of loops. –loop and it goes forever…):
gifsicle --loopcount=100 -d 30 a?.gif > star.gif
Deep fried. Dusted with sugar. What else matters?
1/4 cup lukewarm water
1/2 teaspoon sugar + 7 grams yeast
Combine the above and let sit for 10 mins until frothy.
2 cups plain flour
1/2 teaspoon salt
1 + 1/2 tablespoons sugar
1 cup lukewarm milk
Optional: about 1/4 cup softened fruit, small bits. Sultanas, raisins, cooked apple.
Cinnamon/sugar for dusting
Whisk egg and sugar into yeast mixture.
Put flour and salt in a bowl, make a well. Add half the milk and whisk to smooth. Add yeast mixture and whisk to smooth, add rest of milk and whisk until smooth. It needs to be smooth and pretty runny. Sit bowl in warm place with cling film over top and let it double in bulk.
To cook: Heat oil (enough to deep fry) with hot plate on about 1/3. Dip spoon in hot oil, then spoon a blob into the oil and cook to golden brown. Just a couple of minutes should do.
Note: This is a pointless note to myself.
I wanted to install my old LaserJet II on a Win 98 box. There’s only one trick to this; go here: ftp://ftp.hp.com/pub/printers/software/ and get the file lj120en.exe (or whatever language) and put it on a USB drive, after installing USB software on Win 98, which I outlined here. Or get the file into Win 98 directly if it is networked, or via a floppy or a CD or whatever. The exe file can be unzipped using any zip program, or you can run it and let it unzip itself. Note that if you can find out which file you need from this repository, you may well be able to use the other files there to install any number of devices. This is just one example; but HP do not keep old drivers on their website, so this is a useful site to know about.
Then just use Settings -> Printers -> Add Printer and click through the various dialogues and tell it to find the files wherever you have copied them to (‘Browse’ button). Then make sure your printer is connected and turned on and has paper in it, and go and see if the test pages works. It did for me.
Why? I have an old PC non-networked and an equally old printer with plenty of toner but no connection to a USB-only modern machine, and I just want to use the old hardware to print out some rough drafts.
cd .local/share/applications/ grep calligra * rm calligra.desktop
Done. The grep just checked for which .desktop files had it in, then I removed the one that did.