Saturday, September 30, 2017

Portable water storage - best pet food bin

I was in the market for a dog food container. For this container, one of the main requirements was that it should meet human food grade standards, such as BPA free if the material was plastic, lead free if painted.

Bought a tin with a lid that was specially made for pet food. However, on the second day, ants occupied the tin. So I had to return it. Not quite sure what to buy for dog biscuits, then an idea suddenly popped up, why did I need to focus on pet products? Why not try to find something that was not specially designed for pets, but fitted the purpose?

After a bit search on the hardware shop website, I found one product that was perfect portable water storage with wide mouth: airtight and safe. I ended buying a water storage drum for dog biscuits and it worked well.

Think the problem from another dimension and it may find a better solution.




Tuesday, May 23, 2017

Microsoft Word/Excel files have weird icons/generic icons

Not quite sure when it started, but a friend's computer has some strange icons on the desktop. Basically, the icons are the generic icons Windows uses to display the file type it doesn't know how to open. However, when you click on it, they can be opened by Word or Excel.

Upon on further checking, the files with wired/generic icons are actually Word or Excel files. Other Microsoft Office applications don't seem to be affected.

Followed the methods at https://superuser.com/questions/505859/microsoft-word-files-have-weird-icons-suddenly, but nothing helped.

One possible cause of this issue is that the files in the C:\Windows\Installer\{91140000-0011-0000-0000-0000000FF1CE} corrupted. Note that 91140000-0011-0000-0000-0000000FF1CE may change based on your version of Office. You can go to C:\Windows\Installer and search 'wordicon.exe' to locate the exact folder. This folder also can be found in Registry at \HKEY_CLASSES_ROOT\Excel.AddInMacroEnabled\DefaultIcon.

Once you open the folder, find out the *icon.exe files with generic icons, copy the good ones from C:\Program Files (x86)\Microsoft Office\Office14 (again, this may change based on your version of Microsoft Office) and overwrite the ones in C:\Windows\Installer\{91140000-0011-0000-0000-0000000FF1CE}. Restart the computer and the problem should be solved.

Saturday, March 04, 2017

Set up Adobe PDF viewer in TeXnicCenter

After long time without using TeXnicCenter, suddenly found out the PDF viewer does not work any more. It seems that every time when Adobe updates their PDF reader, there are settings that need to be changed in TeXnicCenter.

The first step is to disable "Enable Protected Mode at startup" in the Adobe PDF viewer (Edit>Preferences>General or  Edit -> Preferences -> Security(Enhanced), depends on the version). The change the settings in TexnicCenter.

Basically in the Viewer settings there are four sections that need to be changed. The Executable Path should point to the location where the PDF viewer is . The table below summaries the other settings.



Version
View project's output and  Forward search
Close document before running (La)TeX
X
Select DDE command and the command is
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: arcroviewR10    Topic: Control
The server above is for Adobe Reader.
For Adobe Acrobat Pro, use arcroviewA10.
Select DDE command and the command is
[DocClose("%bm.pdf")]
Server: arcroviewR10    Topic: Control
The server above is for Adobe Reader.
For Adobe Acrobat Pro, use arcroviewA10.
If the command does not work, use [AppExit]
Instead.
XI
Choose Command line argument and type in "%bm.pdf"
Select DDE command and the command is
[AppExit]
Server: arcroviewR11    Topic: Control
The server above is for Adobe Reader.
For Adobe Acrobat Pro, use arcroviewA11.
DC
Use the setting for X or XI. The Server is arcroviewR15 for reader and arcroviewA 15 for Acrobat Pro.   
Use the setting for X or XI. The Server is arcroviewR15 for reader and arcroviewA 15 for Acrobat Pro.