Central NJ Drupal meetup February 10

Events happening in the community are now at Drupal community events on www.drupal.org.
pwolanin's picture
Start: 
2010-02-10 19:00 - 21:00 America/New_York
Organizers: 
Event type: 
User group meeting

Proposed focus:

Active coding and mutual assistance on code, themes, and other technical issues. Come get input or help from fellow Drupal users. Show everyone your code or talk about the challenges you are facing. After initial discussion, work in smaller groups including one focused on tacking one or more Drupal 7 bugs.

Location:

Institute for Advanced Study
Bloomberg Hall
1 Einstein Drive
Princeton, NJ 08540
(we are marked on Google maps)

IAS is very near Princeton University. See here - http://www.ias.edu/about/directions - for directions and a campus map. Signs will be posted with the room assignment. It will most likely be the same conference room we usually use.

Comments

To anyone interested in

davidhernandez's picture

To anyone interested in getting help, please post what projects you are working on and some specifics about what you need help with. This will help others prepare, possibly with examples or code snippets.

jshepherd's picture

I discussed my primary (and frist) project with subsets of people from the last two meetings. Basically, users sign onto the site, provide some personal information to convince that they are eligible to vote, I add them to a role that is allowed to submit on a webform. The webform is configured to allow only one submission per account. so far, so very good. I got this far with no manual coding. I decided at the end of the next meeting that I would tackle the next item with a customized module. So far, I have only given it a little more thought. I should have some time between now and the next meeting to consider it further. Here is the situation: In addition to being validated as eligible to vote to begin with, there are variable elements of the account holder that might make her or him ineligible for voting. Most likely situation is that two account holders own the same property. Each property is eligible for one vote. If homeowner A has submitted a vote, homeonwer B should be disallowed for also submitting a vote for the same property. Ideally, homeowner B gets this bad news before going through the steps of voting. Another scenario is that the homeowner is delinquent in the payment of dues. That seems a little more straightforward so long as there is a place prepared to indicate this information.

I have learned that it is quite trivial to add information from the user's profile to the submitted webform. I think comparing, in a running process, the identifier of the voter's property against the list of properties that have already cast a vote should do it. Would I then direct the voter to a specific page explaining their property has already voted?

I will keep plugging at this. Hopefully not too much meeting time will be needed.

Local Installation on Windows

jshepherd's picture

I am also struggling with making a local installation on Windows. I used apache2triad to begin with and had it working just fine. It has been some time now, but I believe what happened is I attempted to upgrade PHP from a 4.x versio to 5.x Have not recovered since.

I am tempted to de-install apache2triad and try again fresh with separate installs of Apache, MySQL and PHP. Is this appropriate for the group meeting, or should it be simple enough I should just press on alone? I have little prior experience with installing/configuring AMP on any platform....

Thanks!
John

DAMP option

Just RSVP'd. Is there a way

elijah lynn's picture

Just RSVP'd.

Is there a way we can see the list of RSVP's like on Meetup.com?

I love the proposed focus

elijah lynn's picture

I love the proposed focus Peter! Sounds like fun, I will bring my laptop this time. I also have enough experience to help beginners get up and running, so if you are a beginner and want to start from scratch just let me know and I will help you get started.

How to automate deployment of settings/data

pritamraut's picture

I would like to have a discussion around what the best practices are for automating packaging/deployment of settings in Drupal.

Issue: At work we have various Dev Integration and QA environements used for integrating and testing changes made to products by multiple developers. Here is our current Software Development process (for mostly .Net code).
* Developers make changes to source code on their machines
* Check in the change in Subversion
* Continuos Integration process (CC.Net) triggers a build that compiles the code and packages the required files
* Package is deployed by XCopy on Dev and QA environments.

In case of Drupal, since most of changes are settings that are stored in database, we are not making changes to source code in many cases.

How do we package this configuration data so it can be deployed to various locations using script?

E.g. If I define a new content type (mypage) with various custom fields. Here Drupal is creating tables and entering the data into some existing tables. I did not change any source code. How do I package this change?

Thanks.

a few common approaches

pwolanin's picture

We discussed this previously in regards, for example, to Views where you can make changes in the UI and then export to code. See: http://groups.drupal.org/node/26003#comment-91940

For other settings, a typical best practice is to create update functions so you can test in your development environment updating from your live DB. The easy case is calling variable_set() to change simple settings that you would enter on a settings form. You can also but creation or updates to content types in update functions.

For example, some of the functions from http://drupal.org/project/install_profile_api can be used to import content types.

People recently have been using the Features module to manage some of this, but my experience with it has been mixed.

In general, the approach is to use a (scrubbed) version of the live DB, bring that into the development environment, and then use code to make any needed updates or configuration changes and test those changes. Or, for more trivial changes, test them in the development environment and then make them manually on the live site.

Great response

jrockowitz's picture

An additional module that helps you store variable settings in code is strongarm.
http://drupal.org/project/strongarm

This module is also used with features but works great as a stand alone.

I am using it to stop admins from making changes to things they should not be touching.

-jake

Other approach

hunt3r's picture

I haven't actually tried this yet, but I ran across the DBScripts module, which essentially DIFF's MySQL dumps of your dev and production database and merges the differences.

Another benefit of this approach is theoretically you should be able to leave a production community driven site live while you're developing without fear of content going stale.

http://drupal.org/project/dbscripts

Again, I haven't actually gotten to a point where I have been able to test it, but I'm looking at this as one possible tool for our warchest moving forward.

exporting data structures

danielpacker's picture

hunt3r, are you going to this meetup (NJ)? Would be great to see you again and discuss possible command line tools for automating this kind of thing picking up from our previous discussion. Maybe we can try out the dbscripts and hack around?

Location is confirmed at the

pwolanin's picture

Location is confirmed at the IAS again.

If it's not snowing too bad

aisforaaron's picture

If it's not snowing too bad I'll be there.

Snow is predicted into

pwolanin's picture

Snow is predicted into tomorrow evening - David will have to be the one to make the final call based on whether IAS is open and he can host, but looks likely that we'll have to postpone.

There are meetups in both Philly and northern NJ next week, so we'll have to figure out some non-conflicting make-up date, or just postpone to March.

We'll have to see. There have

davidhernandez's picture

We'll have to see. There have already been discussions here about closing. I think if there is a significant snow fall we just should cancel; postponing until March sounds best.

IAS is closed today so we'll

davidhernandez's picture

IAS is closed today so we'll have to postpone.

Rescheduled -

Drupal Princeton Meetup - March 3rd

elijah lynn's picture

http://groups.drupal.org/node/50378

As David posted above. Hopefully this will reach everyone as a reminder via email.