Author Archives: Derek Carr (zaphinath)

Ruby on Rails 5 Star Rating with Star Rating Widget

Description With countless rating systems out there I decided to go with JQuery’s Star Rating Widget Plugin for one of my pet sites: www.recisphere.com. The only problem with this is a complete lack of documentation on how to go about using it. I did a dirty hack but it seems to work great so I […]

Facebook Access Vietnam

Description Due to lovely government restrictions of freedom of speech in Vietnam the website www.facebook.com has now been blocked. The enforcement of this is not very strick and is rather easy to work around. The solution is to reroute the dns services coming to your computer instead of using the default ones provided by any isp […]

Webserver for OSX Tutorial

Description This tutorial is will show how to set up an apache server for web development which allows for sites to be written in any language and framework. This is tailored for Mac OS X and is meant for developers who write websites in multiple languages and frameworks. This tutorial starts by setting up apache, […]

Python Ctypes for Advanced Fortran and C++

Problem The cytpes library in python 2.6 and greater allows python to call fortran, c, and c++ functions from a specially compiled library. However the python cytpes library is limited in the datatypes that can be called from those libraries. This tutorial will show how to call derived data types from a fortran library and […]

Line Wrap With SyntaxHighlight

Problem: Syntax Highlighter has a problem where long lines of code use a horizontal scroll bar instead of using a line break or word wrap. Example Before: [bash wraplines=”false”]sql_query = SELECT page_id, page_title, page_namespace, page_is_redirect, old_id, old_text FROM vn_page, vn_revision, vn_text WHERE rev_id=page_latest AND old_id=rev_text_id[/bash] Solution: If using wordpress install a plugin called ‘SyntaxHighlighter Evolved’ and […]

Spinx.conf for mediawiki

Problem: [bash]ERROR: index ‘wiki_main’: sql_query: Table ‘db.page’ doesn’t exist (DSN=mysql://:***@localhost:3306/db)’[/bash] [bash]ERROR: index ‘wiki_incremental’: sql_query: Table ‘db.page’ doesn’t exist (DSN=mysql://:***@localhost:3306/db)[/bash] Solution: This comes because in the database the tables being queried have a different name. The name was changed at the creation of the database. An example is the normal table for wiki is ‘page’ but […]