barrydk | Morning everyone | 04:28 |
---|---|---|
Kilos | morning all | 06:06 |
Squirm | Morning | 07:16 |
Kilos | hi Squirm | 07:17 |
Kilos | hi TinuvaMac | 07:36 |
TinuvaMac | morning Kilos | 07:37 |
SDCDev | hey Kilos | 08:39 |
SDCDev | I just got back into bed, trying to keep warm :| | 08:39 |
Kilos | hi there SDCDev | 08:39 |
Kilos | lol where are you thats so cold | 08:40 |
Kilos | i just been outside soaking some UV's for warmth too | 08:40 |
SDCDev | Im in jbay Kilos | 09:51 |
Kilos | thats not cold man come try ptown | 09:51 |
inetpro | good mornings | 09:52 |
Kilos | more | 09:52 |
kulelu88 | ping superfly | 11:55 |
Kilos | did he not say 8.30 tonight kulelu88 | 12:19 |
Kilos | thats after kids are in bed | 12:19 |
kulelu88 | oh yes, I forgot the time | 12:24 |
=== Cantide is now known as Can_Cycle | ||
Squirm | ergh | 14:03 |
Squirm | being load shed | 14:03 |
Kilos | eish | 14:04 |
=== kulelu88 is now known as kulelu88_away | ||
=== Can_Cycle is now known as Cantide | ||
Cantide | hi everyone :p | 15:37 |
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:38 |
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:39 |
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:40 |
Cantide | what are you up to? | 15:41 |
Cantide | it's almost 6 pm there, right? dinner time! | 15:41 |
Kilos | yeah im bathed and sitting at the pc watching the time go by | 15:42 |
Kilos | hehe | 15:42 |
kulelu88_away | What is the cost of living in Seoul? | 15:43 |
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:45 |
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:46 |
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:47 |
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:48 |
kulelu88_away | including women? | 15:50 |
kulelu88_away | :D | 15:50 |
Cantide | lolz | 15:50 |
Cantide | there are plenty of those, too | 15:50 |
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:51 |
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:52 |
Kilos | he is a durbanite | 15:53 |
kulelu88_away | indian fellow? | 15:53 |
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:55 |
Cantide | anything is possible | 15:56 |
Cantide | 31 is not so young... -.-v | 15:56 |
Kilos | lol | 15:56 |
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:57 |
Cantide | one of my students is 58 and he just built himself a tube amp and some radio transceivers :D | 15:58 |
Kilos | cool | 15:58 |
Cantide | bye kulelu88 .-. | 16:01 |
Kilos | lol | 16:01 |
Kilos | wb kulelu88 | 16:14 |
Cantide | wb | 16:16 |
Cantide | oh... sleep time! good night~ | 16:17 |
magespawn | good evening | 16:53 |
Kilos | hi magespawn | 16:54 |
magespawn | back again | 17:06 |
superfly | kulelu88: pong | 17:09 |
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:33 |
superfly | hey kulelu88, I'm just busy getting the kids into bed, I'll be back in about 20/30 minutes | 17:34 |
superfly | recursion -_- | 17:39 |
superfly | recursion is not the answer... "no" is the answer :-P | 17:39 |
smile4ever | hoi :p | 18:03 |
kulelu88 | lol | 18:12 |
superfly | kulelu88: sorry, got distracted there for a few... what's the problem? | 18:29 |
Kilos | hi smile4ever superfly | 18:30 |
smile4ever | :D | 18:30 |
smile4ever | hi Kilos | 18:30 |
smile4ever | how are you doing, Kilos | 18:32 |
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:33 |
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:34 |
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:35 |
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:36 |
kulelu88 | My logic is sound the way I'm doing it, but extending my for loops into a nested structure is difficult | 18:37 |
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:38 |
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:40 |
kulelu88 | superfly: https://pastee.org/5pdtd | 18:42 |
kulelu88 | you probably see it now and have a similar solution to me. Now I'm coding it | 18:44 |
superfly | hmmm | 18:46 |
kulelu88 | let me code my solution and show you. Unless you're logging out | 18:46 |
superfly | Not now, so let me see your solution. I'm busy looking at it as well. | 18:52 |
kulelu88 | darn. I can't get the part where the function calls itself and it adds the second, and third numbers | 18:58 |
kulelu88 | superfly: can you tell me what this means: addi(lt2[1:]) ?? | 19:00 |
kulelu88 | addi = a list | 19:00 |
inetpro | good evening | 19:01 |
smile4ever | bye :p | 19:04 |
smile4ever | slaapwel :) | 19:05 |
Kilos | you too smile4ever | 19:06 |
Kilos | be good | 19:06 |
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:07 |
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:08 |
superfly | kulelu88: this *almost* works: http://bin.snyman.info/v7zsg | 19:09 |
superfly | that while could be a "for" | 19:09 |
* Squirm lewks around | 19:10 | |
kulelu88 | whoa I've never seen things like enumerate before | 19:11 |
superfly | slightly neater: http://bin.snyman.info/p6k6q | 19:13 |
superfly | still not working, but I think it's better than recursion | 19:14 |
superfly | not sure my algorithm is entirely correct though, to be honest | 19:15 |
superfly | enumerate() returns a tuple of (index, value) | 19:16 |
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:18 |
superfly | kulelu88: is this cheating? http://bin.snyman.info/j5utp | 19:21 |
superfly | fewer iterations: http://bin.snyman.info/pbmad | 19:23 |
superfly | still not 100% right | 19:23 |
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:24 |
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:28 |
kulelu88 | I don't quite get the else part of recursion when you call the function on itself | 19:29 |
kulelu88 | superfly: in a recursive way, how would you make 9 + 8, 9 + 15, 9 + 10 ? | 19:30 |
superfly | return addi(num, rest_of_array) | 19:37 |
superfly | depending on how the rest of the function is structured | 19:38 |
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:39 |
kulelu88 | superfly: this is flawed, but what do you think: https://pastee.org/cujvm | 19:41 |
superfly | kulelu88: getting there | 19:43 |
kulelu88 | My code ran but I got output None :D | 19:49 |
superfly | ja, you have a few issues | 19:58 |
superfly | functions are called with () not [] | 19:59 |
Kilos | night all. sleep tight | 20:00 |
kulelu88 | I see you can't add a list and int as well | 20:02 |
superfly | kulelu88: maybe try solving fibonacci instead? it's a little easier :-P | 20:20 |
kulelu88 | haha. You know where this challenge comes from? Somebody posted a job posting about it and I want to solve it | 20:21 |
kulelu88 | superfly: Ok I figured out where I went wrong. The algorithm I gave you is wrong :( | 20:22 |
superfly | kulelu88: do you have a link to the original job posting? | 20:32 |
kulelu88 | check the CTPUG for May. It's there | 20:33 |
kulelu88 | Okay so addition of 2 variables is 15 permutations | 20:34 |
superfly | not really seeing anything | 21:03 |
kulelu88 | superfly: I got it!!! | 21:20 |
kulelu88 | Hold on, coding it out | 21:20 |
kulelu88 | superfly: https://pastee.org/pfr5w | 21:28 |
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:29 |
kulelu88 | what a shit google-fu kind of problem and yet the solution is so easy with the built-in tools | 21:30 |
kulelu88 | Well at least it has been coded now. so I'm happy | 21:34 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!