Read a file to a string in a single line of Java

23 Jun

Rarely in my career have I written significant amounts of Java, so when I do use it I’m always learning new things.  I thought this unique way to use Scanner to read a text file into a string was great:

Nice … Read More »

Simple AVR Button Debounce

14 Jan

I needed a simple debounce for a push button wired directly to a digital input on an ATMega.  I’m sure there are more advanced techniques but this is working well for me.

Where bit_is_clear is defined in AVR-LIBC IO.H … Read More »

Remove Blocked File Types in SharePoint

9 Jan

You can remove the blocked file types in SharePoint programmatically by accessing a collection on an SPWebApplication object.

.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre … Read More »