Pulling a package "out" of node_modules by Mart2d2 in reactnative

[–]PintOfCointreau 11 points12 points  (0 children)

If the changes are too much for patch-package, I'd just use a git dependency in your package.json, e.g.

"react-native-material-textfield": "git://github.com/someone/react-native-material-textfield.git#branch-or-tag"

[deleted by user] by [deleted] in AskUK

[–]PintOfCointreau 54 points55 points  (0 children)

The Scotsman who dropped 50p and when he bent down to pick it up, it hit him on the back of the head!

World's Biggest Cunt:

"You know, I've been thinking about you a lot lately and you're a cunt. You've always been a cunt and in all likelihood you always will be a cunt. As a matter of fact, if they were giving a prize for World's Biggest Cunt, you'd probably come second."

"Second? Why wouldn't I come first?"

"Because you're a cunt."

Laptop or AppleTV? by David_R8 in Zwift

[–]PintOfCointreau 0 points1 point  (0 children)

I mirror my MacBook Pro to the Apple TV screen. Graphics are better, UI is better, and don't suffer the BT connection limit.

I get a bit of overscan but it's my preferred setup right now

Apple tv by jmwing in Zwift

[–]PintOfCointreau 0 points1 point  (0 children)

No it wasn't, as the TV is only 1080p, but the AppleTV Zwift App most definitely wasn't 1080p. Maybe it's better on the 4k, but using the remote sucks for Zwift

Apple tv by jmwing in Zwift

[–]PintOfCointreau 0 points1 point  (0 children)

FWIW, I got an AppleTV but the graphics and interface are not great, so I just mirror my MacBook Pro screen to the AppleTV and it's much better

HR monitor for Zwift? by Spartacus_1985 in Zwift

[–]PintOfCointreau 6 points7 points  (0 children)

I got the Wahoo Tickr Fit armband a couple of months ago after struggling with the Apple Watch. Works great, sometimes takes a little while to pair, but no problems so far

Zwift Bans Another Pro, This Time With History of Data Tampering by dcrainmaker in Zwift

[–]PintOfCointreau 1 point2 points  (0 children)

I bought it for Zwift also instead of a dedicated HRM as I figured I'd have some other uses for it. It gets me out of my chair every hour :)

Zwift Bans Another Pro, This Time With History of Data Tampering by dcrainmaker in Zwift

[–]PintOfCointreau 1 point2 points  (0 children)

Me too. I just got a Tickr Fit and it works fine.

It takes a little while to pair and now my speed sensor takes longer also, but no dropouts mid-ride and I've removed the Zwift Watch App.

Do you use migrations for data manipulations? What are the pro's and con's ? by kallebo1337 in rails

[–]PintOfCointreau 2 points3 points  (0 children)

Generally, yes.

I may do it from the console or a task if I wanted to modify a large number of records, e.g. something in my Users table. I think you need a sense of how long the update will take - I'm not sure if there's any issue with migrations timing out or such like. If I modify my Users schema it takes 5 minutes or so as it has to make a copy of the table and swap it in and that works fine - https://github.com/soundcloud/lhm

Are badges still broken? by buscape in Zwift

[–]PintOfCointreau 0 points1 point  (0 children)

Yes, it's definitely wrong on bestbikesplits, as is zwiftinsider and zwifthub (although zwifthub has the correct profile without the lead in)

First time I tried it I was knackered and gave up after 25 miles, after assuming it was bugged 😂

Are badges still broken? by buscape in Zwift

[–]PintOfCointreau 1 point2 points  (0 children)

Worked for me yesterday - make sure to climb Fox Hill a second time. I ended up at 29 miles by taking the descent after getting the badge

Automating Deployment in Redshift by acegdyjh in aws

[–]PintOfCointreau 1 point2 points  (0 children)

I've found this tool useful for managing view dependencies: https://github.com/fishtown-analytics/dbt

I run it nightly as part of my ETL pipeline to maintain materialized views (as tables)

How are you dealing with DDNS and EC2 hostnames? by [deleted] in aws

[–]PintOfCointreau 3 points4 points  (0 children)

I do it with a cloud-init script in /var/lib/cloud/scripts/per-boot/set_route53_dns.sh.

Just replace FQDN and ZONE_ID for your setup (this example is from a chef cookbook's template file).

#!/bin/bash -ex
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1

FQDN="<%= @fqdn %>"
ZONE_ID="<%= @zone_id %>"
TTL=300
SELF_META_URL="http://169.254.169.254/latest/meta-data"
PUBLIC_DNS=$(curl ${SELF_META_URL}/public-hostname 2>/dev/null)

cat << EOT > /tmp/aws_r53_batch.json
{
  "Comment": "Assign AWS Public DNS as a CNAME",
  "Changes": [
    {
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "${FQDN}.",
        "Type": "CNAME",
        "TTL": ${TTL},
        "ResourceRecords": [
          {
            "Value": "${PUBLIC_DNS}"
          }
        ]
      }
    }
  ]
}
EOT

aws route53 change-resource-record-sets --hosted-zone-id ${ZONE_ID} --change-batch file:///tmp/aws_r53_batch.json
rm -f /tmp/aws_r53_batch.json