Archive for the ‘general web’ Category
I’ve found the command line to be the most reliable and simplest way of managing subversion repositories, but also found the svn:ignore property a little more esoteric to set up than I’d like.
svn:ignore is used to specifiy files and folders you don’t want to be part of the version controlled repository for your site or application build. These often include location specific settings files, development or debugging files etc.
For the benefit of others, here’s my run down to getting this working for my user account on a CentOS server.
1. Set up your default text editor for SVN
First, make sure you have a default text editor set up for subversion. The first time svn runs it builds a config directory, which on a linux server, is a directory named ‘
.subversion‘ in your home directory.
Navigate into the .subversion directory (
/home/youruseraccount/.subversion) and edit the
config file. Uncomment the
editor-cmd line and add in the name of the editor you’ll be using (in CentOS it’s nano).
Save your changes and then navigate to the directory where your repository resides.
2. Check which files and folders currently aren’t under version control
You can easily see what files aren’t under version control by running
and looking for the lines prefixed with a ‘
3. Add exclusion patterns for files and folders
svn:ignore properties for the files and / or folders you want subversion to ignore by running the folling command:
svn propedit svn:ignore directory-name
directory-name is the directory you want to apply the changes to.
This should open the
:ignore properties file in the text editor you specified. You can then enter file and folder names and / or patterns you want ignored. Once you’ve saved the changes, run
to check in the property changes.
Now if you run
the file and folders you specified to ignore won’t be listed and won’t be under version control. Voila!
In the interests of the entire internets (ie: me) I now post some stats from this site, which has been “active” (in the very loosest sense of the word) for about 18 months.
First up, top 17 posts:
So, basically people are coming here looking for answers to coding problems. Much like what I do with 90% of the blogs I visit. (Note to self: write more of these)
Now – top 11 search terms
|ie7 css filter||547|
|ie7 specific css||476|
|mysql insert or update||188|
|print_r to variable||150|
Basically lining up with the top 5 posts. No prizes for guessing where most of my traffic comes from.
I’m surprised at how much interest my short review of Tumblr has produced.
Top 15 referrers
Some blogs, a Google Code project I administer, my Twitter account, some comments I’ve left and a few extra bits floating about.
Next – traffic summary
This really is something I should use to convince some clients of the value of frequently updating content and doing something (anything!) to promote their sites – and the traffic to this site is tiny.
As you can see – for the first year I didn’t even do anything with the site and since then I’d be lucky if I average one post a month. Despite this, traffic rises – which goes to show the power of writing things that at least a few people are interested in.
Any stats you care to share? Link them up in the comments.
As we become inundated with more and more data, there is more to do, less time (seemingly) to do it in and more pressure to organise, categorise and find the relevance in all that information.
Case in point – I have a full time job, 3 kids (soon to be 4), do some freelance work to help pay the bills, am completing a degree via correspondence study and on top of this I do a fair amount of volunteer work for my church.
For me time-management isn’t an optional nicety – it’s critical for managing all the busy, and often conflicting facets of my life and ensuring nothing slips through the cracks.
Amongst all this madness I’ve found one sure-fire low-tech way to manage conflicting priorities and deadlines.
- Grab a piece of paper – not Notepad, not some online note-jotting thingy. On that piece of paper write down the things which need doing today. Resist the temptation to do this online – I guarantee technology will distract you in some way.
- Do the quickest and easiest ones first.
- Switch off any distractions (email clients, twitter, extra apps you don’t need), prioritize the remaining tasks and work through them one at a time.
It really is that simple.
Note: no computer involved, no web 2.0 application required, just the ability to write, prioritize and focus.
Call me old fashioned, but I wasn’t quite sure what to do when WinSCP gave me this error message.
Maybe it didn’t matter? 😉
I got brave recently and installed Ubuntu. At first I was pleasantly surprised at how much of my hardware it picked up (the only thing it missed was my modem) and at the improved quality of the whole experience from the days of Red Hat distro’s seven years ago. However, after a few weeks, I decided to use my XP recovery discs and make the switch back. Here’s why:
- Media. As a consumer, I expect my machine to run MP3’s, CD’s and DVD’s out of the box. Trawling around Ubuntu forums adding obscure repositories to APT and installing new software to do this was not pleasant. Or expected.
- Video Editing. Basically video editing for Linux doesn’t seem to exist (outside of Pixar or Weta Digital that is). yes there is software out there, it just happens to suck horribly. Or not work at all. I realise most people may not do a lot of this, but with the rise of home video going to the web and home DVD it will only become more important.
I now understand the pull of Mac even more. The power, stability and security of a Unix kernel along with media software which just works right out of the box.
- Camera Drivers. Want to pull video from your camera onto your hard drive? Be sure to let me know how you get on ’cause I certainly couldn’t.
- Flash. Flash on Linux was really unstable for me. I’d frequently hear my girls yell out: “Dad, the screens gone grey.”. Enter daddy to restart the browser. Again.
- Games. I’m not a PC gamer, but my kids have some software they like to play with. See ‘video editing’ – games on Linux are pretty much non-existent. (Don’t even get me started on WINE, my experience with it was terrible.) Given that 98% of games are built for Windows first and Mac (a poor) second, it’s hard to explain to your family how great Linux is when all they want to do is Just Play Their Game Thank You Very Much And They Can’t Because Stupid Linux Won’t Let Them.
I reinstalled Windows and things just worked. I’ve never been happier with my Windows set up. I now appreciate the effort Redmond put into making sure things just get out of your way and work. XP may not be cool, sexy or l33t h4x0r but it’s fine for me.
Got this in an email at work. Couldn’t resist posting.