jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

Developer tools November 5, 2016 11:16 am

Posted by Doug McCaughan in : Software, Technology
, add a comment

I like SourceTree so much better than Github Desktop.

add a comment

My thoughts on acts of violence June 13, 2016 9:20 am

Posted by Doug McCaughan in : Technology
, add a comment

For each person who has lived on our soil and gone on to commit an act of violence, be it Timothy McVeigh or the 9/11 hijackers or the Columbine kids or any of the others, each one of those represents a failing on us as a society to not embrace them, to make them one of us, and let them see the American Dream and our way of life as great enough to put aside their wish to do harm and to feel welcome and loved enough to put down their arms. Step out of your homes, hug your neighbors, wave at a stranger (with more than your middle finger), let that person merge in traffic, accept one another, quit labeling and name calling, resist the media and politicians’ efforts to divide us with fear and hate, and generally practice being nice.

Together we stand; divided we fall. Let love overcome!

add a comment

Here’s a thought June 12, 2016 4:08 pm

Posted by Doug McCaughan in : Technology
, add a comment

View post on imgur.com

add a comment

Confessions of a programmer May 22, 2016 9:34 am

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Confessions of a programmer: I never presume the previous developer was incompetent. Instead, I assume they just had a drug problem. #coap

add a comment

Virtual reality has arrived April 9, 2016 10:05 am

Posted by Doug McCaughan in : Technology, Virtual Reality (VR)
, add a comment

Not nude but boobies: https://gfycat.com/FixedTightCobra

add a comment

From the mouths of babes September 26, 2015 10:46 am

Posted by Doug McCaughan in : Communications, Daily Life, Gadgets, Technology
, add a comment

Me: “Alexa, play Dr John Radio.”
Alexa: “Playing Latin jazz on Tunein.”
Aunt Mary’s ghost: “Enunciate boy!”

add a comment

More cord cutting September 14, 2015 12:45 pm

Posted by Doug McCaughan in : Communications, Daily Life, Technology
, 2comments

I did it. I committed to being a Comcast customer for the next 2 years. $109.95 per month set in stone. 50Mbps down/ 10Mpbs up. Unlimited. $200 installation fee; $150 rebate. And yes, if I terminate in less than 24 months, I’m on the hook for 75% of the remainder. So if 6 months remain when I cancel, I’d owe $495.

Negatives? No television whatsoever. Positives? No more data cap.

My overage charges alone in July were $110.

Now, saying, “I’m going to pay $2638.80 for two years of Internet connectivity” sounds ludicrous. Add in Netflix roughly $20 a month. $3118.80 and Hulu ($7.99/mth) $3310.56. And now add cellphone service: $12,358,56. So, if my family wanted to cut out all entertainment and phone services, in two years, I could take them on one of the cheaper Disney vacations. Or, we could skip Disney and stay current with The Walking Dead.

2comments

Why did they put Doug in a padded room? September 13, 2015 9:20 pm

Posted by Doug McCaughan in : .NET, Daily Life, Programming, Technology
, add a comment

Because "The type or namespace name ‘ScriptManager’ does not exist in the namespace ‘System.Web.UI’ (are you missing an assembly reference?)"

add a comment

How to program effectively September 9, 2015 9:11 pm

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Coding is so much better when it includes wine or beer.

add a comment

Inside the life of a programmer August 28, 2015 9:14 am

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Some days require the environment be just right for productivity. Today, I need a darkened room, incense burning, attire that doesn’t include button down anything, bare feet, herbal tea, and very, very loud cyberpunk music. Instead, I am in Cubeville. Florescent lights burn through my eyes searing my brain. The glare is so harsh. A din of conversations float over cube walls as ambient noise but not soothing as white noise, oceans, or rain. Interruptions are imminent. Such is the live of a programmer.

add a comment

Goodbye Ultimate Boot CD August 8, 2015 10:14 am

Posted by Doug McCaughan in : Software, Technology
, add a comment

Throughout the years of helping people fix their computers, one of the handiest tools in my armory was the Ultimate Boot CD. Not this one, although I did use that version often, but this one. I had an huge number of other tools EBCD, hacker tools, some websites common Joe has no reason to know exist, knowledge and experience, and an impressive Internet searching ability (a little understanding of boolean logic goes a long way). Them: "I don’t know my administrative password." Me: "No problem." Well, perhaps a 30 second delay. Anyhow, I’ve decided to upgrade my last functioning Windows box (Windows 7) to Windows 10. See, all those Linux boxes, and Windows boxes (at one time I had 5 physical machines under my desk, several dual booted to different OSes, and virtual machines on the Linux box…I even had a laptop that I could boot to Windows 3.1, wait a min, I still have that.) have been scraped and sent to e-waste as my home has become a shrine to Steve Jobs as we became fully indoctrinated into the Cult of Mac. As the Windows 10 installer inspects my Windows 7 machine, it discovers UBDC4Win 3.60 and declares that it MUST be removed as incompatible for the installation to continue. With some sadness, not dissimilar to when your goldfish dies, I approved the uninstall. (I still have the iso of the last UBCD I built so I haven’t completely crippled myself.)

add a comment

Today’s magic trick July 2, 2015 12:03 pm

Posted by Doug McCaughan in : Programming, Software, Technology, WordPress
, add a comment

Today, I make Caldera Forms export to Excel.

add a comment

Drug Store Magic – Chapter 1: (1) Wine to Water June 6, 2015 10:33 am

Posted by Doug McCaughan in : Science, Technology
, add a comment

