Category Archives: Code

Making bp-events work on BuddyPress 1.2 (with invites working)

There is a lot of chatter about wanting the plugin creator to update bp-events to work with Buddypress version 1.2, and so far it hasn’t happened, however, this guy has ported it for us so kindly: http://codewarrior.getpaidfrom.us/2010/04/21/buddypress-event-plugin-for-1-2/ Share This Post … Continue reading

Posted in Code, Linux, Research | Tagged , , | Leave a comment

Hack to make vipers-video-quicktags detect iPad and use HTML5 Video Tag

I use this WordPress plugin, vipers-video-quicktag, in a couple sites I maintain. I use it to display FLV video. I’ve found if I create .mp4 videos with the H.262 video and AAC audio codecs, it’ll play in the Flash player, … Continue reading

Posted in Code, Research, Video | Tagged , | Leave a comment

Putting a Facebook share link on your site

Putting this up as an example of how to do a share link. It’s a share link to http://goshinkarate.com/intro_offer.html (my kids take Karate here – Great program!)   Share   The code for this is: <a name="fb_share" type="button" share_url="http://goshinkarate.com/intro_offer.html" href="http://www.facebook.com/sharer.php">Share</a><script … Continue reading

Posted in Code | Tagged , | Leave a comment

BP Events bp-events invites broken, workaround

bp-events version 1.1 on top of buddypress 1.1.3 isn’t working for invites, it’s broken. After hours and hours of combing the web looking for a solution, I couldn’t find one. I figured out a workaround. There were several other places … Continue reading

Posted in Code | Tagged , | 3 Comments

Expect script to print out IronPort config, showconfig

Logging this here for easy fetching later. #!/usr/bin/expect set timeout 30 spawn ssh USERNAME@HOSTNAME expect_after eof { exit 0 } ## interact with SSH expect { “yes/no” { send “yes\r” } -re “.assword:” { send “PASSWORD\r” } } expect “> … Continue reading

Posted in Code, Linux | Tagged , | 1 Comment

Parallel Distributed Computing Example

You may have seen article, Hadoop Example, AccessLogCountByHourOfDay. This is a distributed computing solution, using Hadoop. The purpose of this article is to dive into the theory behind this. To understand the power of distributed computing, we need to step … Continue reading

Posted in Code, Research | Tagged , | 1 Comment

Hadoop Example, AccessLogCountByHourOfDay

Inspired by an article written by Tom White, AWS author and developer: “Running Hadoop MapReduce on Amazon EC2 and Amazon S3” Instead of minute of the week, this one does by Hour Of The Day. I just find this more … Continue reading

Posted in Code | Tagged , | Leave a comment

hadoop-0.18.3 Could not create the Java virtual machine

Installed hadoop on a VM, and needed to set the java heap size, -Xmx1000m, lower than the default 1000 to get it to work.  I set the HADOOP_HEAPSIZE var in the conf/hadoop-env.sh dir to the lower value, but hadoop continued … Continue reading

Posted in Code, Linux | Tagged | 2 Comments