I need to perform this series of actions every few weeks, but can never remember the commands.
I want to use eslint to fix things in my code without changing the eslint config that is committed in my project. Why? I’m not sure.
That was fun. Don’t be tempted by beanbag chairs after lunch, you will pass out. Here are my notes and links to videos.
Found on hackernews today
If you were going to do:
I have a 5 letter (not a word) .com domain I don’t use with minimal back links, so I decided to try selling it.
I thought these two lines would be equivalent, but they aren’t
Say your all-powerful
AWS_SECRET_ACCESS_KEY have lost their AWS CLI powers because your Amazon Web Services account is now secured with multi-factor authentication. How are you going to automate wicked cool tasks restoring DynamoDB tables or creating Snowball export jobs that your application’s service accounts aren’t authorized to do?
A human I know came across code equivalent to this:
Let’s find out what this error really means and how to fix it.
So I can move from shared hosting to static file hosting with Netlify or Firebase and not have to maintain a WordPress site.
TribalScale hosted us for Let’s Make A Deal: Insiders’ perspectives on Salary Negotiations in Tech
Here’s how I fixed this error. It happened to me in this environment:
I think the location is a secret.
Want to use Git LFS without a Git-as-a-Service provider like GitHub or BitBucket?
https://ubuntuforums.org/archive/index.php/t-224748.html was very helpful.
How to assemble multiple image sequences and audio files into 1 video file.
I like tools that let me drag and drop a bunch of images into my browser, and generate CSS & a single image for me to integrate into my project.
September 2017 update: CircleCI 2.0’s config file format is different than what I describe here which is CircleCI’s 1.0 config format. The idea of getting a token from Firebase and using with CircleCI’s environment variables and config file still applies.
If you have a bower.json file, and running
bower install from the same directory appears to download packages, but not actually put them in your project directory or even create a bower_components folder, check the version number of your package inside bower.json. Sometimes a version number of 0.0.0 prevents packages from installing, but setting the version number to 0.0.1 will make it work.
One you’ve called
iterator.next() on an array iterator enough times to make it return the last item with the property
done set to true, you can’t make it go back to the first item. But you can grab a new iterator for the same array. I was surprised to find out in the node.js REPL that:
I choose to record 1 window as my region, and compress with the Camstudio lossless codec.
Your ‘Order: xxxxxxx Complete’ email from RapidSSL includes links to a bunch of intermediate SSL certificates. Will you install the right one? I have seen installing the incorrect intermediate SSL certificate into the certificate chain cause Chrome on Android to declare a site insecure and block users from accessing it, while every other browser accepts it.
Here’s a bash script. Put this into a new file, ~/install-nginx-rtmp.sh:
If you’ve mounted where your Raspberry Pi and camera in a place where you can’t plug in a screen and keyboard, you’ll want an easy way to see how its photos look. Try using a mobile app instead of manually transferring photos to another machine where you can view them.
Are your pictures coming out too bright or dark under reasonable lighting conditions? Check your timeout value (the
-t parameter in
raspistill -t 100 -o cam.jpg.
People talked about and hacked Task Runners.
Are you seeing 307 status codes in your network traffic inspector while debugging your site lately and feeling confused? Ask yourself:
Long story short:
I just transferred a directory full of audio files that I didn’t want to check into a project’s Git repository with this command:
Matias presented a static blog generator called Hexo with some Angular addons to the AngularJS Meetup. I liked what I saw, so I set up my own install and imported my posts with the WordPress migrator. The transfer went smoother than with Ghost.. Moving text content over worked OK, although I lose some friendly video and oembed features of WordPress. Moving images over will take more effort.
ever stream music from your home NAS to speakers in bar via a cellphone-tethered laptop? Patrick Schroen does!
This demo introduces lots of ES6 features while actually building something. I like it!
Got a bookcase with adjustable shelves? Want to see what using a standing desk feels like? Here’s an inexpensive way to try it out. You’ll need a separate keyboard and pointing device (mouse, tablet, trackball, whatever).
Here is the important bit about timestamping from Adobe’s ‘Digitally signing an AIR file’ documentation
The instructions worked me, and I installed WP’s DB and set up my admin user.
call take same arguments, but do different things.
call simply allows you to execute a function in a specific scope and returns the result of running that function.
bind actually returns a new function locked to the scope passed in, and you may execute it as many times as you want.
Composer.json often lists dependencies with version numbers that can point to a bunch of potential packages. Lines like this:
I was on the right track with breaking down the problem. I was ready to start looking for sequences of matching cards across the deck and 2 piles, but the hint suggested to break the problem down further to matching individual cards. With that hint, I was able to implement a good solution.
I got most of the way. I needed MDN for checking the usage of:
It’s late 2014. Here’s all the scripting languages I’ve tried/thought of trying out this year for backend web development.
Our stack is a Python back-end with AngularJS for the front-end. We started with a pretty simple Django app using MySQL with scikit-learn for predictive modelling. Along the way we added Celery and Redis, statsmodels for forecasting, and we’re in the process of moving our data analysis into Cassandra with Spark. This talk will focus on technology choices and how we’ve grown the system from just a few stores to thousands in less than a year.
I see these over and over again in debates on Hacker News. Time to write’m down!
everything still works!
You’ve decided you want that SAYL, Embody, or Zody. Now how much do you want to spend? Lots of people blog about picking up Aerons for $200 during the dot-com bust, but supply and demand for high-end ergonomic chairs has changed dramatically since then.
There are 3 ways of moving height adjustable desks up and down:
These are my long lost notes from the presentation. They are missing lots of context.
I had to ride a train with sketchy internet connection this week, which meant it was finally time to try Bob Martin’s Bowling Game Kata. This is a simple walkthrough of building a system for scoring bowling games using Test Driven Development. It is simple (one class, < 10 functions, often less than 200 lines of code), short (50 code examples, less than an hour to complete), and puts you into Bob’s brain as he points out bits of code he doesn’t like and refactors them.
I need a new chair. My current no-name mesh back chair has these problems:
This one time I inherited a static website built with Middleman. Middleman has the best of intentions, but I couldn’t get it running well. Some of its gem dependencies could not run on Windows, and I couldn’t get the live reload functionality working through Vagrant‘s port forwarding. I made the decision to change stacks.
This one time I had to provide guidance on which web browsers to support on a future website. That means I need graphs and things!
nodemon vs forever? More like nodemon AND forever! nodemon is live reload for Node apps. When it detects a file in your application has changed, it will restart your application for you. It does not require much configuration, and will save you many keystrokes and mouse clicks. My typical nodemon command looks like:
A site I monitor saw 1185 requests from 94.138.x.x between Jan 01 05:32:41 & 06:21:09 UTC looking for non existent pages. This site runs on a small server, and WordPress tried to handle the errors in its slow and complicated way. As a result, Apache and MySQL were overloaded.
These are steps I took to help secure a NodeJS web application and keep socket.io running reliably on Ubuntu 12.04 on an Amazon EC2 server.
Here’s the steps:
All those member variables/fields you set while a user interacts with an activity are going to become null when the user rotates their screen. However, the views being managed by your activity will preserve themselves – whether they were visible, what text set in them, and some other properties. To preserve the info that will be lost to the screen rotation, store information by overriding
public void onSaveInstanceState(Bundle outState), and restore it by pulling out out of the bundle passed into
public void onCreate(Bundle instanceBundle).
This is a permissions issue. Linux, running in virtual machine, has tried to make a directory in the Windows file system and been denied permission to do so. This line from the npm logs is talking about a failure to delete a file that doesn’t exist since it wasn’t created.
These instructions assume you have some experience with Vagrant and using Ubuntu from the command line. It should take less than 20 minutes to get your own reddit install up to play with.
If you are using S3 as a CDN, you will need to give WordPress’ W3TC plugin access to your AWS account so it can upload files to S3 on behalf of you. The smart way to do this is to create a new AWS user who can only access what they need for W3TC to do its job. Who wants to store the keys to their whole AWS account in their WordPress based site? If that information is retrieved by a hacker, they could do tons of damage. If they only gain access to your site’s specific bucket, there is less damage to be done.
Depending on your USB connection, downloading the images from AirDroid in 1 archive may be faster than selecting them all in your OS’s file browsers and having them move over the cable 1 by 1.
The default settings for the Safari web browser block 3rd party cookies. This means that web apps hosted on https://mysite.com will not be able to set cookies when displayed within an iframe in a Canvas App (https://apps.facebook.com/myappdomain) or Page Tab. Problems ensue when the web app relies on cookies for sessions and CSRF checks.
Opinions based on spending less than an hour with each bundle:
This is useful for testing out REST services that use JSON, like ones made with Restify and MongoDB. This command runs in Linux, OS X, or even Windows if you have cURL installed and included in your PATH variable.
Check out the source code from SVN
Need a list like this?
This is the most straight forward guide I know of:
Use a wicked one-liner last week, but forget what it was? Search your bash history with grep! If you remember part of the command, you may be able to dig it up.
When the command
svn status returns too much information, filter the output with
grep. This line finds only modified files and leaves out deleted, missing, and unversioned files.
An error like this prevented my Jenkins build from completing. It was not a permissions issue. Jenkins was not configured with a master and slave.
Having trouble connecting to PEAR channels like
pear.netpirates.net? I frequently see this error:
Download something off GitHub and don’t need the included .gitignore files?
If you find “400 Bad Request” errors in the Unity console while testing out the C# Google Analytics Helper within the Unity IDE, try removing spaces from the “page” parameter passed to the LogEvent and LogPage methods. This may help and get tracking requests flowing through to GA.