library

Treatment of Shared in GAC Included Assemblies

I know that when creating a DLL and declaring items as "Shared" (Static in C#) that they are instantiated when first called, and then that object reference lives on as the single reference. So declaring a shared string property once set can be called again to retreive the same value. And that thread safety is then a Major concern withi...

Project source or published DLL's?

When reusing code (for example, a Util library you created), do you add its project to your solution or use a compiled/published DLL from the Util library? ...

Best UI Framework for WinForms?

Can someone suggest a good UI framework for WinForms development? What I'm looking for is something that is fairly mature (=bug-free), renders well and quickly, and does not bloat my program with 10Mb assemblies. ...

Do you look "under the covers" of libraries that you're using when developing?

While reading this interview with Bjarne Stroustrup on education. He had this to say: I’m not sure how much of the problem is Java itself and how much is the emphasis on using libraries, though. The trouble is that Java has in many places been used to dumb down the curriculum while at the same time increasing the apparent level of de...

IOCP, Cross platform libraries?

I've recently bumped into something called IOCP on the windows platform, to be more precise: Input/Output Control Ports. This seems to be the most efficient way to code your server software when it needs to hold thousands of users concurrently. (Correct me if I'm wrong, but thread-per-socket, polling, and asynchronous callbacks (thread o...

F# Seq module implemented in C# for IEnumerable?

F# has a bunch of standard sequence operators I have come to know and love from my experience with Mathematica. F# is getting lots of my attention now, and when it is in general release, I intend to use it frequently. Right now, since F# isn't yet in general release, I can't really use it in production code. LINQ implements some of th...

uncompress .Z file in C

Can someone point me to a public domain (or MIT- or BSD-license) library for decompressing .Z files in ANSI C? Thanks! ...

Is there any library to query the whois database for domains information?

Hi, I'd like to write my own script in C# to test my own dictionary of too-many-to-do-it-manually words against whois database of world wide web domains. Is there any free library / script that would allow my application to test the words against free domains and get the results quite quick? There are Internet applications like whoix...

Is there a good Java networking libary?

Hi folks! I'm currently searching for a Java networking library. What I want to do is sending XML, JSON or other serialized messages from a client to another client and/or client to server. My first attempt was to create an POJO for each message, plus a MessageWriter for sending and a MessageReader for receiving it. Plus socket and err...

Installing and Linking PhysX Libraries in Debian Linux

Hello! I am trying to get PhysX working using Ubuntu. First, I downloaded the SDK here: http://developer.download.nvidia.com/PhysX/2.8.1/PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz Next, I extracted the files and installed each package with: dpkg -i filename.deb This gives me the following files located in /usr/lib/PhysX/v2.8.1: li...

Interesting uses of fluent interfaces?

I am wondering where and when fluent interfaces are a good idea, so I am looking for examples. So far I have found only 3 useful cases, e.g. Ruby's collections, like unique_words = File.read("words.txt").downcase.split.sort.uniq.length and Fest (Java) for unit testing: assertThat(yoda).isInstanceOf(Jedi.class) .isEqualTo(foundJed...

Best way to change pagination of existing PDF

Hi all, We have a PDF that is generated as A5 landscape pages. With that, we need to do a PDF with A4 portrait page format, by putting 2 pages of the source PDF on top of each other on each page of the result PDF. Do you know a good library that could do that kind of PDF manipulations ? This should happen server side from an ASP.NET w...

Haskell REST/GDATA API library

Is there available REST api library for haskell? I need it primary for google gdata client, but will probably use it for other purposes too. I know there is HTTP library, but I need something more high level, which supports things like json encoding/decoding, etc... ...

C++ DLL: Not exposing the entire class

How can I "hide" parts of a class so that whoever is using the libary does not have to include headers for all the types used in my class. Ie take the MainWindow class below, ho can I have it so when compiled in a static/dynamic libary, whoever is useing the libary does NOT have to include windows.h, ie HWND, CRITICAL_SECTION, LRESULT, e...

Java library for parsing & building logical expressions

I am looking for an open source library in Java for parsing and building sql like expressions. for example to evaluate validity of expressions like: "(a = x or y ) and (b != z)" in addition I want to have an API for building or extending expressions. something like: Expression exp = new Expression(); exp.addCondition("a",{"x","y"...

Where on the web do you find code libraries?

Hi, Can I find out where do you search for code libraries on the web? Any specific websites or search engines to recommend? ...

C++ Library to Convert HTML to PDF?

Hello I am looking for a C/C++ library to convert HTML (Actually XHTML + CSS) documents to PDF. It is for commercial use and source would be nice but not essential. Anybody have any recommendations or experience doing this? UPDATE: To clarify, I am targeting the Windows platform only. I am developing with Borland C++ Builder 2006, bu...

What is the best/simplest way to read in an XML file in Java application?

Currently our Java application uses the values held within a tab delimited *.cfg file. We need to change this application so that it now uses an XML file. What is the best/simplest library to use in order to read in values from this file? ...

PHP Pull Image And Display

I have a PHP file which I have used mod rewrite to make a .jpg extension. I want to grab an image from a url example: http://msn.com/lol.gif take the data and then display it in my .jpg with jpeg headers, so as far as the user is concerned it is a normal image. Is this possible and if so can anyone give me some pointers? ...

How much low-level stuff to expose in an API?

When designing the public API of a generic library, how much of the low-level stuff that's used internally should be exposed? On the one hand, users should not depend too heavily on implementation details, and too many low-level functions/classes might clutter the API. Therefore, the knee-jerk response might be "none". On the other ha...