<?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 ryanve</title><link>http://disqus.com/by/ryanve/</link><description></description><atom:link href="http://disqus.com/ryanve/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 03 Dec 2020 18:49:01 -0000</lastBuildDate><item><title>Re: How to fix: Missing window of Atom application</title><link>https://mycyberuniverse.com/how-fix-missing-window-atom-app.html#comment-5176137769</link><description>&lt;p&gt;Bless you for sharing. Window Zoomed!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 03 Dec 2020 18:49:01 -0000</pubDate></item><item><title>Re: SZA Reveals Her Water-Filled Astrologicial Birth Chart</title><link>https://snobette.com/2019/01/sza-astrologicial-birth-chart-sun-scorpio-moon-pisces-rising-aquarius/#comment-5091821364</link><description>&lt;p&gt;I updated &lt;a href="https://en.wikipedia.org/wiki/SZA_(singer)" rel="nofollow noopener" target="_blank" title="https://en.wikipedia.org/wiki/SZA_(singer)"&gt;Wikipedia&lt;/a&gt; to 1989. The planet positions reflect 1989 not 1990. That day in 1990 had different planet positions and the moon entered Leo. Her tweets confirm her Pisces moon.&lt;br&gt;&lt;a href="https://twitter.com/sza/status/716768621481975808" rel="nofollow noopener" target="_blank" title="https://twitter.com/sza/status/716768621481975808"&gt;https://twitter.com/sza/sta...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 30 Sep 2020 15:00:33 -0000</pubDate></item><item><title>Re: The failed promise of Web Components</title><link>https://lea.verou.me/2020/09/the-failed-promise-of-web-components/#comment-5084283321</link><description>&lt;p&gt;HTML needs R-E-S-P-E-C-T&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 24 Sep 2020 22:03:05 -0000</pubDate></item><item><title>Re: SZA Reveals Her Water-Filled Astrologicial Birth Chart</title><link>https://snobette.com/2019/01/sza-astrologicial-birth-chart-sun-scorpio-moon-pisces-rising-aquarius/#comment-5065939286</link><description>&lt;p&gt;&lt;a href="https://www.pinterest.com/pin/44262008823843186/" rel="nofollow noopener" target="_blank" title="https://www.pinterest.com/pin/44262008823843186/"&gt;That chart is on Pinterest&lt;/a&gt; and shows she was born in 1989&lt;br&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;Sun       16° Sco 19'37"&lt;br&gt;Moon      13° Pis 52'21"&lt;br&gt;Mercury   15° Sco  6' 3"&lt;br&gt;Venus      3° Cap 22'53"&lt;br&gt;Mars       3° Sco  2'26"&lt;br&gt;Jupiter   10° Can 40'59" ℞&lt;br&gt;Saturn     9° Cap 57' 1"&lt;br&gt;Uranus     2° Cap 47'18"&lt;br&gt;Neptune   10° Cap 14'28"&lt;br&gt;Pluto     15° Sco  9'39"&lt;br&gt;True Node 21° Aqu 46'22"&lt;br&gt;Chiron    16° Can 28'42" ℞&lt;br&gt;Lilith     0° Sco 26'48"&lt;br&gt;AC         3° Aqu 17'30"&lt;br&gt;MC        24° Sco 19'48"&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 10 Sep 2020 21:58:00 -0000</pubDate></item><item><title>Re: Rails Internationalization (I18n) &amp;#8211; Seven Best Practices That You Should Know About</title><link>https://phraseapp.com/blog/posts/rails-i18n-best-practices/#comment-3406957884</link><description>&lt;p&gt;Nesting and lazy lookup only seem manageable at the initial authoring phase. Flat well-named keys seem far easier to maintain in the long run because of easier find and replace. Imagine searching a large codebase for :title and trying to find only the ones that apply to a specific page.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Sat, 08 Jul 2017 20:36:12 -0000</pubDate></item><item><title>Re: Styling elements based on sibling count</title><link>http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/#comment-1550084224</link><description>&lt;p&gt;Clever technique!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Tue, 19 Aug 2014 15:43:31 -0000</pubDate></item><item><title>Re: Using Media Queries in JavaScript</title><link>https://modernweb.com/using-media-queries-in-javascript/#comment-1463545908</link><description>&lt;p&gt;&lt;a href="http://github.com/ryanve/actual" rel="nofollow noopener" target="_blank" title="http://github.com/ryanve/actual"&gt;http://github.com/ryanve/ac...&lt;/a&gt; can test media queries and also find the actual breakpoints.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Fri, 28 Mar 2014 19:09:33 -0000</pubDate></item><item><title>Re: Javascript template engine in just 20 line</title><link>http://krasimirtsonev.com/blog/article/Javascript-template-engine-in-just-20-line#comment-1153425283</link><description>&lt;p&gt;In the final version `match` appears to be a global variable but I think you want it to be a local var.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Fri, 06 Dec 2013 17:07:47 -0000</pubDate></item><item><title>Re: 
                    
                        NMS 2013 Photos
                    
                </title><link>http://virtualmusic.tv/2013/nms-photos/#comment-933804773</link><description>&lt;p&gt;I think you need a pair =] Read &lt;a href="http://pyramexsafety.com/products/eyewear/cortez/sg3610s" rel="nofollow noopener" target="_blank" title="http://pyramexsafety.com/products/eyewear/cortez/sg3610s"&gt;the specs&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Mon, 17 Jun 2013 21:28:22 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-790732563</link><description>&lt;p&gt;@Robert The best way to do that currently would be to save a copy of the array before you pass it to Response.create. You could save it in a local var or via &lt;a href="http://api.jquery.com/jQuery.data/" rel="nofollow noopener" target="_blank" title="http://api.jquery.com/jQuery.data/"&gt;$.data()&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 06 Feb 2013 12:05:46 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-790726447</link><description>&lt;p&gt;@Mattias Bodlund Thanks, see &lt;a href="https://github.com/ryanve/response.js/issues/18" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/issues/18"&gt;#18&lt;/a&gt; and &lt;a href="https://github.com/ryanve/response.js/issues/15" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/issues/15"&gt;#15&lt;/a&gt; about this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 06 Feb 2013 12:00:59 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-743035221</link><description>&lt;p&gt;A lot of people have for AJAX capabilities and I think it makes sense. Slated for &lt;a href="https://github.com/ryanve/response.js/issues/15" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/issues/15"&gt;version 1.0&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 19 Dec 2012 15:40:10 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-743033587</link><description>&lt;p&gt;@Chris Butterworth Response 0.x works in IE8/7 provided you are using jQuery 1.7–&lt;a href="http://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond/" rel="nofollow noopener" target="_blank" title="http://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond/"&gt;1.9&lt;/a&gt;  See &lt;a href="http://responsejs.com/test/" rel="nofollow noopener" target="_blank" title="http://responsejs.com/test/"&gt;responsejs.com/test/&lt;/a&gt;. If you notice a specific issue the best way to crack it is to open an &lt;a href="https://github.com/ryanve/response.js/issues" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/issues"&gt;thread here&lt;/a&gt;. In my own projects I've been leaning towards serving old IE a no-js version similar to how it'd be on &lt;a href="http://en.wikipedia.org/wiki/Feature_phone" rel="nofollow noopener" target="_blank" title="http://en.wikipedia.org/wiki/Feature_phone"&gt;feature phone&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 19 Dec 2012 15:37:50 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-692330146</link><description>&lt;p&gt;Try &lt;code&gt;$('#example').html( window.screen.width &amp;gt; 960 ? 'wide' : 'narrow' );&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 25 Oct 2012 15:42:53 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-575955317</link><description>&lt;p&gt;Nice =]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 04 Jul 2012 04:28:54 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-475925843</link><description>&lt;p&gt;Awesome—thanks, the simpler, the better =) The color scheme is based on &lt;a href="http://ethanschoonover.com/solarized" rel="nofollow noopener" target="_blank" title="http://ethanschoonover.com/solarized"&gt;Solarized&lt;/a&gt;. I made a base stylesheet for implementing Solarized at &lt;a href="https://github.com/ryanve/css3base" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/css3base"&gt;css3base/solarized.css&lt;/a&gt; and I'm using &lt;a href="https://github.com/ryanve/taos" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/taos"&gt;taos&lt;/a&gt; to for the button in the corner that toggles between light and dark.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Sun, 25 Mar 2012 13:51:15 -0000</pubDate></item><item><title>Re: What is the Name of Your Favorite Preschool?</title><link>http://patch.com/new-jersey%2Fcaldwells%2Fwhat-is-the-name-of-your-favorite-preschool-7a7f4330#comment-1523581994</link><description>&lt;p&gt;Bright Start!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 22 Mar 2012 20:32:32 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-464106117</link><description>&lt;p&gt;&lt;a href="http://responsejs.com" rel="nofollow noopener" target="_blank" title="http://responsejs.com"&gt;Response&lt;/a&gt; and &lt;a href="https://github.com/scottjehl/Respond" rel="nofollow noopener" target="_blank" title="https://github.com/scottjehl/Respond"&gt;Respond&lt;/a&gt; are two different scripts.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Tue, 13 Mar 2012 06:54:34 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-464103517</link><description>&lt;p&gt;Yea you definitely have to consider SEO. I think it comes down to how you use it and I'm curious to see what other ideas people have. So far I think the smartest uses of Response are:&lt;/p&gt;&lt;p&gt;&lt;b&gt;1.&lt;/b&gt; Serving richer versions of the same content (with a no-js version that is SEO friendly).&lt;/p&gt;&lt;p&gt;&lt;b&gt;2.&lt;/b&gt; Using the data attributes to store heavy extraneous stuff like sidebars that is less important for SEO.&lt;/p&gt;&lt;p&gt;&lt;b&gt;3.&lt;/b&gt; Integrating lazy loading into a CMS a la markup mode (I'm working on stuff along these lines for WordPress that I'll open source as well).&lt;/p&gt;&lt;p&gt;There's also the possibility that the W3 will eventually add a way to handle some of this stuff natively, so that's something to consider too. I wanna make a video to talk about this kind of stuff and some of the &lt;a href="https://github.com/ryanve/response.js/blob/master/CHANGELOG.md" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/blob/master/CHANGELOG.md"&gt;recent updates&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Tue, 13 Mar 2012 06:46:39 -0000</pubDate></item><item><title>Re: How Bands Can Tell If They’re “Making It”</title><link>http://virtualmusic.tv/2010/how-bands-can-tell-if-they-are-making-it-p2p-trends/#comment-446729029</link><description>&lt;p&gt;Thx yea I was surprised too. In the NYC metro area there's basically almost rock stations anymore but there's tons and tons of indie rock bands. I would put myself on Pirate Bay, cause I figure the people who would download it there aren't going to buy it anyway but maybe it'd help spread the word. Good point about the supportiveness—I think you're onto something with that. That goes in line with some of the statistics in &lt;a href="http://basbasbas.com/thesis/solution" rel="nofollow noopener" target="_blank" title="http://basbasbas.com/thesis/solution"&gt;Bas's thesis&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Thu, 23 Feb 2012 04:08:17 -0000</pubDate></item><item><title>Re: Technicolor Brick Flat</title><link>http://amplifiedny.com/2011/01/12/technicolor-brick-flat/#comment-446298374</link><description>&lt;p&gt;Not sure exactly. See the &lt;a href="http://www.flickr.com/photos/timschreier/5205018745/" rel="nofollow noopener" target="_blank" title="http://www.flickr.com/photos/timschreier/5205018745/"&gt;comment thread here&lt;/a&gt;. I took a quick look around the intersection on Google Maps street view but didn't see it. Ask Tim in that comment thread.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 22 Feb 2012 16:55:29 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-445743268</link><description>&lt;p&gt;I updated that answer a couple times so view it &lt;a href="http://responsejs.com/#comment-445688356" rel="nofollow noopener" target="_blank" title="http://responsejs.com/#comment-445688356"&gt;on the site&lt;/a&gt; if you're not already.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 22 Feb 2012 06:56:39 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-445688356</link><description>&lt;p&gt;The absolute best way to solve the src mode flicker is to store the &lt;code&gt;img&lt;/code&gt; markup in the data attribute of wrapper element like &lt;code&gt;a&lt;/code&gt; link or &lt;code&gt;div&lt;/code&gt;. Then it'll use &lt;a href="http://responsejs.com/#markup_means_markup" rel="nofollow noopener" target="_blank" title="http://responsejs.com/#markup_means_markup"&gt;markup mode&lt;/a&gt; instead and totally circumvent the issue:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;a href="example.png" data-r641="&amp;lt;img src=example.png alt=example&amp;gt;"&amp;gt;click to see image&amp;lt;/a&amp;gt;&lt;br&gt;&lt;br&gt;Or:&lt;br&gt;&lt;br&gt;&amp;lt;a href="hifi.png" data-r641="&amp;lt;img src=hifi.png alt=hifi&amp;gt;"&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;img src=lofi.png alt=lofi&amp;gt;&amp;lt;/noscript&amp;gt;&amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;If you're using src mode then the only way to completely resolve the issue would be to hardcode a CSS class on your image (like &lt;code&gt;.visuallyhidden&lt;/code&gt; &lt;a href="https://github.com/h5bp/html5-boilerplate/blob/master/css/style.css" rel="nofollow noopener" target="_blank" title="https://github.com/h5bp/html5-boilerplate/blob/master/css/style.css"&gt;here&lt;/a&gt;) and then use jQuery to &lt;code&gt;$('img').removeClass('visuallyhidden')&lt;/code&gt; to remove it. I don't recommend this for this situation—I much prefer the markup pattern above. I almost always use markup mode. When I do use src mode I only use it on images below the fold (I did that &lt;a href="http://virtualmusic.tv/2011/12/2011-live-music-scenes/" rel="nofollow noopener" target="_blank" title="http://virtualmusic.tv/2011/12/2011-live-music-scenes/"&gt;here&lt;/a&gt;). I haven't updated the docs here yet, but since version 0.3.0 the mode is autodetected, meaning you only need to define one attribute set and then you can use the same prefix on any element. If you define both they will both work as either. (See the bottom of the &lt;a href="https://github.com/ryanve/response.js/blob/master/README.md" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/blob/master/README.md"&gt;readme&lt;/a&gt;.) To anwser the event question: To distinguish between the ready and resize, you can use built-in &lt;a href="http://api.jquery.com/category/events/" rel="nofollow noopener" target="_blank" title="http://api.jquery.com/category/events/"&gt;jQuery events&lt;/a&gt; like:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;$(document).ready(function() {&lt;br&gt;    // do stuff on ready&lt;br&gt;});&lt;br&gt;&lt;br&gt;$(window).resize(function() {&lt;br&gt;    // do stuff on resize&lt;br&gt;});&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;Or you could use &lt;a href="http://api.jquery.com/on/" rel="nofollow noopener" target="_blank" title="http://api.jquery.com/on/"&gt;$.on()&lt;/a&gt; to do it. See &lt;a href="http://stackoverflow.com/questions/8976092/bind-to-ready-and-resize-at-same-time-using-jquery-on" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/8976092/bind-to-ready-and-resize-at-same-time-using-jquery-on"&gt;here&lt;/a&gt;. Or you could wrap the resize in the ready and not trigger it out like in &lt;a href="http://jsfiddle.net/XREPk/2/" rel="nofollow noopener" target="_blank" title="http://jsfiddle.net/XREPk/2/"&gt;this live example&lt;/a&gt;. That same example also exemplifies the &lt;a href="http://responsejs.com/#closures" rel="nofollow noopener" target="_blank" title="http://responsejs.com/#closures"&gt;closure&lt;/a&gt; concept. Plus look in the &lt;a href="https://github.com/ryanve/response.js/blob/master/response.js#files" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/blob/master/response.js#files"&gt;source&lt;/a&gt; for Response.action and Response.create to see how the events are handled. FYI new methods since version 0.3.0 are already &lt;a href="https://github.com/ryanve/response.js/blob/master/README.md" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/blob/master/README.md"&gt;listed here&lt;/a&gt;. Hope that helps :]&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 22 Feb 2012 05:31:42 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-445682137</link><description>&lt;p&gt;It should work on any iPad. What version Response are you using? I'll take a look if you have a link.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 22 Feb 2012 05:21:17 -0000</pubDate></item><item><title>Re: http://responsejs.com/</title><link>http://responsejs.com/#comment-445678365</link><description>&lt;p&gt;It depends what you're trying to do. &lt;a href="http://responsejs.com" rel="nofollow noopener" target="_blank" title="http://responsejs.com"&gt;Response&lt;/a&gt; and &lt;a href="http://jquerymobile.com/" rel="nofollow noopener" target="_blank" title="http://jquerymobile.com/"&gt;jQuery Mobile&lt;/a&gt; have a different scope of capabilities (although both make heavy use of HTML5 data attributes). If you're building a native app (iPhone app, Android app...) then you probably would use jQuery Mobile because it has more capabilities specific to mobile devices. It normalizes touch events for example. Response is geared towards highly-optimized responsive design of websites / web apps. I'm still in the progress of writing the docs but the Github &lt;a href="https://github.com/ryanve/response.js/blob/master/README.md" rel="nofollow noopener" target="_blank" title="https://github.com/ryanve/response.js/blob/master/README.md"&gt;readme&lt;/a&gt; has a more complete overview of the methods in Response.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ryanve</dc:creator><pubDate>Wed, 22 Feb 2012 05:14:57 -0000</pubDate></item></channel></rss>