Month: August 2012

Drupal: Group and sort by taxonomy term

For the reclaimyourcity relaunch, we added different categories (via taxonomy) for our picture specials. Now, a view was needed that displayed all special titles grouped by the particular category. And the categories should be sorted by the term’s weight since the category other should be displayed last. The following steps delivered the desired result: 1. First select the required fields of the picture specials, namely Content: Title and Content: special_type which refers to the terms of the corresponding vocabulary. 2. Exclude the special_type from display and in the grid layout settings, set the grouping field to special_type. Now, the picture specials are already

Posted in code Tagged with: , , , , ,

Yosemite: Full moon rising at Sentinel Dome

On our way down from the tunnel view lookout, another hiker told us about a full moon rising hike to Sentinel Dome later this night. Since it was already quite late, we had to make the decision instantly to drive up Glacier Point Road to the meeting point. At first, I was a bit worried about losing our campsite at Summerdale by showing up past midnight. But luckily, my partner convinced me to take the opportunity of this one and only chance to see the sunset and the full moon rising from the tops of the Yosemite peaks. So instead

Posted in see Tagged with: , , , , , , , , ,

Spicy Soy Chorizo Burgers!

Being a big fan of vegetarian protein sources and meat substitutes, the decision to bring home a Soy Chorizo from Trader Joes was quickly made. Especially, since there is nothing similar available in Berlin. And hell yeah, it was worth it! With some left-over quinoa, beans, onions, and half a habanero of last year’s balcony harvest, a spicy burger mix with the rather soft Chorizo was quickly assembled. The Chorizo is indeed quite spicy and the texture is more close to a paste than to a sausage. Its taste is very meaty, a little bit like a very thick bolognese

Posted in eat Tagged with: , , , , , , , ,

Measuring throughput in wireless networks: iperf vs nuttcp

As part of my PhD thesis, I investigate the impact of interference on the network performance in large-scale multi-hop wireless mesh networks. Most experiments are based on throughput measurements to determine the maximum capacity of a link in interference-prone scenarios. iperf has almost become the standard traffic generator for this task in wire line and wireless networks alike. However, control packets to signal the start and end of a traffic flow are exchanged between the two endpoints of the measurements on the same channel that is subject to the measurement. In wireless networks with possible high levels of interference, these

Posted in code Tagged with: , , , , , , ,

Street art alleys in the Mission

While strolling through the Mission district in San Francisco, I visited the famous street art and graffiti alleys – and just in time to see the following new beautiful mural in the making. Seeing so many different styles and artists in one place is pretty impressive. The mixture of surreal and funny characters, political statements, and old school graffiti, tags, and stencils makes you easily wander around for hours. There is also a great book about the murals and their history in the district: Mission Street Art San Francisco: Mission Muralismo. They also have many more pictures of the murals

Posted in see Tagged with: , , , , , ,

Drupal: Tweaking block visibility for content types and URLs

For the relaunch of reclaimyourcity.net, I recently developed a custom pager module that provides a block with links to the previous and next picture according to the particular gallery. The visibility settings for the block are restricted to the content type of the street art pictures. However, the pager also tries to show up on the node add/edit pages which is not very useful there. Based on the posts in this thread about block visibility at drupal.org, adding the following PHP validation prevents the block from showing on the node create/edit pages. <?php $show = TRUE; $url = request_uri(); $hide_on_pages

Posted in code Tagged with: , , , , , ,

San Francisco Food Adventures

Traveling with my partner is always big fun, especially on the food side of life. Since we are both vegetarian, we look around for great places in advance, but she is doing definitely more and better research which usually reveals some great places i would have missed otherwise. Finding awesome vegetarian food in the Bay Area and especially San Francisco is not very hard, and i remembered several places from my last trip 2 years ago. For the first stop, we did not hesitate to decide on La Palma Mexicatessen, a huge place with a small shop in the front

Posted in eat Tagged with: , , , , , , ,

The Grand Walk in San Francisco

One of the things i was excited to do in San Francisco was the Grand Walk. The walk goes all the way from Lands End to Fisherman’s Wharf in 6 miles along the coastline passing the Golden Gate Bridge on the way. The Grand Walk is a combination of a couple of short trails rather than one single hike. Getting to the trail head takes only about 30 minutes by bus from Downtown. Here is a map of the first (and more exciting) half of the walk, going from Lands End to Baker Beach and the batteries. After getting off

Posted in see Tagged with: , , , , ,