Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Joe Hourcle

On Wed, 30 Jul 2008, Tim Spalding wrote:


I'd consider teaching them how to use SQL directly.

I've done it at LibraryThing. I take employees from the simplest
SELECTs all the way to a people-who-have-X-also-have-Y self-join in
one long hands-on lesson. It doubles as a sort of test, and I've even
used it in hiring. LibraryThing's two full-time librarians got there
with flying colors; I've had programmers who stumbled. (Not
surprisingly they didn't work out.) Once someone understands SQL
itself, you can throw a helper, like PMA, at them too.

I think there's a real opportunity for empowerment here. Teach a man
to SELECT and he'll never have to, um, fish again.


This might be okay with SELECT*, but I'm not so sure about giving users 
unfamiliar with SQL access to DELETE and UPDATE, which seemed to be part 
of the original request.  All it takes is one user forgetting a WHERE 
clause or mixing up a column as part of a  condition, and the UPDATE 
corrupts the whole system.


Hell, I've even done it myself.

And I've found out the hard way that using MS Access to access MySQL via 
ODBC that the 'queries' are NOT materialized views, as I had been informed 
by my boss, and had to recover from the previous night's backup and 
manually apply all of that day's records.


...

* SELECT isn't always safe, either.  When they're badly written (use the 
wrong indices or the wrong type of join) they can start causing 
performance issues for everything else using the database as they consume 
cpu and memory or cause unnecessary disk IO.


-
Joe Hourcle


Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread andrew . hankinson
The Django framework's Administration interface is pretty good for doing
quick database work, and it's highly customizable.  It also does very basic
database introspection on existing databases to help get you set up.
-Andrew

On Wed, Jul 30, 2008 at 11:28 AM, Ken Irwin [EMAIL PROTECTED] wrote:

 Shawn Boyette ☠ wrote:

 I don't think he was asking about *programmers* creating or modifying
 *schema*.


 It's true -- I just want a simple little data entry tool (which I've got
 now! That was easy.)

 I've been doing all of my development by hand, without the luxury of
 frameworks, not out of any programmerly virtue, but just out of simplicity
 -- ie, I've not taken the time to learn about frameworks. It sure would be
 nice to take the time at some point, and I'll keep Tim's injunctions about
 abstraction in mind when I do.

 *thanks and joy*
 Ken

  On Wed, Jul 30, 2008 at 11:07 AM, Tim Spalding [EMAIL PROTECTED]
 wrote:


 This gets religious quickly, but, in my experience, programmers who
 learn on a framework miss out on their understanding of database
 necessities. They may not matter much when you have a low-traffic,
 low-content situation, but as your traffic and data grow you're going
 to want an understanding of how MySQL optimizes queries, what's
 expensive and what's not, and so forth. Although anyone can learn
 anything, experience is the best teacher, and, in my experience,
 frameworks encourage you to avoid that experience.

 For example, the Ruby programmers I've worked with have been unaware
 that MySQL only uses one index per table per select, causing them to
 index far more than they need, how joins work across different MySQL
 data types, the advantages of ganging your inserts together, etc. This
 stuff adds up fast.

 Of course, the same arguments could be leveled against PHP in favor of
 C, against C in favor of assembly, etc.. Abstraction always has merits
 and demerits.

 Tim




 --
 Ken Irwin
 Reference Librarian
 Thomas Library, Wittenberg University



Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Tim Shearer

Hi All,

