cppcms-users Mailing List for CppCMS C++ Web Framework (Page 83)
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: Ovanes M. <om_...@ke...> - 2012-06-12 17:01:58
|
Artyom, thanks for your time answering my long email. I have some more comments. >>________________________________ >> From: Ovanes Markarian <om_cppcms@...> >>To: cppcms-users@... >>Sent: Sunday, June 10, 2012 9:41 PM >>Subject: [Cppcms-users] cppcms unclear issues and philosophy >> >>Hello *, > >First of all please register to cppcms-users mailing list so I don't >have to moderate comments > Yes, I did it. Waited for about 15 mins to get a reply from the mailing list... Nothing happened, so I assumed my subscription was OK and sent the email. Got from the mailing list the OK after about 1 day. Don't know why... > > >> >> My main consideration is the faked >> boost lib: booster and dependencies to some C stuff like PCRE... > > >I'll explain. > >booster is not "fake" boost library it is a subset of essential >C++0x/Boost like interface needed for CppCMS. > >You can use freely any Boost or C++11 library with it >without any problem. > >Why? ABI Stability > >I can't use Boost with CppCMS because it breaks its interfaces > >every 3 months - both ABI and what is even harder API! > >This is something I can't afford. There are dozens of cases >where programs become broken because some 3rd part library >used different version of boost then the main program and more > >and more > > >Read this discussion for more details: > > http://thread.gmane.org/gmane.comp.lib.boost.devel/204117 > > > >Stable ABI allows a user for example update a CppCMS library >with a hostfix problem or just update to new version without >recompiling anything. > > > >> My >> main point, is that the project will be written in C++11. Using Clang >>3.0 I was unable to compile CppCMS with C++11 enabled, the main >>problems were in the booster lib. > > >1. You don't need to compile libcppcms/libbooster with C++11 enabled to use > it with C++11 enabled. >2. Clang still crashes on some trivial stuff in C++11 mode! > > > >> Another question is why PCRE was >> used here, when boost has a regex lib, which was used as a base for >> C++11 regex lib? Here one could easily exchange the namespaces and use >> a multi-platform regexes implemented by the new C++ standard without >> any need to have PCRE or use boost again. > >Good point: > >There is no a single mainstream C++11 compiler that actually implements > >C++11 regex! (neither gcc nor msvc-10) Just looked up Clang 3.0 libc++ has it (3.1 respectively as well) http://llvm.org/svn/llvm-project/libcxx/tags/libcpp-30/include/regex http://llvm.org/svn/llvm-project/libcxx/tags/libcpp-31/include/regex GCC 4.6.3 has it (4.7.x respectively as well) http://gcc.gnu.org/onlinedocs/gcc-4.6.3/libstdc++/api/a01192.html Did not lookup if earlier versions of gcc have the regex support as well. > >Boost.Regex is great library but it is not ABI friendly... So >if I just "copy" boost.regex to booster I will not be able >to fix bugs easily. I somehow do not understand how the bugs are now easily fixed? You still need to issue a new version (or patch) of an internal regex lib. If PCRE has bugs, why are they easier to fix as the regex in the boost? At that point I would like to point out another solution without any regex lib: I understand your objections, but there would be another workaround... To let users implement the url dispatcher theirselves. This might violate DRY, since many users will implement the same class again and again... May be, it makes sense to introduce the cppcms corelib and cppcms helper lib for those who wish stability. I personally would like to use boost::xpressive at all. >Another goodies you get with PCRE are: > >1. Very fast copy (as fast as memcpy) >2. Support of JIT (yeah...) And now I came along as a C++ developer and ask: "What happens if PCRE was unable to internally use heap?" Will cppcms throw a bad_alloc or what kind of error should I expect. Sure it might be a hypothetical issue, but how are PCRE errors generally reported. What if regex compilation failed, since I provided a bad regex, how is that reported? I did not find the answer in the docs. I know for example that xpressive will issue a compilation error ;) Now to the JIT. It seems like being a nice feature, which is executed once at start up. How much slower is the start up of my application if JIT is going to be used? According to the first table: http://sljit.sourceforge.net/pcre.html JIT seems to make the initial regex compilation on average 20 times slower. So if I really going to have many URLs or locations, my app might start 20 times slower. But if all my regex patterns are known at compile time I prefer xpressive ;) > > >> The same applies to faked >>booster::function. What if I want to use C++11 lambdas, are they going >>to nicely play with them? > >Yes of course, you can even assign (std/boost)::function to booster::function >and vise versa > > >> I know that boost::function is the base of >> std::function which really greatly plays with lambdas etc. The same >> applies to threading lib and asio, which is now proposed for C++ TR2. >> > >What was proposed to TR2 is very different from ASIO, so the >thread is different from boost.thread - very different. Ok, but as far as I can see boost thread lib tries to catch up with the standard. On the other hand. Clang 3.1 and GCC 4.7 have support for major threading features. But here I must agree, if boost catches up with C++11 the ABI is not going to be stable. > > >Long story short I can tell you a long story about Asio (I use it on dayly basis) >and it is good library but it was hard decision and correct one, small >problems list: fork, detach native socket, stream-socket for TCP!=UNIX >ones, loooooooooooooooooooooooooooong compilation times and more. > > >>Could you please explain what is the benefit in faking boost > >It is not faking. It is taking good interfaces and exposing >them. Booster does not replace boost and not intended to. > >But it allows me to create ABI and ABI stable applications which >is impossible to do with Boost Ok, I partially agree. But it might be possible to introduce a generic interface? Ok, compilation times will get longer, but I can personally live with it. On the other hand, users are free than which lib should be used. They can use a cppcms helper lib or boost. > >>and let >>the users find out what incompatibilities between booster and boost >>might be there instead of using well established, greatly tested and >>documented boost libs. What is going to happen for example with locale >>lib? Now it is part of boost, will you have a spin off branch of that >>lib in CppCMS or just reference the boost distro? >> > >Booster.Locale = Boost.Locale - and it was **designed** with ABI >stability so Booster.Locale would be updated as regularly as Boost.Locale. > >Actually Booster.Locale generated from Boost.Locale using a small automatic > >script. > > > >>I can see some benefit for boost in embedded world, but doing web >>development when having unlimited resources on server side, I clearly >>prefer to use boost. Can I somehow disable booster and rely on boost >>where I really feel to be at home? >> > >No, you can't because Booster!=Boost. Booster is "fat-free" version >of some boost interfaces, it is much smaller and you can use them both. Sorry I typed to fast. The sentence should be "I can see some benefit for boostER in embedded world,..." How portable are booster interfaces??? What if I decide to use really strange compiler with a great hardware intended to run my site infrastructure really efficiently. I known that boost does not provide the insurance as well, but is there a guarantee, that boost is going to support at least the same majority of compilers that boost supports? > >You probably know that I'm Boost developer and the author of Boost.Locale. Yes, I know that. Congratulations, that your lib was accepted! ;) > >As boost developer I know its "dark" sides and believe me they aren't pretty. Yes, I heard about them at BoostCont 2010. > > >>I also see that you are some guys going to develop part of boost libs. >>This has IMO implications: >>o It might slow down development of CppCMS if you are always going to >>catch up boost features >>o If you are not going to catch up boost features in booster libs, >>they will diverge and make uses read some more help, what differs >>where. > >No. I'm not going to "catch up" Booster needs less then Boost. > > >> >>I already had a problem building CppCMS when using a cross-compiler. I >>had to cross-compile a bunch of C libs nowhere else used in the >>project. > >Give me a favor... > >libpcre and zlib are the basic libraries available anywhere. >I'm boost developer and I know how crappy >it is to "cross-compile" and to do _anything_ with Boost.Build >system... Actually, boost cross-compilation worked like a charm, because it is self-contained. Once I defined the user.jam everything worked. But after starting to deal with cppcms, I had one error after another with the requirement: to introduce more and more C libs into the cross-compilation toolset and finally after some download sessions and compilations I got cppcms. > > > >> >>Many thanks for your attention, please don't be insulted by my mail. I >>just want to understand your intentions and see where CppCMS might go >>in the future, since my decision might really make the entire >>development in the company much harder/slower etc. >> > > >I think this should go to some FAQ. So it is ok. > >I'll add few things. The greatest thing about boost and the most >horrible thing about it is that it is cutting edge library. > >I have a great experience of having code broken between different >releases of Boost. If you do not limit you project to very narrow >range of Boost libraries and always synchronize yourself >with the latest version you will soon discover that it is > >impossible to upgrade. Mhh... I use boost since 2004 and as I counted more than 50 libs are used in the project, we never had these problems. On the other hand, I don't understand your statement, since boost features Unit Tests. Are those broken than? > >I love Boost and and develop for Boost but it does not suit >for stable library development. > >So having stable API and ABI helps, and does not make problems >harder. > >> > >>With Kind Regards, >>Ovanes >> > >Regards, > Artyom > Thanks for your great answers, Ovanes |
From: Artyom B. <art...@ya...> - 2012-06-11 19:36:53
|
>________________________________ > From: Ovanes Markarian <om_...@ke...> >To: cpp...@li... >Sent: Sunday, June 10, 2012 9:41 PM >Subject: [Cppcms-users] cppcms unclear issues and philosophy > >Hello *, First of all please register to cppcms-users mailing list so I don't have to moderate comments > > My main consideration is the faked > boost lib: booster and dependencies to some C stuff like PCRE... I'll explain. booster is not "fake" boost library it is a subset of essential C++0x/Boost like interface needed for CppCMS. You can use freely any Boost or C++11 library with it without any problem. Why? ABI Stability I can't use Boost with CppCMS because it breaks its interfaces every 3 months - both ABI and what is even harder API! This is something I can't afford. There are dozens of cases where programs become broken because some 3rd part library used different version of boost then the main program and more and more Read this discussion for more details: http://thread.gmane.org/gmane.comp.lib.boost.devel/204117 Stable ABI allows a user for example update a CppCMS library with a hostfix problem or just update to new version without recompiling anything. > My > main point, is that the project will be written in C++11. Using Clang >3.0 I was unable to compile CppCMS with C++11 enabled, the main >problems were in the booster lib. 1. You don't need to compile libcppcms/libbooster with C++11 enabled to use it with C++11 enabled. 2. Clang still crashes on some trivial stuff in C++11 mode! > Another question is why PCRE was > used here, when boost has a regex lib, which was used as a base for > C++11 regex lib? Here one could easily exchange the namespaces and use > a multi-platform regexes implemented by the new C++ standard without > any need to have PCRE or use boost again. Good point: There is no a single mainstream C++11 compiler that actually implements C++11 regex! (neither gcc nor msvc-10) Boost.Regex is great library but it is not ABI friendly... So if I just "copy" boost.regex to booster I will not be able to fix bugs easily. Another goodies you get with PCRE are: 1. Very fast copy (as fast as memcpy) 2. Support of JIT (yeah...) > The same applies to faked >booster::function. What if I want to use C++11 lambdas, are they going >to nicely play with them? Yes of course, you can even assign (std/boost)::function to booster::function and vise versa > I know that boost::function is the base of > std::function which really greatly plays with lambdas etc. The same > applies to threading lib and asio, which is now proposed for C++ TR2. > What was proposed to TR2 is very different from ASIO, so the thread is different from boost.thread - very different. Long story short I can tell you a long story about Asio (I use it on dayly basis) and it is good library but it was hard decision and correct one, small problems list: fork, detach native socket, stream-socket for TCP!=UNIX ones, loooooooooooooooooooooooooooong compilation times and more. >Could you please explain what is the benefit in faking boost It is not faking. It is taking good interfaces and exposing them. Booster does not replace boost and not intended to. But it allows me to create ABI and ABI stable applications which is impossible to do with Boost >and let >the users find out what incompatibilities between booster and boost >might be there instead of using well established, greatly tested and >documented boost libs. What is going to happen for example with locale >lib? Now it is part of boost, will you have a spin off branch of that >lib in CppCMS or just reference the boost distro? > Booster.Locale = Boost.Locale - and it was **designed** with ABI stability so Booster.Locale would be updated as regularly as Boost.Locale. Actually Booster.Locale generated from Boost.Locale using a small automatic script. >I can see some benefit for boost in embedded world, but doing web >development when having unlimited resources on server side, I clearly >prefer to use boost. Can I somehow disable booster and rely on boost >where I really feel to be at home? > No, you can't because Booster!=Boost. Booster is "fat-free" version of some boost interfaces, it is much smaller and you can use them both. You probably know that I'm Boost developer and the author of Boost.Locale. As boost developer I know its "dark" sides and believe me they aren't pretty. >I also see that you are some guys going to develop part of boost libs. >This has IMO implications: >o It might slow down development of CppCMS if you are always going to >catch up boost features >o If you are not going to catch up boost features in booster libs, >they will diverge and make uses read some more help, what differs >where. No. I'm not going to "catch up" Booster needs less then Boost. > >I already had a problem building CppCMS when using a cross-compiler. I >had to cross-compile a bunch of C libs nowhere else used in the >project. Give me a favor... libpcre and zlib are the basic libraries available anywhere. I'm boost developer and I know how crappy it is to "cross-compile" and to do _anything_ with Boost.Build system... > >Many thanks for your attention, please don't be insulted by my mail. I >just want to understand your intentions and see where CppCMS might go >in the future, since my decision might really make the entire >development in the company much harder/slower etc. > I think this should go to some FAQ. So it is ok. I'll add few things. The greatest thing about boost and the most horrible thing about it is that it is cutting edge library. I have a great experience of having code broken between different releases of Boost. If you do not limit you project to very narrow range of Boost libraries and always synchronize yourself with the latest version you will soon discover that it is impossible to upgrade. I love Boost and and develop for Boost but it does not suit for stable library development. So having stable API and ABI helps, and does not make problems harder. > >With Kind Regards, >Ovanes > Regards, Artyom |
From: Ovanes M. <om_...@ke...> - 2012-06-10 18:41:53
|
Hello *, I am fairly new to CppCMS and currently evaluate web frameworks to build scalable website. CppCMS looks very promising to me. I also like the idea of using modern C++ design in design of CppCMS. Please forgive my next nasty questions... My main consideration is the faked boost lib: booster and dependencies to some C stuff like PCRE... My main point, is that the project will be written in C++11. Using Clang 3.0 I was unable to compile CppCMS with C++11 enabled, the main problems were in the booster lib. Another question is why PCRE was used here, when boost has a regex lib, which was used as a base for C++11 regex lib? Here one could easily exchange the namespaces and use a multi-platform regexes implemented by the new C++ standard without any need to have PCRE or use boost again. The same applies to faked booster::function. What if I want to use C++11 lambdas, are they going to nicely play with them? I know that boost::function is the base of std::function which really greatly plays with lambdas etc. The same applies to threading lib and asio, which is now proposed for C++ TR2. Could you please explain what is the benefit in faking boost and let the users find out what incompatibilities between booster and boost might be there instead of using well established, greatly tested and documented boost libs. What is going to happen for example with locale lib? Now it is part of boost, will you have a spin off branch of that lib in CppCMS or just reference the boost distro? I can see some benefit for boost in embedded world, but doing web development when having unlimited resources on server side, I clearly prefer to use boost. Can I somehow disable booster and rely on boost where I really feel to be at home? I also see that you are some guys going to develop part of boost libs. This has IMO implications: o It might slow down development of CppCMS if you are always going to catch up boost features o If you are not going to catch up boost features in booster libs, they will diverge and make uses read some more help, what differs where. I already had a problem building CppCMS when using a cross-compiler. I had to cross-compile a bunch of C libs nowhere else used in the project. Many thanks for your attention, please don't be insulted by my mail. I just want to understand your intentions and see where CppCMS might go in the future, since my decision might really make the entire development in the company much harder/slower etc. With Kind Regards, Ovanes |
From: Manveru <ma...@ma...> - 2012-06-10 12:00:20
|
Hello, I've just build wikipp from svn trunk and it runs. I set up the internal web server for testing purpose. But after that Firefox complains about bad redirections. So, I tested what happen if I manually entered HTTP requests and the server always return 302. Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /wikipp/en/page/main HTTP/1.1 Host: localhost HTTP/1.0 302 Found Server: CppCMS-Embedded/1.1.0 Connection: close Content-Type: text/html; charset=utf-8 Location: /wikipp/en/page/main Status: 302 Found X-Powered-By: CppCMS/1.1.0 Connection closed by foreign host. What shall I check to get it working? The log of the wikipp contains no errors: 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) Whole log contains similar entries. I had once working wikipp, but based on old version of cppcms. Thanks in advance for any advice. -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
From: sergey l. <ccp...@gm...> - 2012-06-09 10:31:13
|
Hello All! I need to get previous url in controller. How can i get it? Thanks in advance. |
From: Mario P. <mp...@us...> - 2012-06-08 08:02:19
|
+1 On 28/05/12 03:26, Leon wrote: > +1 > > On Mon, May 28, 2012 at 3:09 AM, augustin > <aug...@ov... > <mailto:aug...@ov...>> wrote: > > On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: > > thankyou very much, and thanks in general for being so helpful & patient > > with new users -- it's really appreciated. > > +1 > Artyom's patience is noteworthy. > > Blessings, > > Augustin. > > |
From: <ele...@ex...> - 2012-06-07 03:42:08
|
Hi Artyom, Im referring to this error message: cppdb::invalid_column attempt access to invalid column Without specifying the wrong column name in the error, how can you tell whats wrong? Petr |
From: Christian G. <chr...@gm...> - 2012-06-06 09:00:00
|
Hi 2012/6/6 Artyom Beilis <art...@ya...>: > > > ----- Original Message ----- >> From: Christian Gmeiner <chr...@gm...> >> To: cpp...@li... >> Cc: >> Sent: Tuesday, June 5, 2012 2:18 PM >> Subject: [Cppcms-users] cppcms & embdedded & google page speed >> >> Hi all, >> >> I am developing a system administration webapp for a linux based >> system and I am in the stage of profiling and >> optimizing. As I am on a quite slow system (500 MHz with 512 MB Ram) I >> am using the embedded http >> service to serve the webapp. Now it is possible t run the webapp >> directly on the device, which has a touch >> screen. Atm I am using google chrome, but loading of a page takes >> about 1.5 seconds, which is quite slow. > > > - How does much it takes to downlaod the page? (you can check with time wget URL) > - How big is the page? root@CHGM:~# http_proxy="" wget http://localhost/tssw --2012-06-06 08:32:49-- http://localhost/tssw Resolving localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 302 Found Location: /tssw/login [following] --2012-06-06 08:32:49-- http://localhost/tssw/login Connecting to localhost|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 200 Ok Length: unspecified [text/html] Saving to: `tssw' [ <=> ] 1,226 --.-K/s in 0s 2012-06-06 08:32:49 (14.8 MB/s) - `tssw' saved [1226] > >> So I started Googles Page Speed on the device to see what could be improved: >> >> - activate compression >> - activate Keep-Alive >> - use Browser-Caching >> - use Cache-Validators > > These are mostly irrelevant for localhost communication > >> - reduce JavaScript > > If the page uses heavy JS it may slow down the browser. > It is not really much JS involved here... jquery with a subset of jquery-ui It got a benefit in loading times by minifying css and js files and I am using only one js and only one css file now. >> What could be done on cppcms side? > > Depends on what the bottle neck... > Atm I am looking to find the bottle neck, which is not a easy task as there are three components involved: Browser <-- http --> Webapp <-- DBus --> System Services like UDisks What I can say is that from my working PC it takes about 374 ms to load with about 430 kb transfered. Thanks --- Christian Gmeiner, MSc |
From: Artyom B. <art...@ya...> - 2012-06-06 07:31:12
|
----- Original Message ----- > From: Christian Gmeiner <chr...@gm...> > To: cpp...@li... > Cc: > Sent: Tuesday, June 5, 2012 2:18 PM > Subject: [Cppcms-users] cppcms & embdedded & google page speed > > Hi all, > > I am developing a system administration webapp for a linux based > system and I am in the stage of profiling and > optimizing. As I am on a quite slow system (500 MHz with 512 MB Ram) I > am using the embedded http > service to serve the webapp. Now it is possible t run the webapp > directly on the device, which has a touch > screen. Atm I am using google chrome, but loading of a page takes > about 1.5 seconds, which is quite slow. - How does much it takes to downlaod the page? (you can check with time wget URL) - How big is the page? > So I started Googles Page Speed on the device to see what could be improved: > > - activate compression > - activate Keep-Alive > - use Browser-Caching > - use Cache-Validators These are mostly irrelevant for localhost communication > - reduce JavaScript If the page uses heavy JS it may slow down the browser. > What could be done on cppcms side? Depends on what the bottle neck... Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > Thanks > -- > Christian Gmeiner, MSc > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-06-06 07:25:59
|
Works for me. I really don't know... Try to run with bash -x /usr/bin/cppcms_run crafty -c config.js To see where exactly the script fails. Also what web server do you use/have installed? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Wednesday, June 6, 2012 7:48 AM > Subject: Re: [Cppcms-users] cppcms_run complains there is no service.socket > >> AFAIR something trivial triggers this message. I think if there is a >> syntax error in the >> config.js file this error would be generated. > > Im attaching my config, see if you can find out whats happening. Running > the project directly with ./project -c config.js works fine so I dont know > whats the issue > > Petr > |
From: <ele...@ex...> - 2012-06-06 04:48:25
|
> AFAIR something trivial triggers this message. I think if there is a > syntax error in the > config.js file this error would be generated. Im attaching my config, see if you can find out whats happening. Running the project directly with ./project -c config.js works fine so I dont know whats the issue Petr |
From: Christian G. <chr...@gm...> - 2012-06-05 11:19:15
|
Hi all, I am developing a system administration webapp for a linux based system and I am in the stage of profiling and optimizing. As I am on a quite slow system (500 MHz with 512 MB Ram) I am using the embedded http service to serve the webapp. Now it is possible t run the webapp directly on the device, which has a touch screen. Atm I am using google chrome, but loading of a page takes about 1.5 seconds, which is quite slow. So I started Googles Page Speed on the device to see what could be improved: - activate compression - activate Keep-Alive - use Browser-Caching - reduce JavaScript - use Cache-Validators What could be done on cppcms side? Thanks -- Christian Gmeiner, MSc |
From: Marcel H. <ke...@co...> - 2012-06-03 09:15:34
|
Am 03.06.2012 02:13, schrieb ele...@ex...: >> Yep :-), that's it > Too easy. > > How do you set the name of the file when returning a buffer? (you know > when the client is shown a dialog to save/open the file) > > Is that done with Content-Location header? http://lmgtfy.com/?q=http+set+filename+header First entry from wikipedia ;) > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2012-06-03 07:28:55
|
----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Sunday, June 3, 2012 3:13 AM > Subject: Re: [Cppcms-users] Creating and downloading reports at run-time > > >> Yep :-), that's it > > Too easy. > > How do you set the name of the file when returning a buffer? (you know > when the client is shown a dialog to save/open the file) > > Is that done with Content-Location header? > No, it is done using Content-Disposition header: Content-Disposition: attachment; filename=myfle.pdf Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: <ele...@ex...> - 2012-06-03 00:13:57
|
> Yep :-), that's it Too easy. How do you set the name of the file when returning a buffer? (you know when the client is shown a dialog to save/open the file) Is that done with Content-Location header? |
From: Artyom B. <art...@ya...> - 2012-06-02 10:19:41
|
> From: "ele...@ex..." <ele...@ex...> > Cc: > Sent: Saturday, June 2, 2012 9:18 AM > Subject: [Cppcms-users] Creating and downloading reports at run-time > > Hi, > > This may have an obvious answer but, basically Ive got a PDF report to > generate at runtime when /report function gets dispatched. > > Theoretically speaking, the PDF gets created and saved as myreport.pdf, > how do you then send it to the browser? > > What if I want to skip the PDF saving to disk, and send it directly out of > a buffer > > Do you you just do response().out() << buffer > > and set the content type appropriately? > Yep :-), that's it > Thanks, > Petr Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: <ele...@ex...> - 2012-06-02 06:19:08
|
Hi, This may have an obvious answer but, basically Ive got a PDF report to generate at runtime when /report function gets dispatched. Theoretically speaking, the PDF gets created and saved as myreport.pdf, how do you then send it to the browser? What if I want to skip the PDF saving to disk, and send it directly out of a buffer Do you you just do response().out() << buffer and set the content type appropriately? Thanks, Petr |
From: Christian G. <chr...@gm...> - 2012-05-31 07:25:33
|
Hi all, I want to make a file upload via cppcms and http://www.plupload.com/ (html4 or html5 engine). Has anybody some informations on how this could be done with cppcms? In the end I want the user to select one file (~300MB) and upload it directly into a defined folder in the sytem. thanks -- Christian Gmeiner, MSc |
From: le ba <hma...@gm...> - 2012-05-29 14:33:04
|
Hi Artyom, Thanks for your help, it works fine now . An other article that are very important in cppcms document : "context is a central class that holds all specific connection related information. It encapsulates CGI request and response, cache, session and locale information *Instance of this class is created upon client requests, it provides access to all connection related interfaces*.* This class is unique per each applications hierarchy and destroyed when HTTP request/response is completed *". Thank you very much. 2012/5/23 Artyom Beilis <art...@ya...> > > > > > > >________________________________ > > From: le ba <hma...@gm...> > > > > > >By default cppcms::rpc::json_rpc_server don't dispatches Url by default > like cppcms::application. > >My problem is how to dispatch a dynamic page and activate the json_rpc > call after. > > > > > > JSON-RPC protocol returns JSON object in output and receives JSON object > as input... > Dynamic page returns HTML output to the client and optionally receives > some POST data as input... > > Decide what do you want to do. If you want some pages return HTML and > others use JSON-RPC protocol > read the documentation about application hierarchy > > > http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hierarchy > > Applications that should handle JSON-RPC should be derived from > cppcms::rpc::json_rpc_server > > others should behave as normal applications. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-05-29 03:48:15
|
AFAIR something trivial triggers this message. I think if there is a syntax error in the config.js file this error would be generated. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "ele...@ex..." <ele...@ex...> >To: cpp...@li... >Sent: Tuesday, May 29, 2012 1:50 AM >Subject: Re: [Cppcms-users] cppcms_run complains there is no service.socket > >Hello, > >When I run it without cppcms_run such as > >./crafty -c config.js > >it works fine. Nginx connects to the socket fine. > >> Hello elekktretterr, >> >> >> I may be off the mark, but just to eliminate one possible error, check >> that the >> server has write access to the said socket. >> >> Augustin. >> >> >> >> >> >> -- >> Friends: http://www.reuniting.info/ >> My projects: >> http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >> http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >> http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >> http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >> . >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: <ele...@ex...> - 2012-05-28 22:51:02
|
Hello, When I run it without cppcms_run such as ./crafty -c config.js it works fine. Nginx connects to the socket fine. > Hello elekktretterr, > > > I may be off the mark, but just to eliminate one possible error, check > that the > server has write access to the said socket. > > Augustin. > > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: <ele...@ex...> - 2012-05-28 22:51:02
|
Hello, When I run it without cppcms_run such as ./crafty -c config.js it works fine. Nginx connects to the socket fine. > Hello elekktretterr, > > > I may be off the mark, but just to eliminate one possible error, check > that the > server has write access to the said socket. > > Augustin. > > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-05-28 13:44:30
|
Sourceforge has a donation system: https://sourceforge.net/donate/index.php?group_id=209965 Feel free to express your appreciation using it :-) Artyom Beilis >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Monday, May 28, 2012 4:26 AM >Subject: Re: [Cppcms-users] appreciation > > >+1 > > >On Mon, May 28, 2012 at 3:09 AM, augustin <aug...@ov...> wrote: > >On Monday, May 28, 2012 01:57:06 AM doug livesey wrote: >>> thankyou very much, and thanks in general for being so helpful & patient >>> with new users -- it's really appreciated. >> >>+1 >>Artyom's patience is noteworthy. >> >>Blessings, >> >>Augustin. >> >> >> >>-- >>Friends: http://www.reuniting.info/ >>My projects: >>http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >>http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >>http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >>http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >>. >> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: augustin <aug...@ov...> - 2012-05-28 09:51:55
|
Hello elekktretterr, I may be off the mark, but just to eliminate one possible error, check that the server has write access to the said socket. Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: <ele...@ex...> - 2012-05-28 09:42:52
|
Accidently pressed enter before finishing the mail. When I execute cppcms_run crafty -c config.js it complains elevator# cppcms_run crafty -c /usr/local/www/craftytracker/config.js Can't find service.api or service.socket in /usr/local/www/craftytracker/config.js I must be missing something totally obvious, what is it? |