Monday, July 3, 2023

SQL Server 2014 installation issues on Windows 10, etc.

 You're installing SQL Server 2014 (because it's the last 32-bit SQL)

You can't get SQL services to run and get an error like:

Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.

This is firstly because of TLS 1.0 not being enabled because of security. And because of that, the installation of the instance goes awry.

Your options are to enable TLS 1.0 or upgrade SQL Server 2014 to a more recent cumulative update. (You'll still want to apply the latest cumulative update for SQL Server 2014 to enable TLS 1.2 support, or else you'll have to enable TLS 1.0 every reboot). You don't  want to enable TLS 1.0 permanently as this is not secure for your system, and if it's enabled and in use, is as secure as plain text. 

https://support.microsoft.com/en-us/topic/kb2936603-sql-server-2014-build-versions-6f75da99-d86f-53fa-23ce-3d2b4825eccb

Make sure to choose the SQL Server 2014 SP Cumulative Update for your environment. They are not interchangeable. They won't cross upgrade instances on different Service Packs. You must download and install each Cumulative Update (CU) for each SP instance. As it's a Cumulative Update, you can typically install the latest/most recent Cumulative Update for each Service Pack regardless of the current Cumulative Update installed. (Back up your system prior to applying any updates. Your data is your responsibility).

For information on enabling TLS 1.0 

https://learn.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings?tabs=diffie-hellman

HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server
Enabled: 1

HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client
Enabled: 1

Just make sure TLS 1.0 is enabled prior to installing a fresh SQL Server 2014 instance. Once the CU has been applied, TLS 1.0 should no longer be necessary to enable for the instance to start after reboot.
gh

Saturday, September 10, 2016

Alienware Alpha HiveMind Battle.net launcher fix

HiveMind launcher Battle.net seems to keep asking for installation every time it's selected.

There's a way to manually add a Battle.Net launcher that works:

In the HiveMind interface, go to Programs

Go to All Programs

Click Add Program, Programs, Windows Application, Add Existing application

If you're lucky, you can browse and find Battle.Net in the list (probably not), so

Select executable file

Wherever Battle.Net is installed, likely:

C:

Program Files (x86)

Battle.net

Battle.net.exe

Enable mouse/kb on load (up to you) I enabled

Launch without Administrator privileges (up to you) I did this one because I don't want to be bothered with UAC.

Do not start at boot (enabled)

Would you like to save this launcher? [Yes]

If you're in Mouse mode, you can B or right-click on the icon to swap these settings.

This doesn't show up in "Games", but does show up in "Programs".

However, you can Add to favorites with Right-Click or B

In this way, pressing the right joystick (in joystick mode) will give you quick access to the Battle.net without having to find it in Games.

Monday, December 29, 2014

Skylanders Trap Team - What I didn't know. What you should know.

First: If you want the Kaos Trap, the way to be sure to get it is to buy the Winter Bundle pack if you can find it. At about $100 retail, it's a bit of a bite to take, especially if you've already spent for the "Starter Pack".

This is not a review of the game play. In my opinion, it's really fun, and I like the physical interface with the game.

What I didn't know:

Elements: As you progress through the game, you'll be encountering certain areas where bonuses apply to attacks by Skylanders that match the battle zone element, or "trapped" Villains.

Traps: These retail for about $6 each. Your starter pack likely comes with one Water Trap and one Life Trap. When you defeat a Villain, and you have a trap that matches the element of the Villain, you may temporarily use that Villain to do battle. If you complete the Villain's quest (the Villain must be trapped), the villain changes color and acquires a new attack/ability. Each trap can hold one villain at a time. Some strategies might be useful to swap between villains of the same element, so multiple traps of the same element may be desired. Most of the traps support swapping between 3-6 villains within the same element (one element per trap, one villain at a time per trap). Only when you're at the home stage, can you swap out villains within an element (the exception being an opportunity to swap a newly captured Villain within a currently occupied trap).

Trap Masters: These retail for about $16 each and they are the only way to unlock certain areas with matching elements.

Skylanders: These retail for about $10 each and each have its own attacks/abilities and element. These cannot open the locked areas, but they are useful for different attack reasons, including being the only practical way of continuing a battle as an "extra life".

Availability of pieces:

You'll find out that some traps in particular are harder to find at the store than others. At a local Wal-Mart, I found a bunch of water and life, some magic, a couple each of fire, earth, and tech, and no air. Also, no dark or undead unless purchased in the set. Certainly, no Kaos Trap on its own, but it was included in the Holiday Bundle.

Likewise, a similarly sparse number of Trap Masters: Tech, Air, Fire, Water were available as stand alone, while Dark and Undead were available as add-ons (bundles).

How much money will you eventually need to spend?

It depends on if you want to be able to complete all goals or just play. There is plenty to do without needing to spend beyond the starter pack. Certain areas and quests just won't be able to be accomplished without the tools to unlock the quest or areas. The figures are very cool to play with and look at and are cross-platform between consoles. The character stats apply to the specific figure in use, so two of the same figures will have different stats.

Monday, June 23, 2014

Move WSUS content to a UNC path

Yes, it's possible to do this.

It's fairly easy to do, doesn't require any weird mappings or software downloads, and best of all, it's not that hard.

http://blogs.technet.com/b/sus/archive/2008/05/19/wsus-how-to-change-the-location-where-wsus-stores-updates-locally.aspx

Yes, you absolutely can use a UNC path for destination of data.

But .. you have one more step after the location is moved:

Go to IIS Manager
Your server,
WSUS Administrator
Content
Basic settings (on the right)

(See? The physical path is now the new UNC path but ...)
Test Settings
If you have green checks for both Authentication and Authorization, you're done.
If not, close this
Click Connect as ...
Change to (*) Specific user
Set the domain\username
password
password

and test again. If both checks are now green, you're done. If not, figure out the credentials needed to connect to the UNC path. The only downside I've seen so far is that you *must* connect with a domain login.

Your results may vary. Don't blindly trust things on the Internet from people you don't know. If you don't like this, don't do it :).

Tuesday, May 27, 2014

Bertrand's Box puzzle

Basically, the puzzle is:
You have three boxes, each with 2 coins:

Gold/Gold
Gold/Silver
Silver/Silver

Assuming you chose a Gold Coin first, what is the probability that the second coin is also Gold?
The answer appears to be 1/2, but is actually 2/3

How?

After all of the machinations, the problem comes down to this: You have twice as much likelihood to choose Gold/Gold as you do Gold/Silver. (There are two gold vs one gold). And three boxes? Not relevant (if you look at it from the question after the first gold coin is pulled.) You have a 50/50 chance after a 3/4 chance of getting a gold coin.

Or, another way to look at it: out of the three remaining coins that are possible, two of them are Gold.

(Three coins? But only one box of two!)

But not really: the coin you grabbed must be one of three available gold coins (out of 4 possible coins to pick). There are now two available gold coins in that original set (of 3 remaining coins) = 2/3.

No, you don't go to 1/2 just because the box is chosen and there is one other coin left. Your original choice is one of 4 coins, three of which are Gold. Assuming that the first pick is gold (a 3 in 4 chance), there are now three coins that are left from what you could have chosen. Two of those are Gold. (2/3).

Sunday, May 4, 2014

2048


Play 2048 here.

Another 4096 - same day (today).


Thursday, April 3, 2014

Reference/Dereference for languages

I get a bit confused on reference/dereference, etc... until I figured out an analogy that worked for my purposes.

A ref/reference to an array, hash is where it is in memory. (use \ in perl to reference)
Dereference is what the contents are.
http://perldoc.perl.org/perlreftut.html

In another environment, I've explained how, instead of automatically sending an attachment email, one should send a link to data, and not the data itself. "But why? Isn't that just another step for the end user?" Yes, but the key is ... it's cheaper for both parties to have knowledge of and access to where the attachment/data/array/hash is stored so it can be retrieved as often as necessary without having it take up space in email. "But the user has to click a link to download!" Yeah, but the user can do that when he's in a position to do that, and if you send *the link* again, the user won't have the [potentially large] attachment *again* in the inbox and the sender won't have the attachment *again* in Sent Items.

So it is with programming. If you want to pass a variable's data to/as part of another variable, it's cheaper to point to the location of the data than to pass the entire structure of the contents of the variable.

Think of it like symlinks or shortcuts to folders on another storage device. They are references to where data is stored, but you can make LOTS of symlinks, all having the same access to the same data, without duplicating the data.

Tuesday, December 10, 2013

Combine wget plus git to reduce storage, maintain versions.

Problem: You want to have backups of your huge website, but only new and changed, and yet have some way to recover any point in time restore of files. Meanwhile, you don't really want to have multiple entire site backups. Further, you only really have ftp access to download the website.

Solution: So, here's what you can do...
wget -r -N ftp://username:password@yoursite.com
git add .
git commit -m "daily backup"

Basically, browse and no-clobber files (update if timestamp is newer) and then add and commit to a git repository.

wget will only grab new files, git add will only add new files, and git commit stores the status of your folder structure with the new changes.

git log will show you your transaction history and you can git checkout any previous backup.

Friday, October 25, 2013

Here-doc literal @ (at symbol)

So, you have a here-doc/heredoc and need a literal @ at symbol for things like email addresses.
Answer: Replace it with \100.

Friday, October 11, 2013

3CXPhone dial from web page

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dial]
@="URL:Dial Protocol"
"EditFlags"="hex:02,00,00,00"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\dial\DefaultIcon]
@="C:\\Program Files (x86)\\Microsoft Lync\\Communicator.exe,0"

[HKEY_CLASSES_ROOT\dial\shell]

[HKEY_CLASSES_ROOT\dial\shell\open]

[HKEY_CLASSES_ROOT\dial\shell\open\command]
@="\"c:\\Program Files (x86)\\3CXPhone\\3CXPhone.exe\" %1"


So, copy that, put it in a .reg file, import it.
(NOTE THIS MODIFIES YOUR REGISTRY) Determine if you want to do this.
Now, if you have a link that says:
<a href="dial:8005551212">8005551212</a>

3cxPhone will dial that link.
8005551212

Tuesday, July 9, 2013

Network Choices Windows

With Vista/Win7/8, you get the awful choice of Public/Work/Home for the *network* that you connect to.

Unfortunately, this is easily confusing to people who read "Public/Work/Home" for the *computer* that they're using. As in, the first thing that one might think about re: "Public" is that they want their computer to be *Public* (See me!) rather than private (I want to be hidden).

Frankly, I think this is a better question to ask... "You are on a new network. Do you want your computer to be Public (people can see and connect to your computer) or Private (people can't see your computer)." And that's about it.

It takes the ambiguity away ... I realize this argument can be presented in the other manner, but I'm writing this from a perspective of working with people who honestly don't understand computers in the way that I do, and if I, the computer guy, can comprehend this confusion on the users' behalf, I don't think it's an unreasonable position to state. A user who doesn't know the difference between a network and a computer can't be asked what to do on their network.


Tuesday, May 7, 2013

Saturated Fat?

NOTE: I AM NOT A NUTRITIONIST. Please consult people you trust about things related to your health.

The common refrain: "This fat is bad for you because it's solid at room temperature".

About this: If your body is room temperature, you don't really have to worry about the fat being solid in your system.

Or, to put it another way: your body is probably going to like squishy things going through its system much better than things that dry it out. Squishy things are easier to push through than rough things and are easier to absorb nutrients from than fibrous items.

Have you heard of saturated fat? What do you suppose the fat is saturated with? Could it possibly be things your body needs? "Cholesterol!!!" Yes, but your body needs cholesterol to actually build cells and think better.

Why is juicing better than eating raw vegetables? Because it changes rough stuff to squishy stuff.

Wednesday, May 1, 2013

Solve AutoMySQLBackup warning mysql.event

Fix for: -- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

edit /usr/sbin/automysqlbackup (wherever your /etc/cron.daily/automysqlbackup points)
find the OPT="--quote-names" line (about line 354)

Change it to
OPT="--quote-names --events --ignore-table=mysql.event"

OR, (Based upon additional reading of responses):
one of:
OPT="--quote-names --events"

OPT="--quote-names --ignore-table=mysql.event"

The original line suppresses the warning and ignores the table (redundant).
If you wish to have the table in your backup, don't ignore the table, just use --events
If you don't care about the table, ignoring the table will also suppress the event message.

What's optimal? Depends on if you use events and require them to be restored.
http://dev.mysql.com/doc/refman/5.1/en/events-table.html



Reference: http://bugs.mysql.com/bug.php?id=68376

Friday, April 26, 2013

Keep your vim plugins up to date

Scenario:
You go and download a plugin from a website but the website says, "Check GitHub for the most uptodate version."
So you get the tarball or the file you need and all is good. If you're okay with this, stop reading. You don't need to know the rest.

Method 1:
cd ~/.vim
mkdir gits
cd gits
git clone https://github.com/user/pluginname.git
ln -s ~/.vim/gits/pluginname/plugin/something.vim ~/.vim/plugin/something.vim
ln -s ~/.vim/gits/pluginname/doc/something.txt ~/.vim/doc/something.txt
ln -s ~/.vim/gits/pluginname/autoload/something.vim ~/.vim/autoload/something.vim
(if it exists -- editorconfig, for example)
Check also for plugin/python folders for your plugins.

Yes, I realize this is a bit more painful than just extract/install, but only slightly.
Now, if you want the latest update from the plugin, you can
cd ~/.vim/gits/pluginname/
git pull

Method 2:

cd ~/.vim
git init
mkdir gits

git submodule add https://github.com/user/pluginname.git gits/pluginname

now do the linking.

This second method allows you to version your changes across the entire .vim folder.

You also can checkout specific branches of the plugin, etc.




Saturday, April 20, 2013

Git make "clean" pull request.

Scenario: You've worked your tail off and *know* you're done with .. whatever you're working on, and can't be bothered to fixup/squash/commits properly to hide your work method to send upstream.

you have the most recent git fetch from upstream and you're ready to do a pull request.

git checkout upstream/master
(you get a warning that you're in headless mode. In this case, great, let's do what it says:)

git checkout -b mybranchforthispullrequest

Now you're basically looking at plain upstream/master.

you can either
git merge mylocalworkingbranch (but this keeps the commit history)

or, if you're *certain* you only want to add/replace files (hopefully, only add)
git checkout mylocalworkingbranch myfileiwanttoadd.ext

git add myfileiwanttoadd.ext

git commit -m "Added myfileiwanttoadd.ext"

and just send the branch to your origin or upstream
git push origin mybranchforthispullrequest

Optionally, go to github and do a pull request from mybranchforthispullrequest.


Saturday, February 23, 2013

automysqlbackup error fix

You get this:
mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'debian-sys-maint'@'localhost' for table 'cond_instances' when using LOCK TABLES

to fix it:
edit /etc/default/automysqlbackup
change the DNAMES line to this:



DBNAMES=`mysql --defaults-file=/etc/mysql/debian.cnf --execute="SHOW DATABASES" | awk '{print $1}' | grep -v ^Database$ | grep -v ^mysql$ | grep -v ^performance_schema$ | tr \\\r\\\n ,\ `
or, to be succinct: add
 | grep -v ^performance_schema$ 
into the list. If you're doing any different method of DBNAMES, just make sure to exclude performance_schema.

Why is this happening?
automysqlbackup's default configuration attempts to lock tables before dumping. This error isn't specifically automysqlbackup's problem to fix, as much as it's a problem (or not) that performance_schema.cond_instances can't be locked [by debian-sys-maint] at the time of mysqldump, and mysqldump is what's throwing the error.

Is it a problem of backing up or not backing up performance_schema?
I can't answer that for your situation, though if you understand what the table does and how to recreate it you can be better informed about whether the backup is necessary to you. (hint: probably not unless corporately you need to keep all diagnostic logs on everything.) Also, this is not related to the other databases which actually hold your data and which you do want to back up.
 What does grep -v do?
It says, "don't include this in the list". Note, while you're here, that this also includes the "mysql" table. If you need to keep your users and permissions for disaster recovery reasons, you may wish to consider not excluding that table.
What is "Database"? Why is that grep -v? I don't have a database called Database.
Database is the column title of the result of "SHOW DATABASES" SQL query.

Friday, February 22, 2013

Ubuntu Waiting for network message on bootup

Simple fix for this:
edit /etc/network/interfaces
make sure "auto" only points to network devices that actually will be and need to be on your network (for services) at boot time.

For instance, wlan0 may *not* be online before your OS loads.

Or, you might have other "auto" devices that obtain an ip address via DHCP. The failsafe allows sufficient time to get a DHCP address. You may decide whether you want to disable the failsafe or disable the auto, but note that some services depend on at least eth0 being "alive" before they start (or your ethn configured device).

Since you're there, it's a good idea to check for legacy network devices you may have configured in the past and make sure they're not "auto".

(If you're using DHCP and this configuration does not work for you, it's an issue with DHCP.)

Friday, January 18, 2013

git branch before pull

Things are going well on your version of production/master and you'd like to pull the latest iteration. Oh, sure, you could tar your setup before doing that in case it breaks, but maybe you're stuck for time and too lazy. That's okay. Really it is. just
git branch before-pull-todaysdate
git pull

PANIC! bad stuff, things crashing, etc... maybe that pull isn't nice.
git checkout before-pull-todaysdate

whew... sanity restored. ... OK, it's off hours and you really want to get back to the latest iteration. Managers aren't on your back and you can fix this.
git checkout master

errors, etc. but at least you're at the latest iteration.

BETTER: don't pull. Just git fetch, then git merge when you're ready.

Monday, January 14, 2013

git branch change oops wrong branch

Specific case:

You're working on a feature but forgot to change branches. This feature is going to corrupt master, it seems, but you haven't committed yet.

alternative to stash,
git branch newbranchname
git checkout newbranchname
git add .
git commit -m "I needed a branch for this before killing master"

if you git checkout master, all these new previously uncommitted changes aren't there (whew) but git checkout newbranchname has the stuff you've been working on.

when you're ready to put them back, just merge back to master.

Thursday, December 20, 2012

Vim search/replace

sure, you know about s/foo/bar/ which replaces bar where foo exists.

Let's say you want to find foo but only when it comes before bar, and you want to replace some but not all of it.

s/\(foo\)bar/\1goo/
Will replace foobar with foogoo
will keep foodoo as  is.

You can use this to, for instance, insert something before a comma:
s/\([a-z]\),/\1 = 0,/
foo, is now foo = 0,
or insert something between foo and bar
s/\(foo\)\(bar\)/\1 nutty \2/
changes foobar to foo nutty bar

Blog Archive