Often, it is more efficient to use a sorted std::vector instead of a std::set. Does anyone know a library class sorted_vector, which basically has a similar interface to std::set, but inserts elements into the sorted vector (so that there are no duplicates), uses binary search to find elements, etc.?
I know it's not hard to write, but probably better not to waste time and use an existing implementation anyway.
I have noticed that the quality of the images produced by the JPEGEncoder does not match that of other encoders available (i.e. php's built in image compression functions from the gd library)
Any explanation ? or hints/workarounds for improving the quality of compressed images by JPEGEncoder ??
I am interesting to do some transformation, like change one color to another, count all used colors, and resize image. I DO NOT want to use any exist library, I would like write myslelf all code.
Summing up: How could I open BMP file and change it?
I would like to add Infragistics dlls as custom prerequisite when publishing my project.
I've read about that:
http://msdn.microsoft.com/en-us/library/aa730839%28VS.80%29.aspx
But this seems to be a bit complicated...
I wonder if exists a bit simple way to archive that (eg by passing URL to setup.exe or such) ?
EDIT
This Might be also interesting: http://www.codeproject.com/KB/aspnet/Add_Custom_Prerequisite.aspx?msg=2520811 will check and let you know...
Hello!
I am wondering how does SVG work in IE with Google Docs Drawings?
Is it flash?
Could you please point me to the library they use to add SVG support to IE?
Thanks!
Hello all,
It seems that every project has an "util" module with various code snippets used throughout other files and which don't fit any particular pattern. I want to improve my "util" library, so please post here the most useful class / function / macro that you use in all your C/C++ projects. Please keep the entries small (under 100 lines) and give only one example per post.
Thank you.
(SquashFS is a compressed filesystem - http://en.wikipedia.org/wiki/SquashFS)
I'm looking for a way to read a SquashFS filesystem from a program. So far, I've know about the in-kernel drivers for it, but I'm sure that a userspace library for it must exist somewhere. Any language would be fine, but C is preferred.
Just mounting the filesystem and using it that way is technically possible, but I'd rather avoid that route because the application I'm looking at would involve working with at least a few dozen archives at any given time.
I've been using matplotlib in a Python project. It is great.
I have now to plot data in a C++ project. Is anyone aware of a plotting library in C or C++?
Note that I cannot accept GPL licensed libraries.
I'm working in a class library and there are other source projects associated with the same solution.
Is there a way for me to stop the VS refactoring tools from traversing those other projects, without removing them from the solution, but keeping everything the same?
I'd like to find out how much memory a lua table is using - without iterating through the table contents and counting up the usage. Is there a lua 5.1 function or 3rd party library that could help with this.
Thanks!
Ok this situation is a bit difficult. But I am trying to embed a Java Jar into a C# form. Not as a new window or new process.
The Jar will be a game that uses the LWJGL library.
The C# Form will be a "wrapper" for it with tools and more.
Anyone have any ideas? Is this even possible?
I need to have a buffered char stream, into which I write in one thread and from which I read in another thread. Right now I'm using PipedReader and PipedWriter for it, but those classes cause a performance problem: PipedReader does a wait(1000) when its internal buffer is empty, which causes my application to lag visibly.
Would there be some library which does the same thing as PipedReader/PipedWriter, but with better performance? Or will I have to implement my own wheels?
Hi,
I've seen iphone related open source library which says something like,
"You need 4.0+ iOS build environment but the code will run on 3.0+ iOS device."
I wonder how those two requirements can differ and how can I tell a minimum 'device' iOS version which a certain api would need.
For instance I want to use UIGestureRecognizer but the apple doc says it's 3.2+, but I want my app run on 3.12+.
Is there a difference between build os requirement and device os requirement to run an app?
Thank you
I am trying to Catch exceptions and log it.
Presently I have written a Utility method and Passing the Exception to it in the catch block and finally logging the application using MS Enterprise Library 4.0.
I want to know is there any other better way to log errors.
Show exception message in the same view for some type of exceptions for rest navigate to error page.
If someone can help me on this!
Navish
Hi, there.
I have a problem. I´m working on a little aplication of security, but i recived an array that means a bytes, and that bytes can be interpreted as a assembler code, so my cuestion is.... some one knows a library that a i can use on my aplication that can execute this bytes and show what it do, or something like that?
How can I convert a integer to it's byte representation. I want to take an integer and return a vector that has contains 1's and 0's of the integers byte representation.
I'm having a heck of a time trying to do this myself so I'd thought I would ask to see if there was a built in library function that could help.
Thanks!
I want to link the example with liba.so, and also the example is NOT using anything inside the liba.so ...
armlink --userlibpath /mylib/lib liba.so --fpic --shared -o example main.o demo.o
So finally I got nothing from: readelf -d example | grep NEEDED, it seems that armlink do some optimization to remove the linked library which is not really used by the "example" ? If I want to let the liba.so be always linked into example, what need I do with armlink options ?
Any information is very appreciated ;)
Hi Guys,
I'm trying to figure out the best C++ library/package for array manipulations in a manner of python. Basically I need a simplicity like this:
values = numpy.array(inp.data)
idx1 = numpy.where(values > -2.14)
idx2 = numpy.where(values < 2.0)
res1 = (values[idx1] - diff1)/1000
res1 = (values[idx2] - diff2)*1000
In python it's just 5 lines, but the simplest way in C++ i can think of is quite a number of nested loops. Pls advise..
What do you think, what events/changes/news were the most significant in C++ world
Like
templates in the arena, including STL, boost
new standards - C++0x, TR1
The Qt library
MS managed C++
MPI, openmp, PPL
may be new IDE :) : eclipse,
netbeans, codeblocks, codelite
I come from a Java background and have been using C# for the last year - So far the API docs I use are at MSDN (http://msdn.microsoft.com/en-us/library/ms132397.aspx). I tend to use the lightweight C# docs.
What annoys me about that is that I don't see one page with details of the class, a list of members, a list of methods and properties like I would with a Java API definition.
Is this possible?
Hi
I am developing an application for iphone that will pick an image from photo library and save it at some other place.Now in my application i will be using this image later on from that place.
So can anybody suggest the folder where should i save this image so that the application works perfectly on device also.
I would like to be able to take a snapshot of the screen of an attached iPhone from within a C# application I am writing for Windows, similar to how Xcode's Organizer takes snapshots.
I have heard that you can use ITunesMobileDevice.dll to communicate with an attached iPhone, but I don't know how to take snapshots using this library. Does anyone have an idea how to do this?