Oliver Rath | 28 Dec 16:31
Picon
Favicon

cxx-tools-svn Probleme bei Ubuntu 11.10 Oneiric

Hallo Liste,

wie schonmal im Chat angesprochen habe ich hier Probleme, die
svn-Version von cxxtools (und damit auch von tntnet) zu installieren.

Um eine sauberes Environment zu garantieren, habe ich in einer
virtuellen Maschine ein Ubuntu 11.10 installiert, danach noch folgendes
ausgeführt:

$ sudo apt-get install build-essential subversion automake libtool

Danach habe ich ein

$ svn co
https://cxxtools.svn.sourceforge.net/svnroot/cxxtools/trunk/cxxtools
cxxtools

gemacht (rev. 1401), ein

$ cd cxxtools ; ./autogen ; ./configure

Das nun obligatorische make produziert mir folgenden Fehler:

libtool: link: g++ -g -O2 -o .libs/httprequest httprequest.o 
../src/http/.libs/libcxxtools-http.so -ldl -lnsl
/usr/bin/ld: httprequest.o: undefined reference to symbol
'cxxtools::Timer::~Timer()'
/usr/bin/ld: note: 'cxxtools::Timer::~Timer()' is defined in DSO
/home/dmi/cxxtools/src/.libs/libcxxtools.so.7 so try adding it to the
linker command line
(Continue reading)

Leandro Santiago | 5 Dec 15:27
Picon
Gravatar

tntnet and c++0x

Hello.

Does the tnt author intend to use c++0x features in tntnet family?

I'm looking at the code and I see that in some places it's possible to
use c++0x new features to improve the librart (but it can broke the
compatibility with compilers which don't implement these features :-()

For example, in the xmlrpc::Service class, lots of templates with
different number of parameters (all these have the same code). I think
it'd be a good idea to use variadic templates to improve these code.
It also happens in callable.tpp

Also in xmlrpc::Service, it's passed to the registerFunctions
templates method a pointer to a function, which represents the
callback. The new stl, which is compatible with c++0x has a class
std::function which propuses to represent a function. But it can also
"match" a lambda function or a functor. It's really useful.

With std::function of use (fn *)(int) you can use
std::function<fn(int)>. It's really simple, but I've never checked if
it affects the performance.

Thanks in advance.

--

-- 
Atenciosamente,
Leandro

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

Leandro Santiago | 3 Dec 17:46
Picon
Gravatar

Is the new json deserializer working fine?

Hello. I've seen you're adding a new json deserializer in cxxtools.
I looked at the tests and there everything works fine.

So I wrote a small program to test for myself.

And I'm getting an exception when I try to deserialize a simple struct.

My code is in http://pastebin.com/6keYWBwy

The exception is:

terminate called after throwing an instance of 'cxxtools::SerializationError'
  what():  serializationinfo.cpp:156: Missing info for 'age'
Abortado

As in my code I desialize an object and after I serialize using the
same stream, I think it'd execute correctly.

I'm using the revision 1342.

Thanks in advance.

--

-- 
Atenciosamente,
Leandro

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
(Continue reading)

Chris Stier | 30 Nov 02:50
Picon

tntdb::Blob with postgres OID

Hi all,
I'm trying to work with some huge binary data out of a postgres db.
It's stored as an OID type.  When I use the tntdb::Blob object,
blob.data()  returns the OID reference ID and not the actual binary
data.  Does anyone know a work around for this?  I really don't want
to use libpq directly :O)
Thanks,
JC

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
Carlos Franke | 27 Nov 19:49
Favicon
Gravatar

Segfault when accessing empty cell with Row::operator[]

Hi!

I am getting a segfault with tntdb, using the following ingredients:
  1. An tntdb::Row with an empty cell. (Created by selecting from a  
suitable table with a tntdb::Statement and selectRow())
  2. Accesing that cell with operator[].

It is easy to work around this by checking isNull() before using  
operator[], but I am pretty sure this is not supposed to segfault.

Carlos
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Tntnet-general mailing list
Tntnet-general@...
https://lists.sourceforge.net/lists/listinfo/tntnet-general
Carlos Franke | 20 Nov 18:25
Favicon
Gravatar

