Tuesday, May 22, 2018

Bad graphics drivers can cause extreme general slowness

For several months, one of my computers was being extremely slow for its specifications. There wasn't any clear bottleneck - things would stop responding for many moments even under very light CPU and disk I/O loads. I had intermittently tinkered with various settings and tried uninstalling things, but I only saw noteworthy gains after reinstalling the graphics driver (for completely unrelated reasons). Apparently the NVidia driver I had was poor. I'm not sure how it caused such bad general performance, but the new driver is much better.

Monday, May 21, 2018

FMod - Cut convenience improvement

A new user asked me whether Abiathar has a convenient way to move tiles from one place in a level to another (other than copying and then deleting them from the original spot). I was about to reply that it does - the Copier will cut if you right-drag instead of left-drag - but then I tested it and found that feature to be highly inconvenient. It cuts all copied planes, but "all copied planes" includes visible but locked planes which shouldn't be editable. Using it without blowing away other planes requires hiding those other planes outright, which requires more and different keystrokes. So today I made cut mode only cut planes that are fully active.

Saturday, May 19, 2018

Finding the results of a phpBB search that won't render

Yesterday I investigated a situation in which a phpBB forum completely failed to display the search results for a certain query, instead rendering a PHP error spew about invalid characters. I knew that the problem was that a post turned up by the search contained badly mis-encoded characters, which I would usually fix by hunting down the post in the SQL database and manually removing the bad characters, but this time my LIKE-based searching wasn't finding the post.

I happened to notice a table called phpbb_search_results. Apparently it contains recent searches and the cache key for each. I tried the problematic search then refreshed the table listing - sure enough, a row appeared. I looked for the cache key in the directory listing of /cache/production; the relevant file turned out to be data_search_results_CACHEKEY.php. The last line of that file seemed to include an array of some sort, some entries of which looked like post IDs (and a few of which I had found with my earlier database-searching attempts). Navigating to /viewtopic.php?p=POSTID for each candidate found the specific post that refused to render.

Removing garbled characters from that post made the search results page load as normal.

Friday, May 18, 2018

Policy Plus - Comments in Semantic Policy

One user found that Policy Plus doesn't have a convenient way to export POL files and keep the policies' comments with the policy states. Preserving comments in POL files would be difficult because they never hold comments at all - that's what CMTX files are for. The existing Semantic Policy (SPOL) format seems ideal for keeping everything about each policy together, so today I extended it a bit to include an optional Comment: line between the policy ID and the general state. Since comments can include newline characters, those are escaped as \n and backslashes as \\. The Inspect SPOL Fragment form has been updated to provide the comments from the appropriate policy-to-comment map.

I also updated the ADMX download URL to point to the package for Windows 10 1803.

These changes are live on GitHub.

Thursday, May 17, 2018

Backup Operators are only special because of assigned privileges

One user wanted to know how to replicate the effect of the Backup Operators group on a Windows edition that doesn't have it. In their case, there was an easier solution: making the backup user a full administrator wasn't a problem. In other cases, a Backup Operators-like group can be created by assigning any group the following privileges in the Local Security Policy snap-in's User Rights Assignment section:

  • Back up files and directories
  • Log on as a batch job
  • Restore files and directories
  • Shut down the system
The most important privileges are the ability to back up and restore files and directories. Logging on as a batch job is useful for scheduled tasks; shutting down the system is just something server managers might need to do.

The NTRights utility can be used on systems without the Local Security Policy tool to assign SeBackupPrivilege, SeBatchLogonRight, SeRestorePrivilege, and SeShutdownPrivilege to the group.

Wednesday, May 16, 2018

PSThar - v1.1

Over a year ago, I released PSThar, an Abiathar extension that embeds a PowerShell runspace in the Abiathar process to allow scripting of the editor. A week or so after the release, I added the ForEach-LevelTile cmdlet, a convenient shortcut for iterating over every tile in a level. I realized yesterday while writing some scripts for a user that I never released the new version. So today I bumped the version to v1.1, filled in the "long description" metadata field that I had missed before, and published the new AEX.

Tuesday, May 15, 2018

FMod - Fix order of startup warnings

A very helpful Abiathar user reported a UI issue. After program initialization is complete, Abiathar checks its command-line arguments to see if it should try to un-LZ an EXE or open a project file; that's all fine. If a project file's version is not recognized, Abiathar will produce a warning before trying to open it; that is also the intended behavior. However, if the project open attempt is made at startup (like when the user drags a project file onto the Abiathar executable), any warnings will appear under the splash dialog and therefore be unreadable. I fixed that by doing the command-line argument processing when the main form is shown (after the splash screen is gone), not during its load.

I also made the temporary level wrappers used by the clipboards palette read-only, since there should be no way for a tool to operate on them and render planes shouldn't be changing the levels.