It ain't free, but there's a lovely client for mysql called navicat 
(http://www.navicat.com/) that we've been using.  And even though I *can* 
do command line queries, gotta say I love pulling lines between tables to 
set them up.  It's not too expensive and I find that for light to medium 
weight stuff it's fun and easy to use.


-t


On Wed, 30 Jul 2008, Eric Lease Morgan wrote:


On Jul 30, 2008, at 1:47 PM, Cloutman, David wrote:


Perhaps you should put together some MySQL training materials for
librarians. A webinar, perhaps. I'd love it if my colleagues had those
skills. I don't think there is that much interest, but I could be wrong.
There are at least 101 ways enterprise level database skills could be
put to work in my library. I'm pretty sick of our core technical
solutions being Excel spreadsheets and the occasional Access database.
Blech.




Tell me about it, and besides, basic SQL is not any more difficult than CCL. 
SELECT this FROM that WHERE field LIKE %foo%  Moreover, IMHO, relational 
databases are the technological bread  butter of librarianship these days. 
Blissful ignorance does the profession little good.


--
Eric Lease Morgan
Hesburgh Libraries, University of Notre Dame


Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Tim Spalding
It bears repeating that many library standards, notably MARC, are
essentially non-relational and non-normalized. Fully normalized
relational databases aren't an obvious idea if you're never been
exposed to them—and something like a religious revelation once you
have. Whether or not SQL is a useful skill for librarians and library
staff, the meme is worth spreading. Maybe we could put it in the
water.

T

On Wed, Jul 30, 2008 at 1:53 PM, Eric Lease Morgan [EMAIL PROTECTED] wrote:
 On Jul 30, 2008, at 1:47 PM, Cloutman, David wrote:

 Perhaps you should put together some MySQL training materials for
 librarians. A webinar, perhaps. I'd love it if my colleagues had those
 skills. I don't think there is that much interest, but I could be wrong.
 There are at least 101 ways enterprise level database skills could be
 put to work in my library. I'm pretty sick of our core technical
 solutions being Excel spreadsheets and the occasional Access database.
 Blech.



 Tell me about it, and besides, basic SQL is not any more difficult than CCL.
 SELECT this FROM that WHERE field LIKE %foo%  Moreover, IMHO, relational
 databases are the technological bread  butter of librarianship these days.
 Blissful ignorance does the profession little good.

 --
 Eric Lease Morgan
 Hesburgh Libraries, University of Notre Dame




-- 
Check out my library at http://www.librarything.com/profile/timspalding


Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Susan Rector
We use an ODBC link as we can control the rights at the MySQL level like 
Tobin mentions below

Susan


Tobin Cataldo wrote:
We have been using MS Access linked through MyODBC. The user's rights 
are according to the permissions in the MySQL user table.


Tobin


Ken Irwin wrote:

Hi folks,

I have some straightforward MySQL data tables that I would like to be 
editable by some of my less-techy colleagues. I tend to think of 
phpMyAdmin as a perfectly serviceable and reasonably interface for 
updating database tables, but I'm told that it's kind of intimidating 
to the uninitiated.


Are there alternatives that are meant for non-admin-types? I'd want 
something with read/write permissions, but that could be targeted at 
just a few tables, wouldn't have any of the more potent tools (drop, 
empty, etc.). In the ideal world, I might like something that would 
prevent users from doing things like accidentally changing primary 
key data and things like that.


I've thought about writing something, but I suspect that would be 
reinventing the wheel. Any ideas?


Thanks,
Ken



Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Tim Spalding
That's definitely true. One cartesian query can ruin your day...

On Thu, Jul 31, 2008 at 1:22 PM, John Fereira [EMAIL PROTECTED] wrote:
 Tim Spalding wrote:

 I'd consider teaching them how to use SQL directly.

 I've done it at LibraryThing. I take employees from the simplest
 SELECTs all the way to a people-who-have-X-also-have-Y self-join in
 one long hands-on lesson. It doubles as a sort of test, and I've even
 used it in hiring. LibraryThing's two full-time librarians got there
 with flying colors; I've had programmers who stumbled. (Not
 surprisingly they didn't work out.) Once someone understands SQL
 itself, you can throw a helper, like PMA, at them too.

 I think there's a real opportunity for empowerment here. Teach a man
 to SELECT and he'll never have to, um, fish again.

 Define understand SQL.  I can't help but be concerned about the adage
 knows just enough to be dangerous.  I've seen some systems brought to
 their knees in terms of performance as a result of a couple of poorly
 constructed queries.




-- 
Check out my library at http://www.librarything.com/profile/timspalding


Re: [CODE4LIB] what's friendlier less powerful than phpMyAdmin?

2008-08-10 Thread Alex Dolski
Despite their repeated pleadings, I just can't afford to let my 
colleagues learn SQL, Tim. I have to take every opportunity to hide the 
knowledge from them. I've found that developing simple, easy-to-use 
front-ends to complex internal systems here in the library is a good way 
to keep them dumb and happy. These library school loans are not going to 
pay off themselves, so I figure as long as I can shroud the command-line 
utopia from their sight, I'll be relatively safe. Once they start 
picking up on the joy of SQL -- and I pray that day never comes -- I 
will be out on the street.


Alex


Tim Spalding wrote:

That reminds me of a better idea. Let's keep a real understanding of
computers from less-techy colleagues at the library. That way no
messy learning or understanding will take place, and we'll always be
needed.