Fill a small pitcher full of water and dissolve a small amount of ferric ammonium sulfate in the water. Then make up a small amount of sodium salicylate solution. Get two wine glasses, and in the first wine glass do not put anything; in the second wine glass put a few drops of sodium salicylate solution. Then you pour some water from the pitcher into your first wine glass. It will remain clear, but when you pour from the pitcher into the second wine glass it will take on the color of wine.

Ingredients required:

add a comment

DARPA now has steerable smart bullets April 28, 2015 1:51 pm

Posted by Doug McCaughan in : Technology
, add a comment

For people not paying attention, DARPA now has smart bullets.

Hollywood inspired: https://youtu.be/heMboVN12r0

http://factor-tech.com/vid/darpas-self-steering-bullet-hits-the-target-everytime/

http://en.wikipedia.org/wiki/Runaway_%281984_film%29

http://www.technovelgy.com/ct/content.asp?Bnum=1037

add a comment

Making a website look good on all devices April 26, 2015 9:11 am

Posted by Doug McCaughan in : HTML, Programming, Technology
, add a comment

N.b. Be sure to read this.

Responsive design is actually pretty straight forward. Use standard practices and don’t overcomplicate your html. But when we start to tweak something here or there, you quickly find yourself having to make sure that the code has adjustments for various devices. What does this mean to your programmer? Basically having to make changes to all of these:

/*********** Phones and handhelds ***********/
/*********** iPhones ***********/
/* ----------- iPhone 4 and 4S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

}

/* ----------- iPhone 5 and 5S ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

}

/* ----------- iPhone 6 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 

}

/* Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) { 

}

/* Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 

}

/* ----------- iPhone 6+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 

}

/* Portrait */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: portrait) { 

}

/* Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3)
  and (orientation: landscape) { 

}

/*********** Galaxy Phones ***********/
/* ----------- Galaxy S3 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) {

}

/* Portrait */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) 
  and (orientation: portrait) {

}

/* Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 2) 
  and (orientation: landscape) {

}

/* ----------- Galaxy S4 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {

}

/* Portrait */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {

}

/* Landscape */
@media screen 
  and (device-width: 320px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {

}

/* ----------- Galaxy S5 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {

}

/* Portrait */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {

}

/* Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {

}

/*********** HTC Phones ***********/
/* ----------- HTC One ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) {

}

/* Portrait */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: portrait) {

}

/* Landscape */
@media screen 
  and (device-width: 360px) 
  and (device-height: 640px) 
  and (-webkit-device-pixel-ratio: 3) 
  and (orientation: landscape) {

}

/*********** Tablets ***********/
/*********** iPads ***********/
/* ----------- iPad mini ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* ----------- iPad 1 and 2 ----------- */
/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1) {

}

/* ----------- iPad 3 and 4 ----------- */
/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {

}

/* Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {

}

/*********** Galaxy Tablets ***********/
/* ----------- Galaxy Tab 10.1 ----------- */

/* Portrait and Landscape */
@media 
  (min-device-width: 800px) 
  and (max-device-width: 1280px) {

}

/* Portrait */
@media 
  (max-device-width: 800px) 
  and (orientation: portrait) { 

}

/* Landscape */
@media 
  (max-device-width: 1280px) 
  and (orientation: landscape) { 

}

/*********** Nexus Tablets ***********/
/* ----------- Asus Nexus 7 ----------- */

/* Portrait and Landscape */
@media screen 
  and (device-width: 601px) 
  and (device-height: 906px) 
  and (-webkit-min-device-pixel-ratio: 1.331) 
  and (-webkit-max-device-pixel-ratio: 1.332) {

}

/* Portrait */
@media screen 
  and (device-width: 601px) 
  and (device-height: 906px) 
  and (-webkit-min-device-pixel-ratio: 1.331) 
  and (-webkit-max-device-pixel-ratio: 1.332) 
  and (orientation: portrait) {

}

/* Landscape */
@media screen 
  and (device-width: 601px) 
  and (device-height: 906px) 
  and (-webkit-min-device-pixel-ratio: 1.331) 
  and (-webkit-max-device-pixel-ratio: 1.332) 
  and (orientation: landscape) {

}

/*********** Kindle Fire ***********/
/* ----------- Kindle Fire HD 7" ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 800px) 
  and (max-device-width: 1280px) 
  and (-webkit-min-device-pixel-ratio: 1.5) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 800px) 
  and (max-device-width: 1280px) 
  and (-webkit-min-device-pixel-ratio: 1.5) 
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 800px) 
  and (max-device-width: 1280px) 
  and (-webkit-min-device-pixel-ratio: 1.5) 
  and (orientation: landscape) {

}

/* ----------- Kindle Fire HD 8.9" ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 1.5) {

}

/* Portrait */
@media only screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 1.5) 
  and (orientation: portrait) {
}

/* Landscape */
@media only screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 1.5) 
  and (orientation: landscape) {

}

/*********** Laptops ***********/
/* ----------- Non-Retina Screens ----------- */
@media screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 1) { 
}

/* ----------- Retina Screens ----------- */
@media screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (min-resolution: 192dpi) { 
}

/*********** Wearables ***********/

/*********** Apple Watch ***********/
/* ----------- Apple Watch ----------- */
@media
  (max-device-width: 42mm)
  and (min-device-width: 38mm) { 

}

/*********** Moto 360 Watch ***********/
/* ----------- Moto 360 Watch ----------- */
@media 
  (max-device-width: 218px)
  and (max-device-height: 281px) { 

}
add a comment