/srv/irclogs.ubuntu.com/2017/08/24/#ubuntu-uk.txt

diploMorning all07:11
SuperMattmorning07:30
davmor2morning all08:08
brobostigonmorning boys and girls.08:15
foobarryhello. how can i avoid requiring in python "from blah import blah2"08:35
foobarryi just want import blah208:35
foobarryi added the module to the site-packages of the virtualenv08:36
SuperMattI've stopped programming in python and moved everything to go08:50
SuperMattno need for virtual envs or anything like that08:50
brobostigonhttp://www.unixstickers.com/stickers/unix_os_related_sticker/geek-inside-sahped-sticker :)09:20
diplofoobarry: I believe you can just do import blah, you'd just reference it blah.blah2 when calling it instead of blah2() on its own09:25
MooDoohowdy all09:32
SuperMattHowDoo MooDoo ?09:35
MooDoo:)09:36
ali1234foobarry: diplo is correct. it's all about namespacing. blah is the module and blah2 is an object inside that module09:57
ali1234you can also say "from blah import *" but that is generally a bad idea since it defeats the purpose of namespacing09:57
ali1234namespaces can also be nested09:58
diploYeah never done the import * as it may conflict with other imports, or I've worried it has. ali1234 explains it much better than me though :)10:01
foobarrythe scripts already have import blah but i'm finding i need to specify "from meh" first or it doesn't pick it up10:28
diploNot sure I've had that before, modules not setup correctly maybe or not declared correctly when calling them is the only things I can think of, no python pro though :)10:31
foobarryi've worked around it manually in a branch until my python guy returns :D10:37
diplo:)10:44
foobarryinstalling debian MATE on eeepc 701 :D10:47
CoderEuropegarethes' owes: https://www.theguardian.com/technology/askjack/2017/aug/24/should-i-buy-my-eight-year-old-son-laptop-raspberry-pi-games?10:48
ali1234that's hilarious10:50
foobarrywait..why does he want a laptop?10:50
foobarrydoesn't actually state the use-case10:50
ali1234"no skrub. buy a gamer PC"10:50
foobarrymost home computer desks are worse ergonomically than a laptop at the dining table10:51
foobarryi get a feeling this was just a fake article to get sponsored clucks10:51
foobarryoh no , disgusting eater is slurping and crunching again10:57
foobarryhow can a grown man make noise eating pistachios that is heard 40ft away?10:57
diploThat would be my dad too, it annoys the living hell out of me10:58
foobarryhe eats with his mouth open?10:58
foobarrythis guys an animal10:58
diploYup, as does my sister but I rarely see her. My kids have a go at them too, doesn't stop them doing it.10:59
foobarry:S10:59
diploI can't remember him doing it when I was a kid though10:59
diploMaybe I just didn't take any notice10:59
foobarryi have misonophobia i think11:00
foobarrybasically it annoys the heck out of me11:00
foobarryand i get murderous thought11:00
diploI do too! Lets kill them together11:02
diplo:P11:02
foobarryalso have 2 loud howards11:05
ali1234https://www.youtube.com/watch?v=AfuxPhtU1Hk11:11
ali1234firefox 55 is really crashy :(11:32
diploI've not found it to much myself on this box, but running 56 b1 on my windows box which is more my primary11:46
ali1234It's crashed like 10 times this morning. i installed it yesterday11:46
ali1234also google maps = insta crash every time, even with HWA disabled11:47
diploI'll try that now11:47
ali1234i suspect it is because i am using the nvidia beta driver with vulkan... but disabling HWA should fix that so idk11:48
ali1234also it never caused a problem before11:48
diploAh I'm on intel graphics, but yeah fine here on googly maps11:48
foobarry6 years ago today i bought a hp touchpad. so facebook tells me12:07
* zmoylan-pi cues wonderyears grainy shaky footage of foobarry opening his hp touchpad...12:08
foobarryits quite blurry due to potatocam12:08
zmoylan-piin it's defenese it's not vertical phonecam...12:09
MooDoo /quit13:01
MooDoooops13:01
diplohah13:02
foobarrynice try13:29
foobarryoh he did :|13:29
diploMount a share as cifs with a folder full of csvs, get a prompt to run / display blah rather than opening Libre Calc ( which is the default app already selected ) yet via smb:// it opens as expected14:06
diploNeed cifs to be able to attach files from share directly into thunderbird, 12 year old bug14:07
diploMy google fu is failing if anyone has any pointers14:07
foobarrycan i not download a video from google photos? weird15:15
foobarryhmm maybe its on timelapse15:16
zmoylan-piit's to teach you basic hacking skills to find extensions to download videos of the web... we'll make a hacker of you yet15:17
foobarryhttps://goo.gl/photos/X9winwW6zigAPWyb7 can u see this?15:20
zmoylan-pi22s video of a bunch of pis... unlogged into google on vivaldi on linux15:24
foobarryand the magic screen15:24
diployoutube-dl download it ?15:25
zmoylan-piflushing out any photosensitive epileptics...15:25
foobarrythis screen is amazing15:25
foobarryLED display15:25
diddledanmanaged to sneakily find it with some hacking:15:27
diddledanhttps://r3---sn-aigllnzy.googlevideo.com/videoplayback?id=94050d6b0ed65fde&itag=18&source=picasa&begin=0&requiressl=yes&mm=30&mn=sn-aigllnzy&ms=nxu&mv=u&pl=41&sc=yes&ei=Y_CeWeajFMfKVsLwizg&mime=video/mp4&lmt=1503587507977246&mt=1503588308&ip=2001:8b0:17b0:d4d:21da:fda1:f825:b8d4&ipbits=48&expire=1503595651&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,pl,sc,ei,mime,lmt&signature=4B683BC1F4405AE9E715:27
diddledan2B319CA69A3E1D1A105F33.6BE9F485CB9222A3B94FC49416D4FD9E589BCDF7&key=ck215:27
diddledanergh15:27
diddledanevil15:27
diddledanlet me shorten that15:28
diddledango.bwlh.at/2wBC66I15:28
diddledanaah, you can download with the "three-vertical-dots menu" top-right15:30
diddledanwhat happens if I click "join"?15:31
foobarryah its just appeared15:31
foobarrymust have been processing. wasn't there before15:32
diddledanimpressive display for a 16x16 pixie15:33
foobarryand has its own arm chip so offloads any compute work15:34
diddledanarm chips end up in everything15:35
diddledanlike "you want to write to disks" gets answered with "ok, that cpu you have. make it send the data to this bus address where an HBA which is actaully another different computer will pick it up and do stuff with it and send it to individual disks which are also computers ..."15:36
foobarrythe python to do all the shiny stuff is about 10 lines liong15:37
diddledanit seems that every individual component is what would be considered a complete computer in the past15:37
foobarryplus a py module15:37
ali1234all the magic is in the STM32 firmware15:37
foobarryits quite cheap too15:39
diddledanperipherals and stuff you plug into computing devices these days are exactly the same as the "Windows PC Card for your Mac" that got sold for PPC macs in the 90s15:39
diddledanin concept, I mean. doing a complete pc to do the job that your complete pc can't do15:40
ali1234computers would be hilariously slow if that wasn't the case15:41
diddledanyes, but we've moved on from ASICs to using general purpose cpus to do the job that the general purpose cpu can't do15:42
ali1234extreme example: the zx80 could only execute instructions during the vertical blank period15:42
ali1234either that, or display a blank screen :)15:43
diddledani.e. we're doing turtles all the way down now15:43
diddledannothing is application-specific anymore15:43
ali1234that's not what ASIC means, but okay15:46
diddledanASIC = Application Specific Integrated Circuit15:47
ali1234the FTL controller in an SSD is pretty application-specific15:48
ali1234in any case, it's not really a new trend. https://en.wikipedia.org/wiki/Commodore_154115:50
davmor2man it is funny when you add email to fail2ban till you realise the quantity is dos'ing your server :D15:56
diddledandavmor2: ouch15:57
diddledandavmor2: sounds like someone's hitting you hard?15:57
davmor2diddledan: turned off email it is fine now :D15:57
diddledanlol15:57
diddledanis that like "cutting off your nose in order to spite your face?"15:58
davmor2diddledan: it's the fact the email consists of getting a whois on all banned ip's, I can look at the log still and manually whois but I got 1416 emails in under 30seconds15:59
davmor2mostly china16:00
diddledanI really feel sorry for the majority of chinese people who are decent folk because of their association with "chinese hackers all the time!" means many westerners decide to outright block the entire country16:01
davmor2diddledan: I think fail2ban is doing that for me ;)16:02
diddledanhaha16:02
davmor2diddledan: first 20 and last 20, 39 are from china 1 from indonesia16:03
diddledanjeez. I vote we block the entire chinese ip range16:04
diddledanoh wait16:04
diddledandamn16:04
diddledandon't you hate when your idealism disappears in a puff of smoke?!16:05
davmor2diddledan: funny how the GreatFireWall  doesn't block the spam and bots coming out right ;)16:05
diddledanthat's a good point actually. they're more interested in ingress than egress I guess16:06
daftykinshaha Samsung borked a firmware update for a bunch of Smart TVs, leaving them stuck on one channel with no remote functionality XD21:44
diddledan\o/21:45
zmoylan-pismart tvs; dumb updates22:06
diddledanthe problem is smart devices are programmed by idiots - the devices would be fine if we didn't keep tinkering22:08
daftykinsTizen is meant to have some of the worst code known :D22:10
daftykinsno idea if the affected TVs actually run that, though22:10
zmoylan-pii think it's more controlled my management who wants cheap and fast than bad programmers22:19

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