Displaying 20 results from an estimated 20 matches for "fileread".
Did you mean:
file_read
2007 Dec 07
0
weird behavior of mocking ruby class methods
Hello everyone:
After I played with Rspec for three months, I realized a weird behavior of
mocking ruby classes (e.g. File).
Please let me post a sample code before I point out the problems:
#file_reader.rb (to be tested)
class FileReader
def do_read
File.read(''asd.txt'')
end
end
#file_reader_spec.rb
describe FileReader, "do_read" do
it "should throw File Not Found on non-existent file" do
reader = FileReader.new()
lambda {
reader.do_read
}.sho...
2006 May 02
4
Indexing Speed?
Hi all,
Have been looking at lucene and ferret.
Have noticed that ferret takes ~463 seconds to index 200Mb of docs,
whereas lucene takes ~60 seconds.
I''m using the standard "get you started" sort of code provided by both
libraries.
My ruby code is: (abridged)
@index = Index::Index.new(:path => inIndexPath)
def createIndex(inRepositoryPath)
2004 Sep 10
2
Ogg FLAC
--- Ingo Ralf Blum <ingoralfblum@gmx.de> wrote:
> > currently flac sets all granulepos members of the ogg pages to 0,
> when
> > embedding a FLAC stream into an Ogg file. Is it possible to change
> this
> > behaviour to use a more reasonable value, e.g. the bytes written so
> far.
> So
> > when the first packets is 1000 bytes long it gets the granulepos
2004 Sep 10
0
Ogg FLAC
...tten, sample
> number, etc). I was going to forward this to vorbis-dev
> but haven't yet.
If you see the whole thing from a perspective of a filter graph, like
DirectShow or GStreamer, the number of bytes written so far is the best
solution. The graph for playing such a stream would be
FileReader -> OggDemultiplexer -> FLACDemultiplexer -> here we have PCM
audio data
Each filter has a capability to receive seek commands, which works upstream,
and each filter can deliver data by pushing it downstream. So lets look what
happens when you seek to a specific time. The FLAC demultiple...
2004 Sep 10
1
Ogg FLAC and granulepos
...oing to forward this to vorbis-dev
> > but haven't yet.
>
> If you see the whole thing from a perspective of a filter graph, like
> DirectShow or GStreamer, the number of bytes written so far is the
> best
> solution. The graph for playing such a stream would be
>
> FileReader -> OggDemultiplexer -> FLACDemultiplexer -> here we have
> PCM
> audio data
>
> Each filter has a capability to receive seek commands, which works
> upstream,
> and each filter can deliver data by pushing it downstream. So lets
> look what
> happens when you seek...
2010 Apr 14
1
Cannot connect matroska splitter to theora encoder
...net/files/)
I use the matroska splitter directshow filter v1.0.2.9 (
<http://www.matroska.org/downloads/windows.html>
http://www.matroska.org/downloads/windows.html)
And I use the xiph theroa encoder directshow filter version 0.82.16930
The graph I try to create looks like :
fileReader -> Matroska Splitter -> theoraEncoder.
When I try to connect theora Encoder to the Matroska splitter the
ConnectDirect() method returns an error Code (0x80040207) which is
interpreted as
"There is no common media type between theses two pins"
And here is the issue : My g...
2009 Mar 05
1
[PATCH 4/5] COM32: add trivial stat() function
...kefile
index 0cc4061..21379b4 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -32,7 +32,7 @@ LIBOBJS = \
sys/entry.o sys/exit.o sys/argv.o sys/times.o \
sys/fileinfo.o sys/opendev.o sys/read.o sys/write.o sys/ftell.o \
sys/close.o sys/open.o sys/fileread.o sys/fileclose.o \
- sys/isatty.o sys/fstat.o \
+ sys/isatty.o sys/fstat.o sys/stat.o \
\
sys/zfile.o sys/zfopen.o \
\
diff --git a/com32/lib/sys/...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...r.com/users/mfleming/syslinux.git elflink
Matt Fleming (43):
ldlinux: Automatically lookup file extension
core: Partial revert of commit 9333426b and unify lmalloc()
getcwd.c: Include core_getcwd() prototype
sys/open.c: Fix building warnings from missing prototype
sys/fileread.c: Fix build warning from missing prototype
sys/fileclose.c: Fix build warning from missing prototype
syslinux/idle.c: Fix build warnings from missing prototypes
elflink: Delete dump_elf_module()
elflink: Fix build warnings
elflink: Fix module_load() compiler warnings...
2010 Mar 18
0
SAMBA & Fuse
...n the file is read. So the
size is not known in advance. The file has the direct_io flag set and a
read simply returns nothing when the file is read beyond the content (as
suggested by the fuse development wiki). This works perfectly under
Linux but it doesn't in windows (using the api function fileread). Those
files are always empty. I would appreciate if someone could give me a
hint how to read such a file file using the windows api.
regards
Marten
2009 Jun 10
4
Wine path-association
hello.
I am trying to install an exe-file in the Program-Path of an individual Wine-Prefix. This exe-file reads an Inifile, which is in the same Directory.
When I use Winefile to open the .exe, the inifile is read correctly.
When I use it in a .desktop file with the order below, it does not work.
Code:
env WINEPREFIX "/opt/WPrefix" wine "C:\Program Files\Test\test.exe"
2007 Oct 08
16
Fileserver performance tests
...r = 20.0, avg depth = 2.3, mbytes=122
12746: 47.218: Removed any existing fileset bigfileset in 1 seconds
12746: 47.218: Creating fileset bigfileset...
12746: 60.222: Preallocated 1000 of 1000 of fileset bigfileset in 14 seconds
12746: 60.222: Creating/pre-allocating files
12746: 60.222: Starting 1 filereader instances
12751: 61.228: Starting 100 filereaderthread threads
12746: 64.228: Running...
12746: 65.238: Run took 1 seconds...
12746: 65.266: Per-Operation Breakdown
statfile1 988ops/s 0.0mb/s 0.0ms/op 22us/op-cpu
deletefile1 991ops/s 0.0mb/s 0.0ms...
2016 Apr 15
1
Need Help to solve an Error in R
...[mailto:31sharmajittu1991 at gmail.com]
Sent: Friday, April 15, 2016 2:46 PM
To: PIKAL Petr <petr.pikal at precheza.cz>
Subject: Re: [R] Need Help to solve an Error in R
First of all Thank you so much for your reply.
I used this code
library(ExiMiR)
make.gal.env(galname='galenv')
fileRead <- ReadExi(txtfile.path = getwd())
after this the error msg prints -
Read header information
Read C:/Users/Kirti/Documents/working/Exiqon/GSM1302311_0_Exiqon_14173049_S01.txt
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt&q...
2013 Jun 29
0
Syslinux 6.00 released
...ys/fileinfo.o
/tmp/syslinux/efi64/com32/lib/sys/opendev.o
/tmp/syslinux/efi64/com32/lib/sys/read.o
/tmp/syslinux/efi64/com32/lib/sys/write.o
/tmp/syslinux/efi64/com32/lib/sys/ftell.o
/tmp/syslinux/efi64/com32/lib/sys/close.o
/tmp/syslinux/efi64/com32/lib/sys/open.o
/tmp/syslinux/efi64/com32/lib/sys/fileread.o
/tmp/syslinux/efi64/com32/lib/sys/fileclose.o
/tmp/syslinux/efi64/com32/lib/sys/openmem.o
/tmp/syslinux/efi64/com32/lib/sys/isatty.o
/tmp/syslinux/efi64/com32/lib/sys/fstat.o
/tmp/syslinux/efi64/com32/lib/dprintf.o
/tmp/syslinux/efi64/com32/lib/vdprintf.o
/tmp/syslinux/efi64/com32/lib/syslinux/id...
2011 Oct 15
6
winamp errors
...Deferred out_wave
PE 8430000- 8438000 Deferred albumart.w5s
PE 8440000- 846e000 Deferred auth.w5s
PE 8470000- 8477000 Deferred bmp.w5s
PE 8490000- 849e000 Deferred devices.w5s
PE 84a0000- 84a7000 Deferred dlmgr.w5s
PE 84c0000- 84c6000 Deferred filereader.w5s
PE 84d0000- 84d8000 Deferred gif.w5s
PE 84e0000- 84e7000 Deferred gracenote.w5s
PE 85a0000- 863d000 Deferred jnetlib.w5s
PE 8640000- 8668000 Deferred jpeg.w5s
PE 86b0000- 86fe000 Deferred ombrowser.w5s
PE 8710000- 8729000 Deferred playlist.w5s
P...
2016 Apr 15
0
Need Help to solve an Error in R
...April 15, 2016 2:46 PM
> To: PIKAL Petr <petr.pikal at precheza.cz>
> Subject: Re: [R] Need Help to solve an Error in R
>
> First of all Thank you so much for your reply.
>
> I used this code
>
> library(ExiMiR)
> make.gal.env(galname='galenv')
>
> fileRead <- ReadExi(txtfile.path = getwd())
>
> after this the error msg prints -
>
> Read header information
> Read C:/Users/Kirti/Documents/working/Exiqon/GSM1302311_0_Exiqon_14173049_S01.txt
> Error in file(file, "rt") : cannot open the connection
> In addition: Warnin...
2013 Jun 29
6
Syslinux 6.00 released
On Sat, 29 Jun, at 01:57:58AM, Igor Sverkos wrote:
> Hi,
>
> Matt Fleming wrote:
> > On Tue, 25 Jun, at 01:52:00PM, Helmut Hullen wrote:
> >> Thanks - now it crashes later ...
> >
> > What crash are you seeing?
> >
> >> I don't have the ia64 files which are needed for a complete binary. But
> >> maybe that's only my special
2006 Feb 20
46
Ruby + Apache Lucene using XMLRPC?
Please excuse me if this has been answered before.
Is there a "how-to" guide or a walkthrough on integrating Lucene with ROR via XMLRPC?
I got Ferret to work but I am worried that it''s not going to be as scalable.
I highly appreciate your assistance.
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is
marked as an RFC because firstly it depends on the RPMsg API series
and secondly it is currently being reviewed on ALSA and SOF mailing
lists, but any early comments from virtualisation developers would be
highly appreciated too!
Thanks
Guennadi
[1]
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is
marked as an RFC because firstly it depends on the RPMsg API series
and secondly it is currently being reviewed on ALSA and SOF mailing
lists, but any early comments from virtualisation developers would be
highly appreciated too!
Thanks
Guennadi
[1]
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and