Sometimes I have trouble with web applications where I need to find where a class is defined. Depending on the code base you’re working on it can be easy (in the case of PSR0 based projects) to determine this, but in other cases definition of the classes can be done anywhere. For example: include 'path/to/some/classes.php'; include 'some/more/classes.php'; $object = new SlushyMachine(); In this case maybe the class you’re looking for is defined in one of...
154 words, read more »
Here’s a list of graphic resources, as discovered over here on Imgur.com. I have not checked the validity or legality of the resources on these links. Use at your own risk. Free Graphics & PSD files http://graphicburger.com http://www.icondeposit.com http://www.blugraphic.com http://duckfiles.com http://www.pixeden.com http://365psd.com http://www.uipixels.com http://www.bestpsdfreebies.com http://www.premiumpixels.com http://designdeck.co.uk http://webdesign-freebies.tumblr.com http://fribly.com http://freebbble.com http://www.sketchappsources.com Free Stock Photos https://stocksnap.io https://unsplash.com http://www.gratisography.com http://www.splitshire.com http://www.lifeofpix.com https://picjumbo.com http://nos.twnsnd.co http://getrefe.com http://lockandstockphotos.com http://www.pexels.com http://littlevisuals.co http://streetwill.co http://shop.madeinmoments.com/freebies http://moveast.me http://jaymantri.com http://foodiesfeed.com http://www.resplashed.com http://nos.twnsnd.co http://kaboompics.com Free Fonts http://www.1001freefonts.com/faq.php...
79 words, read more »
I discoverd today that Firefox has a “Screenshot Node” feature in the inspector. To use it: Open the inspector. Right click on a node of interest. Click “Screenshot Node”. A screenshot of the node will be saved in your downloads folder. Additionally this can be used to screenshot a node that is larger than the screen, including the <html> tag itself.
61 words, read more »
I took inspiration from this post on StackOverflow while debugging connectivity issues on a mail server I manage. You can start up another instance of exim listening on a non-standard port, then connect to that instance and observe the console ouput to determine what the problem is. root@server:~# exim -bd -d -oX 26 You can then configure your mail program to deliver via tcp/26 and see what happens. However, to make it easier I introduced...
238 words, read more »
I made a very fast video about what CSS source maps are and how they can make your life easier when it comes to web development. Although the video talks specifically about Foundation and Compass, the underlying point is that SASS when compiled can be told to output CSS source maps which modern browsers can then read and assist you with by loading it into the developer tools. Watch it here:
71 words, read more »
I wrote this some time ago to get familiar with Python and the PyGame library that is available for it. I wanted to make something that was inspiring and fun and so far it’s ticking both of those boxes for me. I had a bit of a hack around on it tonight at the CodeCraft Hackathon Event and thanks to Matt Cook for helping me to refactor things. This blog post is an update with...
220 words, read more »
I often work via SSH - in fact, I do this a LOT. When you do this you have no GUI apps - this works fine for a lot of things but sucks for viewing images and at times you’re gonna ask yourself “Hmm, this file called mainimage.png - what does it look like?” ~$ gimp: command not found ~$ eog: command not found ~$ nautilus: command not found This is not helping! You can...
256 words, read more »
The Steam In-Home Streaming is a nifty thing. It lets you “stream” the audio and video from a game from one computer in your house to another. For me this means I can stream a Windows-only game from my Windows PC to my Linux laptop and play away. This works surprisingly well. The only down side of this is that the Windows PC cannot run the game in the background and allow someone else to...
449 words, read more »
Sean Zicari gave a good presentation discussing the terminal, ncurses and python and how to write a program to get random quotes and display them in your terminal. Of particular interest to me was building a UI in ncurses. ncurses is a very low level interface that allows you to do cursor positioning, text colour changes etc. but I was interested in programming at a slightly higher level than that. Sean demonstrates how the urwid...
371 words, read more »
Setting up a mailcatcher LXC container for development purposes by Bob Brown email@example.com, 14th Jan 2015. [TOC] The goal is to create and configure a LXC container that other containers (and the host machine itself) can deliver email to. Ubuntu 14.04 is the host OS. All email will be accepted and be available via a single IMAP account for browsing. We will use the following: exim for accepting mail dovecot to serve that mail to...
578 words, read more »
So you’ve heard about Ubuntu and you’ve been interested but when you found out that it (can) completely replace your current operating system you thought better of it. After all, the last thing you want to happen when you try a piece of new software is for you to lose everything. Enter Wubi. Wubi is a small installer program (about 1MB) that will install Ubuntu on your Windows computer (Mac and Linux versions are coming)...
306 words, read more »
subscribe via RSS