jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2017/01/11/using-haversine-formula-drupal-7.

Here's a link to the article: https://www.newmediadenver.com/blog/using-haversine-formula-drupal7

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2012/08/27/useful-drupal-module-stage-drupal-proxy.

Here's a useful module that I keep forgetting the name of, so I wanted to note it down: Stage File Proxy. It's not something you use for a live site, it's something you use while developing.

The basic idea is this: you're working on a site that's since gone live, making changes for the client. It's easy enough to get a copy of the database, but the files can be a pain to keep replacing, interlacing test files with live images. Stage File Proxy fixes this by snooping in on imagecache and, when a file is missing, then it grabs it off of the live site, copies it to the local directory, and then you've got the file locally and all your imagecache files get generated for you!

There's a version for six and for seven, and there's no ui for it yet, although there is a patch for it. Then again, once you've got the simple settings done, you don't need to worry about them again!

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/11/18/drupal-7-and-jquery-cookie-plugin.

Here's a quick snippet I just found out today: The jquery cookie plugin is presented as part of Drupal 7. This is really cool and useful, but I must note that it's not automatically included on every page load, so you'll want to include it if you want to use it, and as well it doesn't seem to actually be documented anywhere on drupal.org.

Happily, the original documentation for the plugin is at https://github.com/carhartl/jquery-cookie/blob/master/README.rdoc, and is pretty good, although I suggest reading it through at least twice, as at first I missed that you can read, as well as set, cookies with this. Basically the parameters are the cookie name, the cookie value, and then an options object which says the expiration, the path, the domain, and such. Note that the expiration can _either_ be a date, or a number of days.

Hopefully this will help other folks out with using the jquery cookie plugin with Drupal 7.

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/07/12/multigrid-webform-component.

(I originally wrote this for G+, but since it's long enough, I'm making it a blog post too.)

So, I'm making a new component for webform in Drupal, called 'Multigrid'. It's based on the grid component, which if you don't remember it, allows you to define a set of common options (like, neutral, dislike, hate beyond rational thought) and define a set of questions, and then it sets up a grid of radio buttons, where the answers are across the top and the questions go along the left side.

If you're picturing the online survey you filled out recently in the mistaken hope that you might win $500 after eating at sit-down-chain-restaurant-326, then that's pretty much it.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/06/13/no-drupalcamp-la-year.

I really like Drupalcamp LA. It was a bit of a whim, the first time I went out there, but I went and had a blast. Not only did I get to enjoy Drupal with different folks than I saw at home, but I also got to spend a little time with my brother, who lives there.

Well, near there. LA's kind of a big place.

I've gotten a notice about this year's DrupalCamp LA, and it sounds cool, but this year I'm not going to be able to go, with the baby arriving sometime in August. Sorry guys!

Hopefully I'll get to go out next year. Maybe I'll bring along the kid.

Does anyone know how to use drush to quiet a crying baby? :)

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/06/12/drupalcamp-colorado-2011-success.

It's been a very long week to me leading up to Drupal Camp Colorado, but it's been a successful and satisfying one. Over the weekend I complained a few times at people not to let me run three presentations, but honestly, I loved it! Really, I quite like standing in front of folks and trying to teach them something I'm passionate about, and I was lucky enough to do it three times. I may not get to do that again, really - with the way the Drupal community is growing these days in Colorado, more and more people will be available to step up and help out with sessions like this.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/05/29/late-may-usually-nice.

Things are going really well with the baby. Wednesday, Tammy went in for another ultrasound, where they determined that everything they could see is definitely a-ok, and that in another three months we'll have a baby girl to enjoy. Since she had to take the afternoon off to go to the doctor, she headed up to Boulder, where I'd been working for almost two months, to join me.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/05/13/drupal-7-if-new-fieldinstance-isnt-working.

Something useful sounding from #drupal-colorado:

