Overloading the logical OR equals ope...
Short answer:
class MyClass
{
public:
enum Property { NoProperty = 0, Flat = 1, Orange = 2, Soft = 4 };
…
};
inline MyClass::Property& operator|=(MyClass::Property& a, MyClass::Property const b)
{
a = static_cast<MyClass::Property>(static_cast<int>(a) | static_cast<int>(b));
return a;
}
Change the notification sound for the...
These instructions apply to Linux but can be applied to any operating system.
Install apache2 and get it running (sudo apt-get install apache2)
Copy your ringtone to the web folder (cp ~/Downloads/my-ringtone.mp3 /var/www/)
Test it out by pointing your browser to the ringtone (http://localhost/my-ringtone.mp3)
Find the real path of the Go [...]
Building the square foot garden
Sara Jo and I have been so excited to start a garden since we bought our house last summer. After much reading, we’ve settled on doing a square foot garden. For those of you who don’t know about Mel Bartholomew’s awesome garden design, the idea is you create raised beds no more than 4 feet wide and fill them with “M [...]
Which house to choose?
Cute Yellow House
151 Macarthur Ave South Salt Lake, UT 84115
Likes:
Awesome neighborhood
10 minute bike ride to work
5 minute walk to TRAX
Clone to Costco, Walmart, and Target
Great yard
Dislikes:
No mature trees
Smaller
Low ceilings
No separate room for washer & dryer, would need to add one
The Loft
Likes:
4 bedrooms, long term l [...]
Review of the new Canon ELPH 300 HS a...
Our brand now Canon ELPH 300 HS arrived in the mail today, overnighted on our trial of Amazon Prime. With a price tag of $250, I was a little worried about my purchase, wondering if I made the right decision or not, but I have no doubts now.
I ripped the package open, but my beloved new camera and I had to soon part ways, as Sara and I had a [...]