cppcms-users Mailing List for CppCMS C++ Web Framework (Page 43)
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
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Shiv S. D. <shi...@gm...> - 2013-12-02 05:51:05
|
Change line no. 114 from set(CXX_FLAGS "-Wall -Wextra") to set(CXX_FLAGS "-Wall -Wextra -std=c++11") it should work with both clang and g++. On Mon, Dec 2, 2013 at 11:15 AM, 陈抒 <csf...@gm...> wrote: > Now, it's time to develop c++ 11 app, but do not know how to compile > cppcms with c++ 11 option using clang or g++? > > Dean Chen > Best regards > http://blog.csdn.net/csfreebird > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Respect, Shiv Shankar Dayal |
|
From: 陈抒 <csf...@gm...> - 2013-12-02 05:45:31
|
Now, it's time to develop c++ 11 app, but do not know how to compile cppcms with c++ 11 option using clang or g++? Dean Chen Best regards http://blog.csdn.net/csfreebird |
|
From: Shiv S. D. <shi...@gm...> - 2013-12-01 11:12:35
|
Agreed on that. Also varnish requires learning of Python little bit and one more software. For dynamic content for example a user profile should always be cached with CppCMS. But something like a login page can be cached with Varnish as that is static. On Sun, Dec 1, 2013 at 4:35 PM, Artyom Beilis <art...@ya...> wrote: > The problem with most of caching systems that are not connected to the > framework itself is "invalidation" problem. > > The cache system does not know when and what to drop. > > Internal CppCMS cache system works both very fast and smart enough to keep > the data as consistent as if it wasn't cached at all > (of course with some effort on your side) > > > Artyom Beilis > > -------------- > > CppCMS - C++ Web Framework: http://cppcms.com/ > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> wrote: > > Subject: Re: [Cppcms-users] Distributed data > To: cpp...@li... > Date: Sunday, December 1, 2013, 1:01 PM > > We can put Varnish in front > of CppCMS/webserver for caching. Varnish speeds up thing a > lot. > > > On Sun, Dec 1, 2013 at > 4:29 PM, Artyom Beilis <art...@ya...> > wrote: > > Ok > guys... > > > > For sharing distributed data... Yes database is needed > whatever, SQL, NoSQL or anything else. > > > > Now to scale up you need to think about many things and > database architecture. There are many > > methods for scaling stuff up like partitioning, caching > etc. > > > > Now the second thing is caching. > > > > If for every small chunk of data you'll go to SQL > you'll kill your application faster. You need to use > > caching. CppCMS provide distributed cache systems with > triggers support that helps a lot > > to reduce the load. > > > > Ideally, you should keep almost everything in memory. What > you can, like big tables, keep in optimized > > database. Consistency can be easily handled with cache > system. > > > > And final note: it is always better to cache output (i.e. > generated HTML) as you save > > both HTML "rendering" time and gzip compression. > > > > > > Artyom Beilis > > > > -------------- > > > > CppCMS - C++ Web Framework: http://cppcms.com/ > > > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > -------------------------------------------- > > On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> > wrote: > > > > Subject: Re: [Cppcms-users] Distributed data > > To: cpp...@li... > > Date: Sunday, December 1, 2013, 8:00 AM > > > > As I said data has to be > > distributed and SQL databases have to be sharded which is > a > > pain. That is because I then need to do things which I > > should not be doing really. I will be doing > databases' > > job. > > > > > > > > On Sun, Dec 1, 2013 at > > 6:44 AM, Eric Gendron <con...@gm...> > > wrote: > > > > Maybe you should modulate your words/opinion a > > little bit around the context of the question at first, > > seems to be a small app and also the fact that a person > able > > to use an api like cppcms sure have the ability to > > understand sql eazily. > > > > > > Telling me I'm wrong about sql is a > > database make me suspect you are just in a mood to throll > in > > playing with words... of course I write sql is database > > for short... and that was enough for the purpose of this > > answer to the author in this context. The long answer > is > > sql is query langage to access datas stored in database. > > > > > > Any good faith person understood that I made a > > really short answer to go fast only to have a general > idea > > to interest someone to go further by himself. > > Sqlite is faster to dev yes for local files > > like with qt framework for example where a direct class > can > > connect to data without even any coding... with a model > > table widget for example. But this is not a subject of > > this mailinglist. > > > > > > I won't take more time to justify my > > answers with you anymore. > > > > > > Le 2013-11-30 19:46, > > "Marcel Hellwig" <ke...@co...> > > a écrit : > > > > > > On 01.12.2013 01:12, Eric Gendron wrote: > > > > > > > > > > SQL is a database... > > > > > > > > > Wrong!!! [0] > > > > > > > > > > It's almost easy to start using sql... for > simple > > queries. > > > > > > > > > Kind of wrong! In normal application you do not use > simple > > queries like > > > > 'SELECT * FROM users;'. > > > > > > > > > > Easy to share datas between multiple computers on a > > network. > > > > > > > > > Wrong. It's not easy. You have so many details to be > > aware of and so > > > > many configuration settings. > > > > > > > > > > Setup connexion > > > > > Open database... > > > > > Select or update query... > > > > > Close database > > > > > > > > > You don't close the database, you close the > connection! > > Please, be > > > > accurate in you statements. > > > > > > > > > > even if you use read/write local files, I recommand > > using something > > > > > like sqlite, doing sql queries on local database > > without server. > > > > > > > > > What?! There is a huge difference between > > reading/writing/serving local > > > > files and using a database. Also DBMSs are only useful if > > you have > > > > structured data and a lot of it. Files are better for a > > small amount of > > > > data (like 10-20 users with a password > > [.htaccess/.htpasswd], but if you > > > > have >100 of them, I would recommend a DBMS). > > > > And please, do not use SQLite in your productive > > environment. For >10k > > > > entries the performance is really bad! Use something > better, > > like PgSQL. > > > > Also do not start with a certain DBMS and then change > later > > to an other, > > > > because you use hacks and non SQL-Standard statements. > Even > > if you use > > > > strict SQL(-99), there is not guaranty that you can use > your > > statements > > > > on an other machine. > > > > Always use the same DBMS in enviroment and productiv. > > Setting up a PgSQL > > > > Server is not as hard, as you might think (at least under > > *nix). > > > > > > > > > > For me, I found faster to dev with sql even on local > > database files > > > > > than on manual read/write files... > > > > > > > > > See above! > > > > > > > > Regards, > > > > Marcel > > > > > > > > [0] http://en.wikipedia.org/wiki/SQL > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your > > business. Most IT > > > > organizations don't have a clear picture of how > > application performance > > > > affects their revenue. With AppDynamics, you get 100% > > visibility into your > > > > Java,.NET, & PHP application. Start your 15-day FREE > > TRIAL of AppDynamics Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > _______________________________________________ > > > > > > > > Cppcms-users mailing list > > > > Cpp...@li... > > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Rapidly troubleshoot problems before they affect your > > business. Most IT > > > > organizations don't have a clear picture of how > > application performance > > > > affects their revenue. With AppDynamics, you get 100% > > visibility into your > > > > Java,.NET, & PHP application. Start your 15-day FREE > > TRIAL of AppDynamics Pro! > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > _______________________________________________ > > > > > > Cppcms-users mailing list > > > > Cpp...@li... > > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > > > > -- > > Respect, > > Shiv Shankar Dayal > > > > > > -----Inline Attachment Follows----- > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > > business. Most IT > > organizations don't have a clear picture of how > application > > performance > > affects their revenue. With AppDynamics, you get 100% > > visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE > > TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > Respect, > Shiv Shankar Dayal > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Respect, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-12-01 11:05:15
|
The problem with most of caching systems that are not connected to the framework itself is "invalidation" problem. The cache system does not know when and what to drop. Internal CppCMS cache system works both very fast and smart enough to keep the data as consistent as if it wasn't cached at all (of course with some effort on your side) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] Distributed data To: cpp...@li... Date: Sunday, December 1, 2013, 1:01 PM We can put Varnish in front of CppCMS/webserver for caching. Varnish speeds up thing a lot. On Sun, Dec 1, 2013 at 4:29 PM, Artyom Beilis <art...@ya...> wrote: Ok guys... For sharing distributed data... Yes database is needed whatever, SQL, NoSQL or anything else. Now to scale up you need to think about many things and database architecture. There are many methods for scaling stuff up like partitioning, caching etc. Now the second thing is caching. If for every small chunk of data you'll go to SQL you'll kill your application faster. You need to use caching. CppCMS provide distributed cache systems with triggers support that helps a lot to reduce the load. Ideally, you should keep almost everything in memory. What you can, like big tables, keep in optimized database. Consistency can be easily handled with cache system. And final note: it is always better to cache output (i.e. generated HTML) as you save both HTML "rendering" time and gzip compression. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] Distributed data To: cpp...@li... Date: Sunday, December 1, 2013, 8:00 AM As I said data has to be distributed and SQL databases have to be sharded which is a pain. That is because I then need to do things which I should not be doing really. I will be doing databases' job. On Sun, Dec 1, 2013 at 6:44 AM, Eric Gendron <con...@gm...> wrote: Maybe you should modulate your words/opinion a little bit around the context of the question at first, seems to be a small app and also the fact that a person able to use an api like cppcms sure have the ability to understand sql eazily. Telling me I'm wrong about sql is a database make me suspect you are just in a mood to throll in playing with words... of course I write sql is database for short... and that was enough for the purpose of this answer to the author in this context. The long answer is sql is query langage to access datas stored in database. Any good faith person understood that I made a really short answer to go fast only to have a general idea to interest someone to go further by himself. Sqlite is faster to dev yes for local files like with qt framework for example where a direct class can connect to data without even any coding... with a model table widget for example. But this is not a subject of this mailinglist. I won't take more time to justify my answers with you anymore. Le 2013-11-30 19:46, "Marcel Hellwig" <ke...@co...> a écrit : On 01.12.2013 01:12, Eric Gendron wrote: > > SQL is a database... > Wrong!!! [0] > > It's almost easy to start using sql... for simple queries. > Kind of wrong! In normal application you do not use simple queries like 'SELECT * FROM users;'. > > Easy to share datas between multiple computers on a network. > Wrong. It's not easy. You have so many details to be aware of and so many configuration settings. > > Setup connexion > Open database... > Select or update query... > Close database > You don't close the database, you close the connection! Please, be accurate in you statements. > > even if you use read/write local files, I recommand using something > like sqlite, doing sql queries on local database without server. > What?! There is a huge difference between reading/writing/serving local files and using a database. Also DBMSs are only useful if you have structured data and a lot of it. Files are better for a small amount of data (like 10-20 users with a password [.htaccess/.htpasswd], but if you have >100 of them, I would recommend a DBMS). And please, do not use SQLite in your productive environment. For >10k entries the performance is really bad! Use something better, like PgSQL. Also do not start with a certain DBMS and then change later to an other, because you use hacks and non SQL-Standard statements. Even if you use strict SQL(-99), there is not guaranty that you can use your statements on an other machine. Always use the same DBMS in enviroment and productiv. Setting up a PgSQL Server is not as hard, as you might think (at least under *nix). > > For me, I found faster to dev with sql even on local database files > than on manual read/write files... > See above! Regards, Marcel [0] http://en.wikipedia.org/wiki/SQL ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-12-01 11:01:36
|
We can put Varnish in front of CppCMS/webserver for caching. Varnish speeds up thing a lot. On Sun, Dec 1, 2013 at 4:29 PM, Artyom Beilis <art...@ya...> wrote: > Ok guys... > > For sharing distributed data... Yes database is needed whatever, SQL, > NoSQL or anything else. > > Now to scale up you need to think about many things and database > architecture. There are many > methods for scaling stuff up like partitioning, caching etc. > > Now the second thing is caching. > > If for every small chunk of data you'll go to SQL you'll kill your > application faster. You need to use > caching. CppCMS provide distributed cache systems with triggers support > that helps a lot > to reduce the load. > > Ideally, you should keep almost everything in memory. What you can, like > big tables, keep in optimized > database. Consistency can be easily handled with cache system. > > And final note: it is always better to cache output (i.e. generated HTML) > as you save > both HTML "rendering" time and gzip compression. > > > Artyom Beilis > > -------------- > > CppCMS - C++ Web Framework: http://cppcms.com/ > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> wrote: > > Subject: Re: [Cppcms-users] Distributed data > To: cpp...@li... > Date: Sunday, December 1, 2013, 8:00 AM > > As I said data has to be > distributed and SQL databases have to be sharded which is a > pain. That is because I then need to do things which I > should not be doing really. I will be doing databases' > job. > > > > On Sun, Dec 1, 2013 at > 6:44 AM, Eric Gendron <con...@gm...> > wrote: > > Maybe you should modulate your words/opinion a > little bit around the context of the question at first, > seems to be a small app and also the fact that a person able > to use an api like cppcms sure have the ability to > understand sql eazily. > > > Telling me I'm wrong about sql is a > database make me suspect you are just in a mood to throll in > playing with words... of course I write sql is database > for short... and that was enough for the purpose of this > answer to the author in this context. The long answer is > sql is query langage to access datas stored in database. > > > Any good faith person understood that I made a > really short answer to go fast only to have a general idea > to interest someone to go further by himself. > Sqlite is faster to dev yes for local files > like with qt framework for example where a direct class can > connect to data without even any coding... with a model > table widget for example. But this is not a subject of > this mailinglist. > > > I won't take more time to justify my > answers with you anymore. > > > Le 2013-11-30 19:46, > "Marcel Hellwig" <ke...@co...> > a écrit : > > > On 01.12.2013 01:12, Eric Gendron wrote: > > > > > > SQL is a database... > > > > > Wrong!!! [0] > > > > > > It's almost easy to start using sql... for simple > queries. > > > > > Kind of wrong! In normal application you do not use simple > queries like > > 'SELECT * FROM users;'. > > > > > > Easy to share datas between multiple computers on a > network. > > > > > Wrong. It's not easy. You have so many details to be > aware of and so > > many configuration settings. > > > > > > Setup connexion > > > Open database... > > > Select or update query... > > > Close database > > > > > You don't close the database, you close the connection! > Please, be > > accurate in you statements. > > > > > > even if you use read/write local files, I recommand > using something > > > like sqlite, doing sql queries on local database > without server. > > > > > What?! There is a huge difference between > reading/writing/serving local > > files and using a database. Also DBMSs are only useful if > you have > > structured data and a lot of it. Files are better for a > small amount of > > data (like 10-20 users with a password > [.htaccess/.htpasswd], but if you > > have >100 of them, I would recommend a DBMS). > > And please, do not use SQLite in your productive > environment. For >10k > > entries the performance is really bad! Use something better, > like PgSQL. > > Also do not start with a certain DBMS and then change later > to an other, > > because you use hacks and non SQL-Standard statements. Even > if you use > > strict SQL(-99), there is not guaranty that you can use your > statements > > on an other machine. > > Always use the same DBMS in enviroment and productiv. > Setting up a PgSQL > > Server is not as hard, as you might think (at least under > *nix). > > > > > > For me, I found faster to dev with sql even on local > database files > > > than on manual read/write files... > > > > > See above! > > > > Regards, > > Marcel > > > > [0] http://en.wikipedia.org/wiki/SQL > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > > > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > ------------------------------------------------------------------------------ > > Rapidly troubleshoot problems before they affect your > business. Most IT > > organizations don't have a clear picture of how > application performance > > affects their revenue. With AppDynamics, you get 100% > visibility into your > > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > -- > Respect, > Shiv Shankar Dayal > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your > business. Most IT > organizations don't have a clear picture of how application > performance > affects their revenue. With AppDynamics, you get 100% > visibility into your > Java,.NET, & PHP application. Start your 15-day FREE > TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Respect, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-12-01 10:59:23
|
Ok guys... For sharing distributed data... Yes database is needed whatever, SQL, NoSQL or anything else. Now to scale up you need to think about many things and database architecture. There are many methods for scaling stuff up like partitioning, caching etc. Now the second thing is caching. If for every small chunk of data you'll go to SQL you'll kill your application faster. You need to use caching. CppCMS provide distributed cache systems with triggers support that helps a lot to reduce the load. Ideally, you should keep almost everything in memory. What you can, like big tables, keep in optimized database. Consistency can be easily handled with cache system. And final note: it is always better to cache output (i.e. generated HTML) as you save both HTML "rendering" time and gzip compression. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Sun, 12/1/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] Distributed data To: cpp...@li... Date: Sunday, December 1, 2013, 8:00 AM As I said data has to be distributed and SQL databases have to be sharded which is a pain. That is because I then need to do things which I should not be doing really. I will be doing databases' job. On Sun, Dec 1, 2013 at 6:44 AM, Eric Gendron <con...@gm...> wrote: Maybe you should modulate your words/opinion a little bit around the context of the question at first, seems to be a small app and also the fact that a person able to use an api like cppcms sure have the ability to understand sql eazily. Telling me I'm wrong about sql is a database make me suspect you are just in a mood to throll in playing with words... of course I write sql is database for short... and that was enough for the purpose of this answer to the author in this context. The long answer is sql is query langage to access datas stored in database. Any good faith person understood that I made a really short answer to go fast only to have a general idea to interest someone to go further by himself. Sqlite is faster to dev yes for local files like with qt framework for example where a direct class can connect to data without even any coding... with a model table widget for example. But this is not a subject of this mailinglist. I won't take more time to justify my answers with you anymore. Le 2013-11-30 19:46, "Marcel Hellwig" <ke...@co...> a écrit : On 01.12.2013 01:12, Eric Gendron wrote: > > SQL is a database... > Wrong!!! [0] > > It's almost easy to start using sql... for simple queries. > Kind of wrong! In normal application you do not use simple queries like 'SELECT * FROM users;'. > > Easy to share datas between multiple computers on a network. > Wrong. It's not easy. You have so many details to be aware of and so many configuration settings. > > Setup connexion > Open database... > Select or update query... > Close database > You don't close the database, you close the connection! Please, be accurate in you statements. > > even if you use read/write local files, I recommand using something > like sqlite, doing sql queries on local database without server. > What?! There is a huge difference between reading/writing/serving local files and using a database. Also DBMSs are only useful if you have structured data and a lot of it. Files are better for a small amount of data (like 10-20 users with a password [.htaccess/.htpasswd], but if you have >100 of them, I would recommend a DBMS). And please, do not use SQLite in your productive environment. For >10k entries the performance is really bad! Use something better, like PgSQL. Also do not start with a certain DBMS and then change later to an other, because you use hacks and non SQL-Standard statements. Even if you use strict SQL(-99), there is not guaranty that you can use your statements on an other machine. Always use the same DBMS in enviroment and productiv. Setting up a PgSQL Server is not as hard, as you might think (at least under *nix). > > For me, I found faster to dev with sql even on local database files > than on manual read/write files... > See above! Regards, Marcel [0] http://en.wikipedia.org/wiki/SQL ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Artyom B. <art...@ya...> - 2013-12-01 10:51:19
|
Ok I'll take a look on them Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Fri, 11/29/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] two tests failiing To: cpp...@li... Date: Friday, November 29, 2013, 11:24 AM Here are the compressed logs. I see that it cannot find some functions. You will have more idea. In the meantime I have switched to a GNU/Linux box for development. As even simple programs are segfaulting on Mac OS X. On Fri, Nov 29, 2013 at 1:25 PM, Artyom Beilis <art...@ya...> wrote: Why not both? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: Re: [Cppcms-users] two tests failiing To: cpp...@li... Date: Thursday, November 28, 2013, 10:09 PM After installing icu even more tests are failing. 43% tests passed, 53 tests failed out of 93 Total Test time (real) = 38.03 sec What files should I attach for this can you please name. I guess CMakeError.log and CMakeOutput.log are the ones you want. On Thu, Nov 28, 2013 at 6:38 PM, Shiv Shankar Dayal <shi...@gm...> wrote: I am trying to get icu detected because CMake does not detect it. It is in /us/local. On Thu, Nov 28, 2013 at 6:20 PM, Artyom Beilis <art...@ya...> wrote: To be honest hadn't tested it yet with such a latest version of Mac OS X / gcc. So it is hard to say. In any case send a build and test log Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 11/28/13, Shiv Shankar Dayal <shi...@gm...> wrote: Subject: [Cppcms-users] two tests failiing To: cpp...@li... Date: Thursday, November 28, 2013, 2:40 PM 98% tests passed, 2 tests failed out of 88 Total Test time (real) = 253.27 sec The following tests FAILED: 3 - storage_test (ILLEGAL) 23 - http_timeouts_test_write (Failed) Errors while running CTest make: *** [test] Error 8 Mac OS X 10.9 GCC 4.9 I can post other files which one is needed? -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Shiv S. D. <shi...@gm...> - 2013-12-01 06:00:25
|
As I said data has to be distributed and SQL databases have to be sharded which is a pain. That is because I then need to do things which I should not be doing really. I will be doing databases' job. On Sun, Dec 1, 2013 at 6:44 AM, Eric Gendron <con...@gm...> wrote: > Maybe you should modulate your words/opinion a little bit around the > context of the question at first, seems to be a small app and also the fact > that a person able to use an api like cppcms sure have the ability to > understand sql eazily. > > Telling me I'm wrong about sql is a database make me suspect you are just > in a mood to throll in playing with words... of course I write sql is > database for short... and that was enough for the purpose of this answer to > the author in this context. The long answer is sql is query langage to > access datas stored in database. > > Any good faith person understood that I made a really short answer to go > fast only to have a general idea to interest someone to go further by > himself. > > Sqlite is faster to dev yes for local files like with qt framework for > example where a direct class can connect to data without even any > coding... with a model table widget for example. But this is not a > subject of this mailinglist. > > I won't take more time to justify my answers with you anymore. > Le 2013-11-30 19:46, "Marcel Hellwig" <ke...@co...> a écrit : > >> On 01.12.2013 01:12, Eric Gendron wrote: >> > >> > SQL is a database... >> > >> Wrong!!! [0] >> > >> > It's almost easy to start using sql... for simple queries. >> > >> Kind of wrong! In normal application you do not use simple queries like >> 'SELECT * FROM users;'. >> > >> > Easy to share datas between multiple computers on a network. >> > >> Wrong. It's not easy. You have so many details to be aware of and so >> many configuration settings. >> > >> > Setup connexion >> > Open database... >> > Select or update query... >> > Close database >> > >> You don't close the database, you close the connection! Please, be >> accurate in you statements. >> > >> > even if you use read/write local files, I recommand using something >> > like sqlite, doing sql queries on local database without server. >> > >> What?! There is a huge difference between reading/writing/serving local >> files and using a database. Also DBMSs are only useful if you have >> structured data and a lot of it. Files are better for a small amount of >> data (like 10-20 users with a password [.htaccess/.htpasswd], but if you >> have >100 of them, I would recommend a DBMS). >> And please, do not use SQLite in your productive environment. For >10k >> entries the performance is really bad! Use something better, like PgSQL. >> Also do not start with a certain DBMS and then change later to an other, >> because you use hacks and non SQL-Standard statements. Even if you use >> strict SQL(-99), there is not guaranty that you can use your statements >> on an other machine. >> Always use the same DBMS in enviroment and productiv. Setting up a PgSQL >> Server is not as hard, as you might think (at least under *nix). >> > >> > For me, I found faster to dev with sql even on local database files >> > than on manual read/write files... >> > >> See above! >> >> Regards, >> Marcel >> >> [0] http://en.wikipedia.org/wiki/SQL >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Respect, Shiv Shankar Dayal |
|
From: Eric G. <con...@gm...> - 2013-12-01 01:15:02
|
Maybe you should modulate your words/opinion a little bit around the context of the question at first, seems to be a small app and also the fact that a person able to use an api like cppcms sure have the ability to understand sql eazily. Telling me I'm wrong about sql is a database make me suspect you are just in a mood to throll in playing with words... of course I write sql is database for short... and that was enough for the purpose of this answer to the author in this context. The long answer is sql is query langage to access datas stored in database. Any good faith person understood that I made a really short answer to go fast only to have a general idea to interest someone to go further by himself. Sqlite is faster to dev yes for local files like with qt framework for example where a direct class can connect to data without even any coding... with a model table widget for example. But this is not a subject of this mailinglist. I won't take more time to justify my answers with you anymore. Le 2013-11-30 19:46, "Marcel Hellwig" <ke...@co...> a écrit : > On 01.12.2013 01:12, Eric Gendron wrote: > > > > SQL is a database... > > > Wrong!!! [0] > > > > It's almost easy to start using sql... for simple queries. > > > Kind of wrong! In normal application you do not use simple queries like > 'SELECT * FROM users;'. > > > > Easy to share datas between multiple computers on a network. > > > Wrong. It's not easy. You have so many details to be aware of and so > many configuration settings. > > > > Setup connexion > > Open database... > > Select or update query... > > Close database > > > You don't close the database, you close the connection! Please, be > accurate in you statements. > > > > even if you use read/write local files, I recommand using something > > like sqlite, doing sql queries on local database without server. > > > What?! There is a huge difference between reading/writing/serving local > files and using a database. Also DBMSs are only useful if you have > structured data and a lot of it. Files are better for a small amount of > data (like 10-20 users with a password [.htaccess/.htpasswd], but if you > have >100 of them, I would recommend a DBMS). > And please, do not use SQLite in your productive environment. For >10k > entries the performance is really bad! Use something better, like PgSQL. > Also do not start with a certain DBMS and then change later to an other, > because you use hacks and non SQL-Standard statements. Even if you use > strict SQL(-99), there is not guaranty that you can use your statements > on an other machine. > Always use the same DBMS in enviroment and productiv. Setting up a PgSQL > Server is not as hard, as you might think (at least under *nix). > > > > For me, I found faster to dev with sql even on local database files > > than on manual read/write files... > > > See above! > > Regards, > Marcel > > [0] http://en.wikipedia.org/wiki/SQL > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Marcel H. <ke...@co...> - 2013-12-01 00:46:05
|
On 01.12.2013 01:12, Eric Gendron wrote: > > SQL is a database... > Wrong!!! [0] > > It's almost easy to start using sql... for simple queries. > Kind of wrong! In normal application you do not use simple queries like 'SELECT * FROM users;'. > > Easy to share datas between multiple computers on a network. > Wrong. It's not easy. You have so many details to be aware of and so many configuration settings. > > Setup connexion > Open database... > Select or update query... > Close database > You don't close the database, you close the connection! Please, be accurate in you statements. > > even if you use read/write local files, I recommand using something > like sqlite, doing sql queries on local database without server. > What?! There is a huge difference between reading/writing/serving local files and using a database. Also DBMSs are only useful if you have structured data and a lot of it. Files are better for a small amount of data (like 10-20 users with a password [.htaccess/.htpasswd], but if you have >100 of them, I would recommend a DBMS). And please, do not use SQLite in your productive environment. For >10k entries the performance is really bad! Use something better, like PgSQL. Also do not start with a certain DBMS and then change later to an other, because you use hacks and non SQL-Standard statements. Even if you use strict SQL(-99), there is not guaranty that you can use your statements on an other machine. Always use the same DBMS in enviroment and productiv. Setting up a PgSQL Server is not as hard, as you might think (at least under *nix). > > For me, I found faster to dev with sql even on local database files > than on manual read/write files... > See above! Regards, Marcel [0] http://en.wikipedia.org/wiki/SQL |
|
From: Eric G. <con...@gm...> - 2013-12-01 00:12:13
|
SQL is a database... It's almost easy to start using sql... for simple queries. Easy to share datas between multiple computers on a network. Setup connexion Open database... Select or update query... Close database even if you use read/write local files, I recommand using something like sqlite, doing sql queries on local database without server. For me, I found faster to dev with sql even on local database files than on manual read/write files... Le 2013-11-30 18:41, "Shiv Shankar Dayal" <shi...@gm...> a écrit : > I thought over it and I think it is better to share using a database layer > to serve as an abstraction layer for storage mechanism. SQL servers do not > cut job for a person like me who is alone. I have no resource to shard and > maintain them. > > > On Sun, Dec 1, 2013 at 3:18 AM, Eric Gendron <con...@gm...> wrote: > >> I'm not sure to understand... >> >> Maybe you need a file sharing somewhere or even a server? Samba... >> NFS... A simple windows share... >> Maybe you need a client/server system or SQL server? postgresql, >> mariaDB... >> Maybe you need P2P if so, take a look a ZeroMQ (0mq) it's a very good >> library. >> >> >> >> >> On Fri, Nov 29, 2013 at 4:29 AM, Shiv Shankar Dayal < >> shi...@gm...> wrote: >> >>> Hi, >>> >>> Suppose an app is running on multiple machines then how should they >>> synchronize data? Should OpenMPI be used to do message passing to talk >>> among each other because then thread_shared will not work? >>> >>> -- >>> Respect, >>> Shiv Shankar Dayal >>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into >>> your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>> AppDynamics Pro! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > -- > Respect, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Eric G. <con...@gm...> - 2013-12-01 00:04:36
|
Even if data can also be stored in cookie, a specifiq key/value pair may
not exist...
That was the point.
Le 2013-11-30 18:37, "Shiv Shankar Dayal" <shi...@gm...> a
écrit :
> Even though cookies are stored in browser they are sent by servers or
> servers have to send cookies to browser to be stored and hence you can
> always set that. CppCMS recommends session data in cookies or you can store
> it server side also.
>
>
> On Sun, Dec 1, 2013 at 3:24 AM, Eric Gendron <con...@gm...> wrote:
>
>> Maybe I'm wrong...
>> But...
>> What I understand about sessions, is that... the cookie is the serial
>> number of the session... not the content of "my_key". Your key belongs to
>> the session..
>>
>> So..
>>
>> the session can exist (get_cookie return something) but the key inside
>> the session may not exist at the same time of course (is_set(my_key) return
>> false).
>>
>>
>>
>>
>> On Fri, Nov 29, 2013 at 6:29 AM, CN <cn...@fa...> wrote:
>>
>>> Taking void post(std::string const &author,std::string const &message)
>>> in file json_rpc_chat.cpp as an example,
>>>
>>> session().is_set("my_key");
>>>
>>> appears to always return false. However,
>>>
>>> session().get_session_cookie();
>>>
>>> does return a string. Am I misunderstanding http or the framework?
>>>
>>> Thank you!
>>> CN
>>>
>>> -- http://www.fastmail.fm - Choose from over 50 domains or use your own
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into
>>> your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>>> AppDynamics Pro!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Cppcms-users mailing list
>>> Cpp...@li...
>>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>
>
> --
> Respect,
> Shiv Shankar Dayal
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-30 23:40:38
|
I thought over it and I think it is better to share using a database layer to serve as an abstraction layer for storage mechanism. SQL servers do not cut job for a person like me who is alone. I have no resource to shard and maintain them. On Sun, Dec 1, 2013 at 3:18 AM, Eric Gendron <con...@gm...> wrote: > I'm not sure to understand... > > Maybe you need a file sharing somewhere or even a server? Samba... NFS... > A simple windows share... > Maybe you need a client/server system or SQL server? postgresql, > mariaDB... > Maybe you need P2P if so, take a look a ZeroMQ (0mq) it's a very good > library. > > > > > On Fri, Nov 29, 2013 at 4:29 AM, Shiv Shankar Dayal < > shi...@gm...> wrote: > >> Hi, >> >> Suppose an app is running on multiple machines then how should they >> synchronize data? Should OpenMPI be used to do message passing to talk >> among each other because then thread_shared will not work? >> >> -- >> Respect, >> Shiv Shankar Dayal >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-30 23:37:01
|
Even though cookies are stored in browser they are sent by servers or
servers have to send cookies to browser to be stored and hence you can
always set that. CppCMS recommends session data in cookies or you can store
it server side also.
On Sun, Dec 1, 2013 at 3:24 AM, Eric Gendron <con...@gm...> wrote:
> Maybe I'm wrong...
> But...
> What I understand about sessions, is that... the cookie is the serial
> number of the session... not the content of "my_key". Your key belongs to
> the session..
>
> So..
>
> the session can exist (get_cookie return something) but the key inside the
> session may not exist at the same time of course (is_set(my_key) return
> false).
>
>
>
>
> On Fri, Nov 29, 2013 at 6:29 AM, CN <cn...@fa...> wrote:
>
>> Taking void post(std::string const &author,std::string const &message)
>> in file json_rpc_chat.cpp as an example,
>>
>> session().is_set("my_key");
>>
>> appears to always return false. However,
>>
>> session().get_session_cookie();
>>
>> does return a string. Am I misunderstanding http or the framework?
>>
>> Thank you!
>> CN
>>
>> -- http://www.fastmail.fm - Choose from over 50 domains or use your own
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Eric G. <con...@gm...> - 2013-11-30 21:54:43
|
Maybe I'm wrong...
But...
What I understand about sessions, is that... the cookie is the serial
number of the session... not the content of "my_key". Your key belongs to
the session..
So..
the session can exist (get_cookie return something) but the key inside the
session may not exist at the same time of course (is_set(my_key) return
false).
On Fri, Nov 29, 2013 at 6:29 AM, CN <cn...@fa...> wrote:
> Taking void post(std::string const &author,std::string const &message)
> in file json_rpc_chat.cpp as an example,
>
> session().is_set("my_key");
>
> appears to always return false. However,
>
> session().get_session_cookie();
>
> does return a string. Am I misunderstanding http or the framework?
>
> Thank you!
> CN
>
> -- http://www.fastmail.fm - Choose from over 50 domains or use your own
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|
|
From: Eric G. <con...@gm...> - 2013-11-30 21:48:58
|
I'm not sure to understand... Maybe you need a file sharing somewhere or even a server? Samba... NFS... A simple windows share... Maybe you need a client/server system or SQL server? postgresql, mariaDB... Maybe you need P2P if so, take a look a ZeroMQ (0mq) it's a very good library. On Fri, Nov 29, 2013 at 4:29 AM, Shiv Shankar Dayal < shi...@gm...> wrote: > Hi, > > Suppose an app is running on multiple machines then how should they > synchronize data? Should OpenMPI be used to do message passing to talk > among each other because then thread_shared will not work? > > -- > Respect, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 13:00:27
|
But to set a client-side cookie you set it from server side. That is server stores session data in client in the form of cookie. Another thing which can happen is you use client side cookies using something like jQuery Cookie but that is a different question. I see in the sessions example that when form data is received it sets name, sex, state and age. I have not yet studied how things work in asynchronous applications. My knowledge is limited in this regard so I would rather wait for some expert to comment. On Fri, Nov 29, 2013 at 5:45 PM, CN <cn...@fa...> wrote: > Aha! > > I already had read http://cppcms.com/wikipp/en/page/cppcms_1x_sessionsbefore I posted my question. After re-reading it, I finally notice that > > cppcms::session_interface::load() > > must be called every time after the request arrives in asynchronous > applications. > > session().set("my_key") is automatically called by the framework if client > side cookie named "my_key" is set. This means we do not need to manually > call session().set("my_key") if that cookie is already set. Please correct > me if I misunderstand it! > > Regards, > CN > > On Fri, Nov 29, 2013, at 07:48 PM, Shiv Shankar Dayal wrote: > > If you want to retrieve session().is_set("my_key") which appears to be > your key > then before retrieving you need to set it as shown in > http://cppcms.com/wikipp/en/page/cppcms_1x_sessions > For example, > > session().set("my_key", true); > > before it will return true. > > > On Fri, Nov 29, 2013 at 4:59 PM, CN <cn...@fa...> wrote: > > Taking void post(std::string const &author,std::string const &message) > in file json_rpc_chat.cpp as an example, > > session().is_set("my_key"); > > appears to always return false. However, > > session().get_session_cookie(); > > does return a string. Am I misunderstanding http or the framework? > > Thank you! > CN > > -- http://www.fastmail.fm - Choose from over 50 domains or use your own > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > Respect, > Shiv Shankar Dayal > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > *_______________________________________________* > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- http://www.fastmail.fm - A no graphics, no pop-ups email service > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Respect, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 12:49:13
|
Yes I compiled with -O2 flag.
On Fri, Nov 29, 2013 at 5:51 PM, Karsten Ahnert <
kar...@go...> wrote:
> Is it also working for you in release mode?
>
> On 29.11.2013 12:52, Shiv Shankar Dayal wrote:
> > No I have no idea because for me it is working.
> >
> >
> > On Fri, Nov 29, 2013 at 5:02 PM, Karsten Ahnert
> > <kar...@go... <mailto:kar...@go...>>
> > wrote:
> >
> > Aha, in debug mode the program behaves as expected. In release mode
> it
> > hangs. Any ideas?
> >
> >
> > On 29.11.2013 12:02, Shiv Shankar Dayal wrote:
> > > Try to debug using gdb and send a stack trace where it gets stuck.
> > That
> > > will help.
> > >
> > >
> > > On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert
> > > <kar...@go...
> > <mailto:kar...@go...>
> > <mailto:kar...@go...
> > <mailto:kar...@go...>>>
> > > wrote:
> > >
> > > My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS
> 1.0.4.
> > >
> > >
> > >
> > > On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> > > > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems
> > to work
> > > > fine as it prints "Exception" on console and program
> terminates.
> > > >
> > > >
> > > > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> > > > <kar...@go...
> > <mailto:kar...@go...>
> > > <mailto:kar...@go...
> > <mailto:kar...@go...>>
> > > <mailto:kar...@go...
> > <mailto:kar...@go...>
> > > <mailto:kar...@go...
> > <mailto:kar...@go...>>>>
> > > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > cppcms hangs if the constructor of cppcms::application
> and
> > > derived class
> > > > throw, see the code below. Any ideas how to fix this?
> > > >
> > > >
> > > >
> > > >
> > > > #include <cppcms/applications_pool.h>
> > > > #include <cppcms/service.h>
> > > > #include <cppcms/http_response.h>
> > > > #include <cppcms/application.h>
> > > >
> > > > #include <iostream>
> > > > #include <stdexcept>
> > > >
> > > > using namespace std;
> > > >
> > > > class my_app : public cppcms::application
> > > > {
> > > > public:
> > > >
> > > > my_app( cppcms::service& srv )
> > > > : cppcms::application( srv )
> > > > {
> > > > throw std::runtime_error( "Exception" );
> > > > }
> > > >
> > > > virtual void main(std::string url)
> > > > {
> > > > cout << "Hello world!" << endl;
> > > >
> > > > response().out() <<
> > > > "<html>\n"
> > > > "<body>\n"
> > > > " <h1>Hello World</h1>\n"
> > > > "</body>\n"
> > > > "</html>\n";
> > > > }
> > > > };
> > > >
> > > >
> > > > int main( int argc , char **argv )
> > > > {
> > > > try
> > > > {
> > > > cppcms::service app( argc , argv );
> > > > app.applications_pool().mount(
> > > cppcms::applications_factory<
> > > > my_app >() );
> > > > app.run();
> > > > }
> > > > catch( std::exception const &e )
> > > > {
> > > > std::cerr << e.what() << std::endl;
> > > > }
> > > >
> > > > return 0;
> > > > }
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > Rapidly troubleshoot problems before they affect your
> > > business. Most IT
> > > > organizations don't have a clear picture of how
> application
> > > performance
> > > > affects their revenue. With AppDynamics, you get 100%
> > visibility
> > > > into your
> > > > Java,.NET, & PHP application. Start your 15-day FREE
> > TRIAL of
> > > > AppDynamics Pro!
> > > >
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > > > _______________________________________________
> > > > Cppcms-users mailing list
> > > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>>
> > > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>
> > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>>>
> > > >
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Respect,
> > > > Shiv Shankar Dayal
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > Rapidly troubleshoot problems before they affect your
> business.
> > > Most IT
> > > > organizations don't have a clear picture of how application
> > > performance
> > > > affects their revenue. With AppDynamics, you get 100%
> visibility
> > > into your
> > > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > > AppDynamics Pro!
> > > >
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Cppcms-users mailing list
> > > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>>
> > > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your
> > business. Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100%
> visibility
> > > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> > >
> > >
> > >
> > > --
> > > Respect,
> > > Shiv Shankar Dayal
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your business.
> > Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > >
> > >
> > >
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most
> IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > <mailto:Cpp...@li...>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
> >
> >
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Karsten A. <kar...@go...> - 2013-11-29 12:22:00
|
Is it also working for you in release mode?
On 29.11.2013 12:52, Shiv Shankar Dayal wrote:
> No I have no idea because for me it is working.
>
>
> On Fri, Nov 29, 2013 at 5:02 PM, Karsten Ahnert
> <kar...@go... <mailto:kar...@go...>>
> wrote:
>
> Aha, in debug mode the program behaves as expected. In release mode it
> hangs. Any ideas?
>
>
> On 29.11.2013 12:02, Shiv Shankar Dayal wrote:
> > Try to debug using gdb and send a stack trace where it gets stuck.
> That
> > will help.
> >
> >
> > On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert
> > <kar...@go...
> <mailto:kar...@go...>
> <mailto:kar...@go...
> <mailto:kar...@go...>>>
> > wrote:
> >
> > My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
> >
> >
> >
> > On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> > > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems
> to work
> > > fine as it prints "Exception" on console and program terminates.
> > >
> > >
> > > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> > > <kar...@go...
> <mailto:kar...@go...>
> > <mailto:kar...@go...
> <mailto:kar...@go...>>
> > <mailto:kar...@go...
> <mailto:kar...@go...>
> > <mailto:kar...@go...
> <mailto:kar...@go...>>>>
> > > wrote:
> > >
> > > Hi,
> > >
> > > cppcms hangs if the constructor of cppcms::application and
> > derived class
> > > throw, see the code below. Any ideas how to fix this?
> > >
> > >
> > >
> > >
> > > #include <cppcms/applications_pool.h>
> > > #include <cppcms/service.h>
> > > #include <cppcms/http_response.h>
> > > #include <cppcms/application.h>
> > >
> > > #include <iostream>
> > > #include <stdexcept>
> > >
> > > using namespace std;
> > >
> > > class my_app : public cppcms::application
> > > {
> > > public:
> > >
> > > my_app( cppcms::service& srv )
> > > : cppcms::application( srv )
> > > {
> > > throw std::runtime_error( "Exception" );
> > > }
> > >
> > > virtual void main(std::string url)
> > > {
> > > cout << "Hello world!" << endl;
> > >
> > > response().out() <<
> > > "<html>\n"
> > > "<body>\n"
> > > " <h1>Hello World</h1>\n"
> > > "</body>\n"
> > > "</html>\n";
> > > }
> > > };
> > >
> > >
> > > int main( int argc , char **argv )
> > > {
> > > try
> > > {
> > > cppcms::service app( argc , argv );
> > > app.applications_pool().mount(
> > cppcms::applications_factory<
> > > my_app >() );
> > > app.run();
> > > }
> > > catch( std::exception const &e )
> > > {
> > > std::cerr << e.what() << std::endl;
> > > }
> > >
> > > return 0;
> > > }
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your
> > business. Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100%
> visibility
> > > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE
> TRIAL of
> > > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> <mailto:Cpp...@li...>
> > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>>
> > > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>
> > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>>>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> > >
> > >
> > >
> > > --
> > > Respect,
> > > Shiv Shankar Dayal
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your business.
> > Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > >
> > >
> > >
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> <mailto:Cpp...@li...>
> > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your
> business. Most IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> <mailto:Cpp...@li...>
> > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
> >
> >
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business.
> Most IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> <mailto:Cpp...@li...>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility
> into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> <mailto:Cpp...@li...>
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
>
> --
> Respect,
> Shiv Shankar Dayal
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|
|
From: CN <cn...@fa...> - 2013-11-29 12:15:25
|
Aha! I already had read [1]http://cppcms.com/wikipp/en/page/cppcms_1x_sessions before I posted my question. After re-reading it, I finally notice that cppcms::session_interface::load() must be called every time after the request arrives in asynchronous applications. session().set("my_key") is automatically called by the framework if client side cookie named "my_key" is set. This means we do not need to manually call session().set("my_key") if that cookie is already set. Please correct me if I misunderstand it! Regards, CN On Fri, Nov 29, 2013, at 07:48 PM, Shiv Shankar Dayal wrote: If you want to retrieve session().is_set("my_key") which appears to be your key then before retrieving you need to set it as shown in [2]http://cppcms.com/wikipp/en/page/cppcms_1x_sessions For example, session().set("my_key", true); before it will return true. On Fri, Nov 29, 2013 at 4:59 PM, CN <[3]cn...@fa...> wrote: Taking void post(std::string const &author,std::string const &message) in file json_rpc_chat.cpp as an example, session().is_set("my_key"); appears to always return false. However, session().get_session_cookie(); does return a string. Am I misunderstanding http or the framework? Thank you! CN -- [4]http://www.fastmail.fm - Choose from over 50 domains or use your own ----------------------------------------------------------------------- ------- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [5]http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg .clktrk _______________________________________________ Cppcms-users mailing list [6]Cpp...@li... [7]https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Respect, Shiv Shankar Dayal ----------------------------------------------------------------------- ------- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! [8]http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg .clktrk _______________________________________________ Cppcms-users mailing list [9]Cpp...@li... [10]https://lists.sourceforge.net/lists/listinfo/cppcms-users References 1. http://cppcms.com/wikipp/en/page/cppcms_1x_sessions 2. http://cppcms.com/wikipp/en/page/cppcms_1x_sessions 3. mailto:cn...@fa... 4. http://www.fastmail.fm/ 5. http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk 6. mailto:Cpp...@li... 7. https://lists.sourceforge.net/lists/listinfo/cppcms-users 8. http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk 9. mailto:Cpp...@li... 10. https://lists.sourceforge.net/lists/listinfo/cppcms-users -- http://www.fastmail.fm - A no graphics, no pop-ups email service |
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 11:53:53
|
Maybe Artyom can help.
On Fri, Nov 29, 2013 at 5:22 PM, Shiv Shankar Dayal <
shi...@gm...> wrote:
> No I have no idea because for me it is working.
>
>
>
> On Fri, Nov 29, 2013 at 5:02 PM, Karsten Ahnert <
> kar...@go...> wrote:
>
>> Aha, in debug mode the program behaves as expected. In release mode it
>> hangs. Any ideas?
>>
>>
>> On 29.11.2013 12:02, Shiv Shankar Dayal wrote:
>> > Try to debug using gdb and send a stack trace where it gets stuck. That
>> > will help.
>> >
>> >
>> > On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert
>> > <kar...@go... <mailto:kar...@go...>>
>> > wrote:
>> >
>> > My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
>> >
>> >
>> >
>> > On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
>> > > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
>> > > fine as it prints "Exception" on console and program terminates.
>> > >
>> > >
>> > > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
>> > > <kar...@go...
>> > <mailto:kar...@go...>
>> > <mailto:kar...@go...
>> > <mailto:kar...@go...>>>
>> > > wrote:
>> > >
>> > > Hi,
>> > >
>> > > cppcms hangs if the constructor of cppcms::application and
>> > derived class
>> > > throw, see the code below. Any ideas how to fix this?
>> > >
>> > >
>> > >
>> > >
>> > > #include <cppcms/applications_pool.h>
>> > > #include <cppcms/service.h>
>> > > #include <cppcms/http_response.h>
>> > > #include <cppcms/application.h>
>> > >
>> > > #include <iostream>
>> > > #include <stdexcept>
>> > >
>> > > using namespace std;
>> > >
>> > > class my_app : public cppcms::application
>> > > {
>> > > public:
>> > >
>> > > my_app( cppcms::service& srv )
>> > > : cppcms::application( srv )
>> > > {
>> > > throw std::runtime_error( "Exception" );
>> > > }
>> > >
>> > > virtual void main(std::string url)
>> > > {
>> > > cout << "Hello world!" << endl;
>> > >
>> > > response().out() <<
>> > > "<html>\n"
>> > > "<body>\n"
>> > > " <h1>Hello World</h1>\n"
>> > > "</body>\n"
>> > > "</html>\n";
>> > > }
>> > > };
>> > >
>> > >
>> > > int main( int argc , char **argv )
>> > > {
>> > > try
>> > > {
>> > > cppcms::service app( argc , argv );
>> > > app.applications_pool().mount(
>> > cppcms::applications_factory<
>> > > my_app >() );
>> > > app.run();
>> > > }
>> > > catch( std::exception const &e )
>> > > {
>> > > std::cerr << e.what() << std::endl;
>> > > }
>> > >
>> > > return 0;
>> > > }
>> > >
>> > >
>> >
>> ------------------------------------------------------------------------------
>> > > Rapidly troubleshoot problems before they affect your
>> > business. Most IT
>> > > organizations don't have a clear picture of how application
>> > performance
>> > > affects their revenue. With AppDynamics, you get 100%
>> visibility
>> > > into your
>> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>> > > AppDynamics Pro!
>> > >
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> > > _______________________________________________
>> > > Cppcms-users mailing list
>> > > Cpp...@li...
>> > <mailto:Cpp...@li...>
>> > > <mailto:Cpp...@li...
>> > <mailto:Cpp...@li...>>
>> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > Respect,
>> > > Shiv Shankar Dayal
>> > >
>> > >
>> > >
>> >
>> ------------------------------------------------------------------------------
>> > > Rapidly troubleshoot problems before they affect your business.
>> > Most IT
>> > > organizations don't have a clear picture of how application
>> > performance
>> > > affects their revenue. With AppDynamics, you get 100% visibility
>> > into your
>> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>> > AppDynamics Pro!
>> > >
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Cppcms-users mailing list
>> > > Cpp...@li...
>> > <mailto:Cpp...@li...>
>> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
>> > >
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Rapidly troubleshoot problems before they affect your business.
>> Most IT
>> > organizations don't have a clear picture of how application
>> performance
>> > affects their revenue. With AppDynamics, you get 100% visibility
>> > into your
>> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>> > AppDynamics Pro!
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Cppcms-users mailing list
>> > Cpp...@li...
>> > <mailto:Cpp...@li...>
>> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
>> >
>> >
>> >
>> >
>> > --
>> > Respect,
>> > Shiv Shankar Dayal
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Rapidly troubleshoot problems before they affect your business. Most IT
>> > organizations don't have a clear picture of how application performance
>> > affects their revenue. With AppDynamics, you get 100% visibility into
>> your
>> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>> AppDynamics Pro!
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> >
>> >
>> >
>> > _______________________________________________
>> > Cppcms-users mailing list
>> > Cpp...@li...
>> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>
>
>
> --
> Respect,
> Shiv Shankar Dayal
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 11:52:16
|
No I have no idea because for me it is working.
On Fri, Nov 29, 2013 at 5:02 PM, Karsten Ahnert <
kar...@go...> wrote:
> Aha, in debug mode the program behaves as expected. In release mode it
> hangs. Any ideas?
>
>
> On 29.11.2013 12:02, Shiv Shankar Dayal wrote:
> > Try to debug using gdb and send a stack trace where it gets stuck. That
> > will help.
> >
> >
> > On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert
> > <kar...@go... <mailto:kar...@go...>>
> > wrote:
> >
> > My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
> >
> >
> >
> > On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> > > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
> > > fine as it prints "Exception" on console and program terminates.
> > >
> > >
> > > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> > > <kar...@go...
> > <mailto:kar...@go...>
> > <mailto:kar...@go...
> > <mailto:kar...@go...>>>
> > > wrote:
> > >
> > > Hi,
> > >
> > > cppcms hangs if the constructor of cppcms::application and
> > derived class
> > > throw, see the code below. Any ideas how to fix this?
> > >
> > >
> > >
> > >
> > > #include <cppcms/applications_pool.h>
> > > #include <cppcms/service.h>
> > > #include <cppcms/http_response.h>
> > > #include <cppcms/application.h>
> > >
> > > #include <iostream>
> > > #include <stdexcept>
> > >
> > > using namespace std;
> > >
> > > class my_app : public cppcms::application
> > > {
> > > public:
> > >
> > > my_app( cppcms::service& srv )
> > > : cppcms::application( srv )
> > > {
> > > throw std::runtime_error( "Exception" );
> > > }
> > >
> > > virtual void main(std::string url)
> > > {
> > > cout << "Hello world!" << endl;
> > >
> > > response().out() <<
> > > "<html>\n"
> > > "<body>\n"
> > > " <h1>Hello World</h1>\n"
> > > "</body>\n"
> > > "</html>\n";
> > > }
> > > };
> > >
> > >
> > > int main( int argc , char **argv )
> > > {
> > > try
> > > {
> > > cppcms::service app( argc , argv );
> > > app.applications_pool().mount(
> > cppcms::applications_factory<
> > > my_app >() );
> > > app.run();
> > > }
> > > catch( std::exception const &e )
> > > {
> > > std::cerr << e.what() << std::endl;
> > > }
> > >
> > > return 0;
> > > }
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your
> > business. Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100%
> visibility
> > > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > <mailto:Cpp...@li...
> > <mailto:Cpp...@li...>>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> > >
> > >
> > >
> > > --
> > > Respect,
> > > Shiv Shankar Dayal
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Rapidly troubleshoot problems before they affect your business.
> > Most IT
> > > organizations don't have a clear picture of how application
> > performance
> > > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > >
> > >
> > >
> > > _______________________________________________
> > > Cppcms-users mailing list
> > > Cpp...@li...
> > <mailto:Cpp...@li...>
> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most
> IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > <mailto:Cpp...@li...>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
> >
> >
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 11:48:50
|
If you want to retrieve session().is_set("my_key") which appears to be your
key
then before retrieving you need to set it as shown in
http://cppcms.com/wikipp/en/page/cppcms_1x_sessions
For example,
session().set("my_key", true);
before it will return true.
On Fri, Nov 29, 2013 at 4:59 PM, CN <cn...@fa...> wrote:
> Taking void post(std::string const &author,std::string const &message)
> in file json_rpc_chat.cpp as an example,
>
> session().is_set("my_key");
>
> appears to always return false. However,
>
> session().get_session_cookie();
>
> does return a string. Am I misunderstanding http or the framework?
>
> Thank you!
> CN
>
> -- http://www.fastmail.fm - Choose from over 50 domains or use your own
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
--
Respect,
Shiv Shankar Dayal
|
|
From: Karsten A. <kar...@go...> - 2013-11-29 11:33:05
|
Aha, in debug mode the program behaves as expected. In release mode it
hangs. Any ideas?
On 29.11.2013 12:02, Shiv Shankar Dayal wrote:
> Try to debug using gdb and send a stack trace where it gets stuck. That
> will help.
>
>
> On Fri, Nov 29, 2013 at 3:51 PM, Karsten Ahnert
> <kar...@go... <mailto:kar...@go...>>
> wrote:
>
> My one hangs. I use gcc 4.7.3 and ubuntu 13.04 and CppCMS 1.0.4.
>
>
>
> On 29.11.2013 11:09, Shiv Shankar Dayal wrote:
> > Tested with GCC 4.7.0 GNU/Linux Mint 15 CppCMS 1.0.4 seems to work
> > fine as it prints "Exception" on console and program terminates.
> >
> >
> > On Fri, Nov 29, 2013 at 3:32 PM, Karsten Ahnert
> > <kar...@go...
> <mailto:kar...@go...>
> <mailto:kar...@go...
> <mailto:kar...@go...>>>
> > wrote:
> >
> > Hi,
> >
> > cppcms hangs if the constructor of cppcms::application and
> derived class
> > throw, see the code below. Any ideas how to fix this?
> >
> >
> >
> >
> > #include <cppcms/applications_pool.h>
> > #include <cppcms/service.h>
> > #include <cppcms/http_response.h>
> > #include <cppcms/application.h>
> >
> > #include <iostream>
> > #include <stdexcept>
> >
> > using namespace std;
> >
> > class my_app : public cppcms::application
> > {
> > public:
> >
> > my_app( cppcms::service& srv )
> > : cppcms::application( srv )
> > {
> > throw std::runtime_error( "Exception" );
> > }
> >
> > virtual void main(std::string url)
> > {
> > cout << "Hello world!" << endl;
> >
> > response().out() <<
> > "<html>\n"
> > "<body>\n"
> > " <h1>Hello World</h1>\n"
> > "</body>\n"
> > "</html>\n";
> > }
> > };
> >
> >
> > int main( int argc , char **argv )
> > {
> > try
> > {
> > cppcms::service app( argc , argv );
> > app.applications_pool().mount(
> cppcms::applications_factory<
> > my_app >() );
> > app.run();
> > }
> > catch( std::exception const &e )
> > {
> > std::cerr << e.what() << std::endl;
> > }
> >
> > return 0;
> > }
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your
> business. Most IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> > into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> > AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> <mailto:Cpp...@li...>
> > <mailto:Cpp...@li...
> <mailto:Cpp...@li...>>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
> >
> >
> >
> > --
> > Respect,
> > Shiv Shankar Dayal
> >
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business.
> Most IT
> > organizations don't have a clear picture of how application
> performance
> > affects their revenue. With AppDynamics, you get 100% visibility
> into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > Cppcms-users mailing list
> > Cpp...@li...
> <mailto:Cpp...@li...>
> > https://lists.sourceforge.net/lists/listinfo/cppcms-users
> >
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility
> into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> <mailto:Cpp...@li...>
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
>
> --
> Respect,
> Shiv Shankar Dayal
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|
|
From: CN <cn...@fa...> - 2013-11-29 11:30:03
|
Taking void post(std::string const &author,std::string const &message)
in file json_rpc_chat.cpp as an example,
session().is_set("my_key");
appears to always return false. However,
session().get_session_cookie();
does return a string. Am I misunderstanding http or the framework?
Thank you!
CN
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
|