|
MooFlow is a Javascript based Gallery looks like Apple´s iTunes or Finders CoverFlow™. Features
LicenseMIT-style license. Code & DocumentationInspirationLabels:
dhtml, gallery, coverflow Ajaxian » Edge.js: Mask your images with unobtrusive JavaScript
ajaxian.com/archives/edgejs-mask-your-images-with-... Christian Effenberger is back with some more Canvas goodness. He has created Edge.js, a library that lets you apply an image mask (in the form of another image) to any image via unobtrusive CSS. You initialize via: JAVASCRIPT:
And then you can simple add classes to the image: class="edge imask1". Labels:
css, ajax I have previously posted about cheat sheets and recently saw a new cheat sheet plus this nice idea of making a desktop background with TextMate shortcuts, so I decided to write a post with a few tips related to finding TextMate functionality, conventions, and the modifier glyphs.
Common MisunderstandingsTwo common problems users run into related to key bindings are:
Finding ActionsA feature to be aware of when perusing the menus is that menu items can hide behind other items. Try for example to open TextMate’s File menu (in sticky mode) and press the This feature is sometimes criticized because it makes things not discoverable by only looking, and TextMate makes it worse by not limiting itself to only hiding items behind a press of the The Bundles menu is where all the functionality of TextMate is buried. Generally each language / task has its own bundle, but there are several bundles which offer general functionality, and in addition to looking at the bundles for the languages you use, I recommend also checking out the following bundles:
So that was ten bundles you should familiarize yourself with in addition to the bundles for the actual language you work with. For something like Rails that might be both the CSS, HTML, JavaScript, Ruby, and Rails bundles, and maybe also the Prototype bundle, etc. Remembering all the key equivalents and tab triggers is hard, and TextMate has a nice feature to help you here. In the bundles menu is a Select Bundle Item… action with key equivalent Basically it opens a window very similar to the Go to File… window, where you can enter a search string to quickly jump to a particular file. The Select Bundle Item… window works in a similar way. It initially shows you all the bundle items available from the current scope, but allows you to search these, for example entering “comment” will show several functions related to commenting, e.g. Comment Line, Insert Comment Banner, Insert Block Comment, Insert Comment Header, etc. By default only items reachable from the current scope are shown, but if you type the search string in UPPERCASE then it will search all scopes. The window can also search your bundle items based on the key sequence you press. Click the magnifying glass and change the search criterion from “Item title” to “Key equivalent”, now pressing a key sequence will show all the items (reachable from the current scope) that matches this key sequence. ConventionsTextMate uses a lot of different modifiers and it might help remember them by understanding the conventions behind choosing modifiers for a key equivalent. Many standard actions are offered by different bundles, for example both HTML, LaTeX, Markdown, and similar have an action for “making the selection bold” (by inserting appropriate markup) which is reached by pressing Keyboard Modifier GlyphsFinally let me talk about the modifier glyphs in general. The canonical ordering of the modifier glyphs is If you wonder how to easily type these glyphs then see my post about multi-stroke key bindings. If you need a fixed width font to handle these glyphs (and many more) then I recommend the DejaVu Sans Mono font (based on Bitstream Vera Sans Mono). Mail has a tendency to switch font when rendering a glyph that is not available in the current one, so if you like to have your messages displayed using a monospace font and receive messages with fancy glyphs, then DeJaVu Sans Mono is the best choice. Labels:
textmate Useful Shell Shortcuts | Ruby on Rails for Newbies
nubyonrails.com/articles/2007/05/26/useful-shell-s... A few weeks ago someone asked me to recommend a few useful books on Ruby. The first one? Using csh & tcsh. I spend a lot of time in the terminal and these shortcuts help in both tcsh and bash. Reuse previous argumentsThe !! (Full contents of previous command)How many times have you tried to edit a file, then realize that you need to be root to do it? Use bang-bang to quickly repeat the previous command, with other commands before or after.
!$ (Last arg of previous command)Sometimes I need to reuse the last argument with another command, like here where I forgot to quote a string.
!^ (First argument of previous command)I rarely use this, although it could have been used in the previous tip.
!:1 (Argument by number)!:1 is the same as
!pattern (Repeat last command in history with pattern)The bang is useful for re-running a command that you’ve run before. Spell out the first few letters and hit ENTER (or TAB to show the completion in tcsh). The shell will search backwards in your history until it finds a command that starts with the same letters. I like the tcsh behavior since you can hit TAB to see what you’re asking for. Using this in bash can be more adventurous since you don’t know what command will be run until you hit ENTER.
Sets{a,b} (A set)How often do you rename just part of a file? The {} syntax is convenient.
Mac OS X-specificpbcopy and pbpasteIn Mac OS X, you can copy things to the clipboard and read them back out. This is nice because you can reuse it in the shell or back in the OS with Apple-C or Apple-V.
Labels:
linux, shell ReMate is a TextMate plugin which can be used to disable the automatic project tree refresh when the application regains focus (for using SSH-FS etc.). This version works differently:
Download here, extract it and double-click to install. Labels:
textmate Here’s a plug-in for TextMate which indicates the Subversion status of files in your project drawer.
Download it here. Simply extract and double click the SVNMate.tmplugin to install it into TextMate (you’ll need to restart TextMate for it to load). Labels:
textmate This tutorial will teach you how to create pretty looking textual buttons (with alternate pressed state) using CSS. Dynamic buttons save you heaps of time otherwise spent creating graphics and will basically make you a happier person at the end of the day. Here's what you'll get: Sliding doorsSince we want our buttons to be über-flexible, we'll have to make the background image expand with the size of the button's text. For that, we'll use the beloved sliding doors technique; two complementing images creating the illusion of a single, stretching image. Our button will be a basic <a> tag with a nested <span>, each containing a different slice of the background image. Here's what the HTML looks like: <a class="button" href="#"><span>Bring world peace</span></a> Nothing out of the ordinary, right? Next, we need to come up with a crisp design for our button in both normal and pressed state. Here's what I'm thinking: Normal
Pressed
We will include both states in a single image. To switch between normal and pressed state, we'll simply shift the background image vertically, revealing the alternate button state. This CSS based approach allows us to perform the switch without the need for any JavaScript trickery. Let's merge these two and apply the sliding doors cut. The part of the image that will accomodate the button text will be set to a reasonable 300px. The height we'll set to 24px. SPAN
A
Styling the buttonFinally, we need a fair bit of CSS to bring all this together. Since we might want to line up several buttons horizontally, I decided to float them by default. (Floating them also makes the buttons wrap nicely.)
.clear { /* generic container (i.e. div) for floating buttons */ Note: Make sure the span's vertical padding (5 + 5) and line-height (14) amount to the total height of the button (24). Using a different padding, means setting a different height. We now have a pretty looking button, but it doesn't exactly give us much visual feedback when we press it. So let's add that finishing touch of CSS:
a.button:active { All done! Go ahead. Click 'em! One extra measure for IEAlthough hardly catastrophic, IE does not return the button to its normal state whenever it's released. To force such behaviour, we need to add a tiny bit of JavaScript to the <a> tag: <a class="button" href="#" onclick="this.blur();"> … </a> To submit forms with this type of button, simply add more calls to the button's onclick event. Labels:
css Prototype JavaScript framework: Prototype 1.6.0, script.aculo.us 1.8.0, and the Bungee book now
prototypejs.org/2007/11/7/prototype-1-6-0-script-a... The final versions of Prototype 1.6.0, script.aculo.us 1.8.0, and the Prototype & script.aculo.us book are now available. Prototype 1.6.0 is the most significant update to the framework since its inception over two years ago. We’re very excited about the changes in this release, and what better way to celebrate than with an update to script.aculo.us and a book covering all the new goodness? Prototype 1.6.0 releasedThis version of Prototype brings a number of major enhancements to the core APIs as well as the usual slew of bug fixes and performance optimizations. For the full story, see the CHANGELOG and the release notes for 1.6.0_rc0 and 1.6.0_rc1. API highlights include:
script.aculo.us 1.8.0 releasedscript.aculo.us 1.8.0 is fully compatible with Prototype 1.6.0 and includes several improvements since the last version; see the announcement on Thomas’ blog for more details. Here’s what’s new:
Prototype & script.aculo.us available in PDFCore contributor Christophe Porteneuve’s book Prototype & script.aculo.us is now available for purchase from the Pragmatic Programmers. The “Bungee book” covers the final versions Prototype 1.6.0 and script.aculo.us 1.8.0, which is no small feat, considering many of the documented features were added in the five months since the book first went beta! You can get the final PDF instantly for $22; paper copies are $34.95 and will be shipping in the next few weeks. Every developer using Prototype and script.aculo.us will want to read this book. One more thing…I’m pleased to announce that Andrew Dupont and Tobie Langel now have commit privileges for Prototype trunk. They’ve contributed an abundance of good judgment in the form of patches and community interaction since the core team was formed in January, and I know they’ll be good keepers of the code. Welcome, Andrew and Tobie! Download, report bugs, and get help
As always, thanks to the core team and the many contributors responsible for making this release possible. Labels:
ajax, prototype Free Tools» Blog Archive » Prototip, plus que de simples bulles d’aide…
mtnconcept.com/free-tools/composants/prototip-plus... Prototip vous permet de créer facilement des bulles d’aide simples ou complexes, avec texte seul et/ou image. Prototip requière le framework Prototype. Si vous utilisez aussi Scriptaculous, vous pouvez même leur ajouter des effets visuels. Vous pouvez créer facilement des bulles d’aide fixes avec des effets de fondu. Vous pouvez également définir où s’afficheront dans votre fenêtre Internet les bulles d’aide.
Coté programmation, depuis la sortie de la version 1.6, Prototip a été complément ré écrit et a vu naître plusieurs fonctionnalités : gestion des clicks de la souris, ouverture/fermeture des bulles d’aide, la possibilité de personnaliser vos infobulles avec la prise en charge du CSS… Labels:
ajax, prototype Text* Snippets: Cross-browser solution for adding hover border to linked images [css] [images]
textsnippets.com/posts/show/1211 // The class is assigned to the href.
.borderit img { border: 1px dashed #776e09; padding: 2px; } .borderit:hover img { border: 1px solid #fff71c; padding: 2px; } .borderit:hover { color: red; /* irrelevant definition to overcome IE bug */ } Labels:
css 53 CSS tutorials anyone can do - Download Squad
www.downloadsquad.com/2007/04/09/53-css-tutorials-... There are many advantages to designing with Cascading Style Sheets. CSS is extremely easy to learn and rework once a basic site framework has been established. Websites, or website components can easily be changed into something totally different just by swapping a single CSS file, or a line within a CSS file.
CSS designers always seem to have a few different elements that they commonly use over and over in all designs, these can include navigation elements and form fields, among other items. Smashing Magazine has compiled a list of 53 CSS Techniques that you couldn't live without, linking out to tutorials on CSS navigation, tabbed navigation, bar graphs, rounded corners, hover effects, image map, submit buttons, custom bullets, and sidenotes. Whether you are new to CSS, or have been in it for a while, these are some great tutorials to have archived as reference materials. Labels:
css |