library

Directory structure for C++ library

I am working on a c++ library. Ultimately, I would like to make it publicly available for multiple platforms (linux/windows at least), along with some examples and python bindings. Work is progressing nicely, but at the moment the project is quite messy, built solely in and for VC++ and not multi platform at all. Therefore, I feel a cle...

How to count songs from ipod Library including Duplicates

I am trying to count the total songs from the ipod library. Due to grouping any songs with same title will not be added to the array. MPMediaQuery *songsQuery = [[MPMediaQuery alloc] init]; NSArray *mySongs = [songsQuery collections]; NSLog(@"%d", [mySongs count]); Is there an alternative/better way? Any ideas welcome. ...

Where should JS library reside (host)

JS library like JQuery can be linked directly from other site (e.g. google). Usually I use <script type="text/javascript" src="/js/jQuery.min.js"></script> But I can use <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; or similar. I like to take full control o...

How to include the sqlite3 library "libsqlite3.0.dylib" in my application source file?

I am writing an application in C++/C/Object-C cocoa environment for OSX 10.6 For specific reasons, I cannot make changes to the make file so that I can not link the "libsqlite3.0.dylib" library during build. In my source files, I included . Since I cannot link the library with the framework, I was wondering how can include a library as...

Compiling external C++ library (Octave) for iPhone (Fortran compiler missing?)

A friend of mine asked me if it would be possible to port the Octave project to the iPhone. I haven't compiled an external package for an iPhone project before, so I downloaded the source code, and then used some scripts found on a couple of different Web sites (one, two) to try and build the libraries. However, when I try either of thes...

Linking with a different .so file in linux

I'm trying to compile a piece of software which has the standard build process e.g. configure make make install The software requires a library e.g. libreq.so which is installed in /usr/local/lib. However, my problem is I'd like to build the software and link it with a different version of the same library (i have the source for the ...

Is there a Java 1.4 library that returns time in microseconds?

I was wondering if there was a Java 1.4 library that would return a higher precision time value than your trusted Date.getTime() millisecond value, something similar to System.nanoTime() but for a JDK 1.4? A custom JNI with C++ QueryPerformanceCounter is the only solution, or something like this has been done before and can be reused? ...

Is there a Java method that encodes a collection of parameters as a URL query component?

Is there a widely-used Java library that does something like what dojo.objectToQuery() does? E.g. (assuming the use of HttpCore's HttpParams object, but any key-value mapping will do): HttpParams params = new BasicHttpParams() .setParameter("foo", "bar") .setParameter("thud", "grunt"); UnknownLibrary.toQueryString(params); sho...

Is GNU's nana library dead? Is there a successor in use?

Looking at http://savannah.gnu.org/projects/nana/ it seems that the last work was done on Nana four years ago, and the official gnu.org homepage for nana is a placeholder. Given how inactive projects tend to suffer from bitrot: Has the project died? Is there a successor? Do folks have a different assertion/logging library for C/C++ ...

How to include a dynamic library in a makefile build

I am writing a program in Mac OSX 10.6 environment. In my make file, I would like to include a dynamic library /usr/lib/libsqlite3.dylib as part of my build I am not familiar with make file syntax from what I have read over the internet, I believe I have to add -lx /usr/lib/libsqlite3.dylib please advise me on whether or not this is c...

How do you let others trust your code and use it?

I write hobby code from time to time. The thing is these tools, classes or tiny libraries of code end up in a flash stick with hopeless future! I would love to develop my projects further, and let other programmers trust them. If you were going to use something you found on the Internet, what is the most important thing you look for in t...

Problem Linking Boost Library in Linux

I am trying to build a project using Boost's Asio and I am having some trouble. Initially, I tried to build the project without any additional libraries since everything is supposedly in the header files. The program I am trying to build looks like this: #include <iostream> #include <boost/asio.hpp> #include <boost/date_time/posix_tim...

How to convert number to natural language string?

Is there any existing builtin (or third party) Java class or library that can convert numbers to natural language strings; e.g. 1 -> "one", 2 -> "two", 1256 -> "a one thousand two hundred and fifty-six", etc.? ...

What languages and libraries should I use to work with Gmail?

I want to develop my own web-based tool for searching for messages in the inbox of my Gmail account and deleting some of them. The projects that I've been working on in my programming life are very different from that one, so my question is: What languages, tools, and libraries should be used for this task? ...

Which Windows (C++) screen capture libraries fit my requirements?

I'm ready to outsource the screen capture functionality of our application, because it's not our core business and I've spent too much time trying to get our code to do all the things I need. Time for a specialist, I think. My requirements, in decreasing order of importance, are below. Does anyone have experience with any commercial or f...

Boost Jam Not Producing Thread Library on Windows

I downloaded the latest Boost Jam binary from SourceForge and I'm using the command: bjam toolset=gcc --build-type=complete stage I've installed Cygwin along with the GCC compiler. While the command produces a stage/lib directory, I cannot find the thread library that I'm using in Linux. Boost Jam takes a while to run, so there coul...

Most portable JIT compiler library?

I'm looking for the most portable JIT compiler library, like asmjit or jitasm. When I say 'most portable' I mean, that has the most support for a wide verity of architectures. Language doesn't matter so much, but C++ would be the best solution, especially when coupled with GCC. Important architectures for me, are x86/64, PowerPC and AR...

What tools You're using to develop Windows mobile apps on Linux ?

What tools You're using ? I don't mean the text editor, but tools, libraries, debuggers, emulators and so on... ...

Image processing libraries

I recently came back to image processing. Most of what I used previously was Matlab. I'd like to switch to a more convenient and open language. After having used Python library PIL and bitterly understood it had, built-in, only 3x3 and 5x5 filter kernels, I decided to ask here if someone knows of good image processing libraries. What a...

Linking libraries (C++)

Using MinGW through Eclipse for C/C++, and attempting to get GLUT (OpenGL Utility Toolkit) working on it, but I suspect it's a simple problem. Attempts to build result in: g++ -LC:\Documents and Settings\C\workspace\GLUTtest\Debug -LC:\Tools\MinGW\include\GL -LC:\Tools\MinGW\include -oGLUTtest.exe main.o -lglut32.lib C:\Tools\MinGW\bi...