Hacker Newsnew | past | comments | ask | show | jobs | submit | motiejus's favoriteslogin

You'll want to find an IP Camera that supports the RTSP protocol, which is most of them.

If your budget supports commercial style or commercial grade cameras, looking at Dahua or Hikvision manufactured cameras would be a good starting point to get an idea of specs, features, and cost.


Just in case you didn't know, there is https://geizhals.eu which is the same as https://skinflint.co.uk which has very, very detailed filtering and sorting capabilities. Plus an android app (maybe iOS too). My personal go-to app/site when searching for computer hardware. Check it out.

I have a Framework 13 12th gen i5 as well, running NixOS, but I definitely get a lot more than 3 hours! I'm usually running some terminals and Firefox.

I definitely had to play with powertop a bit and remove some programs that consumed a lot of battery (for example, the blueman tray applet had to go). I'd recommend setting powerManagement.enable = true and powerManagement.powertop.enable = true, and letting powertop run in the background while on battery for a few hours to identify the worst offenders.

This is my configuration: https://kirarin.hootr.club/git/steinuil/flakes/src/branch/ma...


Also, checkout NewPipe with built in SponsorBlock functionality:

https://github.com/polymorphicshade/NewPipe



    ##  app-conf/apt/nosnap.pref
    # To prevent repository packages from triggering the installation of snap,
    # this file forbids snapd from being installed by APT.

    Package: snapd
    Pin: release a=*
    Pin-Priority: -10

    ### Remove snapd applications and service
    snap remove --purge firefox
    snap remove --purge gnome-3-38-2004
    snap remove --purge gtk-common-themes
    snap remove --purge bare
    snap remove --purge core20
    snap remove --purge snapd
    apt-get remove --yes snapd

    # This will prevent snapd from any repository
tested on Ubuntu jammy

If you like to do challenges like these, a couple of fun ones:

- bike/walk/run every street in your city. Can use for instance https://wandrer.earth/ with Strava to track it. It's quite nice, discover all kinds of things in my own neighborhood I didn't know of. By habit you always take the same routes. This makes me take a new road on my way back home and see new stuff.

- Draw art on the maps using gps. I've done multiple. Takes planning and often a few attempts executing when you realize that road is closed, that path was flooded or whatever. I've even gotten in the news a few times from this. For instance when I ran this pest doctor during lock downs https://imgur.com/a/qRkB5QN

- Bike the longest distance using the smallest area. Basically find a roundabout and see how long you can take it. Or the opposite, the largest area in your city, basically bike its border.


As far as I could work out, you can’t use the iOS client for Tailscale without building your own binary for it. I’d love to be proven wrong.

Seems like MikroTik and Ubiquiti haven't been particularly good on documenting how their routers work, what each process does, and how to debug/verify what they are doing. I've been particularly worried about Ubiquiti, since they seem to be ignoring the MIPS based EdgeRouter line. The various consumer NAS vendors have been a nightmare security wise, and it's far from clear that the prosumer routers from Ubiquiti and MikroTik are any better.

Should it really require reverse engineering to figure out how a Linux box passes packets?

I gave up on Ubiquiti and bought a tiny $120 router ($140 with a nice metal case) that's a NanoPi R6s. Pretty impressive specifications. 8GB ram, 8 cores (4 fast Ax76 and 4 slow A55s) and no fans. Has 2x2.5GBe and 1x1GBe for networking. I've installed a port of OpenWRT called FriendlyElec and Ubuntu 22.04.1 LTS. I didn't bother cross compiling, it's plenty fast for native compiles.

I've been impressed so far. It compiles Rust about half as fast as my Quad core Xeon server from years ago, and is SEVEN times faster than a RPi 4 8GB! I have an Apple M1 mini around that manages the same compile in 13 minutes. A nice bonus is neither network or storage is USB attached, unlike the RPi.

Burned it in overnight, running all 8 cores flat out, with no problems. Haven't decided what to use, maybe shorewall or just raw nftables/iptables.

Similarly there's 4 and 6 port 2.5 Gbe boxes with various N5000 and N6000 celerons at around $200. ServerTheHome has reviewed many of them, they seem to be evolving nicely, better cases, better heat sinks, better 2.5Gbe Intel chips, etc. Run *WRT, pfsense, or whatever else floats your boat. STH even demod running the firewall under proxmox on one of these cheap 4-6 port 2.5GBe widgets. Would be nice to keep your complete config in git or the config management widget of your choice (often Puppet or Ansible).

Guess I'm just getting less trusting in my old age.


I'm using a very similar setup for when I want to work away from my 27" 4K display but still need a second screen to be productive (e.g. doing almost anything coding-related). Like the previous poster, I set it up with the external screen directly above my laptop screen which for me is much more comfortable than trying to put it beside the laptop, and ends up at a perfect eye level.

Bought this LG Gram 16" Portable display (2560x1440): https://www.amazon.com/dp/B09TS43YMT

This portable tripod: https://www.amazon.com/dp/B08LGGXH1J

And this "tablet" mount that gets large enough to fit the 16" display: https://www.amazon.com/dp/B08Z7Z7QZ3

