DTLA Re-Gifting

A neat thing about raffle prizes at Drupal meetups is the community aspect. Sometimes you win a prize for which you have no use and can give it back for use at another meetup.

This happened to me a couple months ago at the Downtown L.A. Drupal meetup. I won some online design-related training that I couldn’t use. I passed it on, and I suppose someone at the LA Drupal meetup received it.

Challenge Accepted (or: Migrating Site to Drupal 7)

If you’ve viewed source on my site or followed me on Twitter, you’ve noticed something strange: I’m a Drupal Developer, but my site runs WordPress. What the heck!?

A certain tweeter also implied that this site would be too hard to do in Drupal.

Well, paying respect to the old Wild West…them’s fightin’ words!

First, the backstory: This site was set up before I specialized in Drupal. Once I specialized in Drupal, I got too busy to convert it! Until now.

I don’t want any more tweets like that, so I’m aiming to convert it before or during DrupalCon London.

Stay tuned for updates!

Drupal Camp Sacramento Area 2011 Conference Report

This weekend, I attended the first DrupalCamp in the Sacramento, California area. It happened to be held in Davis, a location which worked for me.

Some of you might know that I was talking about taking Amtrak’s Coast Starlight up to the Bay Area. I indeed did. Here’s some pictures: (flickr link coming soon; I have to upload the pictures).

But as for the camp itself, it’s best to break it down into the sessions I attended and then give my overall impressions.

Day 1

As every attendee certainly did, I started off my day listening to Nate Haug (@quicksketch)’s keynote speech. He talked about the community, contributing, contributing productively, collaboration, and the care shown to community members. It was a good start. After that, I went to my first session.

10-11:30: VoIP for Drupal: Turning Drupal into a phone system

The title of this presentation had intrigued me, and I’m glad I checked it out. Adam Kalsey (@akalsey) of Tropo did a fantastic job of demonstrating the VoIP module and how command sets could be sent to phone systems using PHP code.

1:00-2:30 – Using Drupal as an Application Development Platform

This was a neat presentation as well. It was also presented by Adam Kalsey. His thesis was essentially that Drupal is an application development platform that ships with a great CMS as its default implementation. He defended this fairly, outlining many of the subsystems that I indeed deal with regularly.

2:30-4:00 – Building a Distribution using Features, Drush Make, Installation Profiles, and more

Ben Shell gave a fascinating presentation on the topic above. I found this very useful, as it cleared up some questions I had regarding the whole thing. I liked how he spoke a bit about how to get drupal.org to fully package your distribution or installation profile for download!

4:00-5:30 – Streamline your workflow with Fill PDF – fill your PDF templates with your site’s forms

Some dude who came from L.A. gave this one. I think his name was Kevin Kaland or something. Of course it was awesome; would I say otherwise? Fortunately, you don’t have to listen to me; Doug R. Wu has given a brief “str8up” account of the talk. That coupon code expires Monday, by the way.

Day 2

Morning-12 – Code sprint

Saturday ran late for some reason, and I got lost on the way back to campus, so I rolled in around 11 AM. I discovered that no organized code sprint was happening, so I worked more on adding Webform token support to Fill PDF on Drupal 7. This is completed now.

1:00-2:30 – Why Drupal uses hooks, and why you should too

I bumped into that Kevin Kaland guy again at this talk. Something about hooks in Drupal. People liked it or something. (If you blogged about this talk, can you link to it in the comments?)

2:30-4:00 – Know Where The Fire Is (Monitoring Drupal Sites)

I wrapped up my camp with Mike Hathaway’s Nagios talk. It was cool; Nagios is definitely a tool l will have to try some time, along with the Drupal Nagios module of course!

Conclusion

So ended my camp, and so began my transportational journey back…with a new sticker on my laptop!

DrupalCon London 2011 – WizOne Solutions Individual Sponsor Page Now Live!

That link in the other post shouldn’t be showing access denied anymore. They published my sponsor page and are showing Individual Sponsors on the main Sponsors page now!

Here’s the link to my sponsor page: WizOne Solutions DrupalCon 2011 Individual Sponsor Page

I appreciate it, DrupalCon team!

Code Snippet – Open Link in New Window in Drupal 7

Although this is not recommended, I’ve seen the question mentioned in the topic come up a couple times over the last few weeks:

How do I get my links to open in a new window or tab in the user’s browser in Drupal 7?

I’ve heard that the target=”_blank” method is once again valid in HTML 5…however, it will still make your HTML fail validation under other specifications. The way around this is to use JavaScript.

