library

Is this too much code for a header only library?

It seems like I had to inline quite a bit of code here. I'm wondering if it's bad design practice to leave this entirely in a header file like this: #include <list> #include <string> #include <boost/noncopyable.hpp> #include <boost/make_shared.hpp> #include <boost/iterator/iterator_facade.hpp> #include <Windows.h> #include "../Exception...

java.util.zip: putNextEntry

Hello I'm trying to modify a file in a zip-file using java.util.net As direct modification of a file is not possible and I want to modify only one single file, I just create a new zip file containing basically the content of the template and replace the specific file, at least that's the plan. Here are the most important lines of my at...

How to export C++ functions with GCC?

I'm using Code::Blocks to compile a shared library on Ubuntu. When I make a simple main.c file with: void* CreateInterface() { int* x = (int*)malloc( sizeof( int ) ); *x = 1337; return x; } This works fine and I can find the function CreateInterface with dlsym in another application. However, I want the function to create ...

Shipping jar with default .properties file configurations

Hello, I would like to include a default default.properties file in my .jar library. The idea is to allow the user to override my default is he so desires. I'm having trouble getting the classloader to play nicely with this setup, I've tried to look a at popular jars such as log4j, common-* and others and it seems that no one is implem...

Android NDK jni problem

I have started teaching myself about the Android NDK and I have followed this example here - http://marakana.com/forums/android/android_examples/49.html I have followed the steps perfectly but when I run the application I get the following error: Trying to load lib /data/data/com.cnetworks.ndk/lib/libndk_demo.so 0x435c2d20 Added shared...

C++ library for Coordinate Transformation Matrices (CTM)?

I'm looking for a C++ library which allows for easy integration of Coordinate Transformation Matrices (CTM) in my application. You might know CTMs from PDF or PostScript. For one project we are using C++/Qt4 as a framework, which offers a QTransform class, which provides methods like .translate(double x, double y) or .rotate(double degr...

ideas for a distributed cache proxy server

Hi everyone! I am implementing, a distributed cache proxy server.I have an idea of the HTTP and related stuff, so i am rather concentrating on the sub part "Distributed data storage". From some search on web i found that this could be done using Distributed Hash Tables(DHT). I was wondering if there exists some kind of library for this...

Java graph library for comparing 2 graphs

Does anyone know a good Java library for graph comparing by searching maximal common subgraph isomorphism to get information about their similarity? I do not want to compare graphs based on node labels. Or is there any other way how to topologically compare graphs with good Java libraries? Now I am using library SimPack and it is useful ...

Matching .NET References to Namespaces

This seems confusing to me - im creating a class library, and adding all the necessary references for the source files contained in it. Now, off the bat, there were over 300 compiler errors complaining about missing namespaces. The library will now compile after i just added all of the System.* references, however this is obviously not ...

Library or own Framework?

When should you use a library or a framework vs your own implementation. For example. MVVM, should I use Cinch/MVVM Framework or roll my own code? ...

Is there a library / tool to query MySQL data files (MyISAM / InnoDB) without the server? (the SQLite way)

Oftentimes I want to query my MySQL data directly without a server running or without having access to the server (but having read / write rights to the files). Is there a tool or maybe even a library around to query MySQL data files like it is possible with SQLite? I'm specifically looking for InnoDB and MyISAM support. Performance is ...

How to install and use db4o for Android?

I have to admit that I'm new to Java and Android. db4o seems to be an excellent DB framework to replace SQLite http://developer.db4o.com/Platforms/Java/Android.aspx. I want to use it for my Android application. I don't know how to: Import/Install/Attach/Upload db4o to Android phone. Where should I put the JAR file db4o-7.12.132.14217-all...

Generate sound wave image from mp3/wav file?

Looking for a program / lib (preferably in .NET) that can take a sound file (mp3/wav/etc) and generate a sound wave image from it (similar to image below) ...

Auto-Summarize Text

Is there a tool or a library available that can automatically summarize a large text? I know there is an AutoSummarize tool in MS Office ad Open Office. But is there another alternative besides these two. ...

Creating a java library

This may be a silly question, but right now I have a rather large class that I want to use as a library. Where somebody can simply add this jar file to their classpath. And then simply do an import statement at the top, then he or she can start using this class. Is there anything special I need to do or can I simply just use the jar fi...

link with static library vs individual object files

For a reason i want to unpack a static lib (libx.a) into individual object files (a.o b.o c.o), and specify these object files (a.o b.o c.o) in the linker input list instead of libx.a, with other linker options remaining the same. However, i have noticed the above change has resulted in quite some difference in the output executable. Ba...

Android - Adding external library to project

Hi, I am having a lot of trouble adding the WEKA library to a project I am working on. I have followed several tutorials that explain how to do this including the Android Developers guide: http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary and several of the postings on SO. I have created a folder in...

Java libarary for HTML elements/tags

Anyone know a decent Java libarary for HTML elements? Ex if I want to create an img-element, I would go new Image(...) The object should support the normal HTML functions/attributes, such as setting CSS or disable. ...

Library to analyse sound

Hello, I need in analyzing system output sound runtime. OS: Linux. The first thing I need is get different frequency values. Programming language: c++. ...

prefuse.render.TextItemRenderer can not be resolved

Hi, I want to use the samples available in prefuse gallery , I used "GraphView" and "RadialGraphView" code in java but the "import prefuse.render.TextItemRenderer;" could not be resolved in both sample. Would you please let me know how can I add the related library into my program? Thank you in advance Rojet ...