Just a quick tip, if you need to move a SVN branch or folder around inside the repository, use the following command:
svn move https://svn_server/svn/repo/branches/folder https://svn_server/svn/repo/branches-graveyard/folder --message "Moving branch to graveyard"
This command can be useful when you need to move an old branch into archive or perform other branch administration in your SVN repository. At work we are using Visual SVN server, so I had to run the command in the C:\Program Files (x86)\VisualSVN Server\bin folder.
One final thing, you must have a commit message when running the SVN move command otherwise it will not work. For more information visit this superuser question:
This has to be one of the most annoying features of Visual Studio. Why would anyone ever need to copy blank lines? Enter key broken? Don’t know what an enter key is? Then lucky you can copy blank lines with Ctrl+C! Seriously this is how to turn it off:
The Elastic Beanstalk on Amazon Web Services is a service used to deploy your application to the cloud. Amazon then handles all of the provisioning of instances, loading assets on S3, configuring load balancers and running your server software such as IIS. Configuring what happens when you deploy using Elastic Beanstalk is fairly straightforward, and for more in-depth commands an Elastic Beanstalk Configuration File can be deployed with the application. The configuration file is YAML-based, and can be used to download and install MSIs and other packages and also run commands on the instance. You can read more about them here. (more…)
I was working on a grid system in CSS for a style framework I’m making for work, and I ran into a few problems when styling the grid. Specifically, I was having trouble with aligning all of the columns side-by-side while simultaneously giving each column sufficient padding. There is a CSS property called box-sizing, which has a default value of content-box. The problem with this is that for block elements such as divs, properties like borders and padding add width to the element, even if it already has a fixed width. This is particularly troublesome with grids, because we need to have each column the correct width regardless of padding applied to it. (more…)
Extending the functionality of existing types and classes in .NET is very straightforward with extension methods in .NET. These methods allow you to modify the functionality of a type without modifying the existing type, and are called as if they were a method on the original type. This functionality allows you to add a wide range of comparisons or operations to a method instead of creating functions or externalising methods inside a model or class library.
As a user of Amazon Web Services, I am still constantly finding new tools, APIs and features to use within their mammoth system. Because of the huge amount of documentation available, it is difficult to find useful information until I need it for a specific reason. I was looking for a way to make sure that an .exe that I was building could only be run on an EC2 instance, and that’s when I came across EC2 Instance Metadata.
At work back when I was using Visual Studio 2010, I had a macro for VB.NET that would generate properties in VB.NET from a list of private methods with a click of a button, because the VB.NET class property syntax is extremely tedious to write even for classes with a small number of properties. With Visual Studio 2012 macros have been removed so I had to find an alternative or otherwise suffer with copy/pasting or writing the whole thing out!
Luckily I came across an answer on StackOverflow that utilizes code snippets to generate a property in VB.NET including the private variable. You can see the answer here: VB.Net Keyboard Shortcut to auto-generate a Property on StackOverflow. All you need to do is write the word Property and hit tab twice, and it will generate something like this:
Private _PropName As String
Public Property PropName() As String
Set(ByVal value As String)
_PropName = value
I decided today to start writing separate development blogs for my various projects in order to take better notes, record any issues I have and how I fix them, and also to document my though process behind developing certain features and experimenting with new technologies. The blogs can be found at http://martin-brennan.github.io.
I’ve been a bit lost lately at home. Where I used to be constantly working on personal projects, I’ve found myself more frequently looking aimlessly at huge time sinks like forums and tumblr. I’ve been finding myself lacking the drive to work on personal programming projects even though I know I’ll enjoy it a lot once I get started and I’ll most likely learn some cool stuff from it. I’ve been suffering from a distinct lack of “Getting It Done”, in that I haven’t even done anything on any of my projects, or so much as looked at them in the past month or so. The slump may be from my work life; I’ve recently started to hit my stride as supervisor after being promoted near the end of last year but that has come with tradeoffs.
More time supervising and ensuring that a high quality of code is at work has left me with less “Getting It Done” time at the office as well, and by that I mean actually writing and shipping software myself instead of planning and architecting it for others and finding work for my team. I’m enjoying being the supervisor, it is an entirely different role with different responsibilities and I’m sure I’ll find myself writing less and less code at work. It’s all about letting go and firing yourself from your own role. That’s why I’ve decided to start “Getting It Done” at home instead, and start working on my personal projects again. There is a couple of different motivational methods that I’ve found today that has gotten me working again, and I hope that these will help anyone else who may be feeling burned out on their personal projects as well. Here is how I started getting it done: (more…)