cppcms-users Mailing List for CppCMS C++ Web Framework (Page 26)
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: Marcel H. <ke...@co...> - 2015-10-26 11:45:20
|
http://lmgtfy.com/?q=cppcms+compile+windows Greetings On 26.10.2015 10:41, mawan sugiyanto wrote: > Dear All > > Are there any tutorial to compile cppcms and cppdb on Windows? > > Thanks > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: mawan s. <ma...@gm...> - 2015-10-26 09:42:44
|
Dear All Are there any tutorial to compile cppcms and cppdb on Windows? Thanks |
From: mawan s. <ma...@gm...> - 2015-10-21 08:54:39
|
I am sorry Artyom , thankyou for your warning. I am not good in english and sorry. On Wed, Oct 21, 2015 at 1:27 PM, Artyom Beilis <art...@ya...> wrote: > >Dear All > > > > > > > I currently know that a template views > > are a class that will be created by > > template tools. So it it is not related with /data/xxx.h > > > > > > If you are relating to any Data for XXX > it really depends on your tools... > > What template do you use for your tools? > If you use good templates for your tools > you'll be able to create very nice views > in its own class. > > But it really depends on your tools and > the data you have... :-) > > > ...... > > On more serious note - do you even understand > that what you had written makes no sense whatsoever? > It isn't even a question... > > Are you using automated translation tools to > ask your questions there? > > Note this mailing list has purpose to get > a help and support AFTER you actually > attempted to solve the problem on your > own read some manuals and understood > you need help to go further. > > I really hate this but I'll have to address > you to the following reading: > > http://www.catb.org/esr/faqs/smart-questions.html > > Regards, > Artyom Beilis > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2015-10-21 06:30:29
|
>Dear All > > > I currently know that a template views > are a class that will be created by > template tools. So it it is not related with /data/xxx.h > > If you are relating to any Data for XXX it really depends on your tools... What template do you use for your tools? If you use good templates for your tools you'll be able to create very nice views in its own class. But it really depends on your tools and the data you have... :-) ...... On more serious note - do you even understand that what you had written makes no sense whatsoever? It isn't even a question... Are you using automated translation tools to ask your questions there? Note this mailing list has purpose to get a help and support AFTER you actually attempted to solve the problem on your own read some manuals and understood you need help to go further. I really hate this but I'll have to address you to the following reading: http://www.catb.org/esr/faqs/smart-questions.html Regards, Artyom Beilis |
From: mawan s. <ma...@gm...> - 2015-10-20 09:04:01
|
Dear All I currently know that a template views are a class that will be created by template tools. So it it is not related with /data/xxx.h :) Thanks |
From: Neel B. <nee...@gm...> - 2015-10-09 11:50:28
|
Well this is an executable redirecting *some* requests to some other components and performing some other computation. Actually this not really a reverse proxy component. It is serving as a rest server which interacts with LibVirt, however it keeps some other components acknowledged through their REST services. But this is not the only case, there may be many more examples where a CppCMS application may need to act as a REST client e.g. OAuth or Weather service etc. What I was thinking of is, if there already exist a request and response class along with a io_service loop why can't with reuse then to create a REST client ? On Fri, Oct 9, 2015 at 3:18 PM, mawan sugiyanto <ma...@gm...> wrote: > is this library ? > > https://github.com/mrtazz/restclient-cpp > > > On Fri, Oct 9, 2015 at 4:07 PM, Neel Basu <nee...@gm...> wrote: > >> I am trying to proxy some http requests to another server. So I need an >> HTTP client class. I was trying to use cppcms::http::context` but for that >> I need connection which is in `impl`. But I hope it should not be hard to >> have an HTTP Client. >> >> So is there any way out ? or I need to use other libraries like curl for >> making http client separately ? >> >> Thank You. >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2015-10-09 11:21:04
|
Sorry Artyom , your message still in spam, so i late to read your response. I found application::init() method, this is virtual too. I think, i can to do chek with this method, but in this method , can i identify handler name? or assigned url mapping? and then will be compared to the db role. Thanks On Thu, Oct 8, 2015 at 6:06 PM, Artyom Beilis <art...@ya...> wrote: > Yes > > > http://cppcms.com/cppcms_ref/latest/classcppcms_1_1application.html#a8c884a9309d107237e8946446feba8f8 > > The application::main calls the dispatcher - it is virtual member > function. You can do global checks there and afterwards call the dispatcher > or original application::main > > Artyom > > ------------------------------ > *From:* mawan sugiyanto <ma...@gm...> > *To:* cpp...@li... > *Sent:* Thursday, October 8, 2015 1:47 PM > *Subject:* Re: [Cppcms-users] rbac and url > > Is there any method that called before execute handler ..? > > > > On Thu, Oct 8, 2015 at 5:42 PM, mawan sugiyanto <ma...@gm...> wrote: > > Dear All > > I want to build Role Base Action Control. In classic web, they use url > action (like handler in cppcms), and then control to user can or cannot do > the action. > > The problem > > I saw the source of cppcms use urldispatch::dispatch to run handler. Is > there any method that before url dispatched , it is not run the handler. So > i can control that user can run in next process or not based on information > during mapping url. > > Thankyou > > > Mawan > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2015-10-09 09:48:51
|
is this library ? https://github.com/mrtazz/restclient-cpp On Fri, Oct 9, 2015 at 4:07 PM, Neel Basu <nee...@gm...> wrote: > I am trying to proxy some http requests to another server. So I need an > HTTP client class. I was trying to use cppcms::http::context` but for that > I need connection which is in `impl`. But I hope it should not be hard to > have an HTTP Client. > > So is there any way out ? or I need to use other libraries like curl for > making http client separately ? > > Thank You. > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Marcel H. <ke...@co...> - 2015-10-09 09:32:10
|
Why not using a (reverse-)proxy server that is made for that, like nginx? |
From: Neel B. <nee...@gm...> - 2015-10-09 09:08:08
|
I am trying to proxy some http requests to another server. So I need an HTTP client class. I was trying to use cppcms::http::context` but for that I need connection which is in `impl`. But I hope it should not be hard to have an HTTP Client. So is there any way out ? or I need to use other libraries like curl for making http client separately ? Thank You. |
From: Artyom B. <art...@ya...> - 2015-10-08 11:06:31
|
Yes http://cppcms.com/cppcms_ref/latest/classcppcms_1_1application.html#a8c884a9309d107237e8946446feba8f8 The application::main calls the dispatcher - it is virtual member function. You can do global checks there and afterwards call the dispatcher or original application::main Artyom From: mawan sugiyanto <ma...@gm...> To: cpp...@li... Sent: Thursday, October 8, 2015 1:47 PM Subject: Re: [Cppcms-users] rbac and url Is there any method that called before execute handler ..? On Thu, Oct 8, 2015 at 5:42 PM, mawan sugiyanto <ma...@gm...> wrote: Dear All I want to build Role Base Action Control. In classic web, they use url action (like handler in cppcms), and then control to user can or cannot do the action. The problem I saw the source of cppcms use urldispatch::dispatch to run handler. Is there any method that before url dispatched , it is not run the handler. So i can control that user can run in next process or not based on information during mapping url. Thankyou Mawan ------------------------------------------------------------------------------ _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: mawan s. <ma...@gm...> - 2015-10-08 10:48:26
|
Is there any method that called before execute handler ..? On Thu, Oct 8, 2015 at 5:42 PM, mawan sugiyanto <ma...@gm...> wrote: > Dear All > > I want to build Role Base Action Control. In classic web, they use url > action (like handler in cppcms), and then control to user can or cannot do > the action. > > The problem > > I saw the source of cppcms use urldispatch::dispatch to run handler. Is > there any method that before url dispatched , it is not run the handler. So > i can control that user can run in next process or not based on information > during mapping url. > > Thankyou > > > Mawan > |
From: mawan s. <ma...@gm...> - 2015-10-08 10:43:14
|
Dear All I want to build Role Base Action Control. In classic web, they use url action (like handler in cppcms), and then control to user can or cannot do the action. The problem I saw the source of cppcms use urldispatch::dispatch to run handler. Is there any method that before url dispatched , it is not run the handler. So i can control that user can run in next process or not based on information during mapping url. Thankyou Mawan |
From: mawan s. <ma...@gm...> - 2015-10-08 04:20:09
|
Thanks Stanimir Can I convert as:date => to the variable .. not cout (streamable variable)? On Thu, Oct 8, 2015 at 10:27 AM, Stanimir Mladenov < sta...@zo...> wrote: > Check the documentation for boost::locale at > > http://www.boost.org/doc/libs/1_59_0/libs/locale/doc/html/dates_times_timezones.html > It is the same thing in booster, because the author Artyom did propose > boost::locale and was accepted in the boost library itself. > > There you'll find enough documentation to move you further. > > On Thu, Oct 8, 2015 at 6:05 AM, mawan sugiyanto <ma...@gm...> wrote: > > > > I want to create date time from string, for example input from form date > > time field. i currently work from srign and covert to integer year, > month , > > date, hour .. etc and use std:tm to reusable date time. > > Second, I want to converting from string date time from data base > > (2016-09-09 08:07:07) to date time , and to string date time. > > > > Is booster::locale can handle it? or should i use c++ std::tm and > > std:time_t? > > > > Thanks before .. > > Regards > > > > On Wed, Oct 7, 2015 at 6:11 PM, Artyom Beilis <art...@ya...> > wrote: > >> > >> Just to make an order... > >> > >> There is an integer POSIX time - time in seconds since Unix Epoch - it > is > >> returned by time(0) and booster::ptime::now() - with higher accuracy - > it is > >> the basic. > >> > >> There is a std::tm (http://en.cppreference.com/w/cpp/chrono/c/tm) that > can > >> represent local time or UTC time and coverted to/from using > >> booster::ptime::local_time/universal_time from integer representation > into > >> values lime tm_year, tm_hour etc. > >> similarly to localtime_r/gmtime_r and timegm/mktime but in cross > platform > >> manner, > >> > >> http://cppcms.com/cppcms_ref/latest/classbooster_1_1ptime.html > >> > >> cppdb uses std::tm as date-time representation, alternatively you can > also > >> encode date/time as ISO string the way you wish. > >> > >> boost::locale::as::*time* uses time representation is integer/floating > >> point number and formats it according to given > >> flags - it can use local time, utc time or whatever timezone you like > time > >> according to any format you specify > >> it is provided for human interface time formatting - according to your > >> locale i.e. 5/30/2015, 30/5/2015 or 2015年5月30日 > >> > >> Now which time do you need? > >> > >> Artyom Beilis > >> > >> ________________________________ > >> From: mawan sugiyanto <ma...@gm...> > >> To: cpp...@li... > >> Sent: Wednesday, October 7, 2015 1:15 PM > >> Subject: [Cppcms-users] booster::locale::as ... > >> > >> Dear All > >> > >> Can I use booster::locale::as ...... > >> > >> to covert pt time to variable? like string or intenger? > >> Many example use booster::locale::as ... output to the cout or > >> response().out() ... > >> there are no example to covert it to needed variable. > >> > >> > >> Thanks > >> > >> > >> Mawan > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Full-scale, agent-less Infrastructure Monitoring from a single dashboard > >> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > >> Physical-Virtual-Cloud Infrastructure monitoring from one console > >> Real user monitoring with APM Insights and performance trend reports > >> Learn More > >> http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > >> _______________________________________________ > >> Cppcms-users mailing list > >> Cpp...@li... > >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Full-scale, agent-less Infrastructure Monitoring from a single dashboard > >> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > >> Physical-Virtual-Cloud Infrastructure monitoring from one console > >> Real user monitoring with APM Insights and performance trend reports > >> Learn More > >> http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > >> _______________________________________________ > >> Cppcms-users mailing list > >> Cpp...@li... > >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > >> > > > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Stanimir M. <sta...@zo...> - 2015-10-08 03:28:20
|
Check the documentation for boost::locale at http://www.boost.org/doc/libs/1_59_0/libs/locale/doc/html/dates_times_timezones.html It is the same thing in booster, because the author Artyom did propose boost::locale and was accepted in the boost library itself. There you'll find enough documentation to move you further. On Thu, Oct 8, 2015 at 6:05 AM, mawan sugiyanto <ma...@gm...> wrote: > > I want to create date time from string, for example input from form date > time field. i currently work from srign and covert to integer year, month , > date, hour .. etc and use std:tm to reusable date time. > Second, I want to converting from string date time from data base > (2016-09-09 08:07:07) to date time , and to string date time. > > Is booster::locale can handle it? or should i use c++ std::tm and > std:time_t? > > Thanks before .. > Regards > > On Wed, Oct 7, 2015 at 6:11 PM, Artyom Beilis <art...@ya...> wrote: >> >> Just to make an order... >> >> There is an integer POSIX time - time in seconds since Unix Epoch - it is >> returned by time(0) and booster::ptime::now() - with higher accuracy - it is >> the basic. >> >> There is a std::tm (http://en.cppreference.com/w/cpp/chrono/c/tm) that can >> represent local time or UTC time and coverted to/from using >> booster::ptime::local_time/universal_time from integer representation into >> values lime tm_year, tm_hour etc. >> similarly to localtime_r/gmtime_r and timegm/mktime but in cross platform >> manner, >> >> http://cppcms.com/cppcms_ref/latest/classbooster_1_1ptime.html >> >> cppdb uses std::tm as date-time representation, alternatively you can also >> encode date/time as ISO string the way you wish. >> >> boost::locale::as::*time* uses time representation is integer/floating >> point number and formats it according to given >> flags - it can use local time, utc time or whatever timezone you like time >> according to any format you specify >> it is provided for human interface time formatting - according to your >> locale i.e. 5/30/2015, 30/5/2015 or 2015年5月30日 >> >> Now which time do you need? >> >> Artyom Beilis >> >> ________________________________ >> From: mawan sugiyanto <ma...@gm...> >> To: cpp...@li... >> Sent: Wednesday, October 7, 2015 1:15 PM >> Subject: [Cppcms-users] booster::locale::as ... >> >> Dear All >> >> Can I use booster::locale::as ...... >> >> to covert pt time to variable? like string or intenger? >> Many example use booster::locale::as ... output to the cout or >> response().out() ... >> there are no example to covert it to needed variable. >> >> >> Thanks >> >> >> Mawan >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Full-scale, agent-less Infrastructure Monitoring from a single dashboard >> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility >> Physical-Virtual-Cloud Infrastructure monitoring from one console >> Real user monitoring with APM Insights and performance trend reports >> Learn More >> http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Full-scale, agent-less Infrastructure Monitoring from a single dashboard >> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility >> Physical-Virtual-Cloud Infrastructure monitoring from one console >> Real user monitoring with APM Insights and performance trend reports >> Learn More >> http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: mawan s. <ma...@gm...> - 2015-10-08 03:06:01
|
I want to create date time from string, for example input from form date time field. i currently work from srign and covert to integer year, month , date, hour .. etc and use std:tm to reusable date time. Second, I want to converting from string date time from data base (2016-09-09 08:07:07) to date time , and to string date time. Is booster::locale can handle it? or should i use c++ std::tm and std:time_t? Thanks before .. Regards On Wed, Oct 7, 2015 at 6:11 PM, Artyom Beilis <art...@ya...> wrote: > Just to make an order... > > There is an integer POSIX time - time in seconds since Unix Epoch - it is > returned by time(0) and booster::ptime::now() - with higher accuracy - it > is the basic. > > There is a std::tm (http://en.cppreference.com/w/cpp/chrono/c/tm) that > can represent local time or UTC time and coverted to/from using > booster::ptime::local_time/universal_time from integer representation into > values lime tm_year, tm_hour etc. > similarly to localtime_r/gmtime_r and timegm/mktime but in cross platform > manner, > > http://cppcms.com/cppcms_ref/latest/classbooster_1_1ptime.html > > cppdb uses std::tm as date-time representation, alternatively you can also > encode date/time as ISO string the way you wish. > > boost::locale::as::*time* uses time representation is integer/floating > point number and formats it according to given > flags - it can use local time, utc time or whatever timezone you like time > according to any format you specify > it is provided for human interface time formatting - according to your > locale i.e. 5/30/2015, 30/5/2015 or 2015年5月30日 > > Now which time do you need? > > Artyom Beilis > > ------------------------------ > *From:* mawan sugiyanto <ma...@gm...> > *To:* cpp...@li... > *Sent:* Wednesday, October 7, 2015 1:15 PM > *Subject:* [Cppcms-users] booster::locale::as ... > > Dear All > > Can I use booster::locale::as ...... > > to covert pt time to variable? like string or intenger? > Many example use booster::locale::as ... output to the cout or > response().out() ... > there are no example to covert it to needed variable. > > > Thanks > > > Mawan > > > > > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More > http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More > http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: mawan s. <ma...@gm...> - 2015-10-08 02:52:59
|
Thankyou Stanimir, i have been marked that email to not smpam. On Wed, Oct 7, 2015 at 6:48 PM, Stanimir Mladenov < sta...@zo...> wrote: > Hello Mawan, > > It looks that the responses from Artyom Beilis go into your Spam > folder. This is just guessing, since for me, his emails are usually > moved to the spam. > > > On Wed, Oct 7, 2015 at 2:25 PM, mawan sugiyanto <ma...@gm...> wrote: > > finally i back to the classic c time function .. > > :( > > > > please help how to use booster for date time function manipulation. > > thanks > > > > > > On Wed, Oct 7, 2015 at 5:15 PM, mawan sugiyanto <ma...@gm...> > wrote: > >> > >> Dear All > >> > >> Can I use booster::locale::as ...... > >> > >> to covert pt time to variable? like string or intenger? > >> Many example use booster::locale::as ... output to the cout or > >> response().out() ... > >> there are no example to covert it to needed variable. > >> > >> > >> Thanks > >> > >> > >> Mawan > >> > >> > >> > > > > > > > ------------------------------------------------------------------------------ > > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > > Physical-Virtual-Cloud Infrastructure monitoring from one console > > Real user monitoring with APM Insights and performance trend reports > > Learn More > http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More > http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Stanimir M. <sta...@zo...> - 2015-10-07 12:42:50
|
Hello Mawan, It looks that the responses from Artyom Beilis go into your Spam folder. This is just guessing, since for me, his emails are usually moved to the spam. On Wed, Oct 7, 2015 at 2:25 PM, mawan sugiyanto <ma...@gm...> wrote: > finally i back to the classic c time function .. > :( > > please help how to use booster for date time function manipulation. > thanks > > > On Wed, Oct 7, 2015 at 5:15 PM, mawan sugiyanto <ma...@gm...> wrote: >> >> Dear All >> >> Can I use booster::locale::as ...... >> >> to covert pt time to variable? like string or intenger? >> Many example use booster::locale::as ... output to the cout or >> response().out() ... >> there are no example to covert it to needed variable. >> >> >> Thanks >> >> >> Mawan >> >> >> > > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: mawan s. <ma...@gm...> - 2015-10-07 11:26:25
|
finally i back to the classic c time function .. :( please help how to use booster for date time function manipulation. thanks On Wed, Oct 7, 2015 at 5:15 PM, mawan sugiyanto <ma...@gm...> wrote: > Dear All > > Can I use booster::locale::as ...... > > to covert pt time to variable? like string or intenger? > Many example use booster::locale::as ... output to the cout or > response().out() ... > there are no example to covert it to needed variable. > > > Thanks > > > Mawan > > > > |
From: Artyom B. <art...@ya...> - 2015-10-07 11:11:38
|
Just to make an order... There is an integer POSIX time - time in seconds since Unix Epoch - it is returned by time(0) and booster::ptime::now() - with higher accuracy - it is the basic. There is a std::tm (http://en.cppreference.com/w/cpp/chrono/c/tm) that can represent local time or UTC time and coverted to/from using booster::ptime::local_time/universal_time from integer representation into values lime tm_year, tm_hour etc.similarly to localtime_r/gmtime_r and timegm/mktime but in cross platform manner, http://cppcms.com/cppcms_ref/latest/classbooster_1_1ptime.html cppdb uses std::tm as date-time representation, alternatively you can also encode date/time as ISO string the way you wish. boost::locale::as::*time* uses time representation is integer/floating point number and formats it according to givenflags - it can use local time, utc time or whatever timezone you like time according to any format you specify it is provided for human interface time formatting - according to your locale i.e. 5/30/2015, 30/5/2015 or 2015年5月30日 Now which time do you need? Artyom Beilis From: mawan sugiyanto <ma...@gm...> To: cpp...@li... Sent: Wednesday, October 7, 2015 1:15 PM Subject: [Cppcms-users] booster::locale::as ... Dear All Can I use booster::locale::as ...... to covert pt time to variable? like string or intenger?Many example use booster::locale::as ... output to the cout or response().out() ...there are no example to covert it to needed variable. Thanks Mawan ------------------------------------------------------------------------------ Full-scale, agent-less Infrastructure Monitoring from a single dashboard Integrate with 40+ ManageEngine ITSM Solutions for complete visibility Physical-Virtual-Cloud Infrastructure monitoring from one console Real user monitoring with APM Insights and performance trend reports Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: mawan s. <ma...@gm...> - 2015-10-07 10:16:08
|
Dear All Can I use booster::locale::as ...... to covert pt time to variable? like string or intenger? Many example use booster::locale::as ... output to the cout or response().out() ... there are no example to covert it to needed variable. Thanks Mawan |
From: Marcel H. <ke...@co...> - 2015-10-07 08:10:52
|
Hey Prasad, http://lmgtfy.com/?q=cppcms+tutorial We are willing to help you on this mailing list as long as they are cppcms relevant questions not c++ or dbms specific ones. There are dozens of examples on the cppcms webpage and there are hundred of mails on this mailing list (to be more specific, there are 1936). There is even a whole folder in the svn tree with examples (and a webpage with explanations of course) http://lmgtfy.com/?q=cppcms+examples I hope this can help (both of) you. Regards, Marcel |
From: mawan s. <ma...@gm...> - 2015-10-07 02:24:42
|
i am waiting the response for learn too .. [newbie] On Wed, Oct 7, 2015 at 8:05 AM, Prasad J <jah...@re...> wrote: > Hi , > > I'm new to cppcms forum , am trying to run hello world app with templates > , I've build the app with make file. When trying to run with ./hello -c > config.js getting HTTP/1.0 200 OK instead of >>Hello<< Wolrd!!. Please > guide me what i'm missing. > > here is the make file. > > CXX=g++ > PYTHON=python > CXXFLAGS= -Wall -g > > INCLUDE=-I./ \ > -Ic:\cppcms-1.0.5 \ > -Ic:\cppcms-1.0.5\booster \ > -Ic:\cppcms-1.0.5\build \ > -Ic:\cppcms-1.0.5\build\booster \ > -Ic:\cppcms-1.0.5\cppcms > > > > LIBPATH = -Lc:\MinGW\lib > LIBS = -lcppcms -lbooster > TARGET=hello > > #SRC = ../ > OBJ=hello.o view.o > > all:$(TARGET) > > $(TARGET) : $(OBJ) > > $(CXX) $(CXXFLAGS) $(INCLUDE) $(OBJ) $(LIBPATH) $(LIBS) -o $@ > hello.o: hello.cpp > $(CXX) $(CXXFLAGS) $(INCLUDE) -c $< > view.o: view.cpp content.h > $(CXX) $(CXXFLAGS) $(INCLUDE) -c $< > view.cpp: view.tmpl > $(PYTHON) $(CPPCMS)/cppcms_tmpl_cc $< -o $@ > clean: > rm -rf *.o > rm -rf $(TARGET) > rm -rf view.cpp > > Thanks in advance. > > Prasad > > > <https://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?> > Get your own *FREE* website, *FREE* domain & *FREE* mobile app with > Company email. > *Know More >* > <http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host> > > ------------------------------------------------------------------------------ > Full-scale, agent-less Infrastructure Monitoring from a single dashboard > Integrate with 40+ ManageEngine ITSM Solutions for complete visibility > Physical-Virtual-Cloud Infrastructure monitoring from one console > Real user monitoring with APM Insights and performance trend reports > Learn More > http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Prasad J <jah...@re...> - 2015-10-07 01:06:03
|
Hi , I'm new to cppcms forum , am trying to run hello world app with templates , I've build the app with make file. When trying to run with ./hello -c config.js getting HTTP/1.0 200 OK instead of >>Hello |
From: mawan s. <ma...@gm...> - 2015-10-06 12:54:23
|
I use text editor only, sublime text. I am onteresting about date time manipulation in locale module (in booster) package. But how to integrate it with cppcms? On Oct 6, 2015 7:36 PM, "Joerg Sonnenberger" <jo...@br...> wrote: > On Tue, Oct 06, 2015 at 06:21:56PM +0700, mawan sugiyanto wrote: > > I have an error like this > > > > *error: **no **matching function for call to 'mktime'* > > Visual Studio? > > Joerg > > > ------------------------------------------------------------------------------ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |