Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Calculate BMI

Posted on April 16, 2014October 26, 2015 By David Kittell
static int CalculateBMI(int weight, int height)
    {
        return (weight * 703) / (height * height);
    }
Originally Posted on April 16, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code CSharp

Post navigation

Previous post
Next post

Related Posts

Restrict Access to Internal IP

Posted on September 26, 2013October 26, 2015

Many times we have sites that are public but have pages that should only be viewed by internal users. Ideally the settings would be configured on the server level in IIS but if not possible for some reason this may help. One key thing to note is this code will…

Read More

MS SQL Import Txt File

Posted on October 15, 2013October 26, 2015

sqlcmd -i nonMemLoad.txt -o sqllog.txt Reference: http://msdn.microsoft.com/en-us/library/ms170572.aspx Originally Posted on October 15, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and…

Read More

Red Hat / CentOS / Fedora – Splunk – PERL – Apache Server Status

Posted on April 2, 2021August 17, 2024

Guide Followed: https://community.splunk.com/t5/Getting-Data-In/Reading-Apache-server-status-output/m-p/48158 First make sure your Apache server-status is setup (assuming you already have Apache/httpd installed) # Create apache_exporter user sudo useradd apache_exporter -s /sbin/nologin # Create Apache Location declare apache_exporter=$(cat <<EOF ExtendedStatus on <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> EOF )…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes