jhig | 4 Mar 2011 09:07
Favicon

Ext::TableView PagingToolBar

hello

i have my problems with Ext::TableView
it's used like in the extkitchenexample:

...
tableStat_ = new Ext::TableView();
tableStat_->setModel(stat_);
tableStat_->setAlternatingRowColors(true);
tableStat_->resize(800, 400);
tableStat_->setPageSize(10);
tableStat_->setBottomToolBar(tableStat_->createPagingToolBar());
...

but when it should be shown i get the following error:
"Wt internal error: TypeError: e is undefined, code: undefined,
description: undefined"

the problem is the last line, because when i do not set the toolbar the
table is rendered normally.

bye,
jörg.

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
(Continue reading)

Koen Deforche | 7 Mar 2011 17:26
Picon
Favicon

Re: GraphicsMagick

Hey John,

Sorry for the long delay. We have worked hard on improving our
WRasterImage lately and in the process I have been using
graphicsmagick alot. Still, it is not entirely clear to me what is
going wrong. But I have never used Magick++, only the C API.

2011/2/25 John Robson <John.Robson@...>:
> I tried using the Magick++ in Wt, it compiles but gives error when open
> the site.

What error do you get? I would think that the only difference is that
Wt already initializes the graphicsmagick library for you. Perhaps
graphicsmagick cannot stand doing this twice ?

If this is still troubling you, can you prepare a self-contained test
case for the Wt version ?

Regards,
koen

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
Koen Deforche | 7 Mar 2011 17:29
Picon
Favicon

Re: PostgreSQL Session Not Destroy

Hey John,

2011/2/25 John Robson <John.Robson@...>:
> I created 500 sessions in Wt, and was automatically created 500 sessions
> of Postgre.
>
> After a few minutes all Wt sessions were destroyed, but the sections of
> Postgre continued.

How are you seeing that the Postgres sessions continue?

Do you also delete the Wt::Dbo::backend::Postgres object when your Wt
session exits?

You may also want to consider using a Postgres connection pool to
avoid creating as many connections to the database as you have Dbo
sessions.

Regards,
koen

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
Koen Deforche | 7 Mar 2011 17:37
Picon
Favicon

Re: dbo question on find() - query or collection - mostly solved

Hey Jack,

2011/2/25 Jack <ostroffjh@...>:
> As I was thinking of how to simplify or reorganize, I looked again at
> the dbo tutorial.  I'm not sure how I noticed, but all I had to do was
> move the "public:" in the Trait class definition above the persist
> piece.  I'm still not sure why the persist stuff shouldn't be OK being
> private to the class, since I am only trying to access it within a
> function in the class - or is it because it's a public function, and
> therefore will end up being called in a place where the private stuff
> will not be accessible?

Well, the Dbo code still needs to be able to call the persist()
function and so your code has to make it available. Wt::Dbo uses the
persist() method to manipulate objects of your class (loading, saving,
updating, deleting, creating/dropping the schema).

For situations where you cannot modify an existing class, Wt allows
you to specialize a Wt::Dbo::persist<T> struct which allows you to
define the 'persist()' method outside the class T. But template
specializations are cumbersome (and ASFAIK, this method of defining
the persist() function is currently not even documented).

Regards,
koen

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
(Continue reading)

Gaetano Mendola | 9 Mar 2011 20:46
Picon

Axis Chart resolution

Hi all,
is it possible to set a minimum resolution on the axis chart ? As
example plotting
the points:

(0, 1.112), (1, 1.113), (2.114)

leads to have reported on the Y axis the values: 1.11, 1.11, 1.11.

Putting a resolution of 10 as example would lead those 3 points as a
straight orizontal
line instead of a diagonal one and then wandering why on the y axis I
have all 1.11

Regards
Gaetano Mendola

--

-- 
cpp-today.blogspot.com

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
Gaetano Mendola | 10 Mar 2011 10:10
Picon

Re: Axis Chart resolution

On Wed, Mar 9, 2011 at 8:46 PM, Gaetano Mendola <mendola@...> wrote:
> Hi all,
> is it possible to set a minimum resolution on the axis chart ? As
> example plotting
> the points:
>
> (0, 1.112), (1, 1.113), (2.114)
>
> leads to have reported on the Y axis the values: 1.11, 1.11, 1.11.
>
> Putting a resolution of 10 as example would lead those 3 points as a
> straight orizontal
> line instead of a diagonal one and then wandering why on the y axis I
> have all 1.11

I have tried asking the minimum value or the maximum valued displayed
on the axis (the autolimit is set) and i seems that the minimum and
maximum retrieved are the ones of the previous visualization.

So I guess the minimum and the maximum are not calculated when the model
is set or the addSeries is performed.

How then I retrieve the actual minimum and maximum ?

Gaetano

--

-- 
cpp-today.blogspot.com

------------------------------------------------------------------------------
(Continue reading)

