Web Development
Website Redesign Checklist
Posted October 18th, 2012 by skrossaOverview
This checklist is intended to help small departments assess their needs for website re-design and leverage as many Stanford and low-cost opportunities as possible.
The "Roles" section lists all of the potential roles in an ideal redesign. Some of these are areas of focus rather than actual job titles, but each could easily take up a great deal of time. With a small staff, some individuals will fulfill several roles, and some roles will be filled by outsiders.
Direct PHP errors to a log file of your choosing
Posted May 23rd, 2012 by mrmarcoDevelopers working with sites on www.stanford.edu don’t get direct access to Apache’s error log. To troubleshoot your PHP applications, you can create a local php.ini file with the lines below. This will redirect PHP errors to a file of your choosing. Make sure to remove these lines and the file containing the errors once you are done troubleshooting to avoid disclosing the internal workings of your application.
Show git branch in bash prompt
Posted April 26th, 2012 by aaroncIt's considered good practice to create feature branches in git when working on new functionality. The problem with this is that knowing which branch you are in is not obvious. Pasting the following into your .bashrc file will display the current branch in your prompt.
Simple Git Fast Forward
Posted January 2nd, 2012 by John BickarIf you get the befuddling message:
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded
you can just run:
git pull
Or, if that doesn't work:
git pull origin master
(I think.)
The above might seem obvious to some, but Googling "git fast forward" proved surprisingly unfruitful. HTH.
Boost
Posted December 8th, 2011 by John BickarOverview
Boost "provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly anonymous traffic". With the move of proxies to the WWW servers (January 2012), it is possible to install and configure it in the Stanford Leland web environment.
Benchmarking Site Performance with ApacheBench
Posted November 3rd, 2011 by John BickarApacheBench (ab) is "a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server." It is built in to most current versions of Mac OS X and Linux. It's a quick way of sending multiple requests to a website and timing how long they take.
Basic Test
At its most basic, ab can perform successive and/or concurrent load tests on a webpage. Run the following command in the Terminal (Mac OS X; if you don't have OS X, ab is installed on the corn cluster machines):
Qualitative Website Usability Testing
Posted August 11th, 2011 by sktA couple of months back we'd posted to su_webmasters asking for advice / suggestions / ideas for conducting web usability tests. We're grateful for all the suggestions we received -- thank you for those!
We wanted to follow up with a quick recap of what we ended up doing, and how it went.
Goals
Conduct qualitative usability testing on our ECorner website (ecorner.stanford.edu) to gain insights on the general usability of the UI.
Virtual Host for Foswiki / TWiki wikis
Posted March 2nd, 2011 by AnonymousUsing a vanity URL / virtual host address like http://mysub.stanford.edu with a Foswiki is pretty straightforward. Assuming that your Foswiki installation's view script is at http://www.stanford.edu/path/to/cgi-bin/wiki/bin/view, then
- Choose the "proxy" option for the virtual host and let it point to http://www.stanford.edu/path/to/cgi-bin/wiki/ (the directory that contains the bin and pub directories).
- Adapt Foswiki's environment variables as follows:
- {DefaultUrlHost}: https://mysub.stanford.edu
- {ScriptUrlPath}: /bin
- {PubUrlPath}: /pub
MediaLinks Style Sheet
Posted January 24th, 2010 by jfoliotMediaLinks Style Sheet
Developed by John Foliot / Stanford Online Accessibility Program (http://soap.stanford.edu)Released under Creative Commons Attribution-Share Alike 3.0 United States License
NOTES:
This is an additional stylesheet (medialinks.css) which can be incorporated into Drupal (or used stand alone) that does some checking of links based on file extension type, and add an appropriate icon after the link showing the file format. For example, a link to a PDF file will auto-magically also show a Acrobat icon directly after the link, as part of the link; current formats supported include PDF, DOC, DOCX, XLS, and PPT. It also has a new CSS authoring class called “external” which also provides an icon after a link, indicating that it is a link off of the current site.
Don't use the 'people' alias when calling a script in your personal CGI space...
Posted October 8th, 2009 by markbI discovered recently that the cgi servers won't pass variable data through if you use the /people/ mapping in the HTML form for scripts written in your personal cgi space.
So, if you put a script (e.g., foo.php) in your cgi-bin, and you try to call said script using https://www.stanford.edu/people/yoursunetid/cgi-bin/foo.php, the variables won't get passed through.
Make sure you always use https://www.stanford.edu/~yoursunetid/cgi-bin/foo.php instead.
-mark-
============================================
Mark Branom
Instructor, IT Services Technology Training
