Wednesday, 2009-03-25

macyawaygetting back to business .. are you still there?00:03
troal01Back again00:15
troal01Assignment due tomorrow? :)00:16
macyawayexam00:16
macyawaywe forgot to do this00:16
macyawayVarje film visas på flera biografer samtidigt00:16
troal01Okay and each biograf can show many films right?00:17
troal01Then it would be a classic many-to-many relationship00:17
troal01And in that case you'd have to use an associative table00:17
macyawayso i am not doing anything00:18
macyawayJust a  statement in the erd00:19
macyawayeh?00:19
troal01Well if that's what your schema looks like no :)  create table film (id int, namn varchar(255)); and then a create table film_biograf_assoc (film_id, biograf_id);00:19
troal01It's easier to represent associative tables with diagrams but it's kinda hard to draw them on IRC00:19
macyawayWell noo .. you see i got ägare av tidning som betygsätter en film av olika kategorier  med aktörer i som är kvinna och man en spelar älskare den annan mördare och dom har födelseår också00:23
macyawaySedan säger man att dom film spelas i de biograf och att den biograf har så många salar och det befinner sig i de orten00:24
macyawaySå min er diagram ser ut på följande sätt ... har en media ... tabell med romb i  som inehåller ägare och tidning som betygsätter sedan00:25
macyawayoch då blir det betygsättning på film kategory betyg, som har flera aktörer och spelas upp på flera biograf00:25
macyawaytyp00:25
macyawayEller?00:26
troal01Weeeeeeeeeeeeeell that's a mouthful! I can't solve your whole problem for you but you've gotta first list all relevant data you want to store00:27
troal01Then sort them into tables00:27
troal01Or just put them all in one table and normalize them :)00:27
troal01Whichever you find easier00:27
macyawayBut i did00:29
macyawayI even described how i did it00:29
macyawayDidnt you follow?00:29
macyawayWas i so uncoherent?00:29
macyawayDammit!00:29
macyawayOk .. tell me secrets :D00:29
troal01Haha well what I could gather was that you think you had normalized your tables but not certain on how to enforce certain requirements00:30
troal01I helped you with unique() on namn and ort00:31
troal01So what's your question now? :)00:31
macyawayI would like some secrets00:33
macyawayYou see for exam?00:33
macyawayoh ... these locking transactions00:33
macyawaywhy doesnt everybody use the tidsoptimistisk metod?00:34
troal01Watch the South Park episode "Eek a Penis" :D00:34
macyawayno00:34
macyawayare you being mean now?00:34
troal01No just trying to be funny heh00:35
troal01If you'd seen the episode you'd know what I mean00:35
macyawaywöll .... i might have seen it00:35
macyawayMan im soo hungry :(00:35
macyawaybut eak is a kitten00:36
macyawaya blue one if i remember right00:36
troal01Anyway, I'm not an expert on locking theory, you might want to hit the books for that one00:36
troal01But as far as teh test goes, remember normalization techniques and general SQL and you should be fine00:36
macyawayaye00:36
macyawaywell ... i know about write ahead log, change log transaction log is more or less journaling and you use the acid way00:37
macyawayand as it is atomic meaning all or nothing, you got to do the comit at the end ...00:38
macyawayif not doing commit, you lock the session, and there comes the consistency where you got to respect the integrities and when they all pass the test it is good ... it got to be consistent at all times00:39
macyawayand the isolated ... here you do the locking really ... cuz one transaction can be done at a time separatley from each other00:39
macyawayand than you got them durability that should hold even when the disk has crashed00:40
macyawayThrough ice and stone age00:40
macyawayeh?00:40
troal01To me all that sounds good00:40
macyawayVery nice00:40
macyawayI agree00:41
macyawayDo you know what data mirroring is?00:41
troal01Depends on what you mean by that :)00:43
troal01BTW the joke with the South Park episode, it's the one where Cartman teaches the underprivileged kids how to cheat00:43
macyawayuuu, i should watch that!00:44
macyawayData mirroring is when you got synkron and asynkron00:45
troal01Very funny episode00:45
troal01Sorry can't help you there :)00:45
macyawayYou see there is distribuerad db and centraliserad one00:46
macyawayWell i actually know this thing :P00:46
macyawayI could teach you ;)00:46
macyawayHum00:47
macyawayNot attractive enough?00:47
troal01Hehe! I'm sure you could teach me a thing or two :)00:50
macyawayHmm ... that sounded kinky!00:51
macyawayOjj .... it's prolly just me :/00:51
troal01ANd you're probably pretty tired being up this late00:52
macyawayIm starting to get awake00:53
troal01Heh00:53
macyawayyou fooled me a wee bit with the : create table biograf ( namn varchar(255), ort varchar(255), unique(namn, ort));00:54
troal01Hmm?00:54
macyawayWouldnt have it been easier to just say place them cinema and city both as primry keys?00:54
macyawayWould have saved me a whole lot of thinking00:54
macyaway:P00:54
troal01That depends, you could do that but for every associative table you'd have to pull those two over00:55
macyawayhuh?00:55
troal01The associative table between movie and cinema would now have three fields instead of two00:56
macyawayWell no cuz i got a fk from betygsattning ... which is film00:56
troal01I'm talking about the place where each film can be shown in many cinemas and each cinema can show many films00:57
troal01many-to-many = associative table00:57
troal01PK from each table00:57
macyawaySo cinema cant be unique or primary key cuz it is not unique00:59
troal01ciname name is not unique no, but name and ort together has to be so yes it could be the primary key01:00
macyawayBut i dont have no name, i only have cinema city salar and film01:02
macyawayIn the biograf entity .. table01:02
macyawayYou went away?01:05
macyawayVery nice, i ought to bugger off and catch some of that sleep they spread around a long time ago01:06
macyawaynight night, thanks for all :)01:06
troal01No problem and good luck on the test!01:07
macyaway:)01:07
macyawayI will bring my hammer01:07
troal01Hehe01:10
*** macyaway has quit IRC01:12
*** stephenb has joined #ingres01:55
*** toumi01 has quit IRC02:53
*** mull has quit IRC03:01
*** rossand has quit IRC04:50
*** Alex|off is now known as Alex|06:09
*** Gerhard has joined #ingres06:12
*** Alex| is now known as Alex|off06:38
*** withdefault has joined #ingres06:57
*** ChanServ sets mode: +o withdefault06:58
*** Alex|off is now known as Alex|07:06
*** grantc_offline is now known as grantc07:34
Alex|I'm sure there are some java experts around... I need to call a simple url from within java... just need to open the url and don't even need the content that comes back07:44
pborowell.. what do you need then?07:44
Alex|is this a job for curl or is there something more simplistic?07:45
Alex|java.url.call("http://...") <- that's what I want :)07:45
pborowhat does mean "call a simple url", just make a request to that url and that's it?07:45
Alex|yes, just the request... I need to send data via get to a remote server07:46
pborohttp://hc.apache.org/httpclient-3.x/07:46
pboroadd that lib to your project, it gives tools to make http requests easily07:46
pboroif you don't want to add a lib, then you will need to write a http client yourself07:46
Alex|no, adding a lib is ok. I was just not sure what's the one to use for this07:47
pborook, Apache Commons contains a bunch of very useful and good quality libraries for many uses, I recommend to check it :) http://commons.apache.org/ is the home page for it07:49
pboroI think calling an external binary should only be used as a last resort...07:49
Alex|hm, looks like there is something built-in already07:50
Alex|http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html07:50
pborooh yeah, forgot that... it's not as useful as HttpClient but can also be used for simple cases07:50
Alex|that should be enough. I only open the connection and check if it comes back as 20207:51
Alex|or 200 even...07:51
pborook, sorry for not remembering that :)08:02
*** Gerhard has quit IRC08:56
*** jmbp has joined #ingres09:02
*** jmbp is now known as jmbp_09:08
*** jmbp_ is now known as jmbp09:10
*** Alex| is now known as Alex|off09:26
*** jmbp has quit IRC11:45
*** troal01 has left #ingres11:47
*** troal01 has joined #ingres11:50
*** rossand has joined #ingres11:55
*** ChanServ sets mode: +o rossand11:55
pboroahh... got a raise!12:07
troal01Grats! :)12:10
*** jmbp has joined #ingres12:24
grantcpboro, +1 :)12:45
grantcafternoon mr jmbp12:45
pborodoes Ingres Co. give any discount to educational organizations, like universities?13:25
grantcpboro, not sure, there used to be something in the uk called CHEST, i don't know if it still exists or if ingres is part of it13:27
pborook, I'll ask sales13:27
satanmalinhi grantc13:27
satanmalinhi pboro13:27
satanmalinhi everyone13:27
grantchullo satanmalin13:27
satanmalingrantc if i put a page index.php and a page index.html in the same directory what page will be loaded as an index ?13:28
pborodepends on the http server configuration13:29
grantcit depends on what DirectoryIndex is set to in the apache config13:29
satanmalinbecause its for the application demo13:29
satanmalinim doing an index.html13:29
satanmalinto explain how to connect13:30
pboroyou should probably only do either one13:30
pborosince it's no point in having two index "pages"...13:30
satanmalinbut i was  wondering ho w to do LOL13:30
pboroif you only need a page with some text, then do index.html :)13:30
pboroif you need to put PHP code (to be executed) on the page, you will certainly need .php13:31
satanmalinyep but indeed theproblem i have or i create LOL is that we have the demo done by emma who has still an index.php and i want to code so;e pages13:31
satanmalinbefore this index13:31
satanmalinor maybe must i do a sub directories maybe13:32
pbororename index.php to demo.php and then write index.html with a link to demo.php?13:32
pboroif it is not possible to rename index.php to demo.php, then create a subdirectory demo and put it there or something :)13:33
satanmalinor what about putting the demo in a sub directory ?13:33
pborothat should work too, yeah13:33
pboroI don't get tho' why not just rename the file :)13:33
satanmalinbecause i think index.php is a base of the demo13:34
satanmalingrant isn it ?13:34
pborooh, so there is even more php files?13:34
grantcindeed13:34
pborook :) didn't have enough data to compute the problem!13:34
grantcthe demo got synced out to svn yesterday - let me check13:34
satanmalinlol oki13:35
satanmalinno prob pboro13:35
satanmalinand thanks for your help13:35
grantchttp://svn.ingres.com/browse/listing.php?repname=ingres&path=%2Fmain%2Fsrc%2Ffront%2Fdemo%2Fphp%2FIngresDemoApp_php%2F#path_main_src_front_demo_php_IngresDemoApp_php_13:36
satanmalinis it for me or for pboro ?13:36
grantcanyone who wants to see the code...13:36
satanmalinoki LOL13:36
satanmalinthe code i have of course13:36
pboronice, mixed PHP and HTML :/13:36
grantcREADME.html and the help files13:37
satanmalinbut i think the easiest way is with subdirectories13:37
grantcthe rest is all code13:37
satanmalini have never asked but if apache is set to have as root directory www13:38
grantc?13:39
satanmalinwil it work if i place the fie in www\demo13:39
pborohmm... is that demo vulnerable to sql injection?13:39
satanmalinwill it work if I place the file in www\demo13:39
satanmalin?13:39
grantcif you reference http://machine/demo/index.html13:39
grantcpboro, patches welcome13:39
satanmalinhttp://machine/demo/index.php13:40
grantcif www is your documentroot directory that should work13:40
satanmalinand the html file will be in http://machine/www/index.html13:40
satanmalinoki thanks13:40
satanmalinso il continue13:40
satanmalinthanks grant13:41
satanmalinand thank pbroro13:41
satanmalinpbroro13:41
satanmalinpboro13:41
satanmalinLOL sorry13:41
pboroby a quick look it seems to be vulnerable, I hope you're not going to put it on the open net13:41
grantcthere are no plans for Ingres to put this code up as a running application13:42
pboroalthough since Ingres doesn't allow batch queries, the problem is mitigated :)13:42
grantchowever I will have to fix it for best practises13:42
grantc:)13:42
pboroif(eregi("(select|insert|delete|update)", $value)) $invalidValues .= "Lastname is invalid<br/>";13:43
pboroit does have some checks, but they are rather failure :)13:43
grantci'll add it to my "list" of stuff to do13:44
*** mull has joined #ingres13:46
*** troal01 has quit IRC13:53
*** troal01 has joined #ingres13:57
troal01Hmm my panel crashed... Must be because I hacked it the other day :D13:58
*** toumi01 has joined #ingres13:58
*** troal01 has quit IRC14:06
*** troal01 has joined #ingres14:06
*** troal01 has joined #ingres14:07
*** stephenb has quit IRC14:11
*** DarylM has joined #ingres14:23
*** stephenb has joined #ingres14:54
*** toumi01 has quit IRC15:14
*** toumi01 has joined #ingres15:22
*** toumi01 has quit IRC15:27
*** satanmalin has quit IRC15:31
*** satanmalin has joined #ingres15:32
*** toumi01 has joined #ingres15:32
satanmalinjust to have a translation15:37
satanmalinas follows15:37
satanmalinis as follows is english ?15:38
grantcit depends on the context15:38
satanmalinis "as follows" correct  english15:38
grantcit is english but it may not be grammatically correct15:39
satanmalinirst of all, you have to change the source to defined source as follows15:39
satanmalin?15:39
grantckind of15:39
satanmalingood or not ?15:39
grantcthe last two words sure, the earlier stuff not so sure15:40
grantcon thing you are repeating source15:40
grantc you have to change the defined source as follows15:41
satanmalinindees its irst of all, you have to change the source to "defined source"15:41
grantccan you explain what this text relates to in the demo app?15:42
satanmalinor if you prefer irst of all, you have to tick  "defined source"15:42
satanmalinand i have a print screen15:42
grantcof what?15:42
grantcah i see..15:42
grantcunder the connection page...15:42
satanmalinyep15:42
grantcselect "Defined Source"15:43
grantcsince it is radio button not a check/tick box15:43
satanmalinoki15:43
satanmalinthanls grant sorry to have to ask translation15:44
satanmalin:(15:44
satanmalini promise i try to do my best in english :'(15:44
grantcno problem - this stuff comes with practise even for native english speakers15:44
satanmalinLOl thanks to not tell the truth15:52
satanmalinindeed tell that my english is bad15:52
*** troal01 has quit IRC15:55
satanmalinLOL15:55
satanmalinit is as follows or as floowed ?15:56
satanmalinfolllowed15:56
satanmalindam*** it LOL followed15:56
satanmalinLOL15:56
satanmalinfinally15:56
grantcas follows15:56
satanmalinoki thaks15:57
satanmalinthanls15:57
satanmalinoki15:57
satanmalinone day ill manage LOL15:57
*** troal01 has joined #ingres16:00
*** troal01 has joined #ingres16:01
satanmalinanother question is it to change sth by or for ?16:03
satanmalinThen, in the "Server" section, change the Instance name by16:03
grantcby if you wish to indicate an action that will need to happen16:04
satanmalinok thanks16:05
satanmalinenglish is quiet difficult  with all these preposition16:05
satanmalinLOL16:05
grantcyup16:07
*** troal01 has quit IRC16:42
satanmalinsorry again16:50
satanmalinanother question16:50
satanmalinhow do you call the loggin of you pc ?16:50
grantc?16:50
satanmalinfor exemple they ask me to choose a user on XP16:50
satanmalinhow to explainit in english16:50
DarylMWho are "they"16:51
satanmalinNow, in the "Credentials" section type your PC loggin :16:51
satanmalinthey the system16:51
satanmalinthey = $crosoft16:51
satanmalini have to explain that poeplle who use the demo application have to type their User ID = there loggin of their pc16:52
satanmalinthe loggin of there pc16:52
grantcI would say "log in to your PC using your assigned account"16:52
satanmalineuh16:54
satanmalinindeed they have to type their Pc account in the demno base16:55
satanmalinthats what im trying to explain16:55
grantclog in to the application using your user name and password16:55
SlimeyPeteyour Windows username and password16:55
grantcsure16:56
satanmalinim too complicated LOL16:56
satanmalinthans pete16:56
satanmalinthanks pete16:57
satanmalintype your windows username in the16:58
satanmalinform16:58
satanmalinNow, in the &quot;Credentials&quot; section, type your windows username in the User ID form:16:59
satanmalinis it correct ?16:59
grantcreplace User ID form with User ID field16:59
satanmalinoki17:00
satanmalintx17:00
*** troal01 has joined #ingres17:05
satanmalinmay i put a button to sum up all the infor;ation a button sum up or is it a word more apropriate17:36
satanmalin?17:36
satanmalinsummary ?17:37
satanmalinis summary correct ?17:38
grantca button to sum up information? what does that mean?17:39
satanmalinindeed i have made 3 pages17:40
satanmalinand i want to put a print screen to sum up the information17:40
satanmalinin one window17:40
satanmalinif you promise to not laugh i send you what i have done LOL17:41
grantcsure - mail me and I will take a look tomorrow17:41
*** troal01 has quit IRC17:44
*** troal01 has joined #ingres18:07
satanmalinit is sent grant18:17
*** troal01 has quit IRC18:22
*** troal01 has joined #ingres18:24
*** thiagomz_ has quit IRC19:15
*** thiagomz has joined #ingres19:15
*** jmbp has quit IRC19:37
*** withdefault has quit IRC20:13
*** toumi01 has quit IRC21:40
*** DarylM has quit IRC22:17
*** mull has quit IRC23:02
*** grantc is now known as grantc_offline23:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!