cppcms-users Mailing List for CppCMS C++ Web Framework (Page 114)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Artyom <art...@ya...> - 2011-05-03 11:28:34
|
You need following widget for file upload: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1widgets_1_1file.html It creates a file object: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1http_1_1file.html The rest is the standard for file uploading. Artyom > >From: Renato Forti <re....@ay...> >To: cpp...@li... >Sent: Tue, May 3, 2011 5:52:28 AM >Subject: [Cppcms-users] Upload files with CppCMS. How-to? > > >Hi All, >I am using CppCMS 0.99.7. >And I need upload files in my system. Have any way to do this in CppCMS? How? >Any sample available? Any tips, or how to? >Thanks for help. > |
From: Renato F. <re....@ay...> - 2011-05-03 02:52:40
|
Hi All, I am using CppCMS 0.99.7. And I need upload files in my system. Have any way to do this in CppCMS? How? Any sample available? Any tips, or how to? Thanks for help. |
From: Cristian O. <one...@gm...> - 2011-05-02 08:16:53
|
On Mon, May 2, 2011 at 10:52 AM, Artyom <art...@ya...> wrote: > P.S.: Cristian Oneț sorry for using your name > as example it was just one that easy to find. No problem :). |
From: Artyom <art...@ya...> - 2011-05-02 07:52:26
|
Hello, Actually I had decided to change the interface so it would allow non-ASCII characters mostly because of support of international characters like (C) - copyright and so on. Also it is quite common that translation exists even for English where originally the string is: translate("(C) 2011 Cristian Onet") While the translation to English becomes translate("© 2011 Cristian Oneț") Mostly because the total nightmare with non-ASCII characters in cross platform code (at least for thous who support MSVC) So still US-ASCII is the recommended string encoding for the keys. Artyom P.S.: Cristian Oneț sorry for using your name as example it was just one that easy to find. > From: augustin <aug...@ov...> > > Hello Artyom, > > > I was a bit early with my previous message, given the extension in the review > process... but now that boost.locale is officially accepted, accept, again, my > > congratulations. > http://comments.gmane.org/gmane.comp.lib.boost.devel/218369 > > I just had a quick look at the long discussion today. I certainly don't know > enough of the technical intricacies to make any informed comment. > > However, I wanted to point something out (I am not subscribed to the boost- > devel list, so I post it here): > > On the one side, I applaud you for pushing for a common utf8 standard. > On the other side, please note that pure ASCII characters are *NOT* enough to > write proper English. Beside characters like @, as already noted, English uses > > many foreign words that are accented > E.g: >http://en.wikipedia.org/wiki/List_of_French_words_and_phrases_used_by_English_speakers >s > God knows which software would use some of the accented words of French origin > > in the above list within an English interface. > > The following accented word is fairly common in English and may appear in a > user form within a web application or a genealogy software: > http://en.wikipedia.org/wiki/Né > So the concerns about the ASCII limitations for the translation keys have some > > ground. > > On the other hand, I have seen your latest comment on the topic: > http://permalink.gmane.org/gmane.comp.lib.boost.devel/218543 > > Since I use UTF-8 and gcc by default, I don't need to wait for c++1x, so I am > not too worried in any case :) > > I simply wanted to comfort you in the idea that you probably made the good > decision. > > Blessings, > > Augustin. > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2011-05-02 07:41:43
|
> From: Andrew <an...@bu...> > > Hi all, > > so I have a table of item records, each of which can be viewed, edited and >updated by id. > > /item/view/{item id} > /item/edit/{item id} > /item/update/{item id} > > I also have a controller that provides a list view > > /list/{page no} > > > managing the caching for the item views is easy enough, I give each page a >trigger that looks like > > cache().add_trigger("item_{item id}") > > and refresh the cache when the item is updated > > cache().rise("item_{item id}") > > > but I am having trouble finding a non-complicated way to > manage the caching of the list view, I have solved it > temporarily by simply refreshing every page > in the list entirely whenever an item is updated, > but ideally I would like to find a simple algorithm that > lets me only refresh the cache for the page on which the > item that has been updated appears. > You have a /list/{page no} item_1, item_2, item_3. for /list/page/1 item_4, item_5, item_6. for /list/page/2 And so on. So for each page you add a trigger just like > because items are ordered by date modified, > and can be added or deleted, which page the > item appears on will change frequently. > > does anyone have a solution that they have found works > for this kind of scenario? > The point is that deleting an item that for example at the top of the list may change all pages i.e. item_1, item_3, item_4, /list/page/1 item_5, item_6, item_7 /list/page/2 So in case of adding new item ore removing new item list rise "list_general" and all pages would be clean and of course add_trigger "list_general" to all the pages. So basically for each page for id in range add_trigger iterm_{id} add_trigger list_general And when you update an item_id on UPDATE id rise(item_{id}) on Add/Delete id rise(item_{id}) rise(list_general) This is how I work with the cache of the blog where multiple pages exist. Of course if the items are added and removed too frequently and you don't want to throw away all the cache you should consider using timeouts and have some not fully consistent cache. > thanks all :) > Best, Artyom > |
From: Andrew <an...@bu...> - 2011-04-29 23:39:28
|
Hi all, so I have a table of item records, each of which can be viewed, edited and updated by id. /item/view/{item id} /item/edit/{item id} /item/update/{item id} I also have a controller that provides a list view /list/{page no} managing the caching for the item views is easy enough, I give each page a trigger that looks like cache().add_trigger("item_{item id}") and refresh the cache when the item is updated cache().rise("item_{item id}") but I am having trouble finding a non-complicated way to manage the caching of the list view, I have solved it temporarily by simply refreshing every page in the list entirely whenever an item is updated, but ideally I would like to find a simple algorithm that lets me only refresh the cache for the page on which the item that has been updated appears. because items are ordered by date modified, and can be added or deleted, which page the item appears on will change frequently. does anyone have a solution that they have found works for this kind of scenario? thanks all :) - Andrew Bush |
From: Aris S. <ari...@gm...> - 2011-04-29 01:06:45
|
Hi Alec, For fulltext search, you must use fulltext index. If you are mysql user, use spynx index (sphinxsearch.com), for postgresql user, use tsearch2 index and for sqlite user use FTS3/4 index. I'm now also developing web search app. For maximizing performance, I'm not using javascript at all. html + css is enough for me. Don't forget to use ranking in your search result. On Thu, Apr 28, 2011 at 8:34 PM, augustin <aug...@ov...> wrote: > Good Evening Alec, > > On Thursday 28 April 2011 09:17:37 pm Alec Taylor wrote: >> Please tell me if it's possible to do in CppCMS, and if so, how. > > Yes, it's possible. The cppcms library is well conceived, and I find the cppdb > (DB layer) library especially easy to use. > > How? Well, check the wiki for simple tutorials and documentation , and check > all the examples delivered with the source code. That will get you started in > understanding how to use the libraries. > > The templating layer will allow you to achieve the look you are after, like in > your mockup. Again, check the wiki for more information. > > Blessings, > > Augustin. > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2011-04-28 13:57:49
|
Hello Artyom, I was a bit early with my previous message, given the extension in the review process... but now that boost.locale is officially accepted, accept, again, my congratulations. http://comments.gmane.org/gmane.comp.lib.boost.devel/218369 I just had a quick look at the long discussion today. I certainly don't know enough of the technical intricacies to make any informed comment. However, I wanted to point something out (I am not subscribed to the boost- devel list, so I post it here): On the one side, I applaud you for pushing for a common utf8 standard. On the other side, please note that pure ASCII characters are *NOT* enough to write proper English. Beside characters like @, as already noted, English uses many foreign words that are accented E.g: http://en.wikipedia.org/wiki/List_of_French_words_and_phrases_used_by_English_speakers God knows which software would use some of the accented words of French origin in the above list within an English interface. The following accented word is fairly common in English and may appear in a user form within a web application or a genealogy software: http://en.wikipedia.org/wiki/Né So the concerns about the ASCII limitations for the translation keys have some ground. On the other hand, I have seen your latest comment on the topic: http://permalink.gmane.org/gmane.comp.lib.boost.devel/218543 Since I use UTF-8 and gcc by default, I don't need to wait for c++1x, so I am not too worried in any case :) I simply wanted to comfort you in the idea that you probably made the good decision. Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2011-04-28 13:36:19
|
Good Evening Alec, On Thursday 28 April 2011 09:17:37 pm Alec Taylor wrote: > Please tell me if it's possible to do in CppCMS, and if so, how. Yes, it's possible. The cppcms library is well conceived, and I find the cppdb (DB layer) library especially easy to use. How? Well, check the wiki for simple tutorials and documentation , and check all the examples delivered with the source code. That will get you started in understanding how to use the libraries. The templating layer will allow you to achieve the look you are after, like in your mockup. Again, check the wiki for more information. Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Alec T. <ale...@gm...> - 2011-04-28 13:17:43
|
Good Morning, I'm attempting to create a frontend to a database with interactivity. Interactive search, and interactive search results. To help you understand exactly what I'm trying to build, I've written a mockup: http://i54.tinypic.com/24m5czk.png Please tell me if it's possible to do in CppCMS, and if so, how. Thanks, Alec Taylor Note: I am considering using PHP, Wt or CppCMS for this project |
From: Якунин В. <sla...@ya...> - 2011-04-28 07:53:52
|
Hi, Andrew! Also, you can use booster/nowide/fstream.h (for working with UTF-8 strings in Windows, or using std namespace instead - see http://art-blog.no-ip.info/cppcms_ref_v0_99/namespacebooster_1_1nowide.html), for example: //write string to file std::string path = "/foor/bar"; booster::nowide::ofstream ofs(path.c_str(), ios::out | ios::app); ofs << "test" << std::endl //read whole file to stringstream stringstream ss; std::vector<char>buff; booster::nowide::ifstream fl(attrfile.c_str(), ios::in) if(fl){ fl.seekg(0, std::ios::end); std::streampos len = fl.tellg(); buff.resize(len); fl.seekg(0, std::ios::beg); fl.read(&buff[0],len); ss.rdbuf()->pubsetbuf(&buff[0],len); fl.close(); } 26.04.2011, 18:10, "Andrew" <an...@bu...>: > Hi Artyom. > > Is there a built-in cppcms api for reading file content directly from the file system? or should I just look at the boost library? > > Thanks :) > > - Andrew > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Daniel V. <chi...@gm...> - 2011-04-27 18:44:48
|
Hi, Andrew. Look at C++ Standard library ("#include <fstream>") for reading files. http://www.cplusplus.com/reference/iostream/fstream/ Daniel. On Wed, 2011-04-27 at 02:10 +1200, Andrew wrote: > Hi Artyom. > > Is there a built-in cppcms api for reading file content directly from the file system? or should I just look at the boost library? > > > Thanks :) > > > - Andrew > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Andrew <an...@bu...> - 2011-04-26 14:37:18
|
Hi Artyom. Is there a built-in cppcms api for reading file content directly from the file system? or should I just look at the boost library? Thanks :) - Andrew |
From: Andrew <an...@bu...> - 2011-04-26 14:35:16
|
Hi Artyom, >> >> unfortunately I am getting a not found error. >> > > "Not found error" does not give me any clue on what are you > talking about? Where the error? At what stage? in what situation? sorry, I do seem to have solved this one. > > > I think this should give you an answer. > > > > http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details > thanks, that has helped. - Andrew |
From: Artyom <art...@ya...> - 2011-04-26 13:09:57
|
>From: Andrew <an...@bu...> > > >to mb::mb > > >attach(newworkflows(s), > "foobar", > "/foobar/{1}", > "/foobar/((/.*)?)",1); > > > > >to foobar::foobar > > >dispatcher().assign("/list/(\\d+)",&workflows::prepare,this,1); >dispatcher().assign("/item/(\\d+)",&workflows::prepare,this,1); > > > > >unfortunately I am getting a not found error. > "Not found error" does not give me any clue on what are you talking about? Where the error? At what stage? in what situation? > >Ive tried a range of different entries, but I do not seem to be able to solve >the problem. > More explicit? >also I am interested in how url_mapper works, the reference talks about how to >use it, but doesn't exaplin exactly what it is for. > I think this should give you an answer. http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details If not... Make your question more explicitly, what do you not understand. > >thanks for any help :) > > >- Andrew Artyom |
From: Artyom <art...@ya...> - 2011-04-26 13:04:25
|
Ok, thanks for the note. Artyom ----- Original Message ---- > From: Andrew <an...@bu...> > To: cpp...@li... > Sent: Tue, April 26, 2011 4:03:55 AM > Subject: [Cppcms-users] seems to be a bug in the message board > > Hi all, > > Ive just noticed that the code that provides for previous/next buttons in the >message board is slightly broken, if you have - say - 12 posts, and are on page >0, then you get a 'next' button as expected, but having clicked next you do not >get a previous button....the previous page is '0' which is presumably resolving >to false in the compiled code. > > > - Adrew > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Andrew <an...@bu...> - 2011-04-26 01:04:06
|
Hi all, Ive just noticed that the code that provides for previous/next buttons in the message board is slightly broken, if you have - say - 12 posts, and are on page 0, then you get a 'next' button as expected, but having clicked next you do not get a previous button....the previous page is '0' which is presumably resolving to false in the compiled code. - Adrew |
From: Andrew <an...@bu...> - 2011-04-25 23:19:27
|
Hi all, I am attempting to change the message board application to add m own app. what I would like is for my app to respond to urls that look like: /foobar/list/2 /foobar/item/3 to achieve this I have added the following: to mb::mb attach( new workflows(s), "foobar", "/foobar/{1}", "/foobar/((/.*)?)",1); to foobar::foobar dispatcher().assign("/list/(\\d+)",&workflows::prepare,this,1); dispatcher().assign("/item/(\\d+)",&workflows::prepare,this,1); unfortunately I am getting a not found error. Ive tried a range of different entries, but I do not seem to be able to solve the problem. Can anone provide some insight into how to configure this? also I am interested in how url_mapper works, the reference talks about how to use it, but doesn't exaplin exactly what it is for. thanks for any help :) - Andrew |
From: Artyom <art...@ya...> - 2011-04-22 12:26:33
|
It is the CppCMS internal server, it should work with normal web servers. I think I can add PUT method to ones that is handled by internal HTTP server. However in general it is better to upload files via POST. Artyom > >From: "cn...@gr..." <cn...@gr...> >To: cpp...@li... >Sent: Fri, April 22, 2011 3:16:57 PM >Subject: [Cppcms-users] Is PUT method supported? > >Hi! > > >A javascript plugin seems to send PUT rather than POST requests to server from >certain browsers. The author provides a PHP server example code that handles >uploaded files as follows: > >if ($uploaded_file && is_uploaded_file($uploaded_file)) { >// multipart/formdata uploads (POST method uploads) >if ($append_file) >file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND); >else >move_uploaded_file($uploaded_file, $file_path); >} else >// Non-multipart uploads (PUT method support) >file_put_contents($file_path,fopen('php://input', 'r'), $append_file ? >FILE_APPEND : 0); > > > >[ source: https://github.com/blueimp/jQuery-File-Upload ] > > >Does cppcms handle PUT requests? If it does, how do I handle these requests in >cppcms? If it doesn't, is it a to-do item? > > >Best Regards, >CN |
From: Artyom <art...@ya...> - 2011-04-22 12:21:43
|
> >From: "cn...@gr..." <cn...@gr...> >To: cpp...@li... >Sent: Fri, April 22, 2011 12:59:42 PM >Subject: [Cppcms-users] [Feature request]Returnning pointers to, not instances >of, map/multimap > >Hello! Artym, > > > >Cppcms' performance might be boosted if methods returning map or multimap like > >http::request()::get() >http::request()::post() >http::request()::cookies() All of them returning const reference and not actual value, so there is no data coping. See: http://cppcms.sourceforge.net/cppcms_ref_v0_99/classcppcms_1_1http_1_1request.html >and http::request()::getenv() > Ok it seems that I mistakenly provided return by value. I think it should be fixable. > >Please pardon me if this is a bad request. > Artyom |
From: <cn...@gr...> - 2011-04-22 12:17:17
|
Hi! A javascript plugin seems to send PUT rather than POST requests to server from certain browsers. The author provides a PHP server example code that handles uploaded files as follows: if ($uploaded_file && is_uploaded_file($uploaded_file)) { // multipart/formdata uploads (POST method uploads) if ($append_file) file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND); else move_uploaded_file($uploaded_file, $file_path); } else // Non-multipart uploads (PUT method support) file_put_contents($file_path,fopen('php://input', 'r'), $append_file ? FILE_APPEND : 0); [ source: https://github.com/blueimp/jQuery-File-Upload ] Does cppcms handle PUT requests? If it does, how do I handle these requests in cppcms? If it doesn't, is it a to-do item? Best Regards, CN |
From: <cn...@gr...> - 2011-04-22 10:15:31
|
Hello! Artym, Cppcms' performance might be boosted if methods returning map or multimap like http::request()::get() http::request()::post() http::request()::cookies() and http::request()::getenv() are revised to return pointers to map/multimap. They are currently implemented to return instances of map/multimap holding elements. If they can be revised to return pointers to map/multimap, a lot of CPU and memory will be saved. Another bonus from these pointers is that they are less error prone to users like me. I happened to write the following wrong code: for(map<string,string>::const_iterator i=request().getenv().begin();i != request().getenv().end();++i) BOOSTER_LOG(debug,"env name/size") << i->first << "/" << i->second; The problem here is that i refers to many different instances of maps, and this leads CPU to wander. I would not have made this mistake if request().getenv() returned pointer to map. Please pardon me if this is a bad request. Regards, CN |
From: augustin <aug...@ov...> - 2011-04-16 12:26:57
|
On Thursday 07 April 2011 07:38:19 am Artyom wrote: > I hope that after the review ends it would become a part > of Boost as well. http://comments.gmane.org/gmane.comp.lib.boost.devel/217586?set_lines=100000 I see you have been very busy during the review process. Apparently, the feedback was overwhelmingly positive. I may be a bit early but... congratulations and thanks for this important addition to boost. Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-04-06 23:38:26
|
Hello CppCMS Users, I would like to announce that the formal review of Boost.Locale library starts today. http://comments.gmane.org/gmane.comp.lib.boost.devel/217586 Boost.Locale library was developed as part of CppCMS for CppCMS's needs and was adopted for Boost. It is one of the important and central peaces of CppCMS that provide high quality localization to C++ Web Development. I hope that after the review ends it would become a part of Boost as well. Artyom |
From: Artyom <art...@ya...> - 2011-04-05 10:05:03
|
Hello, There is no such feature, However: 1. Technically you may have two instances of cppcms::service in same process. of course they can't listen on same port. Note: I hadn't tested this feature deeply so I can't promise that wouldn't be problems there. 2. Nothing prevents from you to create two independent processes where one has 5 threads and other 20. The sessions can be easily shared, cache can be shared using cache over tcp/ip backends as CppCMS is generally designed to work in distributed mode. Artyom ----- Original Message ---- > From: Cristian Oneț <one...@gm...> > To: cppcms-users <cpp...@li...> > Sent: Tue, April 5, 2011 11:17:55 AM > Subject: [Cppcms-users] setting a priority between mounted applications > > Hi, > > I would like to ask if there is a possibility to control the number of > threads that can be used to handle requests for a type of application? > In other words a kind of priority between the mounted applications. > > For example if I have: > A - mounted at /A > B - mounted at /B > and 15 threads then I would like to say that A is more important so > allocate 12 threads to handling requests to /A and 3 to be /B. > > Regards, > Cristian > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |