Skip to main content

Posts

Showing posts from July, 2012

Making Google Calendar a responsive embed with Mobile support

Google Calendar is amazing, but the embed code is pretty old.  They haven't updated it in many years. Since everything is Mobile First today, I needed a way to display better on cell phones. The following code does the following: Define a Responsive Cal types so that it uses 100% of the frame Define a DeskContent and a PhoneContent sizes (with a width of 768 being the switch point)  Wrap all of it in the Responsive Call Div so it all resizes automatically Display the Month view of the calendar if it's a desktop resolution Display the Agenda view of the calendar if it's a mobile resolution I've formatted this so that it can be placed inline in your HTML file. The first Embed should be your calendar code set to the Month view. The second Embed should be your calendar code set to the Agenda view.

Programming DHCP via NETSH

If you need to configure more than two subnets on a Windows 2008 R2 DHCP server (Or all versions later), doing via the GUI is a painful way to do it. Here's a simple cut and paste script that you can run via netsh that will make the subnets much quicker. Launch netsh from the command line, and paste this in: Replace 10.1.0.50 with your DHCP server, and 10.2.0.224 with your Scope's Network (check the subnet mask and the IP range)  Just repeat each section below for each subnet.  I find it easy to just use find and replace to make lots of these. Dhcp Server \\10.1.0.50 add scope 10.2.0.224 255.255.255.224 "Name of the Subnet" "Description of Subnet" Dhcp Server \\10.1.0.50 Scope 10.2.0.224 set state 1 Dhcp Server \\10.1.0.50 Scope 10.2.0.224 set delayoffer 0 # =============================================================== # Start Add Ipranges to the Scope 10.2.0.224, Server 10.1.0.50 # =============================