btami (~tamas@ip102-205.ktv.tiszanet.hu) joined #gnuenterprise. johannes (~johannes@M1253P027.adsl.highway.telekom.at) left irc: Read error: 110 (Connection timed out) havoc (~havoc@CPE-65-31-171-97.wi.rr.com) got netsplit. havoc (~havoc@CPE-65-31-171-97.wi.rr.com) returned to #gnuenterprise. btami (~tamas@ip102-205.ktv.tiszanet.hu) got netsplit. IsoosI (dahoose@port-210-54-58-156.jet.net.nz) got netsplit. Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) got netsplit. havoc (~havoc@CPE-65-31-171-97.wi.rr.com) got netsplit. havoc (~havoc@CPE-65-31-171-97.wi.rr.com) returned to #gnuenterprise. btami (~tamas@ip102-205.ktv.tiszanet.hu) returned to #gnuenterprise. IsoosI (dahoose@port-210-54-58-156.jet.net.nz) returned to #gnuenterprise. Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) returned to #gnuenterprise. reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) joined #gnuenterprise. dimas (~Administr@ics.elcom.ru) joined #gnuenterprise. dimas (~Administr@ics.elcom.ru) left #gnuenterprise ("Client Exiting"). my office looks like it was hit by a toronado.. Action: Vee2d2 warms up the coffee and gets to cleaning up Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) left irc: Remote closed the connection Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) joined #gnuenterprise. Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) left irc: Remote closed the connection Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) joined #gnuenterprise. Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) left irc: Remote closed the connection Vee2d2 (~vin@c66.169.136.41.ts46v-07.otn-c1.ftwrth.tx.charter.com) joined #gnuenterprise. btami (~tamas@ip102-205.ktv.tiszanet.hu) left irc: ToyMan (~stuq@smtp.dstoys.com) joined #gnuenterprise. kyeran (kye@ip68-97-43-25.ok.ok.cox.net) joined #gnuenterprise. chillywilly (~danielb@CPE-24-167-199-51.wi.rr.com) left irc: Read error: 104 (Connection reset by peer) Action: kyeran has just found the documentation for how to use forms and is proceeding to try and implement Hello Forms! chillywilly (~danielb@CPE-24-167-199-51.wi.rr.com) joined #gnuenterprise. jamest (~jamest@gw.math.ksu.edu) joined #gnuenterprise. jemfinch (~jfincher@ts3-2.homenet.ohio-state.edu) joined #gnuenterprise. I'm having some real trouble thinking of the Best Way to do some SQL. before I type a lot, is someone here who can try to help me? i'm not sure if i can help you but you can try :) ok, I've got a table with an id and some other information. and I've got another table depends that has a .port_id and a .depends_id, and those ids are foreign keys into the first table (ports) a port can be said to "depend" on another port if in the depends table, there is a row where that port's id is in port_id and another port's id is in depends_id. with me so far? just a sec on the phone :( cursor.execute("""CREATE TABLE ports ( id INTEGER PRIMARY KEY, name TEXT UNIQUE ON CONFLICT IGNORE, path TEXT, info TEXT, maintainer TEXT, website TEXT )""") cursor.execute("""CREATE TABLE depends ( port_id INTEGER, depends_id INTEGER )""") that's the relevant schema (I figured I'd paste it just to make things clearer, since no one else was chatting that I could see) ok ok, I think I got it. sqlite> SELECT * FROM ports, depends WHERE ...> ports.id = depends.port_id AND ...> depends.depends_id IN (SELECT id FROM ports WHERE name LIKE 'python%'); but man, that's a slow query. I'm not sure I'm following that query finds all the ports that depend on a port whose name is LIKE 'python%'. back from the phone jemfinch: you sorted it out yourself, or still need help reinhard: I think I sorted it out myself. sorry i'm at work and have to pick up the phone when it rings .. ok but do you see any reason that SELECT statement should be slow? it was a pleasure to help you ;) thanks :) ah, ok. putting an index on ports_id and depends_id of the depends table made it fast. i think an index on ports_id should do it the index on depends_id isn't necessary? i'm not sure if the db can make use of the index on depends_id in this qhery query but the ways of db optimizers are sometimes very hard to understand i would at least try it :) jemfinch` (~jfincher@ts3-9.homenet.ohio-state.edu) joined #gnuenterprise. jemfinch (~jfincher@ts3-2.homenet.ohio-state.edu) left irc: "Client Exiting" Nick change: jemfinch` -> jemfinch sorry, I'm on a 30-minute internet line. did I miss anything from "the index on depends_id" isn't necessary?" (and no, it's not, I just dropped the index and it's still fast) i'm not sure if the db can make use of the index on depends_id in this qhery query but the ways of db optimizers are sometimes very hard to understand i would at least try it :) I did, you were right :) :) what db? jamest: I'm using SQLite. ok, I have another question, but this one is more style-related. I have a command that has various arguments that basically added constraints, and I want to find all records that match those given constraints. is it inelegant to iterate through the constraints, making a new VIEW of the database under each new constraint, and then just selecting * from the last view when I'm done? yes i think this is unelegant what would be a better solution? because i think creating a view is very expensive (performance wise) oh, hmm. i would dynamically add all constraints to the WHERE clause that i that is i would create the SQL statement on the fly hmm. and build the where clause dynamically I guess I can do that, since I figured out how to put the depends stuff in one WHERE clause. jbailey (~jbailey@atlas.fundserv.com) joined #gnuenterprise. jemfinch (~jfincher@ts3-9.homenet.ohio-state.edu) left irc: "Client Exiting" jemfinch (~jfincher@ts8-9.homenet.ohio-state.edu) joined #gnuenterprise. : :: :) hmm. this query is unexpectedly taking a long time. SELECT ports.name FROM depends, in_category, ports, categories WHERE ports.id=depends.port_id AND depends.depends_id IN (SELECT id FROM ports WHERE name LIKE 'python%') and categories.name LIKE 'science' AND in_category.category_id=categories.id AND in_category.port_id=ports.id; i would try an index over in_category.category_id and in_category.port_id I've got indexes on those already, and it's still taking a long time. do you also have an index ouver categories.id ? no, I don't have that. ok try that oh, wait, I do. it's a PRIMARY KEY it just seems odd that the query would take so long. do all primary keys have an index automatically? yeah, in SQLite they do. hmm. maybe maybe I should reorder my SQL statement and put the category stuff at the beginning? i would do it the other way around like hmm, reordering the SQL statement doesn't seem to fix it. ... AND in_category.port_id=ports.id AND categories.id=in_category.category_id AND categories.name LIKE 'science' it's odd, because a query on "categories.name='science' AND in_category.port_id=ports.id AND in_category.category_id=categories.id" returns almost immediately. you might also try to replace LIKE 'science' with ='science' and see if that makes much difference that doesn't, I've tried that. hmm Action: reinhard is clueless m etoo. reordering as per your suggestion doesn't seem to be doing it. jemfinch` (~jfincher@ts20-15.homenet.ohio-state.edu) joined #gnuenterprise. jemfinch (~jfincher@ts8-9.homenet.ohio-state.edu) left irc: "Client Exiting" Nick change: jemfinch` -> jemfinch jemfinch (~jfincher@ts20-15.homenet.ohio-state.edu) left irc: "Client Exiting" jemfinch (~jfincher@ts21-11.homenet.ohio-state.edu) joined #gnuenterprise. lupo (~lupo@pD9542F2E.dip.t-dialin.net) joined #gnuenterprise. jcater (~jason@w202.z065105010.mem-tn.dsl.cnc.net) joined #gnuenterprise. jcater! word excel Action: jemfinch found the problem with the slow query. slow query ... hm, you used informix? *fg* hehe. fixe (~fixe@dsl093-081-253.chi2.dsl.speakeasy.net) joined #gnuenterprise. anybody know how i can make an eps out of a ps? ps2epsi part of the ghostscript package, iirc epsi == eps? ugh ps2epsi chokes on my ps file yes jemfinch (~jfincher@ts21-11.homenet.ohio-state.edu) left #gnuenterprise ("Client Exiting"). yuck that is just a wrapper around gs so I guess that means gs doesn't like it either? i can view it with ghostview which is also a wrapper around gs IIRC? hmmm yeah and gs shows it, too I don't know what else to use :( unless you want to try ps2ps then ps2epsi GMTA i already tried but no help :( i looked at ps2epsi it does some funny things if it's a one-time thing, I can do it for you w/our in-house stuff it runs the ps through an awk script before processing but if it's a script kind of job, that won't help i thought gimp could save .ps as .eps actually I know it can as I had to do one this week but it would rasterize it, I imagine as gimp doesn't do native vector art picky picky :) sigh I want to go home and I want my xchat 1.x back too jcater: it works perfectly now thanks a lot!! no problem I like xchat2. =) I can read the fonts. Action: jcater thwaps jbailey don't interrupt one of my tyraids (sp?) jcater (~jason@w202.z065105010.mem-tn.dsl.cnc.net) left irc: "Client exiting" jcater (~jason@w202.z065105010.mem-tn.dsl.cnc.net) joined #gnuenterprise. /msg jbailey you have to take it easy on jcater, he doesn't like change, unless of course it's change that he commited Action: jcater thwaps jamest kyeran (kye@ip68-97-43-25.ok.ok.cox.net) left irc: "Bed Time" /msg jamest Don't like change is right! I didn't get any change from the $50 dollars I gave him. And the evening was only worth $30 IMnsHO. lol reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) left irc: "Real programmers don't comment their code. If it was hard to write, it should be hard to understand" reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) joined #gnuenterprise. neilt (~neilt@66.95.70.186) joined #gnuenterprise. reinhard_ (~reinhard@M1259P014.adsl.highway.telekom.at) joined #gnuenterprise. reinhard_: hello hi neilt long time no see how are you? hi neilt reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) left irc: Read error: 111 (Connection refused) ok, i guess too much work but thats probably a good thing all else considered Nick change: reinhard_ -> reinhard well very much the same for me chillywilly: hello anyone know a good to chat with derek? s/good/good time/ hmmm probably after office hours if he's not busy ;) like coaching soccer or what not is he still on regularily, I've waiting a couple of nights until 10 pm eastern time and he's not been around bbl reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) left irc: "The more often you run over a dead cat, the flatter it gets" neilt: well lately I think his attendence has been spotty Action: chillywilly is ALWAYS here though ;) muwahahaha neilt: usually best to announce you want to talk w/him and he'll see it and come in his office has new restrictions, so he doesn't stay connected all day booo stinkin' gov't reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) joined #gnuenterprise. ToyMan (~stuq@smtp.dstoys.com) left irc: "Client Exiting" jcater: thanks jcater: and how do I announce that I want to talk with derek? I think you have now where is the bugger :) buggering derek? The goat got tired of the computer? ToyMan (~stuq@170-215-194-210.bras01.glv.ny.frontiernet.net) joined #gnuenterprise. jbailey: hard for me to believe, more likely broke it neilt (~neilt@66.95.70.186) left irc: "Be back later" steveb_ (~steveb@202-0-63-186.paradise.net.nz) left irc: Read error: 110 (Connection timed out) neilt (~neilt@ip68-105-182-97.nv.nv.cox.net) joined #gnuenterprise. http://www.devx.com/devx/editorial/11839 Action: jcater thwaps jamest so what are you trying to say, punk? night all reinhard (~reinhard@M1259P014.adsl.highway.telekom.at) left irc: "Never wrestle with a pig. You both get dirty and the pig likes it" jcater: Don't trust that article. The guy looks vaguely like he's been squished against the back wall. end users are highly overrated anyway just more work jcater: I'm trying to say "so how are input masks coming along?" I just called... Action: jcater thwaps jamest to say.. I thwaped you! jamest (~jamest@gw.math.ksu.edu) left irc: "[x]chat" jcater (~jason@w202.z065105010.mem-tn.dsl.cnc.net) left irc: "Client exiting" jbailey (~jbailey@atlas.fundserv.com) left #gnuenterprise ("Client exiting"). havoc (~havoc@CPE-65-31-171-97.wi.rr.com) left irc: "Client exiting" havoc (~havoc@CPE-65-31-171-97.wi.rr.com) joined #gnuenterprise. dsmith (~dsmith@borg.altus.cc) joined #gnuenterprise. dsmith (~dsmith@borg.altus.cc) left irc: Read error: 104 (Connection reset by peer) jbailey (~jbailey@CPE0060082df811-CM014260028338.cpe.net.cable.rogers.com) joined #gnuenterprise. jcater (~jcater@cpe-066-061-083-220.midsouth.rr.com) joined #gnuenterprise. dsmith (~dsmith@borg.altus.cc) joined #gnuenterprise. jbailey (~jbailey@CPE0060082df811-CM014260028338.cpe.net.cable.rogers.com) left irc: "Client exiting" jbailey (~jbailey@CPE0060082df811-CM014260028338.cpe.net.cable.rogers.com) joined #gnuenterprise. neilt (~neilt@ip68-105-182-97.nv.nv.cox.net) left irc: Read error: 110 (Connection timed out) jamest (~jamest@adsl-64-216-106-61.dsl.tpkaks.swbell.net) joined #gnuenterprise. neilt (~neilt@ip68-105-182-97.nv.nv.cox.net) joined #gnuenterprise. dsmith (~dsmith@borg.altus.cc) left irc: Read error: 54 (Connection reset by peer) yo cater.....about those input masks...... Action: jamest ducks dsmith (~dsmith@borg.altus.cc) joined #gnuenterprise. Action: jcater thwaps jamest fixe (~fixe@dsl093-081-253.chi2.dsl.speakeasy.net) left irc: "because I feel like it" dsmith (~dsmith@borg.altus.cc) left irc: "later.." neilt (~neilt@ip68-105-182-97.nv.nv.cox.net) left irc: "Later all" dsmith (dsmith@oh-strongsvillecadent1-1d-224.clvhoh.adelphia.net) joined #gnuenterprise. ToyMan (~stuq@170-215-194-210.bras01.glv.ny.frontiernet.net) left irc: "Client Exiting" lupo (~lupo@pD9542F2E.dip.t-dialin.net) left irc: Read error: 110 (Connection timed out) derek? Action: Vee2d2 wonders if he ever got a working browser+java setup.. I cant seem to get anything working with application/x-java-vm support right now the newst JDK doesn't work w/ moz or any moz based broweser for me anyway well, I assumed that too, so I purged it and went back to j2re1.3 but still dont work.. =/ hmmm jbailey (~jbailey@CPE0060082df811-CM014260028338.cpe.net.cable.rogers.com) left #gnuenterprise ("Client exiting"). there we go.. konq didnt seem to like 1.3 but did ok with 1.4 hada check out how the 'virtual tour' looked on our house, http://www.buyowner.com/buyers/property.asp?Code=DAL13510 hmmm well I'm spinning around but I don't see the hippie dude sitting at the computer holding a beer and a baby jason: that's cause they're not in TN IIRC or from TN jamest: but he's from TX they are like TN only bigger ah, double wide folks right hehe I'm right behind that window in the front of the house, peeking through the blinds JDK 1.4 is out? 1.4.1 1.4.2 is beta IIRC Action: chillywilly looks to see what he has hmm, I have 1.4.1 but it don't work you turn java on in konq? it's off by default I use galeon a lot lately had better CSS support has* ah, the the UI still look horrible ? last I tried it it reminded me of a gnome 1 app :) I dunno I use the snapshot I think straight 'galeon' is newer than '-snapshot' now.. geeg:~# apt-cache show galeon | grep Version;apt-cache show galeon-snapshot|grep Version Version: 1.3.3.20030414-1 Version: 1.3.3.20030407-1 HEH I didn't know they got rid of the old galeon finally think it happened a day or two ago ok and they have new xchat too eh? yea, but I find myself yearning for the old one Remosi (dahoose@port-219-88-246-157.jet.net.nz) joined #gnuenterprise. I dont think this thing was quite ready all gnome stuff is going through growing pains as all backwards compatibility was broken yea.. galeon just finally got some of its old features back but it pissed me off to the point that I started running KDe I think Gnome 2 is retarded KDE is not the power users desktop ;) now* Action: jamest thwaps chillywilly Action: chillywilly thinks jamest should read his typo correction fewl IsoosI (dahoose@port-210-54-58-156.jet.net.nz) left irc: Read error: 60 (Operation timed out) ahhhhhhh for the record, KDE is *now* the power users desktop NOW !!! i read that as it would be in the future Action: chillywilly does the flying trout o' death assualt on jamest Action: jcater thwaps chillywilly Action: chillywilly does the flying trout o' death assault on jcater too Action: chillywilly just slings trout madly at anyone in the immediate irc vicinity Action: jcater grabs his umbrella while thwapping jamest Action: jamest grabs his now trout stained thwap resistant boxers ah dammit chillywilly, you ruined them Action: dsmith snags some flying trout wiht a a hot fy=rying pan heheh hey dale carefull huh? we don't know where chillywilly keeps his trout Action: chillywilly whistles innocently they may be unfit for human consuption consumption even Action: chillywilly puts the typo hex on jamest too late Action: dsmith slings hot smmelly trout at chillywilly Someone rooted our box yesterday. jamest: at least he was cooking the trout :( how? samba I think. i've learned to hide my high rate of typos behind my inability to spell most words properly in the first place ack so you'll never know jamest: cool ;) Action: havoc can spel jamest: are you still taking calculus courses? not right now he had to quit i had to take a break to get caught up on other stuff he kept misspelling dx http://www.newholland.com/na/Products/gardentrac.html MINE! jamest: HEHE erm, jcater however they had approved financial aide already Action: jcater drools over havoc's tractor so as punishment I loose it for 1 year jcater: I don't have it, yet .... :) someday.... that little silver thing by the seat havoc: is your yard big enough for that thing? that's the donut holder right? chillywilly: sure :) HEH jamest: lol jcater (~jcater@cpe-066-061-083-220.midsouth.rr.com) left irc: "Client exiting" --- Thu Apr 17 2003