<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2204179290849886448</id><updated>2024-08-28T05:41:37.234-07:00</updated><title type='text'>I&#39;m not Craig from Craigslist</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://notcraig.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2204179290849886448/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://notcraig.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Craig</name><uri>http://www.blogger.com/profile/18331069367468499243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2204179290849886448.post-5980295867807579239</id><published>2023-11-02T09:16:00.003-07:00</published><updated>2023-11-02T09:16:53.276-07:00</updated><title type='text'>Impact Verification</title><content type='html'>&lt;p&gt;&amp;nbsp;Impact-Site-Verification: e62803d7-5078-40a3-b426-e068cbe3efaa&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://notcraig.blogspot.com/feeds/5980295867807579239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://notcraig.blogspot.com/2023/11/impact-verification.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2204179290849886448/posts/default/5980295867807579239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2204179290849886448/posts/default/5980295867807579239'/><link rel='alternate' type='text/html' href='http://notcraig.blogspot.com/2023/11/impact-verification.html' title='Impact Verification'/><author><name>Craig</name><uri>http://www.blogger.com/profile/18331069367468499243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2204179290849886448.post-2651893756104517764</id><published>2011-01-02T10:40:00.000-08:00</published><updated>2011-01-02T10:40:12.850-08:00</updated><title type='text'>Hacking for Love</title><content type='html'>&lt;i&gt;In this post I describe how I made the Dunkin&#39; Donuts website do my bidding.&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Love&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;I am moving to Chicago and I want to make sure that there is a Dunkin&#39; Donuts near where I live (if you&#39;ve ever had their hash browns or hot chocolate you will understand). &amp;nbsp;The problem is that we aren&#39;t settled on which area of north Chicago we are going to end up getting an apartment, and the Dunkin&#39; Donuts site will only show 20 stores max. &amp;nbsp;The problem is compounded by the fact that there are so many locations in Chicago. &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhchypY94RHGg09LOGZCRpJuwLaCdau4dC0-x_MkG1G0NCghZjWH9I8OihlhVwqHblNcpNb2cO4e_IkKoDDt_6lJcgkHSk5iuGMersiWpStmR4hH5sC5jLNaVVywbpI-lfLYVIRsNwWGQ/s1600/ddpic1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhchypY94RHGg09LOGZCRpJuwLaCdau4dC0-x_MkG1G0NCghZjWH9I8OihlhVwqHblNcpNb2cO4e_IkKoDDt_6lJcgkHSk5iuGMersiWpStmR4hH5sC5jLNaVVywbpI-lfLYVIRsNwWGQ/s400/ddpic1.PNG&quot; width=&quot;370&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Thus my quest...&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;This is too easy...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I started off by doing what everyone looking to shake things up does and viewed the source of the page. &amp;nbsp;To my surprise I found the following function:&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;/** &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* Function to perform search on Hotel Addresses from the origin location &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* @param  searchLat - contains latitude value &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* @param  searchLng - contains longitude value &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* @param  searchRadius - contains radius value &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* @param  searchUnit - contains unit of measure - miles or minutes &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;* @return  resultsArry - array containing a record set of search results &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;**/ &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;function search(searchLat, searchLng, searchRadius, searchUnit){ &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Build Radius Search Criteria &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var criteria = new MQRadiusSearchCriteria(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Set Origin &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;criteria.setCenter(new MQLatLng(searchLat, searchLng)); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Set Radius &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;criteria.setRadius(searchRadius); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Set Maximum number of Matches &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;criteria.setMaxMatches(MAX_MATCHES); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//criteria.setMaxMatches(searchMaxMatches); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Build Database Query Object &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var dbLayerQuery = new MQDBLayerQuery(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Define Data Table &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;dbLayerQuery.setDBLayerName(Table); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Create Database Query Collection and Add Database Query to Collection &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var dbLayerQueryCollection = new MQDBLayerQueryCollection(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;dbLayerQueryCollection.add(dbLayerQuery); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var searchFeatures = new MQFeatureCollection(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var dtCollection = new MQDTCollection(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var results = new MQFeatureCollection(); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//alert(searchRadius + &quot;,&quot; + MAX_MATCHES ); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Build Spatial Search Object &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;var spatialExec = new MQExec(spatialServer, serverPath, serverPort, proxyServer, proxyPath, proxyPort); &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;//Perform Search &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;spatialExec.search(criteria, results, &quot;&quot;, dbLayerQueryCollection,  searchFeatures, dtCollection);   &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;return results; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;webkit-line-number&quot;&gt;&lt;/td&gt;&lt;td class=&quot;webkit-line-content&quot;&gt;}&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Notice that there is a parameter MAX_MATCHES being set in the Javascript... Searching through the rest of the page scripts confirmed that this was being set to 20. &amp;nbsp;Ok, so how do I get the page to use a larger value? &amp;nbsp;I could have used a Greasemonkey-type plugin to customize this script and ensure the page ran my version, but I was interested in a quicker solution.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;An ode to client-side code&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg78VJZTGXUuNgLw_kWhHrCMNiyPznpBo40pOR_usxmGcydLkzCy6Bwpj0NroNGmNiRVaYbG2AOifWGOF2vKpgUvAHlEyhsqRbn9nsx-cMAjNGtuFdhrRIiY5swOrNYAuzpz4kZ3WnLBA/s1600/ddpic2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg78VJZTGXUuNgLw_kWhHrCMNiyPznpBo40pOR_usxmGcydLkzCy6Bwpj0NroNGmNiRVaYbG2AOifWGOF2vKpgUvAHlEyhsqRbn9nsx-cMAjNGtuFdhrRIiY5swOrNYAuzpz4kZ3WnLBA/s400/ddpic2.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
What I did was open Chrome&#39;s Javascript console and set MAX_MATCHES = 500. &amp;nbsp;Then I called the onPageLoad() function to make the page refresh using my new value... lo and behold it worked! &amp;nbsp;After changing the url parameter&amp;nbsp;txtMatchesperPage to 500 to match I had the entire list of locations I could possibly need. &amp;nbsp;As a bonus, the map dutifully displays all listed locations.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJ5TkCbWsvV8twgu90S2gIZURQKaZZKXRwEqcZqHGerj18UANy4zJU4PM0eFVVguqNTB_FU5vgikJSDxLMuqx-M4fhcfWaxe1CE3MLjZIslgJWydxgu2a9Du8mWIyf7fsw6H0f9cklw/s1600/ddpic3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEJ5TkCbWsvV8twgu90S2gIZURQKaZZKXRwEqcZqHGerj18UANy4zJU4PM0eFVVguqNTB_FU5vgikJSDxLMuqx-M4fhcfWaxe1CE3MLjZIslgJWydxgu2a9Du8mWIyf7fsw6H0f9cklw/s400/ddpic3.PNG&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Ahh the things we do for love...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://notcraig.blogspot.com/feeds/2651893756104517764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://notcraig.blogspot.com/2011/01/hacking-for-love.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2204179290849886448/posts/default/2651893756104517764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2204179290849886448/posts/default/2651893756104517764'/><link rel='alternate' type='text/html' href='http://notcraig.blogspot.com/2011/01/hacking-for-love.html' title='Hacking for Love'/><author><name>Craig</name><uri>http://www.blogger.com/profile/18331069367468499243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhchypY94RHGg09LOGZCRpJuwLaCdau4dC0-x_MkG1G0NCghZjWH9I8OihlhVwqHblNcpNb2cO4e_IkKoDDt_6lJcgkHSk5iuGMersiWpStmR4hH5sC5jLNaVVywbpI-lfLYVIRsNwWGQ/s72-c/ddpic1.PNG" height="72" width="72"/><thr:total>5</thr:total></entry></feed>