I'm making a sound for the iPhone and I'm interested in adding background music and background sounds.
Is CoreAudio right for the job?
And if so, how do I use it?
I'm doing a little string validation with findstr and its /r flag to allow for regular expressions. In particular I'd like to validate integers.
The regex
^[0-9][0-9]*$
worked fine for non-negative numbers but since I now support negative numbers as well I tried
^([1-9][0-9]*|0|-[1-9][0-9]*)$
for either positive or negative integers or zero.…
I just started building a small simple Website on ASP.NET MVC, in a page I am using a Partial view, the Partial View represents a simple Form which should be submitted on button click, and If I click the first Time it is submitted with success and does return my partial view with my validation Messages (if the content is invalid) but if I wish to…
Hello
I've just started with programming for the Blackberry device. I'm using version 5 of the API.
I'm building a very simple application which is just a browserfield. So far it's all working great. I can display my browserfield with the content I need.
The problem I'm having now is if the device doesn't have an active internet connection I…
There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotation can be implemented. It is especially difficult to implement such an application when starting in landscape mode is desired. The most common observed effect are scrambled…
I have an application which can make use of plugins which are loaded at runtime using dlopen. Each of the plugins defines a function toretrieve the plugin information which is defined using a common structure. Something like that:
struct plugin {
char *name;
char *app_version;
int app_verion_id;
char *plugin_version;
int…
I'm looking for a Haskell linear algebra library that has the following features:
Matrix multiplication
Matrix addition
Matrix transposition
Rank calculation
Matrix inversion is a plus
and has the following properties:
arbitrary element (scalar) types (in particular element types that are not Storable instances). My elements are an…
I've been digging around the NHibernate sources a little, trying to understand how NHibernate implements removing child elements from a collection. I think I've already found the answer, but I'd ideally like this to be confirmed by someone familiar with the matter.
So far I've found AbstractPersistentCollection (base class for all…
Hi all,
Can anyone recommend software or even a .net library to develop software, that will check for bounced emails and the reason for the bounce? I get bounced emails into a pop3 account that I can read then...
I need it to keep my user database clean from invalid email addresses and want to automate this (mark user as invalid…
I don't want to transform the ENTIRE context.
I'm making a game with Quartz, and I'm drawing my player with lines, rects and ellipses.
And then I have diamong.png which I rendered at 0,0 in the top left of the screen.
Problem is...
It renders upside down!
How would I rotate it 180 degrees?
Here's some of my code:
…
StructureMap has the ability to apply conventions when scanning. Thus IFoo = Foo, without explicit registration.
Is something simular available in AutoFac? Looked around and just can't find anything helpfull.
Thanks,
I'm currently trying to write a custom ListCellRenderer for a JList. Unfortunately, nearly all examples simply use DefaultListCellRenderer as a JLabel and be done with it; I needed a JPanel, however (since I need to display a little more info than just an icon and one line of text).
Now I have a problem with the…
I have just tried implementing a class where numerous length/count properties, etc. are uint instead of int. However, while doing so I noticed that it's actually painful to do so, like as if no one actually wants to do that.
Nearly everything that hands out an integral type returns an int, therefore requiring…
Map Reduce is a pattern that seems to get a lot of traction lately and I start to see it manifest in one of my projects that is focused on an event processing pipeline (iPhone Accelerometer and GPS data). I needed to built a lot of infrastructure for this project, in fact it overweighs the logic code…
Our company is sending out a lot of emails per day and planning to send even more in future. (thousands) Also there are mass mailouts as well in the ten thousands every now and then.
Anybody has experience with hotmail, yahoo (web.de, gmx.net) and similar webmail companies blocking your emails…
I'm just starting to learn Xpath, I'm trying to write a line of code that will select all of the actors in EACH movie parent (through Java!). Below, I have an example of one movie, but there are multiple <Movie> elements, each with <Actor> elements.
<Movie Genre = 'Other'>
…
I'm making an iPhone game where the main actor is a ball that rolls depending on the device's accelerometer rotation.
I haven't started on this part of the coding yet, but I was wondering if you guys had a nice way of solving this:
I tried looking a little into chipmunk, and I noticed that…
I'm just digging a bit into Haskell and I started by trying to compute the Phi-Coefficient of two words in a text. However, I ran into some very strange behaviour that I cannot explain.
After stripping everything down, I ended up with this code to reproduce the problem:
let sumTup =…
I'm working on a cross platform app for Android 2.2 and iOS 4.1 (dev devices).
On Android everything works fine (accelerometer and geolocation) even if it's a little laggy.
On iOS it's way more smooth, but he doesn't call the Phonegap functions. That's my JS code:
var watchID =…
Why does code alternative(1) compile without warnings, and code alternative(2) produce an "unchecked cast" warning?
Common for both:
class Foo<T> {
Foo( T [] arg ) {
}
}
Alternative (1):
class Bar<T> extends Foo<T> {
protected static final Object []…
I am currently writing a WPF application which does command-line argument handling in App.xaml.cs (which is necessary because the Startup event seems to be the recommended way of getting at those arguments). Based on the arguments I want to exit the program at that point already…
I have a .c file with the following
uint8_t buffer[32]
I have a .S file where I want to do the following
cpi r29, buffer+sizeof(buffer)
The second argument for cpi muste be an imidiate value not a location.
But unfortunetly sizeof() is a c operator.
Both files, are…
Hi.
I'm designing a little software in java.
Don't know the term/definition to what I'm doing, but I'm prompting commands from java to the terminal. Something like this:
Process process = Runtime.getRuntime().exec("command");
I've done this before in linux, and I used…