I have been evaluating both for several years.
Subclipse was the pioneer of the svn eclipse plugins and has been around for years. It is a tigris.org project which is the same as svn itself.
Subversive showed up a few releases ago and appeared to be part of the eclipse installation process (available under Install new software). However, at that time it was very painful to set it up because you had to add another repo (polarion.org) for the connector in order to make it functional. Now, however, this is no longer required.
This blog entry is a TODO, but I wanted to have a place to jot down a few pains with Hibernate and how to remedy them.
1. @ManyToOne id references result in a query by default.
Eg:
class Dog {
protected @ManyToOne owner;
}
Dog dog = entityManager().find(Dog.class, 1);
System.out.println(dog.owner.id); // This results in the Owner class being queried which is not necessary.
The basic solution which I will detail out later is to set property access on the id attribute of Owner, while leaving everything else the default (field).
2. The nasty query cache.
Setting up SSH to not have to enter your password every time is easy.
1. From the machine you want to connect from, create a private/public key.
air:~ user$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/user/.ssh/id_rsa.
Your public key has been saved in /Users/user/.ssh/id_rsa.pub.
The key fingerprint is:
53:32:4f:7a:36:93:f8:89:06:8f:f6:9d:a2:bf:1d:e4 user@localhost
Here are the instructions on how to get MySQL Workbench up and running on Amazon EC2 after creating a "Getting Started on Fedora Core 8" AMI instance.
1. ssh into your instance forwarding port 3306
ssh -i ~/ec2key.pem root@your-ec2-ip-or-hostname
I normally put localhost instead of 127.0.0.1, but OSX gives me grief by
2. Install MySQL
yum install mysql-server
3. Configure MySQL to start on startup
ntsysv
check "mysqld"
4. Start up MySQL
/etc/init.d/mysqld start
5. Set root password
mysqladmin -u root password new-password-here
Now, Launch MySQL Workbench
Shell Shortcuts
Ctrl-u Clear line
Ctrl-a Move to beginning of line
Ctrl-e Move to end of line
Ctrl-r Revere search history
Ctrl-z Takes an executing process. Stops it and give you a job # (From here run fg to bring it back or bg to let in run in the back ground).
Command-k (OSX) Clear scrollback buffer/screen.
Commands
screen - Set up multiple screens within same terminal. Save/Resume shell (Very useful if you lose a remote connection)
top - Memory/Cpu/System stats
ps -aux Show whats running with some stats
ls -Z Find out SELinux permissions on files
So this was bugging me for a while. Finally I decided to figure out what the heck was going on.
Whenever I wanted to edit a config file while not being logged in as root, I would sudo vi it but all the pretty colors would disappear. If I vi'd it directly without sudo, my vim profile would kick in and the colors would be there. If I logged in as root or su - and then edit the file, the pretty colors would be there....
So I then typed:
[root@lunch ~]# which vi
alias vi='vim'
/usr/bin/vim
[root@lunch ~]# sudo which vi
/bin/vi
[root@lunch ~]#
So I just looked at a fresh Ubuntu 9 install on Rackspace and wanted to quickly enable http traffic. Being a CentOs / Redhat admin for 5 years, I went to type setup and nothing happened.
Setup is a nice UI program for configuring your Linux OS. I prefer this for simple tasks, rather than having to remember which files I need to edit and how to edit them.
Searching the net,
( http://www.techotopia.com/index.php/Basic_Ubuntu_Linux_Firewall_Configur... )
I found that lokkit is a sub-program to the setup program I am familiar with so I installed it:
For a program that has not been updated since 2006, Synergy is awesome and still works perfectly with the latest operating systems.
"Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s). "
http://synergy2.sourceforge.net/
This is useful if you have a desktop computer and a laptop and want to control your laptop from your desktops keyboard or vice versus.
1. Download Git from the OSX link:
http://git-scm.com/download
That will take you to this Google Code project:
http://code.google.com/p/git-osx-installer/downloads/list?can=3
2. Run the Installer.
3. In order to allow someone to clone your repository, you need to make sure that git is part of the system PATH.
Create or Edit a file called ~/.bashrc
Add the following:
export PATH=$PATH:/usr/local/git/bin
Now verify that the path is accessable to a no-login shell:
ssh localhost echo \$PATH
You should see something like this (Just make sure /usr/local/git/bin is in it)
I have a Windows 7 desktop and a MacBook Air. I prefer working in OSX, but my Windows 7 Core i7 processor w/ 6 GB of Memory / Intel solid state hard drive runs circles around my MacBook Air w/ Core2 Duo Processor and only 2 GB of ram.
Considering I like to work when I am on the road (carpool), I need an easy way to share files between my Windows Desktop and my MacBook Air laptop. Since I love Git, I will describe a simple way to do this.
1. Set up SSH Server on Windows 7
http://www.scottmurphy.info/open-ssh-server-sshd-cygwin-windows
2. Set up Git