Fix Windows 10 Account Notification
Recently I deleted my Microsoft account, but then my Windows 10 computer kept complaining with a notification of “You need to fix your Microsoft Account for apps on your other devices to be able to launch apps and continue experiences on this device.” Because I used a local account on my computer instead of a Microsoft account, I was confused on what I needed to change to get this notification to finally leave me alone. I didn’t want to take the easy route of just disabling account notifications because those notifications might be useful sometime in the future.
Process Incoming Mail with PHP Script with Exim
Does your web application allow people to email a unique e-mail address to perform actions on your site? If not, it’s a great feature to add and can be immensely powerful. The possibilities are endless, but a few common examples of this include customer support systems, posting to social media, or adding tasks to a to-do list. With the To-do List application example, users will send messages to a generated e-mail address that is unique to their account. The incoming message then is processed by a program or script to add that message as a to-do list task.
LUbuntu Keyboard Shortcuts (Openbox)
Inside of LUbuntu there is no graphical program that comes packaged to edit keyboard shortcuts of your computer. But luckily, all of the keyboard shortcuts are stored in an easy to modify XML file. At the time of writing this post (Openbox 3.5.2), there is one somewhat annoying behaviour, in which you can’t set single-key keyboard shortcuts and I doubt this feature will change in the future.
- Navigate to the folder ~/.config/openbox
- Backup the XML file just in case you mess something up.
- Edit the XML file and change the
<keybind>
key
attribute to the key that you want.
To perform this task using the terminal, launch the terminal with
Ctrl+Alt+T
or by using the menu.
C Get MP4 Duration
I was recently working on a program that needed to get the duration of MP4 files and I really didn’t want to call an external program like ffprobe and parse the output. The code as it’s currently standing is below, but maybe the information along side it may be more useful. Now, this code isn’t 100% accurate and I coded it only for speed, lower IO usage and the videos I had to parse all were encoded under the same conditions.
Solve JavaScript Scroll Event Delay
JavaScript is one of those languages that has a lot of quirks. One of them that I recently ran into is how the scroll event isn’t triggered until after the page scrolls. You probably will notice this being a problem on a few sites that have sticky sidebars and headers. A sticky element is an element, such as a sidebar, that scrolls with the page and is always visible. If you notice that the sticky element lags behind by a fraction of a second when you scroll giving it a jittering effect, that site is victim to this JavaScript “flaw.”