|
title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
|
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
|
x
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
|
| Tuesday, January 31, 2012 | |
|
And welcome to Events for me. And more importantly, welcome to threads in ExtJS. How to read Ext.data.JsonStore elements ... store.each?: No, as I said before the store load is _asynchronous_. Do this instead: Makes it slightly more complicated to debug your data loads, but such is the price of progress with Javascript, I guess. posted by ruffin at 1/31/2012 11:20:00 AM |
|
| Saturday, January 28, 2012 | |
|
I looked around until something worked without any serious editing, and here's our winner... 1 public void actuallySendMail ()
posted by ruffin at 1/28/2012 11:17:00 PM |
|
| Saturday, January 21, 2012 | |
|
I tend to be a standards guy myself, but Grubes does an excellent job arguing against using open standards for Apple's iBooks: Itโs the difference between โWhatโs the best we can do within the constraints of the current ePub spec?โ versus โWhatโs the best we can do given the constraints of our engineering talent?โ โ the difference between going as fast as the W3C standards body permits versus going as fast as Apple is capable. I don't know that I think Apple's got another iTunes Music Store for textbooks by any stretch, and I am sure that this argue doesn't mean Apple couldn't have opened their own format for use by anyone on any platform (see C# and Mono for Microsoft surprisingly Doing It Right), but it is a good argument against Glazman's claims (quoted in the same link) that Apple should have embraced standards. The iBooks format isnโt different just for the sake of being different, itโs different for the sake of being better โ not better in the future, after a W3C review period and approval, but better today, in the textbooks you can download and read in iBooks right now. Again, that doesn't argue for the iBook as a legally-enforced closed ecosystem, but it does argue very well for not using w3c sanctioned standards. But here's where we have trouble... Grubes sets out three scenarios. 1.) Publishers only use iBooks for ebook distribs. 2.) Publishes integrate iBooks into their current workflow. 3.) Publishers don't use iBooks. On two, he says... If they choose to work iBooks Author into their cross-platform production workflow, and it proves to be a pain in the ass, thatโs not Appleโs problem. That's not true. If Apple gains the sort of dominance in ebooks that it has in emusic, then fine, Apple isn't significantly hurt by others going elsewhere. But if, to go all Gladwellian on Grubes' arse, the difficulty of integrating iBooks is the barrier to entry that keeps iBooks from hitting a market tipping point, well, then that certainly is Apple's problem, ain't it? (Grubes essentially admits this... "(What would be Appleโs problem is if iBooksโs new layout and design features do not prove to be a competitive advantage in the e-book market. But even then, Apple would merely be right back where they were prior to yesterdayโs announcements.1)" ... but I think he misses 1.) the opportunity cost of releasing iBooks and 2.) the degree to which the utility of being able to work a new format into your workflow drives competitive advantage. Apple's really not back to where they started before the announcement. Not that Apple can't afford to miss a few more times.) posted by ruffin at 1/21/2012 05:45:00 AM |
|
| Friday, January 20, 2012 | |
|
It's recursive call day! /dev/movabletripe ๏ฟฝ Recursively chmod directories only: Recursively chmod directories only Had some issues with git similar to these... Git chmod problem: Checkout screws exec bit . 644 for files, 755 for dirs, apparently because without executable rights, you can only list the dir's contents, not enter them. Whaddyano? Labels: git, noteToSelf posted by ruffin at 1/20/2012 03:40:00 PM |
|
|
Recursively delete .svn directories: So, this will remove every .svn folder beginning from current directory. posted by ruffin at 1/20/2012 03:01:00 PM |
|
|
gitk, the built-in (?) graphical git diff client, had an option to ignore "changed" lines that differed only in whitespace, which is something I'd like to keep on all the time when I work with js, cs, and html/aspx files. I'm awfully particular when it comes to good, consistent whitespace, but I don't need to review that to see if I've borked something with a change. Hopefully this does it, from Help.GitHub - Git cheat sheets: To ignore whitespace (Ruby is whitespace insensitive) Labels: git, whitespace posted by ruffin at 1/20/2012 11:37:00 AM |
|
| Thursday, January 19, 2012 | |
|
Can the Math.random() command actually return a 0 or 1? - CodingForums.com: Can the Math.random() command actually return a 0 or 1? Fun thread. TL;DR: 0 yes, but more likely you win the lottery. 1 never, except for Safari and Opera in 2002, both of which screwed up their implementation of Math.random(). So if you get a one, it's not exactly your fault. (Strangely, those two browsers gave 1 something reportedly like 1 in 35,000 runs, which is unbelievably often.) Labels: javascript posted by ruffin at 1/19/2012 01:30:00 PM |
|
| Wednesday, January 18, 2012 | |
|
Microsoft.Http.dll : The Official Microsoft ASP.NET Forums: Re: Microsoft.Http.dll Argh. Maybe the third time this happens I'll remember it. posted by ruffin at 1/18/2012 09:59:00 AM |
|
|
Latest project uses ExtJS for nearly all of its UI. Still a pretty exhaustive toolkit and still seems fairly robust, but I've got to admit that I'm a little wary of abstraction layers. I often create docs in html rather than .doc(x) or what-have-you because I know I can, heck or high water, make html look like I want it to eventually. jQuery initially had me scared, but the ability to reach in with Javascript easily if something borked (and the ease with which you could go javascript parallel to jQuery) won me over, even on a .NET project. With ExtJS, not so sure. I'm getting the feeling that stuff I do in javascript to get things done might get overwritten by ExtJS with more abandon. Anyhow, changing a tree node's icon, though not easy or well-documented, was eventually pretty easy once I Firebugged it (another thing I didn't really need with jQuery, though I was a Chrome tools window junkie for a while). Some decent help here and here (from StackOverflow on both counts). 1 // (works, so touching the right OM)Labels: ExtJS, javascript, jquery posted by ruffin at 1/18/2012 08:58:00 AM |
|
![]() The Wikipedia lock-out is getting some decent play in the media today, but to view it as usual, you only have to turn off javascript. Still, perhaps the most free press (pun unintended) per line of code ever written. posted by ruffin at 1/18/2012 08:37:00 AM |
|
| Friday, January 13, 2012 | |
|
Make your website an iPhone web application | Luscarpa Blog: Hide Safari Components Labels: ios, noteToSelf posted by ruffin at 1/13/2012 08:34:00 AM |
|
| Thursday, January 12, 2012 | |
|
OpenSebJ by DSebJ: 64 Bit Windows with C# Express .Net and 32 Bit DLL's: Any way there seems to be a saving grace, you can do development on a 64 Bit OS and set C# Express to specifically target your application to x86, it's just not obvious. Targeting x86 will mean that your application will still run on a 64 Bit OS but will use WoW (Windows on Windows, which is a compatibility layer to backwards support 32 Bit applications) so you won't get the native use of those 64 Bit Int's but you will be able to use your 32 Bit DLL's. Labels: c#, noteToSelf posted by ruffin at 1/12/2012 09:29:00 PM |
|
|
Integration Ext JS and ASP.NET MVC: In Visual Studio 2008 there is included support for javascript intellisense. When you put a *.js file in your page and click the Ctrl Shift J shortcut, you will update the intellisense and from this moment you can use it in your code: Labels: javascript, noteToSelf posted by ruffin at 1/12/2012 05:32:00 PM |
|
|
Now this is pretty cool, other than Javascript not supporting it... The RegEx Lookbehind. You can find a pattern and return hits only when it's not preceded by another pattern. So I wanted to find where something was declared in a web/javascript app, not where it was instantiated by pulling it back by id. In this case, we're using the ExtJS framework (probably not my first choice, but a good, robust lib), so document.getElementById() or a jQuery $() is replaced by Ext.getCmp(). So I want to find any example of theObject that's not in the format... Ext.getCmp("theObject") Which is to say, I want to find any theObject not preceded by Ext.getCmp(" Here's the lookbehind-ige... (?<!Ext\.getCmp\(")theObject SHAZAM. That's neat. And though it'll chew, JEdit will recursively Hypersearch that into a directory tree, no problems. And then it'll clue me in that I need to say either " or ' in the regexp. Ooops. (?<!Ext\.getCmp\(["|'])theObject Cool. Labels: problem solved, regexp posted by ruffin at 1/12/2012 12:34:00 PM |
|
|
Honestly, this sounds like it'd solve the majority of the Gmail Fail stuff I've been seeing, and with Google's ability to collect store the "triplets", they should be able to make this all pretty transparently from its users' perspectives. Greylisting: Whitepaper: The Greylisting method is very simple. It only looks at three pieces of information (which we will refer to as a "triplet" from now on) about any particular mail delivery attempt: Labels: email, gmail fail, problem solved posted by ruffin at 1/12/2012 12:02:00 PM |
|
|
Well, this.initialize.apply means what follows; "this" obviously is a reserved word. DailyJS: Let's Make a Framework: OO Part 2: Last week I was parading around initialize as if you were intimately familiar with prototype.js or Ruby. I apologise for that. In case I confused you, all you need to know is initialize is our way of saying call this method when you set up my class. Labels: javascript posted by ruffin at 1/12/2012 11:08:00 AM |
|
| Wednesday, January 11, 2012 | |
|
http://stackoverflow.com/questions/111102/how-do-javascript-closures-work Also a decent link from one of those answers, though the explanation is bit long. http://jibbering.com/faq/notes/closures/ I think the one I like best, though, comes from here, even if the guy's a little snotty replying to one of the comments to his post: I find the best way to explain them (and the way that I learned what they do) is to imagine the situation without them: Labels: javascript posted by ruffin at 1/11/2012 12:17:00 PM |
|
|
Found Array.prototype.slice.apply in some inherited code. Why would you use the Array type's prototype method? Apparently to slice Array-like objects that aren't really arrays. Why Array's slice works with the non-but-almost-arrays, I don't know. Understanding Array.prototype.slice.apply(arguments) in JavaScript ๏ฟฝ Sebastiano Armeli's Tech Blog: There you go Array.prototype.slice.apply(arguments) converts arguments into an ARRAY. Similarly... javascript - What's the use of Array.prototype.slice.call(array, 0)? - Stack Overflow: The DOM usually returns a NodeList for most operations like getElementsByTagName. Labels: javascript posted by ruffin at 1/11/2012 11:29:00 AM |
|
| Tuesday, January 10, 2012 | |
|
I like Versions for svn, though I've mostly only used it for keeping track of my own code. Now that it looks like I'm going to be using git, I figured it was time to find a visual client. (Not sure why I like visual so much. Perhaps a VSS carryover from years back.) So we Google up osx - Best visual client for Git on Mac OS X? - Stack Overflow: I'm looking for a nice, Mac OS X-like, client for Git. As an example, I use Versions for Subversion and it's exactly what I'd like to purchase for Git access. Suggestions? Interesting. Wonder what he'd say uncensored by online decorum. Guess I'll give his positive recommendation a try instead. "Update 2011-10-07: SourceTree is good enough that it gradually displaced all other git clients." posted by ruffin at 1/10/2012 05:13:00 PM |
|
| Friday, January 06, 2012 | |
![]() From findbigmail.com. Security is important to us. We only see the size of your emails, not their contents, and we never see your password. Gosh, I hope so. Dumbest thing I think I've done in a while. posted by ruffin at 1/06/2012 03:12:00 PM |
|
| Thursday, January 05, 2012 | |
|
Tracing in ASP.NET - Plip's Weblog: Remember way back to the top of the article, where I showed you an excerpt from the .NET SDK Documentation, it said โTrace statements are processed and displayed only when tracing is enabled.โ? Couple of keys for tracing -- one, Tracing writes get executed even if tracing is off, apparently (well, in most cases duh -- you can't very well avoid "lets say youโve put a large loop in to your page and itโs outputting data to the Trace log so you can debug it โ why do we need to call this when Trace is turned off?" just by having .NET actually follow through on its claim that "Trace statements are processed and displayed only when tracing is enabled." The write is avoided, but the logic's all there) and two, Trace.IsEnabled is the way around that. I'd think a good compiler would compile out the whole Trace slew. posted by ruffin at 1/05/2012 01:57:00 PM |
|
| Monday, January 02, 2012 | |
Delivered-To: MyEmailAddress@gmail.com Sheesh. Honestly, unforgiveable. Labels: gmail fail posted by ruffin at 1/02/2012 09:39:00 AM |
|
|
| |
|
|
All posts can be accessed here: Just the last year o' posts: |
|||||||||||||||||||||
|
||||||||||||||||||||||
|
|
|
|