Home

Code @ CSU is an evolving resource for a variety of tech-related matters. If you would like to contribute to this project, please fill out the contributor request form. Alternatively, if there is a subject you would like to have covered here, please fill out the contact us form and submit your topic request.

Recent Posts

Migrate website

Get iCal Feed Using Web Service and Adjust Event Times

Here’s some example code to fetch a token and then an iCal feed from a 3rd party service.  Unfortunately the times are in UTC and the plugin we are using doesn’t respect the VTIMEZONE attribute, so I have to use regex to individually adjust all event times. private readonly static string tokenUrl = "https://domain:8445/token"; private

Read More »
Migrate website

Using an External Web Service to Deliver WordPress E-mail

We recently discovered that Gmail doesn’t play nicely with emails that are sent from our Azure instance (which is hosting our WordPress sites).  More specifically, Gmail users don’t receive the emails sent to them. Because of this, we have developed an API that resides on a local, on-campus server, wsnet2 to send out WordPress emails.

Read More »
Autoptimize vs Fail2Ban

Autoptimize, Fail2ban Fiasco

You must be logged in to view this content.

Please log in with your eID below:

Read More »
Responsive CSU Header

CSS-Only Responsive CSU Header

Background CSU’s brand guidelines require that our websites have a responsive header. For large screens, the CSU signature should be written out on one line (Colorado State University); on medium screens, the CSU signature should be written on two lines (Colorado State–University); on small screens, the CSU signature should be shortened to our initials (CSU).

Read More »
Updating gears

Automating Manual Plugin Updates

You must be logged in to view this content.

Please log in with your eID below:

Read More »

Posts of the Day

SQL

Common SQL Queries

You must be logged in to view this content.

Please log in with your eID below:

Read More »
Power BI

How to Switch From Import to Direct Query Mode in Power BI

I’m not sure why Microsoft sets “Import Query” as the default when creating new Power BI connections, but the tyranny of the default led me to create charts using that option.  Weeks later I realized I didn’t want to manually refresh my reports and sought to switch the query mode to be direct instead.  Here’s

Read More »
Web Analytics

How to Check My Site’s Analytics – First Steps

I utilize Google Analytics for all of my public websites.  If you want to get to that data without my intervention, you will need a Google account to do so.  Here’s the steps that are taken to obtain analytics data: I would create a Google Analytics account profile for you and then wire up your

Read More »