Windows 8.1 Drivers for Brother HL-5250DN

I had a little trouble installing the correct driver for the printer but eventually got it to work — here is how it went.

The manufacturer says the driver is already included with Windows OS:

brother HL-5250DN driver 01

However, I could not complete the driver setup instructions because the setup program (Add Printer) hung when I clicked on the “Windows Update” button, as directed.

So, as a first workaround I did the following:

  • I chose from the “generic” list of Brother drivers the one called “Brother Laser Type1 Class Driver.”

This worked just fine for a few prints I needed to do before I found some time to troubleshoot.

Later, I opened up the printer properties window and clicked the “New Driver” button:

brother HL-5250DN driver 02

Then, find and click “Brother” in the Manufacturer list. Then click “Windows Update.”

brother HL-5250DN driver 03

Wait a minute or two for it to finish downloading the drivers, and then the Printers list should show a bunch more drivers. Find “Brother HL-5250DN” and select it, then proceed through the rest of the dialogs to finish it out.

Once that is done, you should be back in the “Properties” dialog window. Make sure to click OK or Apply so that the new setting is saved.

Getting SharePoint libraries to sync to Windows desktop using OneDrive

I am now attempting to follow Microsoft Tech Support’s recommendation:

  1. Install a Registry entry. Instructions here.
  2. Open command prompt and type the following commands:
    1. %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
    2. %localappdata%\Microsoft\OneDrive\onedrive.exe
  3. Enter credentials and try to sync files again

The Registry Entry part has me download a .reg file containing the following lines:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\OneDrive]
"TeamSiteSyncPreview"=dword:00000001

The file downloaded with a .txt filename extension and so I had to first change this to .reg. Then, I double clicked the file and OK’d through the dialog boxes. When completed, I got a confirmation message saying that the registry entry was added successfully.

Executing the commands at the command prompt shutdown and restarted the OneDrive client. I have two OneDrive for Business drives sync’d to my desktop — both were shut down by the first command and both were started by the second command.

Upon starting, the OneDrive clients appear to be checking each file for changes.

Next, I logged into portal.office.com via both Internet Explorer and Firefox. I then opened OneDrive and went into my SharePoint library. I first tried clicking the “Sync” link in Internet Explorer, which did not work. I next tried the same in Firefox, and got the following popup:

sharepoint sync after onedrive registry and reset

“Microsoft OneDrive” is the option that worked — “OneDrive.exe” just opened up my existing synced OneDrive on my hard drive.

And now, all is well and the SharePoint library has synced to my local hard drive!

3D/GPU-related display problems with Atom editor on Xubuntu 16.04 VM

Was having a problem with Atom editor on a new Ubuntu/Xubuntu 16.04 virtual machine. Launching Atom using the --disable-gpu option seems to fix the problem:

$ atom --disable-gpu

Via discuss.atom.io.

Next, need to figure out how to modify the application launch item in the Whisker Menu so that it executes that command instead of the vanilla $ atom command.

 

CUPS and network printing on Linux

CUPS and network printing on Ubuntu GNOME 16.04, to be specific. CUPS is an open-source printing system for Mac OS, Linux and UNIX which I don’t know much about yet but appears to be pretty widely used judging by my limited googling.

Via Ask Ubuntu, a CUPS web dashboard can be accessed via the URL http://localhost:631/

Continue reading “CUPS and network printing on Linux”

Resetting a Brother HL-5250DN printer to factory default settings

I have an old Brother HL-5250DN black and white laser printer that I found via Craigslist. I want to set up the printer as a network printer on my home network — the first step is to factory reset the printer so that I can regain access to the admin control panel!

Continue reading “Resetting a Brother HL-5250DN printer to factory default settings”

Linux pagers: less is more

When you are on the Linux command line and you want to view the contents of a file, you can use the less program. less is a newer pager program that replaces the older pager program, more. Hence the joke: less is more.

less is new and improved, so in almost all cases it will be preferred over more (maybe there will sometimes be compatibility issues with very old programs, or shell scripts, in which case more will be used).

Continue reading “Linux pagers: less is more”

Playing DVDs on Ubuntu 16.04 LTS

DVDs did not play out of the box on my Ubuntu Desktop 16.04 LTS machine. I was able to fix this by doing the following.

First, entered the command:

$ sudo apt install libdvd-pkg

After the package and dependencies finished downloading and installing, it launched a short guided prompt sequence. I answered yes to all prompts — the only one really worth paying attention to was a choice to have the thing automatically update itself. It sounded like it has to build itself from source every time or something, so I guess it is a little non-standard in this regard. The prompts then told me to run the following command, which I did:

$ sudo dpkg-reconfigure libdvd-pkg

This popped up another little pseudo-graphical terminal prompt screen which, if I recall correctly, just asked me if I wanted to install the thing, which I answered in the affirmative.

After I completed these steps, all was well and I can now play the two DVDs I have tested without any problems.

I discovered this fix via a page on the Ubuntu wiki, RestrictedFormats/PlayingDVDs. According to the wiki, the actual software package that does the work is called libdvdcss2, and the libdvd-pkg package is a convenience package that makes the install easier.

Non-breaking hyphens in Microsoft Word

I’ve encountered a weird little use case for non-breaking hyphens in Microsoft Word, and I have found the way to do it at this blog entry at Allen Wyatt’s Word Tips: Ctrl+Shift+- (or Ctrl+_).

word-symbols

The non-breaking hyphen is used to keep a hyphenated phrase together across a line break. So, for example, the phrase “non-breaking” when occurring at the end of a line would not do this:

non-
breaking

Curated lists on Github

There are a large number of list repositories on Github spanning dozens of subjects. There is a sort of in-joke in the naming convention: they are for the most part named “awesome-{topic}” e.g. awesome-sysadmin. Someone (bayandin) on Github totally beat me to this, but here’s a partial list (unfortunately in no particular order at this time):

sysadmin
python
awesomeness 
java 
node.js 
javascript
tools of the trade
iOS
shell
vim and tmux
ruby
android
android (JStumpp)
big data
php
swift
swift (Wolg)
react
courses
electron
go
data science
svg
flask
machine learning
.NET
front-end development
public datasets
vue.js
django
R
web performance optimization
algorithms
tensorflow
elixir
images
computer vision
networking
mac OS
npm
working remotely
rails
C (not github)
MaterialDesign (google UI visual design philosophy)
UI motion library animations
emacs
READMEs
interview questions
REST
bioinformatics, machine learning, data science, related languages
security
application security
hacking
sci-fi
rust
windows
talks
natural language processing (NLP)
swift education
nodejs (vndmtrx)
internet of things (IoT)
opengl
information security (infosec)

Installing Visual Studio Code on Ubuntu 16.04 using dpkg

Yesterday I posted a note about manually installing the Atom editor on Ubuntu 16.04 using dpkg. A friend recommended that I try out Visual Studio Code for Python development, and I was pleased to discover that it is available in a .deb package for install on Linux. I used the same command to install the VS Code .deb:

foo@manchoo:~/Downloads$ sudo dpkg -i code_1.4.0-1470329130_amd64.deb 
[sudo] password for foo: 
Selecting previously unselected package code.
(Reading database ... 303742 files and directories currently installed.)
Preparing to unpack code_1.4.0-1470329130_amd64.deb ...
Unpacking code (1.4.0-1470329130) ...
Setting up code (1.4.0-1470329130) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
foo@manchoo:~/Downloads$