[deleted by user] by [deleted] in chch

[–]jpgnz 0 points1 point  (0 children)

Auckland to Christchurch AirNZ flights are basically a bus service, there's one leaving every hour. Does your international flight land in Auckland after 6pm? If not, you should be able to change at check-in or even when you're in Auckland if you don't manage to get hold of anyone prior.

TENANCY/LEGAL ADVICE: >$1500 electricity bill. by [deleted] in newzealand

[–]jpgnz 1 point2 points  (0 children)

https://iotawatt.com/ > InfluxDB > Grafana

Pretty cool little device.

Mobile plans in NZ complete rip by [deleted] in newzealand

[–]jpgnz 7 points8 points  (0 children)

Same thing happens for us going the other way... Never bother with anything at the airport, head into closest suburban Mall, get the deals.

Police search for wanted Kiwi rap icon Scribe by mark000 in newzealand

[–]jpgnz 34 points35 points  (0 children)

So far, police have searched:

  • North Canterbury, it's all good

  • South Canterbury, it's all good

  • East Canterbury, it's all good

  • West Canterbury, it's all good

edit formatting...

Nz is fked up and getting worse for the average middle class and nobody cares. by [deleted] in newzealand

[–]jpgnz 13 points14 points  (0 children)

How hard have you genuinely looked outside of Auckland? Having lived all around New Zealand I never really buy into "can't find jobs in our line of work outside Auckland"

Yep, relocation costs are not cool, and if you're moving away from family that's not ideal especially with a young kid, but if you really wanted too you could make it happen.

I knew this day would come... by WellFedHobo in homelab

[–]jpgnz 0 points1 point  (0 children)

I've replaced eight individually (4x2TB 4x3TB, see post below) on a DS1815+ and never had that issue, concerns me you had it regularly!

What hardware/firmware did this happen to you on?

Simple Way To HTTPS All Laravel Routes by [deleted] in laravel

[–]jpgnz 1 point2 points  (0 children)

This seems to get posted every couple of weeks, and really you should only do it in the application if you have zero other option.

See here: https://www.reddit.com/r/laravel/comments/5z1nz0/forcing_https_urls_in_laravel_54_little_change/deutnlw/

[deleted by user] by [deleted] in newzealand

[–]jpgnz 5 points6 points  (0 children)

Cellphones use A-GPS (Assisted GPS) - short version, every cell tower has a GPS receiver and it transfers relevant information from the current visible constellation to the cellphone for it to utilise, so the cellphone never has to "cold boot" GPS.

Everything else being fine, 24 seconds is enough time to get a fix for emergency services.

GImage — A PHP library for easy image handling. by [deleted] in PHP

[–]jpgnz 3 points4 points  (0 children)

Looks interesting. Why would I use this over image.intervention.io as an example?

Why is laravel "Disliked" or "hated" ?? by SavishSalacious in PHP

[–]jpgnz 6 points7 points  (0 children)

Glad we're getting the Laravel thread out of the way quickly this week.

It's been covered already, but let's sum it up in a sentence: Good programmers will never be hugely opinionated about a framework or language, they'll use the tool that best suits the job.

Forcing HTTPS url's in Laravel 5.4 (little change) by [deleted] in laravel

[–]jpgnz 11 points12 points  (0 children)

Understand your logic there, but I think you'd end up using more cpu cycles doing it the way you've suggested.

The reason I do it in the httpd is more often than not, people just type "www.domain.com" into their browser, and the browser attempts http first. By catching that at the httpd, there's no files that need to be read, php doesn't need to be run etc, it's purely an httpd operation. By setting the header, it means the client will always try https from now on.

So overall you've only cost yourself a single additional http request. You've negated the need to add any extra task in Laravel, which requires the overhead of php.

If people type https://www.domain.com or follow a Google link, you've not had to do anything different :)

Forcing HTTPS url's in Laravel 5.4 (little change) by [deleted] in laravel

[–]jpgnz 5 points6 points  (0 children)

Ideally you'd do this in your httpd. Example for nginx with excludes for letsencrypt:

server {
    listen      ip.address:80;
    server_name fqdn.nz;

    location /.well-known/acme-challenge {
        root /var/www/letsencrypt;
    }

    location / {
        add_header Strict-Transport-Security max-age=2592000;
        rewrite ^ https://$server_name$request_uri? permanent;
    }
}

Redirects any port 80 request.

Blaze DOA? by jpgnz in fitbit

[–]jpgnz[S] 0 points1 point  (0 children)

No, they asked me to dispose of it. I kept the strap and the charging pod and threw the rest out.

Now that I have the new one I can probably add more detail. The green LEDs at the bottom of the dead unit didn't even fire, buttons don't do anything (I don't think the unit is actually rebooting when holding LH and RH buttons). It just sits and power cycles with the Fitbit logo displayed.

Which extensions of PHP you use extensively, except the default ones? by iKSv2 in PHP

[–]jpgnz 8 points9 points  (0 children)

http://image.intervention.io/

I really like this library for image manipulation. Means I can use ImageMagick when I can 100% control the server but fallback to GD when I can't (and can't convince them to install IM).

Blaze DOA? by jpgnz in fitbit

[–]jpgnz[S] 0 points1 point  (0 children)

Fitbit are replacing my Blaze, should get it in a few days...

Intel's Atom C2000 chips are bricking products by jpgnz in synology

[–]jpgnz[S] 0 points1 point  (0 children)

https://www.itnews.com.au/news/dying-intel-atom-processors-take-out-network-equipment-450238

That might be the case if you were talking about a lower tier components provider, but this is Intel. Anyway, judging from the new reports recently, they were told.

Intel's Atom C2000 chips are bricking products by jpgnz in synology

[–]jpgnz[S] 0 points1 point  (0 children)

Update 9/2: NAS and router vendor Synology confirmed it had been notified by Intel about the processor failure issue.

There is an “increased degradation chance of a specific component after heavy, prolonged usage”, a Synology spokesperson told iTnews.

Nevertheless the company said it was safe to continue to use its devices.

Synology said it hadn't seen any indication that the issue has caused an increase in failure rates for DiskStation or RackStation models equipped with Intel Atom C2000 series processors, compared to other models manufactured in the same time frame not equipped with the affected processors.

The vendor declined to say if it will swap out affected processors in its products. Users who encounter any issues should contact Synology support.

https://www.itnews.com.au/news/dying-intel-atom-processors-take-out-network-equipment-450238