Avoiding PageKite limit on requests

PageKite proxy accounts may at times experience dropping connections. When using Pagekite as a callback for a service, it sometimes rejects connections with a failure like the following pasted. If you notice it says rejected=ips_per_sec, this means we’re facing throttling. Please note that the PageKite cli command is usually reporting “<< pagekite.py [flying] Kites are flying and all is well.”, while this error happens, so there is no chance that it is a problem with the machine running pagekite client.

There is a limit placed on all accounts to tackle spam and phishing. Email PageKite support to put your premium/paying account on the unthrottled list, so that you can avoid this artificial limit.

<html>

<frameset cols="*">

<frame target="_top" src="https://pagekite.net/offline/?&amp;where=FE&amp;proto=http&amp;domain=YOURACCOUNT.pagekite.me&amp;relay=::ffff:172.55.11.123&amp;rejected=ips_per_sec" />

<noframes>

<h1>Sorry! (fe)</h1>

<p>The HTTP

<a href="https://pagekite.net/">

<i>PageKite</i>

</a> for

<b>YOURACCOUNT.pagekite.me</b> is unavailable at the moment.

</p>

<p>Please try again later.</p>

<!--  -->

</noframes>

</frameset>

</html>

More details about why this change was made can be found on the PageKite blog.

100 US Citizenship Interview Questions in Punjabi (Civics)

NOTES:

Read more100 US Citizenship Interview Questions in Punjabi (Civics)

LG G6 review

Just wanted to keep a log of complaints with my LG G6. Things a person wouldn’t know until they buy it.

  • – Default message limit means your messages will start getting automatically deleted in the background after the limit reaches. I’ve lost so much history this way.
  • – No flash on low battery. At least give me the option to use flash in low-battery mode.
  • – Low light or over-sharp photos. This is probably a problem with almost every phone ever.
  • – Android 8 is not coming I think. Promised at launch. It’s been over a year.
  • + Knock to start or wake immediately after it goes dark is awesome.

How to install stbemu pro on Fire TV 4k?

It was tough piecing together all the instructions to install stbemu pro on Fire TV 4k. Here’s my current working process:

  1. Install stbemu pro apk. Several ways:
    1. Easiest: Download from Aptoide.
    2. Download from random sites. Good luck!
    3. Extract it yourself. 🙂
  2. Enable Settings > Device > Developer options > Unknown sources > ON.
  3. Enable Settings > Device > Developer options > ADB > ON.
  4. Find IP of Fire TV. It will look like 192.168.X.X. Two ways:
    1. Check the router for amazon-HASH device’s IP address.
    2. Open Fire TV’s About > Network to look for IP address field.
  5. Install ADBlink for PC or MAC.
  6. Open ADBlink, put your IP address in the field, and hit Connect.
    1. NOTE: You will need to accept this connection on the Fire TV. You should see a popup there.
  7. Once connected, choose “Install APK” from buttons. Select the APK downloaded in step #1.
  8. Finally, your app icon may not show on the home screen. Follow this tutorial. Steps outlined below:
    1. Choose Settings > Applications > Manage Installed Applications > App Store > Force stop, Clear data, Clear cache one after another.
    2. Choose Settings > My Account > Sync Amazon Content.
  9. You should have an icon under “Your apps and games” section for stbemu.
    1. It may be at the end. Here’s how to bring it front:
      1. Highlight stbemu icon. Choose options button on remote and “Move to front”.
  10. Protip: Make stbemu run on Fire 4k boot.

iPhone vs Android

I’ve used Android phones most of my smartphone life. I started with Google’s G1, then came Google Nexus 5, Google Nexus 5X, Samsung Galaxy, LG G6. I’m very familiar with the Android ecosystem. I’ve dabbled with plenty of ROMs, like CyanogenMod, Cataclysm, etc. Along with my regular smartphone usage, I’ve developed apps for both Android and iOS. My only exposure to iOS has been an iPod Touch before smartphone days and my development experience with the emulators

