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,862 other subscribers

Archive for 2015

for %n = 1 to 100 step 1 do: windows – Batch script loop – Stack Overflow

Posted by jpluimers on 2015/08/26

Thanks Jon for answering this:

for /l is your friend:

for /l %x in (1, 1, 100) do echo %x

Starts at 1, steps by one, and finishes at 100.

Use two %s if it’s in a batch file

for /l %%x in (1, 1, 100) do echo %%x

–jeroen

via: windows – Batch script loop – Stack Overflow.

Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »

Cool: Vysor screen sharing by Koush

Posted by jpluimers on 2015/08/25

Esc: Back button; F1: Menu button; Home: Home button.

Esc: Back button; F1: Menu button; Home: Home button.

Really really cool!

Vysor (by Koushik Dutta aka Koush) lets you not only share and control your Android device screen from your local Chrome browser, but also remotely to others having a Chrome browser with Vysor installed. And Vysor gives you full ADB access to your Android device.

Some links to get started:

To get started:

  1. Enable ADB on your Android phone.
  2. Connect your Android phone over USB to your computer.
  3. Start Vysor.
  4. Connect.
  5. Enjoy.

After connecting over ADB, Vysor sideloads the Android code to share both screen and input. So besides viewing your screen, you can then control it.

Of course your mouse works, including scrolling. And the keyboard for entering text.

There are also some special keys:

  • Esc: Back button;
  • F1: Menu button;
  • Home: Home button.

Read the rest of this entry »

Posted in Android Devices, Chrome, Google, Power User, Vysor | 1 Comment »

Programmers’ hardest tasks

Posted by jpluimers on 2015/08/25

It took me a while to find the original illustration (especially as it was copied so often in low quality), but below it is.

Martin Wienold made a great joke based on it last year:

There are only two hard problems

  1. naming things
  2. cache invalidation
  3. off-by-one errors

–jeroen

via: G+; Programmers’ hardest tasks.

Original (October 2013): Don’t go into programming if you don’t have a good thesaurus | ITworld.

Programmer's Hardest Tasks

Programmer’s Hardest Tasks

 

Posted in Development, Software Development | Leave a Comment »

http://169.254.1.1 trick for Opening UI of the FRITZ!WLAN Repeater 1750E – via: AVM International

Posted by jpluimers on 2015/08/24

Because http://fritz.box points to my Fritz!BOX router, it cannot be used to get to my Fritz!WLAN Repeater. I just learned about the http://169.254.1.1 trick does.

Which saves me from remembering the repeater IP-address or name.

–jeroen

via: Opening the FRITZ!Box user interface | FRITZ!WLAN Repeater 1750E | AVM International.

Posted in Fritz!, Fritz!Box, Fritz!WLAN, Internet, Power User, routers | Leave a Comment »

Zypper or YaST locked: System management is locked by the application with pid ##### (/usr/lib/YaST2/bin/y2base).

Posted by jpluimers on 2015/08/24

A while ago, I got this error:

Accessing the Software Management Failed
System management is locked by the application with pid 17730 (/usr/lib/YaST2/bin/y2base).
Close this application before trying again.

Would you like to abort or try again?

[Retry] [Abort]

What happened is that a terminal session that had YaST open got disconnected (don’t you love WiFi) while checking for updates.

I tried to re-login and re-check for updates and got this error.

Looking for process 17730 indeed revealed it was YaST:

snap:~ # ps 17730
  PID TTY      STAT   TIME COMMAND
17730 pts/0    Sl+    0:11 /usr/lib/YaST2/bin/y2base online_update ncurses

A simple kill would get rid of that process:

sudo kill 17730

–jeroen

via: yast locked.

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Was ist Cloud? Great presentation including transcript by Kristian Köhntopp.

Posted by jpluimers on 2015/08/23

When one of my DevOps friends asks: Was ist Cloud?.

Kristian Köhntopp even published it as a SlideShare deck with transcript: Was ist Cloud?.

There is even a video: Froscon “Was ist Cloud?” – Video.

Thanks a million, Kris, this is very much worth reading for anybody doing Ops, Dev or DevOps.

There is even a

If you can’t read German: tough luck (;

–jeroen

Read the rest of this entry »

Posted in Cloud, Development, Firewall, Infrastructure, Software Development | Leave a Comment »

Are these universal for any ceiling fan/light? (the IR receivers of our BULLIT one broke) – via: Home Theater Discussions And Reviews

Posted by jpluimers on 2015/08/22

Bullit ceiling fan with light.

Bullit ceiling fan with light.

We have two “Bullit” ceiling fans with built-in dimmable lights. Both of them started to malfunction after about 10 years of usage, about a year apart.

They are really nice, both in looks and build quality (heavy duty electric motor, cast aluminium block, screws nicely hidden away).

So this weekend, I took the canopy apart and found out that the receiver device that processes the infra-red signal has broken: it does not pass on the incoming current to either the light or the fan engine.

That receiver part looks like this (handheld is on the right):

  • bottom: 3 incoming wires (Phase, Earth, Neutral),
  • top: 3 outgoing wires (Phase Fan, Phase Light, Neutral),
  • connector for IR sensor
  • Connector to wire Earth to aluminium body

    Handheld infra-red transmitter (required 9-volt battery).

    Handheld infra-red transmitter (required 9-volt battery).

Bullit ceiling fan/light infra red receiver.

Bullit ceiling fan/light infra red receiver.

I came across a Westinghouse GS–26-78095-WH08 model. The image is below

Is that a universal replacement for many ceiling fan/light devices?

 

via Does an infrared ceiling fan exist? – AVS Forum | Home Theater Discussions And Reviews.

–jeroen   Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

Google thinks google.com is in German. How can I prevent that? +GoogleTranslate

Posted by jpluimers on 2015/08/22

This was a search for ISDN S0 bus: https://www.google.com/search?q=ISDN+S0+bus

Google thinks it is in German, but it is in English: even the html tag indicates it is in English:

<!doctype html><html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="en"><head><meta content="/images/google_favicon_128.png" itemprop="image"><meta content="origin" id="mref" name="referrer">

I cannot change the page so nothing I can use from the suggestions in html – Why does Chrome incorrectly determine page is in a different language and offer to translate? – Stack Overflow.

Anybody knows what can I do to prevent this wrong guess?

Can anyone from +GoogleTranslate please step in?

Read the rest of this entry »

Posted in Chrome, Google, GoogleSearch, GoogleTranslate, Power User | Leave a Comment »

Setting your DNS servers manually – via – Tweakers

Posted by jpluimers on 2015/08/21

Interesting Dutch thread about a major ISP having DNS issues because of DDos attacks. Many messages to set your DNS servers manually on various operating systems, and a list of good DNS server alternatives. Recommended reading:

Ziggo kampt weer met storing – update – IT Pro – Nieuws – Tweakers.

–jeroen

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

Dropbox adds u2f support … if you connect to it via Chrome. Using FIDO U2F. Easy with Plug-Up foldable key.

Posted by jpluimers on 2015/08/21

I like this: the plug-up affordable FIDO U2F Security Key by  HAPPLINK.

You could already use it for Google 2nd factor authentication (2FA) through Chrome. You can do this from your own applications for instance through the U2F reference implementation.

Now you can also as 2FA to DropBox, also through Chrome. And it is easy with the plug-up key (Thanks Kristian):

Uuuund… umgestellt. Das war ja einfach.

http://www.amazon.de/dp/B00OGPO3ZS

Es gibt andere Fido Token, die können mehr. Ich nehme dieses, das kostet fast nix und man kann die kaufen und verteilen wie Konfetti.

Or inside the Europe mainland, for instance in:

–jeroen

via: Dropbox adds u2f support … if you connect to it via Chrome. If I’m not….

Posted in Chrome, DropBox, Google, GoogleAuthenticator, LifeHacker, Power User, Security, SocialMedia, U2F FIDO Security Keys | Leave a Comment »