The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for May, 2016

vysor.io/dead-mac.png at master · koush/vysor.io

Posted by jpluimers on 2016/05/12

If I ever need a “dead Mac” picture…

Source: vysor.io/dead-mac.png at master · koush/vysor.io

Dead Mac

Dead Mac

It since then has been removed from the current Vysor version, but the last revision having it was [Wayback/Archive] vysor.io/public/app at v3.1.4 · koush/vysor.io under [Wayback/Archive] vysor.io/dead-mac.png at v3.1.4 · koush/vysor.io as

[Wayback/Archive] dead-mac.png (240×307)

dead-mac.png

More dead mac pictures:

Read the rest of this entry »

Posted in Android, Android Devices, Development, Mobile Development, Power User, Software Development, Vysor | Leave a Comment »

The Delphi Geek: Lock-free vs. locking

Posted by jpluimers on 2016/05/12

Since I need to do some lock-free multi-threaded queue work in Delphi shortly: The Delphi Geek: Lock-free vs. locking

Posted in Uncategorized | Leave a Comment »

pandoc oneliner from reStructuredText to html

Posted by jpluimers on 2016/05/12

[WayBack] Pandoc is so versatile that you sometimes forget a conversion can be as simple as a one-liner:

pandoc -s README.rst -o readme.html

This converts the reStructured text in README.rst to html.

Pandoc is smart enough to recognise the conversions without you telling the formats with -f (input format) and -t (output format) explicitly.

If you do need to explicitly specify the format, it is useful to query which formats are supported as per [WayBack] Pandoc – Pandoc User’s Guide: specifying formats:

  • pandoc --list-input-formats
  • pandoc --list-output-formats

Read the rest of this entry »

Posted in Development, PDF, Power User, Scripting, Software Development | Leave a Comment »

ntrights – grant/revoke Logon As Batch Job rights

Posted by jpluimers on 2016/05/11

Sometimes you want to run a batch file from a Task Scheduler task. For that, the user under which the task runs needs to Logon as a batch job right. If it hasn’t, you get this nice error message:

“This task requires that the user account specified has log on as batch job rights”.

Despite being part of the Windows Server 2003 Resource Kit Tools, you can still use ntrights in more modern Windows versions to grant or revoke this right.

As ntrights uses a hard to remember SeBatchLogonRight name for it and I tend to forget the ntrights syntax, I wrote two batch files to grant or revoke the Logon as Batch Job rights for the specified user:

Read the rest of this entry »

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista | Leave a Comment »

How Shazam Works To Identify (Nearly) Every Song You Throw At It

Posted by jpluimers on 2016/05/10

The basics:

  1. Beforehand, Shazam fingerprints a comprehensive catalog of music, and stores the fingerprints in a database.
  2. A user “tags” a song they hear, which fingerprints a 10 second sample of audio.
  3. The Shazam app uploads the fingerprint to Shazam’s service, which runs a search for a matching fingerprint in their database.
  4. If a match is found, the song info is returned to the user, otherwise an error is returned.

More details at How Shazam Works To Identify (Nearly) Every Song You Throw At It including this fingerprint example

Song Audio Fingerprint

Song Audio Fingerprint

–jeroen

via: How Shazam Works To Identify (Nearly) Every Song You Throw At It.

Posted in Algorithms, Development, Software Development | Leave a Comment »

Windows Update error 80072EE2 – Windows Help

Posted by jpluimers on 2016/05/09

When you roll-out new machines and you get Windows Update 80072EE2 to install updates required by some installations…

If you receive Windows Update error 80072ee2 while checking for updates, the Windows Update servers might be experiencing an unusually high number of requests for updates.

–jeroen

Source: Windows Update error 80072ee2 – Windows Help

Posted in Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1 | Leave a Comment »

Rufus Portable | PortableApps.com – Portable software for USB, portable and cloud drives

Posted by jpluimers on 2016/05/09

Interesting:

Rufus is a small utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc. It can be be especially useful for cases where: you need to create USB installation media from bootable ISOs (Windows, Linux, etc.); you need to work on a system that doesn’t have an OS installed; you need to flash a BIOS or other firmware from DOS; you want to run a low-level utility. Rufus is significantly faster than similar utilities and it’s open source and free.

–jeroen

