Hi,
I'm working on an application that processes audio data.
I'm using java (I've added MP3SPI, Jlayer, and Tritonus). I'm extracting the audio data from a .wav file to a byte array. The audio data samples I'm working with are 16 bits stereo.
According to what I've read the format for one sample is:
AABBCCDD
where AABB represents l...
I have a file with contents
abc
def
high
lmn
...
...
There are more than 2 million lines in the files.
I want to randomly sample lines from the files and output 50K lines. Any thoughts on how to approach this problem? I was thinking along the lines of Perl and its rand function (Or a handy shell command would be neat).
Related (Poss...
I want to store additional information on my users (address, phone).
Should I extend the registration page on the sample mvc template or should I set up a separate "profile" table and have that be a separate page?
It seems nice to do it on the registration page, but I am not sure if there are issues playing around with the "aspnet_"......
Hi all,
I've got myself a copy of Rakudo and I'd love to give it a test drive. After looking around the Internet I found some code snippets of cool Perl 6 stuff, but no complete scripts. Any sites that make practical Perl 6 scripts available would be appreciated.
Thanks guys, Ehtyar.
...
I just downloaded and built the libraries/executables of Google Performance Tools. Before I run the CPU profiler on the application that I want to investigate, I want to learn how to use the tools properly perhaps on a sample application. What would be a good example to run the Google CPU profiler on? Thanks in advance.
...
I'm looking for a simple open source, or reference application that I could use for testing some Java servers. The primary server would be Tomcat, and the database backend is MySQL. Are there some reasonable sample applications out there that are fairly easy to get up and running with?
The ideal application would be fairly stateless in ...
What is the best text-block to use to test out programming fonts and syntax highlighting?
...
Hi.
I'm trying the following code http://code.google.com/apis/ajax/playground/#change_the_playing_video
It works well when runned from the playground page. But if I create a new localfile with the source code provided as sample I get the following error:
ytplayer is not defined
at line 40:
if(ytplayer) {
ytplayer.loadVideoBy...
Apple pulled the plug to the sample. It is no longer distributed... Anyone got a link to a copy of the sample?
...
When I replace the tiny_anim.x animation file with another one in the DirectX multianimation demo I get the following error:
Assertion failure! (s:\gfx_sdknovember08\windows\directx\dxg\d3d11\d3dx9\anim\loadxh.cpp 1392): D3DXFrameNumNamedMatrices(pframeRoot) == plc->cNamedMatrices
D3DX: ID3DXAnimationController::RegisterAnimationOutput:...
Anyone want to share an Xcode project that has MGTwitterEngine in it? Mine won't compile. Are there certain project settings to set? I just made a stock tab bar app for iPhone and added the MGTwitterEngine files. Tons of compiler errors. What am I missing?
...
Hi,
I am working on a Boost thread pool.
I have a structure like this:
class SimThreadPool
{
static SimThreadPool* getInstance();
boost::threadpool::prio_pool& getThreadPool() { return mThreadPool; }
simTerrain::SimThreadPool::SimThreadPool()
: mThreadPool(boost::threadpool::fifo_pool(1))
{
}
boost::thre...
I'm not even sure how to properly frame (or title) this question, so apologies in advance.
I'm looking for a "starter kit" for a super basic ASP.NET website that is data driven via SQL Server.
Background: I find myself recreating the simple structure where there is a database, then I make a form to put data into it or update records an...
I'm looking for an open-source VB.NET app that demonstrates a lot of .NET's power, ideally something that works fully offline. Maybe some of you have encountered an amazing utility app on CodeProject?
...
Hi ,
I am newbie and i wanted to create a sample login application which accepts username name and password and validates the same after licking on a submit button.
i have created userInterface screen and i wanted to do the validation and i am struck with that. i wanted to check if the username and password are same and if so display a...
Where can I find samples of C# code written by top programmers for learning ?
thanks,
...
I am trying to learn WPF and xaml and am writing a cad style geometry app for my kids. Does anyone know of an existing example written in VB.net? C# is fine as well. Thanks!
EDIT:
Any thoughts/examples on how to structure such an app? TIA
...
I need a database tool where i can easily add information to it.
Example:
I have 2 tables, customers and invoices. The database tool must show me input fields of the customer and invoices. invoice has a foreign key to customer. The input fields of invoices must have a dropdown where i can select the customer so i won't have to copy pas...
I have following script.
I dont know how to create new database in sql server 2005.
I run following scirpt, and it create tables under model instead of seperate databse. it look massy.
how can i create seperate databse.
I am copy some script here for your adive and course of action.
-----------------------------------------------------...
I'm just barely after 2 hours of trying to force it to work and looking for answers online.
How in the world do you import a sample gwt application into your eclipse and make it run?
by the way, I cannot find "projectCreator.cmd" anywhere in my files, where is it suppose to be assumming i've used eclipse plugin updater to d/l gwt 1.7....