Importing multiple intermediate certificates on Synology DSM 5.0

I recently bought an SSL certificate from Comodo, and when I got my certificate I also received two intermediate certificates…

The problem came when trying to import the two intermediate certificates… on the Synology DSM 5.0 firmware, there’s only one field for the intermediate certificates…

Screen Shot 2014-07-11 at 12.09.35 pm

So how did I get both certificates into the one file? It’s actually really simple – I combined the two certificates into a single, .crt file and then selected the combined file as the “intermediate certificate”. The web server reboots and then there are no nasty Firefox/Crome errors like “sec_error_unknown_issuer”.

Thanks to this serverfault answer!

Advertisements

Adding sort-of cron jobs to Synology DSM 5

I wanted to write a cron job to run a php script, so I found a way to regularly call a php script.

Go to the Control Panel, and click on “Task Scheduler” under “System”. Select “Create” –> “User-defined script”.

Under “User-defined script”, type in the following…

curl "http://example.com/cron.php"

…replacing

"http://example.com/cron.php"

with whatever script you run. I’ve found it seems to work well with regular cron jobs like a Dynamic DNS (DDNS) update.

UPDATE: See Simon’s comment below for more information on scheduling tasks!

Exporting taxonomy terms in Drupal 7

Firstly you’ll need to install the UUID Features (https://drupal.org/project/uuid_features) , Features (https://drupal.org/project/features) and UUID (https://drupal.org/project/uuid) modules.

Once all those modules are enabled, go to example.com/admin/config/content/uuid_features (or on your administration menu go to Administration –> Content Authoring –> UUID Features Integration, and under “Exportable Taxonomy term bundles” check the boxes for the relevant taxonomy terms.

Go to your features export page at example.com/admin/structure/features/ (or on your administration menu go to Administration –> Structure –> Features), create/recreate the feature and you’ll see “Taxonomy Terms” listed.

Happy exporting!!

Adding Internode email accounts to Airmail

I finally found out the settings to get Airmail to work with the Internode email service – the email address is username@internode.on.net and you use your “username” as the username for the login credentials (as you do for the account preferences). Leave the ports blank and Airmail figures out the rest!

airmail internode

Enabling DLNA/uPnP services in the Synology DSM version 5

So something new I noticed in the latest Synology firmware: there’s a firewall feature now available. But I found it conflicted with my DLNA/uPnP server. So how did I fix this?

Firstly, I restarted the “Media Server” (it’s at the Package Center, selecting the Media server and then stopping and starting the server).

screen-shot-2014-05-06-at-7-16-37-pm

When I started the server, the very intelligent firewall opened a prompt to let me know that the firewall was blocking the DLNA/uPnP server which needed to allow the service.

Need to check the firewall settings? Go to the Control Panel, and under Connectivity select Security – the firewall settings has a separate tab.

Converting ESRI Shapefiles to CSVs using QGIS

So I’ve been trying to export the data from the AMSA (the digital data from https://www.operations.amsa.gov.au/Spatial/DataServices/DigitalData which contains about 1 million data points per month). And I found a way to export the shapefile’s data to a CSV file :D!

  1. Install QGIS from Kyngchaos for Mac users!! http://www.kyngchaos.com/software/qgis
  2. Drag the “.shp” and drop it into the “Layers” panel on the left hand panel
  3. Click on the layer and then on the menu item, and select Layers –> Save As
  4. Select “Comma Separated Values”, and select a file to save to. It might probably pay to check which projection you’re saving it to, but I found it’s smart enough to use the same projection the source file uses.
  5. Click OK.

Stopping iPhone/iPad (iOS) messages from repeatedly alerting you to new messages

So a big pain for me in iOS was how whenever I’d get a text message/iMessage it will keep on beeping at me…. Well I found a way to stop this from happening by turning off “Repeat Alerts” in the Notification Settings for Messages app.

How do you get there?

  • Go to the Settings App.
  • Select “Notification Centre”.
  • Select “Messages”.
  • Scroll down until you see “Repeat Alerts”.

Here’s a screen shot to show where it is :-).

ios messages screenshot

Enabling Google Plus integration into Chrome

I don’t know if you have ever wanted to get google plus integration into Google Chrome (so this works for Chrome Canary and for Chromium) where you can see your google plus notifications and quickly access gmail and the like….

Screenshot 2013-12-31 20.31.29

 

It’s rather simple!

  • Go to Properties in Google Chrome.
  • Click “Show Advanced Settings”
  • Enable “Use a prediction service to help complete searches and URLs typed in the address bar”.

If you have some versions of Chrome Canary or Chromium, you’ll need to go to “chrome://flags” and enable “Enable Instant Extended API” and “Enable local first-load NTP in Instant Extended.”

Happy new year!!

Using HDMI Audio on a MacBook Pro

So I use Jaycar’s Mini DisplayPort to HDMI/DisplayPort/DVI converter (available at http://www.jaycar.com.au/productView.asp?ID=WQ7427) to connect my MacBook Pro to my TV. So getting the display to work is easy (set the TV to receive video from whichever HDMI port the laptop is connected to)… but getting audio to go out of the TV instead of the MacBook Pro?

  1. Go to System Preferences.
  2. Click “Sound”
  3. Click “Output”
  4. And select the display.

And congratulations :-)!

A HTML template for Drupal module reviews

…. Because I am so painfully lazy, here is a template for reviewing Drupal modules following the guidance at https://drupal.org/node/1587704.

<strong>Issues Summary</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Basic application checks</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Repository checks</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Security review</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Licensing checks</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Documentation checks</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>Coding standards</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>

<strong>API and best practices review</strong>
<ul>
<li></li>
<li></li>
<li></li>
</ul>