via: Rufus Portable | PortableApps.com – Portable software for USB, portable and cloud drives.

Posted in Boot, Power User | Leave a Comment »

MikroTik CHANGELOG_6 link

Posted by jpluimers on 2016/05/06

In the absence of http://www.mikrotik.com/download/CHANGELOG_6 (somehow it’s unreachable where I live) here links that do work:

–jeroen

Posted in Internet, MikroTik, Power User, routers | Leave a Comment »

From __utma to __utmz (Google Analytics Cookies) : Analytics Blog @MoreVisibility

Posted by jpluimers on 2016/05/06

Since many sites use one or more of these cookies:

  • __utma
  • __utmb
  • __utmc
  • __utmz
  • __utmv

I went on a search, and this explains them From __utma to __utmz (Google Analytics Cookies) : Analytics Blog @MoreVisibility.

–jeroen

Posted in Google, Google Analytics, Power User | Leave a Comment »

Drivers and firmware for WL-330NUL and ASIX AX88772 based USB ethernet adapter

Posted by jpluimers on 2016/05/05

Just in case I need this ever again: WL-330NUL | Networking | ASUS Global?

ASUS WL-330NUL

Why? Well, I have such a device (see below), and somehow managed to kick it out of the network adapters list (it was “USB Network Interface”) and re-inserting it didn’t make it appear in the list of network adapters.

The solution should be this:

They just release new firmware Version 3.0.0.41, which work well with OSX 10.10.2

Source: OS X Yosemite problem with ethernet adapter/eth… | Apple Support Communities

That isn’t the full story though, as I had to follow these steps:

  1. update the firmware (from a Windows VM: VMware Fusion allowed me to pass the USB through)
  2. reboot the Mac
  3. insert the WL-330NUL USB adapter
  4. in the “Network” part of “System Preferences”, press the Plus sign in the lower left
  5. add the “USB Network Interface” (which wasn’t available before step 1, and isn’t available when you forget step 3) and press “Create”
  6. press “Apply”
  7. choose the “USB Network Interface” and click “Advanced”
  8. in the dialog, click “Hardware”
  9. verify if there is information for “MAC Address”
  10. click on “TCP/IP”
  11. insert a network cable connected to a DHCP network
  12. check if the WL-330NUL gets an IP-address through DHCP
  13. cancel out of the dialog
  14. close the “Network” window

I’m using the WL-330NUL (I have a few of them) because of Is it my thunderbolt ethernet adapter, or is it… | Apple Support Communities. Though it does no gigabit (the WL-330NUL does 10/100 Mbit/s and 2.4 Ghz WiFi but it is a WiFi to WiFi router which is very useful for being on the road). I hardly need gigabit speeds and when I do, I can usually cope with the flaky thunderbolt ethernet adapter.

ASIX AX88772 based

I also have a ASIX AX88772 based USB ethernet adapter that I bought way back earlier. That one has two drawbacks: a much longer and fragile USB cable and the need to download additional drivers. They are very cheap though, for instance at DX (plain, ab or c) or Alibaba (plain, ab or c).

If you want to use an ASIX AX88772 based ethernet adapter (most only do 10/100 Mbit/s), then:

  1. Check if you have the kext (as you might need to uninstall it) using the steps at OS X 10.10 “Yosemite” Ethernet Adapter Problems? We can help! | Plugable
  2. Follow the steps at Getting non-Apple (AX88772) USB Ethernet to work on Mavericks ← Putztastic Tech, summarised:
    1. Obtain the latest driver from AX88772 – ASIX Electronics Corporation
    2. If you had an old driver: uninstall the old one
    3. Install the new driver
    4. Reboot

For the future, I’m considering gigabit USB (likely future Macbooks don’t have Thunderbolt any more) based on AX88179 (USB 3). They are relatively cheap as well at DX (AX88179) or Alibaba (AX88179). There is also AX88178/A (USB 2, limiting it to 480 Mbit/s) but they are not available on DX or Alibaba.

–jeroen

via: Just ordered a WL-330NUL – Overview as it can WiFi to WiFi, wired to WiFi, wired to USB, WiFi to USB, … both ways, and can do MAC spoofing so that you only need to captive portal once. « The Wiert Corner – irregular stream of stuff

Posted in Power User, WiFi | Leave a Comment »