IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2015/07/28)20150729 
rayjj I've had VS 2015 RC supposedly uninstalling (so I can install the release) for 6 hours. It's still says "Applying" and looks to be about 80% done :-(05:52.11 
  I want to get to the release version cleanly. I guess I should have installed this in a VM I could have just dumped. NEVER TRUST MS05:53.02 
  I'll leave it overnight and check again in the AM -- about 8 more hours05:53.49 
kens And another idiot free user.....07:27.52 
Robin kens, chrisl: FWIW, we haven't figured out Bahamas flights yet.07:34.57 
  I think we are locked into going early and coming back soon after the meeting, as Helen has a concert.07:35.20 
kens Robin, I'm seriously tempted by the BA flight to Nassau and then an intgernal flight to Freeport07:35.21 
Robin Probably flying 1st, then back on the 7th.07:35.36 
kens We're comfortable either way07:35.46 
Robin But that option is not available those dates :(07:35.48 
kens Ah, I hadn't nailed it down that closely07:36.07 
Robin 2nd to 8th it is, but Helen has a concert on the 10th.07:36.13 
  So landing after a red eye on the 9th is not ideal.07:36.22 
kens We don't all have to fly on the SAME DATES OF COURSE07:36.23 
Robin of COURSE ;)07:36.30 
kens stupid caps lock key :-)07:36.36 
Robin goes to bed. have a good one.07:36.49 
kens We might do the 2nd to 8th07:36.56 
  G'night Robin07:37.03 
sebras kens: do you ever use it for real? I usually remap it, but I have had colleagues who physically removed the caps lock key.08:09.14 
kens sebras, no I never ever use it intentionally08:10.19 
sebras kens: rip it off! if for no other reason then your keyboard is broken and you will have to buy a new natural keyboard! :)08:13.39 
kens :-D08:13.47 
tor8 kens: http://johnhaller.com/useful-stuff/disable-caps-lock I've found the caps_lock_to_control.reg file essential09:04.49 
kens Already done it tor8 but thanjks09:05.03 
tor8 kens: ah! :)09:05.16 
kens I still need to reboot though09:05.36 
tor8 kens: LHR-NAS flights are available on the 2nd and 8th09:07.16 
kens Yes and I thnk also the 30th and 6th though I have not checked09:07.39 
tor8 hi fredross-perry09:09.04 
fredross-perry howdy09:09.13 
ghostbot Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line.09:09.13 
tor8 fredross-perry: sorry, hadn't got to your email yet yesterday09:09.25 
fredross-perry not urgent, but interesting i suppose09:09.38 
tor8 The img->interpolate flag is set from the PDF document (the /Interpolate field in the image dictionary)09:10.31 
  the 'arbitrary' decision is actually going the other way :)09:11.54 
  but when magnifying non-interpolated images we really shouldn't interpolate. it'll mess up things like QR-codes.09:12.14 
  *however*, I believe Preview.app doesn't respect the /Interpolate flag at all09:12.51 
fredross-perry Is there a tool I can use to see if the /Interpolate flag is set in my file?09:13.43 
  something to dump the structure?09:14.00 
tor8 fredross-perry: mutool info file.pdf <page> will list the image object numbers09:14.41 
  mutool show file.pdf <object number> will dump the image dictionary object 09:15.12 
  Unfortunately, the default value for /Interpolate is false.09:15.55 
  Lots of people writing PDF files probably don't think about that, and leave the default as is, which is most likely what's happened in your case.09:16.25 
fredross-perry I’d bet that most people writing pdf files dont even use tools that allow for it. I for example, do save as pdf from OSX’s print dialog all the time.09:17.30 
tor8 fredross-perry: I've toyed with the idea of flipping the default (counter to the spec) but that could backfire09:18.31 
fredross-perry but, I believe that i AM getting interpolated on my non-retina mac.09:18.50 
  I’m just thinking it might be good to have an option to force it one way or the other for folks who think they know what they’re doing.09:19.31 
kens GS has -dDOINTERPOLATE and -dNOINTERPOLATE :-)09:19.54 
tor8 we always interpolate for minification and for very small magnifications09:19.57 
  but for magnification, we respect the flag09:20.10 
  kens: do those options force the issue, or change the default?09:20.45 
fredross-perry ok, goodnight then.09:21.35 
tor8 I'd be okay with an option/setting to change the default; like how we can change the anti-aliasing level09:21.47 
  fredross-perry: good night.09:21.52 
kens tor8 I believe they force the option, override the image dictioanry09:22.35 
  I'm off out for a couple of hours now09:22.47 