[tntdb] SQLite query with IN-clause does not work when parameterised

Dear Tntdb developers and users,

I am using Tntdb for a simple, local SQLite-based application, and so  
far, I am very happy with it. Thank you for this nice library! However,  
after months of developing with it, I have run into a problem which I  
cannot seem to resolve by myself. I would be glad if someone could give  
me some advice on it.

It is about a certain select statement including an IN-clause. It only  
works with a constant query statement like this:
     tntdb::Statement statement_with_var = db.prepare("select distinct  
entry_id"
                                                      "       from  
index_terms"
                                                      "         where  
entry_id in (1,2,3,8)");
…while the parameterised version does not yield any result:
     tntdb::Statement statement_with_var = db.prepare("select distinct  
entry_id"
                                                      "       from  
index_terms"
                                                      "         where  
entry_id in (:subset)");  //followed by  
statement_with_var.set("subset", "1,2,3,8").select(), of course

There is a full example programme attached to this mail. It cannot  be  
run without a fitting database of course, but maybe someone can tell  
where I am wrong just by looking at it.

Thank you for your time!
(Continue reading)

dispy | 14 Oct 21:58

[Component-Calls] Pass non-serializable parameters to extern (sub)components

Hi,

is there a convenient way to pass objects, which are _not_ serializable 
but copyable to extern (sub)components?
(It was even more elaborated to be able to pass object by reference - 
reducing (memory) overhead increases performance. I'm not calling 
between different shared libraries, only within one library with 
distinct components)

My current (ugly) solution is as follos:

caller.ecpp:
<%request scope="global">
         std::vector<int> vec;
</%request>

<%cpp>
         vec.push_back(1);
         vec.push_back(2);
</%cpp>

<& start.layout1 &>

invoked (different component):

<%def layout1>
<%request scope="global">
         std::vector<int> vec;
</%request>

(Continue reading)

Tommi Mäkitalo | 5 Oct 17:57

Re: Getting client IP in a XMLRPC service

Am Mittwoch, 5. Oktober 2011, 00:58:07 schrieb Oliver Rath:
> Hi Tommi!
> 
> Am 05.10.2011 00:42, schrieb Tommi Mäkitalo:
> > You can find the example at:
> >  http://www.tntnet.org/xmlrpc-session-demo.tar.gz
> 
> The link is broken ..
> 
> Regards,
> 
> Oliver

Thank you. True. The link is

http://www.tntnet.org/download/xmlrpc-session-demo.tar.gz

Tommi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
Tommi Mäkitalo | 5 Oct 00:42

Re: Getting client IP in a XMLRPC service

Am Dienstag, 4. Oktober 2011, 18:43:30 schrieben Sie:
> (Sorry for the delay, I saw your message right now :-()
> Thx for your answer. I was hoping that you said. I will need to write
> my own session over xmlrpc. ust to check. Thx :-)
> 
I created a small example which implements a session over xmlrpc. The idea is 
to implement a rpc function, which returns an id, which can identify some 
server side session structure. This id is passed to each rpc function to 
identify the session.

The example do not handle session timeouts, but it is quite easy to add a 
timer to the event loop of the xmlrpc server, which check for session timeout. 
Then each call to a session must update the last access time. This can be 
easily implemented in the method RpcSessionService::getSession.

You can find the example at:

 http://www.tntnet.org/xmlrpc-session-demo.tar.gz

Tommi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
Leandro Santiago | 4 Oct 19:23
Picon
Gravatar

cxxtools on Windows

Hello to all. Has anybody here compiled cxxtools on Windows? I'm using
mingw and I need to compile cxxtools with its tools. Does anyone here
know if it's possible?

--

-- 
Atenciosamente,
Leandro

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
Tommi Mäkitalo | 1 Oct 13:06

Tntnet-wiki

Hi,

we have a wiki for tntnet now and I started to fill it. You can find it at:

	http://http://sourceforge.net/apps/mediawiki/tntnet/index.php

I started to write a book about tntnet but I stuck into a strange structure. 
It is more a collection of articles than a book. So I decided to put the 
chapters on a wiki. I think this is a good place to collect information about 
tntnet.

If you want to contribute, please contact me and I can give you write access.

Tommi

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2

Gmane