=== Monotoko_ is now known as Monotoko === Monotoko is now known as Guest93534 [00:22] what happens with webpages on hidpi displays? [00:22] does the browser just lie about media width to make things work? [01:24] ali1234: CSS pixels != device pixels [01:24] See devicePixelRatio [01:25] no in other words, yes, it just lies? [01:25] *so [04:38] morning [05:28] morning all [05:35] morning jussi [05:35] whats up [05:35] sky, ceiling... :P [05:35] pffff [05:35] ;] [06:20] morning all [06:35] morning MooDoo [06:37] how are you mapps [06:39] not bad..watching last tv ep for the night [06:39] then bed:) [07:00] Morning all [07:02] morning all [07:02] morning diplo andylockran [07:30] morning all [07:31] morning [08:30] Trying to run 2XClient on Ubuntu 14.04 64-bit and it keeps just crashing on load with a segmentation fault. Console chucks out this message "/opt/2X/2xclient.sh: line 4: 3067 Segmentation fault (core dumped) LD_LIBRARY_PATH=../lib ./2XClient $@" Any ideas? [08:30] what's "2xclient"? [08:32] if it crashes like that, it's probably a bug in the application, or you're not running it on a supported platform (it being in /opt suggests it's not from a package, the LD_LIBRARY_PATH almost confirms it) [08:32] MartijnVdS: It's a proprietary RDP client that's available from the Ubuntu Software Centre [08:33] I'd file a bug then :) [08:43] kvarley-work: Not much help, but Remmina and KRDC both work well. Might tide you over. [08:43] Assuming it's standard RDP protocols you are using [08:53] TwistedLucidity: yeah thanks I'm using remmina now. I just find 2X performs a lot better with the servers I'm working with. Will wait until its updated. thanks anyway :) [08:57] good morning boys and girls. [09:00] \o brobostigon [09:00] morning MartijnVdS [09:01] morning morning [09:02] morning MooDoo [09:04] AlanBell: saw this and thought of you (and czajkowski) http://i.imgur.com/4ChkRqV.jpg [09:05] my wife's phone adds an extra 7 to the mobile number for about 5 people when replying to an SMS e.g. 07941111111 becomes 077941111111 . any ideas? [09:06] have cleared those people frmo contacts, sent a fresh txt. and it happens again when replying [09:28] popey: awww [09:28] popey: AlanBell TheOpenSourcerer http://guildfordbeerfestival.co.uk/ [09:29] * TheOpenSourcerer goes and checks the diary... [09:30] * TheOpenSourcerer would appear to be available czajkowski [09:30] sadly I am not [09:30] * nigelb hasn't seen AlanBell in a while [09:31] * TheOpenSourcerer looks at him every day [09:31] well - apart from weekends. [09:32] you have a webcam for that, right? [09:32] lol [09:32] ha [09:53] popey: reminds me of an episode of the big bang theory where sheldon was a robot, perhaps AlanBell is just a monitor on the top of TheOpenSourcerer desk at work :D [09:54] MooDoo: or TheOpenSourcerer is just AlanBell's alterego... Ive met AlanBell, but this sourcerer.... [09:54] :P [09:56] jussi: so what you're saying is you've never seem them in the same room together? [10:02] anyone have suggestions waht to do about latest 3.8.0-38 kernel not letting my laptop suspend? 3.8.0-37 works.. [10:03] http://opensslrampage.tumblr.com/ is such fun :) [10:03] foobarry: file a bug, or upgrade to 14.04 ;) [10:21] MooDoo: yeah, pretty much that :P [10:38] * jussi is feeling somewhat american [10:38] (peanut butter and jam sandwiches) [10:38] jussi: not, vegemite or marmite?! [10:39] at least it's not jelly [10:39] (too wobbly) [10:39] not today.. [10:39] Laney: true that [10:39] but american jelly is different to ours... [10:40] yeah I was being funny :( [10:41] Laney: failed :P [10:41] it's alright I laughed at it myself :( [10:42] anyone else having issues with irc today? [10:42] davmor2: no [10:45] davmor2: yes, you are on it! :P :P [10:45] * jussi hugs davmor2 [10:50] davmor2: what's going on with yours chap? [10:52] MooDoo: everything on irc keeps restarting but only irc I ping and browse as usual hence asking if it was just me or everyone [10:57] stupid computers. [11:11] davmor2: does your status window have any useful messages? [11:53] Should I expect to be able to fsck a mac formatted hdd in my linux laptop and it fix it? [11:53] I don't know if there are HFS(+) fsck tools for Linux [11:53] if it's btrfs/ext[234] then yes [11:53] its hfs+ [11:54] popey: you can fix non-journaled ones. no fsck for journaled. [11:54] bugger [11:54] popey: it's optional hfs+ feature, but enabled by default on all macs unless explicitely disabled by the user. [11:55] ta [11:55] popey: there are recovery disk-utilities you can boot - if you have a mac. [11:55] oh, thats a good point, i do have another mac, i could attach it to that and try and fix [11:55] popey: either third-party or any mac os x installer dvd / usb-stick, all have disk-utilitiy available to launch [11:55] good call! [11:56] sounds like a lunchtime task! [11:56] Oh look! Lunchtime! [12:12] that's looking a bit more stable apparently my new router might be the cause will leave that till the weekend though dd-wrt might be required :) [12:13] \o/ chugging away [12:14] chugga chugga [12:15] popey: your at work what are you doing chugging beer ;) [12:17] anyone know how to make the left and right tilt on my mouses scrollwheel actually do something? [12:17] like perhaps back/forward in the browser? [12:19] jussi: they scroll horizontally [12:19] on mine anyway [12:20] oh... so they do. that sucks. [12:20] I wonder if I can change that somewhere [12:21] paste.ubuntu.com/7321955/ thats bad ☹ [13:19] you know, it just dawned on me... the oneplus is actually what was going to be the ubuntu edge. :P :P [13:20] hardly [13:20] too big for one [13:21] I don't get the capacitive *AND* on-screen button thing... Seems like a square peg/round hole thing to me. [13:23] Gosh - Ubuntu spam from eBuyer.... "Alan, HP 255 G1 Laptop with Ubuntu only £219.99 + Free Next Day Delivery" :-D [13:23] At that price it could have another set of physical buttons inside the case and I wouldn't mind. [13:27] Woo, 64GB version! [13:27] Woo $349 [13:27] not a bad price for that little laptop [13:30] :( popey [13:30] just seen your dead laptop [13:30] ¢/win 4 [13:38] Sam is on a school trip to Windsor Castle today [13:43] popey: it's easter break isn't it? [13:43] no, they went back yesterday [13:43] ah not here they didn't I don't think [13:44] I'd be surprised. [13:46] popey: I don't know not having kids but the traffic is too light at school leaving time [13:47] * popey tries to remember a time before kids [13:47] popey: I get Sue from the hospice around 15-16:00 too little traffic [13:47] our kids went back on Tuesday. [13:47] probably some grown-ups still on easter hols [13:47] popey: it's when you were slim had a capri and fun ;) [13:47] ☻ [13:47] true, except s/capri/manta/ [13:48] * TheOpenSourcerer never had a Capri :-( [13:48] Talbot Solara [13:48] popey: it wasn't a bad guess [13:48] Honda CB200 with Reverse Cone Megaphones ;-) [13:49] popey: so if we here about a secondary fire breaking out at windsor castle today we know why right :) [13:50] popey: ohhhh LV issue 3 on digital download now :) [13:51] how to restore multiple databases mysql command line [13:53] davmor2: yay [13:54] my dad had a Talbot Solara.. PLM 573W [13:54] and an Horizon, ELY 760T [13:55] i have taken multiple databases single sql file how to restore all Ubuntu please help me [13:56] mysql -uroot -p Good morning peeps :) [16:45] ditto [16:45] * diddledan yawns === alan_g is now known as alan_g|EOD [17:40] yo [17:47] http://altairclone.com/ [17:54] interesting. prettier than the briel computers one [18:44] hi can anyone help me with a ssh problem? [18:44] Hello. I'm completly new to ubuntu. I'm trying to boot from a usb 1.1 (yeah I know). I used pendrivelinux to make the bootable drive. When I try to boot however all i get are fans and a black sceen. I waited it out for a good while, maybe 15-20 minutes what with trying to boot fro 1.1. I'm on an acer aspire 5930G with 4 GB ram and 250 GB HDD . and I'm trying to boot the latest version of ubuntu, 64bit. does anyone have any clue wh [18:45] oh and I've changed the boot priority to USB-HDD and it's picking up my drive. [18:45] Sorry for the bombardment! [18:59] Hi all, just to clarify, the machine is picking up my drive but is still not booting. Advice still welcome. T [19:23] is this system still used? [19:23] ubuntu? yes, I believe so [19:23] Alright :D [19:24] they're starting to put it in phones now, dun'tchaknow [19:24] because ive had some problems letely with graphics are far as ubuntu is concerned [19:24] +as far [19:25] im thinking of installing 14.04 now but i really dont want to fuss with what happened to my graphics last time [19:25] after installing the driver for my gtx 660 with ubuntu it gets stuck in 800x600 [19:25] before is fine [19:26] and if i use hdmi instead of dvi [19:26] it works fine too [19:26] and my second screen displays the correct res [19:27] usually trying to force a res is leading to the edid [19:27] being bad [19:27] is there a way i can take windows edid and use that [19:27] or just another way to force 1080 into ubuntu [19:28] afaik the edid is embedded in the monitor [19:28] yep [19:29] so its either dont install drivers and not be able to use steam [19:29] or just install them and enjoy 800x600 [20:00] popey, ping -- you did tell me before how to get the version number of the most recent promoted phone image, but when the compputer died I lost the logs :( [20:04] system settings -> about [20:04] popey, that shows the version I'm running, not whether there's a newer version to install, doesn't it? I'm dual-boot so I have to upgrade from teh android app [20:05] oh, dunno about that [20:07] aquarius: lemme ask you a question... [20:08] phaser.io looks awesome [20:08] I've seen it, but not used it for anything yet [20:08] but requires that it be loaded from a webserver, and not locally loaded, apparently it uses get requsts and json stuff which has to pull from a server, not local filesystem [20:08] yeah; these days, you pretty much need a webserver to do anything [20:08] so there's no way that is going to fly on an ubuntu phone as a local app [20:09] which is a bummer [20:09] hrm [20:09] I wish I could say that QML had a really good XMLHttpRequest implementation and so this wouldn't be a problem [20:09] which leads to my question - how could I? [20:09] but it does not. [20:09] well, you could spin up a web server pretty easily in C or Go, I imagine [20:10] but I can't see how you can stop other apps on the device connecting to it [20:10] oh, i could ship a little apache/lighttpd or whatever in my app? [20:10] this is the desktopcouch problem all over again [20:10] yeah. Not apache ;) [20:10] I imagine that Qt has be-a-webserver stuff in it [20:10] well, whatever, i could launch one from my app? [20:10] I'd do it in process, myself [20:11] http://doc.qt.digia.com/solutions/4/qtservice/qtservice-example-server.html [20:11] doc.qt.digia.com/solutions/4/qtservice/qtservice-example-server.html [20:11] hah [20:11] top hit [20:11] that's qt 4 [20:11] but you can see that it's possible [20:11] I'm not enough of a C++ guy to know how to do it, though [20:11] and we can't do python apps :) [20:11] but surely I could ship a tiny binary server? [20:12] yeah [20:12] I don't know how the application lifecycle works then, though [20:12] spawn it then launch my browser container thing [20:12] you're not allowed to run background apps, right? [20:12] but its not background [20:12] it's run by my app [20:12] what happens if you just execute system("something &") [20:12] which is currently in the foreground [20:12] dunno [20:12] yeah, but it has to be a separate process [20:12] popey: can you not use file:/// urls? [20:12] no diddledan [20:12] otherwise your foreground app is blocked [20:12] dang [20:13] that sucks [20:13] or it has to be in-process [20:13] so now "your app" is two processes; the webserver, and the browser container [20:13] I don't know if that's allowed. [20:13] tedg or jdstrand or someone would know, I imagine [20:13] i dont understand why it wouldn't be [20:14] surely apps dont have to be 1:1 app:process [20:14] well, the app lifecycle thing suspends your app when you switch to another app [20:14] right [20:14] but Im not doing that [20:14] I'm looking at my app [20:14] and this is a child of my app [20:14] we should move this to -app-devel and highlight relavent people ☻ [20:14] if your app's started 2 processes.... how does the lifecycle thing know which 2 processes they are? [20:14] cgroups iirc [20:15] thats not something you or i need worry about [20:15] you start your app, your app could spawn 10 processes, but they belong to that upstart job [20:18] Does a bug being marked as 'confirmed' from 'triaged' suggest anything about an intention to fix it? [20:22] (it's bug 1243240 which I suspect to be either user-error or working-as-designed, so I'm intrigued as to whether that status change implies a future change to these menu buttons) [20:22] bug 1243240 in indicator-messages (Ubuntu) "It is unclear what sort of unread message is being indicated" [Wishlist,Confirmed] https://launchpad.net/bugs/1243240 [20:25] popey: re phaser.io, with Qt you can override the http transport mechanism and therefore cause your app to handle all requests internally... it's really very good [20:25] oh? [20:26] that sounds delightful [20:26] yeah there is a class called like QtWebkitHttpRequest or something [20:27] i've used it for my web archiver in order to catch and archive all http requests done by the page, but you could also redirect the requests to local resources [20:28] ali1234, ooh, that's a sneaky plan -- have the web *think* that it's doing http requests but instead they're being intercepted. [20:28] clever [20:28] still needs c++ though :) [20:28] you can do it in python also [20:28] you can't do anything good with only QML... despite what the developers say, it's really just a replacement for XML user interface files [20:29] no python on the phone, is the problem there. [20:29] http://qt-project.org/doc/qt-4.8/qnetworkrequest.html <- i think this is the thing you need to hook into... but i can't really remember [20:29] I disagree; you can do a lot with pure QML [20:29] there is python on the phone [20:30] root@black-phablet:~# python [20:30] Python 2.7.6 (default, Mar 22 2014, 23:30:12) [20:30] but you hit problems in certain areas where qml just isn't there for you [20:30] popey, but writing click apps in it is not allowed, right? [20:30] you can do a lot... but not anything interesting [20:30] actually i would apply the same criticism to click apps [20:30] depends on your definition of interesting, I suppose. If you could have written a phonegap app to do it, you can do it with pure QML instead, mostly. [20:31] i dunno what makes you say python isnt allowed [20:31] long running python programs are discouraged, sure [20:31] popey, it's OK to write click apps in python?? [20:31] i have not heard anyone say no [20:32] I have. It's all "use pure QML if you can; C++ and (soon) Go if you need more, or C/OpenGL" [20:32] if that's wrong, then great! [20:32] thats the recommnended supported path [20:32] i would expect you could override Qt classes with Go [20:33] you can -- gustavo and others have made go a perfectly good Qt host lamnguage, apparently [20:33] although I havent' tried it, yet [20:34] I had a cursory look at QML - it looks weird to me coming from an HTML background [20:35] it's got some weird parts. But I like it. [20:35] diddledan: it's just like HTML/javascript DOM, except with Qt objects instead of HTML elements [20:35] and the syntax is a little bit weird [20:36] oh I does have programmability? from what I saw (very limited) it was just markup with very little actual logic [20:37] no that's about right [20:37] it has the same level of programmability you get with javascript, because that's basically what it is [20:37] you can do logic, and set/get properties on Qt objects [20:38] you can't make new Qt objects [20:38] you can probably do pixel access on a QCanvas but it's going to suck [20:38] if you want to do complex things, you build the component in C++ and then use it in QML [20:40] it's designed for kinetic scroller apps and very simple 2D games (eg solitaire, minesweeper) [20:40] basically the kind of shovelware you find in app stores for 99c [20:43] aquarius: right, so any time you wanna make me a framework app that I can stuff my phaser.io code in. that'd be sweet ☻ [20:43] lol [20:43] that sounds like an interesting challenge actually [20:43] what does it actually need on the server side? [20:44] so the idea was to write a simple game for ubuntu phone using phaser.io [20:44] but this was the stumbling block i had [20:44] popey, it's doable if I can use Python. I'm still on 13.10 right now, but once I upgrade I'd be happy to throw together a tiny PyQt app to do it, assuming that pyqt is available on the phone! [20:44] so the game needs to be in a directory that the server serves out [20:44] is that all? just serve files? [20:45] aquarius: no pyqt [20:45] popey, if I can't use Python for this (say because PyQt isn't on the phone) then you'll need a C++ person, and I suspect ali1234 is your man ;) [20:45] ali1234: i think so [20:45] in fact [20:45] you might not need to do anything at all if it just serves files [20:45] i thought it might be handy to have a framework into which people could dump their phaser.io game, run "click build foo" and job done [20:45] for a c++ person it'd take about fifteen seconds to write a tiny app which launches a qtwebkit container and overrides its http requests to point at a folder. [20:45] just convert all URLs from http: to qrc: [20:45] or file: [20:45] no, file wont work [20:45] it needs get requests [20:45] why not? [20:46] oh. and what does it do with those requests? [20:46] same origin policy,. [20:46] well, for loading assets and tilemap etc [20:46] two file: URLs are not in the same origin, so a browser will sod you up. [20:46] you can turn that stuff off [20:46] not very easily :( [20:46] not on our browser I suspect [20:47] qtwebkit doesn't expose as much stuff as it perhaps should. [20:47] so... where is the code that runs on the webserver to make this stuff work? [20:47] it's easier to have the html/js believe that it's talking to a server and operating as it expects, even if behind the scenes you trap the requests. [20:47] https://github.com/photonstorm/phaser-examples for example [20:48] popey.com/~alan/phaser/phaser-examples/examples/ e.g. [20:48] there isn't any server-side code; it's all client-side. But it expects to be running from a webserver, not from file: URLs, so that everything's int he same origin. [20:48] yes, that [20:48] Yes, you can, if you know what you're doing, make this stuff work with file: URLs, but it's actually harder than *not* doing that and instead overriding qnetworkrequest or just running a webserver. [20:49] popey: so what's actually in that directory server side? [20:50] just a git clone of that github repo [20:50] nothing more [20:50] nothing at all executable [20:50] its serving static files [20:50] correct [20:50] so you don't actually need http urls then [20:50] other than what aquarius said [20:50] the server isn't doing anything with the get requests [20:50] phaser.io is known not to work with file urls [20:50] it's just handing them back to the browser [20:50] if you don't use http urls, the browser security model will sod you up. [20:50] yeah but that will be the origin policy only [20:51] so you can either use http, or turn off the security model. [20:51] I think that using http (from the browser's point of view) is easier [20:51] and then override that http in Qt so that it's *actually* just serving files. [20:51] yeah [20:51] that would be one way to do it [20:52] btw: http://stackoverflow.com/questions/8090462/qtwebkit-same-origin-policy [20:52] it might not work with file: in a normal browser, but what if you do that? ^ [20:52] as you said above, just handle qnetworkrequest to do the moral equivalent of "on request http://localhost/$foo: return load_text_file($currentdir + "/" + $foo)" [20:53] browsers are weird about file: URLs [20:53] I've spent ages in the past trying to override that in order to serve complex web apps from the filesystem [20:53] and it's just not worth the hassle. :) [20:54] if you're served from a file: URL, you can't make XHRs to file: URLs, even if they're in the same origin [20:54] so you'd have to turn that off too, etc, etc. [20:55] maybe it's worth trying the suggestions there [20:55] trying it.. [20:55] (although I think those are the Qt 4 WebSettings things, but maybe it hasn't changed much in Qt 5) [20:55] this might also be problematic when Oxide arrives, but then so will overriding qnetworkrequest :) [20:56] worth a try, indeed [20:56] oxide arrived [20:56] rly? [20:56] which is my next question, can you embed oxide in qt rather than qtwebkit ☻ [20:56] the changelogs don't seem to mention major changes tot he web browser? [20:57] liboxideqtcore is on the image [20:57] popey, if oxide has properly arrived then you should be automatically embedding it without changing anything, as I understand it [20:57] ah. "Oxide is available" is not the same thing as "the platform web widget and the browser are now oxide" ;) [20:57] we may be in the interregnum here. [20:57] the browser is [20:57] and the webapp thing is [20:57] !! [20:57] way faster [20:57] that's what I was checking the changelogs for [20:57] I must have missed it. [20:58] I shall upgrade to 303 then :) [20:58] no need [20:58] its in the released image [20:58] wait, which one you on? [20:58] 296. [20:58] wwait one [20:58] ok, my "stable" phone is 302 which already has it [20:59] right [20:59] I am now upgrading :) [20:59] arrived in 295 [20:59] people.canonical.com/~ogra/touch-image-stats/295.changes [21:00] um... okay [21:00] it "just works" [21:01] ali1234, cool -- then perhaps I was overly cautious! encouraging [21:01] http://paste.ubuntu.com/7325256/ [21:02] neat [21:02] presumably it would work in QML too with no problems [21:02] popey, it'd be useful to try that and test all the examples [21:02] I'm not sure if you can get the current folder in QML [21:03] but you'd know where you app is going to be installed [21:03] nope [21:03] npe [21:03] lol [21:03] it's not installed to a hardcoded path [21:03] click packages are relocatable [21:03] embed everything into the exe then [21:03] precisely absolutely to stop people hardcoding paths into their apps. [21:03] and use qrc: [21:03] ali1234, if you're in qml then you don't have an exe, ideally -- just use qmlscene. The instant you have your own exe, you're a C++ person, which I suspect popey is trying to avoid :) [21:04] well [21:04] if you can't use qrc and you can't have a known resource directory... how the hell does anyone do anything at all with QML? [21:05] surely you can use relative paths [21:05] file:///./foo [21:05] perhaps [21:05] popey, you *might* be able to make your command line in the desktop file be something like "qmlscene $PWD myapp.qml" or something [21:05] I don't know if the current directory is actually set to your app's install location, though. [21:06] self.web.load(QUrl("examples/index.html")) works [21:06] sounds like another question for -app-devel, that: how do I construct a file:/// URL in QML/HTML without writing a C++ plugin to return the current directory? [21:06] perfect [21:06] ali1234, that'll work on the desktop, ya, but the phone's a mildly different operating environment [21:07] thats should work there too imo [21:07] * popey will test [21:07] it shouldn't matter, if it does then QUrl has a bug [21:07] ali1234, you're saying that QUrl is *supposed* to resolve URLs relative to the path of the Python file? [21:07] not relative to the CWD? [21:08] if even CWD isn't right under click packages then click packages are retarded [21:08] Disagree. [21:08] it is [21:08] I think it would be perfectly reasonable for the CWD to be the user data folder for this app, not the program data folder for this app [21:08] the CWD is where the main qml file is [21:08] panic ye not [21:08] AIUI [21:08] popey, ah, really? then you're OK :) [21:09] well the question is not just about QUrl but *anything* you load from disk [21:11] not all of these games actually work btw [21:11] breakout and invaders don't work [21:13] they don't work when loaded from http either though [21:13] probably webkit bugs [21:14] hmm anyone set up a LT2P VPN on Ubuntu ? [21:24] ali1234: i just tested with qml and it fails... [21:24] https://imgur.com/0t4x7Q6 [21:24] paste.ubuntu.com/7325356/ [21:24] probably made changes in Qt5 then [21:27] I don't know if the allow-file-access-from-files setting is exposed to qml's webview [21:27] but I'll bet that's what's causing it to fail [21:27] that needs turning on [21:28] qmlviewer: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmlviewer': No such file or directory [21:28] you'll want qmlscene for qt5 [21:28] qmlscene -qtf foo.qml [21:28] er [21:28] qmlscene -qt5 foo.qml [21:28] qmlscene: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene': No such file or directory [21:29] fun [21:29] what is oxideqmlscene? [21:30] installed it, now i get: local.qml:3 "components": no such directory [21:30] you're missing the ubuntu sdk I imagine [21:30] nvm [21:31] why does ubuntu-sdk want to install indicator-network? [21:32] there should be a way to install an sdk that won't totally mess up my system by installing things like unity, mir, ubuntu-system-settings etc [21:33] +1 [21:33] just don't implement that using scratchbox [21:33] because that is even more intrusive and dangerous [21:39] install ubuntu-sdk, still doesn't work [21:50] diddledan: remember when i said i was going to ask you a hard question? what do you think about this: http://paste.ubuntu.com/7325524/ http://paste.ubuntu.com/7325523/ [21:51] is making so many media rules going to clog the browser? [21:51] is there a better way to do it, that doesn't involve javascript? [21:52] wow that is a fair few. TBH I've not done any investigations into the slowdowns caused by media query proliferation. I tend to use SASS/SCSS or LESS which means I probably end up with a similar explosion of media queries [21:53] yeah, i've looked at those, but the have a tonne of depencies that i don't understand, so i just wrote a python script that does the same thing :) [21:54] maybe i should just use javascript for this - it would be more likely to work in every browser... [21:54] you don't really need to worry about the dependencies, gem (for sass) or npm (for less) tend to take care of it all automatically [21:54] and directly calculating the optimal width would be much easier since i could just get the parent element size instead of having to guess it based on the media width and height [21:54] yeah thing is i don't have gem or node installed [21:55] apt-get install node [21:55] i don't want to [21:55] :-p [21:55] lol [21:55] stick-in-the-mud! [21:55] anyway, generating the css isn't the issue [21:56] all i want is to arrange a bunch of equal sized images into rows using the space optimally [21:56] minimizing height while ensuring no image is smaller than a fixed pixel size, and also making sure each full row completely fills the space [21:57] and ensuring there are no more than (number of rows-1) empty spaces in the grid [21:58] I'm not sure there's an easy answer for that [21:59] in javascript it wold be a few lines [21:59] and the page requires javascript anyway [21:59] so i might as well do that [22:01] at the end of the day all it has to do is decide how many items per row based on the container size in pixels, the minimum item size in pixels, and the number of items [22:01] yeah, I tend to be of the opinion that : try not to use javascript at all bar for visual gimicks UNLESS you're already using javascript for inherent functionality of the site. [22:01] so in this case you're on the UNLESS step [22:01] and then set width:$(100/n)%; on every item [22:02] http://dev.drumoff.tv/ is the site - this is for the video player right in the middle, for the playlist [22:03] note this website is fully responsive too, so everything resizes all the time [22:03] ali1234, you know about flexbox, yes? [22:04] is that like lightbox? [22:04] no. layout method [22:04] css [22:04] it takes a bit to understand it [22:04] but I think once you do understand it, it may well be able to do what you're talking about above in pure css [22:04] that's not what i want. all the images are guaranteed to be the same size [22:05] maybe it is what i want actually [22:05] no guarantees that it's exactly what you want, but it looks like it should be [22:05] also, why not just float the images? [22:06] they *are* floated [22:06] if they're floated, and sized in percentages, why do you need the calculation stuff? I must be missing something? [22:06] because i don't know in advance how many mages there will be [22:06] and there might be too many to fit on one row [22:07] if there are 11 images, i want 6 x 2 [22:07] if there are 14 images i want 7 x 2 [22:07] unless the container is narrower than 7 * 70px [22:07] then i want 5 x 3 [22:07] but they're all guaranteed to be the same size, you said [22:07] etc [22:07] yes [22:07] what if 6x2 doesn't fit? [22:08] then 4 x 3 [22:08] they're scaled by the front-end [22:08] percentage-based [22:08] they are all the same size, and scaled to (the same) percentage of that, depending on how many images i want per row [22:08] ah! [22:08] bingo [22:08] you're OK with changing the image size [22:08] hang on let me turn on debug and you can see the effect [22:08] got it. [22:09] I'd do that with JS, myself. [22:09] okay reload :) [22:09] and try resizing the page both horizontally and vertically [22:09] url? [22:09] this is currently done with pure css [22:09] dev.drumoff.tv [22:09] ah dev.drumoff.tv [22:09] scroll to video player [22:10] it has multiple rows now, with 5 to 21 images [22:11] *nod* I don't think that's sensibly doable in pure css, indeed [22:11] question: how do I enter to win those cool prizes alluded-to by the slider? :-p [22:11] i found two bugs in chrome while making this [22:11] you can do it the way you are doing it, with loads of media queries [22:11] having loads of media queries won't massively impact the browser [22:11] diddledan: you film yourself playing a 30 second drum solo and enter it into the competition [22:11] but it will make your debugging life a misery ;) [22:12] dang [22:12] I'm not good at drums [22:12] will a kazoo be as good? [22:12] work on it sir! [22:12] also hi [22:12] ello :-) [22:12] no, it has to specifically be only kick snare hat [22:12] i be lurking [22:12] -_- [22:13] was that even a thing, or just three random words put together? [22:13] they are all types of percussion [22:13] kick punch nose [22:13] :-p [22:13] sounds like animal cruelty to me. although I'm not sure why a hare needs a hat [22:14] how else would it come into being? [22:14] shauno: you do mac, fix my time machine [22:14] what be broke of it? [22:15] well, basically. time machine. the rest is just details [22:15] it complains about null [22:15] delete that plist? [22:16] which plist? [22:16] o_O [22:16] i think it determines TM's config or some jazz [22:16] then it's defaulted and you can start anew [22:16] but then I lose my history [22:17] hence, no point in TM at all [22:17] nah you just link it up to the drive again [22:17] that's a good thing. your history is pretty shady. [22:17] and it knows based on name etc [22:17] every time I've reset tm in the past it's created a new backup [22:17] such as by installing from a TM backup causes TM to reset the TM history [22:18] yeah it'd do a whole full backup again [22:18] then what's the point of historical backups?! [22:19] well you could give us better logs instead sir :) [22:20] ok, "The backup disk image "/Volumes/TimeMachine/tantalum.sparsebungle" could not be accessed (error (null))." [22:20] lol bungle [22:20] bundle? [22:20] last successful backup says the twenty twoth [22:21] curious, what's the bungle hosted on? [22:22] oldest backup is the 2th because that's when it last ducked-up and I reset the thing [22:22] freenas [22:22] (assuming it's a remote share, since that's why it'd use a bungle) [22:22] heh is it not bundle [22:22] it's killing you isn't it. bungle bungle bungle [22:23] 8D [22:23] http://news.bbc.co.uk/olmedia/1355000/images/_1359371_rainbow_300.jpg [22:23] sprucebungle [22:23] shauno: that reminds me of the song [22:24] try to open it in finder? [22:24] (my gut feeling is going to be stale locks) [22:25] I've reboobed since it first appeared [22:25] it also loads fine in finder [22:26] even the disk image? loads up ok? [22:27] can you bring it into disk utility and verify it or something 0o [22:27] not a remote share I can't [22:27] the file though [22:28] a sparsebungle isn't a file [22:28] it's a folder [22:28] oic [22:28] not encountered that before then [22:28] yet i've got a client with 10.9 TM backups [22:29] it's a disk image that's sliced into chunks (usually 10M?) [22:30] yeah looks like 8MB [22:30] it'll appear as a single file in Finder, but not on disk (the same as .app etc do) [22:31] ls [22:31] oops [22:31] $ diddledan [22:31] you can right-click and select show package contents tho [22:31] or you can use the terminator [22:32] double-clicking the sparsebungle opens up as a disk image which I can browse and showing package contents also opens which I can browse [22:32] they're actually handy for various uses. like if the underlying filesystem doesn't like huge files [22:33] or if you're syncing them to somewhere else. you can just send the chunk that's changed instead of the whole filesystem [22:40] you know i nearly dropped £380 on 6 x 2TB WD Reds last night [22:40] but instead i just ordered 1 x 1TB WD Red to fix my existing array ;x [22:41] diddledan: i'm seeing a post on a site saying they fixed that error by renaming their system 0o [22:41] actually that's just gonna cause a full backup too isn't it [22:46] lol @ http://www.kitguru.net/channel/generaltech/bob/nypd-suffers-huge-twitter-pr-failure/ [22:47] old :p [22:49] good evening [22:49] morning [22:49] my brother is famous: https://www.youtube.com/watch?feature=player_embedded&v=TXkAHLlbEPQ (he's talking about the sex-aid at 1:33, sounding like farmer giles) [22:49] (SFW) [22:50] or rather VSFW [22:50] very-safe [22:50] i was about to aslk [22:50] heard sex and wondered [22:50] I'm not sure I want to click on farmer gile's sex-aid no matter how safe it is [22:50] yeah, I realised I left it somewhat open-ended [22:51] he's talking about "FatMax Compound Action Pliers" which to me sounds like a sex-aid [22:51] a farmer aye [22:51] il watch [22:52] he's done a few. managed to get himself on stanley's tool jury [22:52] http://www.stanleytools.co.uk/tooljury/who [22:53] wheres he from [22:53] near me [22:53] :-p [22:54] just outside basingstoke is where he grew-up - he's now living/working andover area === Lcawte is now known as Lcawte|Away [22:54] which isn't that far afield [22:54] about 20 miles down the road from amazingstoke [22:54] oh [22:54] thats not farmer area [22:54] lol [22:54] no, indeed [22:54] which is why I commented on it :-p [22:55] speaking of countryfolk, what's the difference between a city fire engine and a country fire engine? [22:56] nobody? [22:56] well, a city fire engine goes NEENAANEENAANEENAA. while a country one goes ooh arr. ooh arr. ooh arr. [22:57] I'm trying to order pcbs, and I can't decide on a colour. this is silly. [22:57] shauno: red [22:58] +1 for red [22:58] brb [22:59] https://www.youtube.com/watch?v=DgI8Q-lwGkc#t=455 [23:03] LOL diddledan [23:03] IM FROM near woking [23:03] btw [23:12] hah! http://www.kitguru.net/channel/generaltech/bob/how-does-a-battlestar-survive-a-cylon-nuclear-strike/ [23:22] http://paste.ubuntu.com/7325972/ <- jquery justified list :) [23:22] :) [23:23] the ability to check innerWidth (which css cannot do) really simplified it a lot [23:23] what you making [23:23] a video player [23:36] open in google chrome: http://workshop.chromeexperiments.com/stars/ [23:37] if you don't feel small after that you're an egotist [23:37] or a mormon [23:37] or both? [23:39] lol @ "Warning: Scientific accuracy is not guaranteed. Please do not use this visualization for interstellar navigation." [23:41] http://faildesk.net/2014/04/24/throw-back-thursday-pic/ <-- why did they need a "turbo" button. I mean who didn't always have that turned "on"? [23:43] kinda makes me sad that we're back to "open this in this browser" again [23:43] shauno: yeah, blame google [23:43] shauno: it _might_ work in others but it's a "chrome experiment" so I would guess not [23:44] seems to work fine in Safari [23:45] works in firefox, too, by the looks [23:47] diddledan: because games at the time assumed a 4.77MHz clock speed [23:47] and would run too fast if turbo was "on" [23:47] I had one on my Epson pc [23:47] hahha turbo neat [23:47] which ran at a whopping 8MHz [23:47] lol [23:48] nuts [23:49] nucking ones [23:50] completely ucking fay uts nay [23:50] :-p [23:50] swearing by the backdoor! [23:50] * diddledan notes the sign that says "family friendly" or some such [23:50] -_- [23:58] serials? Linux Voice news roundup this month suggests that kernel-devs are considering QR codes for crash reports