Ionic 5 + React: positioning a popover relative to the clicked element

In the documentation, the requirement to have an Ionic 5 popover present itself beside a clicked element that activates the popover, you need to pass the mouse event to it.

To do so, you must assign the event prop of the IonPopover with the event value.

However, since React also nullifies all event properties due to Event Pooling and Ionic is looking for the eve… Read more

Ionic 5: animated collapsible searchbar using only SCSS

Add this to your global.scss of your Ionic 5 project:

ion-searchbar.collapsible {
  width: 55px; // match hard-coded padding-inline-end when collapsed
               // .searchbar-input {
               //   @include padding(6px, 55px);
               // }

  transition: width 0.5s ease-in-out;
  --border-radius: 4px;

  .searchbar-input.sc-ion-searchbar-md {
    transition-property: padding-inli
Read more

Ionic 5 + Angular: custom Alert enter and leave animations

Since it’s hard to find an example in the documentation and elsewhere on the Internet, here’s a simple implemention of a custom fade-in animation for Ionic 5 alerts with Angular. Note that we choose what elements of an ion-alert to animate by using querySelector on HTMLElement baseEl. The div with class alert-wrapper is the dialog, but you can … Read more

How to peruse Quora.com answers and links without signing in or creating an account

To dodge sending a Quora.com referring URL when following Quora links, simply:

  1. Right-click the link you want to follow
  2. “Copy link location” (FireFox) or “Copy Link URL” (Chrome)
  3. Right-click the address bar
  4. “Paste & Go” (FireFox) or  “Paste and go to …” (Chrome)

That’s it, and now you… Read more

No arbitrage play on NUGT and GDX, Direxion funds are a scam, precious metals market manipulation

Direxion Daily Gold Miners Index Bull 3X Shares NUGT is a leveraged fund that very basically aims to mimic the movement of VanEck Vectors Gold Miners ETF GDX at triple the rate.

So, if GDX goes up 5%, then NUGT roughly goes up 15% give or take, minus much higher expenses principally due to interest on the leverage (which is getting smaller by the way with rate cuts… Read more

An uptick in lottery hopefuls: my own economic recession indicator

My gadget and article Expected Value Calculator for Lotto Max and Lotto 6/49 and 3 ways of increasing your chances of winning in Lotto 6/49 and Lotto Max respectively have been two of my most popular articles since their inception, but in the past few months, there has been a surge of new visitors to those posts.

Now, if the jackpots were unusually high I wou… Read more

The Real March Madness is here: yield curve inverts, massively

As of this morning, 10-year treasury yields hit 0.75, down a whopping 20% in a single day and far, far away from the current 1 – 1.25% rate even after the recent Fed rate cut.

There isn’t much room left before it hits negative rates, and all the markets appear to have nowhere to go but down.  Welcome back to 2008, but this time with much bigger bubbles … Read more

Rising separatist sentiment in Canada signals a federal government that has grown too big

I have refrained from posting anything politically related for my own protection as tech companies and governments at all levels are actively censoring contrary opinions. Word spreads too quickly to have your life ruined because you have an independent mind. More often the individual that thinks critically from first principles succumbs to mobs that de… Read more

Get your kids out of Seattle Public Schools NOW

When postmodernist deconstruction meets math, you get:

Source: https://www.k12.wa.us/sites/default/files/public/socialstudies/pubdocs/Math%20SDS%20ES%20Framework.pdf

Then you realize the subversion in the curriculum isn’t discreet, but just straight up in your face:

Have they progressed to playing the Soviet Anthem in the mornin… Read more

Backing up your Gitea Docker Installation

TL;DR:
docker exec -u git -it -w /data/gitea/backup $(docker ps -qf "name=gitea_server_1") bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini'
The dump will be found in ./gitea/gitea/backup relative to directory containing your docker-compose.yml. You should create this “backup” directory first otherwise you will get a &#… Read more