<cyberswat> drush php-eval '_field_info_collate_fields(TRUE); _field_info_collate_fields()' ... arrrrrggggghhhh /me curses loudly
<cyberswat> should never have to run that
<cyberswat> c4rl: if you ever have an instance where your installing new fields and instances and every piece of code tells you that everything worked from the update hook but you still don't see the instance then run the above
<cyberswat> that took between 4:00am and now to figure out

<cyberswat> for some reason field_cache_clear(); in field_create_instance() didn't do the above as it should have
<cyberswat> field_read_instances() reads from the db not cache
<cyberswat> so when your drush_print_r ing away you'll see wrong information telling you everything is golden

This sounds like an important thing to remember.

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/03/11/drupalcon-chicago-over-quite-happy.

Well, I'm finally home after a week-long trip to Drupalcon Chicago, where it was revealed that the next North American Drupalcon will be right here in Denver!

I had a great trip, making some contacts with various companies and keeping my hand in on what's going on in Drupal. Coming home got a little funky with a missed flight, but even that was overcome and I'm finally back at home.

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/02/26/compiling-git.

So, I like working on Drupal in virtual machines, and my favorite is to use Ubuntu 8.04, because it's got PHP 5.2.x, which Drupal 6 works with better than it does PHP 5.3.x. Unfortunately, the git that Ubuntu provides us with is from 1.5.x, which doesn't allow use of git clone --branch. And the git
instructions seem to require those. What to do? Happily, you can compile git yourself:

  1. First, get rid of git if you've already installed it - sudo apt-get remove git-core should do that.
  2. apt-get install build-essential
  3. Download the latest version of git. http://kernel.org/pub/software/scm/git/git-1.7.4.1.tar.bz2 works currently.
  4. sudo apt-get build-dep git-core
  5. tar xjf git-1.7.4.1.tar.bz2 (or whichever version you downloaded)
  6. Change directive into the new directory.
  7. ./configure
  8. make
Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/12/30/migratefieldhandler-link-module.

I continue my work with the Migrate Module, and recently ran into needing to migrate a value to the Link Module. If you haven't gotten into it yet, Migrate generally expects other modules to handle migrating special bits for nodes, except for the CCK module, and that's included both (I think) because it's in D7 core and because it's so bloody common. Field-specific handling is dealt with by implementing a MigrateFieldHandler, which basically sets up the arrays properly. Again, migrate comes with a number of MigrateFieldHandler classes for the core cck fields, but not for custom CCK fields, like Link.

So, having recently run into a link field I needed to migrate, this is a first swing attempt at handling it. Do note that any module that includes this class will need the Migrate api hook that I discussed in my last post, and also note that I intend on including this fix in the next release of the Link module.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/12/29/upgrade-note-going-migrate-6x-20-beta2-6x-20-beta3.

I'm currently in the midst of setting up a migration from a pretty huge MS SQL database to Drupal, in D6. This migration not only involves Microsoft SQL Server, as I mentioned, but it also involves using mongodb, so we're basically touching three different databases here.

So, I've been using the 2.0 branch of Migrate for 6.x, because I was curious about seeing it again, and I know it worked quite well for Examiner. (Yes, they were doing Drupal 7, but it was still the same basic idea.) It's been going very well.

Today I updated to the 6.x-2.0-beta3 version of the code, and I had to make a couple small changes to my existing module. I'm reproducing them here, in hopes that it can prevent others from having trouble like I did.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/07/28/magic-command-invocation-drush.