Tripod/tablet mount also double as an iPad stand for video calling, etc.

Everything fits easily in my fairly compact backpack along with cables, dongles, mouse, etc.


> I also disagree with the idea of backing up the private key.

You should have secure copies of your master key. Especially if you've invested time in building up your web of trust. Backing up encryption keys is also useful. If they're lost, data cannot be decrypted later. Signing keys are the only ones which are completely expendable.

Creating a paperkey and storing it in a physical safe is ideal. That way you can keep your master key offline until needed and use subkeys for daily use.

You can encode it as a QR code:

  gpg --export-secret-key $KEY | paperkey --output-type raw | qrencode --8bit --output secret.png
And easily restore it later with zbar:

  zbarimg --raw --oneshot -Sbinary secret.png | paperkey --pubring public.asc | gpg --import
  zbarcam --raw --oneshot -Sbinary | paperkey --pubring public.asc | gpg --import

Can wholeheartedly recommend Postmark, fabulous service and support. Virtually no problems over the last 6 years and always incredibly responsive to any questions.

Used to be with SendGrid, had a very bad experience with them where (at the time) they showed little interest in small customers and wouldn’t go back. A lot can change in 6 years, they may well be brilliant and now care more about small customers, but for reference:

https://news.ycombinator.com/item?id=12142728


The taxonomy I personally use is:

* Every computer program has algorithms, it's an extremely general term for "the idea behind how the computer will solve the problem". Advanced algorithms are typically those that took a lot of human effort to come up with.

* Machine Learning refers to a specific class of algorithms where the computer automatically figures out (part of) what it should do based on data.

* Deep learning is the subset of ML that uses deep neural networks.

* Artificial Intelligence is a marketing term, and is actually about the _problem_ being solved, not the technology being used to solve it. In particular, AI is any computer program that solves a problem people would previously expect can only be solved by a human applying creativity and/or intelligence, like playing a game, understanding natural language, or creating artwork. This definition is obviously a moving target as expectations change.

Deep learning is currently the most powerful and general toolkit for solving AI problems, so the concepts tend to get mixed together pretty frequently, but I personally like using the definitions above to keep things straight.


Related thread: https://news.ycombinator.com/item?id=24206899

I myself use 418 as a reply to mean bots. Fun + makes filtering logs easier.

Nginx config snippet:

  # Nothing to hack around here, I’m just a teapot:
  location ~* \.(?:php|aspx?|jsp|dll|sql|bak)$ { 
      return 418; 
  }
  error_page 418 /418.html;
Example: https://FreeSolitaire.win/wp-login.php

Wonderful article and inspiring person!

I recently came across this talk of her, and highly recommend watching it: https://www.youtube.com/watch?v=Jlb77dDHIXQ she explains a bit about the history of her work.

One of the main reasons I find her so inspiring is that her work clearly shows why adding a great designer to a great team of engineers can result in ever lasting impact.

As a designer myself, I work with teams of engineers (mostly in the B2B SaaS Space [1]) who write great software but don't have the skills to design a delightful experience for their users. It's a shame there are still too many teams of talented engineers out there who don't see the importance of great design.

[1] http://fairpixels.pro


Video to GIF

  SET filters="fps=%4,scale=%3:-1:flags=lanczos"
  ffmpeg -v warning -i %1 -vf "%filters%,palettegen" -y palette.png
  ffmpeg -v warning -i %1 -i palette.png -lavfi "%filters% \[x\]; \[x\]\[1:v\] paletteuse" -y %2
  DEL palette.png

  togif.bat <input.mp4> <output.gif> <width> <fps>
Extract audio from a video

  ffmpeg -i "path\to\my_input_video_file.mp4" "path\to\my_output_audio_only.wav"
Extract specific video and audio stream

  ffmpeg -i "path\to\my_input_video_file.mp4" -map 0:0 -c copy video.mp4 -map 0:1 -c copy audio0.m4a -map 0:2 -c copy audio1.m4a
Concatenate two or more video clips

  (echo file 'first file.mp4' & echo file 'second file.mp4' )>list.txt
  ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4
Convert 10-bit H.265 to 10-bit H.264

  ffmpeg -i input -c:v libx264 -crf 18 -c:a copy output.mkv
Convert 10-bit H.265 to 8-bit H.265

  ffmpeg -i input -c:v libx265 -vf format=yuv420p -c:a copy output.mkv
Convert 10-bit H.265 to 8-bit H.264

  ffmpeg -i input -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv

Regarding SQLite's performance, some things I've found very useful:

Use WAL mode (writers don't block readers):

  PRAGMA journal_mode = 'WAL'
Use memory as temporary storage:

  PRAGMA temp_store = 2
Faster synchronization that still keeps the data safe:

  PRAGMA synchronous = 1
Increase cache size (in this case to 64MB), the default is 2MB

  PRAGMA cache_size = -64000
Lastly, use a modern version of SQLite. Many default installations come with versions from a few years ago. In Python for example, you can use pysqlite3[0] to get the latest SQLite without worrying about compiling it (and it also comes with excellent compilation defaults).

[0] https://github.com/coleifer/pysqlite3


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: