Skip to content


Delete Lines Matching Regular Expression From Multiple Files

Today, I had to remove 650 instances of a line matching a certain pattern scattered across 145 different XML files. Not a pleasant task. (If you’re wondering, I’m deprecating a field in the XML DTD and wished to remove all current instances).

Just to save you all the searching and debugging, here is the final form and my notes.

egrep -rl '^<pattern>$' * | xargs sed -i .bak '/^<pattern>$/d'

Continued…

Posted in Tutorials.


Service Learning

Today, I stumbled upon the last article that I helped push through for Drexel Smart House before graduation. True to form and philosophy, this article is espousing an educational paradigm called “service learning.” This piece appeared in the Bridge (iSchool publication) and focuses on an HCI course by one of my favorite Drexel professors and personal mentors, Dr. Jennifer Rode.

DSH Spread in the Bridge

Get a PDF version for easier reading

I’m looking forward to seeing where the amazing new leadership team takes this project. I left at the most exciting time for DSH, but I’m excited to do whatever I can as an alumni to see this project, and all of the ideals and philosophies that it represents, flourish.

 

Posted in Education.


Graduated!

Yayy!! A big thank you to all my family, friends, mentors, and supporters who have helped me at various points along the way. You’ve all helped fashion a great experience for this poor Southern boy, and I hope that you’ll allow me to help you in turn, whenever the time arises.

Posted in News.


Case Study: Cell Phone Bill Analysis

Have you ever looked at the long list of calls on your phone bill, and wished there were a better way to see who all you’ve spoken with and other related information? Like some of you, I’m a data junkie, and I sure did. For now, I’m an AT&T customer. Like most modern phone companies, AT&T makes your call history available for download from their website in CSV format. Using a simple script, we can transform this long ugly list of numbers into something more meaningful.

Pie Charts showing To Whom I Speak as Percent of Total Calls and Total MinutesGraphs such as these can tell us a few interesting things, Continued…

Posted in Case Studies.


For Loops and Finite Series

At the request of one of my AP Computer Science students, I’m posting a few solutions to a simple loop problem in Java. The question reads:

How many times are the following loops executed?

for(int i=0; i<10; i++)
   for(int j=0; j<i; j++)
      System.out.println(i*j);

The possible options are A) 100, B) 20, C) 10, or D) 45.

Now, there are a few ways you can go about solving this problem. Continued…

Posted in Tutorials.


Update on My Life

I’m sorry its been so long since I’ve written! A lot has changed in my life recently, and I should tell you all about it. In brief,

  • Finally graduated from Drexel University with both my bachelor and master degrees in electrical engineering. (Honors, baby!)
  • Moved to Chicago. Technically, I’m currently living in Evanston, IL, at Northwestern University. See next point.
  • Starting working with gifted students through Northwestern University’s Center for Talent Development Continued…

Posted in News.


Teacher Transition: Instructor to Facilitator

There’s a transition underway in how students learn, and consequently in how teachers should conduct their classrooms. Gone are the days in which a teacher should “instruct” the class, lecturing from the front of the classroom and furiously scribbling on a blackboard. Today’s teacher should serve as a facilitator of the learning process. With the ease of access to information via books and the web, students no longer need to sit at the instructor’s feet as she shares her wisdom. Rather, the instructor should create an environment, both physical and experiential, so that students are capable of transforming raw data and information into knowledge and wisdom. Continued…

Posted in Education.


Skyscraper Competition

After sorting through old emails, I stumbled upon an invitation to compete in a Skyscraper design competition from my friend Patrick T. Hoffman. I was in a Native American class at the time, so everything I was reading was very earthy/natural, as reflected in my comments, but I still think there’s some interesting stuff there.

The competition was the 2011 eVolo Skyscraper Competition that aimed to promote “innovative concepts for vertical density” and “examines the relationship between the skyscraper and the natural world…the community…and the city.” Providing a venue to creatively re-imagine skyscrapers of tomorrow, the competition asked entries to address the questions “What is a skyscraper in the 21st century? What are the historical, contextual, social, urban, and environmental responsibilities of these mega-structures?” Continued…

Posted in Ramblin' Thoughts.


Social Power to Drive Change

I’ve known about GroupOn for a while, but finally made my first purchase today. Some time ago, I fell in love with a friend’s startup, MyDunkTank, and another local Philly startup, LoseItOrLoseIt. What do all three of these services have in common? They’re using social power to drive change.

Continued…

Posted in Ramblin' Thoughts.


Getting Started with Eclipse on Mac OS X: java.lang.NoClassDefFoundError

Just sharing a quick tip that’s frustrated me for the past couple hours. I installed Eclipse on my Mac and wrote a small HelloWorld program to check that all my paths and everything were setup fine. Alas, no matter what I tried, changing class paths, default Java versions (via the Java Preferences pane), and different eclipse Run Configurations, I kept receiving a java.lang.NoClassDefFoundError. Continued…

Posted in Tutorials.




Log in here!