~robcee/ more than just sandwiches

Posted
6 August 2011 @ 3pm

Tagged
General

Comments Off

Tagged. 7 Things. Redux.

It’s that time of year again. My esteemed colleague Tim Taubert tagged me for a 7 Things meme post. I am going to take a partial cop-out like Dietrich since I’ve already done one of these a couple of years ago, and despite my best intentions, there haven’t been that many exciting new additions to my life-history. Sure I’ve seen a few more places, gained a bit more forehead and improved my golf swing (and putting!), but these are pretty basic things unworthy of a blog post.

The Rules

  • Link to your original tagger(s) and list these rules in your post. (see above)
  • Share seven facts about yourself in the post. (see below)
  • Tag seven people at the end of your post by leaving their names and the links to their blogs. (see below)
  • Let them know they’ve been tagged. (you’ll just have to trust me)

Things

So, in addition to my previous 7 things, I’ll relate just a few more:

1. I have two dogs. Dakota and Jester. They’re retired racing greyhounds we adopted through the great people at Maritime Greyhound Adoption Program. They’re great dogs and we couldn’t imagine not having them around.

2. NERDERY ALERT! I have another “secret” blog at http://n3wb.com/boolean. It’s not really a secret (I’ve linked to it from my tweetstream before) and I don’t write on it nearly as much as I used to. I tend to post nerdy reviews of technology and gadgets there or whatever else isn’t really suited to posting here which I use primarily for blogging about mozilla-related topics. Really though, I think that separation is totally fake and I should probably just combine the two blogs. But I can’t and probably won’t.

3. My first computer was a Commodore VIC-20 I got as a present when I was 9 or 10, I think. I graduated to a C64 shortly after that where I started to get into programming BASIC before moving onto 6502 assembly and Forth. After a brief stint with a monochrome PC that had a “turbo” switch, I upgraded to an Amiga 2000 which I continued modding and upgrading for nearly 8 years. By the time I was done with it, it had a 68030 accelerator card, 8MB of RAM(!) and, I believe, a 50MB hard-drive. I taught myself C (K&R!) from reading the Amiga ROM Kernel manuals in 1988-89 and building programs on a copy of the SAS C compiler two years before I had my first internet connection.

I am still looking forward to a new incarnation of the Amiga. Paradoxically, I also hope there is never another computer bearing that name again.

I think that’s plenty.

The Taggees

@mleibovic! @EnglishMossop! @deezthugs@Boriss@shorlander! @robodesign! @felipc!

You’ve all been tagged! (please forgive me)


Posted
21 July 2011 @ 7pm

Tagged
devtools, Firefox, Mozilla

Comments Off

DevTools Integration Build

(Crossposted to dev.apps.firefox and the DevTools blog)

Hi,

I have a present for you.

http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-devtools/

If you go there and download the version for your operating system, you can get a sneak preview of what we’ve been working on in the Developer Tools group. It is a little rough around the edges still as it’s all a work in progress, but it gives you an idea of what we’re working towards.

The features can be found in the Web Developer submenu in the app menu on Windows (aero) and Linux or under the Tools>Web Developer menu on Mac and WinXP or Linux Firefoxes without the AppMenu.

The big feature in this build is the Highlighter available through the Inspect menu item (subject to change). It’s still using a panel for the HTML display, but that is going to be docked and de-emphasized soon enough. There’s a Style panel available through the toolbar at the bottom of the screen. The layout of this panel is going to change very shortly as well to provide more immediate access to the information you’re looking for.

The other cool easter egg in this build is the Orion editor in Scratchpad. I’m kind of ruining the surprise by telling you about it, but I just couldn’t help myself.

I’ll kick off another build in a week or two including the Style Editor and some improvements to the Web Console as well as ongoing additions to the Highlighter. Note that the updater will download the latest Nightly from mozilla-central, so if you let it update, you’ll lose this build.

Please let us know what you think. Here on this blog, on d.a.f, or file bugs against the Firefox::Developer Tools component.

I hope you like it.
Rob


Posted
19 July 2011 @ 9am

Tagged
Code, devtools, Firefox, Mozilla

Comments Off

Scratchpad to get Current Visible Tabs

If you use Panorama (aka, TabView) in Firefox (6 and up) and want to get a list of the currently visible tabs (i.e., the tabs in your currently-selected group), here’s the code to run in a Scratchpad (set to Environment:Browser*):

let group = gBrowser.visibleTabs; // current group
group.map(function (c) c.linkedBrowser.currentURI.spec).join("\n");

Just select these two lines, right click and select “Display” and it’ll dump the currently visible URLs right into the Scratchpad. Nice.

Useful for adding links to a wiki or wherever else you might like to add links.

* – if you want to run code against the Browser Environment in Firefox, you’ll need to set devtools.chrome.enabled to true in about:config.

ps, thanks to @ttaubert for the code snippet!


Scratchpad hotkey is now Shift-F4

When you put a key next to another key, there seems to be a strong chance* that some of the time, you will hit the wrong key. It so happens that the Scratchpad, landed recently on nightlies and now over in Aurora is right next to another key, F5. Which, you may know, is also Refresh.

So people have been opening the Scratchpad by accident and being annoyed by it.

To help mitigate this, we’ve added a Shift key modifier to the shortcut. It is now Shift-F4 on all systems.

For deets, see: bug 664746.

Just landed on Aurora, so if you’re on that channel, you should get an update shortly.


Scratchpad Canvas Demo

