HN user

theomega

373 karma
Posts16
Comments63
View on HN

One thing I can recommend that makes scripting in python with external commands a lot easier is the `sh` module:

https://pypi.org/project/sh/

Basically you can just `from sh import [command]` and then have an installed binary command available as function

  from sh import ifconfig
  print(ifconfig("eth0"))
LiteFS 4 years ago

Thanks, that was of great help!

Just for reference, the ping command is a little different

  sudo ping6 -D -G 1500,1400 fly.io
I set an MSS to 1492 which pfsense (my router) translates to an MSS clamp of 1492-60 for IPv6 and 1492-40 for IPv4. This is a German Deutsche Telekom Fiber connection. Now everything works fine, I can request fly.io (and also discovered that https://ipv6-test.com was not working before and now does with the MSS clamping)

Does MSS clamping have any disadvantages? Are there any alternatives in my case?

LiteFS 4 years ago

How could I find out if this is the case? And, what can I do about it? Disabling IPv6 obviously fixes it, but that it not a solution...

LiteFS 4 years ago

Does anyone else bump into the issue, that the fly.io website does not load if requested via IPv6 on Mac? I tried Safari, Chrome and curl and neither work:

  $ curl -v https://fly.io/blog/introducing-litefs/
  *   Trying 2a09:8280:1::a:791:443...
  * Connected to fly.io (2a09:8280:1::a:791) port 443 (#0)
  * ALPN, offering h2
  * ALPN, offering http/1.1
  * successfully set certificate verify locations:
  *  CAfile: /etc/ssl/cert.pem
  *  CApath: none
  * (304) (OUT), TLS handshake, Client hello (1):
  curl: (35) error:02FFF036:system library:func(4095):Connection reset by peer

Requesting via ipv4 works
  $ curl -4v https://fly.io/blog/introducing-litefs/
  *   Trying 37.16.18.81:443...
  * Connected to fly.io (37.16.18.81) port 443 (#0)
  * ALPN, offering h2
  * ALPN, offering http/1.1
  * successfully set certificate verify locations:
  *  CAfile: /etc/ssl/cert.pem
  *  CApath: none
  * (304) (OUT), TLS handshake, Client hello (1):
  * (304) (IN), TLS handshake, Server hello (2):
  * (304) (IN), TLS handshake, Unknown (8):
  * (304) (IN), TLS handshake, Certificate (11):
  * (304) (IN), TLS handshake, CERT verify (15):
  * (304) (IN), TLS handshake, Finished (20):
  * (304) (OUT), TLS handshake, Finished (20):
  * SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
  * ALPN, server accepted to use h2
  * Server certificate:
  *  subject: CN=fly.io
  *  start date: Jul 25 11:20:01 2022 GMT
  *  expire date: Oct 23 11:20:00 2022 GMT
  *  subjectAltName: host "fly.io" matched cert's "fly.io"
  *  issuer: C=US; O=Let's Encrypt; CN=R3
  *  SSL certificate verify ok.
  * Using HTTP2, server supports multiplexing
  * Connection state changed (HTTP/2 confirmed)
  * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  * Using Stream ID: 1 (easy handle 0x135011c00)
  > GET /blog/introducing-litefs/ HTTP/2
  > Host: fly.io
  > user-agent: curl/7.79.1
  > accept: */*
  >
  * Connection state changed (MAX_CONCURRENT_STREAMS == 32)!
  < HTTP/2 200
  < accept-ranges: bytes
  < cache-control: max-age=0, private, must-revalidate
  < content-type: text/html
  < date: Wed, 21 Sep 2022 16:50:16 GMT
  < etag: "632b20f0-1bdc1"
  < fly-request-id: 01GDGFA3RPZPRDV9M3AQ3159ZK-fra
  < last-modified: Wed, 21 Sep 2022 14:34:24 GMT
  < server: Fly/51ee4ef9 (2022-09-20)
  < via: 1.1 fly.io, 2 fly.io
  <
  <!doctype html> ...

Just to check: Could it be that pihole (dnsmasq) has an issue with these dotless domains?

I'm getting a NXDOMAIN for `dig ai.`, but when directly doing with an upstream server (i.e. 8.8.8.8 or 1.1.1.1) it perfectly works.

I assume this is the result of the `Never forward non-FQDN A and AAAA queries` setting being checked in pi-hole (which is AFAIK the default).

I tried to deploy an application I currently have running on Digital Ocean App Platform (their Heroku competitor) also on fly.io. The app is using Python/Django and Postgres, ideal to test.

I must say the deployment experience was great, stuff just worked, brilliant.

One question in case someone tried that: How can you customize the postgres config? I want to enable pg_stat_statements, and one needs to add `shared_preload_libraries = 'pg_stat_statements'` to the config for this. One could also make this the default maybe? It is the default on most cloud providers (AWS RDS, Digital Ocean).

Django 4.0 5 years ago

Great news!

Just for reference: The latest release for Django Rest Framework is not compatible with Django 4.0 yet. At least my first attempts failed due to a missing `pytz` dependency. This is fixed in the `master` of DRF on Github. Installing `pytz` explicitly again to your project fixes DRF for now.

Vimcar | Berlin, Germany | Full-Time | Head of Engineering | https://vimcar.com

Vimcar is becoming the market leader for vehicle fleet management in the SMB market in Europe. We have 65k customers and 110k vehicles connected to our platform. We get live data from the vehicles (i.e. location) and try to add the most customer value based on this data. Tech stack is AWS, Python, TypeScript, React.

We are searching for a Head of Engineering who directly reports to the CTO. Responsibilities including growing the six teams and their team leads, iterating on our processes and keeping an overview on our architecture.

A perfect candidate would have experience as a leader of leaders and be willing to relocate to Berlin. We offer Visa sponsorships. Office language is English.

More details at: https://careers.vimcar.com/en/jobs/tech/head-of-engineering-...

Vimcar | Backend (Python), Frontend (React), SRE, Android | Berlin, Germany | Full-time, Part ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 70k paying customers and more than 100k connected cars. Each of these cars is constantly transmitting live data to our servers (so it is IoT :-D). Our business is strong despite the current situation, so we want to grow our tech team.

Technologies include Python, Typescript, React, AWS (including AWS CDK for IaaC), Kotlin, (recent) Java, Docker, Jenkins.

Office in central Berlin, Germany, close to public transport. Office language is English.

Open Positions, with more details and application form:

- Senior Backend Python for the Data Ingestion Team: https://careers.vimcar.com/en/jobs/tech/senior-software-engi...

- Senior Backend Python for our Product Development Team: https://careers.vimcar.com/en/jobs/tech/senior-backend-softw...

- Frontend (React) Developer: https://careers.vimcar.com/en/jobs/tech/senior-frontend-engi...

- Android Developer: https://careers.vimcar.com/en/jobs/tech/senior-frontend-engi...

- SRE: https://careers.vimcar.com/en/jobs/tech/site-reliability-eng...

Possibly, the current situation makes it very tough to rely on visa sponsoring. Depending where you are located it takes months to get appointments for getting the visa process going.

But we are open for it and have been doing it in the past. Feel free to apply and we check together what is possible.

Vimcar | Frontend (SPA) + Backend(Python) | Berlin, Germany | Full-time, ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 70k paying customers and more than 100k connected cars. Each of these cars is constantly transmitting live data to our servers (so it is IoT :-D). Our business is strong despite the current situation (November was our strongest month on the sales side), so we want to grow our tech team.

Technologies include Python, Typescript, (recent) Java, React, AWS, Docker, Jenkins.

Office in central Berlin, Germany, close to public transport. Office language is English.

Open Positions, with more details and application form:

- Frontend (SPA) Developer: https://vimcar.de/career/jobs/tech/senior-frontend-engineer-...

- Senior Backend Python : https://vimcar.de/career/jobs/tech/senior-java-developer-m-f...

Firebug 6 years ago

Does anyone know a trick how to get Firebug or similar running directly on iOS? I know that you can connect the iOS device to your Mac and run the developer tools on the big machine.

What I’m looking for is having Firebug directly running on the mobile device.

Vimcar | Team Lead + Backend | Berlin, Germany | Full-time, ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 70k customers and more than 90k connected cars. Each of these cars is constantly transmitting live data to our servers (so it is IoT :-D). Our business is strong despite the current situation (July was our strongest month on the sales side), so we want to grow.

Technologies include (recent) Java, Typescript, React, AWS, Docker, Jenkins.

Office in central Berlin, Germany, close to public transport. Office language is English.

Open Positions, with more details and application form:

- Team Lead for a small crossfunctional team (Backend + Frontend) with Frontend Skills: https://vimcar.de/career/jobs/tech/team-lead-frontend-web-ap...

- Senior Backend Java Engineer & Architect : https://vimcar.de/career/jobs/tech/senior-java-developer-m-f...

Vimcar | Team Lead + Backend | Berlin, Germany | Full-time, ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 60k customers and more than 80k connected cars transmitting live data. Our business is still strong despite the current situation, so we want to grow.

Technologies include (recent) Java, Typescript, React, AWS, Docker, Jenkins.

Office in central Berlin, Germany, close to public transport. Office language is English.

Open Positions, with more details and application form:

- Team Lead for a small crossfunctional team (Backend + Frontend) with Frontend Skills: https://vimcar.de/career/jobs/tech/team-lead-frontend-web-ap...

- Senior Backend Java Engineer: https://vimcar.de/career/jobs/tech/senior-java-developer-m-f...

I was a heavy user of Keycloak until a year ago and I can only recommend your setup if you are sure that the amount of realms is not growing. Every additional realm uses huge amount of memory in Keycloak. From how I understood the architecture, a lot of components (if not all of them) are initialized per realm.

We had huge problems modeling multi-tenancy through reals in Keycloak.

Take everything I'm saying with a grain of salt. But, if you are planning to have a lot of customers and realms, do a benchmark by creating a lot of realms and checking if you can use all of them in parallel. YMMV.

Vimcar | Frontend, Backend, QA | Berlin, Germany | Full-time, ONSITE

    Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.
    
    We are well funded with more than 50k customers and more than 70k connected cars transmitting live data.
    
    Technologies include (advanced) Python, (recent) Java, Typescript, React, AWS, Docker, Jenkins.
    
    Office in central Berlin, close to public transport. Office language is English. Will sponsor visas.
    
    Open Positions:
    
    - (Senior) Backend Engineer - Python: https://vimcar.de/career/jobs/tech/TE-WAB-19-1?coref=1.10.u4E_804&t=1580915829206
    
    - (Senior) Frontend Software Engineer – Web Application Development: https://vimcar.de/career/jobs/tech/TE-FR-19-3?coref=1.10.u4E_804&t=1580915837085
    
    - Team Lead Data Integrations: https://vimcar.de/career/jobs/tech/TETLDI?coref=1.10.u4E_804&t=1583166833489

Vimcar | Frontend, Backend, QA | Berlin, Germany | Full-time, ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 50k customers and more than 70k connected cars transmitting live data.

Technologies include (advanced) Python, (recent) Java, Typescript, React, AWS, Docker, Jenkins.

Office in central Berlin, close to public transport. Office language is English. Will sponsor visas.

Open Positions:

- (Senior) Backend Engineer - Python: https://vimcar.de/career/jobs/tech/TE-WAB-19-1?coref=1.10.u4...

- (Senior) Frontend Software Engineer – Web Application Development: https://vimcar.de/career/jobs/tech/TE-FR-19-3?coref=1.10.u4E...

- Testing Automation Engineer: https://vimcar.de/career/jobs/tech/TE-AUTO-19-1?coref=1.10.u...

Vimcar | Frontend, Backend, QA | Berlin, Germany | Full-time, ONSITE

Vimcar provides vehicle fleet management for SMBs in Europe, thus helping small companies to keep track where their cars are and optimize how their are utilized.

We are well funded with more than 50k customers and more than 70k connected cars transmitting live data.

Technologies include (advanced) Python, (recent) Java, Typescript, React, AWS, Docker, Jenkins.

Office in central Berlin, close to public transport. Office language is English. Will sponsor visas.

Open Positions:

- (Senior) Backend Engineer - Python: https://vimcar.de/career/jobs/tech/TE-WAB-19-1?coref=1.10.u4...

- (Senior) Frontend Software Engineer – Web Application Development: https://vimcar.de/career/jobs/tech/TE-FR-19-3?coref=1.10.u4E...

- Testing Automation Engineer: https://vimcar.de/career/jobs/tech/TE-AUTO-19-1?coref=1.10.u...

Pi-Hole 4.3.2 7 years ago

Any recommendations for block lists for PI-Hole? I found the default lists not really covering enough. What lists are you using?