library

Identifying which Linux system library contains a function

I am using a dev system where I have to specify the lib name when accessing a function inside it. I've used functions like open() before, and somehow found out that they're in libc.so. Now I want to use lstat(), but it appears that this one is not in libc. Sadly, the man pages I looked at do not document the location of the functions. ...

How can I decrease complexity in library without increasing complexity elsewhere?

I am tasked to maintain and update a library which allows a computer to send commands at a hardware device and then receive its response. Currently the code is setup in such a way that every single possible command the device can receive is sent via its own function. Code repetition is everywhere; a DRY advocate's worst nightmare. Obvio...

Library for remote file access in linux?

Hi all, Im working on a program to access files from remote hosts. Basically what i want to do is logging in remote Windows/Linux host with valid credentials, check what files exist in a specific folder, read those files. Is there a library I can use to fulfill the above purpose in Linux? Thanks. Additional info: I'm using C. The remo...

Are there any java libraries for validating user supplied HTML, on the server side?

I have a service which takes the user supplied rich text (can have HTML tags) and saves it into the database. That data gets used by some other application. But sometimes the user supplied data has missing HTML tags and wrong closing tags. I want to validate if the user supplied data is valid HTML or not and depending on that I want to w...

Recommendation for C# Matrix Library

Hello, I need a C# library to deal with matrices. It should implement singular value decomposition, matrix inversion, etc I've used CSML before, but this does not implement some of the features i need. EDIT: Some of the features are: Singular value decomposition Matrix inversion Trace Determinants thanks in advance ...

Is there a general purpose JavaScript library out there?

We started a new project and realized that we needed a general purpose javascript library that contains a nice set of string functions, MD5, base64, allows extensions, etc. Also, copying and pasting functions from other libraries doesn't sound very attractive. So, I guess the question is which javascript library contains the most gener...

Framework vs. separate libraries

I'm using C++, but I think that my question goes beyond a single programming language. What is better - use framework's classes or separate libraries. For example, if I'm using Qt in some project is it better to use QHttp or use cURL (QtXml or TinyXML etc.)? From my point of view using framework's classes has following features: Better...

playing only part of a sound using FMOD

I'm trying to play only part of a sound using FMOD, say frames 50000-100000 of a 200000 frame file. I have found a couple of ways to seek forward (i.e. to start playback at frame 50000) but I have not found a way to make sure the sound stops playing at 100000. Is there any way FMOD can natively do this without having to add lbsndfile or ...

File descriptor limits and default stack sizes

Where I work we build and distribute a library and a couple complex programs built on that library. All code is written in C and is available on most 'standard' systems like Windows, Linux, Aix, Solaris, Darwin. I started in the QA department and while running tests recently I have been reminded several times that I need to remember ...

Why is the Loki library not more widely used?

The Loki library implements some very widely used concepts (smart pointer, visitor, factory, etc.). The associated book "Modern C++ Design" is often mentioned, but the library itself is not widely used. Why is that? Most developers seem to prefer Boost. In particular, why do people often decide to use Boost's smart pointers rather than ...

write a C or C++ library with "template"

Hi, (1). When using C++ template, is it correct that the compiler (e.g. g++) will not compile the template definition (which can only be in header file not source file) directly, but generate the code based on template definition for each of its instantiations and then compile the generated code for its instantiations? (2). If I want ...

Howto use mongoDB bindings for haskell.

Hello, I am pretty new to Haskell but I feel like I have a decent understanding over all. I'm currently trying to play with the unofficial mongoDB bindings for haskell. If you look at the code here: http://github.com/srp/mongoDB/blob/master/Database/MongoDB.hs connect :: HostName -> [ConnectOpt] -> IO Connection connect = flip conn...

Single or Multiple Git repositories for libraries shared between teams

I am looking at how/if I should make the switch from svn to git. I currently have a multi-layered set of projects in svn which are layered such that D uses C which uses B which uses A. Actual deployed projects like X,Y,Z use any of the common libraries A-D. The aim is for future projects and other teams to share the base libraries (A-...

What are *-devel packages?

What is the utility of devel packages like "libgtk+-devel" or "python-devel" etc.? Do they contain source of the library? How is it different from non-devel packages like libgtk+? ...

CodeIgniter: Decision making for creating of library & helper in CodeIgniter

Hi Guys, After developing in CodeIgniter for awhile, I find it difficult to make decision as to when do i create a custom library and when do i create a custom helper. I do understand that both allows you to have business logic in it and is reusable across the framework(calling from different controller etc.) But I strongly believe th...

Expiry date as a file attribute or in a separate file for a Caching Mechanism

I'm creating a simple caching library in PHP. Currently, when I store a value I create 2 files: One that contains the value and another one to store the creation time. I want a robust solution and I'm not sure how safe it is to use the file date attributes. Do you think is safe to use the file date attribute for expiry time, instead to s...

Java Library for Sound Manipulation

I have a .pcm file with a sound that I would like to add different effects to. What I am looking for is a simple way (prefeably a library) that can help me with these effects. My top priority is to change the pitch of the audio. I would like a function that takes a byte array (or float), and changes the pitch of the audio in that arra...

Modular data structure in C with dynamic data type

Hi, For my upcoming university C project, I'm requested to have modular code as C allows it. Basically, I'll have .c file and a corresponding .h file for some data structure, like a linked list, binary tree, hash table, whatever... Using a linked list as an example, I have this: typedef struct sLinkedList { int value; struct s...

Compiling Libs for iPhone projects

I'm new to XCode. My iPhone project is dependent on FreeType. I got the source, but it needs to be statically compiled and included with my project. I tried adding a target and adding the include and src directories but this resulted in 3200 compiler errors, most of which complaining about no build rules. I'm just not sure how to do this...

Which light C++ event/delegate (signal/slot) library should I choose?

Hi there, I know that the question has already been asked and answered, but it was more than one year ago and it looks like there are new alternatives out there. So I'm coding a game with the SFML library (which I'm starting to find pretty much cool actually) and I'm looking for a light and fast event/delegate library. After doing som...