cppcms-users Mailing List for CppCMS C++ Web Framework (Page 122)
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: augustin <aug...@ov...> - 2010-12-24 13:53:37
|
Ok, thank you Artyom for your reply. My problem is that I have never worked with prepared statements. I guess now is the perfect opportunity for me to learn one more thing :) I'll check all of this out and code accordingly. Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: Artyom <art...@ya...> - 2010-12-24 13:46:35
|
Hello, > We almost never pass a ready-made query, but use dynamic queries most of the > time. > > When we do: > cppdb::result res = sql << "SELECT * FROM user WHERE id = ? << user_id; > it's very useful in many circumstances to know which user_id was actually > passed. > Internally, cppdb must be creating the full query before passing it to the > backend. > I need to have the full query with the replacements made: > "SELECT * FROM user WHERE id = 123" That is exactly what you are not going to get as CppDB uses almost anywhere prepared statements, that means that query that is passed is actually: "SELECT * FROM user WHERE id = ?" And parameter was binded separately on the Specific DB API level, like PQexecParams or PQexecPrepared This gives significant performance boost (100%-200%) as statements are prepared only once and the parameters are transferred independently. So don't expect to make this helpful. Also you should remember that the query itself is not globally available so for example if result binding fails there is no way to get the query itself or in many cases the prepared statement already lost the information about the original query as it keeps its statement object rather then the query itself. > > Moreover, in a real application, some queries can become increasingly complex > and increasingly dynamic (e.g. see Drupal and some of its API like > db_rewrite_query()...!) > Often, in order to understand why we don't get the result we expect, we need > to have the very exact query as run by the SQL server. Generally it is good idea not to generate SQL queries on the fly but rather create a set of statements you use and pass parameters via prepared statements. > > I don't understand the cppdb internals and don't understand your first point > ("the query just does not exists or is invalid"). > But surely, at some point you must be sending a full query to the server, so > it should be fairly easy to retrieve it. This is exactly the point, it is not. It may become some server side object and the call actually would look like: exec prepared cppdb_stmt_3(123); This library has very different internals in comparison to dbixx. Artyom |
From: augustin <aug...@ov...> - 2010-12-24 13:27:39
|
On Friday 24 December 2010 06:32:56 pm Artyom wrote: > Currently this is not supported > 1. In many cases the query just does not exists or invalid. > > 2. CppDB does not rewrite the query in most of cases as it uses > prepared statements, so basically the query you give is the query that > is passed I hope you'll re-consider and support it. We almost never pass a ready-made query, but use dynamic queries most of the time. When we do: cppdb::result res = sql << "SELECT * FROM user WHERE id = ? << user_id; it's very useful in many circumstances to know which user_id was actually passed. Internally, cppdb must be creating the full query before passing it to the backend. I need to have the full query with the replacements made: "SELECT * FROM user WHERE id = 123" Moreover, in a real application, some queries can become increasingly complex and increasingly dynamic (e.g. see Drupal and some of its API like db_rewrite_query()...!) Often, in order to understand why we don't get the result we expect, we need to have the very exact query as run by the SQL server. One more thing: when an application crashes, or throws an error, generally we don't know which query in the code causes the problem. Looking at the error logs at some generic error message is not useful. Having the full query appended in the error logs would help to find the cause much more quickly. I don't understand the cppdb internals and don't understand your first point ("the query just does not exists or is invalid"). But surely, at some point you must be sending a full query to the server, so it should be fairly easy to retrieve it. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: augustin <aug...@ov...> - 2010-12-24 13:08:58
|
On Friday 24 December 2010 06:29:49 pm Artyom wrote: > Make sure that you rebuild the project from the scratch. i.e. > > - Remove build directory > Thanks. It worked this way. I should have tried that, because it's not the first time re-building from scratch solved a compile problem (I had a similar problem with cppcms, solved in the same fashion). Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: Artyom <art...@ya...> - 2010-12-24 10:33:03
|
Currently this is not supported as: 1. In many cases the query just does not exists or invalid. 2. CppDB does not rewrite the query in most of cases as it uses prepared statements, so basically the query you give is the query that is passed That was different in case of dbixx which did rewrite most of queries. Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Fri, December 24, 2010 10:23:36 AM > Subject: [Cppcms-users] cppdb: getting the full query > > Hello, > > Like discussed previously for dbixx, cppdb lacks the possibility to get the > full query (for either logging or debugging purposes). > > At least when an error is thrown, we should be able to get the full query that > > caused the error. The driver error is not explicit enough. > > cppdb_error should implement: > std::string cppdb::cppdb_error::get_query() > which would return the full SQL. > > Probably, a similar function should exist in cppdb::session (to get the full > query even when no error is thrown. > > In many cases, it would make development easier. > > Thanks, > > > Augustin. > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > 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/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2010-12-24 10:29:57
|
Make sure that you rebuild the project from the scratch. i.e. - Remove build directory - Rerun CMake with parameters you need. - Run make and make install as u Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Fri, December 24, 2010 8:48:59 AM > Subject: [Cppcms-users] mysql_backend.cpp:20:19: error: mysql.h: No such file >or directory > > > Hello, > > I am trying to compile the latest svn update of cppdb, but: > > > > > [ 70%] Building CXX object > CMakeFiles/cppdb_mysql.dir/drivers/mysql_backend.cpp.o > > > > cppdb/drivers/mysql_backend.cpp:20:19: error: mysql.h: No such file or > directory > > although the file is properly installed by the relevant ubuntu package: > > $ locate mysql.h > /usr/include/mysql/mysql.h > > As far as I am aware, it is in a standard place. > > Is it a problem in the cppdb makefile, or a configuration problem on my >machine? > > Thanks, > > Augustin. > > > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > 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/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2010-12-24 08:22:33
|
Hello, Like discussed previously for dbixx, cppdb lacks the possibility to get the full query (for either logging or debugging purposes). At least when an error is thrown, we should be able to get the full query that caused the error. The driver error is not explicit enough. cppdb_error should implement: std::string cppdb::cppdb_error::get_query() which would return the full SQL. Probably, a similar function should exist in cppdb::session (to get the full query even when no error is thrown. In many cases, it would make development easier. Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: augustin <aug...@ov...> - 2010-12-24 06:51:41
|
On Friday 24 December 2010 02:48:59 pm augustin wrote: > Is it a problem in the cppdb makefile, or a configuration problem on my > machine? I may be wrong, but it looks like a problem with cppdb, because I had successfully compiled cppcd with the mysql backend 4 days ago, prior to doing svn update to catch the latest bug fixes: /usr/local/lib$ ll libcppdb_mysql* -rw-r--r-- 1 root root 1.1M 2010-12-20 16:15 libcppdb_mysql.a lrwxrwxrwx 1 root root 19 2010-12-20 16:16 libcppdb_mysql.so -> libcppdb_mysql.so.0 lrwxrwxrwx 1 root root 23 2010-12-20 16:16 libcppdb_mysql.so.0 -> libcppdb_mysql.so.0.0.0 -rw-r--r-- 1 root root 546K 2010-12-20 16:15 libcppdb_mysql.so.0.0.0 -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: augustin <aug...@ov...> - 2010-12-24 06:47:56
|
Hello, I am trying to compile the latest svn update of cppdb, but: [ 70%] Building CXX object CMakeFiles/cppdb_mysql.dir/drivers/mysql_backend.cpp.o cppdb/drivers/mysql_backend.cpp:20:19: error: mysql.h: No such file or directory although the file is properly installed by the relevant ubuntu package: $ locate mysql.h /usr/include/mysql/mysql.h As far as I am aware, it is in a standard place. Is it a problem in the cppdb makefile, or a configuration problem on my machine? Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: Artyom <art...@ya...> - 2010-12-23 18:55:03
|
Thanks! Fixed in trunk. Artyom > >From: Baptiste Ducatel <bip...@gm...> >To: cpp...@li... >Sent: Thu, December 23, 2010 8:15:19 PM >Subject: [Cppcms-users] error in cppdb > >Hi, > > >I find two bugs in cppdb > > >The first is just a typo >in http://cppcms.svn.sourceforge.net/viewvc/cppcms/cppdb/trunk/cppdb/frontend.h?revision=1593&view=markup at > line 20, you forget a 'T' in #define CPPDB_FRONEND_H > > >and the second >I have an error when I give an instance of cppdb:session to a function >to reproduce it > > >------------------------------------------------- >foo.cpp > > >#include <cppdb/frontend.h> > >void test(cppdb::session sql) { > sql << "DROP TABLE IF EXISTS test" << cppdb::exec; >} > >int main() >{ > cppdb::session sql("sqlite3:db=db.db"); > test(sql); > return 0; >} > > >------------------------------------------------- > > >g++ -lcppdb foo.cpp -o foo > > >boom, I have the followed error during the linking process > > >foo.cpp:(.text+0xef): undefined reference to >`cppdb::session::session(cppdb::session const&)' > > > > >thanks, >Baptiste > > |
From: Baptiste D. <bip...@gm...> - 2010-12-23 18:15:32
|
Hi, I find two bugs in cppdb The first is just a typo in http://cppcms.svn.sourceforge.net/viewvc/cppcms/cppdb/trunk/cppdb/frontend.h?revision=1593&view=markup at line 20, you forget a 'T' in #define CPPDB_FRONEND_H and the second I have an error when I give an instance of cppdb:session to a function to reproduce it ------------------------------------------------- foo.cpp #include <cppdb/frontend.h> void test(cppdb::session sql) { sql << "DROP TABLE IF EXISTS test" << cppdb::exec; } int main() { cppdb::session sql("sqlite3:db=db.db"); test(sql); return 0; } ------------------------------------------------- g++ -lcppdb foo.cpp -o foo boom, I have the followed error during the linking process foo.cpp:(.text+0xef): undefined reference to `cppdb::session::session(cppdb::session const&)' thanks, Baptiste |
From: Aris S. <ari...@gm...> - 2010-12-16 20:43:36
|
> I was talking about HTTP Pipelining, Read this: > > http://en.wikipedia.org/wiki/HTTP_pipelining HTTP pipelining is disabled in most browsers. > You can even do something like that: > > response().content_type("image/jpeg"); > sql << "SELECT image FROM profiles WHERE user_id = ?" << uid << cppdb::row >>> resonse.out(); thanks. this is simple. |
From: Artyom <art...@ya...> - 2010-12-16 11:55:17
|
----- Original Message ---- > From: Aris Setyawan <ari...@gm...> > > First of all, as far as I understand you can just use some css/javascript > > compressor > > and use it instead of ordinary file. And probably specialized compressors >would > > do a good job. > thanks > > >> How about combining small images so we can access it with css sprite? > > Isn't it what HTTP-Keep-Alive and for? > > > > Also HTTP/1.1 allows you to send several requests for different images >without > > waiting for completion of downloading first one. Isn't it better? > I read from some browsing, they are optimally used in 4 parallel > request because of DNS look up time. I was talking about HTTP Pipelining, Read this: http://en.wikipedia.org/wiki/HTTP_pipelining > I think about small, less static, same size, related images, such as > image profile in social web and try another alternative to pull them > with combining and maybe caching. I can use libgd. There is no problem serving images with CppCMS this is rather simple you don't need anything special for it just give correct content type and write it into output. And of course you can cache them in CppCMS using internal CppCMS cache. But still you need to define what you want and how to serve the files. You can even do something like that: response().content_type("image/jpeg"); sql << "SELECT image FROM profiles WHERE user_id = ?" << uid << cppdb::row >> resonse.out(); Artyom |
From: Aris S. <ari...@gm...> - 2010-12-16 10:22:09
|
> First of all, as far as I understand you can just use some css/javascript > compressor > and use it instead of ordinary file. And probably specialized compressors would > do a good job. thanks >> How about combining small images so we can access it with css sprite? > Isn't it what HTTP-Keep-Alive and for? > > Also HTTP/1.1 allows you to send several requests for different images without > waiting for completion of downloading first one. Isn't it better? I read from some browsing, they are optimally used in 4 parallel request because of DNS look up time. If the images small enough to combine, it will give me more alternative. I think I need some test. By the way, how many a [maximum] size of an http response? How to check it? I use firefox firebug plugin, and no information about it. > Generally most web servers know to serve > static files a way better than any framework I know for a simple reason - this > is what they are benchmarked against most often. They use best OS API like > sendfile or others to do the job done. I'm not sure how much would it > give you to push such thing in framework, also how exactly can you combine > serveral > images in single request? I think about small, less static, same size, related images, such as image profile in social web and try another alternative to pull them with combining and maybe caching. I can use libgd. |
From: Artyom <art...@ya...> - 2010-12-16 08:33:42
|
> Hi, > > My opinion in web development, specifically if we have many "js and > css" resources, although we have high performance http server, many > "js and css" requests will result poor performance (vary in case). > > A technique used in YUI javascript framework is with combining all > request in single file. They provide, named Combo API to access YUI > resources, complete with its dependency configurator. > Here the example of combining 4 javascript request: > > <script type="text/javascript" >src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo/yahoo-min.js&2.8.2r1/build/dom/dom-min.js&2.8.2r1/build/event/event-min.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/tabview/tabview-min.js"></script> >> > > and for css: > > <link rel="stylesheet" type="text/css" >href="http://yui.yahooapis.com/combo?2.8.2r1/build/fonts/fonts-min.css&2.8.2r1/build/tabview/assets/skins/sam/tabview.css"> >> > > Combo API is useful to minimize http request. > > How about added this feature (combo api) in CppCMS so we don't need > combine it ourself? First of all, as far as I understand you can just use some css/javascript compressor and use it instead of ordinary file. And probably specialized compressors would do a good job. > How about combining small images so we can access it with css sprite? Isn't it what HTTP-Keep-Alive and for? Also HTTP/1.1 allows you to send several requests for different images without waiting for completion of downloading first one. Isn't it better? Generally most web servers know to serve static files a way better than any framework I know for a simple reason - this is what they are benchmarked against most often. They use best OS API like sendfile or others to do the job done. I'm not sure how much would it give you to push such thing in framework, also how exactly can you combine serveral images in single request? Artyom |
From: Aris S. <ari...@gm...> - 2010-12-16 07:19:11
|
Hi, My opinion in web development, specifically if we have many "js and css" resources, although we have high performance http server, many "js and css" requests will result poor performance (vary in case). A technique used in YUI javascript framework is with combining all request in single file. They provide, named Combo API to access YUI resources, complete with its dependency configurator. Here the example of combining 4 javascript request: <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo/yahoo-min.js&2.8.2r1/build/dom/dom-min.js&2.8.2r1/build/event/event-min.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/tabview/tabview-min.js"></script> and for css: <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.2r1/build/fonts/fonts-min.css&2.8.2r1/build/tabview/assets/skins/sam/tabview.css"> Combo API is useful to minimize http request. How about added this feature (combo api) in CppCMS so we don't need combine it ourself? How about combining small images so we can access it with css sprite? -aris |
From: augustin <aug...@ov...> - 2010-12-15 07:25:18
|
On Monday 13 December 2010 05:30:51 pm Artyom wrote: > I'd suggest to take a look on cppdb - this is a new project > drop in replacement of dbixx, unlike dbixx it does not depend on > libdbi library but rather implements all by its own. Its API > is different from dbixx but conversion is mostly mechanical. > > There you can do: > > cppdb::result r = sql << "SELECT name,age,birthday FROM users"; > while(r.next()) { > myClass person = myClass(r.get<std::string>("name"), > r.get<int>("age"), r.get<std::tm>("birthday")); > } Thank you Artyom for the code sample. I'll upgrade to cppdb very soon and try it out. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ 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: Artyom <art...@ya...> - 2010-12-14 17:14:47
|
> By the way, I see your development blog have more features (comment, > tag) than wikipp; or I can enable wikipp as a blog? No wikipp and the blog are different applications > or you will > develop another blog for CppCMS 1.x.x? I need to port my CppCMS 0.0.x based blog to CppCMS 1.x.x, the problem that the blog is so old and was written in days when CppCMS hadn't have template inheritance and even forms support, so it is not so trivial to do this. So it is the question of time (that I have not so much) > > -aris > Artyom |
From: Aris S. <ari...@gm...> - 2010-12-14 15:09:29
|
Sorry, I didn't know about that. By the way, I see your development blog have more features (comment, tag) than wikipp; or I can enable wikipp as a blog? or you will develop another blog for CppCMS 1.x.x? -aris |
From: Artyom <art...@ya...> - 2010-12-14 14:13:47
|
Hi, - WikiPP from trunk requires: CppCMS 0.0.x and DbiXX - WikiPP from this branch: https://cppcms.svn.sourceforge.net/svnroot/cppcms/wikipp/branches/for_cppcms_v100 Uses CppCMS 1.x.x and CppDB. You are compiling trunk version of wikipp with CppCMS 1.x.x and it does not work. Artyom ----- Original Message ---- > From: Aris Setyawan <ari...@gm...> > To: cpp...@li... > Sent: Tue, December 14, 2010 3:43:07 PM > Subject: [Cppcms-users] error building wikipp > > hi, > > I try to use wikipp and compile it. There were numerous error around > template syntax. I attach it. > > Note: I use libcppcms compiled from trunk, and latest version of dbixx > |
From: Aris S. <ari...@gm...> - 2010-12-14 13:49:26
|
hi, I try to use wikipp and compile it. There were numerous error around template syntax. I attach it. Note: I use libcppcms compiled from trunk, and latest version of dbixx |
From: Artyom <art...@ya...> - 2010-12-14 07:41:20
|
Thanks, Fixed in both Boost.Locale and CppCMS, take latest trunk. Note: this was indeed bug in test rather then the bug in implementation itself. Artyom ----- Original Message ---- > From: Aris Setyawan <ari...@gm...> > To: cpp...@li... > Sent: Tue, December 14, 2010 12:04:49 AM > Subject: Re: [Cppcms-users] error checkout, make, and make test cppcms >framework > > On Mon, Dec 13, 2010 at 9:29 PM, Artyom <art...@ya...> wrote: > > Ok I see thanks. > > > > Can you please do following: > > > > > > In file booster/lib/locale/test/test_std_formatting.cpp > > add between lines 339 and 340 > > > > ss << boost::locale::as::number << 12345.45; > > TEST(ss.str() == "12 345,45"); > > > > The command: > > > > std::cerr << "[" << ss.str() << "]" << std::endl. > > > > So it would look like > > > > ss << boost::locale::as::number << 12345.45; > > std::cerr << "[" << ss.str() << "]" << std::endl. > > TEST(ss.str() == "12 345,45"); > > > > In build directory run make and then: > > > > ./test_std_formatting >report.txt > did you mean ./test_locale_std_formatting >report.txt? > > > > > And send me this file (report.txt)? > I attach it and there were some outputs. here: > [12345,45] > Error in line:341 ss.str() == "12 345,45" > |
From: Aris S. <ari...@gm...> - 2010-12-13 22:04:55
|
On Mon, Dec 13, 2010 at 9:29 PM, Artyom <art...@ya...> wrote: > Ok I see thanks. > > Can you please do following: > > > In file booster/lib/locale/test/test_std_formatting.cpp > add between lines 339 and 340 > > ss << boost::locale::as::number << 12345.45; > TEST(ss.str() == "12 345,45"); > > The command: > > std::cerr << "[" << ss.str() << "]" << std::endl. > > So it would look like > > ss << boost::locale::as::number << 12345.45; > std::cerr << "[" << ss.str() << "]" << std::endl. > TEST(ss.str() == "12 345,45"); > > In build directory run make and then: > > ./test_std_formatting >report.txt did you mean ./test_locale_std_formatting >report.txt? > > And send me this file (report.txt)? I attach it and there were some outputs. here: [12345,45] Error in line:341 ss.str() == "12 345,45" |
From: Artyom <art...@ya...> - 2010-12-13 20:58:31
|
Hello All, Today two SQL Connectivity libraries were released. 1. Released first version 0.0.1 of CppDB library - new powerful SQL Connectivity library written in C++. 2. Released updated version 0.0.4 of DbiXX - libdbi wrapper. It was also deprecated in favor of CppDB. It would be continued to be updated with bug fixed and probably small features, but the support will be discontinued withing a year or two, depending on the users needs. Downloads are available in usual place: https://sourceforge.net/projects/cppcms/files/ Documentation can be found at: http://art-blog.no-ip.info/sql/ or http://cppcms.sourcefogre.net/sql/cppdb/ http://cppcms.sourcefogre.net/sql/dbixx/ For more information read: http://art-blog.no-ip.info/cppcms/blog/post/70 Regards, Artyom |
From: Artyom <art...@ya...> - 2010-12-13 20:58:04
|
Hello All, Today two SQL Connectivity libraries were released. 1. Released first version 0.0.1 of CppDB library - new powerful SQL Connectivity library written in C++. 2. Released updated version 0.0.4 of DbiXX - libdbi wrapper. It was also deprecated in favor of CppDB. It would be continued to be updated with bug fixed and probably small features, but the support will be discontinued withing a year or two, depending on the users needs. Downloads are available in usual place: https://sourceforge.net/projects/cppcms/files/ Documentation can be found at: http://art-blog.no-ip.info/sql/ or http://cppcms.sourcefogre.net/sql/cppdb/ http://cppcms.sourcefogre.net/sql/dbixx/ For more information read: http://art-blog.no-ip.info/cppcms/blog/post/70 Regards, Artyom |