On 7/25/19 11:27 PM, Carl Fink wrote:
On 7/25/19 11:23 PM, deb wrote:
On 7/25/19 6:45 PM, Carl Fink wrote:
Is there any specific reason you don't just use mod_python, to
remove the overhead of a CGI script?
Lack of knowledge only.
If I can use mod_python to get that one script to run,
On 7/25/19 11:23 PM, deb wrote:
On 7/25/19 6:45 PM, Carl Fink wrote:
Is there any specific reason you don't just use mod_python, to remove
the overhead of a CGI script?
Lack of knowledge only.
If I can use mod_python to get that one script to run, I'd be mighty
happy.
I could not find
On 7/25/19 6:45 PM, Carl Fink wrote:
On 7/25/19 5:06 PM, Joel Roth wrote:
On Wed, Jul 24, 2019 at 02:16:09PM -0400, deb wrote:
I have a large static html/AJAX .js apache2 site.
If I want to have a server-side script just to
handle a contact and push mail out;
is there a non-(Django/cgi**/F
On 7/25/19 5:06 PM, Joel Roth wrote:
On Wed, Jul 24, 2019 at 02:16:09PM -0400, deb wrote:
I have a large static html/AJAX .js apache2 site.
If I want to have a server-side script just to
handle a contact and push mail out;
is there a non-(Django/cgi**/Flask) way to
run a small Python3 script t
On Wed, Jul 24, 2019 at 02:16:09PM -0400, deb wrote:
>
> I have a large static html/AJAX .js apache2 site.
>
> If I want to have a server-side script just to
> handle a contact and push mail out;
> is there a non-(Django/cgi**/Flask) way to
> run a small Python3 script to do this?
What not cgi?
On Wed, 15 Feb 2012 18:33:46 -0500, Tony Baldwin wrote:
(correcting the top-posting style)
>> On Wed, Feb 15, 2012 at 10:20 PM, Camaleón wrote:
>>
>> > On Wed, 15 Feb 2012 18:14:58 +0530, Bijoy Lobo wrote:
>> >
>> > > I am looking to learn some Linux programming skills, My current
>> > > situat
On Thu, Feb 16, 2012 at 12:14:15AM +0530, Bijoy Lobo wrote:
> The SDKs which i have header (.h) files which ask me to compile my app
> using them
>
That didn't answer the question.
The question was "which programming language are you using".
./tony
> On Wed, Feb 15, 2012 at 10:20 PM, Camaleón
The SDKs which i have header (.h) files which ask me to compile my app
using them
On Wed, Feb 15, 2012 at 10:20 PM, Camaleón wrote:
> On Wed, 15 Feb 2012 18:14:58 +0530, Bijoy Lobo wrote:
>
> > I am looking to learn some Linux programming skills, My current
> > situation is like, I have to integ
On Wed, 15 Feb 2012 18:14:58 +0530, Bijoy Lobo wrote:
> I am looking to learn some Linux programming skills, My current
> situation is like, I have to integrate Third-party software with
> software like squid and iptables. The third party vendors have provided
> me with SDKs and I have no idea on
On Fri, 2010-05-14 at 20:32 -0700, Kelly Clowers wrote:
> On Fri, May 14, 2010 at 18:34, Alexander Samad wrote:
> > Hi
> >
> > I was wondering if it is possible to decode this javascript from the
> > command line
> >
> >
> > var serializer = new Serializer()
> > serializer.deserialize('B64ENCe30=
On Fri, May 14, 2010 at 18:34, Alexander Samad wrote:
> Hi
>
> I was wondering if it is possible to decode this javascript from the
> command line
>
>
> var serializer = new Serializer()
> serializer.deserialize('B64ENCe30=')
>
> can't find any reference on how serialize works and can't find any
>
- Original Message -
From: Alexander Samad
Date: Friday, May 14, 2010 9:35 pm
Subject: Programming question
To: Debian User List
> Hi
>
> I was wondering if it is possible to decode this javascript from the
> command line
>
>
> var serializer = new Serializer()
> serializer.deserializ
On Sun, 31 Jan 2010 19:36:14 +0530
Jeffrin Jose wrote:
> hello all,
>
>
> i have a program based on C code.
> i have to add functionality to the
> program.Is it possible to that func\
> tionality using python or any other
> scripting languages.
http://www.python.org/doc/1.5/ext/node9.html
Ce
On Mon, Apr 30, 2007 at 07:26:41PM +0200, csanyipal wrote:
> > > I wish to programing LPT port on the PC box from Debian Etch system.
> > > I wish to make some applications that can run on other platforms too.
> > > (eg.: win 32)
> > Python has modules for accessing the parallel port. Python in
On Mon, Apr 30, 2007 at 07:26:41PM +0200, csanyipal wrote:
> Hello Doug!
>
> On Mon, Apr 30, 2007 at 10:33:31AM -0400, Douglas Allan Tutty wrote:
> > On Mon, Apr 30, 2007 at 01:08:09PM +0200, csanyipal wrote:
> > >
> > > I wish to programing LPT port on the PC box from Debian Etch system.
> > > I
Hello Doug!
On Mon, Apr 30, 2007 at 10:33:31AM -0400, Douglas Allan Tutty wrote:
> On Mon, Apr 30, 2007 at 01:08:09PM +0200, csanyipal wrote:
> >
> > I wish to programing LPT port on the PC box from Debian Etch system.
> > I wish to make some applications that can run on other platforms too.
> >
On Mon, Apr 30, 2007 at 01:08:09PM +0200, csanyipal wrote:
> Hello!
>
> I wish to programing LPT port on the PC box from Debian Etch system.
> I wish to make some applications that can run on other platforms too.
> (eg.: win 32)
>
> Which one programming language is capable to easily access the
>That can be done by running the program with sudo.
>Is there any other way?
sudo is the best secured and controled way.
> Can anybody write to /tmp?
/tmp available for all users for all actions
I suggest you to use /tmp/ for IPC communication.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
Bill Marcum wrote:
On Sun, Aug 21, 2005 at 06:18:47AM -0500, Hugo Vanwoerkom wrote:
Hi,
A programming question:
I want to have a program that runs in a user's /home dir. write to /var/run.
That can be done by running the program with sudo.
Is there any other way? E.g. programming with PAM?
On Sun, Aug 21, 2005 at 06:18:47AM -0500, Hugo Vanwoerkom wrote:
> Hi,
>
> A programming question:
>
> I want to have a program that runs in a user's /home dir. write to /var/run.
>
> That can be done by running the program with sudo.
>
> Is there any other way? E.g. programming with PAM? Examp
Rajiv Vyas <[EMAIL PROTECTED]> writes:
> I am thinking about learning a programming or a scripting language.
> The eventual goal to to use it for financial modeling, which would
> eventually mean some use/knowledge of a database software. This would
> be my first foray in programing. Any suggestio
Steve Lamb wrote:
> Bob Proulx wrote:
> > Python has that whole whitespace for control thing. Love it or
> > hate it I think all would agree that if it were not for that one
> > feature that Python would be the dominant language today if not
> > for that one design decision.
>
> Quite the cobr
Before going into the general purpose scripting and programming
languages, there are a bunch of languages designed purposefully for
modelling.
If you are doing simulations there is SIMULA.
R (http://www.r-project.org/), the statistical app., also allows you
to create scripts and modules useful fo
Bob Proulx wrote:
> Python has that whole whitespace for control thing. Love it or hate
> it I think all would agree that if it were not for that one feature
> that Python would be the dominant language today if not for that one
> design decision.
Quite the cobrary. I think that if people wo
On Sun, Aug 07, 2005 at 12:39:48PM -0600, Bob Proulx wrote:
[...]
} Python has that whole whitespace for control thing. Love it or hate
} it I think all would agree that if it were not for that one feature
} that Python would be the dominant language today if not for that one
} design decision.
[.
Rajiv Vyas wrote:
> Thanks Matt. What about Ruby or Python? Any idea what the differences
> are and which one is more easier?
Basically you are setting the stage for a long list of posts about
various programming languages. :-}
Python has that whole whitespace for control thing. Love it or hate
Rajiv Vyas writes:
> What about Ruby or Python? Any idea what the differences are and which
> one is more easier?
Python is easier to learn and Pthyon code is easier to understand. It's
quite easy to produce write-only Perl.
--
John Hasler
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a
On 8/7/05, Matt Zagrabelny <[EMAIL PROTECTED]> wrote:
> On Sun, 2005-08-07 at 10:16 -0400, Rajiv Vyas wrote:
> > I am thinking about learning a programming or a scripting language.
> > The eventual goal to to use it for financial modeling, which would
> > eventually mean some use/knowledge of a dat
One more time thanks for all the links... since yesterday Im cheking all
the links, right now Im testing the eclipse... wish me luck and thanks
again
Martin Kenneth Lopez
Doofus wrote:
> Katipo wrote:
>
>> Martin Kenneth Lopez wrote:
>>
>>> Thanks for the answer I will test the ide's and ema
Hello David!
> Anjuta is a very good one. There's also the Kdevelop.
Thank you for this tip.
I tested anjuta. I have a project written in C with using glade. And i
import the project into anjuta. But i cannot edit my glade-file using
the glade plugin. Can anybody help me.
CU
On 7/27/05, Katipo <[EMAIL PROTECTED]> wrote:
> Martin Kenneth Lopez wrote:
>
> >Thanks for the answer I will test the ide's and emacs too... Now to
> >make open source software
> >thanks again everybody
> >
> >Martin Kenneth
> >
> >
> >
> Don't forget vim. http://packages.debian.org/testing
Anjuta is a very good one. There's also the Kdevelop.
Have luck.
On 7/28/05, Micha Feigin <[EMAIL PROTECTED]> wrote:
> On Wed, 27 Jul 2005 21:56:36 -0400
> stan <[EMAIL PROTECTED]> wrote:
>
> > On Wed, Jul 27, 2005 at 06:35:03PM -0500, Martin Kenneth Lopez wrote:
> > > Hello everyone!
> > > I be
On Wed, 27 Jul 2005 21:56:36 -0400
stan <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 27, 2005 at 06:35:03PM -0500, Martin Kenneth Lopez wrote:
> > Hello everyone!
> > I been using my debian sarge since a while ago I learning how to
> > programming in c , and I was wondering if you know any good I
Katipo wrote:
Martin Kenneth Lopez wrote:
Thanks for the answer I will test the ide's and emacs too... Now to
make open source software
thanks again everybody
Martin Kenneth
Don't forget vim. http://packages.debian.org/testing/editors/vim
And http://packages.debian.org/unstable/edit
Martin Kenneth Lopez wrote:
Thanks for the answer I will test the ide's and emacs too... Now to
make open source software
thanks again everybody
Martin Kenneth
Don't forget vim. http://packages.debian.org/testing/editors/vim
And http://packages.debian.org/unstable/editors/vim-doc
And
On Wed, Jul 27, 2005 at 06:35:03PM -0500, Martin Kenneth Lopez wrote:
> Hello everyone!
> I been using my debian sarge since a while ago I learning how to
> programming in c , and I was wondering if you know any good IDE that I
> can use in debian for programming in c. I been looking on google
Thanks for the answer I will test the ide's and emacs too... Now to
make open source software
thanks again everybody
Martin Kenneth
Roberto C. Sanchez wrote:
>On Wed, Jul 27, 2005 at 08:20:36PM -0400, Leonid Grinberg wrote:
>
>
>>I agree, using a powerful text editor as opposed to a full-
I agree, using a powerful text editor as opposed to a full-featured
IDE is probably better. If you really want and IDE, I recommend using
Anjuta (for GNOME) and (I guess) KDevelop for KDE (I use GNOME,
myself, but then again, I also use Emacs)
On Wed, Jul 27, 2005 at 08:20:36PM -0400, Leonid Grinberg wrote:
> I agree, using a powerful text editor as opposed to a full-featured
> IDE is probably better. If you really want and IDE, I recommend using
> Anjuta (for GNOME) and (I guess) KDevelop for KDE (I use GNOME,
> myself, but then again,
On Jul 27 2005, Martin Kenneth Lopez wrote:
> I learning how to programming in c , and I was wondering if you know
> any good IDE that I can use in debian for programming in c.
I use simply Emacs, but I recognize that this may not be for the faint
of the heart.
You have many options out there, as
Hello everyone!
I been using my debian sarge since a while ago I learning how to
programming in c , and I was wondering if you know any good IDE that I
can use in debian for programming in c. I been looking on google but I
didnt have much luck... thanks
bye
Martin Kenneth
--
To UNSUBSCRIBE
2005/7/16, Colin <[EMAIL PROTECTED]>:
> ken keanon wrote:
> > Hi
> >
> > I am new to programming in C and X Window. My web
> > search for a programming environment brought me to
> > xwpe, a package for X Window Programming Environment.
> > The GUI is quite basic and I am not able to increase
> > t
ken keanon wrote:
> Hi
>
> I am new to programming in C and X Window. My web
> search for a programming environment brought me to
> xwpe, a package for X Window Programming Environment.
> The GUI is quite basic and I am not able to increase
> the font size. Is this the best for what I intend to
>
On Sun, Jun 12, 2005 at 11:26:47AM -0500, Alex Malinovich wrote:
>
> /me envisions an infinite number of monkeys at an infinite number of
> typewriters sitting in a building in Redmond with an M$ logo on the
> front... :)
Well, "infinite" is probably a little on the high side, but...
--
David
On Fri, 2005-06-10 at 23:25 -0400, Hubert Chan wrote:
--snip--
> I program randomly. Err. That's random as opposed to sequentially; not
> as in I bang random keys on my keyboard and hope for the best. ;-)
/me envisions an infinite number of monkeys at an infinite number of
typewriters sitting in
On Sat, 11 Jun 2005 18:51:18 -0400
John Kelly <[EMAIL PROTECTED]> wrote:
> > I think I do actually write my programs backwards .. from how it
> > will look to the enduser.
>
> That's top down development vs. bottom up development.
>
> Using top down development, you never have any working code.
On Fri, 10 Jun 2005 22:51:51 -0400, Patrick Wiseman
<[EMAIL PROTECTED]> wrote:
>> I would hate to write a backwards compiler to compile your
>> backwards programs.
> I think I do actually write my programs backwards .. from how it
> will look to the enduser.
That's top down development vs. botto
Ben wrote:
>
> Well, I find that most C programs nowadays are written backwards :
> main() on top and functions below. Having learned C from K&R, that's
> backwards for me.
>
> But the point is : I put up with it. No whining and no expectations
> that everyone will want to follow my preferences.
On Fri, 10 Jun 2005 22:51:51 -0400, you wrote:
%On 6/10/05, John Kelly <[EMAIL PROTECTED]> wrote:
%
%> Would you write programs backwards? I would hate to write a
backwards
%> compiler to compile your backwards programs.
%
%Doesn't everyone write their programs backwards? Don't you _start_
at th
On Fri, 10 Jun 2005 22:51:51 -0400, Patrick Wiseman <[EMAIL PROTECTED]> said:
> On 6/10/05, John Kelly <[EMAIL PROTECTED]> wrote:
>> Would you write programs backwards? I would hate to write a
>> backwards compiler to compile your backwards programs.
> Doesn't everyone write their programs backw
Paul Akkermans wrote:
Hi Fellows,
I am trying to program (in c) a simple window/Form in my X Windows
environment in Debian. The trouble is that I can't find a good example
which draws such a window or form on my screen. Does anybody know a good
example?
Kind regards,
Paul Akkermans
The ea
I have a few linked at http://jon.dowland.name/links/?cat_id=8 which I
can recommend (those which still exist, that is).
However, if you want to write a GUI app in X you more than likely want
to use an existing widget toolkit to make life easier. Take a look at
either qt or gtk.
--
Jon Dowland
[
Paul Akkermans wrote:
I am trying to program (in c) a simple window/Form in my X Windows
environment in Debian. The trouble is that I can't find a good example
which draws such a window or form on my screen. Does anybody know a good
example?
Try typing 'X11 tutorial' into Google.
The first hit <
Micha Feigin wrote:
On Thu, Jun 17, 2004 at 11:05:24PM -0500, Rob Benton wrote:
William Ballard wrote:
On Fri, Jun 18, 2004 at 12:07:18AM +0100, Anders Karlsson wrote:
XEmacs is another editor that could be worth looking into. Bit nicer
interface than plain Emacs, and should not tak
On Fri, 18 Jun 2004 00:07:18 +0100, Anders Karlsson wrote:
> (still have not found an editor that will do a rectangular area
> cut/paste in the middle of a text).
SciTE will do it. I remember doing it with Emacs 18 but that was a few
years ago. Visual SlickEdit will do it, for $300.
--
To U
On Thu, Jun 17, 2004 at 11:05:24PM -0500, Rob Benton wrote:
> William Ballard wrote:
>
> >On Fri, Jun 18, 2004 at 12:07:18AM +0100, Anders Karlsson wrote:
> >
> >
> >>XEmacs is another editor that could be worth looking into. Bit nicer
> >>interface than plain Emacs, and should not take up too m
On Fri, Jun 18, 2004 at 10:51:56AM +0900, Victor Munoz wrote:
> On Fri, Jun 18, 2004 at 12:39:35AM +0100, Anders Karlsson wrote:
>
> > I am sure there is an Emacs mode *somewhere* that would allow this. Perhaps
> > in picture mode it can be done.
> >
>
>
> XEmacs does rectangular cut/paste wi
William Ballard wrote:
On Fri, Jun 18, 2004 at 12:07:18AM +0100, Anders Karlsson wrote:
XEmacs is another editor that could be worth looking into. Bit nicer
interface than plain Emacs, and should not take up too much more space
than plain Emacs.
For vim, you can always install Gvim to give yo
* Rob Benton <[EMAIL PROTECTED]> [2004 Jun 17 14:20 -0500]:
> I really like Kate (the kde editor), but I really don't like the 70+ MB
> of disk space that KDE takes up. Is there any other editor out there
> similar but not dependent on KDE? I've tried Gedit and I like it but I
> miss the sideb
On Thu, Jun 17, 2004 at 05:43:12PM -0500, Alex Malinovich wrote:
> On Thu, 2004-06-17 at 16:23, Bas Zoetekouw wrote:
> > Rob Benton wrote in linux.debian.user:
> > > I really like Kate (the kde editor), but I really don't like the 70+ MB
> > > of disk space that KDE takes up. Is there any other
On Fri, Jun 18, 2004 at 12:39:35AM +0100, Anders Karlsson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Friday 18 Jun 2004 00:18, Steve Lamb wrote:
> > Anders Karlsson wrote:
> > > Best editor I have ever used though was CygnusED on the Amiga. 65kB in
> > > size and everything yo
On Fri, Jun 18, 2004 at 12:39:35AM +0100, Anders Karlsson wrote:
> I am sure there is an Emacs mode *somewhere* that would allow this. Perhaps
> in picture mode it can be done.
>
XEmacs does rectangular cut/paste with regular text files.
Hold Alt- and drag the mouse, and you will be markin
Anders Karlsson writes:
> Personally, if there is something quick I have to edit, vim is the
> default choice, but as soon as I start hacking anything larger, Emacs is
> what I fire up.
Same here.
> Seems like it depends on the first editor any given person used whether
> they become Emacs or VI
On Fri, Jun 18, 2004 at 12:07:18AM +0100, Anders Karlsson wrote:
> XEmacs is another editor that could be worth looking into. Bit nicer
> interface than plain Emacs, and should not take up too much more space
> than plain Emacs.
>
> For vim, you can always install Gvim to give you more of a GUI
On 2004-06-17, Anders Karlsson penned:
>
> Seems like it depends on the first editor any given person used
> whether they become Emacs or VI zealots.
I would agree that your first editor has a lot to do with your later
choice.
My first unix-based editor was pico, which is why I appreciate vim so
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Friday 18 Jun 2004 00:18, Steve Lamb wrote:
> Anders Karlsson wrote:
> > Best editor I have ever used though was CygnusED on the Amiga. 65kB in
> > size and everything you'd expect an editor to do and then some (still
> > have not found an editor th
On Fri, 2004-06-18 at 11:18, Steve Lamb wrote:
> Anders Karlsson wrote:
> > For vim, you can always install Gvim to give you more of a GUI version.
>
> Or kvim for KDE... Or even vim-part so that it can be embedded in KDE
> apps that support the editor part. :D
>
> > Best editor I have ever
Anders Karlsson wrote:
> For vim, you can always install Gvim to give you more of a GUI version.
Or kvim for KDE... Or even vim-part so that it can be embedded in KDE
apps that support the editor part. :D
> Best editor I have ever used though was CygnusED on the Amiga. 65kB in size
> and e
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thursday 17 Jun 2004 23:43, Alex Malinovich wrote:
> On Thu, 2004-06-17 at 16:23, Bas Zoetekouw wrote:
> > Rob Benton wrote in linux.debian.user:
> > > I really like Kate (the kde editor), but I really don't like the
> > > 70+ MB of disk space that
On Thu, 2004-06-17 at 16:23, Bas Zoetekouw wrote:
> Rob Benton wrote in linux.debian.user:
> > I really like Kate (the kde editor), but I really don't like the 70+ MB
> > of disk space that KDE takes up. Is there any other editor out there
> > similar but not dependent on KDE? I've tried Ged
On 2004-06-17, Bas Zoetekouw penned:
> Rob Benton wrote in linux.debian.user:
>> I really like Kate (the kde editor), but I really don't like the 70+
>> MB of disk space that KDE takes up. Is there any other editor out
>> there similar but not dependent on KDE? I've tried Gedit and I like
>>
Rob Benton wrote in linux.debian.user:
> I really like Kate (the kde editor), but I really don't like the 70+ MB
> of disk space that KDE takes up. Is there any other editor out there
> similar but not dependent on KDE? I've tried Gedit and I like it but I
> miss the sidebar filesystem sel
On Thu, Jun 17, 2004 at 02:13:43PM -0500, Rob Benton wrote:
> I really like Kate (the kde editor), but I really don't like the 70+ MB
> of disk space that KDE takes up. Is there any other editor out there
> similar but not dependent on KDE? I've tried Gedit and I like it but I
> miss the sideb
On Fri, Nov 15, 2002 at 06:34:34AM -0600, Jamin W. Collins wrote:
> On Fri, Nov 15, 2002 at 10:34:36AM +0100, Q. Gong wrote:
>
> > I used to code c++ terminal programs by Kdevelop. But now I want to
> > try a low level way -- constructing manually all the files such as
> > configure, Makefile, sou
On Fri, Nov 15, 2002 at 10:34:36AM +0100, Q. Gong wrote:
> I used to code c++ terminal programs by Kdevelop. But now I want to
> try a low level way -- constructing manually all the files such as
> configure, Makefile, source files, etc. Are there some guidelines for
> creating all these files as
On Wed, Sep 04, 2002 at 07:13:55AM -0700, Irvin Temp wrote:
>
> Ive just been exploring programming in linux. I want to install all
> teh headers for c and c++, but im not sure what are the packages
> needed to be installed?
>
> is it glibc only? where can i get a list of all the libraries packa
On Wed, 2002-09-04 at 16:13, Irvin Temp wrote:
>
> Ive just been exploring programming in linux. I want to install all
> teh headers for c and c++, but im not sure what are the packages
> needed to be installed?
Just run 'tasksel' and select "C and C++" in the Development section and
you're set
On Wednesday 04 September 2002 16:13, Irvin Temp wrote:
> Ive just been exploring programming in linux. I want to install all
> teh headers for c and c++, but im not sure what are the packages
> needed to be installed?
>
> is it glibc only? where can i get a list of all the libraries package
> in
> "Irvin" == Irvin Temp <[EMAIL PROTECTED]> writes:
> 1. ( ) text/plain (*) text/html Ive just been exploring
> programming in linux. I want to install all teh headers for c
> and c++, but im not sure what are the packages needed to be
> installed?
Depends on what you want t
On Tue, 11 Dec 2001 23:18:31 -0800, Erik Steffl <[EMAIL PROTECTED]> wrote:
> Ted Roden wrote:
> >
> > Hi everyone.
> >
> > I apologize for such a silly question.
>
> well, if you can't find an answer then it's not silly to ask...
>
> > I can't seem to find which package contains the man page
>
> there you go, you know how to fish now (for a very specific fish only,
> but hope it will help anyway).
>
Thank you so much, I found it. And fishing is fun.
-Ted.
Ted Roden wrote:
>
> Hi everyone.
>
> I apologize for such a silly question.
well, if you can't find an answer then it's not silly to ask...
> I can't seem to find which package contains the man pages for basic
> programming functions like stat and sprintf etc.
>
> I was thinking perhaps it
* dman ([EMAIL PROTECTED]) spake thusly:
> On Mon, Nov 05, 2001 at 01:17:15PM -0600, Dimitri Maziuk wrote:
> | * J.A.Serralheiro ([EMAIL PROTECTED]) spake thusly:
> | > so, there is no way to know in advance the length of a string unless you
> | > have an identifier, or constant for it.
> |
> | Q
On Mon, Nov 05, 2001 at 11:40:02PM -0500, dman wrote:
> On Mon, Nov 05, 2001 at 01:17:15PM -0600, Dimitri Maziuk wrote:
> | * J.A.Serralheiro ([EMAIL PROTECTED]) spake thusly:
> | > so, there is no way to know in advance the length of a string unless you
> | > have an identifier, or constant for it
On Mon, 5 Nov 2001 23:34:59 -0500, dman <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
> | * Erik Steffl <[EMAIL PROTECTED]> [2001.11.04 17:20:37-0800]:
> | > not sure if it's clear but there's a difference when sizeof's argument
> | > is array or p
dman wrote:
> I thought operators weren't allowed to have parenthesis.
"sizeof(x)" is syntactically the same as "~(x)". The parentheses are
interpreted as grouping, not as an argument list. They aren't necessary,
but they're harmless.
> At any rate, we all agree that it is a compile-time, not ru
On Mon, Nov 05, 2001 at 08:46:53PM -0800, Craig Dickson wrote:
| dman wrote:
| > On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
| > | yes. which is exactly why i pointed this out. sizeof is a compile-time
| > | function. that's the main point.
| >
| > \begin{nitpick}
| > IIR
dman wrote:
> On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
> | * Erik Steffl <[EMAIL PROTECTED]> [2001.11.04 17:20:37-0800]:
> | > not sure if it's clear but there's a difference when sizeof's argument
> | > is array or pointer:
Yes, a very important thing to understand.
On Mon, Nov 05, 2001 at 01:17:15PM -0600, Dimitri Maziuk wrote:
| * J.A.Serralheiro ([EMAIL PROTECTED]) spake thusly:
| > so, there is no way to know in advance the length of a string unless you
| > have an identifier, or constant for it.
|
| Que? You can't know $FOO of $BAR until you take $BAR i
On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
| * Erik Steffl <[EMAIL PROTECTED]> [2001.11.04 17:20:37-0800]:
| > not sure if it's clear but there's a difference when sizeof's argument
| > is array or pointer:
|
| yes. which is exactly why i pointed this out. sizeof is a compi
* Erik Steffl <[EMAIL PROTECTED]> [2001.11.04 17:20:37-0800]:
> not sure if it's clear but there's a difference when sizeof's argument
> is array or pointer:
yes. which is exactly why i pointed this out. sizeof is a compile-time
function. that's the main point.
--
martin; (greetin
* J.A.Serralheiro ([EMAIL PROTECTED]) spake thusly:
> so, there is no way to know in advance the length of a string unless you
> have an identifier, or constant for it.
Que? You can't know $FOO of $BAR until you take $BAR in and see what
sort of $FOO it has. You can't know the length of a string
so, there is no way to know in advance the length of a string unless you
have an identifier, or constant for it.
thanks for the tip andrew. Im sure it will be useful someday.
On Mon, 5 Nov 2001, Andrew Agno wrote:
> J.A.Serralheiro writes:
> > right. It should be strlen(buff )
>
> Just a
On Mon, 5 Nov 2001 07:15:40 -0800 (PST), Andrew Agno <[EMAIL PROTECTED]> wrote:
> J.A.Serralheiro writes:
> > right. It should be strlen(buff )
>
> Just a word of warning: strlen can be a problem if the buffer is not
> filled with stuff that you can validate--ie: if buff isn't a NULL
> terminate
J.A.Serralheiro writes:
> right. It should be strlen(buff )
Just a word of warning: strlen can be a problem if the buffer is not
filled with stuff that you can validate--ie: if buff isn't a NULL
terminated string, then it looks for the NULL byte off the end of the
buffer, which can lead to much s
martin f krafft wrote:
>
> * Eric G. Miller [2001.11.04 10:56:49-0800]:
> > > char *buff = (char*)malloc(128);
> > > sizeof(buff) == 4 // on i32 machines
> > >
> > > --> problem!
> >
> > Depends on what "buff" is, its scope and how sizeof is used.
>
> which is why i declared it as a pointer to
right. It should be strlen(buff )
thanks everyone for your help. I think I will try fgets instead.
regards
J.A.Serralheiro
* Eric G. Miller [2001.11.04 10:56:49-0800]:
> > char *buff = (char*)malloc(128);
> > sizeof(buff) == 4 // on i32 machines
> >
> > --> problem!
>
> Depends on what "buff" is, its scope and how sizeof is used.
which is why i declared it as a pointer to buffer space. i know that
if it is a comp
* Eric G. Miller (egm2@jps.net) spake thusly:
[ sizeof stuff snipped ]
Of course, writing
char buf[80];
buflen = sizeof(buf);
makes no sense. It's not like you don't know what buffer length is.
#define BUFLEN 80
char buf[BUFLEN];
...
Dima
--
Surely there is a polite way to say FOAD.
On Sun, 4 Nov 2001 16:56:58 +0100, martin f krafft <[EMAIL PROTECTED]> wrote:
> * Sebastiaan <[EMAIL PROTECTED]> [2001.11.04 16:51:09+0100]:
> > while (fgets(buff, sizeof(buff)-1, filestream) != NULL)
> > {
> > /* do something with the 'buff' variable */
> > }
>
> char *buff = (ch
1 - 100 of 145 matches
Mail list logo