jogux henrys: ahh. From Ted's email to sos last night I can now see why they want to push a new mupdf ui... I guess it's definitely worth asking the uI designer if/when they can fit it in then.09:49.33 
Mikael_ hi !09:51.18 
jogux hi Mikael_ 09:52.38 
Mikael_ in mupdf, did you consider to add the posibility to save the marks on disk ?09:54.08 
tor8 Mikael_: yes, the only "problem" is deciding where and in what format to save the marks09:54.54 
Mikael_ ok09:55.00 
tor8 the same code runs on both linux, macosx, and windows09:55.03 
Mikael_ is there a discussion or something about what are the possibilities ? I would use a lot this feature, especially to read long pdfs09:56.39 
tor8 Mikael_: no, nothing written down.09:58.35 
Mikael_ you could do something like mpv. For each file I didn't finished watching, it keeps a file in .config/mpv/watch_later/<hash of the filename> containing the parameters to reload, including where in the file I stopped10:00.47 
tor8 in terms of file format, I'd expect something like JSON where we save last opened page and bookmarks per file10:02.55 
  there's the issue of multiple open instances not clobbering each other when saving10:03.15 
  so it's a non-trivial problem10:03.24 
Mikael_ why not sqlite ? It would solve the concurrency problem and it's cheap enough10:16.18 
  simple setup : one table containing the file name, the last page number seen and maybe the named and unnamed marks10:28.12 
  the unnamed marks stack may be a problem, so maybe put it as a string like 123:425:312:1:310:29.17 
tor8 sqlite is both overkill and yet another thirdparty library dependency which I'm reluctant to add10:30.17 
Mikael_ this setup should be portable across systems, only the db path changes10:30.18 
tor8 don't get me wrong, I like sqlite and I'd love the opportunity to work with it, but for this it does seem overkill10:30.44 
  and IIRC it doesn't completely solve the concurrency problem -- last I looked sqlite needed file locks so only one sqlite process had the db open at the same time10:31.22 
  the concurrency problem is not difficult, it's just a matter of reloading, merging diffs, and saving out again10:31.51 
Mikael_ I agree it's a bit overkill. BTW, the file lock is only on writing, not reading10:32.38 
sebras tor8: I rebased my gif patches ontop of sebras/master10:42.38 
  tor8: do you mind merging them?10:42.50 
tor8 sebras: ah, the GIF support :)10:43.50 
  sebras: all LGTM, I'll push10:44.25 
sebras tor8: I thought we merged that before your absence, but I was suprised when I noticed that we didn't just now.10:44.27 
  tor8: sweet.10:44.51 
tor8 yeah, I think you finished that at a bad time just as I was heading out for vacation10:44.52 
sebras tor8: no problems. as long as it is merged at some point.10:45.12 
  tor8: thanks!11:03.33 
