<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for k776</title><link>http://disqus.com/by/k776/</link><description></description><atom:link href="http://disqus.com/k776/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 24 Oct 2025 22:05:33 -0000</lastBuildDate><item><title>Re: Importing vs fetching JSON</title><link>http://jakearchibald.com/2025/importing-vs-fetching-json#comment-6787220590</link><description>&lt;p&gt;I guess one benefit of import over fetch would be for TypeScript types? Imported json could be typed correctly, so you know you won't be calling json keys that don't exist?&lt;/p&gt;&lt;p&gt;This seems like it would be best used to bundle default/fallback translations and fetch other locale only once if it exists, e.g.&lt;/p&gt;&lt;p&gt;&lt;code&gt;import english from './en.json' with { type: 'json' }&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;code&gt;const locale = navigator.language.slice(0, 2)&lt;/code&gt;&lt;br&gt;&lt;code&gt;const { default: other } = await import(`./${locale}.json`, { with: { type: 'json' } });&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;code&gt;console.log(other?.hello || english.hello)&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Fri, 24 Oct 2025 22:05:33 -0000</pubDate></item><item><title>Re: Update millions of records in Rails</title><link>https://blog.eq8.eu/til/update-millions-of-records-in-rails.html#comment-6171579622</link><description>&lt;p&gt;Re: #2, or even better, bypass Rails completely. SQL is perfectly capable of doing this itself.&lt;/p&gt;&lt;p&gt;&lt;code&gt;UPDATE addresses SET city = LOWER(city), state = LOWER(state);&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Should be many times faster than doing things the Rails way.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Thu, 27 Apr 2023 05:55:20 -0000</pubDate></item><item><title>Re: 
  Speeding up views rendering in Rails 4
