Profile

Cover photo
Alex Woehr
Works at Strides Tutoring
Attends Bob Jones Seminary
Lives in Greenville, SC
650 followers|280,654 views
AboutPostsPhotosVideos

Stream

Alex Woehr

Shared publicly  - 
 
That's a good quote.
 
It is a fair warning: "The habit of introspection may be abused, to divert the eyes of the soul too much from Christ." (R.L. Dabney)
View original post
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
This is actually kind of interesting. Much more interesting than another compile to JavaScript language with delusions of replacing the most widely used language on earth.
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
Google's new Inbox looks like an upside-down Windows XP...just saying :-)
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
Sharing so that you can go back to the original thread for this post, which is pretty interesting.
 
Generative travel

A little thinking out loud, here.  I was wondering about finding a simple, easily followable set of rules that will (fairly reliably) lead one to interesting places, and on good adventures, the kind of thing one wouldn't ordinarily see.

Examples:

1. Circumnavigate the city you're currently in, on foot (if practical), or bike.

I did this once in Innsbruck, Austria, and as a result bumped into a terrific Dali exhibition that I would otherwise never have seen.  Admittedly, I cheated a bit - I didn't fully circumnavigate the city.  But that was the broad approach.

2. Find the nearest large church (or library or museum) and attend the next event they have on, no matter what it is, even if - especially if! - it is something you wouldn't ordinarily attend.

I followed this algorithm once.  Some friends and I were walking past the State Library of Queensland and decided we simply would go to the next event that was on.  It turned out to be the author Jeffrey Archer (who I knew nothing about) talking about his latest book, and was rather fascinating.

3. This one is only semi-generative: a friend and I were driving randomly through Southern New Mexico, and decided to find the nearest fire tower on our map, and climb the relevant mountain to get to it.  It was a great trip.

4. I've considered systematically visiting all the US Presidential libraries, but have only done one so far.

What examples of good generative travel algorithms do you have?

Ideally, such algorithms will take you both to places that are extremely interesting and also extremely unusual, i.e., not experiences you would have by following conventional guide books.

(Inspired by a conversation with +Stuart Candy )
18 comments on original post
1
Add a comment...

Alex Woehr

Newbies  - 
 
#c99

How would you verify that an input to a CLI tool is alphanumeric? Is "isalnum" from ctype library sufficient? What about unicode or weirdo inputs?

                /* Verify that argv[1] is decent */
                /* 1: String length. Pretty basic sanity check. Overall, the buffer should be less than 256 chars. */
                if (64 < strlen(argv[1])) {
                    fprintf(stderr, "Bad username. It is much too long! Username follows:\n%s\n", argv[1]);
                    exit (1);
                }

                /* 2: Contents of username. Should be REALLY straightforward. */
                /* Won't work with unicode, obviously. */
                int loop;
                for (loop=0; loop < strlen(argv[1]); ++loop) {
                    /* Uses ctype.h functions */
                    /* Check if current character satisfies the ctype requirement (alpha or digit). */
                    if (!isalnum(argv[1][loop])) {
                        fprintf(stderr, "Bad username. It is not alphanumeric. Username follows:\n%s\n", argv[1]);
                        exit (1);
                    }
                }
1
Ian Liu Rodrigues's profile photoСнежанна Волчичка's profile photoFlorian Philipp's profile photoAlex Woehr's profile photo
6 comments
 
Thank you +Florian Philipp​. That is very helpful.
Add a comment...
Have him in circles
650 people
ysmobi ysm's profile photo
Master Sam's profile photo
Rose jackson's profile photo
Lapoux Sébastien's profile photo
Nobong Barrientos's profile photo
David Woehr's profile photo
Doug Scudder's profile photo
Ala Uddin's profile photo
AS Consulting's profile photo

Alex Woehr

Shared publicly  - 
 
May the fourth be with you!!! :-)
 
Explore this collection as a learner. Then you will become the master. #MayTheFourth http://goo.gl/zJ4aGx
33 comments on original post
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
#linux  lsof command has so many options it's crazy... One of these days, I am going to read them ALL. lol
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
Saw four crows chasing a hawk away. There's safety in numbers.
1
Add a comment...

Alex Woehr

Shared publicly  - 
 
Good to know!
1
Add a comment...

Alex Woehr

Newbies  - 
 
#c99  

Is snprintf the best alternative to strcat below? Or should I use strncat?

                char bash_command[256];

                snprintf(
                        bash_command,
                        sizeof bash_command,
                        "some_command -- %s",
                        argv[1]);

                if (execl("/bin/bash", "-i", "-c", bash_command, NULL)<0) {
                        fprintf(stderr, "Failed to exec - %s\n", strerror(errno));
                        exit(1);
                } else {
                        exit(0);
                }
1
Mario St-Gelais's profile photoAndrew Potter's profile photoMartti Kühne's profile photoFlorian Philipp's profile photo
11 comments
 
+Martti Kühne exactly my point. In any other case strcat does redundant work. And in the one case that it doesn't, it's a security risk.
Add a comment...
People
Have him in circles
650 people
ysmobi ysm's profile photo
Master Sam's profile photo
Rose jackson's profile photo
Lapoux Sébastien's profile photo
Nobong Barrientos's profile photo
David Woehr's profile photo
Doug Scudder's profile photo
Ala Uddin's profile photo
AS Consulting's profile photo
Work
Occupation
Web Developer, Christian worker/student (part-time)
Employment
  • Strides Tutoring
    Math tutor, 2011 - present
  • Dynamics Technology Solutions, Inc.
    Lead Developer, 2011 - present
  • The Worthwhile Company
    Senior Developer, 2009 - 2011
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Greenville, SC
Previously
Knoxville, TN - Philadelphia, PA
Links
YouTube
Contributor to
Story
Tagline
Web developer working his way through Seminary
Education
  • Bob Jones Seminary
    Theology, 2009 - present
  • Bob Jones University
    CpS, History, Greek, 2005 - 2009
Basic Information
Gender
Male
Apps with Google+ Sign-in