what an awesome video :D I wish that guy didn't have a sell rate in the hundreds of dollars per hour, or I'd ask him to help me figure out why ffmpeg encoding with libvpx-vp9 on an E5-1620v2 on SmartOS gives me 1/3rd the encode speed of the same ffmpeg+libvpx builds on an i7-3770 on Debian (the E5 is significantly better: more cache and higher base clock)
ffmpeg appears to have built with all optimizations and even the inline assembly enabled (I had to disable one specific codec that I'll never use to fix the build) so I doubt it's ffmpeg itself
OK, I still don't understand though. You want the max value of key2 for each key1. OK, how does key3 come into it? Do you want each key3 to be printed once irrespective of which key1 it is associated with? So, for the first key1, print the max, for the second, print the greatest key2 that doesn't have the same key3 as the one printed before?
based on what I've read so far, this looks like it may be non-deterministic "choosing" that is intractable to implement algorithmically ;-) either that or it isn't being explained properly
Basically, it looks like you want to produce output printing the largest possible combination of key2s while ensuring that each key3 is only printed once. Correct?
Umm, to be honest off the top of my head, I think this could use a dynamic programming algorithm. You'll need to build all possible paths and find the max sum. Dunno if there's a simpler workaround.
There are a number of problems with trying to enforce this "after the fact" using a cron job or similar:
Race condition. Regardless of which method you use, if you have some program or some code that will be looking through the directory and may pick up and use files you don't want it to intera...
something must be brewing inside of me due to my recent use of SmartOS
@terdon I REALLY like SmartOS. I still need to learn more and compile some more programs that aren't in pkgsrc, but damn, it's a nice OS, and the support for GNU tools makes it easy to compile most stuff from source.
Well @terdon, I suppose the script stays cool to its name of greedy approach. I basically choose something greedily and so I cannot always say the greedy approach is the best one :)
took me about 30 minutes to get GateOne running, reverse proxied through nginx, with my SSL cert installed and Google OAuth2: tiyukquellmalz.org/gateone
Ugh. Wish it were possible to comment on deleted posts, I'd like to encourage this one to undelete his question and self-answer. At least, I'm guessing 'found an answer somewhere' is why its deleted. unix.stackexchange.com/questions/144494/…
(You'll need 10k rep on the site to see that, of course)
@arielnmz (Unrelated to this question). You recently asked about how to find the name of a driver in the CUPS GUI, but deleted the question. I'm guessing you deleted that because you found an answer somewhere. If so, I suggest you undelete it and post an answer. It's both allowed and encouraged to answer your own questions on the site. That'll help the next person facing the same question. — derobert40 secs ago
It could use some copy editing, but appears to be a reasonable question to me...
@Braiam I'm not sure what OP means by "check the debconf configurations of some non-installed packages"
@derobert packages are accompanied by some debconf configurations which modify the way they are configured/installed (like mysql, which you set the mysql password at installation time) but these keys are only accessible once you install the package
Yep. But I wasn't sure from reading the question if you wanted the selections on your system (for a previously installed but not purged package), or the templates, or something else
I'm trying to find the available debconf configuration options (which key-value pairs the package supports and if possible a description of each) of some non-installed packages, like ufw, but I haven't found a way with debconf* binaries to check them out. Is there something I'm missing?
The file /etc/fstab is used to predefine mount points on your system. The third column of this file specifies the filesystem type of the device to be mounted.
Sort the contents of this file in alphabetically ascending order, using the third column as your primary key. Store the output in the new...
That post really bugs me for some reason, I think because it's a direct copy of an exam question or whatever, he couldn't even be bothered to write it as a question. If he had been , I'd have commented with sort -dk3 /etc/fstab > ~/fstab.byfs which is all he needs.
Extracting the contents is one option, as Braiam suggests. Another option is to look inside the deb using mc (midnight commander), which is a little less messy, because it doesn't explode files all over the place. mc which show the contents of the deb as a virtual filesystem, and allow you to nav...