cppcms-users Mailing List for CppCMS C++ Web Framework (Page 68)
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-11-16 13:56:12
|
http://blog.cppcms.com/post/112 Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Artyom B. <art...@ya...> - 2012-11-15 18:52:16
|
>________________________________ > From: Dietrich Müller <die...@gm...> >To: cpp...@li... >Sent: Thursday, November 15, 2012 3:19 PM >Subject: [Cppcms-users] Implementing UDP Support > > >Hey, > >I think of changing my TCP code to UDP due to some performance considerations. > If you don't care about loosing or reordering of packets it is fine, other\ than that there is no much advantage of UDP over TCP in real life. >I saw in the tasklist for the next release that there will be a UDP socket. >How far is the development currently? It is still in task list :-) In any case if you need to coordinate some code that uses UDP into event loop it is not hard at all. Technically there is no problems to use UDP with booster::aio but you need to work with sockets directly + basic_io_device http://cppcms.com/cppcms_ref/1.0.2/classbooster_1_1aio_1_1basic__io__device.html But you will need to create file descriptor on your own and send/recive on your own. >Do you use the sourceforge repository as your development trunk, or do you also maintain a private repository? I use SF repository. http://cppcms.com/wikipp/en/page/cppcms_1x_build#Getting.The.Sources >Sincerely > Regards Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Dietrich M. <die...@gm...> - 2012-11-15 13:19:51
|
Hey, I think of changing my TCP code to UDP due to some performance considerations. I saw in the tasklist for the next release that there will be a UDP socket. How far is the development currently? Do you use the sourceforge repository as your development trunk, or do you also maintain a private repository? Sincerely |
From: Artyom B. <art...@ya...> - 2012-11-14 12:39:18
|
Do you use latest version? http://cppcms.com/sql/cppdb/changelog.html There are some sqlite3 related changed that changed behavior of strings that exited the scope. Also in general the strings values (reference to them) should remain valid until the statement is executed/queried. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: SIMON Allan <All...@su...> >To: "cpp...@li..." <cpp...@li...> >Sent: Wednesday, November 14, 2012 12:33 PM >Subject: [Cppcms-users] cppdb , weird data corruption when using cppms::util::md5hex in cppdb::statement::bind > > > >Hello > >I've met a quiet weird problem > >When trying to execute the code below, that simply insert some data in a Sqlite3 database, the data inserted are corrupted >however if I put first the result of md5hex in a const string and then bind with this string, the data corruption does not appear > > >here is the code > > ---------------------------- >#include <cppdb/frontend.h> >#include <cppcms/util.h> >#include <iostream> >#include <booster/posix_time.h> > > >int main() >{ > > cppdb::session sql("sqlite3:db=toto.db"); > cppdb::statement addUser = sql.prepare( > "INSERT INTO users(username, password, email, since)" > "VALUES(?,?,?,?)" > ); > > > const std::string login = "bbbb"; > std::string pass = "toto"; > std::string email = "023...@su..."; > > addUser.bind(login); > addUser.bind( > cppcms::util::md5hex(pass) > ); > std::cout << cppcms::util::md5hex(pass) << std::endl; > addUser.bind(email); > addUser.bind( > booster::ptime::now().get_seconds() > ); > > addUser.exec(); > addUser.reset(); > >} >------------------------------ > >here is the dump of the database > >CREATE TABLE users ( > "id" integer primary key autoincrement not null , > "username" text not null unique, -- his nickname > "email" text not null unique, -- his email address > "image" text not null default "unknown" , -- his personnal image > "password" text not null, -- his password hashed > "since" integer not null, -- his registering date > "homepage" text default "", -- his personnal webpage/website > "description" text default "" -- his self-written description > ); >INSERT INTO "users" VALUES(1,'toto','12...@su...','unknown','23...@su...?ab494817525c6',1352888183,'',''); > > >As you can see the password's hash is mixed with the email field, by doing the test several time, sometimes the hash is mixed with other data (the username for example) > >I've compiled with this command > >clang++ main.cpp -lcppdb -lcppcms -lbooster > >Thanks for your help > > > > >Regards, > >Allan SIMON >Tatoeba Administrator (Sysko) > >------------------------------------------------------------------------------ >Monitor your physical, virtual and cloud infrastructure from a single >web console. Get in-depth insight into apps, servers, databases, vmware, >SAP, cloud infrastructure, etc. Download 30-day Free Trial. >Pricing starts from $795 for 25 servers or applications! >http://p.sf.net/sfu/zoho_dev2dev_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: SIMON A. <All...@su...> - 2012-11-14 10:49:21
|
Hello I've met a quiet weird problem When trying to execute the code below, that simply insert some data in a Sqlite3 database, the data inserted are corrupted however if I put first the result of md5hex in a const string and then bind with this string, the data corruption does not appear here is the code ---------------------------- #include <cppdb/frontend.h> #include <cppcms/util.h> #include <iostream> #include <booster/posix_time.h> int main() { cppdb::session sql("sqlite3:db=toto.db"); cppdb::statement addUser = sql.prepare( "INSERT INTO users(username, password, email, since)" "VALUES(?,?,?,?)" ); const std::string login = "bbbb"; std::string pass = "toto"; std::string email = "023...@su..."; addUser.bind(login); addUser.bind( cppcms::util::md5hex(pass) ); std::cout << cppcms::util::md5hex(pass) << std::endl; addUser.bind(email); addUser.bind( booster::ptime::now().get_seconds() ); addUser.exec(); addUser.reset(); } ------------------------------ here is the dump of the database CREATE TABLE users ( "id" integer primary key autoincrement not null , "username" text not null unique, -- his nickname "email" text not null unique, -- his email address "image" text not null default "unknown" , -- his personnal image "password" text not null, -- his password hashed "since" integer not null, -- his registering date "homepage" text default "", -- his personnal webpage/website "description" text default "" -- his self-written description ); INSERT INTO "users" VALUES(1,'toto','12...@su...','unknown','23...@su...?ab494817525c6',1352888183,'',''); As you can see the password's hash is mixed with the email field, by doing the test several time, sometimes the hash is mixed with other data (the username for example) I've compiled with this command clang++ main.cpp -lcppdb -lcppcms -lbooster Thanks for your help Regards, Allan SIMON Tatoeba Administrator (Sysko) |
From: SIMON A. <All...@su...> - 2012-11-14 10:34:53
|
Hello Indeed I didn't notice I was not using the last version. It's fine now. Regards, Allan SIMON Tatoeba Administrator (Sysko) ________________________________ De : Artyom Beilis [art...@ya...] Date d'envoi : dimanche 11 novembre 2012 08:06 À : cpp...@li... Objet : Re: [Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and application with Are you using latest version of CppCMS 1.0.2, because it was fixed in there http://cppcms.com/wikipp/en/page/releases_1x#Version.1.0.2 If it is the latest version what is the content of the cppcms/config.h where CPPCMS_TYPEOF is defined? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ________________________________ From: SIMON Allan <All...@su...> To: "cpp...@li..." <cpp...@li...> Sent: Sunday, November 11, 2012 8:12 AM Subject: [Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and application with Hello Basically if I compile cppcms without the -std=C++11 options and after I compile an application that use a foreach in the templates (which will generate a CPPCMS_TYPEOF) with -std=C++11 I will get this kind of errors (if I compile both with the -std=c++11 options i get no problems) tatowiki/app/src/views/webs/history/all_versions_of.tmpl:11:9: error: use of undeclared identifier 'typeof' for(CPPCMS_TYPEOF((content.changes).begin()) change_ptr=(content.changes).begin(),change_ptr_end=(content.changes).end();change_ptr!=change_ptr_end;++change_ptr) { ^ /usr/local/include/cppcms/base_view.h:67:27: note: expanded from: # define CPPCMS_TYPEOF(x) typeof(x) I think it comes from the fact that the decision on what to map CPPCMS_TYPEOF is made during the compilation of cppcms https://github.com/allan-simon/tatowiki for example fails like described below (if you need some code to test it) Regards, Allan SIMON Tatoeba.org<http://tatoeba.org/> Administrator (Sysko) ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Cppcms-users mailing list Cpp...@li...<mailto:Cpp...@li...> https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Vizcayno <viz...@gm...> - 2012-11-12 19:12:53
|
I discovered a new site about C++ standard C++ (http://isocpp.org) There is a category in that site called Product News, I would like to see your product there. It would be a good accolade to your nice product. Regards. |
From: Shiv S. D. <shi...@gm...> - 2012-11-12 13:41:46
|
Can I send working modules to list and you put them in repos n contrib section? At the moment I am working on my Q&A system so eventually I will be writing and testing these modules which I have mentioned. For example, I have written a simple trivial dbpool for hypertable which can at least be used as boilerplate. On Mon, Nov 12, 2012 at 5:58 PM, Artyom Beilis <art...@ya...> wrote: > This kind of stuff goes to contrib section in the CppCMS projects source > code > > In the trunk you can already find a code for recaptcha: > > > http://svn.code.sf.net/p/cppcms/code/framework/trunk/contrib/server_side/recaptcha/ > > Also sending an e-mail can be easily done using libcurl. > > In any case, if you have stuff like this, feel free to share it under > permissive license (MIT/Boost) and all good stuff will go to contrib > section. > > :-) > > > > 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: cpp...@li... > >Sent: Monday, November 12, 2012 2:02 PM > >Subject: [Cppcms-users] Utilities > > > > > >Hi, > > > >I think it would be a good idea to include utilities like email may be > mimetic can be used, google like sites auth perhaps using opekele for > OpenID. Captcha support should also be considered. > > > >This is because so that not everyone has to reinvent the wheel and focus > on core logic. > > > >-- > >Best regards, > >Shiv Shankar Dayal > > > > >------------------------------------------------------------------------------ > >Everyone hates slow websites. So do we. > >Make your web apps faster with AppDynamics > >Download AppDynamics Lite for free today: > >http://p.sf.net/sfu/appdyn_d2d_nov > >_______________________________________________ > >Cppcms-users mailing list > >Cpp...@li... > >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Best regards, Shiv Shankar Dayal |
From: Artyom B. <art...@ya...> - 2012-11-12 12:28:50
|
This kind of stuff goes to contrib section in the CppCMS projects source code In the trunk you can already find a code for recaptcha: http://svn.code.sf.net/p/cppcms/code/framework/trunk/contrib/server_side/recaptcha/ Also sending an e-mail can be easily done using libcurl. In any case, if you have stuff like this, feel free to share it under permissive license (MIT/Boost) and all good stuff will go to contrib section. :-) 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: cpp...@li... >Sent: Monday, November 12, 2012 2:02 PM >Subject: [Cppcms-users] Utilities > > >Hi, > >I think it would be a good idea to include utilities like email may be mimetic can be used, google like sites auth perhaps using opekele for OpenID. Captcha support should also be considered. > >This is because so that not everyone has to reinvent the wheel and focus on core logic. > >-- >Best regards, >Shiv Shankar Dayal > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Shiv S. D. <shi...@gm...> - 2012-11-12 12:02:27
|
Hi, I think it would be a good idea to include utilities like email may be mimetic can be used, google like sites auth perhaps using opekele for OpenID. Captcha support should also be considered. This is because so that not everyone has to reinvent the wheel and focus on core logic. -- Best regards, Shiv Shankar Dayal |
From: Artyom B. <art...@ya...> - 2012-11-11 08:06:44
|
Are you using latest version of CppCMS 1.0.2, because it was fixed in there http://cppcms.com/wikipp/en/page/releases_1x#Version.1.0.2 If it is the latest version what is the content of the cppcms/config.h where CPPCMS_TYPEOF is defined? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: SIMON Allan <All...@su...> >To: "cpp...@li..." <cpp...@li...> >Sent: Sunday, November 11, 2012 8:12 AM >Subject: [Cppcms-users] Problems with CPPCMS_TYPEOF when framework compiled without c++11 support and application with > > > >Hello > >Basically if I compile cppcms without the -std=C++11 options and after I compile an application that use a foreach in the templates (which will generate a CPPCMS_TYPEOF) with -std=C++11 I will get this kind of errors (if I compile both with the -std=c++11 options i get no problems) > > >tatowiki/app/src/views/webs/history/all_versions_of.tmpl:11:9: error: use of undeclared identifier 'typeof' > for(CPPCMS_TYPEOF((content.changes).begin()) change_ptr=(content.changes).begin(),change_ptr_end=(content.changes).end();change_ptr!=change_ptr_end;++change_ptr) { > ^ >/usr/local/include/cppcms/base_view.h:67:27: note: expanded from: ># define CPPCMS_TYPEOF(x) typeof(x) > > >I think it comes from the fact that the decision on what to map CPPCMS_TYPEOF is made during the compilation of cppcms > > >https://github.com/allan-simon/tatowiki for example fails like described below (if you need some code to test it) > > > > >Regards, > >Allan SIMON >Tatoeba.org Administrator (Sysko) > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: SIMON A. <All...@su...> - 2012-11-11 06:29:10
|
Hello Basically if I compile cppcms without the -std=C++11 options and after I compile an application that use a foreach in the templates (which will generate a CPPCMS_TYPEOF) with -std=C++11 I will get this kind of errors (if I compile both with the -std=c++11 options i get no problems) tatowiki/app/src/views/webs/history/all_versions_of.tmpl:11:9: error: use of undeclared identifier 'typeof' for(CPPCMS_TYPEOF((content.changes).begin()) change_ptr=(content.changes).begin(),change_ptr_end=(content.changes).end();change_ptr!=change_ptr_end;++change_ptr) { ^ /usr/local/include/cppcms/base_view.h:67:27: note: expanded from: # define CPPCMS_TYPEOF(x) typeof(x) I think it comes from the fact that the decision on what to map CPPCMS_TYPEOF is made during the compilation of cppcms https://github.com/allan-simon/tatowiki for example fails like described below (if you need some code to test it) Regards, Allan SIMON Tatoeba.org Administrator (Sysko) |
From: sergey l. <ccp...@gm...> - 2012-11-09 16:14:14
|
Hi All! The future to remove white spaces seems helpful for me. Artyom, I like your suggested functionality, but I don't have enough experience yet to implement it. On Fri, Nov 9, 2012 at 7:15 PM, Artyom Beilis <art...@ya...> wrote: > I thought about adding some kind of special switch like > > <% autotrim (on|off|empty|nl) %> > > Where > > on - trims all wite space from the text spegments > off - uses as today > empty - remove blocks that consist of WS only > nl - trim up to first new line including for stuff like > <% template render() %> > <!DOCTYPE html> > > to remove leading white space and new line. > > Volunteers to implement? > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Lee Elenbaas <lee...@gm...> > *To:* cpp...@li... > *Sent:* Thursday, November 8, 2012 11:33 PM > *Subject:* Re: [Cppcms-users] No "\n" on compiled templates > > I wonder why you would want something like this, and the only option i > have in mind is to have the app deliver a "minified" html output to the > clients. > sadly introducing something like this into the template mechanism can > break the ability to render different content types using the same > mechanism (consider an app that render html responses, but also uses the > same template mechanism to generate text only emails (where \n are > important) > > i think that the correct way to do it is to provide some way to install a > filter on the output stream - so it will skip over the characters that can > be minified > > > On Thu, Nov 8, 2012 at 2:46 PM, Daniel Rios <dan...@li...> wrote: > > Hello there ! There's a way to compile a template using without the "\n" > character? > > Thanks ! > > Daniel > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > -- > lee > Lee Elenbaas > lee...@gm... > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Artyom B. <art...@ya...> - 2012-11-09 15:17:30
|
>________________________________ > From: Lee Elenbaas <lee...@gm...> >To: cpp...@li... >Sent: Thursday, November 8, 2012 11:33 PM >Subject: Re: [Cppcms-users] No "\n" on compiled templates > > >I wonder why you would want something like this, and the only option i have in mind is to have the app deliver a "minified" html output to the clients. >sadly introducing something like this into the template mechanism can break the ability to render different content types using the same mechanism (consider an app that render html responses, but also uses the same template mechanism to generate text only emails (where \n are important) > Also note that the best minification already exists - gzip compression enabled by default. The NL removal is mostly to make HTML more nice looking. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/> |
From: Artyom B. <art...@ya...> - 2012-11-09 15:15:13
|
I thought about adding some kind of special switch like <% autotrim (on|off|empty|nl) %> Where on - trims all wite space from the text spegments off - uses as today empty - remove blocks that consist of WS only nl - trim up to first new line including for stuff like <% template render() %> <!DOCTYPE html> to remove leading white space and new line. Volunteers to implement? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Lee Elenbaas <lee...@gm...> >To: cpp...@li... >Sent: Thursday, November 8, 2012 11:33 PM >Subject: Re: [Cppcms-users] No "\n" on compiled templates > > >I wonder why you would want something like this, and the only option i have in mind is to have the app deliver a "minified" html output to the clients. >sadly introducing something like this into the template mechanism can break the ability to render different content types using the same mechanism (consider an app that render html responses, but also uses the same template mechanism to generate text only emails (where \n are important) > > >i think that the correct way to do it is to provide some way to install a filter on the output stream - so it will skip over the characters that can be minified > > > >On Thu, Nov 8, 2012 at 2:46 PM, Daniel Rios <dan...@li...> wrote: > >Hello there ! There's a way to compile a template using without the "\n" character? >> >>Thanks ! >> >>Daniel >> >>------------------------------------------------------------------------------ >>Everyone hates slow websites. So do we. >>Make your web apps faster with AppDynamics >>Download AppDynamics Lite for free today: >>http://p.sf.net/sfu/appdyn_d2d_nov >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > >-- >-- >lee >Lee Elenbaas >lee...@gm... > > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Lee E. <lee...@gm...> - 2012-11-08 21:34:01
|
I wonder why you would want something like this, and the only option i have in mind is to have the app deliver a "minified" html output to the clients. sadly introducing something like this into the template mechanism can break the ability to render different content types using the same mechanism (consider an app that render html responses, but also uses the same template mechanism to generate text only emails (where \n are important) i think that the correct way to do it is to provide some way to install a filter on the output stream - so it will skip over the characters that can be minified On Thu, Nov 8, 2012 at 2:46 PM, Daniel Rios <dan...@li...> wrote: > Hello there ! There's a way to compile a template using without the "\n" > character? > > Thanks ! > > Daniel > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |
From: Artyom B. <art...@ya...> - 2012-11-08 13:24:28
|
Currently no Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Daniel Rios <dan...@li...> >To: cppcms <cpp...@li...> >Sent: Thursday, November 8, 2012 2:46 PM >Subject: [Cppcms-users] No "\n" on compiled templates > > > >Hello there ! There's a way to compile a template using without the "\n" character? > >Thanks ! > >Daniel > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Daniel R. <dan...@li...> - 2012-11-08 12:46:59
|
Hello there ! There's a way to compile a template using without the "\n" character? Thanks ! Daniel |
From: Shiv S. D. <shi...@gm...> - 2012-11-04 11:42:03
|
Thanks Artyom. Too bad I should have searched documentation for process pool. I knew about thread pool but not about process pool. Thanks a lot for all the help. On Sun, Nov 4, 2012 at 4:30 PM, Artyom Beilis <art...@ya...> wrote: > > > > >________________________________ > > From: Shiv Shankar Dayal <shi...@gm...> > >To: cpp...@li... > >Sent: Sunday, November 4, 2012 10:56 AM > >Subject: [Cppcms-users] Max processes on cppcms lighttpd > > > > > >Hi, > > > >The configuration says max-procs should be one. Why is this restriction? > > > > CppCMS provides its own thread pool and process pool. That allows tighter > integration between threads/processes for stuff like sharing cache > and sessions. > > > Second point is how is one supposed to run multiple processes and load > balance. > > Is it mandatory to run second process on another machine and then load > balance. > > If such is the case how can one achieve vertical scaling. > > No, it is not mandatory, and of course you can easily do vertical scaling. > > However you need to use cppcms_scale services for sharing cache that would > be shared using network across different nodes. > > Same for session management. Of course if you use, for example, > shared file system, client side session storage or database for session > storage you don't need cppcms_scale. > > So as long as you don't scale to multiple network nodes it is better > to use CppCMS with its own process and thread pool rather than > > letting lighttpd to handle it for you. > > > > > >-- > >Best regards, > >Shiv Shankar Dayal > > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Best regards, Shiv Shankar Dayal |
From: Artyom B. <art...@ya...> - 2012-11-04 11:00:53
|
>________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: cpp...@li... >Sent: Sunday, November 4, 2012 10:56 AM >Subject: [Cppcms-users] Max processes on cppcms lighttpd > > >Hi, > >The configuration says max-procs should be one. Why is this restriction? CppCMS provides its own thread pool and process pool. That allows tighter integration between threads/processes for stuff like sharing cache and sessions. > Second point is how is one supposed to run multiple processes and load balance. > Is it mandatory to run second process on another machine and then load balance. > If such is the case how can one achieve vertical scaling. No, it is not mandatory, and of course you can easily do vertical scaling. However you need to use cppcms_scale services for sharing cache that would be shared using network across different nodes. Same for session management. Of course if you use, for example, shared file system, client side session storage or database for session storage you don't need cppcms_scale. So as long as you don't scale to multiple network nodes it is better to use CppCMS with its own process and thread pool rather than letting lighttpd to handle it for you. > >-- >Best regards, >Shiv Shankar Dayal > Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Shiv S. D. <shi...@gm...> - 2012-11-04 08:57:01
|
Hi, The configuration says max-procs should be one. Why is this restriction? Second point is how is one supposed to run multiple processes and load balance. Is it mandatory to run second process on another machine and then load balance. If such is the case how can one achieve vertical scaling. -- Best regards, Shiv Shankar Dayal |
From: Pinakee B. <pi...@vv...> - 2012-11-01 16:44:19
|
Hi, Thanks for the prompt responses. The tutorial worked for me now. Thanks, Pinakee From: 陈抒 [mailto:csf...@gm...] Sent: 01 November 2012 20:35 To: cpp...@li... Subject: Re: [Cppcms-users] Hello World and configuration Below is from one of my articles: { "service" : { "ip":"0.0.0.0", "api" : "http", "port" : 8081 }, "http" : { "script_names" : ["/cppcms"] } } http://blog.csdn.net/sheismylife/article/details/7648106 This article describes how to upload one file to web application based on CppCMS. Ignore the Chinese words, just have a look at the codes, directory tree and CMake configuration. 陈抒 Best regards http://blog.csdn.net/sheismylife On Thu, Nov 1, 2012 at 10:18 PM, Shiv Shankar Dayal <shi...@gm...> wrote: Hope http://cppcms.com/wikipp/en/page/cppcms_1x_config#service.ip helps. On Thu, Nov 1, 2012 at 7:28 PM, Pinakee Biswas <pi...@vv...> wrote: Hi, I have installed cppcms and trying out the tutorials but having some basic issues: I have created the “hello world” code and the configuration file. But since I work from my laptop accessing the server, I cannot use localhost to access the URL. The hello application needs to bind to the ip address but I am not able to figure out how to configure the config.js file for that. Is there any document specifying all the possible parameters for the config.js? I have been searching the site but couldn’t locate anything yet. Looking forward to your response and support… Thanks, Pinakee ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Best regards, Shiv Shankar Dayal ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: 陈抒 <csf...@gm...> - 2012-11-01 15:05:23
|
Below is from one of my articles: { "service" : { "ip":"0.0.0.0", "api" : "http", "port" : 8081 }, "http" : { "script_names" : ["/cppcms"] } } http://blog.csdn.net/sheismylife/article/details/7648106 This article describes how to upload one file to web application based on CppCMS. Ignore the Chinese words, just have a look at the codes, directory tree and CMake configuration. 陈抒 Best regards http://blog.csdn.net/sheismylife On Thu, Nov 1, 2012 at 10:18 PM, Shiv Shankar Dayal < shi...@gm...> wrote: > Hope http://cppcms.com/wikipp/en/page/cppcms_1x_config#service.ip helps. > > On Thu, Nov 1, 2012 at 7:28 PM, Pinakee Biswas <pi...@vv...>wrote: > >> Hi,**** >> >> ** ** >> >> I have installed cppcms and trying out the tutorials but having some >> basic issues:**** >> >> ** ** >> >> I have created the “hello world” code and the configuration file. But >> since I work from my laptop accessing the server, I cannot use localhost to >> access the URL. The hello application needs to bind to the ip address but I >> am not able to figure out how to configure the config.js file for that.** >> ** >> >> ** ** >> >> Is there any document specifying all the possible parameters for the >> config.js? I have been searching the site but couldn’t locate anything yet. >> **** >> >> ** ** >> >> Looking forward to your response and support…**** >> >> ** ** >> >> Thanks,**** >> >> Pinakee **** >> >> ** ** >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > -- > Best regards, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Shiv S. D. <shi...@gm...> - 2012-11-01 14:18:50
|
Hope http://cppcms.com/wikipp/en/page/cppcms_1x_config#service.ip helps. On Thu, Nov 1, 2012 at 7:28 PM, Pinakee Biswas <pi...@vv...>wrote: > Hi,**** > > ** ** > > I have installed cppcms and trying out the tutorials but having some basic > issues:**** > > ** ** > > I have created the “hello world” code and the configuration file. But > since I work from my laptop accessing the server, I cannot use localhost to > access the URL. The hello application needs to bind to the ip address but I > am not able to figure out how to configure the config.js file for that.*** > * > > ** ** > > Is there any document specifying all the possible parameters for the > config.js? I have been searching the site but couldn’t locate anything yet. > **** > > ** ** > > Looking forward to your response and support…**** > > ** ** > > Thanks,**** > > Pinakee **** > > ** ** > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Best regards, Shiv Shankar Dayal |
From: Pinakee B. <pi...@vv...> - 2012-11-01 13:58:42
|
Hi, I have installed cppcms and trying out the tutorials but having some basic issues: I have created the "hello world" code and the configuration file. But since I work from my laptop accessing the server, I cannot use localhost to access the URL. The hello application needs to bind to the ip address but I am not able to figure out how to configure the config.js file for that. Is there any document specifying all the possible parameters for the config.js? I have been searching the site but couldn't locate anything yet. Looking forward to your response and support. Thanks, Pinakee |