cppcms-users Mailing List for CppCMS C++ Web Framework (Page 55)
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
|
| 2026 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Artyom B. <art...@ya...> - 2013-05-19 13:50:07
|
>________________________________
> From: Lee Elenbaas <lee...@gm...>
>To: Artyom Beilis <art...@ya...>; cpp...@li...
>Sent: Thursday, May 16, 2013 5:17 PM
>Subject: Re: [Cppcms-users] razor like syntax for templates
>
>
>
>I looked into enhancing the <%= %> syntax a bit - and it is a bit tricky since - especially if you think razor like:
>
>
>with razor you expect things like this to work:
>
>
>@for (int i;....){
>
>
><li>@i. some content...
>}
>
I don't think that converting all of it to razor would be simple and I'm not sure how really it is needed.
In general some improvements in template system are needed - like ws suppression and more
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
>the problem is that the current syntax only deals with data that comes from the model - (by prefixing it in the generated cpp) or variables declared using blocks like the <%foreach...%> block
>
>
>i toyed around with the idea of performing a 'pascal like' with that will allow the compiler to find the correct variable using the folowing search order: local to template, then model, then template - but that forces a few limitations: on template namings in order to support calling from one template to another - so this turned into an issue. - but moving to a razor like syntax can come with the restriction of only using one template in a file - and use the @Render (and its siblings) to handle calls between files
>
>
>if i can be of assistance - please let me know.
>
>
>PS: Artyom what happened to the changes i made to cppcms_tmpl_cc? that allowed for separate template compilation and use of header files? I noticed that it got dropped somewhere in the versions - and i hadn't had the time to resend it to you with updates.
>
>
>
>
>
>On Thu, May 16, 2013 at 4:29 PM, Artyom Beilis <art...@ya...> wrote:
>
>Actually it is interesting idea, so you can put @before variable that would be equivalent to <%= before %>
>>
>>
>>Several things:
>>
>>
>>1. Escaping - should be done with @@ I think
>>2. Do you want to extend it beyond variables? Like the full Razor does?
>>
>>
>>The best would be:
>>
>>
>>1. Add an option to cppcms_tmp_cc to handle such a syntax
>>2. Make sure that by default it is off such that existing code that has stuff like "@user" as text would not be broken.
>>
>>
>>Other than that such a patch for cppcms_tmpl_cc would be welcome.
>>
>>Artyom Beilis
>>--------------
>>CppCMS - C++ Web Framework: http://cppcms.com/
>>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>>
>>
>>
>>>________________________________
>>> From: Marcel Hellwig <ke...@co...>
>>>To: cpp...@li...
>>>Sent: Tuesday, May 14, 2013 2:21 PM
>>>Subject: [Cppcms-users] razor like syntax for templates
>>>
>>>
>>>Hi *,
>>>
>>>the current template
"language" is inspired by asp.net.
>>>The syntax with <% ... %> is equal to the one asp.net uses.
>>>My Idea is to use a different syntax, namely the successor razor where
>>>you can replace all the <% with a simple @. For a simple review see [0]
>>>Now my question is, are you willing to use this, or do you like to have
>>>this feature.
>>>i would try to implement this. For now it's a simple python script that
>>>will convert the template to a cpp file, so it should not be that hard.
>>>
>>>Regards
>>>Marcel Hellwig
>>>
>>>
>>>[0] http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
>>>
>>>
>>>------------------------------------------------------------------------------
>>>AlienVault Unified Security Management (USM) platform delivers complete
>>>security visibility with the essential security capabilities. Easily
and
>>>efficiently configure, manage, and operate all of your security controls
>>>from a single console and one unified framework. Download a free trial.
>>>http://p.sf.net/sfu/alienvault_d2d
>>>_______________________________________________
>>>Cppcms-users mailing list
>>>Cpp...@li...
>>>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>>
>>>
>>>
>>------------------------------------------------------------------------------
>>AlienVault Unified Security Management (USM) platform delivers complete
>>security visibility with the essential security capabilities. Easily and
>>efficiently configure, manage, and operate all of your security controls
>>from a single console and one unified framework. Download a free trial.
>>http://p.sf.net/sfu/alienvault_d2d
>>_______________________________________________
>>Cppcms-users mailing list
>>Cpp...@li...
>>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>
>
>
>--
>--
>lee
>Lee Elenbaas
>lee...@gm...
>
>
>
|
|
From: Lee E. <lee...@gm...> - 2013-05-19 13:04:46
|
has anyone placed a cppcms app on winrt? i am considering proposing something along those lines as a solution to a problem we have at work so some insights on the problems will be great thanks lee -- -- lee Lee Elenbaas lee...@gm... |
|
From: Vizcayno <viz...@gm...> - 2013-05-19 00:03:10
|
Artyom Beilis <artyomtnk@...> writes: > > > Are you sure you are using latest VC2012 - because I recall such a problem with Boost.Locale with beta versions of VC > and it was a bug that was fixed by the VC team. > I have last update of VC2012 professional: -- The C compiler identification is MSVC 17.0.60315.1 -- The CXX compiler identification is MSVC 17.0.60315.1 > Because when I look on this: http://www.boost.org/development/tests/trunk/developer/locale.html (last column on right) > only the test_codepage fails/ > > I see that test_locale_message passes (the codepage is not a problem it is rather a question of treating the standard - however I hadn't decided if it is VC bug or Boost.Locales bug)/ Thanks for your indications. According to this I think the test result seems to be acceptable. The locale codepage error refers to japan codepage, the remaining tests are ok. My best regards. > > > Artyom Beilis--------------CppCMS - C++ Web Framework: http://cppcms.com/CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Vizcayno <vizcaynot- Re5...@pu...>To: cppcms-users- 5NW...@pu... Sent: Thursday, May 16, 2013 1:57 AMSubject: [Cppcms-users] Errors when executing test_locale_codepage.exe and > I installed cppcms with last versions of PCRE, ZLIB and OpenSSL under Windows 7 and VC2012.During the "nmake test" I have got 2 lines with **not passed** status test:69:test_locale_codepage70:test_locale_messageAfter > some investigation, I executed the next 2 programs (test_locale_codepage.exe and test_locale_message.exe) but I could'nt find the cause of the errors. What do you think is happening? What possible solutions or workarounds do you think I can apply? thanks!!:=================================================================== ==:MODE CON CODEPAGE SELECT=1255Status for device CON:---------------------- Lines: 300 Columns: 80 Keyboard rate: 31 Keyboard delay: 1 Code page: 1255=====================================================================:C: /apps/instApps/cppcms/build/booster/test_locale_codepage.exe- Testing correct invalid bytes skipping-- > ISO-8859-8-- cp932Testing for backend stdTesting wide I/O wchar_t UTF-8 Testing codepoints above 0xFFFF Single U+2008A Single U+2008A withing text U+2008A x 1000 ISO8859-8 ISO8859-1 Shift- JISError in line:67 read_file<Char>(f1) == cmpTesting charset to/from UTF conversion functions char wchar_tTesting utf_to_utf char<-char char<- wchar wchar<-char wchar<-wcharTesting for backend winapiTesting wide I/O wchar_t UTF-8 Testing codepoints above 0xFFFF Single U+2008A Single U+2008A > withing text U+2008A x 1000Testing charset to/from UTF conversion functions char wchar_tTesting utf_to_utf char<-char char<-wchar wchar<- char wchar<-wcharPassed 373 testsFailed 1 tests 99.7% of tests completed sucsessefully=============================================================== ======:C:/apps/instApps/cppcms/build/booster/test_locale_message.exeTesting for backend --------- std Testing he_IL.UTF-8 single formsError in line:215 bl::translate(original).str(l)==expectedError in line:217 bl::translate(original_c_str).str(l)==expectedError in line:221 tmp==expectedError in line:223 tmp==expectedError in line:229 ss.str() ==expectedError in line:231 > bl::translate(original).str(l,domain)==expectedError in line:234 bl::translate(original).str(domain)==expectedError in line:240 ss.str() ==expectedError in line:246 ss.str()==expectedError in line:215 bl::translate(original).str(l)==expectedError in line:217 bl::translate (original_c_str).str(l)==expectedError in line:221 tmp==expectedError in line:223 tmp==expectedError in line:229 ss.str()==expectedError in line:231 bl::translate(original).str(l,domain)==expectedError in line:234 bl::translate(original).str(domain)==expectedError in line:240 ss.str() ==expectedError in line:246 ss.str()==expectedError in line:231 bl::translate(original).str(l,domain)==expectedError in line:234 bl::translate(original).str(domain)==expectedError in line:240 ss.str() ==expectedError in line:246 ss.str()==expectedFailed Error limits reached, > stopping unit test------------------------------------------------------- -----------------------AlienVault Unified Security Management (USM) platform delivers completesecurity visibility with the essential security capabilities. Easily andefficiently configure, manage, and operate all of your security controlsfrom a single console and one unified framework. Download a free trial.http://p.sf.net/sfu/alienvault_d2d____________________________________ ___________Cppcms-users mailing listCppcms-users- 5NW...@pu...://lists.sourceforge.n et/lists/listinfo/cppcms-users > > > > -------------------------------------------------------------------------- ---- > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > > -------------------------------------------------------------------------- ---- > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d |
|
From: Marcel H. <ke...@co...> - 2013-05-18 18:28:12
|
Hi *,
I'm trying to combine sync and async applications in my webservice.
Sync ones for delivering content and async ones (with json_rpc) for
notification to the server.
So my question is:
can I dispatch a json_rpc_server to a certain domain like
http://localhost/async ? If yes, how ;)
is this really useful, or should I make another approach?
Regards
Marcel
|
|
From: Andy <ang...@ya...> - 2013-05-17 12:53:04
|
I installed cppcms and compiled the "hello world" example in cppcms-1.0.3/examples/hello_world using c++ hello.cpp -lcppcms -o hello I then started the server with ./hello -c config.js I pointed my browser to localhost:8080/hello and saw the "Hello World" message. So far so good. Then I tried to benchmark cppcms using wrk (https://github.com/wg/wrk). I ran wrk -t2 -c10 -d30 http://localhost:8080/hello and got this result: Running 30s test @ http://localhost:8080/hello 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 0.00us 0.00us 0.00us 100.00% Req/Sec 0.00 0.00 0.00 100.00% 0 requests in 32.00s, 159.23MB read Socket errors: connect 0, read 878747, write 0, timeout 0 Requests/sec: 0.00 Transfer/sec: 4.98MB It reported 0.00 req/sec. I use wrk on other servers and it works fine for those servers. What is causing the problem here? |
|
From: Petr J. <ele...@ex...> - 2013-05-17 07:39:55
|
Hi, When a user signs up, he/she specifies their country, and I want to load the list of time zones available in their country. Is this possible or do I need to query ICU directly? Thanks, Petr Janda -- Please use PGP to encrypt your email to ensure our privacy is respected. |
|
From: Lee E. <lee...@gm...> - 2013-05-16 14:17:53
|
I looked into enhancing the <%= %> syntax a bit - and it is a bit tricky
since - especially if you think razor like:
with razor you expect things like this to work:
@for (int i;....){
<li>@i. some content...
}
the problem is that the current syntax only deals with data that comes from
the model - (by prefixing it in the generated cpp) or variables declared
using blocks like the <%foreach...%> block
i toyed around with the idea of performing a 'pascal like' with that will
allow the compiler to find the correct variable using the folowing search
order: local to template, then model, then template - but that forces a few
limitations: on template namings in order to support calling from one
template to another - so this turned into an issue. - but moving to a razor
like syntax can come with the restriction of only using one template in a
file - and use the @Render (and its siblings) to handle calls between files
if i can be of assistance - please let me know.
PS: Artyom what happened to the changes i made to cppcms_tmpl_cc? that
allowed for separate template compilation and use of header files? I
noticed that it got dropped somewhere in the versions - and i hadn't had
the time to resend it to you with updates.
On Thu, May 16, 2013 at 4:29 PM, Artyom Beilis <art...@ya...> wrote:
> Actually it is interesting idea, so you can put @before variable that
> would be equivalent to <%= before %>
>
> Several things:
>
> 1. Escaping - should be done with @@ I think
> 2. Do you want to extend it beyond variables? Like the full Razor does?
>
> The best would be:
>
> 1. Add an option to cppcms_tmp_cc to handle such a syntax
> 2. Make sure that by default it is off such that existing code that has
> stuff like "@user" as text would not be broken.
>
> Other than that such a patch for cppcms_tmpl_cc would be welcome.
>
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
> ------------------------------
> *From:* Marcel Hellwig <ke...@co...>
> *To:* cpp...@li...
> *Sent:* Tuesday, May 14, 2013 2:21 PM
> *Subject:* [Cppcms-users] razor like syntax for templates
>
> Hi *,
>
> the current template "language" is inspired by asp.net.
> The syntax with <% ... %> is equal to the one asp.net uses.
> My Idea is to use a different syntax, namely the successor razor where
> you can replace all the <% with a simple @. For a simple review see [0]
> Now my question is, are you willing to use this, or do you like to have
> this feature.
> i would try to implement this. For now it's a simple python script that
> will convert the template to a cpp file, so it should not be that hard.
>
> Regards
> Marcel Hellwig
>
>
> [0]
> http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
--
--
lee
Lee Elenbaas
lee...@gm...
|
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:42:31
|
Are you sure you are using latest VC2012 - because I recall such a problem with Boost.Locale with beta versions of VC and it was a bug that was fixed by the VC team. Because when I look on this: http://www.boost.org/development/tests/trunk/developer/locale.html (last column on right) only the test_codepage fails/ I see that test_locale_message passes (the codepage is not a problem it is rather a question of treating the standard - however I hadn't decided if it is VC bug or Boost.Locales bug)/ Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Vizcayno <viz...@gm...> >To: cpp...@li... >Sent: Thursday, May 16, 2013 1:57 AM >Subject: [Cppcms-users] Errors when executing test_locale_codepage.exe and > > >I installed cppcms with last versions of PCRE, ZLIB and OpenSSL under >Windows 7 and VC2012. > > > >During the "nmake test" I have got 2 lines with **not passed** status test: > >69:test_locale_codepage > >70:test_locale_message > > > >After some investigation, I executed the next 2 programs >(test_locale_codepage.exe and test_locale_message.exe) but I could'nt find >the cause of the errors. What do you think is happening? What possible >solutions or workarounds do you think I can apply? thanks!!: > > > >===================================================================== > >:MODE CON CODEPAGE SELECT=1255 > > > >Status for device CON: > >---------------------- > > Lines: 300 > > Columns: 80 > > Keyboard rate: 31 > > Keyboard delay: 1 > > Code page: 1255 > > > >===================================================================== > >:C:/apps/instApps/cppcms/build/booster/test_locale_codepage.exe > >- Testing correct invalid bytes skipping > >-- ISO-8859-8 > >-- cp932 > >Testing for backend std > >Testing wide I/O > > wchar_t > > UTF-8 > > Testing codepoints above 0xFFFF > > Single U+2008A > > Single U+2008A withing text > > U+2008A x 1000 > > ISO8859-8 > > ISO8859-1 > > Shift-JIS > >Error in line:67 read_file<Char>(f1) == cmp > >Testing charset to/from UTF conversion functions > > char > > wchar_t > >Testing utf_to_utf > > char<-char > > char<-wchar > > wchar<-char > > wchar<-wchar > >Testing for backend winapi > >Testing wide I/O > > wchar_t > > UTF-8 > > Testing codepoints above 0xFFFF > > Single U+2008A > > Single U+2008A withing text > > U+2008A x 1000 > >Testing charset to/from UTF conversion functions > > char > > wchar_t > >Testing utf_to_utf > > char<-char > > char<-wchar > > wchar<-char > > wchar<-wchar > > > >Passed 373 tests > >Failed 1 tests > > 99.7% of tests completed sucsessefully > > > > > >===================================================================== > >:C:/apps/instApps/cppcms/build/booster/test_locale_message.exe > >Testing for backend --------- std > > Testing he_IL.UTF-8 > > single forms > >Error in line:215 bl::translate(original).str(l)==expected > >Error in line:217 bl::translate(original_c_str).str(l)==expected > >Error in line:221 tmp==expected > >Error in line:223 tmp==expected > >Error in line:229 ss.str()==expected > >Error in line:231 bl::translate(original).str(l,domain)==expected > >Error in line:234 bl::translate(original).str(domain)==expected > >Error in line:240 ss.str()==expected > >Error in line:246 ss.str()==expected > >Error in line:215 bl::translate(original).str(l)==expected > >Error in line:217 bl::translate(original_c_str).str(l)==expected > >Error in line:221 tmp==expected > >Error in line:223 tmp==expected > >Error in line:229 ss.str()==expected > >Error in line:231 bl::translate(original).str(l,domain)==expected > >Error in line:234 bl::translate(original).str(domain)==expected > >Error in line:240 ss.str()==expected > >Error in line:246 ss.str()==expected > >Error in line:231 bl::translate(original).str(l,domain)==expected > >Error in line:234 bl::translate(original).str(domain)==expected > >Error in line:240 ss.str()==expected > >Error in line:246 ss.str()==expected > >Failed Error limits reached, stopping unit test > > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:38:10
|
Are you sure it is sent correctly? Try to see in browser's debugger what is send. Also do you see anything in CppCMS logs? Enable high logging level. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Thursday, May 16, 2013 4:23 PM >Subject: [Cppcms-users] request.post returning empty string > > >I am not getting the post data from a Ajax POST call. > >In the Ajax request I am passing the following > >data = { value:'test' } ; > >and when we try to get the value from the dispatch method using the http::post method it returns >empty. > >string value = request.post("value"); > >What is happening ? > >I see that the private method parse_form_urlencoded() in http::request object which can parse this >request params. >Who should be calling this prior to calling the dispatch method ? > > > > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:36:52
|
Debugger? Have you tried to use HTTP web server? I really don't know what to say. Try to create a simplest program that reproduces it and send me. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Saikumar Gandapodi <sai...@gm...> >To: cpp...@li... >Sent: Wednesday, May 15, 2013 1:10 AM >Subject: Re: [Cppcms-users] Upload large files > > >Any other way we can debug this problem. > > > > > > > > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:30:42
|
No, such a feature is not planned... If you want to implement it, you are more than welcome 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, May 14, 2013 3:59 PM >Subject: Re: [Cppcms-users] UnitTest > > >Hi Artyom, > >do you see any serious difficulties with introducing a test mode in CppCMS >that would allow users to fill an http_request object "manually" in a test >framework and pass it to a cppcms application class, simulating a request from >a client? The application class could then fill the http_response object and >pass it back to the test framework for result check. This would be a great way >to test CppCMS application classes. Do you think, such a "test pad" could be >integrated in a future release? > >Sab > > > > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:30:16
|
I'll take a look Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: Andy <ang...@ya...>; cpp...@li... >Sent: Monday, May 13, 2013 5:52 PM >Subject: Re: [Cppcms-users] make error during installation > > > >This means your version is 4.8.1.1-12 > > > > >On Mon, May 13, 2013 at 11:24 AM, Andy <ang...@ya...> wrote: > >I just used apt-get to get the latest version: >> >> >>% apt-get -s install libicu-dev >> >> >> >>The following NEW packages will be installed: >> libicu-dev >>0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. >>Inst libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) >>Conf libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) >> >> >> >>________________________________ >> From: Artyom Beilis <art...@ya...> >>To: "cpp...@li..." <cpp...@li...> >>Sent: Sunday, May 12, 2013 2:54 PM >> >>Subject: Re: [Cppcms-users] make error during installation >> >> >> >>What ICU version do you use? >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> >>------------------------------------------------------------------------------ >>Learn Graph Databases - Download FREE O'Reilly Book >>"Graph Databases" is the definitive new guide to graph databases and >>their applications. This 200-page book is written by three acclaimed >>leaders in the field. The early access version is available now. >>Download your free book today! http://p.sf.net/sfu/neotech_d2d_may >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > >-- >Best regards, >Shiv Shankar Dayal >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and >their applications. This 200-page book is written by three acclaimed >leaders in the field. The early access version is available now. >Download your free book today! http://p.sf.net/sfu/neotech_d2d_may >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-05-16 13:29:38
|
Actually it is interesting idea, so you can put @before variable that would be equivalent to <%= before %> Several things: 1. Escaping - should be done with @@ I think 2. Do you want to extend it beyond variables? Like the full Razor does? The best would be: 1. Add an option to cppcms_tmp_cc to handle such a syntax 2. Make sure that by default it is off such that existing code that has stuff like "@user" as text would not be broken. Other than that such a patch for cppcms_tmpl_cc would be welcome. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Tuesday, May 14, 2013 2:21 PM >Subject: [Cppcms-users] razor like syntax for templates > > >Hi *, > >the current template "language" is inspired by asp.net. >The syntax with <% ... %> is equal to the one asp.net uses. >My Idea is to use a different syntax, namely the successor razor where >you can replace all the <% with a simple @. For a simple review see [0] >Now my question is, are you willing to use this, or do you like to have >this feature. >i would try to implement this. For now it's a simple python script that >will convert the template to a cpp file, so it should not be that hard. > >Regards >Marcel Hellwig > > >[0] http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx > >------------------------------------------------------------------------------ >AlienVault Unified Security Management (USM) platform delivers complete >security visibility with the essential security capabilities. Easily and >efficiently configure, manage, and operate all of your security controls >from a single console and one unified framework. Download a free trial. >http://p.sf.net/sfu/alienvault_d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Saikumar G. <sai...@gm...> - 2013-05-16 13:23:56
|
I am not getting the post data from a Ajax POST call.
In the Ajax request I am passing the following
data = { value:'test' } ;
and when we try to get the value from the dispatch method using the http::post method it returns
empty.
string value = request.post("value");
What is happening ?
I see that the private method parse_form_urlencoded() in http::request object which can parse this
request params.
Who should be calling this prior to calling the dispatch method ?
|
|
From: Vizcayno <viz...@gm...> - 2013-05-15 22:57:40
|
I installed cppcms with last versions of PCRE, ZLIB and OpenSSL under
Windows 7 and VC2012.
During the "nmake test" I have got 2 lines with **not passed** status test:
69:test_locale_codepage
70:test_locale_message
After some investigation, I executed the next 2 programs
(test_locale_codepage.exe and test_locale_message.exe) but I could'nt find
the cause of the errors. What do you think is happening? What possible
solutions or workarounds do you think I can apply? thanks!!:
=====================================================================
:MODE CON CODEPAGE SELECT=1255
Status for device CON:
----------------------
Lines: 300
Columns: 80
Keyboard rate: 31
Keyboard delay: 1
Code page: 1255
=====================================================================
:C:/apps/instApps/cppcms/build/booster/test_locale_codepage.exe
- Testing correct invalid bytes skipping
-- ISO-8859-8
-- cp932
Testing for backend std
Testing wide I/O
wchar_t
UTF-8
Testing codepoints above 0xFFFF
Single U+2008A
Single U+2008A withing text
U+2008A x 1000
ISO8859-8
ISO8859-1
Shift-JIS
Error in line:67 read_file<Char>(f1) == cmp
Testing charset to/from UTF conversion functions
char
wchar_t
Testing utf_to_utf
char<-char
char<-wchar
wchar<-char
wchar<-wchar
Testing for backend winapi
Testing wide I/O
wchar_t
UTF-8
Testing codepoints above 0xFFFF
Single U+2008A
Single U+2008A withing text
U+2008A x 1000
Testing charset to/from UTF conversion functions
char
wchar_t
Testing utf_to_utf
char<-char
char<-wchar
wchar<-char
wchar<-wchar
Passed 373 tests
Failed 1 tests
99.7% of tests completed sucsessefully
=====================================================================
:C:/apps/instApps/cppcms/build/booster/test_locale_message.exe
Testing for backend --------- std
Testing he_IL.UTF-8
single forms
Error in line:215 bl::translate(original).str(l)==expected
Error in line:217 bl::translate(original_c_str).str(l)==expected
Error in line:221 tmp==expected
Error in line:223 tmp==expected
Error in line:229 ss.str()==expected
Error in line:231 bl::translate(original).str(l,domain)==expected
Error in line:234 bl::translate(original).str(domain)==expected
Error in line:240 ss.str()==expected
Error in line:246 ss.str()==expected
Error in line:215 bl::translate(original).str(l)==expected
Error in line:217 bl::translate(original_c_str).str(l)==expected
Error in line:221 tmp==expected
Error in line:223 tmp==expected
Error in line:229 ss.str()==expected
Error in line:231 bl::translate(original).str(l,domain)==expected
Error in line:234 bl::translate(original).str(domain)==expected
Error in line:240 ss.str()==expected
Error in line:246 ss.str()==expected
Error in line:231 bl::translate(original).str(l,domain)==expected
Error in line:234 bl::translate(original).str(domain)==expected
Error in line:240 ss.str()==expected
Error in line:246 ss.str()==expected
Failed Error limits reached, stopping unit test
|
|
From: Alexey O. <aom...@gm...> - 2013-05-15 09:47:58
|
Hi Marcel, that would be very convenient for many people. Regards, Alexey. On 14 May 2013 15:21, Marcel Hellwig <ke...@co...> wrote: > Hi *, > > the current template "language" is inspired by asp.net. > The syntax with <% ... %> is equal to the one asp.net uses. > My Idea is to use a different syntax, namely the successor razor where > you can replace all the <% with a simple @. For a simple review see [0] > Now my question is, are you willing to use this, or do you like to have > this feature. > i would try to implement this. For now it's a simple python script that > will convert the template to a cpp file, so it should not be that hard. > > Regards > Marcel Hellwig > > > [0] > http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Saikumar G. <sai...@gm...> - 2013-05-14 22:11:10
|
Any other way we can debug this problem. |
|
From: Sab <rim...@gm...> - 2013-05-14 12:59:50
|
Hi Artyom, do you see any serious difficulties with introducing a test mode in CppCMS that would allow users to fill an http_request object "manually" in a test framework and pass it to a cppcms application class, simulating a request from a client? The application class could then fill the http_response object and pass it back to the test framework for result check. This would be a great way to test CppCMS application classes. Do you think, such a "test pad" could be integrated in a future release? Sab |
|
From: Marcel H. <ke...@co...> - 2013-05-14 11:22:03
|
Hi *, the current template "language" is inspired by asp.net. The syntax with <% ... %> is equal to the one asp.net uses. My Idea is to use a different syntax, namely the successor razor where you can replace all the <% with a simple @. For a simple review see [0] Now my question is, are you willing to use this, or do you like to have this feature. i would try to implement this. For now it's a simple python script that will convert the template to a cpp file, so it should not be that hard. Regards Marcel Hellwig [0] http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx |
|
From: Petr J. <ele...@ex...> - 2013-05-14 10:15:32
|
Ok, wrong again. i've found out whats happening.
The reason the loop was hanging is because inside the loop I was calling
result::get<string>("colname") but colname is NULL in the database.
It still seems like there is something wrong.
Accessing a null column via result::get should either throw() or return
an empty string. Not hang the application.
On 14/05/2013 7:02 PM, Petr Janda wrote:
> An update:
>
> Well it seems like it's not a memory corruption, but this is the symptoms:
>
> when calling result::next() it hangs after the 1st iteration. It happens
> only after the copy-construction.
>
> Petr
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|
|
From: Petr J. <ele...@ex...> - 2013-05-14 09:18:57
|
An update: Well it seems like it's not a memory corruption, but this is the symptoms: when calling result::next() it hangs after the 1st iteration. It happens only after the copy-construction. Petr |
|
From: <ele...@ex...> - 2013-05-14 07:53:11
|
Hi Artyom,
I seem to have some kind of memory corruption happening during copy
construction of cppdb::result.
This is the scenario:
An asynchronous service (JSON-RPC server) holds a pointer to a synchronous
service to obtain some results from the database. The synchronous service
lives as long as the asynchronous
attach(new Engine(srv, new RPC(srv, new Engine(srv))), "engine",
"/engine{1}", "/engine(/(.*))?", 1);
Engine is the synchronous service, RPC is the asynchronous.
The Engine constructor:
Engine::Engine(cppcms::service& srv, apps::tracker::RPC* p): Base(srv)
{
attach(p, "rpc", "/rpc{1}", "/rpc", 0);
}
RPC Constructor:
RPC::RPC(cppcms::service& srv, apps::tracker::Base* p):
json_rpc_server(srv), ctr_(p)
{
using namespace cppcms::rpc;
attach(ctr_);
bind("load_move_item_form", json_method(&RPC::load_move_item_form,
this), method_role);
}
the load_move_item_form function does something like this:
ctr_->init();
cppdb::result r = ctr_->get_all_items(aircraft_id, tbl, 0, false);
ctr_->clear()
the problem is the result r contains garbage, random memory.
the get_all_items function works fine when called from a synchronous
application though.
the backend is SQLite.
This is running on Mageia Linux with stock standard cppcms-1.0.3 and
cppdb-0.3.1
If I loop through the result before returning it from the get_all_items
function, the items are there, but after the copy is constructed in the
caller, it contains garbage.
Any ideas?
|
|
From: Shiv S. D. <shi...@gm...> - 2013-05-13 14:52:21
|
This means your version is 4.8.1.1-12 On Mon, May 13, 2013 at 11:24 AM, Andy <ang...@ya...> wrote: > I just used apt-get to get the latest version: > > % apt-get -s install libicu-dev > > The following NEW packages will be installed: > libicu-dev > 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. > Inst libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) > Conf libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) > > ------------------------------ > *From:* Artyom Beilis <art...@ya...> > *To:* "cpp...@li..." < > cpp...@li...> > *Sent:* Sunday, May 12, 2013 2:54 PM > > *Subject:* Re: [Cppcms-users] make error during installation > > What ICU version do you use? > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Best regards, Shiv Shankar Dayal |
|
From: Andy <ang...@ya...> - 2013-05-13 05:55:05
|
I just used apt-get to get the latest version: % apt-get -s install libicu-dev The following NEW packages will be installed: libicu-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Inst libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) Conf libicu-dev (4.8.1.1-12 Ubuntu:13.04/raring [amd64]) ________________________________ From: Artyom Beilis <art...@ya...> To: "cpp...@li..." <cpp...@li...> Sent: Sunday, May 12, 2013 2:54 PM Subject: Re: [Cppcms-users] make error during installation What ICU version do you use? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Saikumar G. <sai...@gm...> - 2013-05-12 19:48:06
|
The .js file already contains the following.
"security" : {
"multipart_form_data_limit" : "2097152"
},
Which version of lighttpd are you using ? I am on 1.4.32 (ssl).
|