| 00:31:02 | spsneo: | Testbaudson: hello |
| 00:31:23 | Testbaudson: | hi spsneo |
| 00:31:29 | spsneo: | Testbaudson: can we discuss something for a couple of minutes |
| 00:31:36 | Testbaudson: | 5 minutes, ok |
| 00:31:37 | spsneo: | I wont take more than 5 minutes |
| 00:31:56 | spsneo: | Ya I was finalizing the code.. |
| 00:32:16 | spsneo: | and so I tried to use already built database functions |
| 00:32:26 | spsneo: | in http/php |
| 00:32:37 | spsneo: | there is a file database-pgsql.php |
| 00:32:54 | spsneo: | where all the functions are coded to do all the db querires etc.. |
| 00:33:14 | spsneo: | but there are few things which has puzzeled me |
| 00:33:35 | spsneo: | like in line no. 127 |
| 00:33:44 | spsneo: | theres a function pg_exec |
| 00:33:54 | spsneo: | but theres no such predefined function |
| 00:33:56 | spsneo: | ? |
| 00:34:28 | spsneo: | theres a function pg_execute |
| 00:34:55 | spsneo: | and similarly theres no function pg_fieldname as in line no. 294 |
| 00:35:09 | spsneo: | theres a function nameed pg_field_name |
| 00:35:19 | spsneo: | I am not getting how things are working here |
| 00:35:21 | spsneo: | ? |
| 00:35:25 | Testbaudson: | guess they are deprecated php4 functions |
| 00:36:08 | spsneo: | ok ! |
| 00:36:23 | spsneo: | I was hoing through php 5 manual |
| 00:37:00 | spsneo: | so how often are these codes revised? |
| 00:38:15 | spsneo: | Testbaudson: so should I use those functions or should I create my own for connecting and executing queries etc.? |
| 00:39:23 | Testbaudson: | maybe do some more research... |
| 00:39:28 | Testbaudson: | and do it according to your own judgment |
| 00:39:41 | spsneo: | ok thanks |
| 00:44:12 | spsneo: | Testbaudson: ya I googled and found that those are php4 functions |
| 00:44:40 | Testbaudson: | ok |
| 02:39:22 | spsneo: | Testbaudson: hello |
| 02:39:33 | spsneo: | Testbaudson: just one more question |
| 02:39:37 | spsneo: | hope you dont mind |
| 02:53:18 | Testbaudson: | hi spsneo |
| 02:53:26 | spsneo: | Testbaudson: hello |
| 02:58:19 | spsneo: | Actually I wanted some advice |
| 02:58:19 | spsneo: | The update script can be executed in two ways |
| 02:58:20 | spsneo: | 1> from the browser through apache |
| 02:58:22 | spsneo: | 2> from command line |
| 02:58:24 | spsneo: | I was thinking of the second option |
| 02:58:26 | spsneo: | because it would be more secure |
| 02:58:28 | spsneo: | though the script will be same |
| 02:58:30 | spsneo: | I would just have to add a couple of line to restrict the code from using it through browser |
| 02:58:32 | spsneo: | ? |
| 02:58:38 | spsneo: | Testbaudson: hello |
| 02:58:47 | Testbaudson: | command line is preferred |
| 02:59:04 | spsneo: | The update script can be executed in two ways |
| 02:59:04 | spsneo: | 1> from the browser through apache |
| 02:59:04 | spsneo: | 2> from command line |
| 02:59:04 | spsneo: | I was thinking of the second option |
| 02:59:04 | spsneo: | because it would be more secure |
| 02:59:20 | spsneo: | though the script will be same |
| 02:59:25 | spsneo: | I would just have to add a couple of line to restrict the code from using it through browser |
| 02:59:47 | spsneo: | ? |
| 02:59:55 | spsneo: | Testbaudson: what do u suggest |
| 02:59:57 | spsneo: | ? |
| 03:00:33 | Testbaudson: | command line is preferred |
| 03:00:54 | Testbaudson: | your connections seems laggy |
| 03:01:05 | spsneo: | Testbaudson: ya |
| 03:01:16 | spsneo: | its disturbing and annoying |
| 03:01:37 | spsneo: | Testbaudson: ok I will add those line to restrict from being used it through browser |
| 03:01:49 | spsneo: | users will have to update it like this: |
| 03:01:57 | spsneo: | $ php update.php |
| 03:02:19 | Testbaudson: | nice |
| 03:02:47 | spsneo: | ok thnaks |
| 03:02:49 | spsneo: | this is all |
| 03:03:00 | spsneo: | by the way hope I am not disturbing u |
| 03:03:26 | spsneo: | as I am finalizing stuffs so, I am having some doubts |
| 03:06:27 | spsneo: | Testbaudson: the connection is annoying here |
| 03:06:51 | Testbaudson: | if you need help, let me know |
| 03:07:11 | Testbaudson: | quite busy today, but if it's urgent, no problem |
| 03:07:29 | spsneo: | Testbaudson: ok you continue your work. |
| 05:06:37 | LenKne: | Testbaudson: Have time for a couple questions? |
| 05:07:00 | Testbaudson: | ok |
| 05:07:32 | LenKne: | I've put updated code in my branch... |
| 05:08:10 | LenKne: | Most of the work done in php/mod_adminEditFilteredUser.php |
| 05:08:36 | LenKne: | and have added some functions to class_administration |
| 05:09:23 | LenKne: | Still going slow, but feel the pace quickening as I understand more about how to use classes ( hopefully correctly ) |
| 05:09:43 | LenKne: | One specific question... |
| 05:10:26 | LenKne: | When making an AJAX call, if results are found, it will return JSON ... |
| 05:10:53 | LenKne: | but if results are not found, I want to be able to display a message that no results are available |
| 05:11:38 | Testbaudson: | maybe read the message I posted to the dev list |
| 05:11:53 | Testbaudson: | AJAX client/server interface |
| 05:11:57 | Testbaudson: | July 3rd |
| 05:12:09 | : | * LenKne looking at it |
| 05:12:12 | Testbaudson: | you should always return JSON... |
| 05:12:19 | Testbaudson: | but deliver a message along with the data |
| 05:14:47 | LenKne: | ok, I will work through understanding how that works |
| 05:15:11 | LenKne: | Looks like that will fix the issue |
| 05:15:17 | LenKne: | 2nd question |
| 05:15:49 | LenKne: | Moving files to the new folder stucture, such as modules in mod ( outside of html ) |
| 05:15:55 | Testbaudson: | sorry to interrupt |
| 05:16:03 | Testbaudson: | here are some samples for problem #1 |
| 05:16:05 | Testbaudson: | server side |
| 05:16:06 | Testbaudson: | http://trac.osgeo.org/mapbender/browser/branches/testbaudson_dev/http/php/mod_loadwmc_server.php |
| 05:16:07 | sigq: | Title: /branches/testbaudson_dev/http/php/mod_loadwmc_server.php - Mapbender - Trac ( at trac.osgeo.org ) |
| 05:16:24 | Testbaudson: | client side |
| 05:16:24 | Testbaudson: | http://trac.osgeo.org/mapbender/browser/branches/testbaudson_dev/http/javascripts/mod_loadwmc.js |
| 05:16:25 | sigq: | Title: /branches/testbaudson_dev/http/javascripts/mod_loadwmc.js - Mapbender - Trac ( at trac.osgeo.org ) |
| 05:16:30 | Testbaudson: | ok, please go on |
| 05:16:52 | LenKne: | Thanks, example help |
| 05:17:42 | LenKne: | I'm having trouble figuring out what parts of a file should be outside of the http directory... |
| 05:18:08 | LenKne: | For example, looking at mod_adminEditFilteredUser |
| 05:19:04 | LenKne: | Not sure that any of it could be moved to files in mod... |
| 05:19:33 | LenKne: | or how it is helpful to do so |
| 05:20:12 | Testbaudson: | only files that are loaded via http should be in the http dirextory |
| 05:20:15 | Testbaudson: | like |
| 05:20:17 | Testbaudson: | images |
| 05:20:31 | Testbaudson: | iframes |
| 05:20:39 | Testbaudson: | ajax server side scripts |
| 05:21:02 | Testbaudson: | js files should be included in php files... |
| 05:21:12 | Testbaudson: | and should therefore be outside of http |
| 05:21:36 | Testbaudson: | but you should not worry too much about that |
| 05:22:30 | LenKne: | ok |
| 05:23:37 | LenKne: | Next question? |
| 05:23:43 | Testbaudson: | please go ahead |
| 05:24:59 | LenKne: | With internationalization... |
| 05:25:21 | LenKne: | listening to the chat, there is talk about .po and .mo files.. |
| 05:26:18 | LenKne: | Are these files being used or is the translations table being used? |
| 05:26:29 | Testbaudson: | both, actually |
| 05:26:59 | : | * LenKne now confused |
| 05:27:10 | Testbaudson: | for text in source code, we use gettext -> po and mo files |
| 05:27:19 | LenKne: | Is there a place I can read up on this? |
| 05:27:20 | Testbaudson: | for text in the database we use the translation table |
| 05:27:43 | Testbaudson: | yes! http://www.mapbender.org/Category:I18n |
| 05:27:44 | sigq: | Title: Category:I18n - MapbenderWiki ( at www.mapbender.org ) |
| 05:28:04 | Testbaudson: | I hope it is comprehensible |
| 05:28:27 | LenKne: | Is there a preferred method - translation via souce code or in the db? |
| 05:29:00 | Testbaudson: | only dynamic ( =user generated ) content should be translated via database |
| 05:29:10 | Testbaudson: | like element titles |
| 05:30:00 | Testbaudson: | hard wired text in source code must be translated via gettext |
| 05:32:01 | LenKne: | ok, thanks for updating the I18n pages |
| 05:32:26 | LenKne: | very nice |
| 05:32:29 | Testbaudson: | some things were buggy, also in trunk |
| 05:32:40 | Testbaudson: | I'm not sure if trunk is actually working... |
| 05:32:45 | Testbaudson: | have to check tomorrow |
| 05:33:09 | LenKne: | Seems like much of the localization for admin modules should be done with gettext... |
| 05:34:01 | LenKne: | I was using the dynamic approach, which seemed like it would get very complicated quickly with the admin modules |
| 05:34:10 | Testbaudson: | yes |
| 05:34:21 | Testbaudson: | gettext is dead simple ( once you get it to work ) |
| 05:35:05 | LenKne: | That is all of my questions... |
| 05:35:12 | Testbaudson: | to get an idea, check the "msgObj" in javascripts/mod_digitze_tab.php |
| 05:35:24 | Testbaudson: | and the server side: php/mod_digitize_messages.php |
| 05:35:38 | Testbaudson: | you should find everything there |
| 05:35:49 | LenKne: | ok |
| 05:37:20 | LenKne: | When you have time, can you look at work I have put into SVN and give feedback? |
| 05:38:25 | Testbaudson: | is Friday ok? |
| 05:38:56 | LenKne: | Sure |
| 05:40:46 | LenKne: | Thanks for the help... |
| 05:41:15 | Testbaudson: | Let me know when you need anything |
| 05:41:41 | LenKne: | Seems like coding has been going slow, but I have learned much |
| 05:42:39 | Testbaudson: | I'm happy to hear this :- ) |
| 05:43:25 | LenKne: | Have a good rest of the day, bye |
| 05:43:36 | Testbaudson: | thanks and bye |
| 23:14:35 | spsneo: | Testbaudson: Good Morning |
| 23:14:49 | spsneo: | Testbaudson: I have completd the first part |
| 23:15:00 | spsneo: | I am ready with the database update script |
| 23:17:08 | Testbaudson: | hi spsneo |
| 23:17:12 | Testbaudson: | good news :- ) |
| 23:17:18 | spsneo: | Should I commit ? |
| 23:17:24 | Testbaudson: | Yes please |
| 23:17:29 | spsneo: | Testbaudson: or should I send it to you the code by emial |
| 23:17:30 | spsneo: | ? |
| 23:17:35 | Testbaudson: | no commit it |
| 23:18:02 | spsneo: | ok |
| 23:18:06 | spsneo: | give me 10 minutes |
| 23:46:57 | spsneo: | Testbaudson: please let me know when you are free |
| 23:47:31 | Testbaudson: | hi spsneo |
| 23:47:37 | Testbaudson: | can I help? |
| 23:47:52 | spsneo: | Testbaudson: Ya i have committed |
| 23:48:05 | spsneo: | Please check and let me know the feedback |
| 23:48:48 | Testbaudson: | maybe we can make an appointment for tomorrow |
| 23:48:58 | Testbaudson: | today is quite busy |
| 23:49:50 | spsneo: | Testbaudson: tomorrow I won't be avialable as I have to attend a marriage ceremony |
| 23:50:57 | Testbaudson: | ok... |
| 23:51:04 | Testbaudson: | how long are you online today? |
| 23:51:37 | spsneo: | Whole day I am online today |
| 23:51:52 | Testbaudson: | so maybe in 3 hours? |
| 23:52:02 | spsneo: | Testbaudson: ok fine |
| 23:52:07 | Testbaudson: | ok |
| 23:52:26 | spsneo: | 1300 hrs. according to your time |
| 23:52:30 | spsneo: | ok bye for then |