Skip to content

Adding Boost To Your C++ Include Path

I just installed Boost via MacPorts; but I didn’t want to have to manually add the include path on the commandline every time I compiled something, especially since I’ll do a lot of small hand-compiles while learning how to use Boost.

So I went looking for a way to instruct g++ to always include the Boost headers in the include search path.  The solution was to add the following to my .bash_profile:

# Add MacPorts directories, if they exist.
if [ -d /opt/local ]; then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
export CPLUS_INCLUDE_PATH=/opt/local/include
fi

It’s the “export CPLUS_INCLUDE_PATH…” line that does the trick.  However, while the other two exports append the MacPorts additions before the rest of the system, the last replaces the pre-existing path.  So be wary, if you were using it previously you’ll need to modify that line to add whatever else you had too.

Headers found through this environment variable are treated as if they were found through an “-I” flag on the commandline, but any true “-I” flags.

Tagged , , ,

Gmail Adds Always-On-HTTPS Option

I just entered my Gmail accounts options to tweak something, and a new feature at the bottom of the page caught my eye.  There’s now a “Browser Connection” option which gives you the option “Always use HTTPS.”

It’s good to see Google taking security seriously with practical steps.  This feature in particular was long in coming, with lots of people using various hacks to get the same effect.

Tagged , , , , ,

iPhone Scarcity

I think the iPhone drought has gone way out of hand, regardless of whether Jobs manufactured it or not.

There are no iPhones available (according to Apple’s own availability page) in 21 states:

  • Arizona
  • California
  • Delaware
  • Georgia
  • Indiana
  • Iowa
  • Kentucky
  • Louisiana
  • Michigan
  • Minnesota
  • Missouri
  • Nebraska
  • New Jersey
  • New Mexico
  • Ohio
  • Pennsylvania
  • Tennessee
  • Utah
  • Virginia
  • Washington
  • Wisconsin

That’s almost half the US.

I’m particularly surprised at the shortage in California, the home of Apple and where several industries that are strong supporters of Apple call home.  For example, Hollywood, across all strata, has always been big on Apple: from movie stars who are always trying to hook up with hot products of the moment, to big studio executives who see the hottest new products as status symbols, to the technical and artistic people who use Apple for their day-to-day work.  Likewise, Silicon Valley (which is where the Apple Campus itself is located) is home to the tech industry, and, as might be expected, everyone there is interested in the latest and greatest.

Tagged , , , ,

MSNM Spam

I just received the following unsolicited message on MSN Messenger:

03:17:42 joelxauf91@hotmail.com: hey! check out this brand new dating site! get $25 just for signing up! http://amateurmatch.2ya.com

I’ve gotten spammed with this sort of thing on ICQ for years, but this is the first time I’ve gotten it on MSNM…

Has anyone else had this sort of thing..?

Tagged , ,

Biggest Rick-Roll Ever?

Youtube’s April Fools: making all the Featured Videos into Rick-Rolls.

To be Rick-Rolled, for those who don’t know, is to click on an intentionally mislabeled link which takes you to a video (or sometimes just the audio) of Rick Astley singing his hit single, “Never Gonna Give You Up”.  Often the links point to one of the innumerable versions of the video on Youtube.

What other company would Rick-Roll their audience?

Tagged , , , ,

What’s Wrong With Preferences?

John Gruber of Daring Fireball makes a popular argument for why iPhone apps shouldn’t be allowed to run in the background: that badly-written apps will cause the typical user (un)told amounts of confusion.

I don’t understand why developers consistently feel the need to protect users by making things impossible. Why not use a simple middle-ground compromise solution: make a setting permitting apps to run in the background, set it to disllowed by default. You could even fine-grain the control on a per-app basis (adding them to the list when they get added via App Store).

Problem solved.  People who want background apps (like I would, just for my IM client) can have them.  People who don’t simply leave the apps disallowed from going into the background. Most users don’t run around toggling settings they have no idea about, so it should be fine.  Everyone’s happy.

Tagged , , ,

“Should links open in a new window?”, Short Answer: No.

David Airey recently posted an age-old, flame-war-worthy question: “Should links open in a new window?”

I think links should always open in the same window.  If I want to keep your site open, then I will simply CTRL/CMD-click, and tell my browser to open in a new window.  But when you stick the “new” tag in there, its a lot more work for me to force something to open in one window; really what I have to do is open the new window, switch back to yours, and close it.

I frequently will read through a blog, opening all interesting links in a new window (which open in the background), and then when I finish the blog, I starting reading reading through the 20-50 tabs I opened in the process.

When I want to see something immediately, I will simply click the link, and then go back when I’m done.  And sometimes I’m just coming back to your page because you pointed out something in the past which is now useful to me.  Your page is now a gateway to me.

In short, the expected behavior is that a link will open in the same window.  If there is some visual indication that it will open in a new window, I might forgive you…a little.  But there is really no reason for you to try to customize my browsing experience, especially without giving me the option to decline.

And honestly, what do you hope to gain by making places you link to open in a new window?  Do you think, when I click a link on your website, I don’t know I’m leaving?  Do you think I can’t get back to your website if I want to?  Do you think that by leaving your website open when I click, I will suddenly realize I want to spend more time there than I thought I did before clicked?

Tagged , , ,

VMware Fusion vs. SWsoft Parallels

I’ve come to the conclusion that Parallels and Fusion have almost become clones.

Here’s what they can both do:

  • Access to Windows partition used by BootCamp.
  • Integrates Windows applications into the OS X environment.
  • Can take “snapshots”, preserving the state of the virtual machine to later be reverted to.
  • Drag and drop files between OSes.
  • Take advantage of GPUs (to varying degrees).

Their differences are very slim. The quality of 3D support is probably a bit better in Parallels, because they’ve worked on it longer. Fusion has support for 64-bit and multiple core virtual machines. And the way they present integrated Windows applications on the OS X desktop probably differs a bit (something that ultimately comes down to personal preference I think).

Tagged , , , , ,

Let Me Keep My Data

(or, Why I Like Gmail More Than Yahoo)

Adam Pash of Lifehacker wrote a comparison piece entitled “Yahoo Mail Innovates, Gmail Stagnates” a couple days ago, arguing that Yahoo has surpassed Gmail in the Webmail Wars.

While the title of the post makes it sound damning to Google, Adam Past is a long known Gmail user, which arguably makes his criticism that much more compelling. And he raises a lot of very good points for both sides.

In particular, I think Adam’s wish for an offline client in the style he described would be a major improvement to Gmail, and I echo Adam’s need for Gmail’s contact management kinks to be worked out.

However, I feel Adam missed one of the biggest and most important advantages of Gmail: Gmail gives me access to my data. Of the Big 3 Webmails (Hotmail, Yahoo, Gmail); only Gmail makes it easy for me to take my data away from their service by giving me POP3 access, and makes it easy for me to seamlessly move to another provider by giving me mail forwarding. Yahoo does offer POP3 access and forwarding as well, but only for the 20 USD per year. Ironically enough, knowing I can easily move away from Gmail is exactly what is keeping me from doing so.

I wish developers, of both web and desktop apps, would take heed: when a server goes down or someone’s computer breaks, 90% of the time what people lament the most is the loss of their data. Locking people into your product by making it hard for people to get their data out might be a semi-effective way to keep people in using your product, but it will not win you user loyalty. Or to mutilate what Richard Bach said: If you love your users, set them and their data free. If they come back they’re yours; if they don’t they never were.

Tagged , , , , , , , ,

Reason #2901 To Buy A New Computer

I have just pulled the trigger on buying myself a new laptop, and so I was very amused to find this paper authored by Todd Kendall discussing how increased internet access across households has probably contributed to less incidents of rape.

The paper points out that increased internet access increased the availability of porn, which serves as a substitute for rape. Specifically, Todd Kendall found that rape decreased among the 15-19 age bracket…not coincidentally the age-group of the internet’s early-adopters. Furthermore, this is arguably the age group that has the most sexual frustration: they arguably have the most tumultuous relationships and have a lot more trouble getting other adult entertainment (they live with their parents, are not likely to have credit cards in their name or a lot of money to spend, etc.).

Of course, the adult entertainment industry has started to feel the effects of pirating and are starting to take steps to combat it.

Todd Kendall uses 6 different measures which he argues shows, at least empirically, that internet adoption led to less rapes roughly on the order of a 10% increase in internet adoption leading to a 7.3% decrease in rape.

I encourage you to read the paper for yourself, at least the introduction, if nothing else. A more detailed, technical critique can be found at 2×3x7.

So when someone asks why I spent so much on a new computer, I’ll just tell them I’m trying to prevent rape.

Tagged , , , ,