[00:00] its not an oxymoron, I assure you. [00:00] * greg-g walks away from this conversation [00:00] anyway, the piece it sounds like you are missing is that you can define multiplication in terms of addition. once you do that, it should be obvious how to use loops and addition [00:00] lol greg-g [00:01] disclaimer: i've been the shitty instructor at community college :) [00:03] lol its all good. I honestly understand logically how to do it. Just cant write the code and dont see why a loop would be necessary. I think it just adds to the difficulty rating [00:03] How would you do multiplication using only addition without a loop? [00:04] take num1 and num2 from the input....and add num1 together num2 amount of times [00:04] sounds like loop territory to me. [00:05] <-------CLUELESS.....dont understand for and while loops, do and done, makes no sense to me [00:05] Think about the second part you said [00:05] sorry if this seems to be going round and round im just being honest, i have no idea [00:05] You are correct, but how would you do it? [00:05] "num2 amount of times" [00:06] logically i would just add them together somehow without a loop....how would a loop add them together? [00:06] honestly, im really trying to rack my brain for ways [00:06] You tell the loop how many times to run [00:06] a loop will do whatever you tell it to a certain amount of times [00:06] how do you know how many times though without knowing the input of num2 [00:07] You do know the input of num2 [00:07] it is num2! [00:07] so the trick is that you do know what the input of num2 is, you'll ask the user, then do the loop. [00:07] thats what i meant, i wouldnt know it, the user would [00:08] you'll ask the user for input, and store it in a 'variable' [00:09] then you can use your variable in your program, so you'll know what value the user typed [00:10] a for loop can use a variable -- it doesn't have to be hard-coded to specific number. [00:11] i know i have to echo the statements, than read the input, than start the loop. but as far as declaring variables.... [00:11] do you have an example program that's reading the user input? [00:11] or something you've written so far [00:13] no i dont....i dont really know how to write the loop with arguments and conditions, becasue they werent explained that well....i know its like "for do this and this" done? [00:13] take a look at this for loop in bash: http://en.wikipedia.org/wiki/For_loop#Bash [00:13] the second form, specifically [00:14] you can replace the '5' with a variable [00:14] ya know, you have a really good point - if you have never programmed before, getting a bash for loop to run X times is not easy. [00:14] i dont' know how to do it without seq [00:14] did you learn seq ? [00:15] also, do you have a textbook? [00:16] didnt learn seq....there is a textbook, but the examples and explanations are very vague [00:16] i'd pay attention to the examples. if they're code they can't be too vague :) [00:17] type in every example, change every value in every example so you now how each bit works. [00:17] true but as far as arithmetic examples like the one problem i have to do there isnt anything in the book to even help a little bit [00:18] can you use what we've linked so far to print out the numbers 1 to 10? [00:18] i think getting some code running might help [00:18] oh god, i guess I could increment myself without using seq. YUK. [00:19] yeah, math in bash in general is pretty ugly [00:19] I don't mind that. [00:19] its just, seq seems to be the idomatic unix way to do it, and yet, if you don't know about it - yeah, you have to do all the extra bits [00:20] yeah, i'd lean toward a c-style for loop in bash, not idiomatic [00:20] right. [00:20] ill have to try something tomorrow guys.....i appreciate the help. Ill check in tomorrow [00:21] good luck [00:21] thx [00:22] :/ [00:22] ok, he is gone, everyone paste their solutions :p [00:23] haha [00:25] what, no one went and wrote it to see if there was some tricK? [00:27] oh no, i totally did :) http://vpaste.net/coNXL [00:28] whoa, i didn't know bash had a for (()) form [00:28] i definitely had that "wait, how the hell does math work in bash" moment [00:28] had to look it up [00:28] i did mine as a oneliner http://vpaste.net/bc3GL [00:28] but i used seq. [00:29] yeah, that's probably better [00:30] nah. [00:30] i like yours [00:30] not pure bash, but seq is much more common to see [00:55] reading C code: i see gotos [01:04] Evenming [01:04] evening, even [01:04] read scrollback. seq is definitely the way to get around pain in bash [13:23] Seesmic turned off Twitter Proxy accounts, so no more identi.ca on my phone [13:24] snap-l: I read yesterday that twitter was also shutting down Tweetdeck over the course of the next few weeks. [13:24] Nice. What a bag of assholes. [13:26] Also mustard isn't working either, so yippe. [13:26] Yea, I think twitter has begun the process of depreciating their API's [13:27] I never really used twitter. I have an account, and gave it about a year when it first came out but never really got anything out of it so like facebook, I basically trashed it. [13:28] I told myself I'd keep twitter around as long as I could access it via third party applications [13:30] Hootsuite still works [13:32] snap-l: Isn't identi.ca going away? [13:34] Hm, maybe there are issues with hootsuite [13:39] morning [13:39] mathomastech: it's keeping it in web form, just not in app form (phone, etc) [13:40] yea, api end of days is upon us. Bye bye ver1.0 api [13:51] brousch: I tried to use hootsuite with identi.ca. It doesn't work. [13:51] It is a poor experience [13:51] Or at least I have a better chance of launching a Saturn 5 by poking buttons than I do of figuring out how hootsuite is supposed to work [13:54] :qa [13:54] hah [16:29] wow there is fascinating conversation in #kubuntu-devel on what Mir means to kubuntu [16:29] and what's going to happen w/ things [16:30] ut oh [16:30] qt ftw? [17:07] i think some parts of KDE is direct to xlib [17:10] yeah not quite [17:10] yeah not quite sure [17:10] the problem is that when kubuntu was created it tried to stay as core to default KDE as possible [17:10] so with MIR that must change [18:30] http://paste.mitechie.com/show/893/ [19:41] How's the afternoon so far? [19:42] listening to http://metalinjection.fm [19:42] Wish I was working from home so I could keep UDS on in the background [19:47] hate hotels and their climate control, uncomfy chairs, etc [19:51] rick_h_: You on vacation? [19:51] brousch: oh yea..sprinting vacation [19:52] less sun, more code [19:58] rick_h_: Either fishstick or oven? [19:58] rick_h_: Either fishstick or popsicle [20:01] Approved vs Unapproved locos appear to be going by the wayside [20:01] This makes me happy. [20:01] that sounds awesome [20:01] it's like, who cares, just drink beer and ubuntu [20:01] Exactly [20:02] woot! [20:03] Frankly, if it gets people concentrating more on going good work and not policing the work of others, I'm all for it. [20:03] indeed [20:11] snap-l: so, no more conf packs? [20:14] greg-g: I think it'll be evaluated on a case-by-case basis [20:14] but there's not that many resources to go around anymore, so the distinction between the two is becoming more of a status symbol [20:14] and less about who gets a bigger piece of the pie. [20:16] If losing out on DVD shipments means we don't have to waste cycles on grading each loco against each other, I'll live [20:18] I think it'll also be easier to find people to be a part of the loco council if it doesn't mean having to grind through locos [21:01] snap-l: yeah, one part of why I dropped off that [21:01] (the council) [21:04] http://ergodox.org/Default.aspx want [21:05] derekv: innteresting, looks like the same key layout as the Kinesis, except it also has six extra keys for your index fingers there in the middle [21:06] yes, which i was thinking about wanting already [21:06] and [21:06] i really want split [21:06] the kenisis has the same center keys [21:07] ah, well the countoured does... [21:07] the thumb keys are the same [21:07] I mean the ones to the left of h and the right of g [21:07] i wanted a split + countoured kinesis [21:07] greg-g: ah, yea [21:07] but, this is better, except its not pitted [21:07] derekv: the advantage? I have that one [21:08] advantage pro, typing on one now [21:08] yeah, the pit makes a difference, in my opinion [21:08] hmm, does this exist? [21:08] right, me too! :) [21:08] rick_h_: not that i can find, this is the closest, just stumbled on it [21:08] its a kit however [21:08] haha http://ergodox.org/About.aspx [21:09] but on the bright side you can pick your switches [21:09] oh hell, this is a build your own adventure kind of thing [21:09] interesting [21:09] greg-g: nothing there [21:09] lol https://www.massdrop.com/buy/ergodox [21:09] have I told you I'd pay someone to put a trackpall or touch pad in the center of my advantage pro? Well, I would. Who wants to? [21:10] derekv: hence my haha :) [21:10] rick_h_: nice! [21:11] greg-g: its been done [21:11] i like the mouse mouse [21:12] mouse [21:12] mouse mouse [21:12] derekv: yeah, but all one offs, and I don't have the time, I'm willing to pay! [21:13] you just want a usb trackpad, some glue or velcro, and shorten the cord [21:13] do you have the usb advatage? [21:13] God I hate split keyboards. :) [21:14] But cool if someone wants that. :) [21:14] derekv: I've got that one [21:14] derekv: interested in buying let me know, will bring to CHC next week :) [21:15] derekv: yeah, usb advantage [21:15] thats what I have [21:15] though i could always use a third one [21:15] ;p [21:15] derekv: I liked the idea of it being flush with the keyboard shell [21:15] derekv: I have only one personal one, but I've forced two orgs to buy one for my work desk :) [21:15] (CC and WMF) [21:16] * snap-l doesn't understand those keyboards one whit. :) [21:17] It's like those damn Microsoft Natural keyboards [21:17] BUT BETTER! [21:17] snap-l: just wait, we only recently got you on mechanical :P [21:17] and just about the only thing that has helped my wrist pain [21:18] rick_h_++ [21:18] reserving judgement, but silently judging you [21:18] lol [21:18] used to that [21:18] never really like the microsoft naturals [21:19] if they had decent switches I'd still probably use one [21:19] me neither [21:19] now, a MS natural mechanical with 10less would be awesome! [21:19] * snap-l ius going to figure out how to mount a keyboard like that on a beach ball [21:20] and call it the ball-keyboard [21:20] And come up with some bullshit ergo reason why everyone needs my balls [21:21] one problem with the kinesis countour is that it isn't split enough [21:21] derekv: good point, yeah, I could use about another 2-3 inches [21:22] one keyboard per child! [21:22] i'd use like 3 ft [21:22] one (custom) keyboard per child! [21:22] wha? [21:23] Who needs desks when you can use the dead-space between your kinesis pods [21:24] yes the other problem with the kinesis is the size [21:24] actually, are there "thin" keyboards with mechanical switches [21:24] What are the name of those handlebars on motorbikes that are extended above the rider's head? [21:24] choppah [21:24] apehangers [21:25] yea, apehangers [21:25] greg-g: http://www.youtube.com/watch?v=kfg_e6YG37U [21:25] That's what I think of when I think of kinesis keyboards [21:25] snap-l: do you also hum "born to be wild"? [21:25] snap-l: did someone tell you your suppoled to put it above your head [21:25] because, they were having a joke [21:25] greg-g: no, UI just think they're ridiculous [21:25] derekv: thanks! [21:26] http://i101.photobucket.com/albums/m58/predfan2001/40_Now_Those_Are_Ape_Hangers.jpg [21:26] derekv: I don't know if you saw, we had the author of The Chair, Galen something, come talk to WMF about sitting/chairs/etc [21:27] no.. [21:27] didn't know [21:27] trackpad is the ergonomic worst case scenario [21:27] trackpad on laptop that is [21:28] wouldn't matter if your not using it for hours though [21:29] I'm surprised nobody has tried to put the Blackberry roll-on ball in the center of a laptop keyboard [21:29] they do that on keyboards for server rooms [21:29] my bad habit is not alwasy using shift or ctrl on opposite hand as key [21:29] derekv: that guy seems too "UGHUH I'M A STRONG MAN" too me :) [21:29] derekv: yea, same here. only left ctrl/shift exist in my world [21:29] Not thumb-level, I mean in nipple-space [21:29] derekv: yeah, ditto on that (shift/ctrl/alt) [21:29] greg-g: kelly starrett? [21:30] derekv: yeah [21:30] greg-g: couple things, one in that video he seemed really nervous and not himself [21:30] I barely use my right hand for shift / ctrl [21:30] derekv: I admit, I only skipped around for 20 seconds :) [21:31] the other, he's a fitess and mobility expert, physical therapist, and he is (not kidding) smarter than all of us combined [21:31] but he talks like a surferbro [21:31] well maybe not combined. =p [21:31] https://www.youtube.com/watch?v=PLeREzs-nqI > [21:31] ? [21:32] derekv: :) [21:32] I dunno... my parents think I'm pretty smart. ;) [21:33] actually I don't know what he talks like he says really wacky shit [21:33] he's probably nervous at the google thing trying not to say something outlandish [21:33] woot https://www.youtube.com/watch?feature=player_embedded&v=Ke1Y3P9D0Bc looks better than 2 [21:34] * rick_h_ admits to being fanboi [21:37] i upgraded to flake8 2, when they announced a few days ago - and today is my first day back in python - VERY STRICT NOW - much nicer. [21:38] ugh ok gotta focus ttyls [21:38] jrwren_: yea [21:42] rick_h_: NOT URGENT: getting 502 errors on bookie when trying to save, losing tag data but links are bmark'd [21:43] greg-g: looking [21:44] greg-g: what tags were you trying to use? [21:45] ergo, keyboard, diy, kit [21:45] I really like #128 - continuation line under-indented for visual indent. [21:45] i never knew the right style for that :) [21:45] jrwren_: yea, lots of those to fix but definitely nier [21:45] nicer [21:46] jrwren_: so that's the updated pep8 doing that [21:47] right [21:58] Yeah, I've come to not ragequit over that one. :) [21:58] First time I saw that, I couldn't figure out what the right one owas [23:21] evening [23:44] Evening [23:44] Party party