Author Archives: Mark Reyes

About Mark Reyes

Web Developer based out of Southern California.

Use SquidMan.app to connect localhost to mobile devices

This step-by-step guide assumes you have MAC OSX installed and are troubleshooting from an iPad/iPhone. This should work in a similar fashion if your mobile device is Android based. Ensure your localhost’s URL is aliased such as, myproject.dev

  1. Download SquidMan.
  2. Run SquidMan.app.
  3. On iPad/iPhone open Settings > Wi-Fi and select your Wi-Fi network.
  4. Take note of the Wi-Fi network’s IP address. For example, 10.61.1.92.
  5. In SquidMan open your Preferences, Command + ,.
  6. In General ensure that HTTP Port is 8080.
  7. In Clients add IP address 10.61.1.92, then click save.
  8. In Template comment out http_access deny to_localhost and click save.
  9. Open System Preferences > Network on your Macbook and note its IP address. For example, 10.61.1.86.
  10. On iPad/iPhone open Settings > Wi-Fi and select your Wi-Fi network.
  11. Switch the HTTP PROXY by pasting your Macbook’s IP address, 10.61.1.86.
  12. On iPad/iPhone open your localhost URL.

Thanks to, egalo

Apache Solr + University of Rockies

Search Engine Apache Solr added to rockies.edu.

Search Engine Apache Solr added to rockies.edu.

In the Fall of 2013, my team was tasked with R&D on integrating a search solution within the University of Rockies. Starting from the ground up, we pursued the idea of open-source search server, Apache Solr. After hours vetting out a workflow and experimenting, we were able to create a search product that not only touches base with Rockies, but can be extended to other web properties owned by the Marketing Group.

Some keypoints we put into consideration were the following:

  1. Search results….what type of results should we expose?
  2. Crawling and indexing…how do we crawl our domain and index our results?
  3. Web security…what standards do we need to put in place granted our search server is open-source?
  4. Third party dependencies…can we bring application ownership in-house?
  5. Future maintenance…what is our SOP and response time as the domain’s content changes?
  6. Technology Services protocols…what moving pieces are pertinent to change management guidelines, etc.?

The official release of UoR search went live in December 2013 and continuous improvements are slated throughout the year, so stay tuned. For now, feel free to explore this feature at, www.rockies.edu.

JavaScript Window Location Options

/******************************************************************* 
* JavaScript Window Location Options
* URL: http://www.sample.com/sample.htm?query=accreditation
*******************************************************************/
window.location.search.substr(7); //'accreditation'
window.location.href.slice(window.location.href.indexOf('?') + 7).split('&'); //'accreditation'
(window.location.href.indexOf('query=') > -1); //true
(window.location.href.indexOf('jumpTo=') > -1); //false