• 0 Posts
  • 14 Comments
Joined 10 months ago
cake
Cake day: November 14th, 2023

help-circle






  • Any IP camera that supports the onvif standard. Chinese Dahau and Hisense have amazing image quality but do not trust them. Block their Mac address at your router and you’ll be fine.

    I really like Power over Ethernet IP cameras because it’s one cable for power and data. If it’s only one camera you buy a POE injector so you plug in power where it’s convenient and run Ethernet (that also delivers power) to the camera. For multiple cameras, get a POE switch. On the software side, DWSpectrum, Frigate, or Shinobi for Linux. If you want it to work without any hassle, BlueIris for Windows is great.

    The Dahau and Hisense cameras I’ve used have their own recording capabilities so you can get by without even a Linux PC running Network Video Recording software like I listed above.







  • Parsing text is the reason regex was created!

    Page 1, Chapter 1, “Mastering Regular Expressions”, Friedl, O’Reilly 1997.

    " Introduction to Regular Expressions

    Here’s the scenario: you’re given the job of checking the pages on a web server for doubled words (such as “this this”), a common problem with documents sub- ject to heavy editing. Your job is to create a solution that will:

    Accept any number of files to check, report each line of each file that has doubled words, highlight (using standard ANSI escape sequences) each dou- bled word, and ensure that the source filename appears with each line in the report.

    Work across lines, even finding situations where a word at the end of one line is repeated at the beginning of the next.

    Find doubled words despite capitalization differences, such as with The the, as well as allow differing amounts of whitespace (spaces, tabs, new- lines, and the like) to lie between the words.

    Find doubled words even when separated by HTML tags. HTML tags are for marking up text on World Wide Web pages, for example, to make a word bold: it is <b>very</b> very important

    That’s certainly a tall order! But, it’s a real problem that needs to be solved. At one point while working on the manuscript for this book. I ran such a tool on what I’d written so far and was surprised at the way numerous doubled words had crept in. There are many programming languages one could use to solve the problem, but one with regular expression support can make the job substantially easier.

    Regular expressions are the key to powerful, flexible, and efficient text processing. Regular expressions themselves, with a general pattern notation almost like a mini programming language, allow you to describe and parse text… With additional sup- port provided by the particular tool being used, regular expressions can add, remove, isolate, and generally fold, spindle, and mutilate all kinds of text and data.

    Chapter 1: Introduction to Regular Expressions "