#garfield Logs
Oct 29 2023
#garfield Calendar
01:39 AM rue_mohr: hi
01:51 AM rue_mohr: I failed today
01:51 AM rue_mohr: wasted the whole day at a type of problem I'v never been good at
10:59 AM rue_mohr: o I'm away this upcomming week
10:59 AM Tom_L: fun or work?
10:59 AM rue_mohr: work
10:59 AM Tom_L: fun
10:59 AM rue_mohr: going to "Bella Coola"
11:00 AM Tom_L: NW of you
11:01 AM rue_mohr: yup
11:01 AM Tom_L: mountains
11:01 AM rue_mohr: up towards alaska
11:01 AM Tom_L: look pretty
11:01 AM rue_mohr: trees and rocks and water
11:01 AM Tom_L: drive or fly?
11:01 AM rue_mohr: two flights
11:02 AM rue_mohr: going via vancouver
11:02 AM Tom_L: working at the hospital up there?
11:04 AM rue_mohr: yea, two of us are going up for a bite out of their maintenance quueue
11:24 AM aandrew: hahahaha
11:24 AM aandrew: "I'm going away this week" "fun or work?" "work" "fun."
11:25 AM rue_mohr: :]
11:25 AM rue_mohr: I have to pack today
11:25 AM aandrew: that does sound pretty cool though
11:25 AM rue_mohr: a backpack cost $300
11:25 AM rue_mohr: only place I could find one
11:25 AM rue_mohr: I dont even think its that good
11:25 AM aandrew: why on earth is a backpack $300?
11:25 AM rue_mohr: I'd love to know
11:25 AM aandrew: especially if you're oging to vancouver there should be hundreds of places to get it
11:26 AM rue_mohr: haha no I have to have it packed before I leave
11:26 AM aandrew: I got a pretty nice "duffel" backpack off amazon for my son's FTXes, was pretty cheap and it's heavy canvas
11:26 AM aandrew: ohhh
11:26 AM aandrew: yeah you might be screwed then
11:26 AM rue_mohr: yea
11:26 AM rue_mohr: bought it on visa...
11:26 AM aandrew: https://www.amazon.ca/gp/product/B07RGQ15PK is what I bought him
11:27 AM aandrew: it's nothing special, but it is *big* and rolls/folds up nice and tight
11:27 AM aandrew: of course it's $50 now, I think it was like $30 when I got it last year
11:28 AM aandrew: apparently it gets cold here in southern california. "Santa Ana" wind system, was 12C overnight, only like 16C now
11:28 AM aandrew: they say this system comes through and is pretty heavy wind and like ZERO humidity, all of metro LA is under severe fire warning
11:29 AM aandrew: I'm far enough away from both LA and San Diego that I'm not in any danger but the humidity is supposed to drop to like single-digits
11:29 AM Tom_L: 32°F with off & on sleet/rain
11:29 AM aandrew: today is what my wife would call a "lying sun" -- it's sunny and LOOKS warm but it is not
11:30 AM rue_mohr: in a for loop, does for(;a,b;) a or b determine the continuation?
11:31 AM aandrew: I've never tried that, but I thought the middle term had to evaluate true, not sure how a comma affects that, if it's the last one (b) or (a && b)
11:31 AM aandrew: let me check real quick
11:31 AM rue_mohr: its the first or the last, just compiling a test
11:32 AM Tom_L: a
11:32 AM rue_mohr: you beat us already?
11:32 AM Tom_L: no i took a wag
11:32 AM Tom_L: :)
11:33 AM rue_mohr: its the last one
11:33 AM rue_mohr: LASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLAS
11:33 AM rue_mohr: TLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTLASTL
11:33 AM rue_mohr: #include <stdio.h>
11:33 AM rue_mohr: int main(void) {
11:33 AM rue_mohr: int i;
11:33 AM rue_mohr:
11:33 AM rue_mohr: for( i = 10; 1, 0; i--) {
11:33 AM rue_mohr:
11:33 AM rue_mohr: printf("FIRST");
11:33 AM rue_mohr: }
11:33 AM rue_mohr:
11:33 AM rue_mohr: for( i = 10; 0, 1; i--) {
11:33 AM rue_mohr: printf("LAST");
11:33 AM rue_mohr: }
11:33 AM rue_mohr:
11:33 AM rue_mohr: return 0;
11:33 AM rue_mohr: }
11:34 AM aandrew: y.c:6:8: warning: left operand of comma operator has no effect [-Wunused-value] for (;a,b;) {
11:34 AM rue_mohr: it might not have effect, BUT YOU CAN USE IT TO DO OPERATIONS
11:34 AM Tom_L: so it's poor C grammar to do it that way
11:34 AM aandrew: $ ./y
11:34 AM aandrew: a=0, b=0: before loop
11:34 AM aandrew: a=0, b=0: loop done
11:34 AM aandrew: a=1, b=0: before loop
11:34 AM aandrew: a=1, b=0: loop done
11:34 AM aandrew: a=0, b=1: before loop
11:34 AM rue_mohr: it happens at a different time
11:34 AM aandrew: a=0, b=1: loop
11:34 AM aandrew: a=0, b=1: loop done
11:34 AM aandrew: a=1, b=1: before loop
11:34 AM aandrew: a=1, b=1: loop
11:34 AM aandrew: a=1, b=1: loop done
11:35 AM aandrew: yes you can use it to do operations, I do it on very rare occasions because I don't like to be "slick" when I write software
11:35 AM aandrew: but it looks like only the rightmost side of the comma has any effect on loop evaluation
11:35 AM aandrew: $ cat y.c
11:35 AM aandrew: #include <stdio.h>
11:35 AM aandrew: void test_loop(int a, int b)
11:35 AM aandrew: {
11:35 AM aandrew: printf("a=%d, b=%d: before loop\n", a, b);
11:35 AM aandrew: for (;a,b;) {
11:35 AM aandrew: printf("a=%d, b=%d: loop\n", a, b);
11:35 AM aandrew: break;
11:35 AM aandrew: }
11:35 AM aandrew: printf("a=%d, b=%d: loop done\n", a, b);
11:36 AM aandrew: }
11:36 AM aandrew: int main(void)
11:36 AM aandrew: {
11:36 AM aandrew: test_loop(0,0);
11:36 AM aandrew: test_loop(1,0);
11:36 AM aandrew: test_loop(0,1);
11:36 AM aandrew: test_loop(1,1);
11:36 AM aandrew: return 0;
11:36 AM aandrew: }
11:36 AM rue_mohr: ah clever
11:37 AM aandrew: so I have these security cameras around the outside of my house back in canada
11:37 AM aandrew: ever since I've left, it seems ALL I ever see on those cameras is squirrels
11:37 AM aandrew: when I lived there things were livelier :-)
11:37 AM aandrew: oh
11:37 AM Tom_L: squirrel thieves
11:38 AM aandrew: apropos of nothing: something was bugging me about CA licence plates
11:38 AM aandrew: then it finally clicked
11:38 AM aandrew: they look a LOT like 74 series logic part numbers
11:38 AM aandrew: the common format is #CCC###
11:38 AM aandrew: like 74HCT245
11:38 AM rue_mohr: heh
11:39 AM aandrew: I think I'm going to get a custom plate that is 74HCT something... just gotta thing of my favourite 74-series logic gate
11:39 AM rue_mohr: hmm
11:39 AM rue_mohr: what would I go for....
11:39 AM Tom_L: or make up a new one so they have to ask
11:40 AM aandrew: my original Ontario license plate was BVVW 062 -- I liked it becuase I drive a VW and it's got VW in it. it was also one of the "batch" of Ontario plates that had poor paint adhesion so they were falling apart. I paid for a custom plate that is the same number becuase I didn't want a new licence plate number
11:40 AM aandrew: 138 is one of my faves, the 3-8 decoder
11:40 AM aandrew: 244/245 are kind of boring
11:41 AM Tom_L: they used to have raised letters here, now they just use paint
11:41 AM aandrew: yeah, we have raised letters, then Doug Fraud became premier and changed it to just flat plates and caused ALL the plate recognition stuff to fail becuase a combo of font and colour made them almost impossible to read in anything but ideal lighting
11:42 AM aandrew: so he reverted back to the older style
11:43 AM Tom_L: we probably have a dozen or more styles for the same area
11:43 AM Tom_L: https://files.leavenworthcounty.gov/Department/Treasurer/Forms/Kansas%20License%20Plate%20Guide%2012022021.pdf
11:44 AM Tom_L: alot more than that..
11:44 AM aandrew: wow
11:45 AM aandrew: here there are two dominant types, what I'm assuming is the normal "assigned" numbers and then a black with yellow lettering which I'm assuming is custom because every single one I've seen was "special" somehow
11:45 AM aandrew: so my plan to have a custom standard plate might be failed
11:45 AM Tom_L: the majority of the ones here are only a couple types
11:46 AM aandrew: ontario has a few special types including green vehicle, historic, etc.
11:46 AM aandrew: I also see "CA EXEMPT" ones here which I guess are fire trucks, police, special vehicles etc
11:47 AM aandrew: ontario's also got special red letter ones for military/government
11:47 AM Tom_L: i have seen one that i don't see on that list too
11:48 AM Tom_L: must be really new
11:51 AM Tom_L: https://pillfreesm.life/product_details/84725919.html
11:52 AM Tom_L: must be a special one or something
11:59 AM rue_mohr: I'm trying to think of the most bendable ttl chip
12:00 PM aandrew: rue_mohr: heh I don't often succeed at nerd sniping but I got one today!
12:00 PM aandrew: I'm almost always the snipe-ee
12:02 PM rue_mohr: :)
12:03 PM rue_mohr: the 4060 has been pretty cool...
12:03 PM rue_mohr: but, technically cmos
12:03 PM rue_mohr: oh
12:06 PM rue_mohr: 74S188
12:07 PM rue_mohr: ... or 186....
12:12 PM VanUnamed: dont be upset rue_mohr
12:12 PM VanUnamed: i kept getting burned with the welder.
12:45 PM rue_mohr: mhm
12:45 PM rue_mohr: was it a spot or stick welder?
01:17 PM rue_mohr: for( i = 0, printf("One\n"); printf("Two\n"), i < 3;printf("Three\n"), i++) ;
01:18 PM rue_mohr: zippo:/files/programming/c/tests# ./a.out
01:18 PM rue_mohr: One
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: Three
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: Three
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: Three
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: oh better yet...
01:18 PM rue_mohr: for( i = 0, printf("One\n"); printf("Two\n"), i < 3;printf("Three\n"), i++) printf("CodeBlock\n");
01:18 PM rue_mohr: One
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: CodeBlock
01:18 PM rue_mohr: Three
01:18 PM rue_mohr: Two
01:18 PM rue_mohr: CodeBlock
01:18 PM rue_mohr: Three
01:18 PM rue_mohr: Two
01:19 PM rue_mohr: CodeBlock
01:19 PM rue_mohr: Three
01:19 PM rue_mohr: Two