You want to clear cache for testing/profiling reasons, so you can run multiple tests while always starting with an empty cache. You should never do that in normal use, since the cache will have to be re-filled.
When you create a RPM package with python's distutils, there is something rater annoying: you can't change the package name. or at least not easily. After a moment of bad/hard solutions, I've found a easy and clean way to do it: Let's say you have a customized nose. When you create the RPM with "python setup.py bdist_rpm", the resulting package is nose-$version.rpm, but you want it to be python-nose-$version.rpm, so it can be recognized by redhat packages. But a src.rpm is also created! You just have to install (rpm -i) the src.rpm, this will create a .spec file in ~/rpmbuild/SPECS and a tar.gz in ~/rpmbuild/SOURCES. Now, edit the package name in the spec file, decompress/rename the folder/recompress the tar.gz. Run rpmbuild -ba ~/rpmbuild/SPECS/yourspecfile.spec and the new/renamed RPM is in ~/rpmbuild/RPMS.
I was looking for an example on how to return an array of struct in a D-Bus program, and I found nothing. So here is a fast note for later reference. This is pseudo code, just to show you how to proceed. So you want to return a "a(si)", that's it, an array of struct containing each a string and an integer. in your example.xml: (process with dbus-binding-tool as usual) <node name="/com/example/Example"></node> <interface name="com.example.Example"></interface> <method name="getExampleArray"></method> <arg type="a(si)" name="array" direction="out"></arg> </method> </interface> </node> in your example.c: // you define your structure here by using get_struct #define DBUS_STRUCT_STRING_INT (dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING, G_TYPE_INT, G_TYPE_INVALID)) gboolean desktoptracks_get_example_array(De...
This is part two of the capture of Stars for Youtube. Video Generation The process is rather simple: Run demo on Dosbox, capture the video. You get a 70fps 320x200 video using the lossless zmbv codec for images, and lossless PCM audio. As the demo is a plain VGA program, this is a perfect copy of what is displayed/played by the demo. Play the 320x200 video with Retroarch, with CRT-shader and video capture. In Retroarch settings, I choose the target resolution, activate video lossless record + GPU shader record. As Retroarch won't play zmbv video, I first transcode to "lossless" h264, also setting the aspect ratio for the next pass. After Retroarch, I transcode the video to h264 Q1 to reduce the video size from 30GB to 10 GB, with no visible quality loss. Here is the makefile I used for the conversion: https://gist.github.com/kassoulet/485ce8bb3c29461ae67a5aeb5a683fbe (remember, the audio is taken from a video I generated using the remastering done in part one)...
Comments
I thought that disk cache is a way of getting to your recently used files faster.
Please reply to pascal (at) tipisoft.dk
Using "sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'" probably makes more sense than involving tee.
Also, your post is formatted such that I couldn't read the line (fixed width, font goes off edge) and had to dig it out of the HTML source. :-)
But again, thanks.