<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Coffeepowered - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-943796e2" type="application/json"/><link>http://coffeepowered.disqus.com/</link><description></description><atom:link href="http://coffeepowered.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 17 Feb 2012 02:33:28 -0000</lastBuildDate><item><title>Re: Enabling brightness controls on an HP Envy 17 under Fedora 16</title><link>http://www.coffeepowered.net/2011/11/13/enabling-brightness-controls-on-an-hp-envy-17-under-fedora-16/#comment-441655994</link><description>In the /etc/default/grub file you will most likely see a line like:&lt;br&gt;&lt;br&gt;GRUB_CMDLINE_LINUX="quiet rhgb"&lt;br&gt;&lt;br&gt;Modify so it looks like the following:&lt;br&gt;&lt;br&gt;# GRUB_CMDLINE_LINUX="quiet rhgb"&lt;br&gt;GRUB_CMDLINE_LINUX="quiet rhgb video.brightness_switch_enabled=1 video.use_bios_initial_backlight=0"&lt;br&gt;&lt;br&gt;Note I like to keep the original line just in case so I comment the original setting out (see the "#"). It is also a good idea to save your original grub config file although it is easy to check with grub2-mkconfig if the changes are going to work. That is create a separate file in say /tmp and run a diff on the /boot/grub2/grub.cfg and the file you just created.&lt;br&gt;&lt;br&gt;If in the unfortunate situation something goes wrong you can always boot to single user mode or rescue mode (this can get a bit messy and is really out of scope in this reply) and run "grub2-mkconfig" on the original /etc/default/grub file to recreate the original /boot/grub2/grub.cfg file.&lt;br&gt;&lt;br&gt;You can even edit the "vmunix" boot options (ie. when you see the initial boot menu type "e" and select the second line with your cursor keys then again using the cursor keys for moving your cursor and backspace key for deletion you can add by typing appropriate options). This method is excellent to test out new parameters since you just need to reboot to get back to your original settings.  It is usually a good idea to have a pen and paper handy when doing this so you can add to the /etc/default/grub file when satisfied.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Don Mccormick</dc:creator><pubDate>Fri, 17 Feb 2012 02:33:28 -0000</pubDate></item><item><title>Re: Enabling brightness controls on an HP Envy 17 under Fedora 16</title><link>http://www.coffeepowered.net/2011/11/13/enabling-brightness-controls-on-an-hp-envy-17-under-fedora-16/#comment-441636655</link><description>This fixed my HP Pavilion dv7.&lt;br&gt;&lt;br&gt;Before I had to add number to /sys/class/backlight/acpi_video0/brightness as root which was an annoyance for my wife.&lt;br&gt;&lt;br&gt;BTW. You have a minor typo, the file is /etc/default/grub but the overall fix is sound.&lt;br&gt;&lt;br&gt;You have my thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Don Mccormick</dc:creator><pubDate>Fri, 17 Feb 2012 01:59:57 -0000</pubDate></item><item><title>Re: Serving files out of GridFS</title><link>http://www.coffeepowered.net/2010/02/17/serving-files-out-of-gridfs/#comment-430307510</link><description>There is a forked version of gridfs-fuse with more features at:&lt;br&gt;&lt;a href="https://github.com/wwoods/gridfs-fuse" rel="nofollow"&gt;https://github.com/wwoods/grid...&lt;/a&gt; &lt;br&gt;&lt;br&gt;I tried to compile it, but I got some errors, that I described here:&lt;a href="https://github.com/mikejs/gridfs-fuse/issues/11" rel="nofollow"&gt;https://github.com/mikejs/grid...&lt;/a&gt; &lt;br&gt;&lt;br&gt;Could anyone here help me to figure out what is wrong? Thank you in advance!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edemilson Lima</dc:creator><pubDate>Sun, 05 Feb 2012 15:35:25 -0000</pubDate></item><item><title>Re: FlexAuth: Portable authentication for Battle.net</title><link>http://www.coffeepowered.net/2010/06/10/flexauth-portable-authentication-for-battle-net/#comment-429767049</link><description>I am trying to run this on my kindle to replace my current phone authenticator.. do I have to create a whole new auth serial/secret? The mobile android authenticator doesn't seem to give me the option of viewing that.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Elaneous Hines</dc:creator><pubDate>Sat, 04 Feb 2012 20:02:07 -0000</pubDate></item><item><title>Re: Serving files out of GridFS</title><link>http://www.coffeepowered.net/2010/02/17/serving-files-out-of-gridfs/#comment-423885694</link><description>Thanks a lot for the benchmark. Serving files from the database is something I have always wanted. Storing metadata seperately from the images in a filesystem never felt right. All the syncing and housekeeping. I'll try to implement nginx/gridfs on the upcoming relaunch of &lt;a href="http://screenshots.debian.net" rel="nofollow"&gt;screenshots.debian.net&lt;/a&gt;.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Haas</dc:creator><pubDate>Sun, 29 Jan 2012 15:58:56 -0000</pubDate></item><item><title>Re: Serving files out of GridFS, part 2</title><link>http://www.coffeepowered.net/2010/02/24/serving-files-out-of-gridfs-part-2/#comment-418358326</link><description>I found this fork more updated than the original one:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href="https://github.com/wwoods/gridfs-fuse" rel="nofollow"&gt;https://github.com/wwoods/grid...&lt;/a&gt; &lt;br&gt;&lt;br&gt;It have authentication and more, but when I try to install it, I can't find the mongodb-dev dependency package. :(</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edemilson Lima</dc:creator><pubDate>Sun, 22 Jan 2012 19:56:15 -0000</pubDate></item><item><title>Re: Solving error n8156-6003 when trying to play Netflix Watch Instantly content.</title><link>http://www.coffeepowered.net/2010/09/18/solving-error-n8156-6003-when-trying-to-play-netflix-watch-instantly-content/#comment-412984073</link><description>This is from &lt;br&gt;&lt;a href="http://mike-thomson.com/blog/?p=210" rel="nofollow"&gt;http://mike-thomson.com/blog/?...&lt;/a&gt; Here are the steps to take to fix the problem:&lt;br&gt;Exit out of Netflix (from both your web browser and from Windows Media Center).Browse on your computer to “C:\ProgramData\Microsoft\PlayReady\”.&lt;br&gt;Change the name of “mspr.hds” to “mspr.hds.old”. (In other words, you want to get rid of the mspr.hds file, and you are renaming it just so that you have a backup copy of it.)&lt;br&gt;Open Internet Explorer and go to the Netflix website, log in, and start playing a streaming movie from their website (it should successfully work here now).&lt;br&gt;Now you can go into Windows Media Center to stream you movies again!&lt;br&gt;If you have more than one computer with the Netflix problem, then repeat this procedure for each of the afflicted computers.Apparently the problem occurs when Silverlight is updated to a new version (e.g., from version 3 to 4) and some of the old version’s things are left behind in the file you renamed, which breaks the new version. When you rename the “mspr.hds” file, it lets Silverlight re-create the file from scratch.Mike also has the fix for Windows XP users on his blog. &lt;a href="http://mike-thomson.com/blog/?p=210Thanks" rel="nofollow"&gt;http://mike-thomson.com/blog/?...&lt;/a&gt; Mike Thomson</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tazthis</dc:creator><pubDate>Mon, 16 Jan 2012 19:01:05 -0000</pubDate></item><item><title>Re: Solving error n8156-6003 when trying to play Netflix Watch Instantly content.</title><link>http://www.coffeepowered.net/2010/09/18/solving-error-n8156-6003-when-trying-to-play-netflix-watch-instantly-content/#comment-408715034</link><description>I took the bait. Works great. I got this error upgrading Silverlight from 4 to 5 on a Win7Pro box. Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Thu, 12 Jan 2012 11:26:29 -0000</pubDate></item><item><title>Re: Graceful degredation: Using Gravatar as a fallback avatar with Paperclip</title><link>http://www.coffeepowered.net/2009/02/15/graceful-degredation-using-gravatar-as-a-fallback-avatar-with-paperclip/#comment-404695712</link><description>Really useful, thanks for sharing. I'd love to see that post for another day where you cleaned up the hard-coded urls :)&lt;br&gt;Regards!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Gil Pérez</dc:creator><pubDate>Sun, 08 Jan 2012 00:06:19 -0000</pubDate></item><item><title>Re: JRuby Performance: Exceptions are not flow control</title><link>http://www.coffeepowered.net/2011/06/17/jruby-performance-exceptions-are-not-flow-control/#comment-401821223</link><description>has this been improved since?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">roger pack</dc:creator><pubDate>Thu, 05 Jan 2012 18:36:21 -0000</pubDate></item><item><title>Re: Rails Cookie Sessions and PHP</title><link>http://www.coffeepowered.net/2011/08/24/rails-cookie-sessions-and-php/#comment-401158648</link><description>Oh, I forgot one point :&lt;br&gt;&lt;br&gt;&lt;br&gt;  5. In rails 3, /lib classes are not loaded automatically. So I suggest you to require the 3 files at the top of Application class (config/application.rb).  I tried to add /lib in autoload_paths, but that don't work well (classes in autoload are not loaded before use, so that don't work for a mixin...)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Artimuz Pro</dc:creator><pubDate>Thu, 05 Jan 2012 08:16:03 -0000</pubDate></item><item><title>Re: Rails Cookie Sessions and PHP</title><link>http://www.coffeepowered.net/2011/08/24/rails-cookie-sessions-and-php/#comment-401156374</link><description>So, here my results for Rails 3.1.1 :&lt;br&gt;&lt;br&gt;&lt;br&gt;  1. For YamlMessageVerifier, I don't change anything. However, I noticed that the original MessageVerifier can be called with :serializer =&amp;gt; YAML instead of using a specific class. For those who do not need to do the transition from the Marshal format, it is preferable.&lt;br&gt;&lt;br&gt;  2. Next for CookieStore : the interresting section code for us has been moved to ActionDispatch, so :&lt;br&gt;&lt;br&gt;    module ActionDispatch&lt;br&gt;      class Cookies&lt;br&gt;        class SignedCookieJar&lt;br&gt;          def initialize(parent_jar, secret)&lt;br&gt;            ensure_secret_secure(secret)&lt;br&gt;            @parent_jar = parent_jar&lt;br&gt;            @verifier   = ActiveSupport::YamlMessageVerifier.new(secret)          # or MessageVerifier.new(secret,:serializer=&amp;gt;YAML)&lt;br&gt;          end&lt;br&gt;        end&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;&lt;br&gt;  3. OK for FlashHash. However, I draw your attention to the fact that if you reserialize your cookie in PHP, you also need to reconvert your :flash hash into a FlashHash (I've not done the job yet). That can be done in ruby side or when reserializing the cookie, you can specify the type like this :&lt;br&gt;&lt;br&gt;    flash: !ruby/object:ActionDispatch::Flash::FlashHash&lt;br&gt;      closed: ...&lt;br&gt;&lt;br&gt;  4. One last thing : I experienced problems with Spyc for the deserialization part. Indeed, I have many nested arrays in my cookies (for example my Devise/Warden auth object) and Spyc doesn't not handle it well (arrays are flattened). If you have admin access to your server I would recommend PECL Yaml instead (it works very well and much faster, because it's not in PHP).&lt;br&gt;&lt;br&gt;I think that's all !</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Artimuz Pro</dc:creator><pubDate>Thu, 05 Jan 2012 08:10:52 -0000</pubDate></item><item><title>Re: JRuby Performance: Exceptions are not flow control</title><link>http://www.coffeepowered.net/2011/06/17/jruby-performance-exceptions-are-not-flow-control/#comment-400729156</link><description>Great article, well done...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fabio</dc:creator><pubDate>Wed, 04 Jan 2012 16:13:01 -0000</pubDate></item><item><title>Re: Rails Cookie Sessions and PHP</title><link>http://www.coffeepowered.net/2011/08/24/rails-cookie-sessions-and-php/#comment-399857691</link><description>Yeah, it's definitely keyed to the Rails 2.3 cookie handler. However, the concepts should still apply to the Rails 3 handler. Definitely interested in your results!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Heald</dc:creator><pubDate>Tue, 03 Jan 2012 16:01:19 -0000</pubDate></item><item><title>Re: Rails Cookie Sessions and PHP</title><link>http://www.coffeepowered.net/2011/08/24/rails-cookie-sessions-and-php/#comment-399857016</link><description>Hi,&lt;br&gt;Interesting post. However, this don't work with rails 3, as a lot of refactoring has been done. I'm currently trying to reproduce the same result in rails 3.1, I'll let you know my results.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Artimuz Pro</dc:creator><pubDate>Tue, 03 Jan 2012 16:00:16 -0000</pubDate></item><item><title>Re: FlexAuth: Portable authentication for Battle.net</title><link>http://www.coffeepowered.net/2010/06/10/flexauth-portable-authentication-for-battle-net/#comment-395280546</link><description>This currently requires a 40 character secret to work.  Can you please add in compatibility for SWTOR Mobile Authenticator which uses a 20 digit "activation code".</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dalshien Draco</dc:creator><pubDate>Tue, 27 Dec 2011 18:13:45 -0000</pubDate></item><item><title>Re: Serving files out of GridFS</title><link>http://www.coffeepowered.net/2010/02/17/serving-files-out-of-gridfs/#comment-388915936</link><description>Approx. summary:&lt;br&gt;&lt;br&gt;Apache 2500 reqs/sec&lt;br&gt;NGINX 6500 reqs/sec&lt;br&gt;GridFS NGINX 1,000 reqs/sec&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tubegod</dc:creator><pubDate>Sat, 17 Dec 2011 16:45:00 -0000</pubDate></item><item><title>Re: Making HAML faster</title><link>http://www.coffeepowered.net/2011/06/17/making-haml-faster/#comment-382274125</link><description>Haml compiles to Ruby, and is automatically cached under Rails. These performance optimizations primarily relate to the generated code; version_geq is used extensively in the generated/cached output (to convey different behaviors under different versions of Rails), and so speeding it up speeds up the execution of the cached templates significantly.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Heald</dc:creator><pubDate>Thu, 08 Dec 2011 13:42:03 -0000</pubDate></item><item><title>Re: Making HAML faster</title><link>http://www.coffeepowered.net/2011/06/17/making-haml-faster/#comment-382025642</link><description>In PHP, haml output is php code.&lt;br&gt;If it's the same in ruby, why don't you simply cache the ruby output ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Saint-Etienne</dc:creator><pubDate>Thu, 08 Dec 2011 09:20:50 -0000</pubDate></item><item><title>Re: Safe action caching with Memcached</title><link>http://www.coffeepowered.net/2010/02/10/safe-action-caching-with-memcached/#comment-380466038</link><description>What's the point of permalinks then? Why not, not monkey patch and just use the id?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dft</dc:creator><pubDate>Tue, 06 Dec 2011 13:30:32 -0000</pubDate></item><item><title>Re: Mass inserting data in Rails without killing your performance</title><link>http://www.coffeepowered.net/2009/01/23/mass-inserting-data-in-rails-without-killing-your-performance/#comment-380056604</link><description>Excuse me, I couldn't find that nifty little gem, it seems that the page is no more served, can you please tell us where to get it ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dcac Lab</dc:creator><pubDate>Mon, 05 Dec 2011 23:06:40 -0000</pubDate></item><item><title>Re: Mass inserting data in Rails without killing your performance</title><link>http://www.coffeepowered.net/2009/01/23/mass-inserting-data-in-rails-without-killing-your-performance/#comment-375037011</link><description>In your benchmark AR::Extensions performs the same regardless of validations? it seems to me that there must be a typo and you ran it twice with validations.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">spencer roan</dc:creator><pubDate>Tue, 29 Nov 2011 11:58:39 -0000</pubDate></item><item><title>Re: FlexAuth: Portable authentication for Battle.net</title><link>http://www.coffeepowered.net/2010/06/10/flexauth-portable-authentication-for-battle-net/#comment-371801214</link><description>I am experiencing the same thing since a few days ago until now. I was locked out of my account and requested for the authenticator to be removed. It works very well 1 month before it happens.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Natirub4</dc:creator><pubDate>Thu, 24 Nov 2011 21:41:41 -0000</pubDate></item><item><title>Re: Enabling brightness controls on an HP Envy 17 under Fedora 16</title><link>http://www.coffeepowered.net/2011/11/13/enabling-brightness-controls-on-an-hp-envy-17-under-fedora-16/#comment-371712288</link><description>sorry, i'm really new in fedora, well in linux. Just runing away from windows 7 starter.&lt;br&gt;&lt;br&gt;and with fedora 16 is the first that a linux distribution works perfect on mi notebook.&lt;br&gt;&lt;br&gt;My only one problem is the brightness of the screen. it's always on max. and my problem is that i'm starting to learn how to use the terminal.&lt;br&gt;&lt;br&gt;When i'm in /etc/default i could enter to grub with "gedit grub" but i couldt sae the changes. But as root, i couldn't enter with "gedit grub" &lt;br&gt;&lt;br&gt;(gedit:9822): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported** (gedit:9822): WARNING **: Could not connect to session busCould someone explein me how to add this kernel parameter in the grub, pplease!!!!i'm new in linux, and i speak spanish, so sorry for my redaction!!! and aparently this is the only forum where the problem es fixed, and in a very simple way!!THANKS!!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Thu, 24 Nov 2011 17:20:13 -0000</pubDate></item><item><title>Re: MongoDB, count() and the big O</title><link>http://www.coffeepowered.net/2011/07/17/mongodb-count-and-the-big-o/#comment-371433325</link><description>map/reduce will still scan over everything during the map phase. It's a solid strategy for things that just need their counts updated periodically, but it's not viable for dynamic queries based on user input - think things like partial text searches.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Heald</dc:creator><pubDate>Thu, 24 Nov 2011 06:59:00 -0000</pubDate></item></channel></rss>
