Tag Archives: Software Sagacity

Node.js – EJS Function in Module

Node.jsThe EJS templating engine is one of the more effective ways to render HTML from Node / Express.js.  With an HTML syntax and simple tags for including server-side JavaScript, EJS combines the best of both HTML and Node.  While other templating engines such as Handlebars.js can also work with HTML, the EJS format is particularly flexible by enabling the full capability of the JavaScript interpreter in the template body.
Continue reading

RSS Twitter LinkedIn Facebook Email

HTML Basics: Adding YouTube Video to a Web Page

You Tube

YouTube offers a wealth of features for video publishing and manipulation.  What makes the YouTube platform extremely powerful, however, is the ability for users to easily integrate video into any of their own, external, webpages.  Through video integration, YouTube has transformed itself from simply a catalog of videos, into the largest video host on the Internet.
Continue reading

RSS Twitter LinkedIn Facebook Email

How to Convert HMTL to PDF using PowerShell

PowerShellMicrosoft PowerShell is an incredibly flexible batch scripting engine – essentially the Swiss Army knife of Windows programming. Although the language itself is derivative of Batch files, it gains significant capability through .NET integration. PowerShell scripts can access SQL databases, execute shell commands, parse file and directory structures, and perform I/O, mostly through one-line commands.
Continue reading

RSS Twitter LinkedIn Facebook Email

CSS Absolutely Relative Positioning

Web DevelopmentWhen web designers code a site’s HTML and CSS, the built-in methods for positioning elements on the screen are “absolute”, “fixed” and “relative” positioning. Each method provides its distinct set of advantages and drawbacks, however there are times when a layout requires the best of all worlds. In order to handle these cases, a very useful hybrid technique is available, dubbed absolutely relative positioning.
Continue reading

RSS Twitter LinkedIn Facebook Email

PHP Form Sniffing – Full GET and POST Variable Simulation

PHP DevelopmentWhen developing web applications, it is sometimes necessary to capture and replicate a particular request in order to debug and fix a problem. This is especially true when integrating with third-party applications, where it can be challenging and time-consuming to reproduce a specific scenario. If the errors are sporadic, capturing all relevant data to a file will allow the developer to review the log afterward to match the incident time with the suspect form parameters.
Continue reading

RSS Twitter LinkedIn Facebook Email

Web Development Tips – Disabled Input Elements in Postback

Web DevelopmentWhen developing forms for the web, there are two methods to make a form element non-editable – using either the “readonly” or “disabled” attributes.  Each method has its benefits and drawbacks, however there is a workaround available to combine the best of both worlds.
Continue reading

RSS Twitter LinkedIn Facebook Email

Highlight Table Rows using Javascript

Web DevelopmentWhen developing web applications with wide tables, it’s often difficult to scroll horizontally and see which row corresponds to which data. This is why most apps limit the width of any table to the width of the page. Still, at times it is necessary to show a large amount of data in a tabular format. This JavaScript scriplet will help add highlight functionality to any HTML table.
Continue reading

RSS Twitter LinkedIn Facebook Email