cppcms-users Mailing List for CppCMS C++ Web Framework (Page 98)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Artyom B. <art...@ya...> - 2012-01-22 06:53:30
|
Hi, Because the content that you provide in the render function should be a type of a subtype of the "uses" type for this template. For example <% view index uses data::index extends master %> Should receive a content of type data::index or one derived from it to render and you don't pass correct content. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: sergey lavrov <ccp...@gm...> >To: cpp...@li... >Sent: Sunday, January 22, 2012 12:11 AM >Subject: [Cppcms-users] Bad dynamic_cast! (http_context.cpp:150) > > >lib: cppcms-0.99.11 >os: windows 7 x86_64 >compiler: msvc 2010 > > >Dear All! > >I have strange error with my application when calling function render("myapp", "about", content); from controller: >2012-01-22 01:57:30; cppcms, error: Caught exception [Bad dynamic_cast!] > (http_context.cpp:150) > > >I don't have error if I call render() function with another template name render("myapp", "index", content) from the same controller . > > >about.tmpl: ><% c++ #include "../../include/data/about.h" %> ><% skin myapp %> ><% view about uses data::about extends master %> ><% template body() %> ><h2>about::index == <%= text %></h2> ><% end template%> ><% end view %> ><% end skin %> > > >index.tmpl: ><% c++ #include "../../include/data/index .h" %> ><% skin myapp %> ><% view index uses data::index extends master %> ><% template body() %> ><h2>index::index == <%= text %></h2> ><% end template%> ><% end view %> ><% end skin %> > > >Please help. > > >Thanks in advance. >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: sergey l. <ccp...@gm...> - 2012-01-21 22:11:45
|
lib: cppcms-0.99.11 os: windows 7 x86_64 compiler: msvc 2010 Dear All! I have strange error with my application when calling function render("myapp", "about", content); from controller: 2012-01-22 01:57:30; cppcms, error: Caught exception [Bad dynamic_cast!] (http_context.cpp:150) I don't have error if I call render() function with another template name render("myapp", "index", content) from the same controller . about.tmpl: <% c++ #include "../../include/data/about.h" %> <% skin myapp %> <% view about uses data::about extends master %> <% template body() %> <h2>about::index == <%= text %></h2> <% end template%> <% end view %> <% end skin %> index.tmpl: <% c++ #include "../../include/data/index .h" %> <% skin myapp %> <% view index uses data::index extends master %> <% template body() %> <h2>index::index == <%= text %></h2> <% end template%> <% end view %> <% end skin %> Please help. Thanks in advance. |
From: Leon <le...@wl...> - 2012-01-21 15:08:04
|
Thanks for the great work! On Wed, Jan 18, 2012 at 4:42 PM, Artyom Beilis <art...@ya...> wrote: > Hello, > > > CppCMS 0.999.0 - Release Candidate 1 is available > > > The API is frozen, no backward incompatible changes would be done. > > Release notes:http://art-blog.no-ip.info/cppcms/blog/post/94 > Download: http://sourceforge.net/projects/cppcms/files/cppcms/0.999.0%20-%20rc1/ > > Best Regards, > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: augustin <aug...@ov...> - 2012-01-21 13:52:37
|
On Wednesday, January 18, 2012 04:42:05 PM Artyom Beilis wrote: > CppCMS 0.999.0 - Release Candidate 1 is available Congratulations and many thanks for this first RC. Great work! :) Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: <csf...@gm...> - 2012-01-19 04:09:10
|
wow,I was wrong,and thank you. -- http://blog.csdn.net/sheismylife UBuntu11.10、Emacs+Gnus |
From: 4. <440...@qq...> - 2012-01-18 11:46:01
|
I see your email say that if regular expression is "^/page/(\\d+)/(\\w+)$" , exp1=2, why exp1 = 2 ? use your example "page/13/to_be_or_not" I think exp is 12 and exp2 is to_be_or not. and the url is "/page/13/to_be_or_not", then handler would be called with "to_be_or_not" as its first parameter I think 12 as its first parameter. why did you say to_be_or_not as its first parameter? I do not know why? ------------------ Original ------------------ From: "Artyom Beilis"<art...@ya...>; Date: Wed, Jan 18, 2012 07:25 PM To: "cpp...@li..."<cpp...@li...>; Subject: Re: [Cppcms-users] question about mapper The key /number - starts searching from root of the application, and number starts searching from current location. See: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ From: Leon <le...@wl...> To: cpp...@li... Sent: Wednesday, January 18, 2012 12:51 PM Subject: [Cppcms-users] question about mapper In the url_mapping example, the mapping is done with the following code: mapper().assign("number","/number/{1}"); Here the key is "number". Later, a url is constructed with: url("/number",1) Here the key is "/number". My question is that why the key parameter passed to url(...) is "/number" not "number"? Thanks in advance. Best regards. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2012-01-18 11:25:35
|
The key /number - starts searching from root of the application, and number starts searching from current location. See: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__mapper.html#_details Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Wednesday, January 18, 2012 12:51 PM >Subject: [Cppcms-users] question about mapper > >In the url_mapping example, the mapping is done with the following code: > mapper().assign("number","/number/{1}"); >Here the key is "number". > >Later, a url is constructed with: url("/number",1) >Here the key is "/number". > > >My question is that why the key parameter passed to url(...) is >"/number" not "number"? > > >Thanks in advance. > > >Best regards. > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-01-18 11:23:46
|
The number represents regular expression subexpression. Quoting reference doc from url_dispatcher: if regular expression is "^/page/(\\d+)/(\\w+)$" , exp1=2, and the url is "/page/13/to_be_or_not", then handler would be called with "to_be_or_not" as its first parameter So number represents a subexpression you want to capture and pass as a parameter to function. For example dispatcher().assign("/foo/(\\w+)/(\\w+)",&myclass::bar,this,2,1) For url /foo/bar/baz would call : bar("baz","bar") Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Wednesday, January 18, 2012 11:48 AM >Subject: [Cppcms-users] what is the integer in url_dispatcher::asign for? > > >Hello everybody, > >I wonder about this method: >http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__dispatcher.html#a92c984612be4b29e9e45b58cbe676f77 >this is (I think) the standard url assign method everybody uses. >In the tutorial of url mapping ( http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_url_mapping ) it says: "In the fourth line we connect the regular expression /number/(\d+) to the member function number of this instance that receives std::string as parameter, and 1st captured subexpression is passed to it." (4: "dispatcher().assign("/number/(\\d+)", &hello::number, this, 1);" ) >So i now think, what happens if you put instead of a 1 a 0 to the method, like in the "message_board" example: >/message_board/apps/thread.cpp:174: dispatcher().assign(".*",&reply::prepare,this,0); > >And also some times ago our chinese/japanese (?) friend csfreebird posted some code like this: > > dispatcher().assign("/welcome" , &kaimei_web_site::welcome , this , 1); //first page > dispatcher().assign("/register" , &kaimei_web_site::register_client , this , 2); //register a new account on this page >.... > //restful web method called by Javascript form client-side > dispatcher().assign("/send_email" , &kaimei_web_site::save_email , this , 7); > dispatcher().assign("/create_account?(.+)" , &kaimei_web_site::create_account , this , 8); > >I think this is wrong, isn't it? > >Hope of some clearness. > >Marcel Hellwig > > > > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Leon <le...@wl...> - 2012-01-18 10:51:55
|
In the url_mapping example, the mapping is done with the following code: mapper().assign("number","/number/{1}"); Here the key is "number". Later, a url is constructed with: url("/number",1) Here the key is "/number". My question is that why the key parameter passed to url(...) is "/number" not "number"? Thanks in advance. Best regards. |
From: Marcel H. <ke...@co...> - 2012-01-18 09:48:50
|
Hello everybody, I wonder about this method: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1url__dispatcher.html#a92c984612be4b29e9e45b58cbe676f77 this is (I think) the standard url assign method everybody uses. In the tutorial of url mapping ( http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_tut_url_mapping ) it says: "In the fourth line we connect the regular expression |/number/(\d+)| to the member function |number| of |this| instance that receives |std::string| as parameter, and 1st captured subexpression is passed to it." (4: "dispatcher().assign("/number/(\\d+)", &hello::number, this, 1);" ) So i now think, what happens if you put instead of a 1 a 0 to the method, like in the "message_board" example: /message_board/apps/thread.cpp:174: dispatcher().assign(".*",&reply::prepare,this,0); And also some times ago our chinese/japanese (?) friend csfreebird posted some code like this: dispatcher().assign("/welcome" , &kaimei_web_site::welcome , this , 1); //first page dispatcher().assign("/register" , &kaimei_web_site::register_client , this , 2); //register a new account on this page .... //restful web method called by Javascript form client-side dispatcher().assign("/send_email" , &kaimei_web_site::save_email , this , 7); dispatcher().assign("/create_account?(.+)" , &kaimei_web_site::create_account , this , 8); I think this is wrong, isn't it? Hope of some clearness. Marcel Hellwig |
From: Artyom B. <art...@ya...> - 2012-01-18 08:42:16
|
Hello, CppCMS 0.999.0 - Release Candidate 1 is available The API is frozen, no backward incompatible changes would be done. Release notes:http://art-blog.no-ip.info/cppcms/blog/post/94 Download: http://sourceforge.net/projects/cppcms/files/cppcms/0.999.0%20-%20rc1/ Best Regards, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ |
From: Alexey U. <um...@gm...> - 2012-01-17 10:59:47
|
Thanks for the link. I should have read it before... Eventually it helped :) But such a kind of configuration is quite hard (at least to me - I'm not versed in web back-ends) to make it work off the cuff. So I think fit to put some of my configurations here - perhaps it would be of help to someone. I know my lighttpd.conf isn't well written for production, but it works for me while I'm in research. piece of my lighttpd.conf related to this particular application: $HTTP["host"] == "app.net" { server.document-root = "/opt/sites/app", alias.url = ( "/scripts" => "/opt/sites/app/scripts/", ) url.rewrite-once = ( "^(/scripts/.*)" => "$1", "^/(.*)" => "/app/$1" ) fastcgi.server = ( "/app" => (( "socket" => "/tmp/app-fcgi-socket", "max-procs" => 1, "check-local" => "disable", )) ) } CppCMS config: { "service" : { "api" : "fastcgi", "socket" : "/tmp/app-fcgi-socket" } } Good luck! On Mon, Jan 16, 2012 at 3:48 PM, Artyom Beilis <art...@ya...> wrote: > > You need URL Rewriting: > > Read this: > http://art-blog.no-ip.info/wikipp/en/page/run_application_web_server_root > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > ------------------------------ > *From:* Alexey Umnov <um...@gm...> > *To:* cpp...@li... > *Sent:* Monday, January 16, 2012 10:56 AM > *Subject:* [Cppcms-users] lighttp + fastcgi configuration problem > > Hello! > > After running my test app behind the web back-end I've encountered a > problem with URL dispatching. > I have a virtual host on my machine "app.net" and appropriate record has > been putted to /etc/hosts: "app.net 127.0.0.1". > I'm running my app externally. My lighttp configuration related to subject > is as follows: > > $HTTP["host"] == "app.net" { > server.document-root = "/opt/sites/app/" > alias.url += ("/scripts" => "/opt/sites/app/scripts" ) > } > > # here I expect all address strings which contain "app.net" are delivered > to my app > fastcgi.server = ( "/" => (( > "socket" => "/tmp/app-fcgi-socket", > "max-procs" => 1, > "check-local" => "disable" > )) > ) > > My CppCMS config: > { > "service" : { > "api" : "fastcgi", > "socket" : "/tmp/app-fcgi-socket" > } > } > > I manage URLs in following way: > MyApp::MyApp(cppcms::service& srv) : > cppcms::application(srv) > { > dispatcher().assign("", &MyApp::main, this); > dispatcher().assign("/home", &MyApp::main, this); > dispatcher().assign("/page1", &MyApp::page1, this); > dispatcher().assign("/page2", &MyApp::page2, this); > } > > void MyApp::main() { > content::Home home; > home.text = "Welcome home!"; > render("Home", home); > } > > void MyApp::page1() { > content::Page1 page; > page.text = "Page 1"; > render("Page", page); > } > > void MyApp::page2() { > content::Page2 page; > page.text = "Page"; > render("Page2", page2); > } > > I expected the following behavior: > http://app.net -> "Welcome home!" > http://app.net/page1 -> "Page 1" > http://app.net/page2 -> "Page 2" > > but I'm getting the following: > http://app.net -> "Welcome home!" > http://app.net/page1 -> "Welcome home!" > http://app.net/page2 -> "Welcome home!" > > And I've noticed that > http://app.net -> "Welcome home!" > http://app.net/asd/page1 -> "Page 1" > http://app.net/asd/page2 -> "Page 2" > > (I can use any string in place of "asd" above and it's OK) > > Seems like there are lighttp configuration problem but I don't know how to > cope with it. > > Any ideas about how to achieve what I expect? > Thank you! > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Alec T. <ale...@gm...> - 2012-01-17 10:44:58
|
On Tue, Jan 17, 2012 at 9:23 PM, Artyom Beilis <art...@ya...> wrote: >> From: Leon <le...@wl...> > >>To: cpp...@li... >>Sent: Tuesday, January 17, 2012 11:59 AM >>Subject: Re: [Cppcms-users] UUID data type (primary key) in ccpdb >> >>Thank you very much for the answer! Is native uuid data types going to >>be supported? >> > > What is "Native UUID" ? > > 1. C++ does not define UUID type. > > 2. SQL Standard does not define UUID type as well. > > > The "native" data representation in CppDB and in most of Sql drivers > is string so UUID is already natively supported. > > For example this code with mysql > > > std::string uuid; > sql << "select UUID();" << cppdb::row >> uuid; > std::cout << uuid << std::endl; > > > Prints very nice UUID for you... Efficiency crumbles! > > > > Artyom > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2012-01-17 10:23:48
|
> From: Leon <le...@wl...> >To: cpp...@li... >Sent: Tuesday, January 17, 2012 11:59 AM >Subject: Re: [Cppcms-users] UUID data type (primary key) in ccpdb > >Thank you very much for the answer! Is native uuid data types going to >be supported? > What is "Native UUID" ? 1. C++ does not define UUID type. 2. SQL Standard does not define UUID type as well. The "native" data representation in CppDB and in most of Sql drivers is string so UUID is already natively supported. For example this code with mysql std::string uuid; sql << "select UUID();" << cppdb::row >> uuid; std::cout << uuid << std::endl; Prints very nice UUID for you... Artyom |
From: Leon <le...@wl...> - 2012-01-17 09:59:32
|
Thank you very much for the answer! Is native uuid data types going to be supported? On Tue, Jan 17, 2012 at 4:39 PM, Artyom Beilis <art...@ya...> wrote: > CppDB is dynamically typed, you can transfer UUID as string. Of course it > may depend on your DB engine. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > ________________________________ > From: Leon <le...@wl...> > To: cpp...@li... > Sent: Tuesday, January 17, 2012 7:53 AM > Subject: [Cppcms-users] UUID data type (primary key) in ccpdb > > Hi, > > Is uuid data type supported in cppdb? > > Best regards, > Leon > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-01-17 08:50:00
|
CppDB is dynamically typed, you can transfer UUID as string. Of course it may depend on your DB engine. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Tuesday, January 17, 2012 7:53 AM >Subject: [Cppcms-users] UUID data type (primary key) in ccpdb > >Hi, > >Is uuid data type supported in cppdb? > >Best regards, >Leon > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-01-17 08:43:41
|
Under your build directory you have a file: install_manifest.txt You can remove all files there by simple: xargs rm < install_manifest.txt Or manually remove files/directories according yo your installation perfix include/cppcms include/booster lib/libcppcms.* lib/libbooster.* bin/cppcms_* See also: http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Tuesday, January 17, 2012 9:45 AM >Subject: [Cppcms-users] uninstall/re-install cppcms > >Hi, > >How can I uninstall/re-install cppcms? "make uninstall" seems do not work. > > >Best regards, >Leon > >------------------------------------------------------------------------------ >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-01-17 08:38:48
|
> Thank you very much for the reply. I fixed the test by time zone > configuration. Still, I would like to know how can I trace the > problem. Is there any flag so that the line number and file name can > be printed out for debugging? > The problem usually is that ICU an OS uses different time tables or it is an ICU bug (3rd part library)... What version of ICU do you have and what is the time zone you are in? Give an output of: test_locale_config in booster sub directory of your build directory Artyom |
From: Leon <le...@wl...> - 2012-01-17 07:46:00
|
Hi, How can I uninstall/re-install cppcms? "make uninstall" seems do not work. Best regards, Leon |
From: Leon <le...@wl...> - 2012-01-17 05:53:51
|
Hi, Is uuid data type supported in cppdb? Best regards, Leon |
From: Leon <le...@wl...> - 2012-01-17 05:45:55
|
Thank you very much for the reply. I fixed the test by time zone configuration. Still, I would like to know how can I trace the problem. Is there any flag so that the line number and file name can be printed out for debugging? Best regards, Leon On Mon, Jan 16, 2012 at 7:55 PM, Artyom Beilis <art...@ya...> wrote: > Hello, > > > This is a special test for common problem. > > CppCMS allows to use ICU library for localization. > > > ICU sometimes does not detect local time zone correctly > or more frequently ICU has different tz database > then OS. > > Generally it points to either: > > - ICU version is not up to date so its tables not updates > - Your OS timezone tables are not up to date. > > What can it cause? The wall time displayed using for example > time filters would be different from the real local time. > > > What to do: > > 1. Make sure your OS time zone information is updated of test passes, ok. > > 2.Try to install latest ICU version and see if test passes if it is ok, > 3. Don't use ICU backend or try to specify timezone manually (environment variable TZ=TimeZoneName) > > > Generally it is not CppCMS bug but rather shows some problem with > ICU library or OS setup. > > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > >>________________________________ >> From: Leon <le...@wl...> >>To: cpp...@li... >>Sent: Monday, January 16, 2012 11:26 AM >>Subject: [Cppcms-users] 73 - test_locale_icu_vs_os_timezone (Failed) >> >>Hi, >>I have the following tests FAILED: >> 73 - test_locale_icu_vs_os_timezone (Failed) >> >>I am building cppcms on ubuntu 10.04 64 bit. >> >> >>My questions are: >>1. what could be the reason causing this test failed? >>2. How can I trace testing error? How do I know which file, which line >>of code causing the error? >> >>Thanks in advance! >> >>------------------------------------------------------------------------------ >>RSA(R) Conference 2012 >>Mar 27 - Feb 2 >>Save $400 by Jan. 27 >>Register now! >>http://p.sf.net/sfu/rsa-sfdev2dev2 >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Li L. <leo...@gm...> - 2012-01-17 05:40:56
|
Hi, Is uuid data type supported in cppdb? Best regards, Leon |
From: Artyom B. <art...@ya...> - 2012-01-16 11:55:38
|
Hello, This is a special test for common problem. CppCMS allows to use ICU library for localization. ICU sometimes does not detect local time zone correctly or more frequently ICU has different tz database then OS. Generally it points to either: - ICU version is not up to date so its tables not updates - Your OS timezone tables are not up to date. What can it cause? The wall time displayed using for example time filters would be different from the real local time. What to do: 1. Make sure your OS time zone information is updated of test passes, ok. 2.Try to install latest ICU version and see if test passes if it is ok, 3. Don't use ICU backend or try to specify timezone manually (environment variable TZ=TimeZoneName) Generally it is not CppCMS bug but rather shows some problem with ICU library or OS setup. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Monday, January 16, 2012 11:26 AM >Subject: [Cppcms-users] 73 - test_locale_icu_vs_os_timezone (Failed) > >Hi, >I have the following tests FAILED: > 73 - test_locale_icu_vs_os_timezone (Failed) > >I am building cppcms on ubuntu 10.04 64 bit. > > >My questions are: >1. what could be the reason causing this test failed? >2. How can I trace testing error? How do I know which file, which line >of code causing the error? > >Thanks in advance! > >------------------------------------------------------------------------------ >RSA(R) Conference 2012 >Mar 27 - Feb 2 >Save $400 by Jan. 27 >Register now! >http://p.sf.net/sfu/rsa-sfdev2dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-01-16 11:48:13
|
You need URL Rewriting: Read this: http://art-blog.no-ip.info/wikipp/en/page/run_application_web_server_root Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ > From: Alexey Umnov <um...@gm...> >To: cpp...@li... >Sent: Monday, January 16, 2012 10:56 AM >Subject: [Cppcms-users] lighttp + fastcgi configuration problem > > >Hello! > > >After running my test app behind the web back-end I've encountered a problem with URL dispatching. >I have a virtual host on my machine "app.net" and appropriate record has been putted to /etc/hosts: "app.net 127.0.0.1". >I'm running my app externally. My lighttp configuration related to subject is as follows: > > >$HTTP["host"] == "app.net" { >server.document-root = "/opt/sites/app/" >alias.url += ("/scripts"=>"/opt/sites/app/scripts") >} > > ># here I expect all address strings which contain "app.net" are delivered to my app >fastcgi.server = ( "/" => (( >"socket" => "/tmp/app-fcgi-socket", >"max-procs" => 1, >"check-local" => "disable" >)) >) > > >My CppCMS config: >{ >"service" : { >"api" : "fastcgi", >"socket" : "/tmp/app-fcgi-socket" >} >} > > >I manage URLs in following way: >MyApp::MyApp(cppcms::service& srv) : >cppcms::application(srv) >{ >dispatcher().assign("", &MyApp::main, this); >dispatcher().assign("/home", &MyApp::main, this); >dispatcher().assign("/page1", &MyApp::page1, this); >dispatcher().assign("/page2", &MyApp::page2, this); >} > > >void MyApp::main() { >content::Home home; >home.text = "Welcome home!"; >render("Home", home); >} > > >void MyApp::page1() { >content::Page1 page; >page.text = "Page 1"; >render("Page", page); >} > > >void MyApp::page2() { >content::Page2 page; >page.text = "Page"; >render("Page2", page2); >} > > >I expected the following behavior: >http://app.net -> "Welcome home!" >http://app.net/page1 -> "Page 1" >http://app.net/page2 -> "Page 2" > > >but I'm getting the following: >http://app.net -> "Welcome home!" >http://app.net/page1 -> "Welcome home!" >http://app.net/page2 -> "Welcome home!" > > >And I've noticed that >http://app.net -> "Welcome home!" >http://app.net/asd/page1 -> "Page 1" >http://app.net/asd/page2 -> "Page 2" > > >(I can use any string in place of "asd" above and it's OK) > > >Seems like there are lighttp configuration problem but I don't know how to cope with it. > > >Any ideas about how to achieve what I expect? >Thank you! >------------------------------------------------------------------------------ >RSA(R) Conference 2012 >Mar 27 - Feb 2 >Save $400 by Jan. 27 >Register now! >http://p.sf.net/sfu/rsa-sfdev2dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Leon <le...@wl...> - 2012-01-16 09:26:53
|
Hi, I have the following tests FAILED: 73 - test_locale_icu_vs_os_timezone (Failed) I am building cppcms on ubuntu 10.04 64 bit. My questions are: 1. what could be the reason causing this test failed? 2. How can I trace testing error? How do I know which file, which line of code causing the error? Thanks in advance! |