Saturday, 5 May 2018
The new bookmarks are being created with a certain naming format, they are sequentially numbered and are named like "OLE_LINK##". These bookmarks are automatically created by Word.
Here is a macro to automatically delete the bookmarks straight after they're created. It doesn't delete other bookmarks, only the ones that start with "OLE_LINK".
The best place to put this is in the Normal.dot file. To find this, enable the Developer tab in the ribbon, and then click on the Visual Basic button. In there you can find a file called "ThisDocument" inside the "Normal" heading. Inside that file just put the following code and then save it.
Application.OnTime Now + TimeValue("00:00:01"), "DeleteOleBookmarks"
Dim bmIndex As Integer
Dim bmType As String
For bmIndex = ActiveDocument.Bookmarks.Count To 1 Step -1
bmType = UCase(Left(ActiveDocument.Bookmarks(bmIndex).Name, 8))
If bmType = "OLE_LINK" Then
Tuesday, 1 May 2018
Here is a PowerShell v3.0+ script and Windows Task Scheduler config file for fixing this issue. The schedule will run at system startup, and just runs the script. The PowerShell script will register a script block to some Windows events. One is the brightness change event, so when the user manually changes the screen brightness it will save that value to a temp file. The other event is when the power supply is changed to battery/charging, it will change the value back from the saved temp file.
Here's the PowerShell script, just copy this into a Notepad and save as "C:\Battery power display brightness.ps1".
Sunday, 1 April 2018
Overview of PowerShell Modules
- Script Modules -- PSM1 files that usually contain functions, but can contain any valid PowerShell code.
- Binary Modules -- Compiled DLL files, which can be created in .NET languages like C#, F# or VB.
- Manifest Modules -- These are Script Modules which contain a manifest.
- Dynamic Modules -- In memory modules which haven't been persisted to permanent storage.
How To Create A PowerShell Module
- # A private variable.
- $prefix = 'Some text'
- Function Get-Prefix
- Function Append-Prefix ($suffix)
- $prefix + $suffix
- Function HiddenFunc
- # do something...
- Export-ModuleMember -Function '*-*'
How To Use A PowerShell Module
Friday, 16 December 2016
Uploader for Vimeo stores only the paths to videos existing on your device while it has them pending for upload.
It will only upload to Vimeo.com. No data is uploaded to any other server.
Once upload has completed (or has been removed by the user) it will have all data about the video removed from the app's storage location.
It uses OAuth2 to authenticate the user with Vimeo.com.
Sunday, 30 October 2016
Sunday, 24 May 2015
I've been playing the quite remarkable game "Murdered: Soul Suspect" and came across these books in the apartment where Ronan (the main character) has his last fight. You have to get very close to be able to see them. They have rather strange titles.
On another note, I like the room you find these in. The girl that hid in there was kinda spiritual and it shows, by the crazy drawings on the floor, the dream catcher hanging from the ceiling, and paraphernalia she adorns her clothing with!
And what the heck is that stuck to the side of the fridge, a strange picture of (what I guess is) a face with a green eye. Weird.
Thursday, 21 May 2015
Uploader for Vimeo is an Android app for automatically uploading videos you've taken to the Vimeo.com website.