IQSS logo

IRC log for #dvn, 2012-12-12

We've moved! Please join #dataverse instead. The new logs are at http://irclog.iq.harvard.edu/dataverse/today

| Channels | #dvn index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
13:09 pdurbin i made a ticket for Shibboleth support for DVN: https://redmine.hmdc.harvard.edu/issues/2657
13:10 pdurbin i know a guy who uses shibboleth and he's sending me some links at http://irclog.perlgeek.de/crimsonfu/2012-12-12#i_6235477
13:11 pdurbin here they are:
13:11 pdurbin https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPJavaInstall
13:11 pdurbin https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPLinuxInstall
13:11 pdurbin https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPGettingStarted
13:28 pdurbin SP is "service provider" according to https://wiki.shibboleth.net/confluence/display/SHIB2/Glossary
13:31 pdurbin Shib-Friendly Glassfish - Setting up Glassfish to use Apache so you can use the Shibboleth SP in front of your Java Apps - https://wiki.umn.edu/Main/Glassfish3ApplicationServerOnUbuntuServer10_04LTS
13:31 pdurbin via https://wiki.umn.edu/ShibAuth/ApplicationGuides
13:34 pdurbin Cloud Security: SAML, Shibboleth and Securing REST API for public cloud | Art of Software Engineering - http://eugenedvorkin.com/cloud-security-saml-shibboleth-and-securing-rest-api-for-public-cloud/
13:54 pdurbin cool. i had mentioned yesterday that i'd like to get our `install-dev` script working as non-root: http://irclog.iq.harvard.edu/dvn/2012-12-11#i_61
13:54 pdurbin and it's working now
13:57 pdurbin the main thing that wasn't working was all the `psql` commands... this is because i installed postgresql with homebrew (`brew install postgresql` as i mentioned yesterday)
13:58 pdurbin the psql commands were failing with 'psql: FATAL:  database "pdurbin" does not exist'
13:59 pdurbin i was getting this error because "By default PostgreSQL attempts to log you into a database that is the same as your username.  However, it does not setup this database for you" as explained at http://www.revsys.com/blog/2007/may/16/common-postgresql-problem/
13:59 pdurbin so i added "template1" to the psql commands
14:00 pdurbin if (!system ($psql_exec . "/psql -c 'SELECT * FROM pg_roles' > /dev/null 2>&1"))
14:00 pdurbin becomes
14:00 pdurbin if (!system ($psql_exec . "/psql template1 -c 'SELECT * FROM pg_roles' > /dev/null 2>&1"))
14:00 pdurbin for example
14:01 pdurbin let me explain how i installed postgresql via homebrew...
14:01 pdurbin git clone https://github.com/mxcl/homebrew.git ~/.homebrew
14:01 pdurbin ~/.homebrew/bin/brew install postgresql
14:03 pdurbin ~/.homebrew/bin/initdb /Users/pdurbin/.homebrew/var/postgres -E utf8
14:04 pdurbin ~/.homebrew/bin/pg_ctl -D /Users/pdurbin/.homebrew/var/postgres -l /Users/pdurbin/.homebrew/var/postgres/server.log start
14:05 pdurbin that's pretty much it
14:05 pdurbin when i installed postgres it gave some instructions on how to start postgres at login, but i haven't done that yet...
14:06 pdurbin they say to do it this way:
14:06 pdurbin mkdir -p ~/Library/LaunchAgents
14:06 pdurbin cp /Users/pdurbin/.homebrew/Cellar/postgres​ql/9.2.2/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
14:06 pdurbin launchctl load -w ~/Library/LaunchAgents/home​brew.mxcl.postgresql.plist
14:07 pdurbin oh, and here
14:07 pdurbin is how to stop postgres, they say:
14:07 pdurbin pg_ctl -D /Users/pdurbin/.homebrew/var/postgres stop -s -m fast
14:08 pdurbin anyway, for me, the advantage of installing postgres via homebrew is that everything is contained within my home directory.... i can easily rm -rf ~/.homebrew and start over if i need to
14:18 pdurbin oh, since i'm using a newer version of postgres (9.2 instead of 9.1), i also downloaded a new jar and added this: my $POSTGRES_DRIVER_9_2 = "postgresql-9.2-1002.jdbc4.jar"
14:19 pdurbin for some reason... the "run project" button is grayed out in netbeans... i'm not sure why...
14:21 pdurbin oh, i see... when i go to quit netbeans it says "Exiting the IDE will terminate the following process: Process - DVN-web (run)"
14:22 pdurbin i'm sure this is because i had started glassfish outside of netbeans with this, per our install script's instructions: /Applications/NetBeans/gla​ssfish-3.1.2.2/bin/asadmin start-domain domain1
14:28 pdurbin interesting... Window -> Processes is grayed out too...
14:29 pdurbin huh. and now the run button is clickable again... even though i didn't quit netbeans
14:30 pdurbin nice. clicked it and it works. http://localhost:8080/dvn/ opened up and i can log in as networkAdmin
14:32 pdurbin so, my dev environment seems to be set up. again, the main difference from the official developer's guide at http://guides.thedata.org is that i installed postgres on this mac with homebrew and i tweaked the installer script a bit so i don't have to run it as root
19:15 lexberman joined #dvn
19:16 pdurbin lexberman: welcome! :)
19:18 lexberman hi phil
19:19 pdurbin please tell me a story about solr
19:20 lexberman solr is backend for http://opengeoportal.org/  developer is Dave Siegel
19:21 pdurbin ah yes, i see his smiling face there. thanks
19:22 lexberman also Matt Bertrand worked on Solr with http://metalab.harvard.edu/ people
19:22 pdurbin http://code.google.com/p/opengeoportal/wiki/Solr
19:23 lexberman phil, do you know why i get a warn from Nickserv saying lexberman is not registered nickname?
19:23 pdurbin lexberman: here's the ticket for adding solr to dvn: https://redmine.hmdc.harvard.edu/issues/2656
19:26 lexberman about solr, you should have lunch or something with Dave.   opengeoportal indexes millions of features.   and I think he is scraping the Metacarta catalog geocoding into solr too:  http://sanger.hul.harvard.edu:8080/geohollis  which is about 1 million records
19:26 pdurbin yeah, i really should
19:27 pdurbin this post talks about splitting solr across multiple machines: http://opengeoportal.org/archives/185
19:29 pdurbin sent him an email
21:41 pdurbin i'm at the abcd-www meeting talking to a guy from the MIT Libraries who used to be at Ohio State University. he speaks very highly of shibboleth
22:48 lexberman left #dvn

| Channels | #dvn index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

We've moved! Please join #dataverse instead. The new logs are at http://irclog.iq.harvard.edu/dataverse/today