cppcms-users Mailing List for CppCMS C++ Web Framework (Page 134)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Artyom <art...@ya...> - 2010-08-05 12:01:55
|
Hello all, There was a small issue in CppCMS Beta 2 release, that caused all proto_* tests to fail, please take updated 0.99.2.1 version of file from sourceforge. Artyom ----- Original Message ---- > From: Artyom <art...@ya...> > To: cpp...@li... > Sent: Wed, August 4, 2010 10:38:49 PM > Subject: [Cppcms-users] CppCMS 0.99.2 - Beta 2 released > > The second beta is availible for download: > > Changes from Beta 1. > > - Significant performance improvements in Booster.Aio > - Significant performance improvment in FastCGI backend. > - Important bug fixes in file upload handling. > - Fixed response/status handling in synchronous and asynchronous API. > - Fixed incorrect numbers handling in JSON. > - Added more examples > - Various platform related fixes. > > > > Regards, > Artyom > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2010-08-05 11:36:18
|
> What are the API changes that you expect? > There are several expected changes: 1. I would probably add an option to have several event loops in single cppcms process but it seems to be backward compatible change 2. The Booster.Aio sockets classes are going to be changed, into more asio like style 3. It looks like localization API would have slight changes. Meanwhile there was only one important change between beta 1 to 2 - all asynchronous API use booster::callback rather then booster::function. callback unlike function uses reference counting of internal object rather then coping, this improves performance significantly but has effect on state-full callbacks. Which are almost never state-full. Artyom |
From: Artyom <art...@ya...> - 2010-08-05 10:45:57
|
> Is it possible to retrieve the session cookie in another way? At today's API it is possible to do this from client side only, using JavaScript. In order to be able to see response cookies `cppcms::http::response` class should be extended to support it. Quite trivial change. Also you may create your own session backend, but this is BAD idea. > I want to put in my response to the creation of a new session after > login the session id. Why would you do such thing? This is quite bad idea as it has some security issues as this data may leak somehow. The best to keep it withing cookies. Also please note, this is generally should not be session id See <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#session> This maybe just encrypted or signed session data in cookie and not some kind of id (depending on session backend you are using). > The function get_session_cookie() returns an empty string. You should not use this function as described in the manual as it should be used only from implementations of session backend. Note: get_session_cookie() gives incoming cookie data (i.e. request's cookie) and set_session_cookies() sets outgoing cookie data (i.e. response' cookie) and this cookie is set only after you save session. So, simplest solution is to patch a little http::response for this so it would support retrieving response cookies, not just setting them (generally good thing to be in CppCMS's API), but I would suggest for you to rethink if you really need to have this cookie. Artyom |
From: Geert V. de V. <gee...@ba...> - 2010-08-05 09:12:17
|
Hi, I want to put in my response to the creation of a new session after login the session id. I'm unable to retrieve it when the session is just created. The function get_session_cookie() returns an empty string. I also tried calling the save() function of the session interface but this doesn't seem to help. Is it possible to retrieve the session cookie in another way? Greetings, Geert DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. |
From: Artyom <art...@ya...> - 2010-08-04 19:38:56
|
The second beta is availible for download: Changes from Beta 1. - Significant performance improvements in Booster.Aio - Significant performance improvment in FastCGI backend. - Important bug fixes in file upload handling. - Fixed response/status handling in synchronous and asynchronous API. - Fixed incorrect numbers handling in JSON. - Added more examples - Various platform related fixes. Regards, Artyom |
From: matt p. <k3...@ho...> - 2010-08-04 17:19:15
|
I am not sure the exact version, but it is 0.x.x I think it's 0.0.6. I've only done a few tests with it, I am writing some other parts of the system, and don't expect to start cppcms daily development till September. which is why I thought if 1.x.x is stable per you, maybe I should skip 0.0.x and avoid upgrade issues. (since it's not going to be a straight path upgrade, per your comments) Features I'm going to be utilizing mostly concern form input, ajax communications (am very interested in the push technology), and serving up the web page. My main benefit to using cppcms is using C++ code for speed, and shared memory with other c++ processes, and memory size too. Thanks!Matt |
From: Daniel V. <chi...@gm...> - 2010-08-04 16:58:50
|
> How many of you using CppCMS 1.x.x beta and how many of you > are using CppCMS 0.0.x? I use CppCMS 1.x.x on two projects and I have no problems. My opinion is cppcms 1.x.x is stable. |
From: Geert V. de V. <gee...@ba...> - 2010-08-04 16:23:01
|
1.x.x hasn't let me down yet in the development of my application. So it seems stable. The only major issue for calling it the stable is the lack of documentation. This should be taken care off before making it stable imho. What are the API changes that you expect? Greetins, Geert On Wed, 2010-08-04 at 07:05 -0700, Artyom wrote: > Yes, indeed, CppCMS 1.x is much better: > > - Better and Reacher API > - Better Unit test coverage > - Simpler installation > - Better OS support. > - Even It is still beta, it is quite stable one and I think it is > even less buggy then CppCMS 0.x, but its API is still evolving. > > So at this point I could even declare CppCMS 1.x.x as "stable version" > but the API and ABI can't be considered stable. > > When CppCMS 1.x.x will be release it would be ABI stable till > next release so this is why I still don't make an official stable > release. > > But these are points that CppCMS users should be aware of. > > In any case I have a big question: > > How many of you using CppCMS 1.x.x beta and how many of you > are using CppCMS 0.0.x? > > Maybe it is better to declare CppCMS 1.x.x branch as stable and release > versions 0.99.X that would be considered as stable with evolving API? > > Regards, > Artyom > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. |
From: Artyom <art...@ya...> - 2010-08-04 14:05:32
|
Yes, indeed, CppCMS 1.x is much better: - Better and Reacher API - Better Unit test coverage - Simpler installation - Better OS support. - Even It is still beta, it is quite stable one and I think it is even less buggy then CppCMS 0.x, but its API is still evolving. So at this point I could even declare CppCMS 1.x.x as "stable version" but the API and ABI can't be considered stable. When CppCMS 1.x.x will be release it would be ABI stable till next release so this is why I still don't make an official stable release. But these are points that CppCMS users should be aware of. In any case I have a big question: How many of you using CppCMS 1.x.x beta and how many of you are using CppCMS 0.0.x? Maybe it is better to declare CppCMS 1.x.x branch as stable and release versions 0.99.X that would be considered as stable with evolving API? Regards, Artyom |
From: matt p. <k3...@ho...> - 2010-08-04 12:44:36
|
Artyom, Regarding the 1.x being better API and obviously more feature rich, I have a concern. I installed 0.x, and in order to do so, had to install boost and a bunch of other stuff. If I were to install 1.x, would I just have to worry about the cppcms part? This is on Linux. Thanks,Matt > From: cpp...@li... > Subject: Cppcms-users Digest, Vol 13, Issue 2 > To: cpp...@li... > Date: Wed, 4 Aug 2010 12:07:17 +0000 > > Send Cppcms-users mailing list submissions to > cpp...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/cppcms-users > or, via email, send a message with subject or body 'help' to > cpp...@li... > > You can reach the person managing the list at > cpp...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cppcms-users digest..." > > > Today's Topics: > > 1. C++ Web Development (Judah Anthony) > 2. Re: C++ Web Development (Artyom) > 3. Re: C++ Web Development (Aris Setyawan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 3 Aug 2010 11:32:08 -0400 > From: Judah Anthony <jud...@ec...> > Subject: [Cppcms-users] C++ Web Development > To: cpp...@li... > Message-ID: > <AANLkTim=nWTohvk7veWZs=5Ym=4s5...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I'm am currently a PHP web developer, but I'm interested in the structure, > performance, and low level access of C++. Where should I start? Should I > be looking into CppCMS 1.X or 0.X? Is there a guide that can take me > through everything (including setting up the nginx and fcgi)? > > Judah Anthony > Drupal Developer > Economist.com > p 212.554.0611 > e jud...@ec... > im janthonyeconomist (Skype) > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Tue, 3 Aug 2010 11:05:09 -0700 (PDT) > From: Artyom <art...@ya...> > Subject: Re: [Cppcms-users] C++ Web Development > To: cpp...@li... > Message-ID: <355...@we...> > Content-Type: text/plain; charset=us-ascii > > Hi, > > Hello, > > first of all make sure you had registered to this mailing > list, so I would not have to approve your mails. > > > Where should I start? Should I be > > looking into CppCMS 1.X or 0.X? > > CppCMS 0.x is better documented has more tutorials > but with release of 1.x it would receive only minor > support. So for future 1.x is better but be aware > that it is still beta version, but it is quite stable. > > The major drawback of CppCMS 1.x.x is that it has > less tutorials. But it has much > better API and much simpler to configure and install. > > So it is up to you. > > Note: CppCMS 1.x had brought big changed is API so > it would not be stright forward to upgrade to > next version. > > > >Is there a guide that can take me through > >everything > > Averithing can be found there: > > http://art-blog.no-ip.info/wikipp/en/page/main > > Start from tutorials and reference documentation. > > Also CppCMS 1.x has quite a set of examples in svn. > > > (including setting up the nginx and fcgi)? > > There is utility cppcms_run that allows you to debug and > run your application with different web servers, also CppCMS 1.x has > build in web server for debugging. > > Just take a look on configuration file being created, > CppCMS setup is same setup for general fastcgi process. > > Regards, > Artyom > > > > > > > ------------------------------ > > Message: 3 > Date: Wed, 4 Aug 2010 10:30:59 +0700 > From: Aris Setyawan <ari...@gm...> > Subject: Re: [Cppcms-users] C++ Web Development > To: cpp...@li... > Message-ID: > <AANLkTikbwexJpJ76bitrSrz0D26gP70qjA=DP7...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, I'm currently a PHP developer too, and I have a little experience in C++ > development with Borland C++ Builder and SDCC. > > If you new to development in C++, we must learn some different (or different > implemented) language features compare with PHP, such as function operator, > template (many external library provide API via template), and pointer > (including array pointer, string pointer, etc). > > We must know how to compile and link our program with or without external > library (some that maybe strange for a PHP developer). A book that cover > this problem is "An Introduction to GCC,for the GNU Compilers gcc and g++". > > Oh ya, I have read an old Design Pattern book by gang of four. Some part of > this book explain how to use C++ language feature in design pattern in an > elegant and simple way. > > I hope this can help you. > > -Aris Setyawan > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > ------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > End of Cppcms-users Digest, Vol 13, Issue 2 > ******************************************* |
From: Aris S. <ari...@gm...> - 2010-08-04 03:31:06
|
Hi, I'm currently a PHP developer too, and I have a little experience in C++ development with Borland C++ Builder and SDCC. If you new to development in C++, we must learn some different (or different implemented) language features compare with PHP, such as function operator, template (many external library provide API via template), and pointer (including array pointer, string pointer, etc). We must know how to compile and link our program with or without external library (some that maybe strange for a PHP developer). A book that cover this problem is "An Introduction to GCC,for the GNU Compilers gcc and g++". Oh ya, I have read an old Design Pattern book by gang of four. Some part of this book explain how to use C++ language feature in design pattern in an elegant and simple way. I hope this can help you. -Aris Setyawan |
From: Artyom <art...@ya...> - 2010-08-03 18:05:16
|
Hi, Hello, first of all make sure you had registered to this mailing list, so I would not have to approve your mails. > Where should I start? Should I be > looking into CppCMS 1.X or 0.X? CppCMS 0.x is better documented has more tutorials but with release of 1.x it would receive only minor support. So for future 1.x is better but be aware that it is still beta version, but it is quite stable. The major drawback of CppCMS 1.x.x is that it has less tutorials. But it has much better API and much simpler to configure and install. So it is up to you. Note: CppCMS 1.x had brought big changed is API so it would not be stright forward to upgrade to next version. >Is there a guide that can take me through >everything Averithing can be found there: http://art-blog.no-ip.info/wikipp/en/page/main Start from tutorials and reference documentation. Also CppCMS 1.x has quite a set of examples in svn. > (including setting up the nginx and fcgi)? There is utility cppcms_run that allows you to debug and run your application with different web servers, also CppCMS 1.x has build in web server for debugging. Just take a look on configuration file being created, CppCMS setup is same setup for general fastcgi process. Regards, Artyom |
From: Judah A. <jud...@ec...> - 2010-08-03 15:55:27
|
Hi, I'm am currently a PHP web developer, but I'm interested in the structure, performance, and low level access of C++. Where should I start? Should I be looking into CppCMS 1.X or 0.X? Is there a guide that can take me through everything (including setting up the nginx and fcgi)? Judah Anthony Drupal Developer Economist.com p 212.554.0611 e jud...@ec... im janthonyeconomist (Skype) |
From: Frank E. <fra...@an...> - 2010-08-01 23:55:52
|
ok, forget it - some other application was running on 8080.. i changed the port and now it works. regards, frank Am 02.08.2010 01:17, schrieb Frank Enderle: > hi, > > i try to run cppcms on windows 7 and visual studio 2008 express. after a > lot of trying i managed to compile cppcms. i compiled my program - which > works fine on linux - and started it. everything seemed alright, with > one exception: the program does not respond to requests - neither http > nor fastcgi. the requests always time out. > > however the socket is open and connectable using telnet, but it just > won't send responses. > > i compiled cppcms using visual studio as described in the wiki. the > supplemental tools (pcre, zlib, etc) i grabbed precompiled from the > internet, mostly from gnuwin32. > > is there anything i could check? > > regards, > > frank. > -- Dipl.-Ing. (FH) Frank Enderle anamica UG (haftungsbeschränkt) Beinsteinerstr. 6 71334 Waiblingen Telefon: +49 151 14981091 Telefax: +49 7151 1335770 E-Mail: fra...@an... Internet: www.anamica.de Handelsregister: AG Stuttgart HRB 732357 Geschäftsführer: Yvonne Holzwarth, Frank Enderle |
From: Frank E. <fra...@an...> - 2010-08-01 23:39:11
|
hi, i try to run cppcms on windows 7 and visual studio 2008 express. after a lot of trying i managed to compile cppcms. i compiled my program - which works fine on linux - and started it. everything seemed alright, with one exception: the program does not respond to requests - neither http nor fastcgi. the requests always time out. however the socket is open and connectable using telnet, but it just won't send responses. i compiled cppcms using visual studio as described in the wiki. the supplemental tools (pcre, zlib, etc) i grabbed precompiled from the internet, mostly from gnuwin32. is there anything i could check? regards, frank. -- Dipl.-Ing. (FH) Frank Enderle anamica UG (haftungsbeschränkt) Beinsteinerstr. 6 71334 Waiblingen Telefon: +49 151 14981091 Telefax: +49 7151 1335770 E-Mail: fra...@an... Internet: www.anamica.de Handelsregister: AG Stuttgart HRB 732357 Geschäftsführer: Yvonne Holzwarth, Frank Enderle |
From: Frank E. <fe...@in...> - 2010-08-01 23:32:46
|
hi, i try to run cppcms on windows 7 and visual studio 2008 express. after a lot of trying i managed to compile cppcms. i compiled my program - which works fine on linux - and started it. everything seemed alright, with one exception: the program does not respond to requests - neither http nor fastcgi. the requests always time out. however the socket is open and connectable using telnet, but it just won't send responses. i compiled cppcms using visual studio as described in the wiki. the supplemental tools (pcre, zlib, etc) i grabbed precompiled from the internet, mostly from gnuwin32. is there anything i could check? regards, frank. |
From: Artyom <art...@ya...> - 2010-07-30 04:58:19
|
Yes, See this: <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_comm#Variable+with+filters> and this <http://art-blog.no-ip.info/cppcms_ref_v0_99_1/namespacecppcms_1_1filters.html> Basically what you need is: <% mypropery | raw %> > > is there an elegant solution to disable the escaping of variables that > are rendered in a template? I require this because I have to give some > HTML tags for formatting unescaped to the client browser. > > Currently, I'm using this code: > <% c++ out()<<content.myproperty; %> > > But to me this seems not very elegant... > > Thanks for your help, > Julian |
From: Julian P. <ju...@wh...> - 2010-07-29 18:32:52
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, is there an elegant solution to disable the escaping of variables that are rendered in a template? I require this because I have to give some HTML tags for formatting unescaped to the client browser. Currently, I'm using this code: <% c++ out()<<content.myproperty; %> But to me this seems not very elegant... Thanks for your help, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMUclLAAoJENidYKvYQHlQkFcQAI09Og4E/bxC40oxYqi61+42 iP1N63ab87KDdow35thecjqCSs//Mik04bprz34vWN5fYNchBJMmhWuKfXFHKmBQ rn3ff1lwJ9X+X26slcJCXmC4DCBparpNi7+7QnJdlYEHPlkr01u5m5qjAX8N1cxV iHwV6yvOGlVJhDBW6rnCmxzy6ezquV/NiZ1wcdxrLOIZsfRgS1YAhyG76XknG3nN IGUbvvQnGGjyRV/MnaWmsl+dF6WUK8qn2I9rWJjYiiSf3ExMH5vpeGjsFeiSNa5K y03E3Xf56HqMzOLmCVSV00RqmnF95e5iddAzR1UqL1RwA8Zte08nTLKTbG6ZbZhQ g+EYFtUUSegzhT/vA7/GCQVqAMlbSh38Dpy/uadtE411pmS4k1MmjjKSptvJ+Bfq uLp0qVVe3sqq3BxgwICfOserTnZ4K4qKu/BYc6iglkglcGwcqFXyhHZo1Edg4+w3 lmSj0XJq6P99EPNRmkFc9+Hn18uu0Ga4O21IZ4Y7bnMs41JLWY1Sezcwd6F53Vml clByh4hXes1IGcXjXucos4molDyPvwP5xgGzhsTWVjYFpBYCEAOQl2Fuz+4dwjNV J/wncJ5NMr7Qw4m+D6UAPs1QI7sbkwMl+gyJSf8BPAJAcPm8kmsNB1j5X2DlUi0s CzBdMpZtGLxClSTkiGzN =T25B -----END PGP SIGNATURE----- |
From: Julian P. <ju...@wh...> - 2010-07-29 18:30:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.07.2010 14:54, schrieb Artyom: > And take a look on this discussion. > > http://permalink.gmane.org/gmane.comp.lib.cppcms.user/72 > > For "native" conversion between C++ objects and json objects. > Ok, with a few typo corrections the code example worked for me. Thanks! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMUcirAAoJENidYKvYQHlQ1OwQAI2Hf+hgWdXUEFUY6sHi1J6o aHdb68QtyZZYz9cOrzMdcpZqVbdiOM/JQ+nrwNYAV9BCJludr7PDmuGvwNsljHiA kNHTskYvyYQ0C+YPleuwEJKrB1CK6Xf5bzQgIHbmvlXrHn5UvRweMgbezT4ma2fB a3g64r6Y6AJdBtXbhw3EC+Ubx313YDvrgWP6fBbzgkIFLV2Z0rSR7STTR0/sOvbs 9Rr2xTrOGgO++yCdy+Ju5ZZm+THDe5oVBBiyK2WEkbPZKZN98zUIyWUop7vRH0Hn mQm5tRWJN9PY05XzKv2sFP/delGkuTIia+CvRRiUe3EVxLxV4wgOsEG25XugBHtA ocIfwSdbXUkyO+mEnbyW7IR9FEEcWFhDsjFKbaGd6nyUjlOlfSK5MCQCcP/v2i/T SAqkiorai+o8x6QucIdEzz8W7Qy5RZ9R+66Sz8JF85fYkGO1uL6WVHXeiV59Iaa/ Uk+CiFK6eEAjkosSDm0H8lYYINuYe4MGdh7+5vH8nZlkHeuUfORraJmGQe8MiqeS ZQ6Pp9jFRLn8w+xlL7NsFTAF7Trh5R8dPnccm2ZWG6U27aq/r2qEj84RsP1BRj8n IA8GKd+XwXA6hNTC3WViPD3rB6cGC+uUm/BtMSkpvTTymHC65WcNM2faip7Fq8ay Jw1JX8gQu3HRxjC0pN6F =+kq8 -----END PGP SIGNATURE----- |
From: Artyom <art...@ya...> - 2010-07-29 16:10:47
|
> > Thanks, this answered my question, but just raised another: in the named > documentation it reads that the path for temporary files is otherwise > made from the TMP or TEMP environment variable. This variable is not set > in my environment (Linux), so where from does the upload method take the > path to store to instead? In /tmp so this is not a problem, fixed docs. > Would it be enough to run my application with > TMP="/path/to/writable/dir" myapp.fcgi Yes, this should work >i f I didn't want to use an > unstable SVN revision? How unstable is the SVN revision indeed? Does it > make a big difference to use the latest SVN version compared to the > current beta? There are no big differences, but I would do recommend you to take an svn version as it includes some fixes with file u[;pad handling that was founded when I added several test cases for these configuration options. So if you upload files, it is better to take svn version. About stability, generally it is as stable as beta, but time to time there may be small issues. So just don't update to every latest revision and listen to what happens on this mailing list. Artyom |
From: Julian P. <ju...@wh...> - 2010-07-29 15:44:23
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.07.2010 14:48, schrieb Artyom: > Hell, > > Take a look on this: > > <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#security.uploads\_path> > > > > But you need to take the latest version from SVN - revision 1327 or above. > I have just added these options I've planned to add long time before but hadn't > get there. > > Artyom > > > Thanks, this answered my question, but just raised another: in the named documentation it reads that the path for temporary files is otherwise made from the TMP or TEMP environment variable. This variable is not set in my environment (Linux), so where from does the upload method take the path to store to instead? Would it be enough to run my application with TMP="/path/to/writable/dir" myapp.fcgi if I didn't want to use an unstable SVN revision? How unstable is the SVN revision indeed? Does it make a big difference to use the latest SVN version compared to the current beta? Thanks for your reply, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMUaHGAAoJENidYKvYQHlQhckQALY+a/NZtHQDsu8QPbGsXmef zgi0tKoImd/FkSDTV6fkaYhEgEjYP+DTEM/buQICXI8xZt9Oh+8Pq4o2c4qOulR7 m4sVE9nMWj91R7V5A2UA9CAgAyplAKmzfN7t3duSKtfyxuQQGI0zc5afCazjwT0x eTcpdK6ConInvhoWWi6AOiDn/j8dqi2S73rpKETam79+ANHnkfJ6ATdRApTTinoz 1dulCZ0dXSnUYEAfFBPNSCh/K1A+4QHXb3NxmJ/oXToWI2MpI4z1NlkvG0kAVgWH emsD24HhdXhIz3wemt0sF6GxbK/NNyQVEXpLr7wCwUbBwH1CvVoX6zjXxKLPlkY+ XxILBfEVWp+sEOx2XhX9pSIHQ5CdrqF4rNqSR476w9a7sWMZZx1Z3prO/CFwprij 1728uh4ry8SI77ot3Mw2uetmg4v4yxcX5MoC5lFRzqEq4dnkAMO1zf5RmlgiSaqD kVhHRibZiH/PQpK5Bmcv+yqJipsSAbmdFVEQE2oobbaZ/uVeIzrhY0dqQ4j4vuGJ jYP0DYMbL89tXVAhS6MD8rxM4Nmdoc3PaVwuAY7Fk0sHqhckdeOlBwLq9uHpl66F vhROQtlI2dIrzTiP17fg5387IcoALppPlad1FBNvZB+4NwFaqoRef8OOf5KAbLFI c1Sts4GB39gMGm72v7Q4 =M/K0 -----END PGP SIGNATURE----- |
From: Artyom <art...@ya...> - 2010-07-29 12:54:57
|
Read documentation of json::value http://art-blog.no-ip.info/cppcms_ref_v0_99_1/classcppcms_1_1json_1_1value.html In order to understand how to save and load data to and from json objects. And take a look on this discussion. http://permalink.gmane.org/gmane.comp.lib.cppcms.user/72 For "native" conversion between C++ objects and json objects. If you will have more questions feel free to ask. Artyom > > another question: How can I use the json methods for my own purpose? > I've created a struct with some std::string members and tried > > cppcms::json::value value; > > value.set("",mystruct); > > The compiler claimed that there was an "incomplete type used in nested > name specifier" cppcms::json::traits<mystruct_t>. > |
From: Artyom <art...@ya...> - 2010-07-29 12:49:01
|
Hell, Take a look on this: <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#security.uploads\_path> But you need to take the latest version from SVN - revision 1327 or above. I have just added these options I've planned to add long time before but hadn't get there. Artyom > > is there a way to tell cppcms where to store the temporary files it > creates on multipart/form-data uploads? > I need this because the application I'm currently writing shall run on > an embedded device which loads from a read only filesystem and has only > a certain path where data can be stored persistently. (/tmp is a RAM > disk, but the problem is, that the available RAM is not big enough to > hold the upload until it is save'd_to somewhere -> embedded device). > |
From: Julian P. <ju...@wh...> - 2010-07-29 01:21:53
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, another question: How can I use the json methods for my own purpose? I've created a struct with some std::string members and tried cppcms::json::value value; value.set("",mystruct); The compiler claimed that there was an "incomplete type used in nested name specifier" cppcms::json::traits<mystruct_t>. Should my struct subclass another class or what else have I done wrong? How is the JSON encoder to be used? Thanks for your replies, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMUNenAAoJENidYKvYQHlQSl4P/3oSU0EMxWNYGHJzcnMhZwfM h0RXC/lC70c/0iIuAHZ3XPBaJ6tsgevSqfKZV4lWr2a8sH8b+ca5WuQq9/KlTNUs 83Jq2DP4qpnDCVO9GIuuDOEDt6b3ORF7TsW9KRAmFKLsRcQ2K7GuTe5CrdN1ToNk IhRT/ywGxpU8YNSyowDH2zYC282VeJq4jAgYRYzZ4CuKTz8hzNM94whrJNl+wLsj x/YUNv4mitk65m8UufnMNCf/H1T1i83mCD5S3SGEM8cyHl555qID+eGWxwZeDIDL ZM8fkQg0/KlR2yPTPDRFOWHHl9cm8IUTTT7U4pKCsrbYH7z/AhNrSAoGiHDdo6b2 ogMBiAB4mG09LDiGoKL/ALJiztihwP/ZHRXmD7X2dwWrgDpNkM9Oqgn9ZZuXHx+N mex2DStcX/2EMjnfet1fKTODW8ho2TVA8NC3XKu+mkqx+j/yyltf94NrqMMa/TTA FqDs5rdp/JArVxpu2SucI6VNPkaM7fms5i4hFJAWddMu5iLqtRhfXcljbvefecdv hcyC26Dpzahll7zFUHd/T/Tvpdo9uCf6Inmuhk8GNq5t79I28QNTN07cwOjFcTJG khr/tQIHk1h2cgDCgFFn0jwG4fxs2myptK9qvZGdmdX7rtFCRHgmMHtjPrWvHA+t w6xe2DcXNb3C8tfJeZpu =Tw0w -----END PGP SIGNATURE----- |
From: Julian P. <ju...@wh...> - 2010-07-29 01:00:32
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, is there a way to tell cppcms where to store the temporary files it creates on multipart/form-data uploads? I need this because the application I'm currently writing shall run on an embedded device which loads from a read only filesystem and has only a certain path where data can be stored persistently. (/tmp is a RAM disk, but the problem is, that the available RAM is not big enough to hold the upload until it is save'd_to somewhere -> embedded device). Thanks for your solutions, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMUMjWAAoJENidYKvYQHlQx2AQAMwg28sMMaGc3AJp2DsuCJ1W j71qe7tbb/1H9x32VKYzAtso/RzphzztlyprsphA/KbpHpCPDFlNgM+5CM1li0kh CQxn1mc4/y0WhMzGPa7cH5wKpMhP4DG2R0jvc4e2aqIZie6TJMJxXbgZWXH/2ll4 dukmsjFuDvRlMjmFA6QErQmee350G/IhFC63aAzQH0X5KC43UVMqbuRIv2comWs8 hApcku5Eo/lNyEB7Dt24L7TuBIY2Y9/jaGHZXPmyBT8ZCU/R0ZQAW+g2q1XTt2av /k+cmraDclUHl363gFCinV1KfUSNuYMIfDyygQ986Q+jXfOccwtxI2Rtz1UkdhKN SPrdZgOcTCfwBzHxefkiihfie86YxgeJ3PVMyXXF6Rvky2oM+ocj6KxS6jhYM90o VtSELX1uReaeKgfPwujDal0aOfu8ZJqUekwInGyfxkVJpKB4sXSgNOi9FWBA8X5l qAFB6oKemOgHNTnBoZYZzPW6XpbqmYnkiVpfGtsLzHWbVnnwRTbzAFXz486F1s4M c2VoG/7dxXREx8RoP4M113wWMXFWgD8ovv07i8ar6QO5ZMCLB8JqIrkt03ymQOGw dQv1ztkcDICFEA+GU46UwD3uD9TFfzw+ke2ONMtGUpuUmNma80jCSQLm0s2UFCgt 7yev6LbCoD2XPzGIWmwp =kjrJ -----END PGP SIGNATURE----- |