Then we could start wearing white colors...

T

On Wed, Jul 30, 2008 at 11:43 AM, Alex Dolski [EMAIL PROTECTED] wrote:

That reminds me of an idea for a photo sharing website I had, tentatively
called LeftOutrJoinr. It would be like Flickr, but instead of pictures
everywhere, visitors would be given a command line into which they would be
able to enter their own SQL queries to call up photos to appear on the page
via AJAX. I see it becoming quite popular among 3-5 people.

Alex


Tim Spalding wrote:

I'd consider teaching them how to use SQL directly.

I've done it at LibraryThing. I take employees from the simplest
SELECTs all the way to a people-who-have-X-also-have-Y self-join in
one long hands-on lesson. It doubles as a sort of test, and I've even
used it in hiring. LibraryThing's two full-time librarians got there
with flying colors; I've had programmers who stumbled. (Not
surprisingly they didn't work out.) Once someone understands SQL
itself, you can throw a helper, like PMA, at them too.

I think there's a real opportunity for empowerment here. Teach a man
to SELECT and he'll never have to, um, fish again.

Tim

On Wed, Jul 30, 2008 at 9:58 AM, Tim McGeary [EMAIL PROTECTED] wrote:

I use Webmin.  http://www.webmin.com/
It gives me a GUI for all of my vital sysadmin needs that I can't
remember
how to do at the shell.

It has a MySQL GUI interface that works very well.  And you can setup
user
accounts to have access to certain parts of Webmin, like just MySQL.

Easy RPM install, and inside Webmin is an app to upgrade itself.  Can
also
install Perl modules, edit your php.ini file, etc.

Cheers,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Ken Irwin wrote:

Hi folks,

I have some straightforward MySQL data tables that I would like to be
editable by some of my less-techy colleagues. I tend to think of
phpMyAdmin
as a perfectly serviceable and reasonably interface for updating
database
tables, but I'm told that it's kind of intimidating to the uninitiated.

Are there alternatives that are meant for non-admin-types? I'd want
something with read/write permissions, but that could be targeted at
just a
few tables, wouldn't have any of the more potent tools (drop, empty,
etc.).
In the ideal world, I might like something that would prevent users from
doing things like accidentally changing primary key data and things like
that.

I've thought about writing something, but I suspect that would be
reinventing the wheel. Any ideas?

Thanks,
Ken






--
Alex A. Dolski
Web  Digitization Application Developer
Lied Library, University of Nevada, Las Vegas
4505 S. Maryland Parkway, Box 457041
Las Vegas, NV 89154-7041
(702) 895-2225 (phone) / (702) 895-2280 (fax)








--
Alex A. Dolski
Web  Digitization Application Developer
Lied Library, University of Nevada, Las Vegas
4505 S. Maryland Parkway, Box 457041
Las Vegas, NV 89154-7041
(702) 895-2225 (phone) / (702) 895-2280 (fax)


Re: [CODE4LIB] [Web4lib] A million free covers, from LibraryThing

2008-08-10 Thread Lars Aronsson
Thomas Dowling wrote:

 Contrariwise, Wikipedia includes book and DVD covers and movie 
 posters, with a pretty verbose explanation of why they think 
 they're allowed to do so (see for example 
 http://en.wikipedia.org/wiki/Image:StarWarsMoviePoster1977.jpg).
 
 I guess they just define their use as allowed and wait for 
 someone to challenge them on it?

This is what the *English language* Wikipedia does.  Normally, all 
pictures in Wikipedia are uploaded to Wikimedia Commons, from 
where they can be shared by all languages of the free 
encyclopedia.  But Wikimedia Commons doesn't accept pictures under 
fair use, they must be under a free license (or in the public 
domain).  That's why these posters and cover images are only 
uploaded to the English Wikipedia, and do not appear on other 
major languages of Wikipedia.

Some users want the stricter rule introduced on the English 
Wikipedia as well, since these images are not free and can only 
be used legally in countries with a fair use exception in their 
copyright law.  It is a major issue of discussion.

For the image http://en.wikipedia.org/wiki/Image:Mark_Twain.jpg
you will see the text This is a file from the Wikimedia Commons. 
The description on its description page there is shown below, 
which doesn't appear for that Star Wars movie poster.


-- 
  Lars Aronsson ([EMAIL PROTECTED])
  Aronsson Datateknik - http://aronsson.se