Techrights logo

IRC: #techbytes @ FreeNode: Wednesday, November 18, 2020

Join us now at the IRC channel.

schestowitzRe: IRCNov 18 03:11
schestowitz> While the time must be at the beginning of each line, the date onlyNov 18 03:11
schestowitz> needs to be posted periodically in the log.  Printing the date once anNov 18 03:11
schestowitz> hour and at the change of day would make the text-only logs a lot moreNov 18 03:11
schestowitz> readable.Nov 18 03:11
schestowitzI still don't think they add anything substantial, seeing their output. For now I've decided to just release html, not text or raw.Nov 18 03:11
schestowitz> Try the attached on the XHTML version of the IRC logs.  It does notNov 18 03:18
schestowitz> colorize or truncat+indent but either would be easy to add.Nov 18 03:18
schestowitzI've just had a go at it, bit it has no output argument and I cannot find any output file. standard output is empty.Nov 18 03:18
schestowitz> It's probably not optimal to use the µSD card on the RPi for storage,Nov 18 03:20
schestowitz> due to size, speed, and wear constraints.   Though the system would beNov 18 03:20
schestowitz> otherwise useful for storage if something is added to a USB port or two.Nov 18 03:20
schestowitz>Nov 18 03:20
schestowitz> $ uname -srnNov 18 03:20
schestowitz> Linux raspberrypi 5.4.51-v7l+Nov 18 03:20
schestowitz>Nov 18 03:20
schestowitz> $ df -h /Nov 18 03:20
schestowitz> Filesystem      Size  Used Avail Use% Mounted onNov 18 03:20
schestowitz> /dev/root        12G  9.1G  2.3G  81% /Nov 18 03:20
schestowitz>Nov 18 03:20
schestowitz> However, without modification, it is still quite good for processing andNov 18 03:20
schestowitz> networking.Nov 18 03:20
schestowitzI asked about this in IRC. One thing we can do is delete local storage of older files and other things I can do include attaching older external drives (4tb each).Nov 18 03:20
schestowitzI still have not properly assembled the raspi.Nov 18 03:20
schestowitzhttps://twitter.com/jrobertson/status/1328430980777054211Nov 18 04:46
-TechBytesBot/#techbytes-@jrobertson: @schestowitz I meant 'main' not 'master'.Nov 18 04:46
*GNUmoon has quit (Ping timeout: 240 seconds)Nov 18 06:34
*Condor (~freenode@e1.nixmagic.com) has joined #techbytesNov 18 08:59
schestowitzhttp://techrights.org/irc-archives/irc-log-techrights-161120.html#tNov%2016%2012:33:48Nov 18 09:27
-TechBytesBot/#techbytes-techrights.org | IRC: #techrights @ FreeNode: Monday, November 16, 2020Nov 18 09:27
schestowitz# make sure that the Amperes will be within spec for the wall's wiringNov 18 09:27
*GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon) has joined #techbytesNov 18 09:31
schestowitz=Nov 18 09:33
schestowitzx https://redmondmag.com/articles/2020/11/17/azure-hybrid-benefit-program-for-linux.aspxNov 18 09:33
-TechBytesBot/#techbytes-redmondmag.com | Microsoft Goes Live with Azure Hybrid Benefit Program for Linux -- Redmondmag.comNov 18 09:33
*Akee has quit (Quit: Bye, loosers !)Nov 18 11:36
*Akee (~Akee@217.ip-137-74-196.eu) has joined #techbytesNov 18 11:37
*Akee has quit (Quit: Bye, loosers !)Nov 18 11:55
*Akee (~Akee@217.ip-137-74-196.eu) has joined #techbytesNov 18 11:56
*oiaohm has quit (Ping timeout: 246 seconds)Nov 18 16:50
*oiaohm (~oiaohm@unaffiliated/oiaohm) has joined #techbytesNov 18 16:57
*oiaohm_ (~oiaohm@unaffiliated/oiaohm) has joined #techbytesNov 18 17:08
*oiaohm has quit (Ping timeout: 246 seconds)Nov 18 17:11
*GNUmoon has quit (Ping timeout: 240 seconds)Nov 18 21:06
*schestowitz has quit (Read error: Connection reset by peer)Nov 18 21:33
*schestowitz (~schestowi@unaffiliated/schestowitz) has joined #techbytesNov 18 21:33
schestowitz>>> Try the attached on the XHTML version of the IRC logs.  It does notNov 18 21:52
schestowitz>>> colorize or truncat+indent but either would be easy to add.Nov 18 21:53
schestowitz>> I've just had a go at it, bit it has no output argument and I cannotNov 18 21:53
schestowitz>> find any output file. standard output is empty.Nov 18 21:53
schestowitz>>Nov 18 21:53
schestowitz>>Nov 18 21:53
schestowitz> Maybe I can make it smart enough to determine if a pipe is being usedNov 18 21:53
schestowitz> and automatically process stdin too.  However, for now it expects a fileNov 18 21:53
schestowitz> name for input, specifically one of the XHTML files produced from theNov 18 21:53
schestowitz> logs.  e.g. ~/public_html/irc-archives/irc-log-techrights-310819.html orNov 18 21:53
schestowitz> similar.Nov 18 21:53
schestowitz>Nov 18 21:53
schestowitz> I put a modified version of the script on TR in ~/bin/  Try passing itNov 18 21:53
schestowitz> the name of a file or files containing the XHTML rendering of the logs.Nov 18 21:53
schestowitz>Nov 18 21:53
schestowitz> However the raw logs should be used instead of scraping.  Where are theNov 18 21:53
schestowitz> raw IRC logs kept?Nov 18 21:53
schestowitzThose are periodically being deleted from my machines, but they're just slice from the very large log files that I keep for xchat.Nov 18 21:53
schestowitz> [snip]Nov 18 21:53
schestowitz>Nov 18 21:53
schestowitz> It now handles piped input too.Nov 18 21:53
schestowitz>Nov 18 21:53
schestowitz> If you wonder about the \xA0 characters, those are the non-breakingNov 18 21:53
schestowitz> spaces which were previously escaped as   in the XHTML.Nov 18 21:53
schestowitzI'll give that a go.Nov 18 21:53
*GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon) has joined #techbytesNov 18 22:26

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!