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

Archive for the ‘Google’ Category

Google 2FA “Sorry, we can’t fulfill this request at this time. Please try again later or use a different phone number.”

Posted by jpluimers on 2022/01/14

A while ago while first securing a bunch of accounts with a phone number, then later replacing them with 2FA hardware, I got this error message:

Sorry, we can’t fulfill this request at this time. Please try again later or use a different phone number.

This seems to have to do with the fact that if have gotten about 10 2FA messages a day, then it cannot be used to add a new phone number to an account. The phone number still can be used to verify existing accounts where the phone number was already registered.

Retrying after 24 hours usually works.

Related:

–jeroen

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

Google calendar: add a yearly repeating event on the last/#th/first weekday of a month

Posted by jpluimers on 2022/01/05

TL;DR: recurrence in Google Calendar can be tough.

Adding a yearly repeating event on a last weekday (where weekday is any day of the week: sunday, monday, etc) of a month in Google Calendar was a lot less obvious than I hoped for.

The easiest path “Custom Event” by default does not show last/#th/first, only a fixed date when selecting yearly or monthly repeating events, which is contrary to the suggested answer at [Wayback/Archive.is] Google calendar question: How to set an event to repeat on the first Monday of a specific Month : google:

Create an event on September 3rd. Choose custom recurrence. Repeat every 12 months monthly on the first Monday. I just tested that out on the browser version of Google calendar

The trick is to first select a normally repeating monthly event on the last#th/first weekday day of a month.

Note that for the 5th week, you cannot do this in the Google Calendar UI as per [Wayback] google calendar – Schedule an event for last Sunday (or another day of week) of each month – Web Applications Stack Exchange:

If you actually want a day on the 5th week of every month (versus the last week), the Google Calendar UI does not support this, but you can do it by importing an .ics file

Below is an example while writing this: adding a yearly recurring event on the last Sunday of May (which in 2021 was Sunday the 30th of May).

These are the steps:

Read the rest of this entry »

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

Chrome: allow some URLs to “never sleep” (or hibernate/discard)

Posted by jpluimers on 2021/12/29

