wrapper

Generate Info (wrapper) Class from stored procedure

Hello everybody I am in a crucial project and I am trying to speed up the development phase by using codesmith for generating the business class DAL and info class for the tables of my project. There are about 50 tables with relationships parent child many to many and for retrieving data I have to code several inner joins in stored pr...

Is there any Python wrapper around cron ?

I'm looking for a wrapper around cron. I've stumbled upon PyCron but it's a Python implementation, not a wrapper. Do you know any good cron Python wrapper ? If not, did you test PyCron, and what can you tell about it ? //EDIT (As an answer to comment asking for more details): I am looking for something to set a cron job in a pythoni...

Extra parameter for Django models

Hello, With Django models, I want to achieve this: class Foo(models.Model): name = models.CharField(max_length=50) #wrapping the save function, including extra tasks def save(self, *args, **kwargs): super(Foo, self).save(*args, **kwargs) if extra_param: ...do task 1 else: ...

How to run a python script without specifying the file extension (cross platform solution)?

Let's say that we have a Python script do.py and we want to be able to call it without extension, like do or ./do. If we rename the file from do.py to do and assure we have a valid shebang line it will work for all platforms but Windows. On Windows there is no way of executing file without extension. On Windows, if we keep the origina...

Create C# bindings for complex system of C++ classes?

I have existing C++ lib containing many different classes working together. Some example usage should include something like passing an instance of one class to constructor/method of another class. I am planning to provide a C# binding for these C++ classes using C++/CLI therefore I don't have to port the whole C++ code. I can already...

Unable to perform cast

Hi I need to have a wrapper class that exposes some properties of my entity class called ProfileEntity. I tried doing it by deriving from this entity and then creating properties that return specific entity properties, but it says I cannot cast from ProfileEntity to ProfileEntityWrapper. When I try to put the return values of a method...

C# wrapper and Callbacks

I'm in the process of writing a C# wrapper for Dallmeier Common API light (Camera & Surviellance systems) and I've never written a wrapper before, but I have used the Canon EDSDK C# wrapper. So I'm using the Canon wrapper as a guide to writing the Dallmeier wrapper. I'm currently having issues with wrapping a callback. In the API manual...

Python, SWIG and other strange things

hey, I have a firmware for an USB module I can already control by visual C. Now I want to port this to python. for this I need the octopus library which is written in c. I found a file called octopus_wrap which was created by SWIG! then I found a makefile which says: python2.5: swig -python -outdir ./ ../octopus.i gcc ...

PHP extension wrapper for C++

Hi guys, I am new in this area of writing extension for PHP, however I need to create a wrapper class for C++ to PHP. I am currently using PHP 5.2.13. I read this article http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension, a tutorial on how I could proceed to wrap C++ class to communicate with PHP Zend however it ...

How to create a variadic (with variable length argument list) function wrapper in JavaScript

The intention is to build a wrapper to provide a consistent method of calling native functions with variable arity on various script hosts - so that the script could be executed in a browser as well as in the Windows Script Host or other script engines. I am aware of 3 methods of which each one has its own drawbacks. eval() method: fu...

c# wrapper and issue with protected memory.

So I've now progressed to having an almost functioning wrapper. Other posts regarding my wrapper issues are: http://stackoverflow.com/questions/2430089/c-wrapper-and-callbacks & http://stackoverflow.com/questions/2444687/c-wrapper-for-array-of-three-pointers I use the wrapper to establish a connection to the Dallmeier using the follow...

Is there any LAME c++ wraper\simplifier (working on Linux Mac and Win from pure code)?

So I want to create simple pcm to mp3 C++ project. I want it to use LAME. I love LAME but It is realy biiig. so I need some kind of OpenSource working from pure code with pure lame code workflow simplifier. So to say I give it File with PCM and DEST file. Call something like LameSimple.ToMP3(file with PCM, File with MP3 , 44100, 16, MP...

pageTest C# wrapper

Hi everyone, I would like to obtain the results retrieved from pageTest execution (core @ CVS) from a C# project (library or console). pageTest source code shows a dynamic library project (generating a DLL file) and also an application project (generating an EXE file). Do anybody have previous experience related to this issue? Any tip...

Speex in Python

How can I use Speex to encode/decode from within python? Are there any wrappers? I found an old project pySpeex but it is obsolete now (requires Python 2.2). ...

Possible apache/mysql/php wrapper?

I was tasked with writing a smallish program for data input and manipulation. My language of choice happens to be PHP. I have written out the program/site it all works fine is easily portable and everything but have one question. Is there anyway to wrap up apache/mysql/php into a bundle of one exe? I know of MoWes Portable and other opti...

C++ wrapper for posix and linux specific functions

Hi Do you know about any good library wrapping posix and linux functions and structures ( eg. sockets or file descriptors ) into C++ classes? For example I'm thinking about a base FileDescriptor class and some inheriting classes ( unix sockets etc ) with methods like write, read or even some syscalls ( sendfile, splice ) - all throwing ...

Where should I put my breakpoint to check XML Response string from a web service?

Hi, You know, once you add a web reference to a webservice a wrapper code is generated by Visuel Studio. I was wondering if there is a method (or property) which is generated by Visual Studio whatever web service you add to your project so that I can put a breakpoint there and once the debugger stops there, I can simply read the respon...

What's difference between primitive and wrapper class in JPA (Hibernate) column mappings?

For instance, there’s an integer column in a database table. Then in java model, it can be mapped both as primitive int and Integer. My question is what's difference between the int and Integer in this case? And performance concern? Thanks! ...

PHP mysqli wrapper: passing by reference with __call() and call_user_func_array()

Hi everyone. I'm a long running fan of stackoverflow, first time poster. I'd love to see if someone can help me with this. Let me dig in with a little code, then I'll explain my problem. I have the following wrapper classes: class mysqli_wrapper { private static $mysqli_obj; function __construct() // Recycles the mysqli object ...

Making a Text-To-Speech Wrapper in Android

I am attempting to create a wrapper class for Google Android's Text-To-Speech functionality. However, I'm having trouble finding a way to have the system pause until after the onInit function has finished. Attached at the bottom is something of a solution I created based on what I found here: http://stackoverflow.com/questions/1160876/...