Copy and paste this snippet into the appropriate area of your site – usually a JavaScript file in your theme. When you want to make a link open in a new window or tab, instead of target=_blank, add rel=”external”.

(function ($) {
Drupal.behaviors.externalLink = {
attach: function (context, settings) {
$('a[rel="external"]', context).attr("target", "_blank");
}
}
}(jQuery));

The reason this workaround is OK to use is that it does a little something called separating presentation from behavior. In other words, you aren’t relying on the browser to take a particular action because of the HTML itself; you’re telling it what action to take in the JavaScript.

Presentation on hooks goes primetime!

Just chiming in to express excitement about my presentation on hooks in Drupal (Why Drupal uses hooks, and why you should too) got scheduled for the largest room in the venue! Looks like I’d better be doubly prepared.

Thanks again goes to Oliver Seldman for inviting me to co-present this with him originally and for all the help with the slides and content, especially the simplicity of the presentation. Please give him your money.

Linux sed trick – Remove line from file by number

I wanted to document this before I forgot it. To remove a single line from an existing file with sed, use:

sed -i '[num]d' [filename]

For example, to remove line 1 from ~/.ssh/known_hosts (my exact use case right now), type:

sed -i '1d' ~/.ssh/known_hosts

sed is a neat little tool. I use it to quickly copy and change Apache virtual hosts sometimes as well. I recommend learning a bit about it and its ‘s’ command as well.

P.S. If you don’t use the -i switch, sed will output the result after replacements instead of changing the file. You can pipe (|) this output to other programs or redirect (> or >>) it to a file.

Happy sed…ing.

WizOne Solutions is an Individual Sponsor of DrupalCon London 2011

For some reason, I like sponsoring the Drupal events I attend. Maybe it’s an ethic I’ve picked up in my volunteer work. As a freelancer, I usually don’t have the revenue to be a big sponsor, but I’ve given what I could back to SANDCamp 2011, Drupal Design Camp LA 2011, Drupal Camp Sacramento Area 2011, and now…

I’m an Individual Sponsor of DrupalCon London 2011! (sorry if the link doesn’t work; I think only I can see it. However, take the friendly Access denied message you may receive as proof that the page does exist. It would say Page not found if it didn’t!

It’s curious that I would choose to sponsor an event that I’ve already invested a bunch in, but I think it’s that very reason that motivated me to do so. After all, what’s another £65? I’m happy to be chipping in a bit to bring worthy Drupal contributors to the conference. £65 could probably buy a one-way Ryanair ticket (maybe both ways with some of their prices…) or most of a night at a hotel! Apparently, Individual Sponsors will now also get some props and mentions – but I’ll tell you a secret: despite my Twitter exchanges, I was planning to sponsor even if I didn’t get mentioned for it.

Perhaps it’s just the “spirit of giving” that characterizes the Drupal community and makes it such a powerful product.

New Frontiers – WizOne Solutions Going to DrupalCon London 2011!

I’m pretty surprised myself at what I’ve just written in the title box, but it’s true, and all of the tickets are booked (including the DrupalCon London ticket itself). I’ll be attending my first DrupalCon! Needless to say, I’m quite excited. I’ve been to SANDCamp, which had (correct me if I’m wrong) over 300 attendees. That was the biggest Drupal event I’d been to to date at the time, and it was exciting to meet and see so many people, local and from afar.

I’m expecting to take it to a new level at DrupalCon, which has an estimated attendance of 1,500 people. I can’t even imagine what that’s like. This isn’t only the first DrupalCon I’ve attended; it’s also the first large Con of any kind for me. I’m delighted to make DrupalCon my first (and probably only regular) choice. Looking at the prices of other Cons, DrupalCon really is a steal at under £300 (or under around $500ish in USD).

As usual, if you want to try to chase me down during the Con and ask me a question, feel free. Advice is free if you catch me there! Of course, with so many superior options to choose from, why would you even bother? 🙂 Oh, I know…if you want to talk to someone from California, perhaps I can fit that niche!

See you there?

Attendee Badges for Drupal Camp Sacramento Area 2011 Now Available

Hi DCSA 2011 attendees,

I volunteered to create some attendee badges for the camp. You can put them on your site to show you’re attending and help spark interest in others. Find them here, complete with HTML embed code: Drupal Camp Sacramento Area 2011 Attendee Badges/

Catch me on Twitter @wizonesolutions if you need help or if you encounter issues with the code.