Beej's Guide to Git
via Michael Tsai
Mostly Robot
via Michael Tsai
gpedit.msc
Local Group Policy Editor panel.Computer Configuration
Administrative Templates
Windows Components
Remote Desktop Services
Remote Desktop Session Host
Connections
Restrict Remote Desktop Services user to a single Remote Desktop Services session
policy to Disabled
.Limit number of connections
policy to Enabled
.
RD Maximum Connections allowed
to 999999
(unlimited).Set repositoryPath
and globalPackagesFolder
to ensure that all project references point to the new path.
Environment variables need to be cleared as they’ll override Nuget.Config
.
NUGET_PACKAGES
User environment variableNUGET_PACKAGES
System environment variable%APPDATA%\NuGet\NuGet.Config
file config/globalPackagesFolder
setting%ProgramFiles(x86)%\NuGet\Config
file config/globalPackagesFolder
settingAlt + F8
During Windows setup:-
oobe\bypassnro
command.Based on Saving Aranet4 data to Raspberry Pi
When you see the screen indicating that your PC can’t run Windows 11, press Shift + F10 to open the Command Prompt.
Setting up CUPS isn’t necessary with the current Raspberry Pi OS image. Working drivers for ARM are the main problem.
Add DefaultPath
string value to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\Options
. %UserProfile%
works here.
via Michael Tsai
Forked from zufuliu/PDN-IcoCurType
Plugins are supported for the Store release. You just have to install them in a different location. Go to your Documents folder, create a folder called “paint.net App Files” (no quotes though), and then create a folder for each plugin type: Effects, FileTypes, and Shapes. And then put your plugins into each folder just like you’re used to with the Classic release. This does mean that plugins are installed per-user, mind you. This method of installation is also supported by the Classic release, by the way.
paint.net forum post
Windows 11 scale factor | 100% | 125% | 150% | 200% | 250% | 300% | 400% |
---|---|---|---|---|---|---|---|
Context menu, title bar, system tray | 16px | 20px | 24px | 32px | 40px | 48px | 64px |
Taskbar, search results, Start all apps list | 24px | 30px | 36px | 48px | 60px | 72px | 96px |
Start pins | 32px | 40px | 48px | 64px | 80px | 96px | 256px |
Note
Apps should have, at the bare minimum: 16x16, 24x24, 32x32, 48x48, and 256x256.
This covers the most common icon sizes, and by providing a 256px icon, ensures Windows should only ever scale your icon down, never up.
via Michael Tsai
With PowerShell
In .NET 5+ set <UseWPF>true</UseWPF>
and <UseWindowsForms>true</UseWindowsForms>
in the project file.
git config --global user.name
git config --global user.name {display name}
git config --global user.name ""
git config --global user.email
git config --global user.email {email address}
git config --global user.email ""
Tool to migrate .NET Framework projects to .NET “Core”.
JS for ZenStack(Prisma Catalyst For Full-stack Development):
“When I transitioned from the backend development world to the full-stack world in 2021, I found that all the buzz from the popular stack like Next.js, Prisma, and tRPC seems to be around monolithic, people were no longer talking about the microservices.”
Add registry entries for folder and background context menu items
Read MoreComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge
KeyComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\HubsSidebarEnabled
DWORDedge://policy/
in Edge and click Reload Policies
to check setting appliedProgram: explorer.exe
Arguments: paintdotnet:%1
Friendly Name: paint.net
Or change the name of the target folder during the clone:-
Paste plain text in MS Office ALT, H, V, T consecutively
[DatabaseGenerated(DatabaseGeneratedOption.None)]
attribute to turn off auto generated keys.DbContext.Table.RemoveRange(from c in DbContext.Table select c)
to clear table. Or ((IObjectContextAdapter)DbContext).ObjectContext.ExecuteStoreCommand("TRUNCATE TABLE [Table]")
for quick and dirty.[Key]
attribute to define primary key[Table("[Table]")]
on class for table nameCreating a background task for a UWP app requires a Windows Runtime Component as host
(for out-of-process background tasks). Among the limitations for creating Windows Runtime Components is the inability to expose Task and Task<TResult> as part of the signature of a public method.
‘In the Core Project (.NET Standard Project) Properties > Compilation > Advanced > Select “PDB Only”’
Doesn’t work with .NET Core dlls due to pdb format
When accessing a remote port from a UWP app, using TcpClient, an ExtendedSocketException ‘An attempt was made to access a socket in a way forbidden by its access permissions’ is thrown.
No straightforward way of adding exception handling to a LINQ expression using query syntax.
Add an app.manifest file to the Project and use the System.Security.Principal
namespace to check at runtime whether privileges have been provided.
Via @zekjur
UI described in post is already out-of-date. Azure interface setup is fussy with no detailed error messages.
Simple chrome extension to hide distracting sidebar elements on StackOverflow.
With the side effect of learning how to create simple Chrome extensions. This answer assumes you want to see them on other StackExchange sites.
Requires a local (i.e. non-GitHub) build.
jot -w 2017/%02d 12 | xargs mkdir -p
For heathergraph, based on How to check if a Git pull is needed. Makes a bit of a mess of logging to console but does the job.
Python based text email print server for Raspberry Pi and Pipsta
curl -I <url>
or curl -v <url>
which also includes whether the server is blacklisted (not that this is necessarily correct).
> HTTP/1.1 301 Moved Permanently
...
< location: <actual url>
Add bcm2835-v4l2
to /etc/modules
After you inevitably break your Windows Subsystem for Linux you can ‘factory reset’ it (including the file system) by running the following from an elevated Windows command prompt.
On all my Ubuntu on Windows installs to date I’ve initially got a sudo: unable to resolve host [PCNAME]
error when running a command with sudo.
Bash for the Code Throne
From Windows Vista onwards Microsoft have provided API functions to monitor changes to the Clipboard.
The Dropbox folder path is stored in info.json in the Dropbox Application Data and Local Application Data folders.
Historically the default ‘Email’ button in Word/Excel had some limitations that made it mostly unusable. It’s tendency not to save messages to ‘Sent Items’ being it’s worst fault, but also the default Subject and Body content weren’t great. To get around these limitations I’d been using a custom ‘Email Document’ button attached to an ‘EmailDocument’ macro. After upgrading to Office 2016 this stopped working.
Read MoreFonts for the Font god
Copy of pebble-examples/pebblekit-js-weather with additional functionality.
The first rule of C is don’t write C if you can avoid it.
Revisited creating a tags page for this blog. Pretty straightforward apart from having to correct all of the post tag formats.
Code by Charles Petzold is an excellent read, “a unique exploration into bits, bytes, and the inner workings of computers”. I thought it would be interesting to write an application to generate the combination of Braille, Morse and Binary found on the cover for any text input. I assumed someone would have done this already as the book is now a good 15 years old. If they have I couldn’t find it.
When Windows 8.1 came out Computer
in the Windows Explorer Navigation Pane was renamed to This PC
and a load of User folder links were added to it.
Has to be pre-compiled for GitHub pages sadly. Four years old so maybe it’s supported now. This is a To-Do reminder really.
The solution suggested on various forums is to run ‘sfc /scannow’ from an Administrator Command Prompt and then restart Outlook.
Read MoreAs with most xaml based apps there are any number of ways of ordering a list of items. A quick and straightforward way to do this entirely in xaml is to use a CollectionViewSource.
Read MoreThe OneDrive folder path was originally stored in the registry under SkyDrive, but this is no longer the case.
Retrieving the contents of the OneDriveConsumer
environment variable seems the most straightforward method.
A couple of posts from Kirill Osenkov on Visual Studio Solution and Project configuration.
In trying to create a custom control for a Windows Phone 8.1 project I was having an odd problem where StringFormat didn’t seem to be supported by the TextBlock control Text property any more so the following “Unsupported” style raised an error against StringFormat=T:
Read MoreAnd the Front Matter ‘title’ variable overrides it the same as the ‘date’ variable. Which makes sense if you think about it.
Read MoreJekyll Now didn’t include support for Font Awesome icons so I ha(a?)cked them in by copying the method used by Haacked.
Read MoreTest post using the “Post” link at the top of the page.
Read MoreRough and ready parser for read.md using RegEx for read.md
GitHub, not unreasonably, has a read-only mobile site. Writing this on the desktop site on my phone is fairly awful. Even ignoring my terrible memory wrt the header values.
Read MoreBit of a cheat as I’ve just done the phone post and so therefore can just about remember all the criteria for a valid post. Maybe try again later and see how that goes.
Read More(Test of external URL posts).
There are various ways of doing this. This one has been done by forking the Jekyll Now repository on GitHub.
Read More