library

Create a string with the result of an expression and the expression that originated the value. Is it possible?

Like String r = SomeThing.toExecString("new Object().toString()"); And when executed the value of r would be: "new Object().toString() = java.lang.Object@c5e3974" Is this even possible at all? Would it need a bunch of reflection? A built in compiler maybe? ...

Problem setting up Direct X for C++

I've downloaded Direct X SDK from the microsoft website but when I try to compile my code i'm getting this error: Error 1 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "void __cdecl initD3D(struct HWND__ *)" (?initD3D@@YAXPAUHWND__@@@Z) C:\Users\Josh\Desktop\Tutorial\Tutorial\Tutorial.obj ...

Java libraries for converting xsd to bean/objects

What are my options for libraries to convert XSD files to java beans or objects? I have a large XSD that I have been trying to convert using JAXB2, but JAXB2 is creating invalid classes. ...

Converting classes to an library

Hi experts i have created a set of UItableviewcustom cell classes. Now can i group those classes to an static library so that i can include that library in whichever project i want and i can use it. ...

How are Flash library symbols constructed? Why are width/height already available in constructor?

Suppose I draw a square on the stage, convert it to a symbol, export it for ActionScript with a classname of "MySquare" (and of course a base class of MovieClip). How is it that in the MySquare constructor, the width and height of this MovieClip are already available? In fact, any named instances in the clip are also available. I'm co...

Automatic initialization routine in C++ library?

If i have a header file foo.h and a source file foo.cpp, and foo.cpp contains something along the lines of: #ifdef WIN32 class asdf { asdf() { startup_code(); } ~asdf() { cleanup_code(); } }; asdf __STARTUP_HANDLE__ #else //unix does not require startup or cleanup code in this case #endif but foo.h does not define class asdf, sa...

Rails architecture questions

I'm building a Rails site that, among other things, allows users to build their own recipe repository. Recipes are entered either manually or via a link to another site (think epicurious, cooks.com, etc). I'm writing scripts that will scrape a recipe from these sites given a link from a user, and so far (legal issues notwithstanding) t...

Push notifications....Feedback problem, when using apns-sharp C# library

Hello everybody. I've installed on my iPhone ad-hoc version, so it means distribution one. I've downloaded apns-shart library and tried to test push notifications on that. I have all necessary certificates. I've succeeded to push notifications using test notification project and with this everything is fine. My problem is: when I've t...

How would I include open source library in my iPhone application?

I have found an existing open source library that I would like to include in my iPhone project (the unrar source code found here: http://www.rarlab.com/rar_add.htm ). I have compiled this source as a linked library on my Mac with "make lib" which creates the libunrar.so file just fine. These are the makefile settings for that target:...

Can I use android.os.* libraries in a standalone project?

I'm trying to develop an external library (not sure if that's the right term) to provide prepackaged functionality in Android projects. Working in Eclipse, I've added the appropriate android.jar file to the build path, and everything is happy both while editing and upon compilation. However, when I use Android's Handler and Message clas...

How should I handle url routing in my application ?

I'm building a web app with custom components. I need a way to route requests to class / methods, is there any standalone java library that can achieve that (in a sexy manner [1]) ? [1] read : no xml! ...

Bar Chart on Iphone

I'm looking for a free charting library for iphone. I need to draw a simple bar Chart. Do you know one? ...

C# library for handling pictures

Does any free C# (.net) library exist for handling properties of pictures. Main targeting functions is to read Camera Information from as it does "Google Picasa" picture viewer, I also want to try find identical pictures. ...

XML library for Java

Does anyone know good XML library for Java which I can use to write data extracted from database into XML format? ...

How do I add a library in Eclipse?

hi, I downloaded the Gson library from http://code.google.com/p/google-gson/. The archive contains the following jar files: google-gson-1.3/gson-1.3-javadoc.jar google-gson-1.3/gson-1.3.jar google-gson-1.3/gson-1.3-sources.jar How do I set my Eclipse to be able to use the package in my projects? Where do I put the documentation? Tha...

C++ Matrix class hierachy

Should a matrix software library have a root class (e.g., MatrixBase) from which more specialized (or more constrained) matrix classes (e.g., SparseMatrix, UpperTriangluarMatrix, etc.) derive? If so, should the derived classes be derived publicly/protectively/privately? If not, should they be composed with a implementation class encaps...

Why winpcap requires both .lib and .dll to run?

Specifications can be seen here: http://www.winpcap.org/docs/docs_40_2/html/group__wpcapsamps.html It's very strange,either .lib or .dll is enough IMO,why does it require both? ...

Creating Custom QT Library

I created a static Qt library by using VS2005. It created an extra file "test_global.h" besides expected ones(test.h and test.cpp). test_global.h #ifndef TEST_GLOBAL_H #define TEST_GLOBAL_H #include <Qt/qglobal.h> #ifdef TEST_LIB # define TEST_EXPORT Q_DECL_EXPORT #else # define TEST_EXPORT Q_DECL_IMPORT #endif #endif // TEST_GLOBA...

Are there Java libraries to do drag and drop

Hello. Are there open source libraries for Java to make implementation of drag and drop easier? I plan to make something like the one shown below: The program is Alice, where you can drag some elements on the left and nest them to the right. It's open source, but they did not use any libraries I think. I'm wondering if we anyone kno...

Logging in a C# library

All, I wonder what is the best practise regarding logging inside a library. I am creating a C# library to be used by users and at some points I want to log an error or a warning. Is it a good practice to use log4net and log in a file? Thanks, M ...