NotesSo, you made a mistake. You gave a porny presentation at a technology conference, or you made a sexist blog post, or you organized a conference with 0.00% female speakers. And, you got called out on it. What can you do? Unfurl
Notes const Storage = Sup => class extends Sup {
save(database) { ··· }
};
const Validation = Sup => class extends Sup {
validate(schema) { ··· }
};
You can use them to compose a class Employee as follows.
class Person { ··· }
class Employee extends Storage(Validation(Person)) { ··· }FeedUnfurl
NotesA collection of random tips for Amazon Web Services (AWS) that I wish I'd been told a few years ago, based on what I've learned by building and deploying various applications on AWS.FeedUnfurl
NotesSo you have a MS-DOS installed to a virtual machine on your super new multicore computer and it consumes 100% of your CPU (well… 100% of one core actually…)?Unfurl
NotesI transfer files very rarely and usually just plug in for some power, so I tire of the constant warnings. With a few modifications to the AFT application bundle I neutered the agent and restored sanity.FeedUnfurl
NotesI’ve been working much more in Ubuntu Linux lately on my 2011 Macbook Pro, and the lack of integration for the trackpad has really been driving me crazy. The default synaptics driver does an ok job, but when it comes to things like gestures, the details make all the difference.FeedEmbedUnfurl
NotesSome days...some days it's frustrating to be on the web. We're compiling C++ into JavaScript and running Unreal in the browser but at the same time, here in 2013, we're still making the same mistakes. And by we, I mean, the set of web developers who aren't us, right Dear Reader? Because surely you're not doing any of these things. ;)FeedUnfurl
NotesEvery so often, when my laptop runs out of battery during a backup, I receive the following: “Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you.”FeedEmbedUnfurl
NotesThe internet really does have everything, and it's all available for download without lifting a finger. A series of helpful scripts, all installable in a few minutes, can transform your computer into an automatic media downloading machine. FeedUnfurl
NotesThere are times when “kill -9″ is the only time you can kill a PID that is behaving badly. However, it’s usually not needed if you know your signals. When I encounter a badly behaving program, here is the procedure I usually take.Unfurl
NotesTipping: It's a pain. Not so much because we don't like rewarding good service — we absolutely do — it's just that we never have any idea what's customary to tip for service outside a restaurant. I mean, what do you tip a New York City cab driver, 10%? It turns out that's exactly what most people used to tip cabbies — 10%. Used to, that is, until cabs were forced to install touch screen payment systems that accept credit cards.Unfurl
Notes To do this, you need to enter about:config in Firefox's URL bar, then accept the warning when prompted. In the Filter box, type source.editor, which will show you three variables. Double-click on view_source.editor.external first, to change its Value to true. Next, double-click on view_source.editor.path, which will drop down a small sheet in which you enter the path to your preferred editor. The path must be a full complete Unix-style path, and point to the actual executable (not the app bundle). So for Coda, I used: Unfurl
NotesThis post aims to provide an overview of how to create a highly functional and easy to configure Text Triumvirate for those new to this tool chain. I try to focus on aspects of how to integrate zsh, vim, and tmux with particular focus on my experiences with two common problems—copy/paste functionality and color aesthetics.Unfurl
NotesThis introduction to text manipulation on UNIX platforms provides an overview of some common commands widely available and installed standard on most UNIX-based releases. Many times these standard utilities are ignored in favor of more modern text-processors such as Perl, Python, or Ruby, which are not always installed on a system. An introductory review of these tools helps practitioners who are learning UNIX or Linux or those who may be looking to renew forgotten knowledge.Unfurl
Notes"I have never been more of an atheist," writes the waiter, who will likely do horrible things to that diner's food if they ever dared to return.Unfurl
NotesIf Firefox is a bit slow to start up because of all your open tabs, you can turn on a quick setting in Firefox 8 to only load tabs one at a time, when you click on them. FeedUnfurl
NotesThis describes how to update Vagrant’s lucid64.box base box to the latest Guest Additions for VirtualBox 4.0.4. The only wrinkle was that the base box did not have the ppa:debfx/virtualbox repository configured.Unfurl
Notes"If you swipe your finger on the notification bar (with the panel still up), you can change your brightness, anywhere that bar is present! Useful when auto brightness isnt on and you need a quick brightness change"Unfurl
Notes"In response to a user recently, I told him he had fallen into the most common elephant trap for XSLT users. Rather than being annoyed, which I half expected, he thanked me and asked me if I could tell him what the next most common elephant traps were. Although some of us have been helping users avoid these traps for many years, I don't recall seeing a list of them, so I thought I would spend half an hour compiling my own list. "Unfurl
Notes"hg qimport -r BAD:tip<br />
<br />
will import the changesets into MQ. You can find newly created patches in .hg/patches. Those patches are nevertheless still applied, to strip them from the history, you need the qpop command. Issue<br />
<br />
hg qpop -a<br />
<br />
Now all changes since revision BAD are no longer available in your repository history. They are saved as patches in .hg/patches - and only there."Unfurl
Notes"Agile" is kind of a dirty word in some circles, but this describe some actually agile ways to deal with revision control using git. "When we started using git to manage our source code at work, we actually jumped in a little bit too fast. It seems like there is a lot of writing about how you can do lots of really neat things with git, but no real guide about one particular way of using git for your project. This post is going to describe how we use git day to day on a reasonably large “agile-style” project."Unfurl
Notes"However, I don't refer to commonly used shortcuts that a noob would find cool. I am talking about a seasoned unix user (be she/he a developer, admin, both, etc), who thinks (s)he knows something 99% of us never heard or dreamed about. Something that not only makes his/her work easier, but also is COOL and hackish. After all, vim resides in the most dark-corner-rich OS in the world, thus it should have intricacies that only a few privileged know about and want to share with us."Unfurl
Notes"This loot list is dedicated for helping you gear up your mage as best as possible. This list includes items from the Wrath of the Lich King expansion as of patch 3.0, but no raid content or pre-expansion (Classic WoW or Burning Crusade) loot."EmbedUnfurl
Notes"git cherry-pick -n $SHA
What this will do is stage the changes but not commit. Now I can git-commit myself and remove the git-svn-id line."Unfurl
Notes"One problem with the MySQL command line client is that queries with lots of columns tend to wrap crazily based on your terminal size. To overcome this, you can get a vertical output by terminating your queries with \G instead of ;. I find this format extremely helpful in cases where I know only one row will be returned. "Unfurl
NotesThis is not really new. This is just an example of the same DOM/JS garbage collection issues that have plagued webdev since time immemorial. Don't keep references to DOM nodes in your JS code: they tend to stick around.Unfurl
Notes"Basically, you'll start the day off right by grabbing a sheet of paper and writing down the goals which you can realistically accomplish that day. The important part is to immediately assign time slots to those tasks by order of importance and difficulty because these designated times make you more likely to accomplish your goals and give you a way of tracking your progress once every hour. At the end of the work day, you'll take a few minutes to review not just the last hour, but the entire day."Unfurl
Notes"A presentation about tricks and best practice ideas of how to use JavaScript given in our office in India as part of an internal training."Unfurl