I've been a c++ programmer for 10 years, i'm used to just creating libraries and then linking to them from my existing project. However in java, i have 2 projects, one is my game engine, the other is the test environment that i would like to use, here is how it is structured:
com.logic.engine
com.logic.testapp
yet in my test app, i ca...
Hi, I was wondering,
what is the best way to choose for managing text/binary content on filesystem? Typically when building web applications with a lot of multimedia binaries and other various text based content stored on filesystem, JDK 6 java.io is still too much low level.
It will change with java 7 as you can see here thanks to n...
I'm was trying to write a dll library in Delphi wih a function that creates an instance of a TFrame descendant and returns it. But when I imported this function in an application, every time I called it I would get an exception like "the 'xxx' control has no parent window". I'm not 100% sure, but the exception appeared in the constructor...
I am looking for a best way to trigger windows application automation from Java application. So far I have been using Groovy and Scriptom library to access COM native interface. It is rather straight forward approach, but does not scale well (writing configuration for each of application, reading brilliant COM documentations, testing, te...
magento comes bundled with scriptaculous so i figured i'd use those for a simple slideshow with navigation to jump between slides. -what a mistake, i can't find anything other than pause/play controls. Why?
EDIT:
To clarify what i mean by "jump between slides" is - i'm looking for buttons like 1 2 3 4 NOT pause, prev, next. Thanks!
...
I am looking for a library which would simplify the process of copying parts of the code from one project to another. Copying of certain parts of the code which belong to the same file is not required. I am aware that there exists some code generators which would enable me to build the generated code from scratch programatically, but I a...
I'm writing a light Unicode library, but I'm stuck as to whether to write it for C, or C++? C++ has the benefit of operator overloads and better class handling, but many programs are written in plain C and it would seem nice to be compatible with C. How should I decide what language to write this for?
By the way, I know that there are m...
Hi experts,
for my opensource project I'm looking for a library to create a interactive menu on command line interface. Prefer java 1.5 to run it on any win/linux/mac platform.
It would be nice this lib will use the Builder pattern.
Short specification:
Your are in my command line menu
1) create a new item
2) view the item
3) let to t...
Coming from a background in Clojure, I am taken with the potential that its pre-/post-conditions provide as a basis for design by contract:
;; sqr.clj
(defn sqr [n]
{:pre [(not= 0 n) (number? n)]
:post [(pos? %) (number? %)]}
(* n n))
(sqr 10)
;=> 100
(sqr 0)
; Assertion error
Is there a similar pre/post capability in Commo...
I am planning to write a program that makes calls to cdrecord. (I am a beginner, a beginner trying to "scratch an itch") The program would be written in C++. I have identified that I need to be able to run cdrecord in order for this to work.
cdrecord is written in C. However the documentation on using it is from the command line. The so...
I wonder what's the best approach for using third party js libraries on a control library.
If the library uses (let's say) jquery and jquery-ui seems wrong to me to include those on the control library since, if the page using the controls already reference them, they will downloaded twice (the embedded version and the non-embedded vers...
Hi,
I try to implement a push notification service in my iPhone app... Do you have any valuable bookmarks on this subject ? (like tutorials or libs for client or server side)
Here is what i found...
Server side libs :
http://code.google.com/p/apns-php/ (PHP)
http://code.google.com/p/easyapns/ (PHP)
http://github.com/simonwhitaker/...
The way automatic variables/local variables go on to stack,dynamically allocated objects/data type go on to heap; where is the memory for library function calls (say printf()) allocated. In which segment?
...
I am developing a unix console application on OS X. I just updated three statically linked libraries (hdf5 and its dependents szip and z). After a rebuild all, the application exits code 1 immediately after launch. I'm unaware of how to explore the problem further in gdb because nothing is on the stack by the time the app exits. I di...
Hi,
I’m trying to upload a video of size 100MB through Asset Library. But when i try to use "- (NSUInteger)getBytes:(uint8_t )buffer fromOffset:(long long)offset length:(NSUInteger)length error:(NSError *)error” of ALAssetRepresentation i get memory full error. I also need to put the data in buffer to NSData. How can i achieve that?
...
Hello, I'm new to SWIG and I'm trying to make a PHP5 wrapper around this library
https://sourceforge.net/projects/zinnia/
The project includes the interface file zinnia.i
Following www.swig.org/Doc1.3/Php.html
I run
swig -php -c++ zinnia.i
gcc `php-config --includes` -fpic -c zinnia_wrap.cpp
gcc -shared -L/usr/local/lib/ -lzinnia -o ...
I want to know what type of CPU (Intel Pentium V, AMD Athlon Barton etc.) is built in and which features it has (SSE, MMX, Stepping etc.). Is there some ready-made Java-library for this?
...
How to start with creating a program to format C and their derived code into .net style formatted code so that if I input any program. This program can recognize and reformat by properly adding indentation and other things.
...
I have a C++ library (.h only) that contains the implementation of a data structure and I'd like to use it in my iPhone app.
Firstly, I wrote a wrapper in objective-C++ as a class that, through composition, has an ivar of the C++ class. I then was 'obliged' to change the wrapper class extension to .mm, and it seemed fine. But then I ha...
Greetings,
I hope someone has the patience to read this. I have a setup at hand, which is slightly confusing me. I have a C source code directory generated by an Eiffel Compiler.
I want to use this output from Java, so I need a DLL for JNI, in which I'll implement some JNI functions. When I compile the C code, it gives me a static libr...