Bits & Bytes

Archive for the ‘General’ Category

Fixing Static Audio and Other Sound Problems

Many things can happen to cause various sound issues. Fortunately, there is a simple solution that works to fix almost all of them: Uninstall the sound driver.

To do that, first type “Device Manager” into the search box next to the Start button. This will bring up the option for the Device Manager application as shown.

Left-click the icon for the Device Manager, and this will open the Device Manager application window shown below.

Left-click the arrow next to “Sound, video and game controllers” and double-click the icon for your audio device.

This will open the Properties dialog for your device.

Then click the “Driver” tab, and you should see this:

Left-click “Uninstall Device” and you will see this dialog.

Left-click the box next to “Delete the driver software for this device,” and left-click the “Uninstall” button.

This will remove your drive. Restart your computer, and a new driver will be reinstalled automatically. This should fix your problem.

How to Schedule and Delete a Task

If you have any problems following these instructions, please consult our video on the subject. We begin by opening the Task Scheduler program. There are two ways to do this:

  1. Click the Start Button
    1. Click “Windows Administrative Tools” in the Start menu to open its submenu
    2. Right-click “Task Scheduler” open the context menu and click “Run as administrator”
  2. Enter “Task Scheduler” into the search box next to the start button
    1. Click “Run as administrator” in the pop up dialog

With either method, you should now have the Task Scheduler open and looking like:

To create the new task, click “Action” in the menubar and “Create Basic Task…” in the submenu.

This will open the “Create Basic Task Wizard” shown below. Since we are going to create a task to open the command prompt, we entered “Command Prompt” in the Name: box and “Open a command prompt” in the Description: box. However, you should use whatever name and description are appropriate for your task.

Since we want to create a task to run a program every day, just click the “Next” button four times until we get to the “Start a Program” screen.

At this point, we can enter the file path to our application in Program/script: box or click the “Browse…” button to select the application program. Since we are going to use the command prompt program, our Program/script: is cmd.exe as shown below.

We can finish creating the task by clicking the “Finish” button. To see the task, you might need to click “Task Scheduler Library” as shown.

Now, we can right-click the new task in the list to show the context menu above. This allows us to “Run” or “Delete” the task as we so choose. Selecting “Run” will run the application and selecting “Delete” will take us through a confirmation dialog and then remove the task.

How to Fix Problems with Displaying SVG Images within an HTML Image Element

Suppose that you have an image element inside of an HTML file, like this one:

<img width="30px" height="40px" src= "MyImage.svg"  />

and your SVG file, “MyImage.svg”, looks like this:

<svg width="30" height="40" xmlns="http://www.w3.org/2000/svg">
  <image href="Christ.png" x="10" y="20" width="20" height="20"></image>
</svg>

In this case, the image inside the svg, “Christ.png”, will not display because the image element will not allow the reference to the external file “Christ.png”.

However, this can be fixed in a few different ways:

  1. Change the image element to an embed element:

    <embed width=”20px” height=”20px” src= “MyImage.svg” />

  2. Eliminate the image element and include the svg element in the HTML directly.
  3. Convert the image into a 64 bit data URI

If you have never seen a 64 bit data URI, they look something like this:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAB3RJT
UUH5AQCFiQbfa5q9wAAAAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAHgSURB
VHjaY2DABhwMRVuClcvsGBJMGcJtJHXleRiIByH2MunOkuXJbl059rneUlbqfCRo9tYRaQyUaS8
JaC/0LgpXtdMTwVDCCCKUBVgdVEW8TWQyPOWT3eQKgpTzQ1SLI3Uakg0qY9XKo1TrknXzwtQTgb
Je8h5m8vbGqhEOig4afHK8nCD9oSYSaT7aMwpMJqWrNsaqT8jS6cky6Mq17M4178k3a8iwzI82S
vBRi3BRDLOVrQpXL43QdtcTYGBggljPICrCqafAn2wv3ZKkoSXNYyAp4GMuE2Al52ok6WslHe4g
E+8qmxuouaDSNM9PztdYRFmAC8X9EDC3TK8tXRvIyPWVK/STKfCSLvSS0ZHnY2PgWFZjXJOoBZR
iZWDmYWHGGliMAcZiIVYSTYmaJf4K2W6yGe4qCU7iC8r1OjI0iQptbXHuPB/FCSmqk9JUp2arzi
vTSvSWwXAlDsAEUsIOdGBZgOyBKbYuFsJAPhszQX0wUBWmFmApo8MgHO+gBDKJhYRkwtCdrjQ5R
9lRVSreQ4kUfWBgJsfZnaQ2IU8nO1iOZM1SvBw1UVpZPvJANjPxvoUANQHWSAtxG01hkq0FAm5m
Fl4GblYGdkbCkYMBWBgZhdjZWJiYyLF5cAMAegthBPCMZ8AAAAAASUVORK5CYII=

Warning: 64 bit data URI encoded images can be quite long, even for a moderately-sized image. The text above was generate for the small 20 pixel by 20 pixel image shown here:

So, instead of our original svg element, we could use this one with a 64 bit encoded data URI:

<svg width="30" height="40" xmlns="http://www.w3.org/2000/svg">
  <image x="10" y="20" width="20" height="20" href="data:image/png;base64
  ,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAB3RJTUUH5AQCFiQbfa5q9w
  AAAAlwSFlzAAALEgAACxIB0t1+/AAAAARnQU1BAACxjwv8YQUAAAHgSURBVHjaY2DABhwMR
  VuClcvsGBJMGcJtJHXleRiIByH2MunOkuXJbl059rneUlbqfCRo9tYRaQyUaS8JaC/0LgpX
  tdMTwVDCCCKUBVgdVEW8TWQyPOWT3eQKgpTzQ1SLI3Uakg0qY9XKo1TrknXzwtQTgbJe8h5
  m8vbGqhEOig4afHK8nCD9oSYSaT7aMwpMJqWrNsaqT8jS6cky6Mq17M4178k3a8iwzI82Sv
  BRi3BRDLOVrQpXL43QdtcTYGBggljPICrCqafAn2wv3ZKkoSXNYyAp4GMuE2Al52ok6WslH
  e4gE+8qmxuouaDSNM9PztdYRFmAC8X9EDC3TK8tXRvIyPWVK/STKfCSLvSS0ZHnY2PgWFZj
  XJOoBZRiZWDmYWHGGliMAcZiIVYSTYmaJf4K2W6yGe4qCU7iC8r1OjI0iQptbXHuPB/FCSm
  qk9JUp2arzivTSvSWwXAlDsAEUsIOdGBZgOyBKbYuFsJAPhszQX0wUBWmFmApo8MgHO+gBD
  KJhYRkwtCdrjQ5R9lRVSreQ4kUfWBgJsfZnaQ2IU8nO1iOZM1SvBw1UVpZPvJANjPxvoUAN
  QHWSAtxG01hkq0FAm5mFl4GblYGdkbCkYMBWBgZhdjZWJiYyLF5cAMAegthBPCMZ8AAAAAA
  SUVORK5CYII="/>
</svg>
 

© 2007–2024 XoaX.net LLC. All rights reserved.