How to Continue Using Buttons with “data-loading-text” in Bootstrap 4 with jQuery

While converting a Bootstrap 3 template design for use with Bootstrap 4, I noticed they removed stateful buttons (eg: “loading” and “reset” button states) from BS4! Granted it was mentioned in BS3, but I never noticed the deprecated warning 🙁

The deprecated code for showing a button’s loading state was $('#selector').button('loading') and to return the button to its original state you would use  $('#selector').button('reset') .

Continue reading

Add Mouse Wheel Support to Bootstrap Carousel with jQuery

I was adding mouse wheel events to a ul element with the CSS rule overflow:hidden to emulate mouse wheel scrolling when no scrollbar was present.

The links in the unordered list also trigger a Bootstrap 4.1 Modal that contains a Bootstrap Carousel. So I decided to add the same functionality to my modal carousel gallery.

Continue reading

How to Determine Your LiveZilla Version Number

I am a long-time user of LiveZilla, primarily due to the availability of a Windows app. Aside from some minor quirks here and there, my biggest complaint is not being able to find the version in the Windows/web management user-interface. When I’m looking for the version, it’s usually to see if I’m running a relatively current release (fairly common administrator task).

Continue reading

Use jQuery Without Loading Scripts in Document

So, I was working on a new theme for an OpenCart store I manage. Since creating it from scratch, I decided to adhere to suggestions from Bootstrap, Google and others that advise loading content-blocking scripts at the bottom of the page instead of in the <head>.

Of course, I ran into the same problem that probably has you reading this article.

How the hell am I supposed to use ‘jQuery’ or ‘$’ before the library is loaded?! Short answer, you can’t. You can however get around the problem with this solution.

Continue reading

How to Determine Your Actual Windows Username for Purposes Like Remote Access

I regularly use remote access tools such as LogMeIn, RemoteDesktop and TeamViewer to provide remote support for clients all over the country. Since Windows 8 arrived, getting the Windows username from clients has become increasingly difficult. More often than not I hear “I don’t know” or “my PIN is …”, neither of which provide insight to the actual username.

Continue reading

MYSQL: Get Flag Emoji Unicode from ISO 3166-1 Alpha-2 Country Codes

Today I had to figure out the most efficient way to generate Emoji from ISO 3166-1 Alpha-2 country codes such as US, GB, etc. I opted to go for a for 100% SQL solution.

The most efficient way to convert each ASCII letter to their Unicode Regional Indicator Symbol Letter that I determined is provided below (simplified)…

Continue reading

Adjust the Volume for Individual Windows 10 Applications

A quick run-through to show you how to adjust the volume of individual Windows applications…

  1. Right-click your “Volume” icon and select “Open Volume Mixer”
  2. Slide “Device” to 100
  3. Adjust “System Sounds” until achieving desired level
    • You will hear Windows’ “Default Beep” sound when releasing the slider. If moving the slider with your mouse wheel, click/tap bar to hear the test sound.
  4. Continue adjusting the volume for other applications
Continue reading

Better Windows Batch (.bat) File for Testing Internet Connections

I wrote a post yesterday about testing your internet connectivity using a Windows batch file, but since I cannot leave well-enough alone, I decided to keep working on it.

A few things to keep in mind…

  • The line “set ESC=” ends with a non-printable ASCII ESC character (ASCII 27; Hexadecimal 0x1B) that may not be visible in your browser. Editors like Notepad++ show non-printable characters.
  • If you add “hosts” you should also add “names” – hosts entry will be displayed otherwise.
  • hosts index should start at zero with no sequence gaps
  • The “for” loop’s “end” should match count(hosts + 1)
Continue reading