Koen Deforche | 10 Mar 2011 11:18
Picon
Favicon

Re: Axis Chart resolution

Hey Gaetano,

2011/3/10 Gaetano Mendola <mendola@...>:
> On Wed, Mar 9, 2011 at 8:46 PM, Gaetano Mendola <mendola@...> wrote:
>> Hi all,
>> is it possible to set a minimum resolution on the axis chart ? As
>> example plotting
>> the points:
>>
>> (0, 1.112), (1, 1.113), (2.114)
>>
>> leads to have reported on the Y axis the values: 1.11, 1.11, 1.11.
>>
>> Putting a resolution of 10 as example would lead those 3 points as a
>> straight orizontal
>> line instead of a diagonal one and then wandering why on the y axis I
>> have all 1.11

Using WAxis::setLabelFormat() you can configure the labels to show
more significant digits.

> I have tried asking the minimum value or the maximum valued displayed
> on the axis (the autolimit is set) and i seems that the minimum and
> maximum retrieved are the ones of the previous visualization.

True. You can force the chart to recalculate its layout using
WCartesianChart::initLayout()

Regards,
koen
(Continue reading)

Gaetano Mendola | 10 Mar 2011 12:19
Picon

Re: Axis Chart resolution

On Thu, Mar 10, 2011 at 11:18 AM, Koen Deforche <koen@...> wrote:
> Hey Gaetano,
>
> 2011/3/10 Gaetano Mendola <mendola@...>:
>> On Wed, Mar 9, 2011 at 8:46 PM, Gaetano Mendola <mendola@...> wrote:
>>> Hi all,
>>> is it possible to set a minimum resolution on the axis chart ? As
>>> example plotting
>>> the points:
>>>
>>> (0, 1.112), (1, 1.113), (2.114)
>>>
>>> leads to have reported on the Y axis the values: 1.11, 1.11, 1.11.
>>>
>>> Putting a resolution of 10 as example would lead those 3 points as a
>>> straight orizontal
>>> line instead of a diagonal one and then wandering why on the y axis I
>>> have all 1.11
>
> Using WAxis::setLabelFormat() you can configure the labels to show
> more significant digits.
>
>> I have tried asking the minimum value or the maximum valued displayed
>> on the axis (the autolimit is set) and i seems that the minimum and
>> maximum retrieved are the ones of the previous visualization.
>
> True. You can force the chart to recalculate its layout using
> WCartesianChart::initLayout()

Would this lead to have 2 calls to initLayout each time the model changes?
(Continue reading)

Bjørn Forsman | 11 Mar 2011 18:57
Picon

cross-compiled hello.wt fails: "remote_endpoint() threw: Bad file descriptor"

Hi Koen, all,

First off, thanks for Wt, it looks very interesting!

Now to the issue...

I've cross-compiled boost 1.46, Wt 3.1.8 and hello.wt example
application for an ARM system. At runtime hello.wt terminates due to
"remote_endpoint() threw: Bad file descriptor" (see log below). Any
ideas?

# hello.wt --docroot . --http-address 0.0.0.0 --http-port 8080
Reading: /etc/wt/wt_config.xml
[1999-Dec-31 17:29:41.389758] 1129 - [notice] "Wt: initializing built-in httpd"
[1999-Dec-31 17:29:41.395503] 1129 - [notice] "Reading Wt config file:
/etc/wt/wt_config.xml (location = 'hello.wt')"
[1999-Dec-31 17:29:41.422544] 1129 - [notice] "Started server:
http://0.0.0.0:8080"
remote_endpoint() threw: Bad file descriptor
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
>'
  what():  Bad file descriptor
Aborted

Best regards,
Bjørn Forsman

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
(Continue reading)

Jan Köster | 12 Mar 2011 10:46
Picon

llvm clang problems

hi,

igot problems when i try to use clang as compiler.

Nice greetings

Jan

-- The C compiler identification is Clang
-- The CXX compiler identification is Clang
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang
-- Check for working CXX compiler: /usr/bin/clang -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found the Wt libraries at 
/usr/lib/libwt.so;/usr/lib/libwtext.so;/usr/lib/libwthttp.so;/usr/lib/libwtdbo.so;/usr/lib/libwtdbosqlite3.so;/usr/lib/libwtdbopostgres.so;/usr/lib/libwtfcgi.so
-- Found the Wt headers at /usr/include
-- Found the Wt debug libraries at 
/usr/lib/libwt.so;/usr/lib/libwtext.so;/usr/lib/libwthttp.so;/usr/lib/libwtdbo.so;/usr/lib/libwtdbosqlite3.so;/usr/lib/libwtdbopostgres.so;/usr/lib/libwtfcgi.so
-- Found the Wt debug headers at /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: 
/local/administrator/projects/tuxist/twitter/build
administrator <at> dibsi:~/projects/tuxist/twitter/build$ make
Scanning dependencies of target twitter.fcgi
(Continue reading)


Gmane