library

how to use my own dynamic library in linux (Makefile)

Hi, all, I have a c++ project (g++/raw Makefile) designed for linux, I used to statically link everything which worked fine for ages. Now I want to build binaries both statically and dynamically linked. The following command is used in my Makefile to build the dynamic library (say libtest): $(CXX) -shared -Wl,-soname,libtest.so.1 -o l...

How to validate a string against legal characters in standard C?

I want to validate a string against legal characters using standard C. Is there a standard functionality? As far as I can see, GNU Lib C's regex lib is not available in VC++. What do you suggest for implementing such a simple task. I don't want to include PCRE library dependency. I'd prefer a simpler implementation. ...

Search by topics and extract keywords from articles in Wikipedia

Hi. I'm doing a project in java in which I have to process a wikipedia dump file. I'm looking for a library to extract keywords in wikipedia articles... Basically I want to read every tag page in the wikipedia xml dump and compare it with a list of topics and categories and if it is correct , to choose it and add to my results. I'm not i...

What option did I have for open source charting library?

So, I want to sell my PHP application on envato marketplace. But, I don't know what free/open-source charting library (PHP / Flash based) that allow me to incorporate it in such product? ...

Ruby alternative for Lucene

Hi, I have heard about Lucene a lot, that it's one of the best search engine library in JAVA, is there any similar(as powerful) library for Ruby. ...

How to organize unit testing of a library project in Xcode?

I'm not yet a fan of integrated development environments, but I'm trying to overcome my prejudices and learn Xcode. (Eclipse/CDT is next; I couldn't get that to work for me either when I tried last year, but that's a separate issue.) I am writing some new code in a new project that will become (part of) a small library. I want to unit...

Tips on wrapping a C library in Objective-C

Hey Guys, I have a library written in C that I would like to use in an Objective-C app, either on the Mac or the iPhone. Unfortunately, since this library is being written by individuals in the open source space, the documentation is quite sparse and incomplete. While I can figure out how to use the stuff in the library, I don't really...

Library implementation pitfalls

What practices should developers avoid when implementing libraries? For example, libraries should not use the following (or default usage should be disabled): System.err System.out exception.printStackTrace System.exit The developer of an application needs full control over the text that is presented to the user (language being one r...

How do I expose erl_interface (Erlang's C library) through a DLL?

I've been working non-stop for the last three days on a completely managed interface to Erlang. At this point, I've decided that there simply must be an easier way. I've got a little over 3000 lines and it's not even in a compilable state yet. To be honest, I'm getting lost in my own code. So, I then remembered that Erlang has a C libra...

Is it possible to debug .NET Class Library Methods as well?

With .NET Reflector we can see many .NET Class Library method's implementations. But is it possible to debug them as well? Or if I can put a break point inside them? ...

creating .lib file in Visual Studio

I feel like an idiot asking such a basic question but for the life of me, I can't find much on this topic. Anyway, how does one go about making a .lib file using Visual Studio (or whatever tool)? Let's say I have a project or work space with one .cpp file and .obj in it. TIA, Mike ...

What JavaScript cache can you recommend

i'm searching for a good java script in-memory cache lib to cache client side calculation results. My requirements: works in Internet Explorer, FireFox, Safari, Opera, Chrome, others a plus stable mature small fast cache strategies should be configurable several caches in one page, each with different eviciton strategy LFU, LRU a plus...

What is the difference between a Java API and a library?

I know that an API is called a set of functions used to call something, and a library is a collection of classes, but what is actually API in package like Java.lang? I can connect to a class like System without using any API here, so why we say as J2SE API rather than J2SE packages? ...

what does this code mean?

this is some code that SDL requires in visual studios 2005 in order for my simple program to work. what is the code doing? the only reason i have it is because my instructor told me to put it in and never explained it. // what is this code doing? //--------------------------------------------------------- #ifdef WIN32 #pragma comment(li...

Mixing different version of the same library in flex

How can I use two version of a library in the same project in Flex (using Eclipse). (in my case the library is papervision3d , and I have written some code using the older version, but due to big changes many of the used function exist no more) thx ...

Very low level question about Ruby and linking to libraries

I happen to be working in a sandboxed Ruby environment and have been trying to add libraries to it with mixed results. However, it has raised some interesting questions about how Ruby works. I'm looking to understand how Ruby links libraries and how it decides what to load when it starts up. What is going on when I do a require 'someLi...

MATLAB functions in C++

Does anyone know a resource where we can obtain FREE C++ libraries for MATLAB functions? For example, linear algebra problems can be solved using LAPACK and BLAS. Also, MATLAB in a .NET project is out of the question - I'm talking about direct C++ implementations of popular MATLAB functions (I don't know which functions I need in C++ ye...

[Ruby] (...)in `require': no such file to load -- 'gemname' (LoadError)

Hi people! I haven been all day training to fix this problem but i couldn't. The question is easy, i don't want to put anymore the require 'rubygems' line everytime i require a gem... If i put the require 'rubygems' before any other "require" the file runs perfect but if i don't put the require 'rubygems' line the following error occur...

Loading symbols from an AS2 SWF into an AS3 application?

I am converting a large application from AS2 to AS3. Part of the function is that it loads assets embedded in SWFs, which are old things. It is not possible to convert these to AS3 (there's really no code in them, it's just they're produced by tools that output flash 6 compatible SWFs). The question is, how can I use this AVM1 (ActionS...

Access iTunes library on Mac from iPhone app

Is there a way I can connect to the iTunes library on Mac from my iPhone app. The functionality which is available in Remote app from apple. I beleive this is something to do with bonjour programming. Can anyone provide me any head start and point me in the right direction to look for? Thanks ...