I make apps, take a look đ
Beautiful images of code
Generate gorgeous, highly customizable images from your code snippets. Ready to save or share.
Your keyboard looks better with custom key caps
Most mechanical keyboards can be customized in various ways. The easiest alteration you can do is probably replacing the key caps with something thatâs more your taste.
I joined a Massdrop for these Tai-Hao ABS Doubleshot key caps and replaced the old key caps on my keyboard yesterday.
Instead of yanking out the original caps immediately, I laid out the new ones first. This made the process of putting them in smooth and easy.
đđđ
How to manage eye strain
Eye strain is a very real problem for anyone who works with computers on a daily basis. I wrote an answer to this question on Quora: âHow can I protect my eyes as a software engineer?â.
As someone who writes software for a living, enjoys reading, playing video games and watching tv series, eye strain is something that I have to actively manage to avoid sore eyes, dizziness, headaches and feeling tired.
For me, the exercises that are described in some of the other answers arenât sufficient. These are some of the things that I do that aide me in all but overcoming the issue.
Consider glasses
Have your eyes tested. Iâm very mildly myopic myself and have astigmatism in my left eye. Being myopic isnât that bad; I can see perfectly fine without my glasses on, but astigmatism can make working with text on computer screens absolute hell.
Consider the picture below. My left eye sees everything like the bottom left quadrant. Glasses and contact lenses can easily overcome this.
Find alternatives to screen time
Your phone and tablet arenât the best way to read articles or books. Get an e-reader instead. Youâll be surprised at how much more comfortable e-paper is to look at.
Find podcasts and audiobooks that you like. You can enjoy those even with your eyes closed.
I have a 1.5 hour commute and would spend much of that time glued to my phone. Getting a Kindle and subscribing to podcasts has reduced that time to near zero.
Sleep well
I try very hard not to grab my phone when I wake up or go to bed. The bright light feels especially hard on my eyes. Iâve also noticed that I feel more rested when I donât spend an hour scrolling through 9GAG and Quora before going to sleep.
These are the things that help me avoid sore eyes. Iâd love to hear any other tips. Itâs getting harder to avoid looking at screens all day and I think we need all the help we can get to save ourselves from straining our eyes too much.
Track where someone downloaded your Mac app
Figuring out what works and especially what doesnât is a big part of building products. Whether youâre trying to figure out which feature to build or where to spend money on marketing, analytics can help you make those decisions.
If youâre building a web platform itâs relatively easy to setup Google Analytics (or something similar) to track a userâs behavior from the moment they hit your site until they decide to purchase your product.
If youâre building desktop apps, things get a little more complicated.
Through some experimenting and digging around in how OS X handles downloads, Iâve come up with a way to connect how a user hits your productâs site with the moment they open the app. This is incredibly useful.
By connecting the pre and post download path of a user youâll be able to tell if a potential customer came to your site through that post on Facebook or that email campaign you sent out last week. All you have to do is append a
?ref/source/whatever=[name of your campaign]
identifier to your download URL and then read that identifier from OS Xâ QuarantineEventsV2 database.That sounds a lot more complicated than it is. Iâve put a sample project on GitHub that shows how this works technically.
Full use case
Letâs say weâre building a Mac app and we just ran a marketing campaign through Facebook and send out a news letter. Weâve setup analytics in our Mac app in such a way that we can track app opens and some buttons clicksâthe âBuy Nowâ button specifically. We use specific landing pages (or URL parameters) that link to our website from the Facebook post and news letter.
The Facebook campaign and news letter link to the homepage, but both append some parameters to the URL: https://example.com/?source=facebook-campaign and https://example.com/?source=news-letter respectively.
Weâve setup our site and web server to âforwardâ the
?source=
parameter to the download URL. This means instead of just https://download.example.com/app.zip, the appâs download URL becomes https://download.example.com/app.zip?source=facebook-campaign (or ?source=news-letter).Our app includes the code from the sample app, so we can retrieve the URL that was used to download the app. We can now do this:
- Mister X receives our news letter and clicks through to our website.
- Mister X likes what he sees and clicks the download button.
- Mister X launches the app.
- Mister X clicks around and uses the trial version of the app.
- After a few days Mister X buys the app.
Because the app registered where the app was downloaded, we know which campaign caused Mister X to download and ultimately buy the app. By comparing several downloads we should be able to determine which source was the most successful.
I would love to hear your thoughts on this approach. Let me know on Twitter: @boyvanamstel.
Modifying your SNES for 60Hz is awesome too
After soldering wires into my SEGA MegaDrive to be able to switch between PAL and NTSC, I did the same to my SNES. I never knew playing Mortal Kombat II and Super Street Fighter II Turbo could be this fluid.
Soldering was a little more difficult than the MegaDrive and MegaDrive 2 I did before, but nothing too troublesome. The guide over at mmmonkey is pretty easy to follow.
At the bottom of the guide they show a picture of a SNES where the RF output has been removed to make place for the region and PAL/NTSC switches. I decided to go the same route. Which made soldering on the switches a little harder, but check out how this looks:
Pretty clean and works great!
Just after I did the mod I noticed that nobody mentions how to remove the RF unit from the SNES, and I forgot to take pictures đ, but itâs pretty straight forward. If you turn over the motherboard youâll notice four solder points right below the RF unit, desolder those and you should be able to just lift it off the motherboard.
- Shows where the RF unit used to be.
- Indicates the screw hole that I used to put the wires through.
Iâve put some isolation tape over the metal where the RF unit used to be and Iâve used the screw hole to put the wires through, pretty handy.
Modifying your PAL MegaDrive is the best
If you live in Europe and played video games during the 90âs, prepare to be shocked: youâve been playing inferior versions of each and every game you played. đ±
Back when PAL and NTSC were still things you had to worry about, most video games werenât actually designed to run on PAL systems. They were optimized for NTSC. The primary difference between the two being the rate at which the picture is displayed: 30 frames per second for NTSC and 25 on PAL. The electrical power system behind the two standards is to blame. NTSC relies on a system running at 60 hertz, PAL runs at 50 hertz.
Video game consoles pre 2000 didnât compensate for the difference in frame rate, which causes most PAL video games to run 16% slower than their NTSC counterparts. The effect is very noticeable. Check out this video of the intro to Sonic the Hedgehog on the Sega MegaDrive. Pay special attention to the music.
To make matters worse PAL actually uses a higher resolution than NTSC, 625 lines for PAL versus 525 lines for NTSC. Because most games are optimized for NTSC, they display big bars at the top and bottom of the screen when running on PAL systems.
Luckily thereâs a fix. A very easy one of you own a model 1 PAL Sega MegaDrive. Just three wires and six solder points. Just make sure you buy a three way on/off/on switch. I got an on/off switch first. đ
After applying the fix youâll be able to switch your MegaDrive between Europe (PAL, 50Hz), US (NTSC, 60Hz) and Japanese (NTSC, 60Hz). Changing the region on the fly feels almost magical as the PAL bars disappear and the music speeds up.
Trust me, youâll want to redo your 50Hz childhood in 60Hz. Itâs that good.
I make apps, take a look đ
Skips terrible music
Denied saves your ears from Nickelback or any other band, song or album. It sees what you're playing and automatically skips songs that you dislike.