IRC Archive for channel #xwiki on 21 June 2009

Last modified by Vincent Massol on 2012/10/18 18:32

lucaa joined #xwiki at 00:01
glerouge left at 00:08 ("Gone chasing a unicorn in the twilight zone")
arunreddy_ joined #xwiki at 00:19
jvelociter left at 02:55 ()
jvelociter joined #xwiki at 03:14
arunreddy_ left at 03:41 (Remote closed the connection)
sdumitriu left at 03:57 (Read error: 113 (No route to host))
tharindu joined #xwiki at 05:51
tharindu_ joined #xwiki at 06:13
tharindu left at 06:15 (Read error: 110 (Connection timed out))
arunreddy joined #xwiki at 07:02
arunreddy_ joined #xwiki at 09:03
arunreddy left at 09:10 (Read error: 110 (Connection timed out))
florinciu joined #xwiki at 09:53
trifon joined #xwiki at 10:17
tharindu__ joined #xwiki at 10:22
tharindu_ left at 10:25 (Read error: 110 (Connection timed out))
sdumitriu joined #xwiki at 11:13
sdumitriu left at 11:14 (Client Quit)
tmortagne joined #xwiki at 11:18
tmortagne left at 11:20 (Client Quit)
sdumitriu joined #xwiki at 12:14
arunreddy_ - (21/06/2009 12:21): sdumitriu : hi.
vmassol joined #xwiki at 12:41
tharindu__ left at 12:42 (Remote closed the connection)
vmassol left at 12:46 (Client Quit)
sdumitriu - (21/06/2009 13:34): Hi arunreddy_
sdumitriu - (21/06/2009 13:34): What's up?
arunreddy_ - (21/06/2009 13:39): sdumitriu : hi...
arunreddy_ - (21/06/2009 13:39): I had some issue. i tried to use the Imported Wiki XML. file as an attachement. 
arunreddy_ - (21/06/2009 13:41): and tried to pass the content of it to the InputStream << ByteArrayInputStream using attachment.getContentAsBytes().
arunreddy_ - (21/06/2009 13:41): Is there any other way to work with files.
sdumitriu - (21/06/2009 13:41): And what was the problem?
sdumitriu - (21/06/2009 13:42): Since you are in Java, you can just store the file inside the work directory, as a normal file
arunreddy_ - (21/06/2009 13:42): The SaxReader is unable to parse the file. .. 
sdumitriu - (21/06/2009 13:42): But it's not the problem of the attachment store
trifon left at 13:46 (hubbard.freenode.net irc.freenode.net)
xipe left at 13:46 (hubbard.freenode.net irc.freenode.net)
lucaa left at 13:46 (hubbard.freenode.net irc.freenode.net)
jvelociter left at 13:46 (hubbard.freenode.net irc.freenode.net)
cristinaS left at 13:46 (hubbard.freenode.net irc.freenode.net)
florinciu left at 13:46 (hubbard.freenode.net irc.freenode.net)
asyd left at 13:46 (hubbard.freenode.net irc.freenode.net)
arunreddy_ left at 13:46 (hubbard.freenode.net irc.freenode.net)
trifon joined #xwiki at 13:48
florinciu joined #xwiki at 13:48
arunreddy_ joined #xwiki at 13:48
jvelociter joined #xwiki at 13:48
lucaa joined #xwiki at 13:48
cristinaS joined #xwiki at 13:48
xipe joined #xwiki at 13:48
asyd joined #xwiki at 13:48
vmassol joined #xwiki at 13:51
trifon left at 14:11 (Read error: 113 (No route to host))
vmassol left at 14:19 ()
jvelociter left at 14:21 (Remote closed the connection)
arunreddy_ left at 14:43 (Remote closed the connection)
sdumitriu - (21/06/2009 14:45): Hi cristinaS
sdumitriu - (21/06/2009 14:45): Did you solve the exception?
arunreddy joined #xwiki at 15:04
tharindu joined #xwiki at 15:14
vmassol joined #xwiki at 16:05
anamarias joined #xwiki at 16:32
vmassol left at 16:41 (Read error: 113 (No route to host))
vmassol joined #xwiki at 16:41
arunreddy left at 16:46 (Remote closed the connection)
trifon joined #xwiki at 16:48
A-Kaser joined #xwiki at 16:57
arunreddy joined #xwiki at 17:10
A-Kaser_ joined #xwiki at 18:21
A-Kaser left at 18:37 (Read error: 110 (Connection timed out))
arkub joined #xwiki at 18:43
anamarias - (21/06/2009 18:53): sdumitriu: hi
sdumitriu - (21/06/2009 18:55): Hi anamarias
anamarias - (21/06/2009 18:55): ok, i have some questions
anamarias - (21/06/2009 18:55): i was trying to figure out how users are stored in the database (http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema)
anamarias - (21/06/2009 18:56): i guess users use the XWiki Users Class  (http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema) 
sdumitriu - (21/06/2009 18:56): Yes
sdumitriu - (21/06/2009 18:56): They are normal wiki pages
anamarias - (21/06/2009 18:56): but exactly in which db tables end up ? and how are they accessed ?
sdumitriu - (21/06/2009 18:56): Not special case for them
sdumitriu - (21/06/2009 18:56): Don't try to understand the database
sdumitriu - (21/06/2009 18:56): You should NEVER talk to the database directly
sdumitriu - (21/06/2009 18:56): :)
anamarias - (21/06/2009 18:57): hmm
sdumitriu - (21/06/2009 18:57): Use the data access APIs provided by XWiki
sdumitriu - (21/06/2009 18:57): getDocument, getObject
anamarias - (21/06/2009 18:57): for getting a user ?
sdumitriu - (21/06/2009 18:57): Yes
sdumitriu - (21/06/2009 18:57): Users are documents with an object attached to them
anamarias - (21/06/2009 18:58): ah, their properties (structured data)
sdumitriu - (21/06/2009 18:58): Like a blog article, a group, a photo album, etc.
anamarias - (21/06/2009 18:58): i am trying to tie shindig to our database
anamarias - (21/06/2009 18:59): as they say here (http://incubator.apache.org/shindig/developers/java/samples.html) there is a model implementing of SPI using JPA, sources here: http://svn.apache.org/repos/asf/incubator/shindig/trunk/java/samples/src/main/java/org/apache/shindig/social/opensocial/jpa/
sdumitriu - (21/06/2009 18:59): OK
anamarias - (21/06/2009 18:59): they provide classes for user access for example
anamarias - (21/06/2009 18:59): but these Persons (http://svn.apache.org/repos/asf/incubator/shindig/trunk/java/samples/src/main/java/org/apache/shindig/social/opensocial/jpa/PersonDb.java)
sdumitriu - (21/06/2009 18:59): But users are not in a table
anamarias - (21/06/2009 18:59): have lots of properties
sdumitriu - (21/06/2009 18:59): They are spread in lots of tables
anamarias - (21/06/2009 19:00): ok, so I should use the api to get different kinds of user properties
sdumitriu - (21/06/2009 19:00): Yes
sdumitriu - (21/06/2009 19:01): You don't need to use the PersonDb class
anamarias - (21/06/2009 19:01): i'm not sure if the properties implemented in this example are all mandatory in order to be a *open social* container
sdumitriu - (21/06/2009 19:02): This is the interface: http://svn.apache.org/repos/asf/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Person.java
sdumitriu - (21/06/2009 19:02): So all methods must be implemented
anamarias - (21/06/2009 19:02): the specs http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/opensocial-reference#opensocial.Person , has many of them ( i dont know if all)
sdumitriu - (21/06/2009 19:03): You might just return null for those that don't have an equivalent in XWiki
sdumitriu - (21/06/2009 19:03): Or you can propose adding those
anamarias - (21/06/2009 19:03): ok, i see
sdumitriu - (21/06/2009 19:03): Hm, look at the Person interface
sdumitriu - (21/06/2009 19:03): All methods say this:
sdumitriu - (21/06/2009 19:04): Get the person's favorite books, specified as an List of strings. Container support for this field is OPTIONAL.
sdumitriu - (21/06/2009 19:04): So most of them are optional
anamarias - (21/06/2009 19:04): that's good :)
anamarias - (21/06/2009 19:04): so , i won't implement them for now, and see later
sdumitriu - (21/06/2009 19:05): The only ones that have REQUIRED in the javadoc are ID, name and nickname
sdumitriu - (21/06/2009 19:05): But there are a few that don't have either OPTIONAL or REQUIRED
anamarias - (21/06/2009 19:07): this example uses JPA, is it a kind of Hibernate ? (xwiki uses hibernate, right ?)
sdumitriu - (21/06/2009 19:08): Yes, something similar
sdumitriu - (21/06/2009 19:08): But our usage of Hibernate is not granted
sdumitriu - (21/06/2009 19:08): This is just the most advanced implementation of our storage interface
sdumitriu - (21/06/2009 19:08): We also have a JCR implementation
anamarias - (21/06/2009 19:09): what do you mean by granted ? and which one should i use ? 
sdumitriu - (21/06/2009 19:11): I mean that the storage should not be used directly, as a class
sdumitriu - (21/06/2009 19:11): XWiki provides search methods
sdumitriu - (21/06/2009 19:11): And it has a getStorage method which returns the used implementation
sdumitriu - (21/06/2009 19:12): You're working with a data model, not with a database
sdumitriu - (21/06/2009 19:12): XWiki has Data, not Tables
sdumitriu - (21/06/2009 19:13): The data is abstract, and you should use the provided methods for accessing it, not the database directly
anamarias - (21/06/2009 19:13): ahaa, i understand
sdumitriu - (21/06/2009 19:15): So, to get the email address of the XWiki.Adam user, call:
sdumitriu - (21/06/2009 19:15): documentAccessBridge.getProperty("XWiki.Adam", "XWiki.XWikiUsers", "email")
sdumitriu - (21/06/2009 19:15): documentAccessBridge should be a dependency requirement in your component
sdumitriu - (21/06/2009 19:16): This way the component manager returns the right object
anamarias - (21/06/2009 19:19): ok, i'll look this up. thanks
cristinaS - (21/06/2009 19:19): hi sdumitriu!
sdumitriu - (21/06/2009 19:19): Hi cristinaS
cristinaS - (21/06/2009 19:20): srry I wasn't at my desk when you asked me about the exception.. well these days I worked at my graduation project so I didnt solve the problem.(tonight I will try to solve ) Just for check.. should I clean up  the xwiki  syntax from the page that I got? 
sdumitriu - (21/06/2009 19:21): Got from where?
cristinaS - (21/06/2009 19:22): from the xml-rpc module
arunreddy - (21/06/2009 19:22): hi sdumitriu 
cristinaS - (21/06/2009 19:22): my xml-rpc client is getting the content of the page
cristinaS - (21/06/2009 19:22): this syntax is ok?
sdumitriu - (21/06/2009 19:22): No, it should be clean enough
cristinaS - (21/06/2009 19:22): ok
sdumitriu - (21/06/2009 19:22): Hi arunreddy
sdumitriu - (21/06/2009 19:24): So cristinaS, how's the gratuation project going?
cristinaS - (21/06/2009 19:25): well .. i don't find it not easy to write documentation 
cristinaS - (21/06/2009 19:25): but i hope it will be ok
arunreddy - (21/06/2009 19:25): gratuation project ?
cristinaS - (21/06/2009 19:25): on 13 july I have the deadline
arunreddy - (21/06/2009 19:25): sdumitriu : http://xwiki.pastebin.com/d16df7440 
cristinaS - (21/06/2009 19:25): arunreddy: yes .. i will be an engineer soon 
arunreddy - (21/06/2009 19:26): is it graduation proj .?
sdumitriu - (21/06/2009 19:26): Writing documentation may not be pleasant, but it is very important
arunreddy - (21/06/2009 19:26): Thats great.. 
sdumitriu - (21/06/2009 19:26): Including for yourself, helps you put everything in order
cristinaS - (21/06/2009 19:26): my teachers say the same :)
sdumitriu - (21/06/2009 19:27): So it must be true ;)
cristinaS - (21/06/2009 19:27): :) perhaps ..  I like the subject .. but i'm moving slow 
arunreddy - (21/06/2009 19:28): cristinaS : Whats your major. ?
arunreddy - (21/06/2009 19:28): sdumitriu : Help. :)
cristinaS - (21/06/2009 19:29): arunreddy: improving the relevancy of the results of a search engine using semantic realtions extracted from Wikipedia
arunreddy - (21/06/2009 19:30): Wow nice one. All the best. When you publish a paper, kindly give me the link. :)
sdumitriu - (21/06/2009 19:30): arunreddy: What's the error you get?
arunreddy - (21/06/2009 19:31): 1 min
cristinaS - (21/06/2009 19:33): sdumitriu: regarding my code .. I was looking at the http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule...
arunreddy - (21/06/2009 19:35): org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content
cristinaS - (21/06/2009 19:35): how can I know what classes are instatiated for that interfaces (like Parser for example)
sdumitriu - (21/06/2009 19:36): cristinaS: Why do you need to know that?
sdumitriu - (21/06/2009 19:37): arunreddy: Look for the nested exception
arunreddy - (21/06/2009 19:37): sdumitriu : org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content, and the root : Caused by: java.lang.ClassNotFoundException: org.jaxen.JaxenException
arunreddy - (21/06/2009 19:37): org.jaxen.JaxenException.. 
cristinaS - (21/06/2009 19:37): at my client aplication.. I have a component manager? (i thought that the component manager is like a singleton .. knows what classes are instantiated for those interfaces)
sdumitriu - (21/06/2009 19:37): arunreddy: Maybe a jar is missing
arunreddy - (21/06/2009 19:38): Maven is running fine right.
arunreddy - (21/06/2009 19:39): let me try
arunreddy - (21/06/2009 19:39): My bad. 
arunreddy - (21/06/2009 19:40): Thanks.
sdumitriu - (21/06/2009 19:41): cristinaS: Knowing the implementations of a component is the job of the component manager
arunreddy - (21/06/2009 19:44): how can we look up a component with hint. 
arunreddy - (21/06/2009 19:44): Parser class with mediawiki/1.0 as hint
arunreddy - (21/06/2009 19:47): Can we use "ComponentManager" Component directly to access Parser Class .. instead of using EmbeddableComponentManger. 
sdumitriu - (21/06/2009 19:47): arunreddy: Are you using annotations for marking your components?
arunreddy - (21/06/2009 19:47): Yes.
arunreddy - (21/06/2009 19:48): @ComponentRole @Required and so on ?
sdumitriu - (21/06/2009 19:48): Yes
sdumitriu - (21/06/2009 19:48): Just a minute...
arunreddy - (21/06/2009 19:49): Ok . Any problem using them.? I mean any change in the plans.?
sdumitriu - (21/06/2009 19:49): No, annotations are the right way
sdumitriu - (21/06/2009 19:50): @Requirement("mediawiki/1.0") should work
arunreddy - (21/06/2009 19:52): Any way to handle it at run time.?
sdumitriu - (21/06/2009 19:52): You need to use the component manager directly
arunreddy - (21/06/2009 19:53): ok
vmassol_ joined #xwiki at 19:57
vmassol__ joined #xwiki at 20:07
vmassol left at 20:15 (Read error: 110 (Connection timed out))
vmassol__ left at 20:22 ()
trifon left at 20:23 (Read error: 113 (No route to host))
vmassol_ left at 20:25 (Read error: 110 (Connection timed out))
arunreddy - (21/06/2009 20:29): sdumitriu : DocumentAccessBridge doesnt have all the Document related api exposed.  To manage hierarchy ( parent, child) , Authors, Versions and so on.
arunreddy - (21/06/2009 20:30): How to handle this at runtime. 
arunreddy - (21/06/2009 20:32): Is it possible to add those methods to the list in DocumentAccessBridge.
vmassol joined #xwiki at 20:35
sdumitriu - (21/06/2009 20:38): arunreddy: Yes, you should vote for every new method you need in the bridge
arunreddy - (21/06/2009 20:41): Ok. 
A-Kaser_ left at 20:57 (""Soyons réalistes, exigeons l'impossible." Ché Guevara")
arunreddy - (21/06/2009 21:30): sdumitriu : Ping
arunreddy - (21/06/2009 21:31): I have something working . Would like to show you if you are free. :)
sdumitriu - (21/06/2009 21:33): Commit it?
sdumitriu - (21/06/2009 21:33): I'm a little busy right now, but I'll look at it tonight
KermitTheFragger joined #xwiki at 21:33
arunreddy - (21/06/2009 21:36): Sure :)
arunreddy - (21/06/2009 21:37): Thanks
sdumitriu - (21/06/2009 22:20): arunreddy: I'm looking now, I'll write an email with the observations
arunreddy - (21/06/2009 22:22): OK
arunreddy - (21/06/2009 22:25): sdumitriu : http://xwiki.pastebin.com/me4945fe
arunreddy - (21/06/2009 22:25): This is something i want to show. A working model. hard coded at few places.
arunreddy - (21/06/2009 22:26): Thanks a lot :)
sdumitriu - (21/06/2009 22:27): arunreddy: It's normal to manually copy the jaxen jar, since dependencies are not bundled inside the target jar
sdumitriu - (21/06/2009 22:27): Normally, when you package the jar inside a war or a zip, jaxen would be included, too
sdumitriu - (21/06/2009 22:27): But this way you manually copy the jar in a project
arunreddy - (21/06/2009 22:27): ok.
sdumitriu - (21/06/2009 22:28): Maven can't help
arunreddy - (21/06/2009 22:31): Is the pastebin readme file in a understandable manner. ?  The steps especially.
sdumitriu - (21/06/2009 22:32): Yes
arunreddy - (21/06/2009 22:33): :)
vmassol left at 22:37 ()
KermitTheFragger left at 22:54 ("Leaving")
arunreddy - (21/06/2009 23:35): sdumitriu: Is it working ?
arunreddy left at 23:40 (Remote closed the connection)
florinciu left at 23:45 ("ChatZilla 0.9.85 [Firefox 3.0.11/2009060215]")

Get Connected