I’ve been trying to put together a reasonable demo movie for the Scratchpad. Something that shows it in action and gives an idea of how you might use it. This video is, I think, close to what we need, but it could use a couple of additional features: The Inspect menu to show object inspection got cut out. And copying and pasting the resulting text into a script file for inclusion in a web-page. Still, I think you can extrapolate that from my mumbled audio.

Video Link (29MB, WebM video)

Take a look. Send comments. Better yet, make your own Scratchpad demos and we’ll include them on the Devtools blog and Scratchpad documentation page!


Scratchpad (née Workspace), Web Developer Menu landed

First of all, I feel obliged to ask you to use Aurora. It’s pretty. It has a nice icon. You’ll enjoy the early glimpse of features and smooth visuals. You can get it here: http://www.mozilla.com/en-US/firefox/channel/.

With that out of the way, I can talk about the landing of Scratchpad (formerly Workspace) into mozilla-central. It landed yesterday and you can find it in today’s Nightly under the Web Developer menu. There’s also a new submenu in Tools if you’re on a Mac or running Windows with the menubar shown. We’ve moved Page Source there as well to be consistent with the App Menu’s contents.

You can also open the Scratchpad with the F4 key for rapid access.

If you’re an extension or browser developer, you’ll want to open about:config and change devtools.chrome.enabled to true. This adds a Chrome item to the Context menu for Scratchpad. As the menu might suggest, it changes your default JavaScript context to be the browser’s chrome space.

This is brand new stuff. Mihai Sucan did a great job of converting our add-on prototype to a browser feature, but there might still be some rough edges. Please file bugs under Firefox::Devtools in bugzilla.

And then there’s the outstanding stuff we have left to do. High on that list is some actual documentation and a screencast to show how it can be used. You can and should pester me to do this. I’m hoping to do a little screencasting sometime later this week.


Workspace [fixed-in-devtools][l10n?]

tbpl

Good news, everyone! This morning we landed the Workspace feature in our devtools project repository. This is exciting stuff for practitioners of JavaScript and we’ll have more to write about it very soon. hint, it’s probably a lot simpler and more powerful than you think it is. Many thanks to Mihai Sucan for taking the add-on and making it a feature. Also, special thanks to Erik Vold for his contributions to the add-on. You’re in the Firefox source code now!

All is not unicorns and puppies though: there has been some concern expressed over the name of this feature. On the one hand, it might not easily convey what this thing does. A lot of things come to mind when I hear the term “workspace” used in a compu-technological context. Were it not for my years as a Smalltalker, I’d think “window manager” and it is most-definitely not that.

The other, more important issue is, how will this localize? Axel, aka Pike, aka :l10n expressed some concern over the word. To get some feedback, I’ve written a post in mozilla.dev.l10n asking for help making Workspace internationalizable. Take a read, and drop a note in there if you have any suggestions.


Workspace 0.5.3 + Bookmarks Deiconizer Approved

Workspace 0.5.3 is released on AMO!

One gotcha: If you’re running Firefox Beta 11 or under, you might want to wait for Beta 12 to come out before upgrading (which should be tagged for building today or tomorrow). If you’re on a nightly, you’ll want to upgrade right away.

The reason for the fix is a change to the PropertyPanel which landed this week in mozilla-central made it impossible to close an object inspector panel opened from a Workspace.

Also, a newer version of the Bookmarks Deiconizer Add-on has been approved and released that fixes the problem of icons being “re-iconized” when opening the bookmarks editor panel (star panel). It also now restores your bookmark toolbar’s icons on uninstall.


Workspace 0.4.4

Just a quick note to let people know that I’ve updated the Workspace extension recently. Added support for saving and loading files as well as a hotkey (F4) to open it from the browser.

Many thanks to Erik Vold for some nice fixes and improvements!

Install it here: http://antennasoft.net/addons/workspace.xpi.


Oh no, Pinchy!

Sometime early this week, we disabled the pinch-zoom controls on trackpads in OS X (and maybe elsewhere, I’m unclear on how well-supported these gestures are on other platforms, but certainly present on mobile). You can read the gory details over in bug 613909.

Homer crying, "Pinchy! Nooo!"

I use pinch-zoom All the Time. It’s a feature I can’t live without. Especially as I’ve gotten more used to doing similar actions on multitouch tablets and smart phones, the gesture feels natural to me. When in full screen mode, it makes sense to be able to resize the page to fit the ridiculous dimensions of my monitor.

Enter Pinchy!

It’s a pretty simple add-on (built on the add-on sdk) that turns on some of the disabled preferences. Once you’ve installed it and it’s run, you can safely remove it or disable it from the Add-ons Manager.

You can accomplish the same thing either through about:config or by editing your prefs.js file in your profile directory. The prefs I’ve included are:

user_pref("browser.gesture.pinch.in", "cmd_fullZoomReduce"); // zoom -
user_pref("browser.gesture.pinch.in.shift", "cmd_close"); // close tab
user_pref("browser.gesture.pinch.out", "cmd_fullZoomEnlarge"); // zoom +
user_pref("browser.gesture.pinch.out.shift", "View:FullScreen"); // toggle full screen
user_pref("browser.gesture.pinch.threshold", 66);
user_pref("browser.gesture.swipe.left.shift", "Browser:PrevTab"); // prev tab
user_pref("browser.gesture.swipe.right.shift", "Browser:NextTab"); // next tab

the Shift+Pinch in to close tab is particularly sweet. Also liking Shift+swipe to switch tabs. I have my prefs already set to go to the top of page and bottom of page on swipe and if there’s any demand, I can add those prefs in as well.

If only it were this easy to customize these gestures in every app.

Kudos to http://t.tal.by/post/95428783/changing-firefox-gestures for the handy list of preferences (circa Firefox 3.1!).


← Before After →