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,779 other followers

Archive for November 22nd, 2016

ReservedWordsOP.txt and ReservedWordsC.txt for use with java2op in Delphi

Posted by jpluimers on 2016/11/22

Since these files got missing again: [WayBackDoes anybody know where to get ReservedWordsOP.txt and ReservedWordsC.txt for java2OP.exe in bin\converters\java2op for Delphi 10.1 Berlin upd2? It also… – Rik van Kekem – Google+

Here they are:

Read the rest of this entry »

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Development, Software Development | 2 Comments »

RMAing a Google Nexus 5X, dying in Account hell… – via +Kristian Köhntopp

Posted by jpluimers on 2016/11/22

Google does react:

Google Nederland

Noted. Contacting the right teams. And now trying to find Kim :)
Thanks for the writeup +Kristian Köhntopp

Source: RMAing a Google Nexus 5X, dying in Account hell …

Full story (comments in the above thread):

Kristian Köhntopp

RMAing a Google Nexus 5X, dying in Account hell

I purchased my Google Nexus 5X on November 11, 2015, almost exactly one year ago. The device died on November 15, 2016 during the morning commute, when it froze. Right now, when I try to power it on, I get a single red LED blink from the lower grille.

When I bought that device, I have been living in Berlin, Germany. I am living now in a village close to Amsterdam, Netherlands. I am a GPMAA subscriber with a family subscription, and I am managing the play family setup for my family from my account.

I called the Netherlands support number, and got an agent almost immediately. She’s speaking excellent English.

We are going through the device validation routine and establish that the device is indeed broken. Then she’s trying to find my Google account, but me having the name I have, I have to spell it about five times.

She’s ready to RMA, but wants to validate my address. That’s the old Berlin address.

Easy to fix. New Tab. Go find your face in the upper right, click on it, click on “My Account” and… Nope. That’s a link to myaccount.google.com, and you can’t find or set your address there.

Ok, new attempt. Go to play.google.com, and hit Account. That’s “Account” in the left hand menu of Play, not “Account” on the top bar where your face is. It’s showing Payment methods, which has nothing to do at all with addresses. Edit payment methods.

That links to payments.google.com, which has nothing to do with account at all, and is also different from security.google.com, which has all the other account details, but has nothing to do with payments or addresses. Anyway, I disgress, in payments.google.com, there’s an address.

It has no country. Country is two lines higher. And while there is a pen next to my address so I could edit it, I can’t edit my country, because… Well, at least there is an info bubble.

It says:

»You can’t change your country because of the following reasons:
– One or more Google services you’re using does not allow you to change your country
– You manage a Google family account«

I read that as “Because you are giving us money we won’t allow you to update your data so that in the future you can continue to give us money.” Well.

“Can we detach the current payments from you account, so I can migrate it to the Netherlands?” “No, you can’t, that will break the Family setup, disable all my Sonos boxes which are running on this account, and will kill several software subscriptions attached to my account. Also, there is money on it, because I am participating in the Survey program, and there is about 400 local guides points attached to it as well.”

Kim, the support specialist handling my case, has been on the phone with me at this point for 40 minutes now. She’s put me on hold half a dozen times and consulted with as many payment, account and security specialists. She’s awesome. She’s kicking ass. She’s not giving up.

“Ok, are you in front of a laptop of desktop machine running a Chrome browser” “Indeed, I am, Kim.” “Ok, please open an incognito tab, I am going to walk you through the process of creating a new Gmail account, and if you have a Netherlands payment method, adding that to it.” “Thanks, Kim, I know how to do this. Let me quickly do this, and get back to you.” I put the phone away and make me another Gmail, add NL and my address to it in Payment methods, and she’s now handling the RMA through that.

Yeah, so if all goes well I am getting a replacement phone this week, and am sending back my broken phone to Google.

But, Google, it’s not actually just the phone that is broken. Your maze of security, payments, play and so on, it does not just suck. It borders on the insane.

And the way you are totally not handling country-as-a-living-addess vs country-for-RIAA-and-MPAA-suckage as two different things, it’s really, really hurting you.

Also, not handling the EU as one country, that’s only going to hurt more in the future as well.

So, if you are reading this and are in a position to change this mess. Do so. I don’t care if it is hard, or what the actual factual reasons for ending up with mess are. It’s broken. Fix it. Now. That would actually almost be too late.

My call started at 09:19 and took 54 minutes and 26 seconds to resolve. And just for the record, Kim is awesome and should be given a pay rise. It the tools and processes she has to work with that suck.

–jeroen

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

Copy-Paste from Website to Terminal – always paste via an intermediate text editor

Posted by jpluimers on 2016/11/22

Everybody surely knows about more and more software trying to smart replace straight double quotes " with opening ” and closing ” ones.

WordPress is no exception and when you forget to embed these quotes in code and/or pre tags, your source code won’t paste as such.

For terminal code (nx or Windows console doesn’t matter much): it’s much worse: you should not copy/paste code directly to the terminal.

I usually did this any way to get quotes corrected, but  – via Daniela Osterhagen referring Dorin Duminica – recently came across a reason that’s much more important:

What’s on the clipboard might not be what you saw on the web site.

An elaborate example is at User iteraction based exploitation: WYSINWYC (What you see is not what you copy) but it comes down to:

  1. The clipboard is getting all text from a selection
  2. The browser hides some part of that text by cleverly using one more more  style tags.

So basically copy/pasting to the console is just as risky as piping curl through bash or another shell. You can actually detect that server-side (and abuse it)!

–jeroen

Source: Copy-Paste from Website to Terminal

Posted in Console (command prompt window), Development, Power User, Scripting, Software Development, Windows | Leave a Comment »

Coping with UTF-16 / UCS-2 little endian in Batch files: numbers from WMIC

Posted by jpluimers on 2016/11/22

A while ago, I needed to get the various date, time and week values from WMIC to environment variables with pre-padded zeros. I thought: easy job, just write a batch file.

Tough luck: I couldn’t get the values to expand properly. Which in the end was caused by WMIC emitting UTF-16 and the command-interpreter not expecting double-byte character sets which messed up my original batch file.

What I wanted What I got
wmic_Day=21
wmic_DayOfWeek=04
wmic_Hour=15
wmic_Milliseconds=00
wmic_Minute=02
wmic_Month=05
wmic_Quarter=02
wmic_Second=22
wmic_WeekInMonth=04
wmic_Year=2015
Day=21
wmic_DayOfWeek=4
wmic_Hour=15
wmic_Milliseconds=
wmic_Minute=4
wmic_Month=5
wmic_Quarter=2
wmic_Second=22
wmic_WeekInMonth=4
wmic_Year=2015

WMIC uses this encoding because the Wide versions of Windows API calls use UTF-16 (sometimes called UCS-2 as that is where UTF-16 evolved from).

As Windows uses little-endian encoding by default, the high byte (which is zero) of a UTF-16 code point with ASCII characters comes first. That messes up the command interpreter.

Lucikly rojo was of great help solving this.

His solution is centered around set /A, which:

  • handles integer numbers and calls them “numeric” (hinting floating point, but those are truncated to integer; one of the tricks rojo uses)
  • and (be careful with this as 08 and 09 are not octal numbers) uses these prefixes:
    • 0 for Octal
    • 0x for hexadecimal

Enjoy and shiver with the online help extract:
Read the rest of this entry »

Posted in Algorithms, Batch-Files, Development, Floating point handling, Scripting, Software Development | Leave a Comment »

 
%d bloggers like this: