Sometimes I get my branch in a state where I need to reset things to what is on the server. Most of the time a simple switch of branches is enough to get everything back in shape, but once in a while I need to actually reset to what is in the parent repo.
To reset your local working copy to exactly what is in the remote (typically called origin) do the following:
git reset --hard <em>origin/branch</em>
git clean -x -d -f
These should be done in the root of your project.
I needed to do some work on an old Maven project I have that I’ve worked on for years, and when I fired up my handy Netbeans IDE and ran the obligatory “priming build”, I was surprised to get an error on one of the basic Maven plugins. Continue reading
Two years ago, I moved to Salt Lake City for work. After looking around a bit for a rental property close to my new work, it became clear that I would be better off trying to buy a new home than renting if I could afford to do so. At the time the interest rates and property values in Salt Lake City were very low, so monthly mortgage payments were often cheaper than rental prices.
Sitting at the Salt Lake Roasting Company after we first moved here, we found a really nice real estate agent (Jaral Ferwerda). I worked with him diligently to find a home while my lovely wife was buttoning up our home in California.
After a while, I started to find it very difficult to keep track of all the homes I was seeing. They started to blur together, and I wasn’t really able to figure out which one I liked best.
I created a WordPress site for a client who needed to support both English and Español versions of their content, which involved using a plugin called MultilingualPress that creates relationships between sites for each language.
I developed the site locally on my server, and then after they created some content, migrated it to their hosting service.
Sometimes I find myself working backwards up a tree of errors to fix a problem. Today was a case in point.
Since I’ve been doing a bit of WordPress grooming, I have the development build checked out locally. Previously I had run phpunit against the unit tests included in the code, but for some reason when I tried to run things under NetBeans, it would error out (Bug 247704).
I don’t usually write about services that I use, but one that I really have been excited about is Square Cash.
Square Cash is an application by Square that uses email to do secure cash transfers. I have been using it for a while now, mostly to send money to friends when I need to pay them back for buying lunch (or when they need to pay me back). It is extremely simple to use, and is free.
It is extremely simple to use, all you need is a bank debit card, and you can start texting your friends money (or asking for money from them.
And right now, if you follow this link https://square.com/cash/D28b8Q, both you and I will get a buck deposited in the bank.
Once in a while, I run across a situation where I need to import data from a spreadsheet into a database.
If the data is to update a single table, this is pretty straight forward. On the other hand, if the data is modeled as a set of tables it gets a bit more messy. Continue reading
If your organization is like most, they will have sites that use a self-signed (or untrusted authority) certificate.
In cryptography and computer security, a self-signed certificate is an identity certificate that is signed by the same entity whose identity it certifies. This term has nothing to do with the identity of the person or organization that actually performed the signing procedure. In technical terms a self-signed certificate is one signed with its own private key.
I logged into a newly provisioned VM recently to see a message that there had been 86,876 failed login attempts from a domain in another country.
Last failed login: Sat Sep 13 04:02:20 <a class="zem_slink" title="Coordinated Universal Time" href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time" target="_blank" rel="wikipedia">UTC</a> 2014 from 188.8.131.52 on ssh:notty
There were 86876 failed login attempts since the last successful login.
That got me to looking for best practices on securing Linux against attacks, and looking for help from RackSpace (one of the better Cloud hosting providers). Continue reading
I manage a small application that is hosted on a single Linux virtual machine and have noticed some occasional performance and stability issues.
The server runs CentOS, MySQL and a GlassFish server. I chose GlassFish several years ago because at the time it was the only EJB3 container around, as well as being very well integrated with the NetBeans IDE.
Like most JavaEE containers, it also makes clustering and scaling easier. Continue reading