cppcms-users Mailing List for CppCMS C++ Web Framework (Page 62)
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: Manveru <ma...@ma...> - 2013-03-05 15:06:32
|
Tested with -rdynamic seems doing noting. The queries over the socket are not processed. Nothing in the log. I surrender. I do not see a chance to make it working on this FreeBSD. 2013/3/4 Manveru <ma...@ma...> > > > 2013/3/4 Artyom Beilis <art...@ya...> > >> >> Are you sure you configured service correctly? >> > > No, I can't. I expect that if any error happen it would help me solve the > configuraion issue. > > > One thing I remember about FreeBSD is that CMake does not provide >> -rdynamic option to linker so you may have problems with sharing >> exceptions over DSO... >> >> >> http://sourceforge.net/p/cppcms/code/2238/tree/framework/trunk/CMakeLists.txt#l135 >> >> >> Probably you need to add this to wikipp's CMakeLists.txt file... Or add a >> compilation >> option in command line. >> > > That is interesting. The other missing option was -pthread to get compiled > and linked against pthreads in non-standard /usr/local location. > > > >> >>> >> >>>Why tests (invoked by make test on cppcms) fail on FreeBSD? >> >>> >> >> >> >> >> >>1. What CppCMS version? >> > Latest from SVN >> > >> >> Currently there some failures on FreeBSD in svn version, but not that much >> http://cppcms.com/files/nightly-build-report.html >> >> Also they will be fixed >> >> The question why do you use svn version? >> > > Because I had problems with release version so I thought I give trunk a > try. I tried with clang as well, but that does not work as well. I may try > whatever compilation combination you like on this FreeBSD 9 I have access > to. > > >> > >> >2. Which test fails? >> >> >> > >> > 3 - storage_test (Failed) >> > 7 - cache_backend_test (Failed) >> > 15 - status_test (Failed) >> > ... >> > 74 - test_aio_prefork (Failed) >> > >> >> >> http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Lots.of.tests.fails >> >> >> > OK. Port gives some hint. > Current results: > Total Test time (real) = 297.70 sec > > The following tests FAILED: > > 3 - storage_test (Failed) > 7 - cache_backend_test (Failed) > 23 - http_timeouts_test_write (Failed) > Errors while running CTest > *** Error code 8 > > Tested without -rdynamic yet. > > > Some additional info according the link you gave me: > ~/sources/cppcms-1.0.3/build>$ python -V > Python 2.7.2 > ~/sources/cppcms-1.0.3/build>$ cmake --version > cmake version 2.8.7 > ~/sources/cppcms-1.0.3/build>$ pcretest > PCRE version 8.30 2012-02-04 > ~/sources/cppcms-1.0.3/build>$ gcc --version > gcc (GCC) 4.2.1 20070831 patched [FreeBSD] > ~/sources/cppcms-1.0.3/build>$ gcc46 --version > gcc46 (FreeBSD Ports Collection) 4.6.3 20120120 (prerelease) > > /usr/local/include/unicode/uvernum.h:#define U_ICU_VERSION "4.8.1.1" > > > > -- > Manveru > jabber: ma...@ma... > gg: 1624001 > http://www.manveru.pl > -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
|
From: Manveru <ma...@ma...> - 2013-03-04 21:20:58
|
2013/3/4 Artyom Beilis <art...@ya...> > > Are you sure you configured service correctly? > No, I can't. I expect that if any error happen it would help me solve the configuraion issue. One thing I remember about FreeBSD is that CMake does not provide > -rdynamic option to linker so you may have problems with sharing > exceptions over DSO... > > > http://sourceforge.net/p/cppcms/code/2238/tree/framework/trunk/CMakeLists.txt#l135 > > > Probably you need to add this to wikipp's CMakeLists.txt file... Or add a > compilation > option in command line. > That is interesting. The other missing option was -pthread to get compiled and linked against pthreads in non-standard /usr/local location. > > >>> > >>>Why tests (invoked by make test on cppcms) fail on FreeBSD? > >>> > >> > >> > >>1. What CppCMS version? > > Latest from SVN > > > > Currently there some failures on FreeBSD in svn version, but not that much > http://cppcms.com/files/nightly-build-report.html > > Also they will be fixed > > The question why do you use svn version? > Because I had problems with release version so I thought I give trunk a try. I tried with clang as well, but that does not work as well. I may try whatever compilation combination you like on this FreeBSD 9 I have access to. > > > >2. Which test fails? > >> > > > > 3 - storage_test (Failed) > > 7 - cache_backend_test (Failed) > > 15 - status_test (Failed) > > ... > > 74 - test_aio_prefork (Failed) > > > > > http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Lots.of.tests.fails > > > OK. Port gives some hint. Current results: Total Test time (real) = 297.70 sec The following tests FAILED: 3 - storage_test (Failed) 7 - cache_backend_test (Failed) 23 - http_timeouts_test_write (Failed) Errors while running CTest *** Error code 8 Tested without -rdynamic yet. Some additional info according the link you gave me: ~/sources/cppcms-1.0.3/build>$ python -V Python 2.7.2 ~/sources/cppcms-1.0.3/build>$ cmake --version cmake version 2.8.7 ~/sources/cppcms-1.0.3/build>$ pcretest PCRE version 8.30 2012-02-04 ~/sources/cppcms-1.0.3/build>$ gcc --version gcc (GCC) 4.2.1 20070831 patched [FreeBSD] ~/sources/cppcms-1.0.3/build>$ gcc46 --version gcc46 (FreeBSD Ports Collection) 4.6.3 20120120 (prerelease) /usr/local/include/unicode/uvernum.h:#define U_ICU_VERSION "4.8.1.1" -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
|
From: Artyom B. <art...@ya...> - 2013-03-04 20:03:19
|
>>>Hello, >>> >>>How to resolve what is the problem with wikipp in case of such error? >>> >>>2013-03-04 13:09:43; cppcms, error: Catched unknown exception in thread pool (thread_pool.cpp:128) >> >> >>When it happens? Under what conditions? >> >> >> >I have wikipp configured through unix socket which is bound by ngnix to all requests of my domain (I do not know details as it is author solution of my web provider). When I am trying to open mydomain.me/wikipp/en/page/main/edit > Are you sure you configured service correctly? One thing I remember about FreeBSD is that CMake does not provide -rdynamic option to linker so you may have problems with sharing exceptions over DSO... http://sourceforge.net/p/cppcms/code/2238/tree/framework/trunk/CMakeLists.txt#l135 Probably you need to add this to wikipp's CMakeLists.txt file... Or add a compilation option in command line. > >>> >>>Why tests (invoked by make test on cppcms) fail on FreeBSD? >>> >> >> >>1. What CppCMS version? > Latest from SVN > Currently there some failures on FreeBSD in svn version, but not that much http://cppcms.com/files/nightly-build-report.html Also they will be fixed The question why do you use svn version? > >2. Which test fails? >> > > 3 - storage_test (Failed) > 7 - cache_backend_test (Failed) > 15 - status_test (Failed) > ... > 74 - test_aio_prefork (Failed) > http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Lots.of.tests.fails Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Manveru <ma...@ma...> - 2013-03-04 18:55:09
|
2013/3/4 Artyom Beilis <art...@ya...>
> >________________________________
> > From: Manveru <ma...@ma...>
> >To: cpp...@li...
> >Sent: Monday, March 4, 2013 2:14 PM
> >Subject: [Cppcms-users] Catched unknown exception
> >
> >
> >Hello,
> >
> >How to resolve what is the problem with wikipp in case of such error?
> >
> >2013-03-04 13:09:43; cppcms, error: Catched unknown exception in thread
> pool (thread_pool.cpp:128)
>
>
> When it happens? Under what conditions?
>
> I have wikipp configured through unix socket which is bound by ngnix to
all requests of my domain (I do not know details as it is author solution
of my web provider). When I am trying to open
mydomain.me/wikipp/en/page/main/edit
>
> >
> >Why tests (invoked by make test on cppcms) fail on FreeBSD?
> >
>
>
> 1. What CppCMS version?
Latest from SVN
2. Which test fails?
>
3 - storage_test (Failed)
7 - cache_backend_test (Failed)
15 - status_test (Failed)
16 - async_status_test (Failed)
17 - form_test (Failed)
18 - cookie_test (Failed)
19 - internal_forwarder_test (Failed)
20 - forwarder_test (Failed)
21 - jsonrpc_test (Failed)
22 - http_timeouts_test_read (Failed)
23 - http_timeouts_test_write (Failed)
24 - file_server_test (Failed)
25 - file_server_with_listing_test (Failed)
26 - disco_test_http (Failed)
27 - disco_test_fastcgi_tcp (Failed)
28 - disco_test_scgi_tcp (Failed)
29 - secure_post_test (Failed)
32 - gzip_test (Failed)
34 - cppcms_service_test (Failed)
35 - session_interface_test_client_renew (Failed)
36 - session_interface_test_client_browser (Failed)
37 - session_interface_test_client_fixed (Failed)
38 - session_interface_test_server_renew (Failed)
39 - session_interface_test_server_browser (Failed)
40 - session_interface_test_server_fixed (Failed)
41 - session_interface_test_both_renew (Failed)
42 - session_interface_test_both_browser (Failed)
43 - session_interface_test_both_fixed (Failed)
44 - proto_test_async_http (Failed)
45 - proto_test_async_scgi (Failed)
46 - proto_test_async_fastcgi (Failed)
49 - proto_test_sync_http (Failed)
50 - proto_test_sync_scgi (Failed)
51 - proto_test_sync_fastcgi (Failed)
54 - loadable_storage_pass (Failed)
71 - test_aio_socket (Failed)
72 - test_aio_endpoint (Failed)
74 - test_aio_prefork (Failed)
> 3. Full log from Testing directory would be helpful.
>
I have only "Temporary" directory there. No logs.
> 4. FreeBSD version and architecture would be helpful as well.
>
FreeBSD xxxxx.net 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #5: Fri Jul 20
03:14:00 CEST 2012 ro...@xx...:/usr/obj/usr/src/sys/xxxxx amd64
>--
> >Manveru
> >jabber: ma...@ma...
> > gg: 1624001
> > http://www.manveru.pl
>
>
>
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Manveru
jabber: ma...@ma...
gg: 1624001
http://www.manveru.pl
|
|
From: Artyom B. <art...@ya...> - 2013-03-04 13:20:13
|
>________________________________ > From: Manveru <ma...@ma...> >To: cpp...@li... >Sent: Monday, March 4, 2013 2:14 PM >Subject: [Cppcms-users] Catched unknown exception > > >Hello, > >How to resolve what is the problem with wikipp in case of such error? > >2013-03-04 13:09:43; cppcms, error: Catched unknown exception in thread pool (thread_pool.cpp:128) When it happens? Under what conditions? > >Why tests (invoked by make test on cppcms) fail on FreeBSD? > 1. What CppCMS version? 2. Which test fails? 3. Full log from Testing directory would be helpful. 4. FreeBSD version and architecture would be helpful as well. >-- >Manveru >jabber: ma...@ma... > gg: 1624001 > http://www.manveru.pl Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Manveru <ma...@ma...> - 2013-03-04 12:44:45
|
Hello,
How to resolve what is the problem with wikipp in case of such error?
2013-03-04 13:09:43; cppcms, error: Catched unknown exception in thread
pool (thread_pool.cpp:128)
Why tests (invoked by make test on cppcms) fail on FreeBSD?
--
Manveru
jabber: ma...@ma...
gg: 1624001
http://www.manveru.pl
|
|
From: Artyom B. <art...@ya...> - 2013-03-03 16:18:53
|
No, unfortunately, today there is no such API. Also in general it should not be very hard to implement something like that for url_mapper. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: Markus Raab <us...@ma...> > To: cpp...@li... > Cc: > Sent: Saturday, March 2, 2013 11:29 PM > Subject: [Cppcms-users] Getting Information about Hierarchy (application/dispatcher) > > Hi! > > I wonder if it is possible to iterate through the hierarchy created with > > http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1mount__point.html > http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1url__dispatcher.html > > as described in > > http://cppcms.com/wikipp/en/page/cppcms_1x_tut_url_mapping > http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hierarchy > > The idea is to automate what the function "describe" does. > > It would be useful for: > 1.) REST style services with a large hierarchy when you want > to have an overview what exists but there is no database/ > filesystem which lets you answer this question. > 2.) For Debugging to have an idea why some url does not point > to the application/function you would like to have > > Is there already something I did not find? > > What do you think? > > Best regards > Markus > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Markus R. <us...@ma...> - 2013-03-02 21:30:23
|
Hi! I wonder if it is possible to iterate through the hierarchy created with http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1mount__point.html http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1url__dispatcher.html as described in http://cppcms.com/wikipp/en/page/cppcms_1x_tut_url_mapping http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hierarchy The idea is to automate what the function "describe" does. It would be useful for: 1.) REST style services with a large hierarchy when you want to have an overview what exists but there is no database/ filesystem which lets you answer this question. 2.) For Debugging to have an idea why some url does not point to the application/function you would like to have Is there already something I did not find? What do you think? Best regards Markus |
|
From: Nicole H. <nic...@gm...> - 2013-03-02 14:05:51
|
Hi, I’m Nicole Haenni and I'm doing research for my thesis at the University of Berne (scg.unibe.ch) with Mircea Lungu and Niko Schwarz. We are researching on monitoring the activity in software ecosystems. This is a study about information needs that arise in such software ecosystems. I need your help to fill out the survey below. It takes about 10 minutes to complete it. A software ecosystem can be a project repository like GitHub, an open source community (e.g. the Apache community) or a language-based community (e.g. Smalltalk has Squeaksource, Ruby has Rubyforge). We formulate our research question as follows: "What information needs arise when developers use code from other projects, or see their own code used elsewhere." Survey link: http://bit.ly/14Zc71N or original link: https://docs.google.com/spreadsheet/viewform?formkey=dFBJUmVodVU1V3BMMGRPRWxBdjdDbVE6MA Thank you for your support! Nicole Haenni ----------------------------------------- Software Composition Group Institut für Informatik Universität Bern Neubrückstrasse 10 CH-3012 Bern SWITZERLAND |
|
From: Sab <rim...@gm...> - 2013-02-26 15:20:24
|
That's exactly what I meant. Thank you. |
|
From: Artyom B. <art...@ya...> - 2013-02-26 08:32:50
|
These should help you: http://cppcms.com/wikipp/en/page/cppcms_1x_json http://cppcms.com/cppcms_ref/latest/classcppcms_1_1service.html#a26f60fd155db4c12bbca92cc463a7760 http://cppcms.com/wikipp/en/page/cppcms_1x_config Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sab <rim...@gm...> >To: cpp...@li... >Sent: Tuesday, February 26, 2013 10:21 AM >Subject: Re: [Cppcms-users] Configuration via JSON object > >Yes. I have my own configuration file, where I store these parameters. I would >like to convert them to a JSON object and pass it to the service. > > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Sab <rim...@gm...> - 2013-02-26 08:21:47
|
Yes. I have my own configuration file, where I store these parameters. I would like to convert them to a JSON object and pass it to the service. |
|
From: Artyom B. <art...@ya...> - 2013-02-26 08:10:51
|
You mean dynamically rather than from text file or command line parameter? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sab <rim...@gm...> >To: cpp...@li... >Sent: Tuesday, February 26, 2013 9:48 AM >Subject: [Cppcms-users] Configuration via JSON object > >Hi, > >can you point me to an example, how I can set server IP and port as a JSON value >that I can pass to the cppcms::service constructor? > >Thanks >Sab > > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Sab <rim...@gm...> - 2013-02-26 07:49:29
|
Hi, can you point me to an example, how I can set server IP and port as a JSON value that I can pass to the cppcms::service constructor? Thanks Sab |
|
From: Sergiu A. <ser...@ya...> - 2013-02-10 22:39:41
|
Hello and thank you for the response. The problem was that the requests were made through a proxy that wasn't forwarding the cookies to the api, so, there were no session cookies. I apologise for this mistake. -- Fatol Sergiu Adrian Team Leader & Senior PHP Developer Arobs Transilvania Software adi...@ar... Skype: sergiu.adrian Olimpia Business Center 98-100 Dorobantilor, 2nd Floor 400609 Cluj-Napoca Romania Co-Founder -- Sosetaria.ro http://sosetaria.ro ________________________________ From: Artyom Beilis <art...@ya...> To: Sergiu Adrian <ser...@ya...>; "cpp...@li..." <cpp...@li...> Sent: Sunday, February 10, 2013 11:09 AM Subject: Re: [Cppcms-users] json_rpc_server sessions First of all, please registerto the mailing list so I will not have to approve the mails. Do you use synchronous or asynchronous applications? If you use asychronous one you need to call load() explicitly. http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__interface.html#details Also this part (this)->session().["auth_token"]; Seems to have problems i.e. session().[...] < note the point after ")" and before "[". Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sergiu Adrian <ser...@ya...> >To: "cpp...@li..." <cpp...@li...> >Sent: Thursday, February 7, 2013 12:47 AM >Subject: [Cppcms-users] json_rpc_server sessions > > >Hello, > >I am trying to make an api based on the json_rpc example. The class is called my_api: > > class my_api: public cppcms::rpc::json_rpc_server {...} > >I have a method, for example authenticate: > >void my_api::authenticate(std::string password){ > std::string auth_token; > > if ((this)->session().is_set("auth_token")) { > auth_token = (this)->session().["auth_token"]; > } else { > auth_token = "invalid"; > } > > (this)->session()["auth_token"] = "some_value"; > > std::cout << "token: " << auth_token << std::endl; > > (this)->session().save(); > > return_result("authentication"); >} > > >The config is set to save the session in server memory: > > > "session" : { > "location" : "server", > "expire" : "browser", > "server":{ > "storage":"memory" > } > } > > > >The problem is that the session isn't saved. The auth_token is always "invalid". Can you help me with some tips on how to use the session in this situation? > > >Thank you, > > > >-- >Fatol Sergiu Adrian >Team Leader & Senior PHP Developer >Arobs Transilvania Software > >adi...@ar... >Skype: sergiu.adrian > >Olimpia Business Center >98-100 Dorobantilor, 2nd Floor >400609 Cluj-Napoca Romania > >Co-Founder -- Sosetaria.ro >http://www.sosetaria.ro/ > >------------------------------------------------------------------------------ >Free Next-Gen Firewall Hardware Offer >Buy your Sophos next-gen firewall before the end March 2013 >and get the hardware for free! Learn more. >http://p.sf.net/sfu/sophos-d2d-feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-02-10 09:09:30
|
First of all, please registerto the mailing list so I will not have to approve the mails. Do you use synchronous or asynchronous applications? If you use asychronous one you need to call load() explicitly. http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__interface.html#details Also this part (this)->session().["auth_token"]; Seems to have problems i.e. session().[...] < note the point after ")" and before "[". Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sergiu Adrian <ser...@ya...> >To: "cpp...@li..." <cpp...@li...> >Sent: Thursday, February 7, 2013 12:47 AM >Subject: [Cppcms-users] json_rpc_server sessions > > >Hello, > >I am trying to make an api based on the json_rpc example. The class is called my_api: > > class my_api: public cppcms::rpc::json_rpc_server {...} > >I have a method, for example authenticate: > >void my_api::authenticate(std::string password){ > std::string auth_token; > > if ((this)->session().is_set("auth_token")) { > auth_token = (this)->session().["auth_token"]; > } else { > auth_token = "invalid"; > } > > (this)->session()["auth_token"] = "some_value"; > > std::cout << "token: " << auth_token << std::endl; > > (this)->session().save(); > > return_result("authentication"); >} > > >The config is set to save the session in server memory: > > > "session" : { > "location" : "server", > "expire" : "browser", > "server":{ > "storage":"memory" > } > } > > > >The problem is that the session isn't saved. The auth_token is always "invalid". Can you help me with some tips on how to use the session in this situation? > > >Thank you, > > > >-- >Fatol Sergiu Adrian >Team Leader & Senior PHP Developer >Arobs Transilvania Software > >adi...@ar... >Skype: sergiu.adrian > >Olimpia Business Center >98-100 Dorobantilor, 2nd Floor >400609 Cluj-Napoca Romania > >Co-Founder -- Sosetaria.ro >http://www.sosetaria.ro/ > >------------------------------------------------------------------------------ >Free Next-Gen Firewall Hardware Offer >Buy your Sophos next-gen firewall before the end March 2013 >and get the hardware for free! Learn more. >http://p.sf.net/sfu/sophos-d2d-feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Sergiu A. <ser...@ya...> - 2013-02-06 22:47:12
|
Hello,
I am trying to make an api based on the json_rpc example. The class is called my_api:
class my_api: public cppcms::rpc::json_rpc_server {...}
I have a method, for example authenticate:
void my_api::authenticate(std::string password){
std::string auth_token;
if ((this)->session().is_set("auth_token")) {
auth_token = (this)->session().["auth_token"];
} else {
auth_token = "invalid";
}
(this)->session()["auth_token"] = "some_value";
std::cout << "token: " << auth_token << std::endl;
(this)->session().save();
return_result("authentication");
}
The config is set to save the session in server memory:
"session" : {
"location" : "server",
"expire" : "browser",
"server":{
"storage":"memory"
}
}
The problem is that the session isn't saved. The auth_token is always "invalid". Can you help me with some tips on how to use the session in this situation?
Thank you,
--
Fatol Sergiu Adrian
Team Leader & Senior PHP Developer
Arobs Transilvania Software
adi...@ar...
Skype: sergiu.adrian
Olimpia Business Center
98-100 Dorobantilor, 2nd Floor
400609 Cluj-Napoca Romania
Co-Founder -- Sosetaria.ro
http://sosetaria.ro
|
|
From: Christian G. <chr...@gm...> - 2013-02-06 14:35:43
|
2013/2/5 Artyom Beilis <art...@ya...>: > Under development. > > I still need some stuff to implement before releasing new version: > > http://cppcms.com/wikipp/en/page/cppcms_1x_tasks > > Why do you ask. > just out of curiosity... its quite hard to follow the current development as there is no cppcms commit ml - or did I miss it? -- Christian Gmeiner, MSc |
|
From: Lee, J. T. \(WorldQuant\) <Joh...@wo...> - 2013-02-06 13:47:57
|
Hello,
I'm getting started with cppcms. How do you set the right variable so that make/gcc finds the header files? The hello world program won't compile for me as is
~/cppcms-1.0.3/examples/hello_world] $ head hello.cpp
#include <cppcms/application.h>
#include <cppcms/applications_pool.h>
#include <cppcms/service.h>
#include <cppcms/http_response.h>
#include <iostream>
~/cppcms-1.0.3/examples/hello_world] $ cat Makefile
LIBS=-lcppcms -lbooster
all: hello
hello: hello.cpp
$(CXX) -O2 -Wall -g hello.cpp -o hello ${LIBS}
clean:
rm -fr hello hello.exe cppcms_rundir
~/cppcms-1.0.3/examples/hello_world] $ make hello
g++ -O2 -Wall -g hello.cpp -o hello -lcppcms -lbooster
hello.cpp:1:32: error: cppcms/application.h: No such file or directory
hello.cpp:2:38: error: cppcms/applications_pool.h: No such file or directory
hello.cpp:3:28: error: cppcms/service.h: No such file or directory
hello.cpp:4:34: error: cppcms/http_response.h: No such file or directory
hello.cpp:7: error: âcppcmsâ has not been declared
hello.cpp:7: error: expected `{' before âapplicationâ
hello.cpp:7: error: invalid function declaration
hello.cpp:16: error: invalid use of undefined type âclass my_hello_worldâ
hello.cpp:7: error: forward declaration of âclass my_hello_worldâ
hello.cpp: In member function âvoid my_hello_world::main(std::string)â:
hello.cpp:18: error: âresponseâ was not declared in this scope
hello.cpp: In function âint main(int, char**)â:
hello.cpp:29: error: âcppcmsâ has not been declared
hello.cpp:29: error: expected `;' before âsrvâ
hello.cpp:30: error: âsrvâ was not declared in this scope
hello.cpp:30: error: âcppcmsâ has not been declared
hello.cpp:30: error: expected primary-expression before â>â token
hello.cpp:30: error: expected primary-expression before â)â token
make: *** [hello] Error 1
###################################################################################
The information contained in this communication is confidential, may be
subject to legal privilege, and is intended only for the individual named.
If you are not the named addressee, please notify the sender immediately and
delete this email from your system. The views expressed in this email are
the views of the sender only. Outgoing and incoming electronic communications
to this address are electronically archived and subject to review and/or disclosure
to someone other than the recipient.
###################################################################################
|
|
From: Artyom B. <art...@ya...> - 2013-02-06 12:18:41
|
I.e. in your case you need to access: /wikipp and not / i.e. http://localhost:12345/wikipp Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: 彭贝城 <has...@16...> >To: cpp...@li... >Sent: Wednesday, February 6, 2013 2:12 PM >Subject: Re: [Cppcms-users] 404 error occured when using wikipp > > > Thank you , Beilis >My configuration is attached as attachment. > > > > >------------------------------------------------------------------------------ >Free Next-Gen Firewall Hardware Offer >Buy your Sophos next-gen firewall before the end March 2013 >and get the hardware for free! Learn more. >http://p.sf.net/sfu/sophos-d2d-feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: 彭贝城 <has...@16...> - 2013-02-06 12:12:58
|
2013-01-30 17:03:38; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:04:24; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:04:25; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:06:32; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:07:31; wikipp, error: system: Permission denied (main.cpp:14) 2013-01-30 17:07:47; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:07:48; cppcms_http, info: GET /favicon.ico (http_api.cpp:251) 2013-01-30 17:07:48; cppcms_http, info: GET /favicon.ico (http_api.cpp:251) 2013-01-30 17:07:49; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:10:27; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:10:47; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:39:40; cppcms_http, info: GET / (http_api.cpp:251) 2013-01-30 17:39:40; cppcms_http, info: GET /favicon.ico (http_api.cpp:251) 2013-01-30 17:39:40; cppcms_http, info: GET /favicon.ico (http_api.cpp:251) |
|
From: Artyom B. <art...@ya...> - 2013-02-05 16:20:59
|
First of all there is utf_to_utf functions and if sizeof(wchar_t) == 4 (which is on Linux/Unix) than all you need is to use them. About the error code_point c = utf_traits<char, sizeof(char)>::decode(str.begin(), str.end()); the first parameter is reference that is moved forward and std.begin() can't be changed so what you need to do is: std::string::const_iterator pos = std.begin(),end =str.end(); code_point c = utf_traits<char, sizeof(char)>::decode(pos,end ); See: http://www.boost.org/doc/libs/1_51_0/libs/locale/doc/html/structboost_1_1locale_1_1utf_1_1utf__traits.html#a65f0b0e1075dd000d2c2c15af30be372 Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: 陈抒 <csf...@gm...> >To: cpp...@li... >Sent: Tuesday, February 5, 2013 5:32 PM >Subject: [Cppcms-users] Questions about decode UTF-8 to Unicode code point > > >Hello Artyom: > I am using the boost.locale library contributed by you to decode UTF-8. >The following codes works fine: >char const * p = "一"; // one Chinese character here > >code_point c = utf_traits<char, sizeof(char)>::decode(p, p + 3); >cout << "code point: 0x" << std::hex << c << " binary format:B" << PrintIntAsBinaryString(c) << endl; > > >My Print.. function prints it as what I expect. >code point: 0x4e00 binary format:B00000000000000000100111000000000 > > > >But don't know how to apply the decode function to std::string. when using iterator of string object, got some compilation error: > > >string str = "一"; > >code_point c = utf_traits<char, sizeof(char)>::decode(str.begin(), str.end()); > > > >/home/chenshu/work/asio_echo/codes/main/test/main.cc:18:65: error: no matching function for call to ‘boost::locale::utf::utf_traits<char>::decode(std::basic_string<char>::iterator, std::basic_string<char>::iterator)’ >/home/chenshu/work/asio_echo/codes/main/test/main.cc:18:65: note: candidate is: >/usr/include/boost/locale/utf.hpp:193:27: note: static boost::locale::utf::code_point boost::locale::utf::utf_traits<CharType, 1>::decode(Iterator&, Iterator) [with Iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >, CharType = char, boost::locale::utf::code_point = unsigned int] >/usr/include/boost/locale/utf.hpp:193:27: note: no known conversion for argument 1 from ‘std::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >}’ to ‘__gnu_cxx::__normal_iterator<char*, std::basic_string<char> >&’ >make[2]: *** [test_bin/CMakeFiles/util_test.dir/main.cc.o] Error 1 >make[1]: *** [test_bin/CMakeFiles/util_test.dir/all] Error 2 >make: *** [all] Error 2 > > >The above is my first question, that's about converting one single Unicode character. >Another question is how to decode all Unicode code points from string object? > > > >陈抒 >Best regards >http://blog.csdn.net/sheismylife >------------------------------------------------------------------------------ >Free Next-Gen Firewall Hardware Offer >Buy your Sophos next-gen firewall before the end March 2013 >and get the hardware for free! Learn more. >http://p.sf.net/sfu/sophos-d2d-feb >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-02-05 15:39:59
|
Under development. I still need some stuff to implement before releasing new version: http://cppcms.com/wikipp/en/page/cppcms_1x_tasks Why do you ask. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Monday, February 4, 2013 5:40 PM >Subject: [Cppcms-users] State of CppCMS 1.1.0 > >What's the current state of development of cppcms? >-- >Christian Gmeiner, MSc > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_jan >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-02-05 15:38:53
|
Give us your configuration file and URL you try to access. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: 彭贝城 <has...@16...> >To: cpp...@li... >Sent: Wednesday, January 30, 2013 11:25 AM >Subject: [Cppcms-users] 404 error occured when using wikipp > > > Hi guys I am quite new to this framework,and I tried to run wikipp which is based on cppcms on my laptop,but 404 occured on my browser. > >I installed cppcms as well as cppdb properly according to the official instruction.I successfully built the wikipp and passed all the "make test" during compilation.I set up my mysql server with the proper .sql script,and when I ran wikipp -c config.js,the shell prompt did not showing anything but idling as if it is working well.But when I tried to browse wikipp on my firefox, 404 error occured.I tried switching the port to various ones,but the error still apperared. > >Is toggling wikipp to webservers like lighttpd neccessary to just test the program?Or is it a must? > > > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_jan >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: 陈抒 <csf...@gm...> - 2013-02-05 15:33:21
|
Hello Artyom:
I am using the boost.locale library contributed by you to decode UTF-8.
The following codes works fine:
char const * p = "一"; // one Chinese character here
code_point c = utf_traits<char, sizeof(char)>::decode(p, p + 3);
cout << "code point: 0x" << std::hex << c << " binary format:B" <<
PrintIntAsBinaryString(c) << endl;
My Print.. function prints it as what I expect.
code point: 0x4e00 binary format:B00000000000000000100111000000000
But don't know how to apply the decode function to std::string. when using
iterator of string object, got some compilation error:
string str = "一";
code_point c = utf_traits<char, sizeof(char)>::decode(str.begin(),
str.end());
/home/chenshu/work/asio_echo/codes/main/test/main.cc:18:65: error: no
matching function for call to
‘boost::locale::utf::utf_traits<char>::decode(std::basic_string<char>::iterator,
std::basic_string<char>::iterator)’
/home/chenshu/work/asio_echo/codes/main/test/main.cc:18:65: note: candidate
is:
/usr/include/boost/locale/utf.hpp:193:27: note: static
boost::locale::utf::code_point boost::locale::utf::utf_traits<CharType,
1>::decode(Iterator&, Iterator) [with Iterator =
__gnu_cxx::__normal_iterator<char*, std::basic_string<char> >, CharType =
char, boost::locale::utf::code_point = unsigned int]
/usr/include/boost/locale/utf.hpp:193:27: note: no known conversion for
argument 1 from ‘std::basic_string<char>::iterator {aka
__gnu_cxx::__normal_iterator<char*, std::basic_string<char> >}’ to
‘__gnu_cxx::__normal_iterator<char*, std::basic_string<char> >&’
make[2]: *** [test_bin/CMakeFiles/util_test.dir/main.cc.o] Error 1
make[1]: *** [test_bin/CMakeFiles/util_test.dir/all] Error 2
make: *** [all] Error 2
The above is my first question, that's about converting one single Unicode
character.
Another question is how to decode all Unicode code points from string
object?
陈抒
Best regards
http://blog.csdn.net/sheismylife
|