Category: Programming
-
Integrating Internet Services on Your Site (Or Mini-Cloud Web Sites)
Something I’ve been increasingly fascinated with over the last year is the reuse of free internet services that I have. On my site, I have widgets that feed the last 4 posts from this wordpress blog, and my twitter feed. I also have an ajax live bing search box that will return results from my […]
-
IEnumerable and Linq
I was helping someone on StackOverFlow.com and ran into an interesting issue. The post is here. I explained the issue in my response, but I’ll try to sum up. Newer collection types implement IEnumerable(Of T) as opposed to the original IEnumerable interface. For example, System.Generic.List(Of T) implements IEnumerable(Of T), so the following is valid without […]
-
SilverLight and Z-Index
When implementing a new SilverLight custom control, it was blocking menu popups (html / javascript) on the page. I set the z-index of the div and object tags that contained SilverLight to no avail. After a lot of googling, I found the following solution. Set the Windowless property to true. In the case of manually […]
-
JSON Objects
Answered a question on StackOverflow that I thought is worth posting about. It’s surprising how many people try to work with JSON without knowing javascript. Most JSON either returns objects {} or arrays []. The first thing you learn about JSON is that you can just eval the object. In the case of arrays, you […]
-
Keeping Temporary Files Out Of The Way In Emacs
Found some very useful emacs info in this this blog post. Put the following into your config and your temporary and autosave files will not clutter up your project directory. (defvar user-temporary-file-directory (concat temporary-file-directory user-login-name “/”)) (make-directory user-temporary-file-directory t) (setq backup-by-copying t) (setq backup-directory-alist `((“.” . ,user-temporary-file-directory) (,tramp-file-name-regexp nil))) (setq auto-save-list-file-prefix (concat user-temporary-file-directory “.auto-saves-“)) (setq […]