library

Parsing an "advanced" INI file with PHP

Basically, I would like a simple, easy, one-file way to parse an INI file with "advanced" features, like section inheritance and property nesting, like Zend_Config_Ini. For example: [foo] a = 1 b.a = 2 b.b = 3 b.c = 4 c = 5 [bar : foo] b.b = 17 c = 42 Would parse into array( 'foo'=>array( 'a'=>'1', 'b'=>array( 'a'=>...

Is there any Java Library to operate on unix config files like http.conf

There are very good Perl libraries (e.g. Apache::Admin::Config) to operate on traditional unix config files like httpd.conf. Anyone know if there is good Java libraries to do the similar task? I know there is a c library called Augeas with Java binding. Has anyone used that before? Thanks! ...

C++ simple asynchronous server library

Hi, Is there any c++ library that helps implementing a simple and efficient HTTP server able to handle a very large number of concurrent connections? I'd need something very similar to python's tornado, but for c++ Thanks ...

Zip file using C program

Is there any option to zip the file using C programme without using any external application (like Zip..)? ...

[Blackberry] NoClassDefFoundError importing a library project

Hi, I'm currently writing a unit test project using the version 4.6.1 (Windows Vista + Eclipse). My project is divided in 3 part: A. Unit test application (type:CLDC application) B. Application to be tested (type:CLDC application) C. A library project (type: library,no .jar file imported) The A project should reference the code prese...

Javascript library to do autoscroll of a div fixed to left of page

I want a JS library which can allow me to build an attractive menu which is always visible to the user on the left side of the screen, approx. to the middle. ...

how to write html on image using gd library php?

im using IMAGETTFTEXT function in php for writing text on some images.now i want to write html tags on my image,for example IMG tag. i dont know how to do that!i want help plz. here is my code : $font_file = 'times.ttf'; $font_size=15; $image_file= 'new.jpg'; $image = imagecreatefromjpeg($image_file); $font_color = imagec...

What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?

What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library? How think there is no need for a .lib file in dynamically linked dynamic library and also that in static linking, the .lib file is nothing but a .obj file with all the methods. Is it correct? ...

PHP rename external libraries

I have a library "Google" that I keep in a separate GIT repository. This library is used in some projects. The problem is that I want to rename the library to match the naming convention of these projects, e.g. "Service_Google". Since PHP doesn't allow for automagic refactoring, the best way I've come up with is to do the following. ...

Why isn't regular expressions part of ISO C99

Everyone knows how awesome C language is and how much it sucks in text processing tasks. Given these facts. Regex definitely must be part of ISO C. But it isn't. I don't understand why? Are there people who think its not essential? ...

iphone: Good practice for keeping my third-party libraries up-to-date?

Hi all, I want to ask about your practices to keep your third-party libraries up-to-date easily. In my iPhone project, I use quite a lot third-party libs (like TouchXML, JSON, RegexKit, YAJL, MGTwitterEngine...). Most of them is stored in GitHub and their version, especially MGTwitterEngine, change quite rapidly (because of adding new f...

How to compile third party c library in Xcode ?

Hi, i tried to do a sip client for iphone. I tried to use oSip or eXosip2 , i download their package ,and compile it using "./configure""make""make install " I get some *.a library, and i include there headers. When i compile it , their is warning , this *.a library formate doesn't support ! It's really annoying, what should i do to ...

Content-dependent templates/partials with moustache.js

I'd like to use moustache.js to render the following JSON structure: [ {type:'img', src:'some_url'}, {type:'text', text:'lorem ipsum ...'}, {type:'link', href:'some_url', label:'click here'}, // more entries ... ] I'd like to render each item depending on type: img should br rendered as <img src="{{src}}">, text as <p>{{text}...

using System::Drawing namespace in managed C++ class library

Hi Everyone, I am moving a few functions from a Managed C++ Winforms app to a class library so that I can call them in a new C# app I'm writing. However one of the functions returns a System::Drawing::Bitmap^ and uses the System::Drawing::Color class which is causing an error saying that System does not contain a namespace called Drawin...

Netbeans: how to include other c++ static library project?

I am really new to c++ and am using Netbeans for now. I managed to create a Sign.h and Sign.cpp containing a working class Sign. I added these to a Console Project and it works great: #include <iostream> #include <ostream> #include "Sign.h" int main() { Sign sign = Sign::parse("b"); std::cout << sign.toString() <...

How to join RSS feeds into one? (from php)

How to join RSS feeds into one? (from php) what libs can help us with it? ...

Localhost extensions check

Hi. I have to install big CMS on my localhost, but it requires mcrypt, and pdo_mysql. Before I've tried to install them, I've tried to access site, but I only got blank page. I'm running apache on windows, so I heard that I have to keep dll's in php extension folder. I've downloaded from dlldll.com (it's not ad) files php_pdo_mysql.dll,...

C++ Sandboxing dynamic libraries

Hello all, I'm wondering if its at all possible to sandbox a dynamically linked library via dlopen and friends. The aim is to recover from an error within the library without tearing down the hole application e.g SEGFAULT, etc... Anyone had any experience in this area? Cheers ...

JNI - How to create a library for different classes

Hi, I'm new to JNI, i'm developing a native library for an Android project. I read some papers about JNI programming but i didn't understand if it is possible to create a library that can be loaded in different project classes with different packages. I read that to declare a new JNI method the syntax is: the prefix "Java_" an encoded...

instant message using php

is there a way to send instant message from your php code to formal messenger like yahoo messenger, skype or MSN messenger?? ...