I have a F# record type and want one of the fields to be optional:
type legComponents = {
shares : int<share> ;
price : float<dollar / share> ;
totalInvestment : float<dollar> ;
}
type tradeLeg = {
id : int ;
tradeId : int ;
legActivity : LegActivityType ;
actedOn : DateTime ;
estimates : legComponents ;...
I'm using this program to record a sound in python:
http://stackoverflow.com/questions/892199/detect-record-audio-in-python/892293#892293
I want to change the program to start recording when sound is detected by the sound card input. Probably should compare the input sound level in chunk, but how do this?
...
How in SQL could you "zip" together records in separate tables (à la the UNIX paste(1) utility)?
For example, assuming two tables, A and B, like so:
A B
======== ====
Harkness unu
Costello du
Sato tri
Harper
Jones
How could you produce a single result set
NAME | NUM
===============
Harkness | unu
Cost...
The question more or less says it all. Given the following record structure:
type
TPerson = record
Name: string;
Age: Integer;
end;
PPerson = ^TPerson;
TPersonList = TList<TPerson>;
Is the following code valid?
procedure ReadPeople(DataSet: TDataSet; PersonList: TPersonList);
begin
PersonList.Coun...
In ActiveRecord how can we update a record without worrying/knowing primary key.
If I do
Address.update(15, :user_name => 'Samuel')
it corresponds to
UPDATE addresses set user_name = 'Samuel' where id = 15
but what if i want to do:
UPDATE addresses set user_name = 'Samuel' where cid = 15
what will be the ActiveRecord equival...
Hi, I need replace the same value for variables {place} and {other_place} in the record op.
#op{
action = [walk, from, {place}, to, {other_place}],
preconds = [[at, {place}, me], [on, floor, me],
[other_place, {place}, {other_place}]],
add_list = [[at, {other_place}, me]],
del_list = [[at, {place}, me]...
Hello!
When I run the code bellow in the virtual android (1.5) it works well, TextSwitcher shows first 80 chars from each txt file from /sdcard/documents/ , but when I run it on my Samsung Galaxy i7500 (1.6) there are no contents in TextSwitcher, however in LogCat there are FileNames of txt files.
My Code:
public void getTxtFile...
I have an entity called Person and it has a relationship called participatingGames, to another entity called GameParticipant.
I (apparently) can retrieve the number of matches in the GameParticipant entity using this simple code in the Person object I created from the entity in the model:
[self.participatingGames count];
However, I'd ...
Hey,
I want to imitate the webcam video record feature that yFrog has on it's site.
I know I need a flash media server or a red5 one, but I want to know what flash app do they use and what is available on the net to record videos using the users webcam.
Thanks
...
Why is t.b evaluated on every call? And is there any way how to make it evaluate only once?
type test =
{ a: float }
member x.b =
printfn "oh no"
x.a * 2.
let t = { a = 1. }
t.b
t.b
...
Hi All,
I tried the new Record type TTimeSpan in Delphi 2010. But I encourage a very strange problem.
assert(TTimeSpan.FromMilliseconds(5000).Milliseconds = 5000);
This assertion does not pass. The value of 'TTimeSpan.FromMilliseconds(5000).Milliseconds' is expected to be 5000, but it was 0.
I dig deeper:
function TTimeSpan.GetMil...
Hi all,
My AVAudioRecorderDelegate Interruptions methods doesn't get called.
I set the delegate.
What might be the issue here?
tnx
...
try
{
int val4 = Convert.ToInt32(tbGrupa.Text);
string MyConString = "Data Source=**;User ID=******;Password=*****";
OracleConnection conexiune = new OracleConnection(MyConString);
OracleCommand comanda = new OracleCommand();
comanda.Connection = conexiune;
conexiune.Open();
comanda.Transaction = conexiune.Beg...
I want to get an audio clip from the microphone on my iPhone/iPad or iPod Touch.
How do I transform it? Basically take the wavelength and modify it with sin (30) (or any angle).
...
Hello,
I have recorded video in kitchensink(phone >>
save to gallery >> from video). After recording video it was give message "Check your photo gallery", but when I have open photo gallery(phone >> photo gallery) recorded video was not there.I am not getting why this was happened.Can any body help me?
when I recorded video through:
...
I am currently trying to record compressed audio with the iPhone Simulator to a .caf container. More specifically I am using the IMA4 codec. It works fine if I have the Sample rate set to 44KHZ. But if I lower the setting to any other value (eg. 22KHZ, 16, or 8KHZ) the recorded file is being played back much slower?! This does not happen...
Hi Friends,
In my application i have done to record the voice and playing in the device.
Now i want to find the audio frequency of that recorded voice(While recording). How can i find?.I dont have any idea. I have downloaded "aurio Touch" program.But its too difficult to understand me. So is there any tutorials are avilable(in iPhone)?....
Ive got a project to make for a party, its called in holland a "Babbelbox".
its a computer with a webcam and microphone that can be used to make a kind of video log of everyone who wants to say something about the party.
But the problem is that i dont know where to start. ive made a kind of video show system in c but i cant save any da...
I'd like to create a record from a list of attributes - not the actual proplist, but for example from #xmlElement attributes. I've got a list of elements which I need to process and a list of possible attributes.
I could of course do something like:
create_record(Rec, [{attr1, Val}|As]) -> create_record(Rec#blah{attr1 = Val}, As);
crea...
hello everyone,
I've got an issue which I need to solve
I am recording audio (caf) on the iPhone, then I need to play this after recording.
I am doing this all right on the Simulator but the problem is that on the device, the audio played's volume is really low as the only output is the iPhone's mic and not the iPhone Speaker
In the ...