</title><link>https://marsbased.com/blog/2022/06/13/speeding-up-views-rendering-rails4/#comment-5896672669</link><description>&lt;p&gt;You could possibly speed it up further by caching often used views in memory, rather than doing a File.binread each time it needs to be rendered.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Thu, 23 Jun 2022 21:11:36 -0000</pubDate></item><item><title>Re: Small nice feature that emerged in Ruby 3.1... But has a nasty quirk</title><link>https://zverok.space/blog/2021-12-08-value-omission-debug.html#comment-5641349064</link><description>&lt;p&gt;What about using hash brackets instead?&lt;/p&gt;&lt;p&gt;&lt;code&gt;p {a:,b:}&lt;/code&gt;&lt;/p&gt;&lt;p&gt;In that case, it ruby smart enough to determine is as a hash, or does it parse it as a block?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sat, 11 Dec 2021 01:05:23 -0000</pubDate></item><item><title>Re: OPAQUE: The Best Passwords Never Leave your Device</title><link>https://blog.cloudflare.com/opaque-oblivious-passwords/#comment-5182266556</link><description>&lt;p&gt;What about a simpler approach? Client JS on login/signup page does `SHA256(password)` and sends the result as the password to the server, which adds an additional encryption on top (bcrypt) before storing in the DB?&lt;/p&gt;&lt;p&gt;That way the real password is never plain text over network requests, server never sees original password, only the hash, but server still has a way to validate the resulting hashed password. And it doesn't require an additional network request.&lt;/p&gt;&lt;p&gt;Going a step further, browsers could implement something for this in the input tag. e.g. `&amp;lt;input type="password" name="password" hashed="SHA256"/&amp;gt;`, and when a form is submitted, the password is hashed before making the network request without needing any JS. Then browsers could give security warning when a page contains a password field that won't be hashed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Wed, 09 Dec 2020 02:32:36 -0000</pubDate></item><item><title>Re: Ruby vs Crystal Performance – Pavel Timofeev – On software development, startups, and other things</title><link>https://ptimofeev.com/ruby-vs-crystal-performance/#comment-4951131426</link><description>&lt;p&gt;You can also add the --release flag when building crystal for additional optimisation.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Fri, 12 Jun 2020 03:05:18 -0000</pubDate></item><item><title>Re: Cloudflare for SSH, RDP and Minecraft</title><link>https://blog.cloudflare.com/cloudflare-for-ssh-rdp-and-minecraft/#comment-4873218033</link><description>&lt;p&gt;Fantastic. The only draw back is that it only allows one SSH IP per account. In our case, we have several bastion boxes for different parts of the application under the same domain, so we can't protect them all using Spectrum.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Mon, 13 Apr 2020 18:23:56 -0000</pubDate></item><item><title>Re: SendGrid DNS White Labeling and CloudFront for Secure Click Tracking Links</title><link>https://mattouille.github.io/site/SendGrid-DNS-White-Labeling-and-CloudFront-for-Secure-Click-Tracking-Links/#comment-3513172020</link><description>&lt;p&gt;Hey Matt. In your diagram you refer to "&lt;a href="http://yet_another_hash.sendgrid.net" rel="nofollow noopener" target="_blank" title="yet_another_hash.sendgrid.net"&gt;yet_another_hash.sendgrid.net&lt;/a&gt;"  &amp;lt;- Where do you get this value from? I have setup a Cloudfront distribution, setup the origin and behaviour, and contacted SendGrid, but it is not operating properly. Just wondering if it's because I couldn't find the "&lt;a href="http://yet_another_hash.sendgrid.net" rel="nofollow noopener" target="_blank" title="yet_another_hash.sendgrid.net"&gt;yet_another_hash.sendgrid.net&lt;/a&gt;"  value you referred to and had to use just "&lt;a href="http://sendgrid.net" rel="nofollow noopener" target="_blank" title="sendgrid.net"&gt;sendgrid.net&lt;/a&gt;". Any thoughts?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Mon, 11 Sep 2017 22:17:09 -0000</pubDate></item><item><title>Re: Updated NGINX Plug-In for New Relic</title><link>https://www.nginx.com/blog/nginx-plugin-for-new-relic/#comment-2665450345</link><description>&lt;p&gt;Hey Ted. Did you ever find a fix? We've just run into this issue with one of our hosts. The daemon keeps crashing when it encounters whatever is causing this, which leaves us blind as to how many connections that server is handling.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sun, 08 May 2016 18:50:44 -0000</pubDate></item><item><title>Re: Generating Complex PDF Documents in Rails with Prawn</title><link>http://www.yoniweisbrod.com/generating-complex-pdf-documents-in-rails-with-prawn/#comment-1920241197</link><description>&lt;p&gt;Everything you mentioned is possible with wicked_pdf... See &lt;a href="https://github.com/mileszs/wicked_pdf" rel="nofollow noopener" target="_blank" title="https://github.com/mileszs/wicked_pdf"&gt;https://github.com/mileszs/...&lt;/a&gt; - Under the advanced options sections, you can set :margin, :header and :footer settings which take effect on all pages, working exactly as it should. You can also use some page-break css classes to split pages where you want them split. A lot of control there...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sat, 21 Mar 2015 15:45:55 -0000</pubDate></item><item><title>Re: Generating Complex PDF Documents in Rails with Prawn</title><link>http://www.yoniweisbrod.com/generating-complex-pdf-documents-in-rails-with-prawn/#comment-1919366974</link><description>&lt;p&gt;I've found it much easier to use a tool like wicked_pdf, which uses wkhtmltopdf to generate the PDF files. You can design your PDFs with HTML and CSS in ERB files. So much easier. Not sure I'd switch away from that to something like Prawn, which seems far more complex.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sat, 21 Mar 2015 02:02:11 -0000</pubDate></item><item><title>Re: Choosing the right data store</title><link>http://www.rackspace.com/knowledge_center/article/choosing-the-right-data-store#comment-1511450266</link><description>&lt;p&gt;Where is PostgreSQL? On &lt;a href="http://db-engines.com/en/ranking" rel="nofollow noopener" target="_blank" title="http://db-engines.com/en/ranking"&gt;http://db-engines.com/en/ra...&lt;/a&gt;, Postgresql is at #4, while MariaDB is at #28 and Percona is at #80. Why have you not added support for Postgresql early on?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Wed, 30 Jul 2014 01:43:06 -0000</pubDate></item><item><title>Re: 
              
                The New Rubygems Index Format
              
            </title><link>https://blog.engineyard.com/2014/new-rubygems-index-format#comment-1300705992</link><description>&lt;p&gt;Very interesting. Why not use versions for the names autocomplete though (other than the size aspect) and have one less file to append to, and the benefit of autocompleting version as well?&lt;/p&gt;&lt;p&gt;And how would bundler go about request multiple dep files at once, or does it need to hit /deps/GEM_NAME for each gem until all deps are met? Could the /deps/ endpoint accept multiple gem names and transmit them in a single file for Bundler by appending all single deps together separated by a "== GEM_NAME" header perhaps?&lt;/p&gt;&lt;p&gt;I'd been interested in knowing the total size of the old index v.s. new index too. I didn't notice any size comparisons.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Mon, 24 Mar 2014 21:38:31 -0000</pubDate></item><item><title>Re: Revocable sessions with Devise</title><link>http://www.jonathanleighton.com/articles/2013/revocable-sessions-with-devise/#comment-1247502612</link><description>&lt;p&gt;Here is a modified version which provides an upgrade path (all users aren't logged out when the code is deployed), and also updates an accessed_at timestamp on the users record. It also has a little less code in the user model.  &lt;a href="https://gist.github.com/KieranP/9044432" rel="nofollow noopener" target="_blank" title="https://gist.github.com/KieranP/9044432"&gt;https://gist.github.com/Kie...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sun, 16 Feb 2014 23:03:02 -0000</pubDate></item><item><title>Re: SSL Certificate Types</title><link>http://simonecarletti.com/blog/2013/11/ssl-certificate-types/#comment-1206880502</link><description>&lt;p&gt;Note: You cannot get organisation or extended validation SSL certs with wildcard. Those can only be single name, which is a real pain :-( They are also far more expensive.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sat, 16 Nov 2013 04:37:57 -0000</pubDate></item><item><title>Re: Realtime Strategy Game 0 A.D. Enters Final Crowdfunding Stretch</title><link>http://www.omgubuntu.co.uk/2013/09/0-d-enters-last-three-weeks-crowdfunding-campaign#comment-1066658042</link><description>&lt;p&gt;We aren't paid developers. Most of us are part time volunteers. We currently have one paid contractor who is working on performance and his contract ends soon. The fundraiser will be used to extend his contract period.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Tue, 01 Oct 2013 18:58:42 -0000</pubDate></item><item><title>Re: Realtime Strategy Game 0 A.D. Enters Final Crowdfunding Stretch</title><link>http://www.omgubuntu.co.uk/2013/09/0-d-enters-last-three-weeks-crowdfunding-campaign#comment-1066656564</link><description>&lt;p&gt;You're paying for a better end result, something more stable, better performing, better looking...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Tue, 01 Oct 2013 18:57:05 -0000</pubDate></item><item><title>Re: Realtime Strategy Game 0 A.D. Enters Final Crowdfunding Stretch</title><link>http://www.omgubuntu.co.uk/2013/09/0-d-enters-last-three-weeks-crowdfunding-campaign#comment-1066653044</link><description>&lt;p&gt;True, tax deductions are not applicable outside the US, but then Kickstarter doesn't even have the option for it at all, so some tax deductibility with IndieGoGo for those inside the US is better than nothing.&lt;/p&gt;&lt;p&gt;"Another US only campaign" &amp;lt;- That isn't at all accurate. It's a US donation perk, but nothing stops people from other countries from donating, it just isn't tax deductible for them...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Tue, 01 Oct 2013 18:53:41 -0000</pubDate></item><item><title>Re: 10 Years In Alpha: How Volunteer Modders Created 0 A.D. With The Help Of A Community</title><link>http://indiestatik.com/2013/10/01/10-years-in-alpha-how-volunteer-modders-created-0-a-d-with-the-help-of-a-community/#comment-1066401689</link><description>&lt;p&gt;To be fair though, the game was rewritten from scratch in 2009, so 10 years in the making perhaps, but the code itself is only 4 years old.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Tue, 01 Oct 2013 15:51:54 -0000</pubDate></item><item><title>Re: Realtime Strategy Game 0 A.D. Enters Final Crowdfunding Stretch</title><link>http://www.omgubuntu.co.uk/2013/09/0-d-enters-last-three-weeks-crowdfunding-campaign#comment-1065168932</link><description>&lt;p&gt;The reason we went with IndieGoGo over Kickstarter is that Indie supports non-profit organisations, which the company behind 0 A.D. is. This means that not only do we get lower fees on the campaign, but we don't need to worry about tax related issues... all donations are going to the non profit organisations account (SPI), and we can offer our US donators tax deductible donations.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Mon, 30 Sep 2013 19:45:55 -0000</pubDate></item><item><title>Re: Free RTS Game 0 A.D. Sees New Alpha Release ~ Web Upd8: Ubuntu / Linux blog</title><link>http://www.webupd8.org/2013/09/free-rts-game-0-ad-sees-new-alpha.html#comment-1033036191</link><description>&lt;p&gt;No. All the developers contribute their free time. A campaign is running now to raise funds to hire first a developer, then an artist, to help complete these game within a year.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Fri, 06 Sep 2013 22:55:25 -0000</pubDate></item><item><title>Re: The Curious Case of ActiveRecord Matching Yesterday's Events Even Though I Told it Not To</title><link>http://jerodsanto.net/2013/02/the-curious-case-of-activerecord-matching-yesterdays-events/#comment-804687185</link><description>&lt;p&gt;Or the simplest solution: Never use a date field. Always use a datetime field, and then when you pull it out of the database, use `start_time.to_date`.&lt;/p&gt;&lt;p&gt;Then you just do   `Event.where("start_time &amp;gt; ?", Time.zone.now.beginning_of_day)`&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Tue, 19 Feb 2013 15:37:21 -0000</pubDate></item><item><title>Re: Phusion Passenger 4.0 beta 2: Syscall failure simulation framework, focus on stability</title><link>http://old.blog.phusion.nl/2013/01/24/phusion-passenger-4-0-beta-2-syscall-failure-simulation-framework-focus-on-stability/#comment-794996273</link><description>&lt;p&gt;Opps. Looks like something went wrong. Response times skyrocketed after upgrading from beta 1 to beta 2. See this ticket: &lt;a href="http://code.google.com/p/phusion-passenger/issues/detail?id=834&amp;amp;thanks=834&amp;amp;ts=1360540794" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/phusion-passenger/issues/detail?id=834&amp;amp;thanks=834&amp;amp;ts=1360540794"&gt;http://code.google.com/p/ph...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sun, 10 Feb 2013 19:02:42 -0000</pubDate></item><item><title>Re: Hobo 2.0.0.pre7</title><link>http://hobocentral.net/blog/2012/12/06/hobo-2-0-0-pre7/#comment-779541240</link><description>&lt;p&gt;Please make hobo_fields Rails 3.3 compatible. It's holding me back from upgrading.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Fri, 07 Dec 2012 05:22:53 -0000</pubDate></item><item><title>Re: Making your ruby fly</title><link>http://alisnic.net/blog/making-your-ruby-fly/#comment-718288849</link><description>&lt;p&gt;This is excellent. Things are so much faster now. Using "rvm_configure_env=(CFLAGS="-march=nocona -O3 -fomit-frame-pointer -pipe")"  in ~/.rvmrc, the ruby iterator test case took 7.5s before, and only 3.2s after. Other things show similar speedup. 'rails runner' from 12.4s down to 6.6s, 'rake routes' from 12.5s down to 6.8s, and 'rspec spec' from 5m 53s down to 3m 17s.  So an amazing savings.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran P</dc:creator><pubDate>Sat, 24 Nov 2012 14:12:31 -0000</pubDate></item></channel></rss>