/srv/irclogs.ubuntu.com/2016/12/27/#ubuntu-za.txt

squish102superfly: how long ago did you get here?03:25
squish102but you have been to the usa before right?03:26
=== urbanslug is now known as zipper
nsnzeromorning all08:14
Kiloshi nsnzero and everyone else08:37
nsnzerohi Kilos how you doing ?08:37
Kilosok ty and you08:37
nsnzerobored atm - doing some research .... very boring stuff though08:40
LangjanGood morning all08:42
nsnzeromorning Langjan 08:42
LangjanYou well nsnzero? Hope you had a good Christmas 08:43
=== MaNL is now known as MaNI
LangjanYou there Kilos? 09:15
Kiloshi Langjan 09:28
Kiloscompliments of the season to you and family09:29
LangjanAnd to you many thanks Kilos 09:33
LangjanMaybe you saw my mail, got the Nautilus menu view sorted09:34
Kiloswell done09:35
Kilosi been outside mostly09:35
Langjanthks, you taught me to use Synaptic 09:35
Kiloshahaha09:35
Kilossynaptic is a good tool09:35
LangjanYes indeed09:36
LangjanSri Lanka 22-309:36
Kilossjoe09:36
LangjanAlso managed to sort my light prob09:36
Langjanyou wont believe...09:37
LangjanI was working with the wrong globe! Lmga!09:37
Kiloshahahaha09:41
Kilosalways look at the basics first09:41
LangjanVery confusing system with four globes09:41
Kiloslol09:41
LangjanYou feeling OK? I was worried when I did not see you online yesterday09:43
Kiloswent to a friend of ians, sorry should have told peeps here09:44
Kilosim ready to go lie down now again09:44
LangjanNo prob as long as you are fine and enjoyed it09:44
Kilosbit heavy feeling09:44
LangjanHave a god rest 09:45
Langjangood09:45
Kilosty you look ater you as well and shout if you need help09:45
LangjanMany thanks appreciated, all seems fine even graphics behaving  09:46
Kilosyay09:46
Kilosgood to know09:46
LangjanMooi loop rus ;lekker en drink baie water op 'n leƫ maag09:47
Kilosok dankie sal so maak09:47
Langjanen sny die gifpyle uit...09:48
=== urbanslug is now known as zipper
nsnzeroevening all17:44
jeritspent the afternoon with the girl who I hope will be my next girlfriend :318:13
jeritthere aren't words that I can use to tell you guys how awesome she is18:14
kulelu88jerit: apart from awesome? :D18:15
kulelu88nsnzero: did you make the algo faster? or next challenge?18:15
jeritkulelu88: the word awesome is cheap in this case. It doesn't nearly even begin to be sufficient18:16
kulelu88you're new here jerit . Must be a young guy :P all the old ooms here only complain about their wives :D18:17
jeritI'm 29 lol18:17
kulelu88that's young ;)18:17
jeritwas just gonna say :P18:17
kulelu88are you on zatech also? jerit 18:18
jeritthing is all you old ooms complaining about your wives have done something I've not yet managed... you got a woman to agree to spend a significant amount of time with you18:18
jeritkulelu88: nope, never heard of it18:18
kulelu88"all `you` old ooms"? I'm not old :D18:18
jeritlol sorry18:19
kulelu88you a programmer? what language? jerit 18:20
jeritmostly .net stuff but getting deeper and deeper into linux18:20
kulelu88the "dark" side for you Win programmers18:21
jeriteh I don't mind really... php is much the same as c# syntactically18:24
jeritits python I don't understand18:24
kulelu88that comes as a shock, considering Python has the easiest syntax18:26
jeritits more the application structure that I don't get18:26
kulelu88of Django?18:26
jeritof python18:27
nsnzerohi jerit and kulelu88 18:27
jerithello18:27
kulelu88there is no standard app structure in Python18:27
kulelu88design-decisions are made by opinionated frameworks18:28
jeritopinionated?18:28
nsnzerokulelu88: i dont think i can make this code faster without resorting to c18:28
kulelu88django, like rails, is opinionated18:28
kulelu88nsnzero: you can try Cython :P18:28
kulelu88anyways, ja, I think another challenge would be more fun18:29
kulelu88I didn't get to see your code though 18:29
nsnzerowhat is am trying to do is save previous result and use that 18:29
kulelu88caching?18:30
kulelu88that's cheating :P18:30
nsnzeroya thats 1 way to make it faster18:30
kulelu88nsnzero: try this challenge: given a number, find all the even numbers and sum all the even numbers up18:31
nsnzerocython i never really tried it - seems like you have to declare like c18:32
kulelu88cython is easier than C or Go 18:32
nsnzerokulelu88: the code https://bin.snyman.info/mmmw7f9a18:38
nsnzeroso the challenge is say 12345678 is given , now do i add up  2 4 6 8 ?18:40
nsnzerojerit: best of luck with the girl btw18:45
jeritnsnzero: thanks :)18:45
kulelu88nsnzero: say I give you the number 5438, find all the even numbers from 1 to 5438 and then add them up18:50
kulelu88including 543818:50
nsnzerooh - my misinterpretation of the question 18:51
nsnzerosmall change to the program that i wrote to add the even numbers found in a long number 18:54
kulelu88that's part 1 of the challenge :D18:55
nsnzerokulelu88: best prep another question i am almost finished18:55
nsnzeropart 2 please kulelu88 19:04
kulelu88nsnzero: now find all the odd numbers and add those up19:05
kulelu88then, subtract the total of all the even numbers from the total of all the odd numbers19:05
nsnzerodone kulelu88 19:08
kulelu88nsnzero: can you test to see if a trend exists by testing: (sum of even numbers) - (sum of odd numbers) = answer  (by repeating experiment about 10-1000 times)19:09
kulelu88I'm not sure if you could use a lib to find a trend19:15
kulelu88maybe the math lib supports it19:15
nsnzeroi have a research the maths module - but i can see it already 19:16
kulelu88what is the trend?19:18
kulelu88very interesting to know19:18
kulelu88math is beautiful :'D19:18
nsnzerofor an even number the difference is number/219:19
nsnzerofor an odd number the difference is (number -1) /2 19:19
nsnzeroneed to put both together somehow19:19
kulelu88very interesting to come to that conclusion19:20
nsnzerocode in python will be (number -(number%2) /219:21
kulelu88you normally code in static languages? nsnzero 19:22
nsnzeroi havent coded i c for a while 19:29
nsnzeroyou refering to statically typed ?19:30
kulelu88yeah19:31
kulelu88cause this sounds too easy for you :P19:31
nsnzerothe difference in c and python coding is not a challenge just that you have to declare in c19:33
kulelu88but don't you need pointers to do a lot in C?19:34
nsnzeropointers come from when memory was a big deal - instead of moving variable pointers where used to reference it to conserve memory19:37
nsnzeroi dont use them 19:37
kulelu88I was trying to learn Go and it was terrible that pointers were central to the way Go works19:38
smileto avoid pointers, one would use Vala, C#, C++, JavaScript, TypeScript, Gambas .. :)19:39
smileand a lot of other programming languages I currently do not think of :p 19:39
kulelu88Gambas? 19:39
smileVisual Basic for Linux19:39
smilenice for writing small applications quickly19:40
kulelu88VB for Linux D: 0.o19:40
smileGUI applications! :D19:40
smilein a few minutes.19:40
kulelu88what does the output come as? GTK? 19:40
smilea .gambas executable file, but you can also make REAL binaries and installation packages (deb, rpm) with dependencies and all19:41
smilegambas supports both GTK and Qt19:41
nsnzerosmile : you refering to gambas ? 19:41
smileyes19:41
smilebut I'm not related to the gambas dev team19:41
kulelu88I think Nim doesn't have pointers also19:41
nsnzerook really simple coding in gambas i was amazed what a few lines can do19:41
nsnzerogo doesnt have a gui in linux as yet - hence i didnt go there yet 19:43
smilekulelu88: what's Nim? :p19:43
kulelu88smile: nim-lang.org19:43
nsnzerokulelu88: i will research go and try and help you - its very similar to c 19:44
kulelu88nsnzero: don't :P I'm focused on Python and an actual project, any yak-shaving will just kill my precious spare time :D19:44
nsnzerolol - ok19:45
nsnzeroi think learning 1 language properly and then moving on is best too19:46
kulelu88I'm going to need to figure out how to host 2 Flask apps on 1 server though :P19:46
kulelu88that is true, better to be productive in a language you know19:47
nsnzerommmmh - something to research now ....19:47
nsnzerotake care guys - goodnight all 19:47
kulelu88nsnzero: don't waste your time with those things :P19:47
kulelu88I'll give you coding challenges instead 19:48
kulelu88night19:48
smileokay :)19:49
smilethey should update the look of their website19:49
smile;)19:49
Kilosnight all. sleep tight20:02

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!