#pokersource@irc.freenode.net IRC Log for
Tuesday 26 January 2010

Back to #pokersource@irc.freenode.net Log Calendar

Back to to Monday 25 January 2010


Poker Free Software http://pokersource.info/ with IRC archives http://pokersource.info/irc/pokersource@irc.freenode.net/"

00:02:09 mornifle joined #pokersource.
00:02:44 malwin quit IRC ("Leaving").
00:24:15 bkuhnIdle is now known as bkuhn.
00:24:22 UsoppTheGreat joined #pokersource.
01:00:55 macmaN quit IRC (Read error: 104 (Connection reset by peer)).
01:24:04 MotherOfCOBOL quit IRC (kubrick.freenode.net irc.freenode.net).
01:24:12 MotherOfCOBOL joined #pokersource.
01:25:41 macmaN joined #pokersource.
01:43:39 macmaN quit IRC (Read error: 104 (Connection reset by peer)).
02:19:42 UsoppTheGreat quit IRC (Read error: 104 (Connection reset by peer)).
02:21:00 dachary quit IRC (Read error: 113 (No route to host)).
02:48:56 bkuhn quit IRC ("Sleeping. Back online around 06:30 US/Eastern.").
03:47:33 macmaN joined #pokersource.
03:50:32 macmaN quit IRC (Read error: 104 (Connection reset by peer)).
05:53:36 macmaN joined #pokersource.
05:56:35 macmaN quit IRC (Read error: 104 (Connection reset by peer)).
07:07:42 macmaN joined #pokersource.
08:46:56 mongolito404 joined #pokersource.
08:55:23 mongolito404: Hello World
08:56:55 Sp4rKy: hello you
09:29:44 proppy joined #pokersource.
09:44:17 bruno|taf joined #pokersource.
09:59:50 mongolito404: For http://drupal-dev.pokersource.info/z2/ticket/21, if I handle event BUYS IN to substract the money from the user account... what event should I listen to to get the money back when leaving the table ?
10:03:58 proppy: mongolito404: you should not substract it yourself
10:04:11 proppy: but instead refresh the money from appdata
10:04:20 proppy: the poker server is doing the following:
10:04:28 proppy: wait for buyin event
10:04:46 proppy: update appdata with new money amount
10:04:59 proppy: forward the event to drupal using /events/...
10:05:05 proppy: (or messages)
10:05:17 mongolito404: I don't understand, what should I do when I receive the BUY_IN event ?
10:06:06 mongolito404: Received paameters are user seriel, table serial and buy in amount
10:06:07 proppy: mongolito404: we should find a way to fresh the amount of chips displayed in the upper area
10:06:17 proppy: s/fresh/refresh
10:06:57 mongolito404: The EVENT is fowarded to drupal only after the amount has been removed from the user account, right ?
10:07:18 proppy: yes
10:07:36 proppy: mongolito404: and updated in the appdata
10:08:38 proppy: pokersocial.py does
10:08:39 proppy: money = Pokersocial.queryPlayerMoney(service, packet.param1)
10:08:39 proppy: for container in info['url2container'].values():
10:08:40 proppy: Pokersocial.exportPlayerMoney(service, container, packet.param1, money)
10:08:43 proppy: and then
10:08:53 proppy: if hasattr(info['settings'], 'notify'):
10:08:53 proppy: service.getPage(info['settings'].notify % {
10:08:53 proppy: 'event_name': event2name[packet.event],
10:08:53 proppy: 'event': packet.event,
10:08:53 proppy: 'param1': packet.param1,
10:08:54 proppy: 'param2': packet.param2,
10:08:56 proppy: 'param3': packet.param3
10:08:57 proppy: })
10:09:00 proppy: these are 2x http request
10:09:16 proppy: maybe we should take extra precaution to be sure the first one is resolved before b
10:09:47 mongolito404: Yes
10:10:52 mongolito404: If not, I can guarantee that the user chips count will not be refreshed after the AppData update.
10:11:04 proppy: https://gna.org/bugs/?15207 filled
10:11:31 proppy: mongolito404: how do you plan to refresh the amount of userchips ?
10:11:49 proppy: using the existing os_poker_messages stuff ?
10:12:01 mongolito404: Yes
10:12:03 proppy: I mean the javascript one
10:12:04 proppy: ok
10:12:18 proppy: mongolito404: if it is too complicated
10:12:39 proppy: we may be able to call a fonction from jpoker
10:12:41 proppy: in window.top
10:13:00 mongolito404: Yes, a CUpdateUserChipsCount is enqueued when receiving the BUY_IN event.
10:13:11 proppy: ok
10:13:14 proppy: nice then
10:13:35 proppy: mongolito404: got to go
10:13:43 proppy: mongolito404: do you have an extra question ?
10:13:51 mongolito404: no
10:15:16 proppy: see you then
10:16:04 proppy quit IRC ("Leaving.").
10:18:25 dachary joined #pokersource.
10:59:19 mongolito404: dachary: Is it ok to use ImageCache for http://drupal-dev.pokersource.info/z2/ticket/2 ?
11:02:38 dachary: mongolito404: I've read your rationale and I trust your judgement
11:04:39 dachary: mongolito404: I tend to think this issue should not be given too much attention. The algorithm is complex and not well thought. I'm quite sure the end result will not be what is desired. And I'm quite sure what is desired is not known.
11:04:45 dachary: mongolito404: does this make sense ?
11:05:21 dachary: I don't know how much work this is, but as uploading a user image is really fundamental on most community sites I can hardly imagine that this basics needs to be define by ourselves.
11:05:29 mongolito404: dachary: Yes, using ImageCache would help us since it will handle all the process
11:05:42 dachary: ^ this is the last comment from andre
11:06:25 dachary: mongolito404: is the idea more or less to say : let ImageCache does what it does even if it's not as described in the description ?
11:06:36 dachary: could you remind me the URL of ImageCache ?
11:06:53 mongolito404: dachary: ImageCache apply preset to the image
11:07:04 mongolito404: So changing the process means redefining the preset
11:07:26 dachary: I remember you told me about ImageCache but it's not in the ticket, was it in a mail ?
11:07:27 mongolito404: And the preset is cleanly separated from the code using it
11:07:42 mongolito404: Plus, it can be modified from the Web UI (if needed)
11:07:49 mongolito404: dachary: Yes a mail
11:07:55 mongolito404: http://drupal.org/project/imagecache
11:09:28 mongolito404: I'll have to test it first because it may needs clean-url which are not currently activated on the sites
11:09:58 dachary: that looks good. I think using it and chosing an already defined "Profile" (in the ImageCache parlance) is enough. There is no need to define a new profile that would implement the described behaviour.
11:10:23 dachary: That simplifies the work & is probably what is ultimately desired anyway.
11:11:03 mongolito404: Yes there is, Imagecache doesn't provide any "profile", only "actions" used to define profiles. So we will need a profile for the described behavior.
11:11:28 dachary: It's sometime really difficult to figure out what the user wants. In this case the description is clearly a cry for help : "I don't know what I want, I want something that's better than nothing!". Since imagecache provides that, I think we can drop the description.
11:13:24 dachary: mongolito404: there most certainly are pre-defined profiles to be found. I doubt everyone create one from scratch. Unless it's very easy ( like : my image shows in two sizes, 118x118px and 69x69px ) in which case it's ok. If however the profile goes in deep details such as the one described in the description, it's too much. Does this make sense ?
11:13:38 dachary trying to read documentation about ImageCache
11:14:37 dachary: is http://drupal.org/project/imagecache_profiles useful ?
11:15:06 dachary reading http://drupal.org/node/163561
11:16:34 mongolito404: dachary: Probably not because it sets three different size used for std. profile page (ie. /user/$uid and not /poker/profile/profile/$uid), comment and default.
11:17:05 dachary: ok
11:17:46 dachary: mongolito404: "and requires clean urls to be enabled." http://drupal.org/node/163561
11:18:02 mongolito404: For this it uses HOOK_preprocess_user_picture to which is already used by os_poker to user nickname instead of name (== email with os_poker)
11:18:31 mongolito404: http://drupal.org/node/410200 and http://drupal.org/node/241541
11:19:12 mongolito404: Can we requires clean-url (needs server configuration) ?
11:20:56 mongolito404: But using http://drupal.org/node/241541#comment-2516554 + http://drupal.org/node/410200#comment-1822478 + http://drupal.org/node/410200#comment-2241056 could remove this requirements
11:21:14 dachary: mongolito404: clean URLs is desirable, yes. But I fear this will break a number of things and we will discover them over a long period of time.
11:21:33 mongolito404: dachary: I fear it too
11:21:36 dachary: :-)
11:28:20 proppy joined #pokersource.
11:35:26 proppy: dachary: ping
11:35:37 proppy: filled https://gna.org/bugs/?15207
11:35:57 proppy: poker_log: seen dachary
11:37:27 proppy: 2010012610:16:04 proppy quit IRC ("Leaving.")
11:37:27 proppy: 2010012610:18:25 dachary joined #pokersource
11:37:28 proppy: ahah
11:37:31 proppy: we missed each other
11:39:12 proppy: :)
11:40:25 guyvdb quit IRC ("Leaving.").
11:41:54 mornifle: Sp4rKy: Hi, could you add my public key to pokermaniaworld.com ?
11:43:08 mongolito404: dachary: With ImageCache, http://drupal-404.pokersource.info/drupal6/sites/default/files/pictures/e0s5j8.jpg is scaled and cropped to http://drupal-404.pokersource.info/drupal6/?q=sites/default/files/imagecache/user_picture_large/pictures/e0s5j8.jpg
11:44:38 Sp4rKy: mornifle: sure
11:44:46 mornifle: Sp4rKy: thank you
11:45:07 dachary: mongolito404: ok
11:49:36 mornifle: mongolito404: hi !
11:49:59 mongolito404: mornifle: Hi
11:50:32 mornifle: mongolito404: now i have access to pmw, if i am correct i should replace the div with html part i pasted a few day ago, then you will hide it with javascript. is it correct ?
11:51:31 mongolito404: The current JS will not hide it
11:52:00 dachary: mongolito404: I think a good approach with what mornifle wants to do is that he adapts his HOWTO directly on pmw, so that it's applied on the pmw theme only
11:52:04 mongolito404: And I don't know where you should replace the HTML... I don't know because there is several place where it could be done
11:52:27 mongolito404: There isn't any pmw theme. There is poker which is inherited by pbpoker
11:52:38 dachary: when this is done, he will have a mercurial diff that you will be able to pull
11:52:55 dachary: mongolito404: ah, right
11:53:07 mongolito404: So if we change it in the poker theme, it will also be changed in pbpoker unless pbpoker re-override it
11:53:35 mongolito404: So the girst step is probably to create a dedicated pmw theme as a sub-theme of the poker one
11:54:04 dachary: that's a big step
11:54:24 dachary: We should aim at producing a diff (just a diff) that applies on pmw
11:54:48 dachary: We should aim at producing a diff (just a diff) that applies on the pmw base theme. That's a first step that's manageable.
11:55:04 mongolito404: Ok
11:55:21 dachary: When we have such a diff (i.e. the result of applying the howto on the pmw base theme), we can think about the next step.
11:55:39 dachary: Moreoever, in terms of maintainance, such a diff is not too much of a burden.
11:56:07 proppy1 joined #pokersource.
11:56:26 dachary: You can still deploy everything the way it is. And if you want the pok.me insert, you can apply the diff. If the diff fails, you can adapt to the changes in the pmw at this point.
11:57:12 mongolito404: The template is actually in os_poker, it can be modified there.
11:57:19 proppy quit IRC (Read error: 113 (No route to host)).
11:57:32 dachary: mongolito404: ok
11:57:47 mongolito404: So mornifle, you should add the embeddding code to modules/table_users.tpl.php
11:58:11 mornifle: mongolito404: ok
11:58:12 proppy1 is now known as proppy.
11:58:41 dachary: the output of mornifle work should be an updated howto that includes a) the diff, b) recommendations for the next step from you. This way we move forward, we see something, we benefit from mornifle good will, we take advantage of your expertise without requiring much time from you.
11:59:53 dachary: mongolito404: mornifle if you think of a more efficient way to move forward, I'm all ears :-)
12:00:13 mornifle: no it seems good to me to add my change like that
12:00:33 mongolito404: mornifle: The content of the
will be cleaned by the os_poker_update_lobby function in modules/os_poker/js/os_poker.toolkit.js
12:00:42 mongolito404: So don't put your code in it, but after it
12:00:58 mornifle: ok
12:01:15 mornifle: i can't login anymore on the website, something has changed ?
12:01:17 dachary: mongolito404: I know how you feel about temporary solutions. And I do too. In this case we get the best of both worlds. A quick fix that's not a hack that will bother you, and a documented way to turn it into something more permanent, when the time comes.
12:01:52 dachary: mornifle: what command line do you use ?
12:02:11 mongolito404: Then you need to add css rules to themes/poker/main.css to hide the video when the contained in a div that doesn't have the 'splash' class. Does it make sens for you ?
12:02:14 guyvdb joined #pokersource.
12:02:29 mongolito404: dachary: I understand
12:02:33 mornifle: dachary: i talk about the website, the login/pass
12:03:08 dachary: mornifle: you can't signup + login ?
12:03:53 mornifle: yah i can't signup
12:04:07 mornifle: i had a login but it does not work
12:04:24 dachary: sign up is when you create an account
12:04:34 dachary: sign in is when you login with an existing account
12:04:47 dachary: create yourself another account, the user base was reset
12:04:47 mornifle: sign in is when you login with an existing account
12:05:22 mornifle: maybe but it says that i already have an account
12:09:29 dachary: you can use forget password or create another account if the mail was fake
12:11:25 mornifle: i did it, i am waiting the mail, we will see
12:11:33 proppy: https://gna.org/bugs/index.php?13717 reopened
12:16:24 mornifle: mongolito404: where is the file i am supposed to modify to set my html code ? and about the main.css there is no /usr/share/drupal6/themes/poker/main.css
12:17:35 mongolito404: modules/os_poker/table_users.tpl.php
12:18:08 mongolito404: base dir is /etc/drupal/6/sites/all
12:18:13 mornifle: ho ok
12:18:29 mongolito404: oir ~/drupal if you are root
12:23:41 mornifle: dachary: there is a problem with the login i have access denied on the page, trying to make a new account
12:24:47 mornifle: well miam time
12:33:00 mongolito404: Lunch time here too
12:39:24 proppy: lunch time
13:18:21 dachary quit IRC (Read error: 113 (No route to host)).
13:58:52 mongolito404: back
14:02:55 dachary joined #pokersource.
14:02:58 mongolito404: proppy: ping ?
14:17:34 Sp4rKy: dachary: proppy can I migrate packaging-farm ,
14:17:36 Sp4rKy: ?
14:25:20 boudy joined #pokersource.
14:29:39 boudy: Hi , in poker-web , there is constant.php , the line : define('_cst_poker_soap_host', 'http://localhost:19382/SOAP') , gives error
14:29:46 boudy: Any clue ?
14:35:36 proppy: mongolito404: back
14:35:51 dachary quit IRC (Read error: 110 (Connection timed out)).
14:36:00 proppy: boudy: poker-web is not maintained anymore AFAIK
14:36:32 mongolito404: proppy: For http://drupal-dev.pokersource.info/z2/ticket/2 user pictures are allowed to be larger than the expected size for jpoker.
14:37:03 mongolito404: I my understanding is correct, ShindigIntegrator is responsible for passing the user picture URL to the gadget. Right ?
14:37:25 mongolito404: s/I/If
14:37:42 boudy: What do you mean proppy but not maintained ?
14:38:26 proppy: boudy: much of the changes are done in poker-network and jpoker right now
14:39:20 bkuhn joined #pokersource.
14:39:21 boudy: What do you suggest?
14:39:33 proppy: boudy: why are you using poker-web ?
14:39:38 proppy: boudy: and which version ?
14:40:12 proppy: mongolito404: IIRC poker-network is also settings picture_url to picture-{serial}.png
14:40:17 proppy: which is kind of redondant
14:40:52 proppy: mongolito404: jpoker use the value set by shindig integrator by default in THUMBNAIL_URL
14:41:03 proppy: but also use picture-{serial}.png
14:41:06 boudy: we made flash poker , and we are trying to configure poker-web on iis
14:41:12 proppy: and the 2 div are displayed on top of each other
14:41:24 proppy: boudy: are you using aspoker ?
14:42:05 boudy: What is aspoker ?
14:43:09 proppy: boudy: a flex poker client developped by bruno|taf http://svn.gna.org/viewcvs/pokersource/trunk/aspoker/
14:43:16 mongolito404: proppy: proppy but a) Drupal make no restriction to the type of the file b) The user picture has been requested to be 118x118 c) My current solution store the picture as provided by the user and resize it 'on the fly' when requested at a special url.
14:44:02 proppy: mongolito404: we can adapt jpoker css to crop/resize the image ?
14:44:03 mongolito404: The pciture is rtrieved directly from the DB in ShindigIntegratorDbFetcher
14:44:20 boudy: not using aspoker we made our own flash poker with pokersource server
14:45:10 proppy: boudy: poker-web only handle the creation of account, and basic cashier
14:45:49 proppy: boudy: but we have similar fonctionnalite in jpoker (javascript poker client) now
14:46:18 boudy: Where can i look for it ?
14:46:32 proppy: boudy: http://jspoker.pokersource.info/jpoker/
14:47:06 proppy: boudy: and we are also able to use opensocial now, for using an external user database
14:48:03 boudy: All this source are found in this link http://jspoker.pokersource.info/jpoker/ ?
14:48:17 proppy: boudy: use http://jspoker.pokersource.info/
14:48:22 proppy: for project information
14:48:57 proppy: Sp4rKy: mysql down on jspoker.pokersource.vm.gnt
14:48:59 boudy: the issue is that we are having problem setting up poker-web on iis
14:49:13 proppy: boudy: how are you displaying the table ?
14:49:17 proppy: boudy: inside the client ?
14:49:21 proppy: inside the flash client ?
14:49:49 boudy: you want to have a look ?
14:49:55 Sp4rKy: proppy: I look
14:49:56 proppy: Jan 26 13:47:55 jspoker mysqld[13438]: InnoDB: buffer...
14:49:56 proppy: Jan 26 13:47:56 jspoker mysqld[13438]: InnoDB: Error: pthread_create returned 12
14:50:06 proppy: Sp4rKy: I guess this is because there is only 128Mb of ram
14:50:14 proppy: boudy: sure, is it opensource ?
14:50:18 Sp4rKy: -/+ buffers/cache: 105 15
14:50:20 proppy: or free software
14:50:21 Sp4rKy: maybe memory issue
14:50:32 proppy: Sp4rKy: yes there seems to be only 128Mb of memory
14:50:37 Sp4rKy: yes
14:50:48 Sp4rKy: i set 256
14:51:17 proppy: boudy: maybe you could do what pokerweb is doing in the flash client
14:51:18 mongolito404: proppy: Is the Shindig-integrator easy to contact ?
14:51:22 mornifle: is anyone has a loggin to connect on pokermaniaworld.com i still can't login. mongolito404 ?
14:51:29 proppy: mongolito404: "easy to contact" ?
14:51:34 proppy: mongolito404: you mean the developper ?
14:51:42 mongolito404: proppy: yes
14:51:43 proppy: mongolito404: or easy to make request to from jpoker ?
14:51:56 proppy: mongolito404: I have filled a few bug report with no response so far
14:52:16 proppy: mongolito404: last time he replied was in october IIRC
14:52:22 proppy: mongolito404:
14:52:23 proppy: http://drupal.org/project/ShindigIntegrator
14:52:31 mongolito404: mornifle: I cannot signup either
14:52:43 mornifle: mongolito404: ok thanks
14:54:05 mongolito404: proppy, Sp4rKy: We tracked an issue with a non-working authentication on pmw. A change in the server config (because of the reverse-proxy or something like that). Has the fix been reverted.
14:54:18 mongolito404: The symptoms are the same on pmw
14:54:46 Sp4rKy: the preservehost ?
14:55:02 mongolito404: Sp4rKy Yes
14:55:28 Sp4rKy: ehhh, you seems right
14:56:39 Sp4rKy: 2s
14:57:31 mongolito404: proppy: ShindigIntegratorDbFetcher don't fully drupal, currently it loads some of its file. do you think it would be a problem to fully initiliaze Druplain it (including bottstrap.inc then calling drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); should do the job)
14:58:15 Sp4rKy: mongolito404: is it better now ?
14:58:45 mongolito404: Sp4rKy: Yes
14:58:55 mongolito404: mornifle: You should be able to login/signup now
14:58:55 Sp4rKy: proppy: can I reboot jspoker now ?
14:58:56 Sp4rKy: mongolito404: ok
14:59:00 proppy: Sp4rKy: sure
14:59:09 mongolito404: proppy: If we do this, we can then patch ShindigIntegratorDbFetcher::getPeople to use std. practive in the Drupal world to let any module alter the returned person.
14:59:46 mongolito404: proppy: But this may have been ruled out by ShindigIntegrator dev. for one reason or another.
15:00:09 proppy: mongolito404: that's a good idea, but keep in mind that shindigIntegratordbfetch is called outside of drupal now
15:00:15 proppy: from shindig rpc api
15:00:30 proppy: jpoker make http call to shindig rpc api, throught opensocial
15:00:58 proppy: and shindigintegrator implements shindig rpc api interface
15:01:18 mongolito404: proppy: Yes, I understand
15:01:29 proppy: so even if shindigintegrator uses drupal db, and some of its code
15:02:01 mongolito404: But loading the Drupal env. shouldn't be a problem. It doesn't means Drupal will handle the code, just that the all drupals internals wil be available as well as all the module.
15:02:02 proppy: the opensocial rpc part, doesn't got throught drupal url routing system for example
15:02:08 proppy: it is outside of drupal
15:02:13 proppy: mongolito404: nice then
15:02:40 Sp4rKy: proppy: jspoker restarted, mysql started
15:03:09 mongolito404: proppy: Is shindig-integrator in its own mercurial repository on drupal-*.pokersource.info ?
15:03:25 boudy: What could cause the SOAP error ?
15:04:32 proppy: boudy: I honestly don't know, I'm still wondering why you want to use poker-web ?
15:04:55 proppy: you could use jpoker for doing most of the lobby stuff
15:05:12 proppy: boudy: you can take a look at http://jspoker.pokersource.info/jpoker/
15:05:20 proppy: it should works now
15:05:28 proppy: mongolito404: sadly not
15:05:48 proppy: mongolito404: and it's heavily patched
15:06:02 mongolito404: Why isn't it in the "main" dir with other modules ?
15:06:03 proppy: mongolito404: it is part of the / mercurial repository
15:06:08 mongolito404: Could it be moved there ?
15:06:13 boudy: If i'm using pokersource as a server and i made a flash client , whay should i use for registration , cashi in , out?
15:06:27 proppy: boudy: you could use you flash client, or jpoker
15:06:38 proppy: boudy: or opensocial
15:06:55 proppy: mongolito404: feel free to move it there
15:07:06 proppy: mongolito404: it is in /usr/src for historical reseau
15:07:09 proppy: reason
15:07:17 boudy: Where the source of those ?
15:07:17 proppy: I installed it using a symbolic link
15:07:57 proppy: boudy: jpoker -> http://upstream.jspoker.pokersource.info/
15:08:06 proppy: boudy: opensocial adapter -> http://opensocial.pokersource.info/
15:08:24 proppy: boudy: php/mysql adapter -> http://lamp.pokersource.info/
15:08:33 proppy: boudy: your flash client -> I don't know ? :)
15:08:53 boudy: thanks :)
15:10:07 proppy: boudy: you could use PacketPokerCreateAccount to create an account
15:10:46 proppy: boudy: and standard mysql request to cashin / cashout
15:11:07 proppy: there is even a pluggable authentification database in poker-network IIRC
15:12:12 boudy: What about balance modification while playing , which packet ?
15:13:38 mornifle: mongolito404: i make some test so dont be affraid if user table is broken while i am testing
15:14:09 proppy: boudy: what do you mean by balance modification ?
15:15:05 mongolito404: proppy: I guess Shindig would be happy if I let Dupal set the Content-Type when loading ShindigIntegratorDbFetcher.php
15:15:27 boudy: In web-poker your balance is updaing while you are playing
15:15:28 proppy: mongolito404: dunno :)
15:15:53 proppy: boudy: poker-web is only displaying what comes from user2money table
15:16:06 proppy: IIRC
15:17:09 boudy: The connection is between poker-web and database ?
15:17:55 proppy: boudy: ah no sorry
15:17:58 proppy: looking at poker-web code
15:18:01 proppy: it seems it uses PacketPokerPersonalInfo
15:18:09 proppy: to get the chips amount
15:18:19 proppy: function isLoggedIn() {
15:18:19 proppy: $packets = $this->sendNoAuth(array('type' => 'PacketPokerGetPersonalInfo'));
15:18:19 proppy: if($packets[0]['type'] == 'PacketPokerPersonalInfo')
15:18:19 proppy: return $packets[0];
15:18:19 proppy: else
15:18:20 proppy: return false;
15:18:21 proppy: }
15:18:25 proppy: $user_info = $poker->isLoggedin();
15:18:37 proppy: if(is_array($user_info['money'])) {
15:18:37 proppy: foreach ( $user_info['money'] as $currency => $state ) {
15:18:37 proppy: print _('bankroll')." ".substr($state[0], 0, -2).".".substr($state[0], -2).", "._('in game')." ".$state[1].", "._('point')." ".$state[2]." ("._('currency')." ".$currency.")

";

15:18:38 proppy: }
15:18:38 proppy: }
15:18:38 proppy:
15:20:09 boudy: If i want to make a website similar to poker-web , what should i take into consideration ?
15:21:15 mornifle: mongolito404: i need to add some images, where should i add it in order to be able to write something like
15:21:36 mongolito404: In the .tpl.php file
15:21:49 proppy: boudy: I'm not sure, you better ask the mailing list about it
15:22:07 mornifle: mongolito404: yeah but the file seems to be unreachable
15:22:12 proppy: https://mail.gna.org/listinfo/pokersource-users
15:22:18 mongolito404: mornifle: POut the HTML in modules/os_poker/table_users.tpl.php
15:22:33 mornifle: yeah but the .png file ?
15:22:39 mongolito404: The the file used to render the top-rigth box
15:22:40 proppy: boudy: I would rather try to participate in the current effort into drupal/jpoker integration, rather than using deprecated poker-web
15:23:01 mongolito404: Put the images in modules/os_poker/images
15:23:14 boudy: Who will be answering me proppy ?
15:23:16 proppy: boudy: but feel free to take over maintainance of poker-web, and announce your plan on the mailing liste
15:23:18 mornifle: mongolito404: ok
15:23:40 proppy: boudy: maybe dachary, or other pokersource developers
15:23:57 proppy: boudy: you could also ask about pokerlamb there
15:23:58 mongolito404: And in the .tpl.php file use /images/YOURFILE.png); ?> to output an IMG tag
15:24:10 proppy: which is another way to interface a php/mysql website with pokersource
15:36:23 mornifle: mongolito404: seems to print nothing
15:37:18 mongolito404: Sorry, use theme('image', drupal_get_path('module', 'os_poker') . '/images/YOURFILE')
15:40:52 mornifle: mongolito404: good, could you have look, i dont understand why there is a small offset with the arrow image
15:40:53 dachary joined #pokersource.
15:42:34 mongolito404: mornifle: Your replaced all the content of modules/os_poker/table_users.tpl.php ?
15:43:08 mornifle: yes to test, but i made a second file to restore it
15:43:11 mongolito404: You have have included your code after the empty
15:43:24 mongolito404: That means between line 10 and 11
15:43:37 mornifle: ok i do it
15:43:43 mongolito404: The layout CSS is horrible and rely on the element found in the tpl
15:44:12 mornifle: mongolito404: i dont know css so i just follow what you are saying :)
15:46:47 proppy: updated https://gna.org/bugs/index.php?13717
15:46:52 proppy: with a patch to reproduce it
15:50:04 mongolito404: proppy: I'm trying something in ShindigIntegratorDbFetcher, but it fails. In firebug, the makeRequest returns an error 500. Because the python server fails to parse the RPC call response. Is there a log so I can see what the python server recived ?
15:50:21 proppy: mongolito404: cat /tmp/debug
15:50:38 mornifle: mongolito404: ok i put the as you said, and i tried to remove the div userlist in order to test it, and it works as it should
15:51:03 mornifle: mongolito404: thank you so much, about the logic i dont know what to do
15:52:53 mongolito404: Now you need CSS rules to hide userlist when its container has the splash class. And another to hide the video if it's container doesn't have the splash class.
15:54:27 mornifle: mongolito404: how do i do that ? i need javascript or something like that ?
15:54:27 mongolito404: div.list.splash .userlist {display: none;}
15:54:27 mongolito404: div.list #pokme_pub {display: block;}
15:54:27 mongolito404: div.list.splash #pokme_pub {display: block;}
15:54:44 mongolito404: No, you put the CSS in themes/poker/main.css
15:54:51 mornifle: ok
15:54:58 mongolito404: The JS to add/remove th splash class is already there
15:56:32 mornifle: ok
16:01:06 mornifle: mongolito404: ok i added a POKME video stream section in main.css with the code you pasted
16:02:01 mornifle: and it works
16:08:48 mornifle: i commited the changes
16:08:57 mornifle: mongolito404: thank you for your help !
16:09:05 boudy quit IRC (Ping timeout: 180 seconds).
16:15:15 dachary1 joined #pokersource.
16:15:47 mongolito404: proppy: Yes, I've modified ShindigIntegratorDbFetcher to bootstrap the full Durpal env.
16:16:18 mongolito404: proppy: Now, it's getPeople method call drupal_alter('people', $ret) before returning $ret.
16:16:26 proppy: mongolito404: :)
16:16:44 mongolito404: And any module can implements hook_people_alter() to modify this file.
16:16:58 mongolito404: It is ugly but I believe this is the way to go for a Drupal module.
16:18:11 mongolito404: This allow module to completer or alter every person returned by the module. For instance, Here I need it to alter the picture but it can also be used to alter the name, the mood or whatever.
16:19:55 proppy: nice
16:20:38 proppy: mongolito404: this is a very valuable addition, do you plan to attach the patch to a new shindig integrator issue ?
16:22:21 mongolito404: proppy: Yes
16:26:44 proppy: https://gna.org/bugs/index.php?13717 updated with a fix
16:30:54 dachary quit IRC (Read error: 110 (Connection timed out)).
16:33:07 proppy: ported the patch to trunk https://gna.org/bugs/index.php?13717
16:35:05 mornifle quit IRC (Read error: 113 (No route to host)).
16:49:21 dachary1 quit IRC (Read error: 104 (Connection reset by peer)).
16:49:22 dachary joined #pokersource.
16:49:54 dachary: proppy: poker-network 2.0 compiled in the packaging-farm for lenny and sid
17:12:26 proppy: dachary: nice
17:16:44 dachary building 1.7.6-2
17:19:21 proppy: dachary: there are additional patch up to review on https://gna.org/bugs/index.php?13717
17:19:26 proppy: for 2.0.0 and 1.7.6
17:20:39 krawe quit IRC (Read error: 110 (Connection timed out)).
17:23:13 krawe joined #pokersource.
17:25:54 krawe quit IRC (Client Quit).
17:26:13 krawe joined #pokersource.
17:28:04 mongolito404: proppy: In ShindigIntegratorDbFetcher, $this->url_prefix is build from the parsed DB URL but used as URL to the Drupal installation. WTF ?
17:28:05 dachary: proppy: https://gna.org/bugs/index.php?13717#comment13
17:28:23 mongolito404: (I know it is from the "original" file)
17:32:45 proppy: dachary: https://gna.org/bugs/index.php?13717#comment14
17:55:14 mornifle joined #pokersource.
18:02:04 mornifle: dachary: which logo should i put instead outflop ?
18:06:14 dachary quit IRC (Read error: 110 (Connection timed out)).
18:30:27 dachary joined #pokersource.
18:33:14 dachary quit IRC (Client Quit).
18:33:20 dachary joined #pokersource.
18:57:54 guyvdb quit IRC ("Leaving.").
19:32:03 mongolito404: proppy: I moved the ShindigIntegrator directory from /usr/src to drupal's site/all/modules
19:35:02 mongolito404: Now, I get ConfigException in Shindig's classes. I guess it doesn't look for the config at the right place. Any clue on how to fix this ?
19:44:46 proppy: mongolito404: grep /usr/src in shindig :)
20:01:26 mongolito404: Nothing...
20:01:38 mongolito404: Except for php path to drupal
20:04:11 mongolito404: proppry: Did you patch shindig/php/src/comman/Config.php ?
20:17:24 guyvdb joined #pokersource.
20:23:25 mornifle quit IRC (Read error: 113 (No route to host)).
20:25:19 proppy quit IRC ("Leaving.").
20:30:47 mongolito404: wow, I realize that ShindigIntegrator hardcoded the module path in a lot of place
20:31:26 mongolito404: This is not very Drupal friendly since a module should not be required to be installed in sites/all/modules :(
20:47:30 Boudy joined #pokersource.
21:22:00 mongolito404 quit IRC ("Leaving.").
21:28:52 Boudy: Does anyone know what that link means : http://localhost:19382/SOAP ?
23:07:26 CIA-62 quit IRC (Read error: 60 (Operation timed out)).
23:32:58 macmaN quit IRC (Read error: 54 (Connection reset by peer)).
23:46:22 macmaN joined #pokersource.
23:49:32 CIA-45 joined #pokersource.

Proceed to Wednesday 27 January 2010



Brought to you by your friendly neighborhood Logger Bot.