Hi, excuse me if this question
has already be done...
What's the GLES2/gl2.h equivalent for using
GLSL shading language ?
Is there another SDK, or I can use GLES as well ?
Thanks in advance,
> Hi, excuse me if this question
> has already be done...
> What's the GLES2/gl2.h equivalent for using
> GLSL shading language ?
> Is there another SDK, or I can use GLES as well ?
In OpenGL 2.0, it's an extension. See this tutorial:
GLSL is available right now through 4 extensions:
Gernot Frisch ha scritto:
> In OpenGL 2.0, it's an extension. See this tutorial:
> GLSL is available right now through 4 extensions:
Thank you, at last I used the GLEW library...that
at last just exploits those extensions!
how to tell if a file is inary file or ascii file? Hello,
Is there a way to find if a file is a binary executable file or an ASCII
executable file in unix? especially, if I have a file with
permission of --x--x--x.
> Is there a way to find if a file is a binary executable file or an ASCII
> executable file in unix? especially, if I have a file with
> permission of --x--x--x.
If in a shell you could start with man file
On Wed, 14 Jan 2004 05:31:11 +0000, peter wrote:
> Is there a way to find if a file is a binary executable file or an ASCII
> executable file in...
Unifying files and no files. Is there an idiom that folds the no-files case into the files-exist case so
they can be handled with a single mechanism?
$ bash --version
GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$ chmod a-x *
chmod: cannot access `*': No such file or directory
I could do this
$ chmod a-x * 2>/dev/null
but that just hides the error; there are still two cases (the exit status tells
the tale). I could do this
$ chmod a-x * 2>/dev/null ; :
but that's more hiding. This works
FAQ 5.2: How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file? This message is one of several periodic postings to comp.lang.perl.misc
intended to make it easier for perl programmers to find answers to
common questions. The core of this message represents an excerpt
from the documentation provided with Perl.
5.2: How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file?
Use the Tie::File module, which is included in the standard distribution
since Perl 5.8.0.
Exporting files in a multibands file Hi all,
I have opened files (same dimension and type) that are stored in
memory in ENVI.
I would like now to export all these layers inside a unique file in
the following formats:
Exporting in done in batch mode ie. I am not using the graphical
I am using ENVI_OUTPUT_TO_EXTERNAL_FORMAT with respectively
and FID = arrays of my file identifiers
POS = lindgen(number of Bands)
Any suggestions why this does not work and copy the first layer into
all the bands.
pdf file to text file ??
I am working on VC++ 6.0.
In my application, I need to convert PDF file to text (ASCII) file
Can I achieve this task without using PDF SDK.
Is there any commandline EXE available that can perform such task..
Thanks in Advance.
> I am working on VC++ 6.0.
> In my application, I need to convert PDF file to text (ASCII) file
> Can I achieve this task without using PDF SDK.
> Is there any commandline EXE available that can perform such task..
pdftotext in the xpdf package. Have a...
update file in a flash file Hi,
Have some Solaris 9 flash files which work good.
But need to change (update) some config within.
How can I do this please?
> Have some Solaris 9 flash files which work good.
> But need to change (update) some config within.
flar -s -fd /var/tmp/flar s9.flar
flar -c -d /var/tmp/flar s9-new.flar
Sth. wrong with File.file? (or with me) Hi!
I wrote this code to walk a file tree from a given starting directory:
def each_dir(start_dir, &action)
files = Dir.new(start_dir).to_a[2..-1] #remove . and ..
files.each do |f|
unless File.file? f then
each_dir(start_dir << "\\" << f, &action)
But this doesn't work properly because it seems like File.file?
I know RTFS ;-) but I couldn't find it :-((
Can someone guide me?
>>>>> "M" == Michael Weller <firstname.lastname@example.org> writes:
M> files = Dir.new(start...
MATLAB files (M-files) Hello All,
Could anyone explain with me why MATLAB files (M-files)
execute slower than compiled written in other languages such
as C,C++ and Fortran?
Give me the significant slow of M-files to be compiled
Open file with File Dialog I know how to use the File Dialog control but I'm not sure how to
actually open the file that is selected. Here's my code:
'Create a FileDialog object as a File Picker dialog box.
Set fd = Application.FileDialog(msoFileDialogOpen)
' Select Excel file for import
If .Show = True Then
.AllowMultiSelect = False
'Find the selected file name
For Each varFile In .SelectedItems
strFile = varFile
MsgBox "Select a file."
So once I have the name of...
File name from file description Hi,
I am new to this group. I had just one small question
Is it possible to get the file name back from file descriptor.
I have written a function to overload the libc write using LD_PRELOAD
my_write(int fd, void *buf, size_t nbytes)
In this function is it possible to find the filename from "fd".
> I am new to this group. I had just one small question
> Is it possible to get the file name back from file descriptor.
No. There is no such thing as "the filename". On some Unixes you can
get a fil...
cab files and jar files hellow friends,
In my product , to sign a file i need a cab file to
be download each time
when the page is loaded .Its working in IE5, but in case of Netscape
browsers jar files are downloading but it is not working.
What i want to know is, whether i need to do any change in
browser property in Netscape browser or anyother than that.
> hellow friends,
> In my product , to sign a file i need a cab file to
> be download each time
> when the page is loaded .Its working in IE5, but in case of Net...
File reading and file writing How should I model the following design problem :
1) I need to read/write a set of bytes from/to the binary file between
a starting address and ending address.
2) Before writing the bytes I should pass file name with extension so
that the bytes will be written in that file.
3) I need to reduce the number of I/O operation while reading/writing
the bytes so that I could improve the performance.
4) How would I specify the error handling strategy?
5) What kind of design pattern I could employ to achieve the above
If possible please point me to industrial strength c++ implementation...
COMPILE-FILE without a file... ....or, compiling arbitrary text streams.
As far as I know, the only two standard interfaces with the Lisp
compiler are the functions COMPILE and COMPILE-FILE. The first
compiles a single function, the other compiles a file (dealing
properly with top-level forms etc. etc.).
Suppose I have code in text form, coming from an arbitrary stream
(e.g. the network, or a compressed archive, or...): is (1)
(compile nil `(lambda () ,@(read stream)))
equivalent to (2)
(dump-to-file stream "file.lisp")
? Probably not... (rhetorical question...
CadKey Files into Solidworks Files I'm trying to translate CadKey Sheet metal plates into solidworks
files, but, here the thing:
All parts change dimensions, and I like to keep the original dimension
on all parts, I try to change the K Factor, but still not working.
Can someone out there help me understand why this happen.
thank you all.
references file and bib file Hi
Can I input a references file and a bib file (using cite for the bib
file entries) simultaneously??
> Can I input a references file and a bib file (using cite for the bib
> file entries) simultaneously??
What do you mean "a references file"?
a file with
being used as input in the latex compilation. It contains references
and is formatted like a bibliography file output.
Joseph Wright wrote:
> Saurabh wrote:
> > Hi
about head file/source file Hi,
I am programming with VC++ (6) in windows.
I am using LASPACK (anyone used it before?), which is a linear equation
solvers package containing many head files and source files. When I want to
call the functions from that package, I use "#include xxx.h" in my file. But
the problem is that then I need to add many related .c files into my
project. It makes my project file view messy. Do you know anyway to solve
this problem? (so that I don't need to add those source files one by one, or
just call a batch file)
Thanks a lot in advance.
Jinjun Xu wrote:
> I am programm...
Cat file a to *.xls files Hi I'm trying to get a perl script to work without much luck.
What I'm trying to do is to:
cat filea.txt to all .xls files in a directory
your help would be appreciated
Thanks in advance
> Hi I'm trying to get a perl script to work without much luck.
> What I'm trying to do is to:
> cat filea.txt to all .xls files in a directory
Are you Jim the Italian living in French
Canada trying to write English?
(I didn't understand anything)
What's meant by 'cat' here? Can you explain?
Jim <email@example.com> wrote: