Tuesday, January 24, 2017

How to center a div in the window

Well, it used to be so hard. But not any more.

left: 50%;
top: 50%;
transform: translate(-50%, -50%);



Monday, October 3, 2016

How to fix midi timing sync in Sonar

Figure out how far you keyboard hits are ahead of the beat, then go to Preferences > Audio > Sync and Caching > Full Chase Lock (turn on) > Timing Offset (msec): set to your timing difference. Mine is about 100.0 ms. Some people say it should be the same as the Total Roundtrip latency reported for your ASIO settings, but I have found it to be about 25ms more than that.

Monday, September 12, 2016

AWS Windows AMI

You create a Windows AMI on AWS by choosing "Create Image" on your instance (you cannot create one from a snapshot, it will boot as Linux). If you only have a snapshot, create it as a volume. Then create a similar instance if you have the original AMI you used to build your server, stop it, remove the drive, and the re-attach your root drive as /dev/sda1

Monday, August 29, 2016

Fix a bluetooth mouse disconnection problem using one weird trick

If you connect a bluetooth mouse (and maybe other bluetooth devices) to your Windows 10 machine, chances are you'll love it. Then within a day or two it will start to drive you crazy. Why? You'll start to notice it getting disconnected at odd times. At these times you may be tempted to try to reconnect it or fiddle with your settings. Nothing you do will work. Then suddenly it will reconnect again for no apparent reason.

So what's happening? Your computer is trying to save energy (whether you're plugged in or not). So type "Device Manager" where it says "Ask Me Anything". Click top open Device Manager. Then find "Intel Wireless Bluetooth" (you may have a different Bluetooth wireless service manager, depending on your machine). Right click that, click "Properties" from the popup menu, select the "Power Management" tab and uncheck the checkbox marked "Allow the computer to turn off this device to save power". Click OK. That's it, your troubles are over.

Wednesday, August 20, 2014

Google hates your Infinite Scroll

But you can fix that by going here and reading what they say:

Wednesday, April 9, 2014

How to fix your AT&T UVerse NVG589

Short version: my NVG589 crashed and the red reset button didn't work, so I located the lid to the battery compartment on the base of the unit and removed it, then reinstalled and plugged it all back in and it worked fine.

I recently had my Internet, phone and TV become completely inoperative. I called AT&T immediately, and they assured me this was very important to them and set up an appointment straight away.

Shortly afterwards, they called on the mobile number I had given them to say there were outages in my area, and so they couldn't dispatch a technician until these outages were rectified. They implied that rectifying these outages would somehow fix my problem.

I doubted this, because I could clearly see that my Motorola NVG589 unit had crashed. The power light was red, and all of the other lights were steady. Not only that, but this situation remained the same even if I disconnected every cable from it, including the power cable (the NVG589 has a battery backup - presumably because without it, you no longer have a phone at all. It also has a note on it saying it is your personal responsibility to make sure this battery is in good shape, so if yours does go flat, be sure you get them to send you a replacement).

Because I had no phone to call them on, I had no alternative but to do the chat thing with their online "chat live now" tool, where they suggested I press the red "reset" button for 15 seconds to fix it. But pressing that did nothing. Ever.

So they said they would send a technician straight away. I waited until 8 that evening, but they never showed up.

Next day, I called them again. No-one ever suggested I take the battery out of this unit. They just kept scheduling appointments, and then a half hour later someone would call the mobile number I gave them to say the appointment was canceled because there were outages in my area. Even though I checked the website and there were no outages in the area ever listed on there.

http://www.att.com/esupport/article.jsp?sid=KB407223&cv=803#fbid=yjomUHaIxoy

Anyway, after two days of this game of scheduling and canceling appointments, I got the unit on my desk, figured out where the battery was and took it out. All rebooted and started working immediately with no further problems.

Now, I'm not saying you should do this. This is just what happened to me.

Tuesday, March 4, 2014

How to Kill a Process Stuck in Stopping State

On Windows 7:

Open a command prompt and query the service using

sc queryex MyServiceName

Where MyServiceName is the service that won't stop.

This will print a bunch of information, one item will be the PID. Use the PID (in this case 3604) from above and kill the process:

taskkill /PID 3604 /F