Recently, I was given the opportunity to use an iOS device, iPhone SE, since MetroPCS offered free ones on no-contract signup. I figured I should give it a shot for a few months. I want to detail some pros and cons for both ecosystems.

Android:

  • + More customizable: the home screen, widgets, launcher, unknown source apps, etc.
  • + Better notifications system. Ability to dismiss things easily enough compared to iOS. Notification groupings! Reply within notifications. Etc!
  • + Awesome integrations with lots of password managers. Personally I prefer LastPass to keep them synchronized with all my devices.
  • + Change default apps for anything.
  • + Consolidated Google Now to keep up with appointments, shipments, NBA/NFL scores, news. Automatically pieced together from my emails.
  • + Google Assistant able to pick up any accent you can throw at it. My family has thick Punjabi/Indian accents.
  • – Slow and inconsistent apps. Seem like second citizens compared to iOS apps from the same brands/app-makers.

iOS

  • + Faster apps loads with better graphics
  • + Smooth camera operation
  • – Annoying notifications seem to never go away. Tough to dismiss all of them.
  • – No integration with password managers like LastPass. Each app has to subscribe to specific password managers. In other words, no app ever happens.
  • – Limited browsers. Every browser runs the Webkit backend, so if a website is broken in your browser, you’re out of luck.
  • – Default iOS keyboard has no swiping. And it will keep coming up for apps that don’t want to use custom keyboards (i.e. Contacts, almost all the iOS apps, any financial app, logins/passwords). Inconsistent and NO thanks!!!

TLDR: I can’t wait to go back to my “slow yet complete” smartphone that is Android.

Best way to avoid ads in exercise apps

I’ve found that the best way to avoid ad-infested apps for exercising is to use official apps from popular brands. They’re better because they bother you again and again about non-exercise-related matters (ads, social sharing, etc)

For example the following apps are great alternatives to popular ad-filled apps:

  1. Nike Run Club – Much better than C25k (Couch-to-5k).
  2. J&J 7 Minute Workout – Alternative to 7 Minute Workout.

Composer stuck on installing private GitHub repos

I was trying to install some GitHub repos as dependencies using composer. Composer kept getting stuck on installing the private ones.

composer.json:

    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:inderpreet99/private.git"
        }
    ],
    "require-dev": {
        "inderpreet99/private": "1.0.1"
    }

Log:

$ composer install
Loading composer repositories with package information

[Composer\Downloader\TransportException]
The "https://api.github.com/repos/inderpreet99/private" file could not be downloaded (HTTP/1.1 404 Not Found)

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...

Solution:

  1. Go to your GitHub profile.
  2. Under Developer Settings > Personal access tokens, generate a new token.
  3. In cli:
    $ export GITHUB_ACCESS_TOKEN="gibberisheaab78ab18285b9something"
    $ composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
    

Composer should work much more smoothly now.

Webmin bug copying SSL certificates to Virtualmin panel

When you generate a SSL certificate for an nginx site through the Virtualmin interface for a virtual (sub-)server, the button “Copy to Webmin” incorrectly triggers the “Copy to Usermin” feature.

On the other hand, the Webmin interface to generate the SSL certificate also fails, because it does not allow for generation for nginx hosts (only Apache hosts).

Trick:

  1. Generate the SSL certificate using Let’s Encrypt in Virtualmin for the virtual (sub-)server.
  2. Run the following command as root to copy the certificate to Webmin:
    virtualmin install-service-cert --domain yourdomain.com --service webmin

Add Lets Encrypt for Webmin/Virtualmin Panel itself

Are you getting a “challenge did not pass” error? Can’t find a matching hostname for your Webmin panel to generate Let’s Encrypt certificates to?

The trick is that Lets Encrypt only works with Apache. Most Webmin/Virtualmin panels are running on miniserv Perl scripts on port 10000. We must follow the following steps:

1. Create a virtual server (or sub server) for the matching domain in Virtualmin.
2. Go to Webmin > Webmin Configuration > SSL Encryption > Let’s Encrypt
3. Request Certificate for “Apache virtual host matching hostname”. Set renewal for 12 months!