3
Nov 15

This subject is extremely close to my heart. I've had a morning routine of some sort for about 2 years now, and I can't imagine how far behind where I am now I'd be without one.

In a sentence, a morning routine is a ritual you perform every day, first thing after getting up. Its content and length is entirely personalized, and its goals are to help you kick start your day, and move you towards your goal, steadily and consistently.
Read more »

20
Oct 15

One of the my favorite strategies towards being productive and undistracted is tunnel visioning on a well defined task and making its completion the focus of my existence. This has been working great to keep my focus on the task at hand and not be tempted by distractions. But once the task is completed, I tend to experience a kind of energy drop that allowed procrastination and laziness to creep in. I knew what my next task is, but having exhausted my attention and energies on completing the current one, I just didn't feel like getting on straight to the next.

What we do is important, otherwise we wouldn't be doing it, right? But sometimes our subconscious is not on board with this, and the goal behind the tunnel visioning technique is to convince every part of your brain that what you're doing IS important. But there's a missing component - if this task is so important to get done, why is your reward for completing it is just.. Another task?
Read more »

9
Oct 15

I find myself keep needing this, so I'm posting it for my future reference and perhaps yours.

 

http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

 

The short of it:

 

mklink /J [target-folder] [source-folder]

 

Example:

 

mklink /J C:\Users\Matthew\Desktop\Dropbox C:\Users\Matthew\Documents\Dropbox
23
Sep 15

While working on a new pet project I ran into an annoying problem with Foundation Zurb 5's top bar dropdown. I couldn't find any solution on the web so I thought I'd share a workaround.

The Problem

The top bar dropdown is shown and hidden using CSS in a way that prevents the click event propogation. If you want your menu items to do something other than an href, like listening to a click and doing something programmatically, you're out of luck - the event won't fire.

Here's a JSBin with the problem demonstrated:I've added click listeners on the menu items that should open an alert window when clicked. Try clicking on dropdown->link, nothing will happen. This is because the element is hidden before the event can trigger.

The Workaround

I wanted to keep Foundation's hiding CSS because in the comments it is said to support accessibility. I assume there is some learned knowledge sunk into it so I prefer not to touch it directly, but manipulate around it with code.

Therefore I won't call it a solution because it's not elegant enough, but it works and should get you out of the bind if you're in it. I'm using the scss version so I'll describe what I did there. At the bottom of the post I've linked a JSBin with the solution in plain CSS.

Open _top-bar.scss, and find the following snippet:

zurb1

 

The @include represents the following CSS:

zurb4

 

(plus a display:block)

Move the @include into a new class (give it whatever name you see fit)

zurb2

Now, in your HTML, add the class to the dropdown. I am using Ember so the following is a Handlebars template:

zurb3

The unelegant part is that you need to control the dropdown visibility from code. It shouldn't be super dirty; if you listen to clicks on the dropdown and toggle the hiding class it should do most of the trick.

 

Here's a JSBin with the solution with plain CSS

 

If you have a nice CSS only solution for this please share in the comments.

31
Aug 15

p1p1_viewer

Forewords

The purpose of the technical overview is to present approaches for tackling and solving challenges from start to finish. I am aiming this series for intermediate level developers. This means that I expect the readers to be fairly familiar with programming and some web technologies (i.e. not complete beginners), and I will spend very little time delving into implementation details, so very experienced developers may be familiar with most of the content.

Read more »

26
Aug 15

Despite being a blasphemous Windows user, I still  love using the git bash. It's way quicker than GUI for many operations, and it allows me to immediately check which branch I'm on. Combined with the knowledge of a few keyboard shortcuts, I can also perform quick operations on multiple repositories in sequence by having several bash instances open. This flexibility is simply unrivaled by GUI.

There are some operations, though, where the power of GUI really shines through. When committing changes, for example, I like to go over every file I changed and  go over the changes quickly to make sure there are no stray debugging leftovers, surprise code changes that I didn't expect, or commented out sections that need to be uncommented. I find this habit to be a valuable tool in reducing bugs. Via Bash, it is much harder to quickly scan large amounts of code. Another example where GUI is better is when resolving merge conflicts. Again, the ability to see large amounts of code, in this case side by side, makes Bash the lesser tool when compared to GUI. Finally, viewing the changes log is something I do often; GUIs tend to have log features that the default git log command doesn't support: A graph showing how the branches are connected, changed files for each commit, etc.

Therefore, I came up with a few shortcuts that trigger the GUI from Bash, winning me both the flexibility of command line and the ease of use of large graphical screens when I need them. In this tip I will be demonstrating with the TortoiseGit GUI, but the same principle can apply to any GUI that offers command line arguments.

Read more »

14
Aug 15
You've got a ton to accomplish today. Whether it be tasks at work or things you want to get done on your day off, you definitely don't lack in meaningful, productive content with which to fill your time.
But you find it extremely hard to get started. You stare at you tasks list. It's quite long. Maybe depressingly long. How will I ever finish all this in time? Which one do I even begin with?
These notions are often at the core of procrastination. I personally identify these notions with the feeling of being overwhelmed into paralysis. When there's too much to do, when the plate is too full, many people either delay getting started or give up completely. This is quite natural, actually, and it is not our weak character that is at fault here, but the very nature of how our brain works.
This is good news, because once we identify what causes our brain to get off track, we can develop strategies to bring it back in line and keep it happily churning the tasks we care about.

Read more »