Wednesday, 2010-06-23

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** tansell-laptop has joined #tp00:06
* llnz is back00:12
llnzStupidIncarnate: ?00:13
StupidIncarnatedo you know why the image/media urls do not come with the image types attached to them?00:16
llnzahh... :-)00:21
llnzhttp://www.thousandparsec.net/wiki/Media.gz00:21
tpbTitle: Media.gz - Thousand Parsec Wiki (at www.thousandparsec.net)00:21
llnzAgon: you might want to read that too00:22
StupidIncarnateoh right, it has it all in the txt file00:24
StupidIncarnatewhy is it in an archive though?00:25
llnzStupidIncarnate: because the file is quite long and repeative00:26
StupidIncarnateit's only 2.5k?b00:26
llnzcurrently00:27
llnzoh, and make sure you get the right one00:27
llnzwhich you did00:28
StupidIncarnateI just wonder because if I do use that, I'll have to have the client unarchive the thing every time the player gets the list of objects, which is every turn00:29
StupidIncarnatethough I suppose I could have it check locally for it, and if not there unzip for later use00:30
llnzwebclient?00:30
StupidIncarnateya00:30
llnzjust pick the correct media on the webserver for the client, and have the client get the media file directly00:30
llnzjust download the media(-new).gz file once, load it into a database and once a day refresh it00:31
StupidIncarnatedatabase?00:31
llnzwebapp local data storage, then00:32
StupidIncarnateoh, I guess I could put it in the session var. Have to check how much that can hold00:32
StupidIncarnateok00:32
llnzmedia.gz is not per-user00:32
llnzcould all users share it?00:33
StupidIncarnateit'd have to save the file to the server00:33
StupidIncarnatewhere the client is stored00:33
StupidIncarnatei suppose it could do that and check the date when the file was created, and if it's a day old redl it00:33
tansell-laptopyou should just check the last modification date00:35
tansell-laptopmost languages can read a gz file fine00:36
tansell-laptopEpyon, ping?00:36
StupidIncarnatek00:36
Agonoh thank you llnz, explains something, but why is there a mediaString send with each object which has a icon or media?00:36
llnzbecause they can be different00:38
StupidIncarnateoh tansell, while you're here, found some image urls that the server sends that are not on the svn.thousandparsec image server00:38
StupidIncarnateerr, that's not what i mean00:40
StupidIncarnatethe server associates the same icon image to universe and galaxy as it does with system00:41
StupidIncarnatethe old tpweb client was using different image icons and they're kind of nice in terms of differentiating the object types. Could you put them on the svn.thousandparsec image server?00:42
*** Agon has quit IRC00:51
*** nash has joined #tp01:16
*** verhoevenv_ has quit IRC02:21
*** Epyon_ has joined #tp02:52
*** Epyon has quit IRC02:55
*** Epyon_ has quit IRC04:22
llnzbbl05:10
*** llnz has quit IRC05:10
*** glew has quit IRC05:31
*** bisc has joined #tp05:38
bisctansell: ping05:49
tansellbisc, pong06:36
bisctansell: a quick question first. Is that true that current game and current player are the first ones in corresponding lists (first in network.connection.games(), second in cache.players)?06:37
alanphmm06:38
tansellbisc, that doesn't sound right06:38
bisctansell: strange. Some code in winMain.py:398 checks if owner == self.application.cache.players[0].id06:39
tansellplayer with the id 0 is the current player06:40
tansellbut cache.players is a dictionary right?06:40
bisctansell: oh yeah, missed this thing. Thought it's a list.06:40
bisctansell: and what about games? It's a dict too?06:41
tansellno idea06:41
tansellbut probably06:41
*** Tradeademon has joined #tp06:43
bisctansell: okay. Another question: how to correctly find the current server URL (and some other info). Couldn't find any "Server" object in libtpproto, and the "Game" object has only version of server.06:43
tansellwhy do you need it?06:43
bisctansell: I'm working on "who am i" window. Thought it's good to show which server we are connected to. Theoretically, I can look this up in ConnectTo window, but that's a hack.06:45
bisctansell: also, I'd enjoy your review of my open issues (except 53001).07:20
tansellyou should use the connection class to get the server information07:20
bisctansell: I don't see any existing methods for that. There are games(), get_orders(), get_objects(), etc. Will probably need to implement something like "get_server_url"?07:36
tansellsee how the media thread does it07:38
*** shikhark1 has joined #tp07:40
*** shikhark1 has left #tp07:40
bisctansell: interesting idea. Have seen something like that in media download code, but can't find it now...07:50
bisctansell: the server url is passed to Media constructor when ConnectTo method of MediaThread is called. I can possibly add an event for that and catch it from my window ... ?07:59
tansellmaybe look at what calls the connectto method?08:00
*** null_000 has joined #tp08:03
bisctansell: it's called from network thread's connectto, which is called from Okay button press handler in winConnect.08:05
null_000morning all08:05
*** llnz has joined #tp08:09
*** Tradeademon has quit IRC08:18
*** Epyon has joined #tp10:15
llnzhi Epyon10:25
tansellEpyon, ping?10:30
* llnz joined twitter today10:31
StupidIncarnatewhyz?10:32
llnzbecause it was becoming necessary10:32
StupidIncarnatefor work?10:32
llnzi won't be updating it too often10:33
llnzfor possible future work10:33
StupidIncarnateah10:33
*** bisc has quit IRC10:35
*** StupidIncarnate has quit IRC11:09
llnzEpyon: progress blog post please, and ping me here about 2030 UTC if you can11:16
*** Agon has joined #tp11:20
llnzhi Agon11:20
llnzi was just looking at parsek, i don't think you are going to be able to use the icons on the starmap itself11:21
llnztoo many objects close together11:21
llnzanyway...11:22
* llnz wanders off11:22
llnzlater all11:22
*** llnz has quit IRC11:22
*** nash has quit IRC11:26
*** bisc has joined #tp11:31
*** cahirwpz has joined #tp11:50
*** StupidIncarnate has joined #tp12:08
*** tradedaemon has joined #tp12:10
*** StupidIncarnate has quit IRC12:10
*** tradedaemon has quit IRC12:10
*** StupidIncarnate has joined #tp12:11
*** StupidIncarnate has quit IRC12:32
*** nash has joined #tp12:35
*** nash_ has joined #tp12:35
*** nash_ has quit IRC12:36
*** cahirwpz has quit IRC12:43
*** Agon has quit IRC13:03
*** null_000 has quit IRC13:56
*** null_000 has joined #tp14:50
*** verhoevenv has joined #tp15:09
*** null_000 has quit IRC15:22
*** bisc has quit IRC15:43
*** null_000 has joined #tp15:56
*** nash has quit IRC15:56
*** null_000 has quit IRC16:22
*** null_000 has joined #tp16:24
*** glew has joined #tp17:52
*** null_000 has quit IRC19:00
*** llnz has joined #tp19:58
llnzmorning all20:01
llnzEpyon: ping20:01
ezodhey lln20:02
ezodz20:02
ezodglew: ping20:02
llnzhi ezod20:09
*** alanp has quit IRC20:46
*** welterde has quit IRC22:38
glewezod: pong22:53
ezodhey22:53
ezodi was just wondering if you have a better idea about commit style?22:54
ezodi know i never sent an email, i figured i'd just catch you here22:54
glewyeah, I think i have a better understanding, Just the first few commits were while i was still modeling off the persistence class22:55
glewbut i've passed that point so i can commit more functional changes22:55
ezodyeah typically it gets easier when you have an established base and you're adding smaller unitary bits or making smaller changes22:57
ezodjust try to be descriptive in your commit messages and don't be afraid to make lots of commits22:57
glewok22:58
llnzglew: where is the repo?23:16
glewllnz: its on github23:17
glewits a fork of tpserver-cpp23:17
glewcould you help me setup the mysql persistence module so i can test and compare it with sqlite23:18
*** welterde has joined #tp23:35
* llnz doesn't have flash23:38
llnzglew: what's you username on github?23:38
glewllnz: glew23:40
llnzcool, looking now23:41
llnzlooks like you are doing ok23:47
llnzwhat do you need help with for the mysql persistence?23:48
glewwell i know that you can specify in config files to use mysqlpersistence23:48
glewbut when i looked in my install directory there are no persistence modules tehre23:49
llnzdo you have the mysql development libraries and headers installed?23:56
llnzdoes configure correction detect them?23:56
glewi don't think i do, should i just look them up in synaptic23:56

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!