I've recently been digging into the Aegir Hosting System, both because we're starting to use it at my current NREL gig, and because I've proposed to do a session on it at DrupalCamp LA. In short, Aegir allows you to easily administer a number of Drupal sites from a common site, itself built on Drupal. It's really slick, and a lot of the functionality is built on Drush. (Also see http://drupal.org/project/drush .)

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/06/28/dcco10-code-and-presentation-building-solr-search.

Here's where I'm posting the various files that I promised to deliver - these are the files I used in my DrupalCamp Colorado 2010 presenation on extending Solr.

jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/04/20/drupalcon-sf-session-context-purl-spaces.

Talk given by Young Hahn - @younghahn on twitter.

This is a talk that focuses on three modules that were developed as part of Open Atrium.

Context triggers reactive behaviors on pages.

Basically, in the past putting content all on the same page was a pain. You have a snippet, say, that says 'This bit should show on blog pages', and you've got it spread throughout your site in half a dozen places. Context replaces this by having a system that asks 'are we in the blog section?'. There's also things like a global context, or a login context. (such as when an anonymous user is browsing).

Context is basically an additive system - a page can be in the global context, the blog section context, and the blog post context.

Note to self - do we need a page that lists all the blogs under all of their contexts for easier display?

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/04/19/drupalcon-sf-first-day-thoughts.

The sheer size of Drupal, and of DrupalconSF, was brought rudely to your attention as you walked into exhibit hall A, which looked to be about the size of room you would need to store a few decently sized airplanes, and saw the rows and rows of chairs set out for people to sit back and hear Dries talk about the State of Drupal.

In short, he thinks it's doing pretty good.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/04/10/drupalcon-sf-preparation.

Today is exactly one week before I leave for San Francisco for Drupalcon, and so I decided I needed to go by MicroCenter and pick up a few supplies.

For one, when I'd been typing up some notes in Open Atrium the other day, my house's power blinked, and my computer shut down, and restarted. I almost had a heart attack, and the waited on the edge of my seat to see if the browser (Google Chrome) would somehow magically remember what I'd been typing. Happily it had, and I quickly saved the entry before finishing it up. But that really taught me that I need to have a UPS if I"m working from home.

For two, my KVM switch had been dying slowly recently and this morning it had taken three successive restarts of my computer for the switch to work. That was pretty much the end of the line for me - I suspect that's why it wasn't working with my Mac recently either.

Read more... )

ie6 Funeral

Mar. 5th, 2010 08:42 am
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2010/03/05/ie6-funeral.

So, last night here in Denver was the original ie6Funeral party, and I showed up. There was a lot of booze, a lot of really tasty snacks - Forest Room 5 did a fine job there - and finally, there were remembrances. And here's the one I came up with:

Now, there's a bunch of others that my friend Matthew Saunders posted on his blog, so if you want to see more about the funeral, and see a picture of the deceased, I suggest heading there. It was a lot of fun.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2009/11/20/firehousecom-launched-drupal.

Firehouse.com, the last major project I worked on with pingVision, has now been officially launched! I worked as lead developer on this project with the able assistance of Matthew Saunders & Elizabeth Hause on the web producing side; and Ben Jeavons, Matt Tucker, Al Stephen, Kevin Bridges and Zach Meyer on the development and theming side.

Firehouse is a large site which includes articles of fires and fire-handling topics, pages for each fire station who wants to be hosted there, photographs of stations and fire equipment submitted by users, editorial cartoons on the firefighting life, Webinars, an online store for buying subscriptions to the magazine, and even A digital copy of their magazine, month by month, and probably some other stuff I'm not even remembering. Oh, and some blogging, too.

I'll probably work up more of a 'this is how we done it' post later, right now I'm basking in the glow of success.

Read more... )
jcfiala: (Default)

This is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2009/10/04/freelancing-early-days.

A little over three weeks ago i set into motion my big gamble - stepping away from pingVision, and starting life as a freelance consultant. I'm not really able to go into all of the reasons, but partially it's a test - can I go out on my own and find my own way, without a company supporting what I do?

And, so far it's launched very nicely. My first client has been SpireMedia, here in downtown Denver, where I've been assisting them with an ubercart site with a large number of customizations, starting with working in three currencies and custom shipping costs, moving all the way to some interesting ways of presenting and offering discounts... which have already lead to one patch for uc_discounts_alt, and probably leading to more later.

Read more... )

October 2020

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 12th, 2025 09:30 pm
Powered by Dreamwidth Studios