Search found 17 matches: For

Searched query: for

by jessica
Wed Jan 23, 2019 4:48 am
Forum: Java
Topic: Java FizzBuzz Example
Replies: 1
Views: 125

Re: Java FizzBuzz Example

I may have to test that, I mod 15 may not work for 10... I will setup a Java environment and show my work.
by jessica
Mon Nov 26, 2018 2:00 pm
Forum: Born Again Shell Scripting
Topic: Valid IP Address
Replies: 0
Views: 107

Valid IP Address

A BASH script to test for valid IP Addresses Dxw1LBzN #!/bin/bash function valid_ip() { local ip=$1 local stat=1 if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then OIFS=$IFS IFS='.' ip=($ip) IFS=$OIFS [[ ${ip[0]} ...
by jessica
Fri Sep 28, 2018 7:41 am
Forum: Javascript
Topic: Vue.js -- This could be fun to play with!
Replies: 0
Views: 191

Vue.js -- This could be fun to play with!

So I found Vue.js at work. The powers above me decided to start using Vue.js on all of their projects. When going over the documentation for Vue, I noticed this little Code Pen, so I wanted to duplicate it and put it up on this site. I will be playing with it and adding more features, maybe ...
by jessica
Wed Sep 12, 2018 11:03 am
Forum: General Discussion
Topic: Table for version numbers for something I'll eventually create
Replies: 0
Views: 118

Table for version numbers for something I'll eventually create

... of mischief, delusion, ruin, and folly. | Athena | | 4.0.x | Goddess of wisdom, poetry, art, and war strategy. Daughter of Zeus and born from his forehead fully grown, wearing battle armour. | Atropos | | | Eldest of the three Moirai, goddesses of fate and destiny (also known as The Fates). Atropos ...
by jessica
Wed Sep 12, 2018 6:09 am
Forum: PHP
Topic: Bot Detection System
Replies: 0
Views: 235

Bot Detection System

0EWDLfuf <?php /** * Generates a list of robot useragent deffinitions for use with * $_SERVER['HTTP_USER_AGENT'] to identify robots * * Created by: Muddy_Funster @ forums.phpfreaks.com - 09/2013 * Updated and modified by: Jessica Brown for use on DIABLOS - ...
by jessica
Wed Sep 12, 2018 5:58 am
Forum: PHP
Topic: Easy Dev, Debug, and Production Environment
Replies: 0
Views: 174

Easy Dev, Debug, and Production Environment

I like to create a environment.inc file, inside this file I will have a switch which will test for 3 different conditions PRODUCTION, DEBUG, DEVELOPMENT # Check the environment switch (ENVIRONMENT) { case "PRODUCTION":{ ini_set('display_errors', 0); ini_set('display_startup_errors', ...
by jessica
Mon Sep 10, 2018 10:13 am
Forum: C#
Topic: First and Last of Dates Function
Replies: 0
Views: 178

First and Last of Dates Function

I didn't create this, although I use it quite often. A nice little way of getting dates for first and last. 3RC2biM4 public static partial class DateTimeExtensions { public static DateTime FirstDayOfWeek(this DateTime dt) { var culture = System.Threading.Thread.CurrentThread.CurrentCulture; ...
by jessica
Mon Sep 10, 2018 6:24 am
Forum: Powershell Scripting
Topic: Windows Product Key
Replies: 0
Views: 115

Windows Product Key

... { param ($targets = ".") $hklm = 2147483650 $regPath = "Software\Microsoft\Windows NT\CurrentVersion" $regValue = "DigitalProductId" Foreach ($target in $targets) { $productKey = $null $win32os = $null $wmi = [WMIClass]"\\$target\root\default:stdRegProv" $data = $wmi.GetBinaryValue($hklm,$regPath,$regValue) ...
by jessica
Sun Sep 09, 2018 11:21 am
Forum: PHP
Topic: Better PHP Dump
Replies: 0
Views: 132

Better PHP Dump

... panel Version 2.3.0: Added auto hide feature to prevent array to interfere with template Version 2.0.0 Added notification area to provide detail information about array Added css to beautify layout and design Added feature to bring the HTML back to a string ** BUG FIX ** float displaying incorrectly ...
by jessica
Sun Sep 09, 2018 10:40 am
Forum: Born Again Shell Scripting
Topic: Menu Driven Linux Info System
Replies: 0
Views: 218

Menu Driven Linux Info System

... a valid selection." | center && echo "" && echo "${txtcyn}(Press ENTER to continue.)${txtrst}" | center && read ;; esac done pause } #Purpose - For getting User operation and infrmations function user_infos() { write_header "User Operations" txtred=$(tput setaf 1) txtgrn=$(tput setaf 2) txtylw=$(tput ...