Warren Buffett is reportedly getting chummy with the biker community after his investment firm, Berkshire Hathaway, bought a motorcycle gear company.
The No. 1 state for motorcycles is a no-brainer, but second and third may come as a shock. - Blake Bos - Industrials
Chrome and FireFox behave very differently in terms of what happens when you attempt to select the position before a DIV usingrange.setStartBefore() when the DIV is preceded by a textnode. Consider the HTML: <div contenteditable="true" id="edit">foo<div id="test">bar</div></div> I want to select the end of the textnode foo.. You use a range to accomplish this as in: // for FireFox make sure the editable div is focused so we can see the cursordocument.getElementBy ...Read More
This is a technical article covering how browsers muck up the underlying markup in an editable area as a user edits content. It turns out the problems center around opening up new lines using the ENTER key and merging them back together again using the BACKSPACE or DELETE keys. If you dont go look you just wont know. When you attempt to create an editor in a contenteditable div, the browser is in control and youre just along for the ride. Each browser has different ideas of what should ...Read More
This is a technical article. I am building a jQuery plugin to as areplacement for the venerable HTML TEXTAREA tag so I can do some fanciness. In my textarea plugin I want to be able to insert blocks of HTML into a contenteditable DIV that should be treated as single objects. These can be wrapped in a SPAN or a DIV. One of my requirements is that, I should be able to move the cursor over them. If Im to the left of the object and press the right arrow key, the cursor should jump to the end of ...Read More
As Ive been bemoaning onFacebook and Twitter for the last few weeks, after spending quite a bit of time looking far and wide for an adequate pre-existing solution and finding none, I have decided to roll up my sleeves, get my hands dirty, and build a replacement for the venerable TEXTAREA input box. This has turned out to be such a vastly more difficult and annoying task than I could have imagined. As has always been the case with relatively low level browser based development, it has been a f ...Read More
Sorry, this is a bit of technical minutia having to do with using Javascript in modern browser to manipulate content on the fly. Its a bit technical but I do discuss the purpose behind it in terms of M-BY-MC and what youll be able to do on the site. If youd like a taste of the horror that is browser based development, read on Its always something. Apparently, you cannot position the cursor into the empty space between two block level tags. (e.g. <div>something like an image</div>( ...Read More
(This is a re-post of an article I wrote last year. I used this analogy to explain to non-technical people why software patents are such a terrible idea.)? Having mice in your kitchen sucks. They eat your apples. They spread disease. They freak out your girlfriend. She becomes unhappy and refuses to cook. You face another lonely night eating ramen noodles. So, because you are highly motivated by having a happy girlfriend and being fed a real dinner, in a moment of genius clarity, you design ...Read More