[04:28] <barrydk> Morning everyone
[06:06] <Kilos> morning all
[07:16] <Squirm> Morning
[07:17] <Kilos> hi Squirm  
[07:36] <Kilos> hi TinuvaMac  
[07:37] <TinuvaMac> morning Kilos
[08:39] <SDCDev> hey Kilos
[08:39] <SDCDev> I just got back into bed, trying to keep warm :|
[08:39] <Kilos> hi there SDCDev  
[08:40] <Kilos> lol where are you thats so cold
[08:40] <Kilos> i just been outside soaking some UV's for warmth too
[09:51] <SDCDev> Im in jbay Kilos
[09:51] <Kilos> thats not cold man come try ptown
[09:52] <inetpro> good mornings
[09:52] <Kilos> more
[11:55] <kulelu88> ping superfly 
[12:19] <Kilos> did he not say 8.30 tonight kulelu88  
[12:19] <Kilos> thats after kids are in bed
[12:24] <kulelu88> oh yes, I forgot the time
[14:03] <Squirm> ergh
[14:03] <Squirm> being load shed
[14:04] <Kilos> eish
[15:37] <Cantide> hi everyone :p
[15:38] <Kilos> hi Cantide  hows things?
[15:38] <Cantide> awesome~~
[15:38] <Cantide> i just cycled around Seoul
[15:38] <Cantide> well, not around Seoul, around my part of Seoul
[15:38] <Kilos> lol
[15:38] <Cantide> it's 00:38 and i just got home :D
[15:38] <Cantide> feeling energized :)
[15:38] <Kilos> wow go sleep man
[15:38] <Cantide> how are you
[15:38] <Cantide> ?
[15:38] <Cantide> nah
[15:39] <Kilos> good ty
[15:39] <Cantide> i'll sleep around 1 :p
[15:39] <Kilos> what time you get up?
[15:39] <Cantide> around 08:30
[15:39] <Cantide> not so early :D
[15:39] <Cantide> work starts at 12 noon '-';;;
[15:40] <Kilos> ah then plenty of sleep time
[15:40] <Cantide> yup
[15:40] <Cantide> i can sleep in until 10 if i want
[15:40] <Kilos> cool
[15:41] <Cantide> what are you up to?
[15:41] <Cantide> it's almost 6 pm there, right? dinner time!
[15:42] <Kilos> yeah im bathed and sitting at the pc watching the time go by
[15:42] <Kilos> hehe
[15:43] <kulelu88_away> What is the cost of living in Seoul?
[15:45] <Cantide> hmmmm
[15:45] <Cantide> kinda expensive
[15:45] <kulelu88_away> in dollar terms per month?
[15:45] <Cantide> my rent is about R 6 000 a month for a studio apartment
[15:45] <kulelu88_away> that's all???? 
[15:45] <kulelu88_away> define studio apartment?
[15:45] <Cantide> food costs me about R 3 000 a month if i eat just rice lol
[15:46] <Cantide> but usually i spend about R 10 000 on food and drink each month :'(
[15:46] <Cantide> hmmm... it's about 20 m^2 - including my kitchen area and bathroom
[15:46] <Cantide> furnished and clean
[15:47] <kulelu88_away> so basically a box. I thought you meant studio as in "top-floor, across the building" apartment
[15:47] <Cantide> aha
[15:47] <Cantide> i wish
[15:48] <Cantide> that's probably like R 20 000 a month lol
[15:48] <Cantide> if you want, you can live in a literal box - about 3 m^2 for probably close to R 1 000 a month and save tons of cash
[15:48] <Cantide> lots of options here
[15:50] <kulelu88_away> including women?
[15:50] <kulelu88_away> :D
[15:50] <Cantide> lolz
[15:50] <Cantide> there are plenty of those, too
[15:51] <kulelu88_away> do they eat squid and smell?
[15:51] <Cantide> some do
[15:51] <Cantide> i've seen my ex eat boiled silkworm pupae
[15:51] <Cantide> needless to say she is my ex
[15:51] <kulelu88_away> ehh. what are you doing in Seoul? teacher?
[15:51] <Cantide> but mostly they don't smell at all and they're very very sweet :p
[15:51] <Cantide> yeah
[15:51] <Cantide> not much else to do
[15:52] <kulelu88_away> I'm assuming you're a young white male?
[15:52] <Kilos> Cantide  did you get married yet?
[15:52] <kulelu88_away> Old people and marriage. Psshhh
[15:53] <Kilos> he is a durbanite
[15:53] <kulelu88_away> indian fellow?
[15:55] <Cantide> not yet :p
[15:55] <Cantide> kulelu88_away, not that young, but yes, white male
[15:55] <Kilos> very young man
[15:55] <Cantide> I've met English teachers here from Ecuador and even Nigeria
[15:56] <Cantide> anything is possible
[15:56] <Cantide> 31 is not so young... -.-v
[15:56] <Kilos> lol
[15:57] <Kilos> we had a guy here a few days back that is 76
[15:57] <Kilos> just switched to ubuntu
[15:57] <Cantide> o_o;;
[15:58] <Cantide> one of my students is 58 and he just built himself a tube amp and some radio transceivers :D
[15:58] <Kilos> cool
[16:01] <Cantide> bye kulelu88 .-.
[16:01] <Kilos> lol
[16:14] <Kilos> wb kulelu88  
[16:16] <Cantide> wb 
[16:17] <Cantide> oh... sleep time! good night~
[16:53] <magespawn> good evening
[16:54] <Kilos> hi magespawn  
[17:06] <magespawn> back again
[17:09] <superfly> kulelu88: pong
[17:33] <kulelu88> hey superfly 
[17:33] <kulelu88> I adjusted my algorithm to now use recursion but I am still working on a solution for it
[17:34] <superfly> hey kulelu88, I'm just busy getting the kids into bed, I'll be back in about 20/30 minutes
[17:39] <superfly> recursion -_-
[17:39] <superfly> recursion is not the answer... "no" is the answer :-P
[18:03] <smile4ever> hoi :p
[18:12] <kulelu88> lol
[18:29] <superfly> kulelu88: sorry, got distracted there for a few... what's the problem?
[18:30] <Kilos> hi smile4ever  superfly  
[18:30] <smile4ever> :D
[18:30] <smile4ever> hi Kilos 
[18:32] <smile4ever> how are you doing, Kilos 
[18:33] <kulelu88> superfly: let me show you my original code
[18:33] <Kilos> getting alone ok ty smile4ever  and you?
[18:33] <smile4ever> you alone?
[18:33] <Kilos> nono getting along
[18:33] <kulelu88> https://pastee.org/fwd68
[18:34] <smile4ever> I'm tired and broke, no money left :p
[18:34] <Kilos> im never alone when i am online
[18:34] <smile4ever> :D
[18:34] <smile4ever> that's the spirit, Kilos 
[18:34] <kulelu88> Now I'm trying to make this function recursive
[18:34] <Kilos> oh my what did you do?
[18:34] <smile4ever> kulelu88: for if for?? :o
[18:34] <smile4ever> :o
[18:34] <Kilos> huh?
[18:35] <kulelu88> smile4ever: this is powerful stuff mate. I can throw in a while there as well ;)
[18:35] <smile4ever> Kilos: check the code URL he posted ;)
[18:36] <smile4ever> Kilos: I did not have a lot to spend, but now I'm fully broke :P
[18:36] <smile4ever> I ate.
[18:36] <smile4ever> ;)
[18:36] <smile4ever> and I parked my car ;)
[18:36] <Kilos> at least your tummy is full
[18:36] <superfly> kulelu88: what's the aim of the script? is the aim to make it recursive, or is the aim something else and you think recursion is the solution?
[18:36] <smile4ever> Kilos: unlike my benzine tank :p
[18:36] <kulelu88> superfly: the aim is to check which numbers in the list add up to 30
[18:37] <kulelu88> My logic is sound the way I'm doing it, but extending my for loops into a nested structure is difficult 
[18:38] <kulelu88> Unless ... I have a complex way of going through the for loop
[18:38] <superfly> so you want a list of numbers, which together add up to 30?
[18:40] <kulelu88> superfly: let me show you my algorithm in pseudocode that I want to make into a recursive function. I think I've figured it out, but you will understand my pseudocode better
[18:40] <superfly> OK
[18:42] <kulelu88> superfly: https://pastee.org/5pdtd
[18:44] <kulelu88> you probably see it now and have a similar solution to me. Now I'm coding it
[18:46] <superfly> hmmm
[18:46] <kulelu88> let me code my solution and show you. Unless you're logging out
[18:52] <superfly> Not now, so let me see your solution. I'm busy looking at it as well.
[18:58] <kulelu88> darn. I can't get the part where the function calls itself and it adds the second, and third numbers
[19:00] <kulelu88> superfly: can you tell me what this means: addi(lt2[1:]) ??
[19:00] <kulelu88> addi = a list
[19:01] <inetpro> good evening
[19:04] <smile4ever> bye :p
[19:05] <smile4ever> slaapwel :)
[19:06] <Kilos> you too smile4ever  
[19:06] <Kilos> be good
[19:07] <superfly> kulelu88: I'm not sure what addi() does
[19:07] <superfly> never seen that syntax
[19:07] <kulelu88> addi is a list =D
[19:07] <smile4ever> thanks! :p
[19:08] <superfly> I know what lt[1:] does
[19:08] <kulelu88> no wait shit sorry
[19:08] <kulelu88> addi is the function name
[19:08] <superfly> ah
[19:08] <kulelu88> I think I get it now. I think!! 
[19:09] <superfly> kulelu88: this *almost* works: http://bin.snyman.info/v7zsg
[19:09] <superfly> that while could be a "for"
[19:10]  * Squirm lewks around
[19:11] <kulelu88> whoa I've never seen things like enumerate before
[19:13] <superfly> slightly neater: http://bin.snyman.info/p6k6q
[19:14] <superfly> still not working, but I think it's better than recursion
[19:15] <superfly> not sure my algorithm is entirely correct though, to be honest
[19:16] <superfly> enumerate() returns a tuple of (index, value)
[19:18] <superfly> technically what you *should* be doing is testing 9 + 8 + 15 + ... then 9 + 15 + ...
[19:18] <superfly> and what I'm doing is testing 9 + 8 + 15 + ... then 8 + 15 + ...
[19:21] <superfly> kulelu88: is this cheating? http://bin.snyman.info/j5utp
[19:23] <superfly> fewer iterations: http://bin.snyman.info/pbmad
[19:23] <superfly> still not 100% right
[19:24] <kulelu88> superfly: not really looking for the code :P just looking for some guidance. So don't stress about figuring it out with code
[19:24] <kulelu88> It's a self-challenge
[19:24] <kulelu88> I could keep nesting my solution with many for loops and it would work, but that code would be horrible 
[19:28] <superfly> Indeed. You can use recursion, but I'm trying to find an iterative way to solve it. 
[19:28] <superfly> Without thousands of nested loops 
[19:29] <kulelu88> I don't quite get the else part of recursion when you call the function on itself
[19:30] <kulelu88> superfly: in a recursive way, how would you make 9 + 8, 9 + 15, 9 + 10 ?
[19:37] <superfly> return addi(num, rest_of_array)
[19:38] <superfly> depending on how the rest of the function is structured
[19:39] <kulelu88> that could actually work. where the array is sliced and an array of all numbers excluding the first is returned and each is added individually to point 0.
[19:41] <kulelu88> superfly: this is flawed, but what do you think: https://pastee.org/cujvm
[19:43] <superfly> kulelu88: getting there
[19:49] <kulelu88> My code ran but I got output None :D
[19:58] <superfly> ja, you have a few issues
[19:59] <superfly> functions are called with () not []
[20:00] <Kilos> night all. sleep tight
[20:02] <kulelu88> I see you can't add a list and int as well
[20:20] <superfly> kulelu88: maybe try solving fibonacci instead? it's a little easier :-P
[20:21] <kulelu88> haha. You know where this challenge comes from? Somebody posted a job posting about it and I want to solve it
[20:22] <kulelu88> superfly: Ok I figured out where I went wrong. The algorithm I gave you is wrong :(
[20:32] <superfly> kulelu88: do you have a link to the original job posting?
[20:33] <kulelu88> check the CTPUG for May. It's there
[20:34] <kulelu88> Okay so addition of 2 variables is 15 permutations
[21:03] <superfly> not really seeing anything
[21:20] <kulelu88> superfly: I got it!!!
[21:20] <kulelu88> Hold on, coding it out
[21:28] <kulelu88> superfly: https://pastee.org/pfr5w
[21:29] <kulelu88> how shit is that we were both attempting to write out tools that already exist with the built-in library
[21:29] <superfly> there you go
[21:29] <superfly> told you there was a better way :-P
[21:30] <kulelu88> what a shit google-fu kind of problem and yet the solution is so easy with the built-in tools
[21:34] <kulelu88> Well at least it has been coded now. so I'm happy