Displaying 20 results from an estimated 90 matches similar to: "JSON data not decoded in Rails"
2006 Jul 24
4
how to get your controller to close a browser popup window
While editing a record I need to have a link to create a new record in
another scaffold.
I''ve done this by using a popup window
<%= link_to("Add new Person", "/person/new", :popup => [''window_name'',
''width=600,height=600'']) %>
It all works great - but when the save is done I want to kill the popup
window.
2009 Nov 28
3
When and Where does is the Method Override parsed?
I''m trying to figure out when and where the method override is parsed and
dealt with.
This works
curl ''http://www.whatsayye.com/questions/3.json'' \
-X "POST" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-HTTP-Method-Override: PUT" \
-d "{
2006 May 24
5
best way to return JSON?
I''m using Ajax.Updater to update a select element, and have just discovered
that IE doesn''t like having its innerHTML set. I figure instead of a bunch
of option tags I can return JSON and parse it to add the options, but I''m
not quite sure of the best way to do this.... or any way to do it really :)
Could someone point this out to me? Or am I using a totally antiquated
2015 May 21
2
Re: [nbdkit python]: unable to locate modules
On Thu, May 21, 2015 at 09:32:48AM +0100, Richard W.M. Jones wrote:
> On Thu, May 21, 2015 at 12:10:13AM -0400, Bill Speirs wrote:
> > I'm working on a python plugin for nbdkit that treats Google Cloud
> > Storage as a block device. I have a library, gcs.py, that implements
> > simple commands: list, get, put, delete; source is here:
> >
2006 Aug 16
2
File download logging
Is there any way of determining whether a file has been successfully
downloaded by a user or to put it another way, whether a dowload was
interrupted?
--
Posted via http://www.ruby-forum.com/.
2015 May 21
2
[nbdkit python]: unable to locate modules
I'm working on a python plugin for nbdkit that treats Google Cloud
Storage as a block device. I have a library, gcs.py, that implements
simple commands: list, get, put, delete; source is here:
https://github.com/wspeirs/cldblkdev/blob/master/gcs.py
When I attempt to run nbdkit I get the following error:
nbdkit python script=/home/wspeirs/src/cldblkdev/cldblkdev.py
Traceback (most recent call
2010 May 06
0
Contact header gets url decoded?
I'm migrating an application running on a fairly old 1.4 (or 1.2?)
version of Asterisk to some boxes running 1.6.0.27
The application takes an inbound INVITE like:
mumble-fratz-sip%3Afoo%40bar.com at asteriskbox.abc.com:5062
The older version of asterisk replies with a 200 OK and a Contact:
header that looks like:
Contact: <sip:mumble-fratz-sip%3Afoo%40bar.com at
2001 May 12
1
Incorrectly encoded (or decoded) tones
This wav produces a bit of audible static when encoded at the highest
bitrate vorbis will allow me to encode at (30.7kbps avg.):
http://staff.xmms.org/zinx/misc/5551234.wav.gz
An encoded version, with the bitrate set to approximate 128kbps
(I think it output to 29 some odd kbps):
http://staff.xmms.org/zinx/misc/5551234.ogg
This is with the latest CVS tree as of Sat May 12 10:06:17 UTC
2016 Dec 13
0
Fwd: Microsoft Catalog Files and Digital Signatures decoded
[Forwarding to PUBLIC mailing list]
On Fri, Nov 25, 2016 at 11:02:29AM +0100, Andreas Schneider wrote:
> https://github.com/cryptomilk/parsemscat
Andreas wrote a library for reading MSFT catalog files and digital
signatures, and the question (for the list) is whether we can use this
in virt-v2v to parse the virtio driver catalogs.
It's a C library, so that's a good start.
Rich.
--
2004 Aug 06
0
artefacts in Speex decoded signal
Dear all,
I encoded and decoded some files using speex codec and I find out with than
when using the original raw file and coding it in NB with different bit
rate, complexity or with/without enhancement some kind of slight artefact (a
strange low level sound appears) is created at t=1.12 s. This is just before
an attack which is present in the signal.
I did not try to solve the problems but if
2008 Nov 14
0
decoded sample is completely differen from original one
Hi,
Please start with sampleenc.c/sampledec.c from the manual.
Jean-Marc
Andre Kirchner a ?crit :
> Hi all,
>
> I have just started playing with speex, and come up with the following code, which just encode a frame of 160 shorts, and the decode it.
>
> For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a
2009 Feb 13
1
Decoded data all 0s
I am encoding and decoding a stream of data. The data comes in in 320 byte packets, these are encoded and I get back 38 from the speex_bits_write method. I am under the impression that this means 38 bytes got written to my output buffer.
The data to this point looks fine, but when I put the data through the decoder all the bytes come out as 0.
So my first question is why is this happening, and
2009 Sep 16
1
noise from decoded file
Hy,
can anyone recognize that pixel noise in the playbackfile
recorder file:
http://www.megafileupload.com/en/file/135429/FMODTestRecording-wav.html
playback file:
http://www.megafileupload.com/en/file/135431/FMODTestPlayback-wav.html
i have no idea what that is anymore. i try everything i know, from changing
the way of copying data to different encode/decode algorithms
the recorded file is
2010 Apr 14
2
Decoded output buffer size
Hi,
in a VoIP application, the endpoint A send speex payload to B.
B doesn't know how A acquire audio, it only know that the channel is
narrowband so, how can B know the size of the output buffer to pass to
the speex_decode()?
Thanks,
Daniele.
2010 Apr 14
0
Decoded output buffer size
On 14 April 2010 23:50, Daniele Barzotti
<daniele.barzotti at eurocomtel.com> wrote:
> Il 14/04/2010 14:37, Randy Yates wrote:
>>
>> Usually a buffer is one frame of data, and a frame is 20 milliseconds.
>> Since the sample rate is typically 8 kHz in narrowband mode, this
>> corresponds to a buffer size of 160 samples.
>
> Hi Randy, thanks for the reply.
>
2010 Apr 15
0
Decoded output buffer size
On 15 April 2010 17:55, Daniele Barzotti
<daniele.barzotti at eurocomtel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Il 15/04/2010 01:30, Conrad Parker wrote:
>>
>>> But how can I know the size of each speex frame into a multiframe payload?
>>
>> use speex_bit_read_from() just once on the packet, then call
>> speex_decode()
2012 Apr 07
1
The decoded voice is just noise and totally different from the original !
Hi all speex developers,
??? I have encoded 10 seconds buffer of Mic voice (raw) using speex on an embedded device, then transmitted it to a PC where i decoded the voice,in a way similar to the sampleenc.c and sampledec.c on website,
?BUT my problem is that the decoded voice is totally different from the original,what i hear is just noise !!
what is possible to be the reason ?
Any help is
2004 Sep 10
0
ERROR: mismatch in decoded data, verify FAILED!
On Sun, Jun 24, 2001 at 07:45:56PM +0200, kai@adminhell.org wrote:
> I also had this verify error encoding a wav I ripped from a CD. I didn't
> report this as it happended on flac running on debian linux -current unstable.
> This error happened only with one track of a CD I was ripping.
>
> Another reason for me not reporting this was, that flac 1.0 running on OpenBSD
> 2.9
2004 Sep 10
0
ERROR: mismatch in decoded data, verify FAILED!
On Mon, Jun 25, 2001 at 01:54:02AM +0200, kai@adminhell.org wrote:
> On 24-Jun-2001 Matt Zimmerman wrote:
> > Can you try trimming down the WAV file
> > (e.g., with a program like xwave) until you have the smallest chunk which
> > still triggers the failure?
> I tried to clip both ends of the original wav, but the error was only
> reproduceable, when I cut of the end of
2004 Sep 10
0
ERROR: mismatch in decoded data, verify FAILED!
On Sun, Jun 24, 2001 at 02:30:56PM -0700, Josh Coalson wrote:
> There have been reports of -9 using huge amounts of memory. -9 is really
> theoretical, but people always seem to want to try the max setting. Anyway,
> that's not an excuse but figuring out why -9 is using so much memory is lower
> on my list than other stuff. -8 should get within 0.01% of -9 and is pretty
>