Nicholas Rowe

CEO & Co-Founder – Saigon Digital

Category: Web

  • DNS – How a website is found on the internet

    DNS – How a website is found on the internet

    DNS stands for Domain Name System. A domain name is the unique name that is assigned to a website. DNS is the system that enables this to work. When you build a website, you also register a domain name. Then, you point the domain name to your website. Reference: https://howdns.works

  • NodeJS – Setup a Simple HTTP Server / Local Web Server

    NodeJS – Setup a Simple HTTP Server / Local Web Server

    This is a quick post to show you how to setup a simple HTTP web server on your local machine using NodeJS. The web server runs on the http-server npm package, a simple zero-configuration http server for serving static files to the browser, it’s started from the command line and doesn’t require a server.js file. Download and Install…

  • WordPress SSL Offloading

    Understanding what’s happening When your page is accessed over HTTPS, but the Load Balancer is performing SSL offloading and actually requesting your content on the non-SSL port 80, the webserver, PHP, or anything else for that matter, does not understand or see that it’s being accessed over https://. The fix for this, is that Load…

  • Fonts. What and where.

    Found a great little font “cheat sheet” I’m going to leave it here, else I’ll never remember where I found it!

  • Vertically aligning elements

    For a long time I’ve always been using the following method of vertically aligning elements on a web page: [css].parent{ display: table; width: 100%; } .child{ display: table-cell; text-align: center; vertical-align: middle; } [/css] This method works good across all browsers and includes solid IE support down to IE7. The downfall of this particular method…

  • Element height based on viewport height

    Today I had to create a little landing page for one of our clients. one of the requirements was to have the landing page fill the screen no matter what height the viewport was. So this would fill the space up on a desktop, iPad for example. I stumbled across a handy piece of jQquery…

  • Find out what template a WordPress theme is using.

    Recently I was working on a clients website and it was decided that I was going to integrate buddypress on the website. I have worked with buddypress in the past and found it a great bit of software to extend upon with WordPress. This time round it was a bit more of a overall custom feel…

  • Happy day for web designers

    As of recently, Internet explorer is no longer the #1 internet browser in the UK. Research shows that google chrome has now slightly surpassed Microsofts dominating commercial browser. Web designers rejoice!

  • Change the default excerpt length of 55 words.

    By default the_excerpt length is 55 words. Sometimes I want to give my readers a longer excerpt length, depending on font-size and other element sizes, you could make the little teaser somewhat longer. The below code creates overwrite the_excerpt and will return as many words as you desire. [php]function new_excerpt_length($length) { return 100; } add_filter(‘excerpt_length’, ‘new_excerpt_length’);[/php] Change…

  • When to use WP_Query, query_posts and pre_get_posts

    query_posts() function is commonly thought of as the simplistic and problematic way forward to modify a main query of a page by replacing it with a new instance of the particular query. It is bad practice as it re runs SQL queries and will simply not work and fail in some circumstances, this usually happens when…