Creating a branch in SmartSVN

Creating a branch in SVN is like creating a copy of a folder. The command line command is

$ svn copy svn+ssh://host.example.com/repos/project/trunk 
svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH 
-m "Creating a branch of project"

but if you do it in SmartSVN, it’s shown below.

Just make sure you don’t create a folder in your branches folder and then copy the contents of your origin folder into your newly-created branch folder. That would result in a separate branch for each folder within your origin folder as opposed to one branch of your entire origin folder.

Linking to a page’s HTML source

When you create a link in a website, you normally do something like

<a href=”somepage.html”>

This will take the user to somepage.html and download all assets on that page (images, css, javascript, etc) resulting in multiple requests. But, what if you only what to view a page’s HTML source. Well, you can create a link like

<a href=”view-source:somepage.html”>

and this will result in only ONE request and display the page’s HTML source code in your browser.

List of FlowCharts

I’m probably going to have to use one of these at some point.

http://www.lovelycharts.com
http://www.smartdraw.com/
https://www.lucidchart.com
http://www.gliffy.com
http://www.conceptdraw.com/
http://grapholite.com
http://creately.com/

My Favorite Web Development Tools on Windows

Raw Text Editor

  • Sublime Text 2
    • HTML Tidy Plugin
    • HTML Encode Plugin
  • NotePad++

WYSIWYG Editor

  • Dreamweaver (good for updated large tables)

SSH Client

  • mRemoteNG with Putty (for UTF-8 support, select UTF-8 in the Translation setting in Putty)

Terminal / Shell / Console

SOAP Web Service Testing Tool

  • soapUI

Diffing Tool

  • WinMerge
  • BeyondCompare (includes image differ)
  • Araxis (includes image differ)

Bulk File Renamer

  • Rename Expert

File / Directory Listing

(S)FTP / Synching Tool

  • WinSCP

 SVN Client

  • SmartSVN

HTTP Monitor

  • Fiddler
  • HTTPDebugger

Web Inspector

  • Google Chrome Inspector

Raster Graphic Editor

  • Photoshop

Vector Graphic Editor

  • Inkscape

 Screen Capture

  • DuckCapture
  • SnagIt

 Virtual Machine

  • Oracle VirtualBox (for testing different versions of IE)

 Video Encoding

  • Quicktime Pro
  • Miro Video Converter

Amazon S3 Manager

  • CyberDuck

Chrome Extensions

  • JSONView
  • PageRank Status
  • Show Title Tag
  • Web Developer
  • jQuerify
  • AdBlock
  • Pendule
  • Awesome Color Picker
  • Tape
  • CSS Diff

Font for coding

Installing Apache, PHP, and Postgres on Windows 7 64 Bit

Installing Apache on 64-bit Windows

0. Download

Go to http://www.microsoft.com/en-us/download/details.aspx?id=30679 and download Visual C++ Redistributable for Visual Studio 2012 (VC11) which is needed for the next step. Double-click and install it.

1. Download

Go to http://www.apachelounge.com/download/and download the 64-bit version (httpd-2.4.12-win64-VC11.zip)

2. Unzip
Unzip the Apache24 folder to c:/Apache24 (that is the ServerRoot in the config).
Default folder for your your webpages is DocumentRoot “c:/Apache24/htdocs”

When you unzip to another location, change ServerRoot, Documenroot, Directories, ScriptAlias in httpd.conf. Also, when you use the extra folder config files, change to your location there as well.

3. Install Apache as a service
Start > cmd (Run as Administrator)
c:\Apache24\bin>httpd.exe -k install

4. Install ApacheMonitor
Right-click on c:\Apache24\bin\ApacheMonitor.exe, Run as Administrator,
Make a shortcut of ApacheMonitor and put it in your Startup folder.

4. Test Setup
Go to http://localhost and you should see “It works”.

5. If you already have configuration files from a previous installation that you would like to apply to this new installation, do the following:
– rename C:/Apache24/conf/httpd.conf to httpd-original.conf
– rename C:/Apache24/conf/extra/httpd-vhosts.conf to httpd-vhosts-original.conf
– rename C:/Apache24/conf/extra/httpd-ssl.conf to httpd-ssl-original.conf
– rename old C:/Windows/System32/drivers/etc/hosts file to hosts-original

6. copy and paste the config files from your old installation into the new installation
C:/Apache24/conf/9264078_local.dev.XXXX.com.cert (SSL cert)
C:/Apache24/conf/9264078_local.dev.XXXX.com.key (SSL key)
C:/Apache24/conf/httpd.conf
C:/Apache24/conf/server.crt (SSL cert)
C:/Apache24/conf/server.nopassword.key (SSL key)
C:/Apache24/conf/extra/httpd-vhosts.conf
C:/Apache24/conf/extra/httpd-ssl.conf

7. Some useful (necessary) settings to have in httpd.conf

  • LoadModule php5_module “C:/php-5.6.5-Win32-VC11-x64/php5apache2_4.dll”
  • LoadFile “C:\php-5.6.5-Win32-VC11-x64\libpq.dll”
  • PHPIniDir “C:\php-5.6.5-Win32-VC11-x64”
  • DirectoryIndex index.html index.php
  • AddType application/x-httpd-php .php
  • Include conf/extra/httpd-vhosts.conf
  • Include conf/extra/httpd-ssl.conf

Continue reading Installing Apache, PHP, and Postgres on Windows 7 64 Bit