kens jogux I meant to say that if it makes life easier for you and Pete, we'd be happy to put people up overnight. We live 20 minutes drive from Gatwick and have several spare bedrooms, especially when Melanie is at university. It 'might' be simpler for you to travel to Gatwick and then we can all go round to Heathrow together to fly out.12:39.31 
jogux kens: oh, many thanks... that might be good. I'll need to properly check the flight options sometime, will let you know :)12:44.29 
kens No problem, I don't know when we're flying yet anyway :-)12:44.48 
Metaluim hi14:03.01 
ghostbot Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line.14:03.01 
Metaluim Iḿ using the mupdf C library for some work14:03.37 
rayjj stoopid VS 2015 RC never finished the uninstall (I left it running overnight, so > 15 hours). Even the 'cancel' is just hanging saying 'Stopping current session'. First task manager kill, then I may (probably will) have to reboot :-(14:03.39 
Metaluim currently Iḿ trying to embed a file as an attachment14:03.54 
  I open a template PDF file, load the first page and create an annotation on it14:04.07 
  then I set the contents14:04.15 
  all is well but when I open that saved file from another place in the code, the annotation I created isnt there14:04.43 
jogux Metaluim: so you're calling fz_write_document() and the file isn't actually been updated?14:22.38 
  I don't understand what 'then I set the contents' means.14:23.21 
Metaluim yeah, I call fz_write_document and the file is updated14:23.57 
  at least the modification time14:24.02 
  I set the contents of the annotation, I mean14:24.13 
  one sec Iĺl give you a snippet14:24.47 
  https://gist.github.com/Metaluim/2c9d340f0f93b21bf9c014:26.26 
jogux hm. I've never used FZ_ANNOT_FILEATTACHMENT. tor8 may know more14:32.22 
Metaluim well I can try another type I guess14:33.31 
  just to see if that is a problem14:33.42 
jogux what OS are you working on?14:33.49 
Metaluim my first guess was that I was probably missing something like binding the annotation to the page or whatever14:34.09 
  windows 8.114:34.12 
  the code will run on windows, mac os x, as many flavors of linux as possible and possibly other systems14:34.44 
kens At ths point Robin usually pipes up and mentions licencing, since he's on holiday....14:36.40 
  Metaluim, you are aware that MuPDF is licenced under the AGPL, and understand the restrictions of that licence ?14:36.40 
Metaluim hmmm14:38.18 
  I thought it was LGPL14:38.27 
  what does it imply?14:38.32 
kens Well, it means you have to make your source available as well, mainly14:38.50 
Metaluim even if I link it as a shared library and not a static library14:39.26 
kens If you are planning an open source release that's probably not too onerous, but it does mean you'd have to adpot the AGPL not LGPL, and AGPL is more restrictive14:39.27 
  That depends on your reading of the licence terms. I can tell you that Artifex' interpretation is that a dynamically linked library is still covered14:40.10 
chrisl Metaluim: neither the GPL nor the AGPL have the exemption for shared libraries that exists in the LGPL14:40.37 
Metaluim hmmm, ok Iĺl inform my management about that, we may open source if it is necessary14:41.13 
  I dont think its an issue for them14:41.21 
kens Just so you are aware, wouldn't like you to waste time and discover this too late14:42.01 
sebras kens: but should Metaluim's management not like the idea of open sourcing, then they have the option of asking about a commercial license for mupdf from artifex, right?14:43.28 
kens Certainly !14:43.38 
Metaluim oh, how would I do that?14:43.52 
kens You would contact sales@artifex.com14:44.08 
  They will then send a big long scary questoinnaire, much of whch makes no sense in your business.14:44.30 
  You fill in the bits that do, and they would negotiate a commercial licence14:44.44 
Metaluim ok, Ill pass this onto my management then14:44.59 
  thanks :)14:45.05 
chrisl Metaluim: occasionally new enquiries get spam filtered, so if you do contact sales@artifex.com and you don't here back in a few days, pop back here, and we'll follow up14:45.59 
  s/here/hear14:46.12 
chrisl must be tired :-(14:46.18 
kens Too much squash training :-=)14:46.26 
Metaluim sure14:46.28 
  I chose mupdf because I needed a cross-platform C library for PDF handling14:46.50 
  and to my surprise, this was hard to come by14:47.02 
  at least one that modified the PDF14:47.13 
kens Yeah there aren't so may around14:47.21 
Metaluim then I tried to read the PDF standard and quickly understood why14:47.29 
kens :-D14:47.37 
Metaluim in my innocence I thought it could be easy write one14:48.02 
  but quickly decided it was better not to14:48.10 
kens Version 1.0 was quite simple.....14:48.41 
jogux gahh. anyone here who has root on casper please?16:51.02 
sebras jogux: marcosw perhaps..?16:51.42 
jogux I need someone to 'chgrp gs-priv ~robin/public_html/releases5' please16:52.23 
  sebras: Yeah, I guess I meant 'hear and awake' :-)16:52.39 
  s/hear/here/16:52.44 
Robin jogux: looking17:04.13 
jogux Ah, a Robin is even better. morning :)17:04.24 
Robin jogux: Try now?17:04.57 
jogux that's done it, thanks!17:05.10 
Robin I have to change hotels this morning, so won't be around for long.17:05.12 
  fab.17:05.15 
henrys hi Robin 17:06.54 
Robin morning henrys17:09.17 
henrys we were just talking about you17:09.35 
  Robin: Ted wants you to go with him to the Good Security summit in London Oct 1417:10.10 
Robin urm... ok.17:10.38 
henrys Robin: lucky you17:10.51 
Robin I'm not the one most 'up' on good stuff, but I can probably be available.17:11.14 
henrys so after you evict the bats the bugs which feed on the bats have nothing to eat and they go after other mammals in the house. so now I need a fumigator... crazy stuff17:12.08 
  Robin: yeah I thought Joseph or Pete but you trumped location wise, but I can try to change it if you want.17:14.53 
Robin Are you sure it's not that the bats were eating the bugs?17:14.53 
  1 bat = 2000-3000 mosquitos a night.17:15.03 
