John Cox

Blogs · @wyome

Tagged tips · everything

10+ JavaScript Shorthand Coding Techniques | jQuery4u

This comprehensive guide collects 19+ JavaScript shorthand techniques designed to reduce code verbosity and improve coding efficiency, presenting each technique with both longhand and shorthand examples. The shortcuts covered range from ternary operators and null-checking with logical OR to object literal notation, assignment operators, RegExp shortcuts, and alternative approaches to switch statements using lookup tables. The post serves as a practical reference for developers seeking to write more concise, readable JavaScript while maintaining functionality.

Permalink

21 Useful iTunes 11 Keyboard Shortcuts

This guide compiles keyboard shortcuts for iTunes 11, organized into three categories: general playback and navigation controls (like spacebar to play/pause and arrow keys to skip tracks), feature access shortcuts (for the MiniPlayer, Equalizer, and Up Next queue), and library navigation shortcuts (Command+1 through Command+7 to jump between Music, Movies, TV Shows, Podcasts, iTunes U, Books, and Apps). The shortcuts won't function for library categories you don't have content in, and the post invites readers to share any additional useful shortcuts they've discovered.

Permalink

9 Command Line Tricks for Mac OS X You Should Know

This article offers practical command-line tricks for Mac users of varying skill levels, covering utilities like `caffeinate` to prevent sleep, `pkgutil` to extract package contents without installing, and `purge` to free up memory. It also explains how to launch multiple app instances, update OS X from the terminal, search your download history through Quarantine Services, hide files from Finder, and create password-protected zip files, along with the handy tip that dragging files into Terminal automatically inserts their full paths.

Permalink

Git: Twelve Curated Tips And Workflows From The Trenches - be present now

This collection of practical Git workflows addresses repetitive problems developers face, from display issues like line wrapping in diffs to complex operations like cherry-picking between repositories and rewriting commit history. The twelve tips range from simple configuration tweaks (wrapping long lines, setting proxies) to advanced techniques (selectively stashing files, modifying specific commits via interactive rebase, and promoting a branch to master while preserving merge history). The post emphasizes that many of these solutions come from repeated lookups and eventual alias creation, making it a curated distillation of real-world Git usage patterns.

Permalink

HTML5 download Attribute

HTML5's `download` attribute lets you specify a user-friendly filename for a link's destination file, separate from the actual server filename. This is particularly valuable for dynamically generated files that have cryptic names on the server side but need to appear meaningful to users in download dialogs. The attribute also forces browsers to download the file rather than attempting to open it, eliminating the need for server-side workarounds like PHP headers.

Permalink

10 essential performance tips for MySQL | ITworld

California and at least 44 other US states are blocking or delaying a projected $68 billion in data center projects as communities resist the massive demands these facilities place on power grids, water supplies, and land. The surge in opposition reflects growing tension between AI infrastructure expansion and regional resource constraints, forcing tech enterprises to reconsider their deployment strategies.

Permalink

Dan Rodney's List of Mac OS X Keyboard Shortcuts & Keystrokes

This is a comprehensive reference guide to keyboard shortcuts for macOS, organized by function (Finder actions, window management, text editing, screenshots, Spotlight, Safari, Mail, and more) and covering versions from Big Sur through Sequoia. It includes both common shortcuts and lesser-known power-user tricks, such as using Command-drag to customize toolbars, Option-click to access hidden Dock menus, and Emacs key bindings that work in certain applications. The guide is designed as a living document that the author continues to update for the latest macOS versions.

Permalink

9 Advanced Twitter Tips | Mobile and Social Media

This post offers nine practical tips for experienced Twitter users seeking to optimize their engagement and information management on the platform. The advice covers technical issues (avoiding ampersands in profiles, leaving character room for retweets), discovery strategies (searching for yourself instead of using reply columns, using Friendfeed to find old tweets), and social practices (starting replies with periods to broadcast conversations, using groups to organize large follow lists). The underlying philosophy emphasizes that Twitter's value lies in dialogue and interaction rather than status updates, and that thoughtful sharing and reciprocity—through retweets and direct mentions—strengthen the network for all users.

Permalink

Hiding Content for Accessibility - Snook.ca

This article evaluates different CSS techniques for hiding content visually while keeping it accessible to screen readers, examining the specific failures of each approach: text-indent fails with right-to-left languages, collapsed positioning doesn't work with Apple's Voice Over, absolute positioning causes unwanted page scrolling when focused, and the clip method triggers unexpected scrollbars in Webkit and Opera browsers. The author proposes a hybrid solution combining absolute positioning, clipping, and minimal dimensions to avoid these pitfalls while maintaining both screen reader accessibility and proper focus behavior.

Permalink

Tips and Tricks On How To Become a Presentation Ninja - Noupe Design Blog

This guide breaks presentation design into three phases—planning, producing, and performing—with the core argument that presentations are performances designed for specific audiences, not artistic expressions. Key principles include avoiding bullet points (which force audiences to process competing visual and verbal information simultaneously), using visuals to support rather than duplicate your spoken words, and applying design principles like simplicity and aesthetic beauty to build audience trust and focus. The practical workflow emphasizes extensive preparation: knowing your audience, outlining with the "tell them what you'll say, say it, tell them what you said" structure, sketching on paper before digital production, practicing four rehearsal rounds, and delivering with confident body language and strategic pauses rather than relying on notes or screens.

Permalink

A selection of Mac OS X keyboard shortcuts | 456 Berea Street

Mac OS X contains extensive keyboard shortcuts that allow users to accomplish nearly any task without touching the mouse, contrary to the common misconception that the operating system requires frequent mouse use. The author provides comprehensive tables of essential shortcuts organized by category—global commands, Finder operations, text navigation and selection, and application functions—noting that many remain obscure because they don't appear in menus. Users can further customize these shortcuts and enable Full Keyboard Access through System Preferences to maximize keyboard-only navigation.

Permalink