This option in Chrome has moved around a bit, so here is how it was in Version 89.0.4389.90 (Official Build) (64-bit) when I documented it.

  1. Browse to chrome://discards/
  2. Don’t be intimidated by the many rows and columns; only the rightmost 8 (at the time of writing) are interesting:

  3. Search for the URL (in my chase https://web.whatsapp.com/ , so I searched for whatsapp which you see as orange in the screenshots below) for which you want to ensure it will never sleep/hibernate (Chrome calls this “discardable”)

  4. Click Toggle under the checkmark ✔ so it changes into a cross ✘️ (so the URL will never be discarded, hence always stays awake)

Do this only for tabs that are not CPU/memory/traffic intensive

I got there via these posts:

When searching for discards, I found this post: [Wayback] How to Prevent Chrome from Reloading Tabs When You Switch to Them

Chrome has built-in memory management that causes inactive tabs to “sleep” as RAM is filled. When you click the tab again, it has to reload the page. It’s annoying.

–jeroen

Posted in Chrome, Development, Google, Power User, SocialMedia, Software Development, Web Development, WhatsApp | Leave a Comment »

Chrome Print dialogue not offering fit to page, landscape, other printing options ( I’m looking at you @OHRA )

Posted by jpluimers on 2021/12/08

Some sites manage to disable various printing options (including layout, so you cannot choose between landscape and portrait any more, or force landscape when portrait works better or vice versa).

Googling this got me into a web of things that didn’t help me (see links below), but those led me to this query [Wayback] chrome save as pdf layout missing portrait landscape – Google Search.

That returned a helpful result at [Archive.is/Wayback] Chrome Print dialogue not offering fit to page, landscape, other printing options – Google Chrome Community:

I found a solution.

1.  Install the Stylus Extension.
2.  Go into the Stylus extension and click on “Write new style”.
3.  Put the following code in:
@page {
  size: auto;
}

4.  Give it a name (I called mine “Fix Orientation”) and save it.

5.  Reload the page you’re trying to print and the print dialogue should now have the “Layout” option and you should always get it for any page you print from now on.

It’s about the extension [Archive.is] Stylus – Chrome Web Store

Redesign the web with Stylus, a user styles manager. Stylus allows you to easily install themes and skins for many popular sites.

I reconfigured the OHRA Mijn Zorg site to force re-enabling of layout by adding @page { size: auto !important; } for https://mijn.ohrazv.nl/ (click the Save button to save this change permanently):

Read the rest of this entry »

Posted in Chrome, CSS, Development, Google, HTML, Power User, Software Development, Web Development | Leave a Comment »

Google has stopped (Dutch: Google is gestopt) on older Anrdoid devices

Posted by jpluimers on 2021/11/12

I got the Dutch message “Google is gestopt” on an older Android device which translates to the below English error message “Google has stopped”.

Below is the solution based on [WayBack] Google is stopped – OnePlus Community

  1. Go to “Settings”
  2. In “Settings” go to “Apps”
  3. In the application list, browse to “Google”
  4. Uninstall all updates (sometimes this is under the hamburger or 3-dot icon)
  5. Confirm
  6. Start the Google Play Store
  7. Update the “Google” application

Related:

–jeroen

Read the rest of this entry »

Posted in Android, Android Devices, Development, Google, Mobile Development, OnePlus One, OnePlus Two, Power User | Leave a Comment »

Infusion pump and PCA (patient-controlled analgesia) calculation

Posted by jpluimers on 2021/11/09

This is a great PCA calculator: [Archive.is] CADD calculator 0.5BETA END USER Google Docs – Google Sheets

Via:

Related:

–jeroen

Read the rest of this entry »

Posted in Development, Excel, Google, GoogleDocs, GoogleSheets, Office, Office Automation, Office VBA, Power User, Scripting, Software Development | Leave a Comment »

Google Maps Hacks by Simon Weckert – YouTube

Posted by jpluimers on 2021/10/05

This is from almost 2 years back, so I wonder if the physical and virtual Google Maps spoofing still works.

Via:

–jeroen

Read the rest of this entry »

Posted in Android, Development, Google, GoogleMaps, Mobile Development, Power User, Software Development | Leave a Comment »

Google Cloud Shell: connecting to cloud storage buckets

Posted by jpluimers on 2021/09/28

One of the drawbacks of Google Cloud Shell is that it will delete the home directory after 120 days of not using it: [WayBack] Deletion notice for my Google Cloud Shell home directory – Stack Overflow

This is documented [WayBack] here:

If you do not access Cloud Shell for 120 days, we will delete your home disk. You will receive an email notification before we do so and simply starting a session will prevent its removal.

This only applies to the home directory of your Cloud Shell instance (you may want to store it on Cloud Storage anyway if you want to keep it). Any other Google services you use will be unaffected.

I hardly use the cloud shell, as it is a last resort to shell out from overly protected networks. Fewer and fewer environments restrict so much, so I’ve bumped into the home directory deletion a few times now.

I might use it more in the future, as I recently discovered there is a URL trick so you can start a cloud shell with parameters like an initial git repository: [WayBack] Open in Cloud Shell  |  Google Cloud

The Open in Cloud Shell feature allows you to publish a link that opens the Cloud Console and either automatically clones a Git repository into Cloud Shell or starts Cloud Shell with a custom image. It also allows for instructions to be printed to the terminal to help users interact with the content.

The Open in Cloud Shell feature helps developers experiment with code samples and APIs without having to worry about downloading Cloud SDK, installing required dependencies, or searching for relevant source files. This page explains how to add this feature to your Git repository.

Currently, only GitHub and Bitbucket repositories are whitelisted. If you would like to add a different repository, send feedback with the repository type you’d like to use with Open in Cloud Shell.

Setting up the home directory with my scripts can be a curse, so I have contemplated on these kinds of solutions:

  • store scripts in Google Drive, and mount part of Google Drive into the Cloud Shell
  • store scripts in Google Cloud Storage
  • script the setup of the home directory via a bash script in a gist

Some links that will hopefully help me with that:

  • [WayBack] Use the Google Cloud Shell to Upload files to Google Drive : DataHoarder
  • [WayBack] Open Your Repository In Google Cloud Shell – Daisuke Maki – Medium
  • [WayBack] gsutil – Google cloud storage – Download file from web – Stack Overflow

    mount the bucket in your Cloud Shell using gcsfuse:

    Create a directory in your Cloud Shell user home

     mkdir ~/mybucket
    

    Now mount your bucket in that directory using gcsfuse:

     gcsfuse bucket_name ~/mybucket
    

    Change the current directory to mount point directory:

     cd mybucket
    

    (if you want to have some fun run “df -h .” to see how much space you got in that mount point)

    seems to work for all file sizes:

     curl http://speedtest.tele2.net/10GB.zip | gsutil cp - gs://YOUR_BUCKET_NAME/10GB.zip
    

    Basically curl “streams” the data directly to the bucket.

  • [WayBack] Limitations and restrictions  |  Cloud Shell  |  Google Cloud

    Usage limits

    Cloud Shell inactivity: If you do not access Cloud Shell for 120 days, your home disk will be deleted. You will receive an email notification before its deletion and simply starting a session will prevent its removal. Please consider a different solution on Google Cloud storage for sensitive data you wish to store long term.

    Non-interactive usage: Cloud Shell is intended for interactive use only. Non-interactive sessions will be ended automatically after a warning. Note that Cloud Shell sessions are capped at 12 hours, after which sessions are automatically terminated. You can use a new session immediately after.

    Weekly usage: Cloud Shell also has weekly usage limits. If you reach your usage limit, you’ll need to wait until the specified time (listed under Usage Quota, found under the three dots menu icon) before you can use Cloud Shell again.

    Restoring a session after a service limit violation: If your session is terminated or cannot be established because you exceeded a service limit, Cloud Shell will display an error with a link to a form that allows you to appeal the limit violation. Click the feedback link and submit the form with more information about the tasks you were performing before your session was terminated.

–jeroen

Posted in bash, Development, Google, GoogleCloudShell, GoogleDrive, Internet, Power User, Scripting, Software Development, SpeedTest | Leave a Comment »

calendar google sub-calendar – Google Search

Posted by jpluimers on 2021/09/17

For a web-dashboard showing both agenda and month-calendar, I wanted to show the daily activities only on the agenda, and all other events on both the agenda and mont-calendar.

For that I needed a sub-Google-calendar for the daily activities next to the main Google-calendar, so I searched for [WayBack] calendar google sub-calendar – Google Search

Google sub calendars
Once the calendar is created, you’ll see it on your browser and in the app.
  • On your computer, open Google Calendar.
  • On the left side, above “My calendars,” click Add other calendars New calendar.
  • Add a name and description for your calendar.
  • Click Create calendar.
Create a new calendar – Calendar Help – Google Support

 

This wasn’t fully accurate:

  • the add option intuitively is a plus sign (+):

  • In addition it is not above “my calendars”, but next to “other calendars”:

Alternative

Read the rest of this entry »

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

How to prepare your IdentityServer for Chrome’s SameSite cookie changes – and how to deal with Safari, nevertheless – Thinktecture

Posted by jpluimers on 2021/09/15

For my link archive:

Via:

–jeroen

Posted in .NET, .NET Core, ASP.NET, C#, Chrome, Chrome, Development, Firefox, Google, Power User, Safari, Software Development, Web Browsers | Leave a Comment »