jogux even Paul has done more Good than Robin I think :-)17:15.13 
  London isn't terrible for me/Pete, we can (just) do it as a day trip.17:15.22 
henrys Robin: no there some critter called "bat bugs" which chew on bats we have them in our bedding now.17:15.34 
jogux henrys: ew! :(17:15.45 
Robin It depends what the purpose of us going is. If it's to be seen to be there, and anyone can do it, then I'm happy to take the hit.17:16.13 
  If it requires someone that actually understands the security stuff in detail, then J or P may be a better bet (pete in particular understands the issues they have with process swapping when securely loading in Android).17:17.15 
jogux Robin: henrys: https://media.good.com/documents/event-gx-london-agenda.pdf17:20.00 
  they seem to have general 'secure app' sessions and an iOS 9 session (unhelpfully at the same time)17:22.36 
  although iOS 9 will be out to the public by then anyway17:23.15 
henrys Robin: I think there is a strong case for you to be 3rd choice, thrown back into their court. Miles may want a "full time" staff member there also ... anyway nothing needs to be settled before you get back. Hope all is going well!17:28.21 
Robin_ henrys: yeah, we can sort it out when I get back.17:38.46 
jogux sadly there's no way to predict if it's going to be technically useful or not. although the mention that their head coder is there fills me with hope.17:41.13 
mvrhel_laptop rayjj: and that is why I steer clear of release candidates from MS17:43.51 
  I have had issues with getting things cleaned up too many times in the past17:44.05 
  so we are doing the 29th through the 6th for the bahamas17:44.41 
  unfortunately if miles has the outing on the 6th we will miss it17:45.04 
  Robin: did you settle on a travel date?17:45.19 
rayjj mvrhel_laptop: well, it looks as if the install of the "release" version is going OK. At least it's still making progress -- and it looks like it's got about 5% left to go on the progress bar17:45.21 
mvrhel_laptop maybe if enough fly back on the 6th he will have the outing a bit earlier17:45.45 
  rayjj: thats good17:45.59 
rayjj mvrhel_laptop: I hope I didn't jinx it by saying that. :-/17:46.24 
mvrhel_laptop :017:46.33 
henrys mvrhel_laptop: you jumped on those reservations early17:49.40 
mvrhel_laptop yes I did. I wanted to use miles for the kid's tickets and did not want to wait17:50.04 
  the kids schedule is why we have to fly back on the Sunday17:50.44 
Robin mvrhel_laptop: Have not settled on a date.17:55.45 
  I fear we may miss the 6th too though.17:55.53 
mvrhel_laptop ok, well that may be enough for Miles to make the outing earlier17:56.07 
rayjj oops. It had stalled because I was trying to get other work done. It popped up a "Please close other instances of Visual Studio" dialog *BEHIND* the installation status display. Real handy :-/17:57.37 
  I suspect that, again this year, my twins will have performances that week/weekend. I'm trying to find out. Then there is the difficulty of missing school. It was a whole lot simpler and less of an issue before high school18:01.53 
  Hurray. VS 2015 installtion completed. Now I have to reboot18:02.26 
  quit "reboot after installing VS 2015"18:02.36 
mvrhel_laptop ok. I have the gsproof part written. now to do a bit of testing to see what explodes and if mupdf can read what I write....18:14.42 
  s/gsproof/gproof18:14.54 
Robin changes hotel18:31.12 
mvrhel_laptop bbiab18:53.54 
rayjj chrisl_away: BTW, with VS 2015 (I'm still trying to get patches for a build) there are two warnings on every compile: D9002: ignoring unknown option '/GB' and ignoring unknown option '/QI0f'20:01.11 
  chrisl_away: (that's on a "Profile" target build, BTW.20:02.08 
  HUZZAH!!! I have a profile working on pcl6 (AKA gpcl6win32.exe) with the Community VS 2015 :-)20:59.29 
  This is running on Windows 7 64-bit Home Premium 21:00.51 
  running in instrumentation mode it's about 10x slower21:02.04 
  next to see if the report has anything useful/reasonable...21:04.59 
  well, it's a confusing report, but might be useful21:23.29 
  mvrhel: (for the logs) please call if/when you can -- I'd like to see if the performance profiling reports you've seen are similar, and the best way to get past the 'fluff'21:24.40 
  in the meantime, I'll be trying to dig into it21:25.03 
rayjj is greatly encouraged that I have an instrumented profile tool for Windows now (that doesn't crash my system)21:25.38 
 Forward 1 day (to 2015/07/30)>>> 
ghostscript.com
Search: