Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

Common Task Scheduler Operational Codes

Here are some hard to find Operational Codes that you find in the History tab in Windows Task Scheduler. Very useful for trying to figure out why your scheduled task isn’t working.

Op Codes Description
0 or 0x0 The operation completed successfully.
1 or 0x1 Incorrect function called or unknown function called.
2 or 0x2 File not found.
10 or 0xa The environment is incorrect.
0x41300 Task is ready to run at its next scheduled time.
0x41301 Task is currently running.
0x41302 Task is disabled.
0x41303 Task has not yet run.
0x41304 There are no more runs scheduled for this task.
0x41306 Task is terminated.
0x8004131F An instance of this task is already running.
0x800704DD The service is not available (is ‘Run only when a user is logged on’ checked?)
0xC000013A The application terminated as a result of a CTRL+C.
0xC06D007E Unknown software exception.

By

How To Add Apps to Windows Startup Folder

When a computer reboots, there may be certain applications that need to be started. This was easy to do in Windows XP. All that you need to do is drag a shortcut to the app into the Startup folder through the Start menu -> All Programs -> Startup. However, in later versions of Windows (i.e. 2012, Windows 10) this option isn’t available in the Start menus.

You can open the Startup folder and add programs to run with the following steps:

  • open the Run command with Windows Key + R
  • type shell:common startup
    This is for opening the Startup folder for all users. If you just want to open the folder for the logged in user, type shell:startup.
  • Add shortcuts to the applications you want to run in the open Startup folder.

Then the next time that you reboot the computer, the applications in the Startup folder will .

By

Software Installation Sites for Eclipse

After installing Sloeber (the Arduino plugin for Eclipse), the software installation sites were deleted. This will prevent Eclipse from making updates to the installed plugins. These are the sites that I use with my Eclipse for PHP Developers setup which can be restored manually through Help -> Install New Software -> Available Software Sites.

  • Neon
    http://download.eclipse.org/releases/neon
  • The Eclipse Project Updates:
    http://download.eclipse.org/eclipse/updates/4.6
  • org.eclipse.e4.ui update site
    http://download.eclipse.org/releases/neon/201610111000
  • EGit P2 Repository
    http://download.eclipse.org/egit/updates-nightly/
  • LiClipseText p2 Repository
    http://www.liclipse.com/text/updates
  • Pydev p2 Repository
    http://www.pydev.org/updates/

By

Installing MS SQL Server on Ubuntu

At Microsoft Connect(); 2016, it was announced that MS SQL Server was available for Linux (Ubuntu and RedHat) and MacOS. This was a real surprise and I’m not sure if its free or not. It was an easy installation on Ubuntu 16 running on HyperV on a Windows 2012 server.

The installation procedure for MSSQL and SQL Server Tools are at:

After you install the software, a brief tutorial on using it from the command line is here, but I prefer using SQL Server Management Studio (see below).

screenshot-2016-11-17-10-51-38

By

DIY Peanut Butter

There have been far too many political posts this week so here is a positive one: how to make your own peanut butter!!!

You’ll need:

  • peanuts, lots of them
  • food processor 

Very simple procedure. Put peanuts in food processor and turn it on high speed. Eventually the oil gets separated from the peanuts and it becomes a thick paste. You may have to do this in short bursts of blending to prevent your motor overheating when the paste starts getting thick.

The end result is a 1 – ingredient product, depending on the quality of peanuts you purchased. The peanut butter in my attempt was thicker and drier than a store bought one, but it tasted better. Refrigerate afterwards because real food goes bad in a few days.