#garfield Logs
Sep 20 2013
#garfield Calendar
00:11 tsmeow-afk thinks of a grocery store
00:17 jennie Hello fellas !
00:17 katsmeow-afk <blink>
00:18 jennie hey, can i discuss C here ?
00:18 tsmeow-afk ponts to r
00:18 katsmeow-afk i think there is a real C channel too
00:19 jennie been there done that :D
00:20 katsmeow-afk rue, you might consider some form of brush shifting too, because 0 to 30,000 rpm is quite a range
00:20 jennie where is rue_?
00:21 katsmeow-afk he was here a few minutes ago, but might be afk cleaning dinner
00:21 katsmeow-afk i am going afk to grocery store
00:21 katsmeow-afk rue likes C, i don't do C
00:22 jennie i will wait
00:22 katsmeow-afk try #robotics , some people might be awake and at home, and coding robot controllers in C
00:22 tsmeow-afk will bbl,
00:23 jennie bye
00:35 rue_house ?
00:35 rue_house katsmeow-afk, I dont think she picked up on the regex
00:36 jennie hey rue_house
00:36 jennie here ?
00:38 rue_house yes, but I leave every minute
00:38 rue_house so I suggest saying/asking what you like so that when i"m back I can read it and reply
00:38 rue_house :)
00:38 jennie what I read and know so far ,1. that short circuit of Logical OR will not evaluate rest of statement because the left one is true, 2. Parenthesis () have high precedence, then && have and then || precedence. Problem - http://codepad.org/zgoeUXcg , I didnt understand here why && is not evaluated first as per precedence table rule.
00:40 rue_house assume the only prescedences are set by parenthisis, anything else is just random
00:40 rue_house always
00:42 jennie sorry got dcf
00:43 jennie jennie but if we put parenthesis around ++i || ( ++j && ++k) then output is different and if we do ( ++i || ++j ) && ++k then output is different,
00:45 rue_bed <rue_house> assume the only prescedences are set by parenthisis, anything else is just random
00:45 rue_bed <rue_house> always
00:45 rue_bed yes
00:46 jennie ok , if parenthesis set precedences then why not && evaluates first because && comes before || in table.
00:46 rue_bed the compiler may decide, in A || B to not evaluate B if A is true, becuase it dosn't need to
00:46 rue_bed forget the table
00:46 jennie ok
00:46 rue_bed it goes out the window by the time its machine code
00:46 rue_bed especially with optimizations
00:47 jennie ok I forgot the table.
00:47 rue_bed I'v had times when addition was done before mult, so always use parens
00:48 rue_bed if its a school thing, then just regurgitate whatever they fed you
00:48 rue_bed even if its wrong and you know it
00:48 jennie yes , now lets put parenthesis ++i || ( ++J && ++k ) now its output is 2 1 1 so it clearly means that OR is evaluated first but if parenthesis sets precedence then why not && evaluates first. ?
00:49 rue_bed it evaluates the ++i, its more than one, so it dosn't bother with the rest
00:49 jennie why it will evaluate ++i if there are parenthesis.
00:50 rue_bed its the first thing in the equation
00:50 rue_bed do (++j && ++k) || ++i
00:50 rue_bed you will get 2 2 1
00:50 rue_bed right?
00:51 rue_bed but dont depend on it, its an artifact of the compiler optimization
00:51 rue_bed if you need I evaluated second, put it on a second line
00:52 rue_bed er, 1 2 2
00:52 rue_bed :)
00:53 rue_bed now how about if I told you some compilers dont update a variable if you pre-increment it?
00:53 rue_bed if (++i) and i dosn't change after the statement
00:53 jennie thats bad compiler
00:54 rue_bed in which case you should always use if (i+=1)
00:55 rue_bed every version of every compiler has different quirks, I'v come to code rather explicitly
00:57 jennie is it like that there are exceptions for || and && to be evaluated whichever is written at left side of expression ?
00:57 rue_bed TELunus|2, hows the project?
00:57 rue_bed jennie, artifacts of the compilers optimization
00:57 TELunus|2 Good, though we haven't done too much on it yet.
00:58 rue_bed jennie, if you need to explicity control the order of evaluation, split it into lines
00:58 TELunus|2 Also, a lot of what we have to do seems to be more for marking than actually designing the thing.
01:03 jennie thanks a lot
01:24 rue_bed whats the machine again?
02:02 katsmeow-afk [22:37] <katsmeow-afk> 62 hours of sun on a 1kw array = one gallon of gasoline <<== at 13 cents/kwh, that gallon is $8.06 ,, but with solar cells, the cost is spread out over the lifetime of the cells, so it reduces to $0.36 per gallon
02:12 tsmeow-afk tosses Tom and rue an url to chew on : http://www.alldatasheet.com/datasheet-pdf/pdf/8599/NSC/LM1084IT-ADJ.html
02:25 katsmeow-afk http://www.ebay.com/itm/10P-LM1084-LM1084IT-ADJ-Adjustable-5A-Voltage-Regulator-/360380082433
11:21 any03322524 Artificial intelligence 2,772 books, subject
11:21 any03322524 Artificial Intelligence 2,756 books, subject
11:21 any03322524 artificial intelligence 2,726 books, subject
11:22 any03322524 that's a lil scarey, since the list was put together by humans
12:44 dumbass it's so stupid i cannot talk about "intelligence", and errors concerning it, when no one knows what i am talking about
12:45 dumbass it's like the DA's office telling me i am disabled, so wtf do i need property for, why would i want a garden, why would i want a driver license? and yeas, they actually asked
12:46 dumbass also: why do you want grass growing in your yard? why don't you want dogs biting you? "if you don't like it, i can have you put in a nursing home"
12:47 dumbass i cannot speak/type without someone coming down on me and asking wtf i am talking about, as if humans have no way to determining topic by themselves
14:56 dumbass i wonder what the NSA is doing to the internet now, it's gotten really slow at times the last few days
16:36 dumbass kewl, 30Mhz / 2 = 15Mhz ; 15Mhz * 7 = 105Mhz ; 30Mhz * 3 = 90Mhz , ergo, i can use conventional FM broadcast radios as recievers in full duplex telemetry, AND 30Mhz * 2 = 60Mhz, which is the tv ch 3 band, where i can use conventional (analog ntsc) tv recievers for a video feed
16:37 dumbass if only i had a clue how to use the 300 tv tuners i have
16:39 mbass ponders basic pwm at 105Mhz using 74F c
16:42 dumbass becha i can pwm a 74F14 by tweaking the Vcc on the chip
16:43 dumbass prolly tweak it by driving with any 74F chip, a varicap to gnd, then the 74F14 to straighten up the edges of the waveform again
16:43 mbass ponders just jerking the ttl signal up and down 1/2 volt as
18:04 dumbass ...
18:53 rue_house hey
18:53 rue_house your nametag fell off kat
19:12 dumbass i got snided in #RoboTics earlier today , by Gush and thebear
19:29 Tom_itx i don't see that
19:30 dumbass i posted 4 lines about an "artificial intelligence" search i did in an online library
19:31 dumbass Gush said i was in the wrong room and on anotehr planet
19:31 dumbass or high
19:31 dumbass bear played along
19:37 Tom_itx maybe you confused them
19:37 Tom_itx the first time i read thru it didn't make sense to me either
19:38 Tom_itx so the search engine handled the caps a bit differently
19:39 mbass
19:39 Tom_itx hardly makes you a dumbass
19:40 dumbass they treated me like i am
19:41 Tom_itx gushh had his mind on making tags and you pop in with 3 lines with little explanation
19:41 Tom_itx i might be confused if i saw that as well
19:41 dumbass same as at the store today: ignoring what i asked for, then when i insisted i can do what they think i asked them for, some lady believed i could not see or hear her and made obvious sneering at me
19:41 Tom_itx can't help you with your local store incident
19:42 dumbass after all, women are idiots, and handicaps can't hear and are half blind
19:42 Tom_itx oh
19:42 dumbass the store has a very accurate plywood cutter, i asked for a sheet be ripped to 3ft, fits the car and makes a good sized desktop too
19:43 dumbass it wasn't a "special handicap request", the dumbassholes
19:44 dumbass godamnit, i built this house, i do NOT need help handing a 4x8 sheet of plywood
22:08 Lola8088 Did you wake up?
23:14 dumbass ...
23:40 rue_house wow, and nod off I did
23:41 Lolina8088 wholly... did you just wake up?
23:43 rue_house yea
23:44 dumbass o
23:59 dumbass-afk http://blog.archive.org/2013/06/15/cost-to-store-all-us-phonecalls-made-in-a-year-in-cloud-storage-so-it-could-be-datamined/