Re: [SPAM] Re: [Newbies] Beginner's List Question

2015-01-28 Thread Mateusz Grotek

Dear Squeakers,
As a long term Linux user let me add a couple of remarks to the  
discussion.


"The Linux way of doing
things focuses on the super old school UNIX mentality that the person  
using

the system knows what they're doing better than any program or developer
can guess, and so the power, and responsibility, is in your hands."

This do not apply to e.g. Ubuntu.

"How do I get  to run?"
isn't really a question for the squeak community if you're on a Linux
machine."

IMHO there are two separate questions to address:
1. "How do I get Squeak to run on Linux?"
2. "How do I get Squeak to run on ?"
The Squeak community should address only the first question and it  
should do it with the One-Click Image. If there are any Linux users  
around, who want to maintain packages in some distros, let them do it,  
and help them with that. Then you can link to their work, when the  
question concerning a particular distro arrives. Some links for  
potential maintainers:

https://www.debian.org/doc/manuals/developers-reference/new-maintainer.html
https://help.launchpad.net/Packaging/PPA
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=1&chap=2

"You cannot claim to support Linux because Linux is not an operating  
system but only an operating system kernel."


IMHO it is false, but a part of it is true :-P
Yes, Linux is only an operating system kernel, but does it mean you  
cannot claim to support the kernel? I think you can. Additionally you  
can claim to support Linux with X Window System. And it is more or less  
what Squeak does in the One-Click image afaiu.


"In order to support a Linux distribution you need to compile the VM  
against the library versions that the distribution uses."


Well, it is desirable, but not strictly necessary.

"Real support for Linux (distributions) would be a lot of work: build  
and test the VM for a multitude of Linux distributions (there are  
hundreds if not thousands of them) and for many versions of each. Every  
variation of involved library in any involved (incompatible) version."


And it is not the task of Squeak developers to do that. It is the task  
of each distribution's package maintainers (which of course might be  
the same people, but in different roles). Squeak developers are  
something called "upstream" :-P

http://en.wikipedia.org/wiki/Upstream_%28software_development%29


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Read RasPi GPIO

2015-01-28 Thread Herbert König

Hi,

I can successfully read a GPIO Pin on the RasPi if I do it like:
|value|
dataFile ensureOpen.
value := dataFile upToEnd.
dataFile close.
^value

dataFile is the /sys/class/gpio/gpioxx/value file that exists after 
exporting gpioxx.


Without the reopening and closing of the file I get '' on subsequent 
reads which means that

StandartFileStream>>basicNext answers nil.

Is there a way to get the values without having to close and reopen the 
file each time?


Thanks

Herbert
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Read RasPi GPIO

2015-01-28 Thread Michael Rice
Is there a StandardFileStream>>reset?

Michael

On Wed, Jan 28, 2015 at 7:45 AM, Herbert König 
wrote:

> Hi,
>
> I can successfully read a GPIO Pin on the RasPi if I do it like:
> |value|
> dataFile ensureOpen.
> value := dataFile upToEnd.
> dataFile close.
> ^value
>
> dataFile is the /sys/class/gpio/gpioxx/value file that exists after
> exporting gpioxx.
>
> Without the reopening and closing of the file I get '' on subsequent reads
> which means that
> StandartFileStream>>basicNext answers nil.
>
> Is there a way to get the values without having to close and reopen the
> file each time?
>
> Thanks
>
> Herbert
> ___
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Read RasPi GPIO

2015-01-28 Thread Herbert König

Wonderful,
dataFile reset.
^dataFile upToEnd

I thought every read request would just produce a new value.

Thanks,

Herbert

does the trick
Am 28.01.2015 um 14:13 schrieb Michael Rice:

Is there a StandardFileStream>>reset?

Michael

On Wed, Jan 28, 2015 at 7:45 AM, Herbert König > wrote:


Hi,

I can successfully read a GPIO Pin on the RasPi if I do it like:
|value|
dataFile ensureOpen.
value := dataFile upToEnd.
dataFile close.
^value

dataFile is the /sys/class/gpio/gpioxx/value file that exists
after exporting gpioxx.

Without the reopening and closing of the file I get '' on
subsequent reads which means that
StandartFileStream>>basicNext answers nil.

Is there a way to get the values without having to close and
reopen the file each time?

Thanks

Herbert
___
Beginners mailing list
Beginners@lists.squeakfoundation.org

http://lists.squeakfoundation.org/mailman/listinfo/beginners




___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] FileDirectory exists: returns false for GPIO RasPi

2015-01-28 Thread Herbert König

Hi,

I'm trying to use the GPIO on the Raspberry Pi.

After I export a GPIO before setting its direction I need to wait until 
all Folders and files of the GPIO pin are created.

I try this with:
FileDirectory default fileExists '/fullPathToTheGpio/direction'
This never returns true.

Any hint on how to find out when I can start writing to the file?

I I just wait 3 seconds before writing to the pin for the first time it 
works. Subsequent writes work instantly.


Thanks,

Herbert
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Read RasPi GPIO

2015-01-28 Thread Ben Coman
How about sending #reset to set the stream back to the start ?

Read the paragraph above "lseek" here...
http://falsinsoft.blogspot.com.au/2012/11/access-gpio-from-linux-user-space.html

cheers -ben


On Wed, Jan 28, 2015 at 8:45 PM, Herbert König 
wrote:

> Hi,
>
> I can successfully read a GPIO Pin on the RasPi if I do it like:
> |value|
> dataFile ensureOpen.
> value := dataFile upToEnd.
> dataFile close.
> ^value
>
> dataFile is the /sys/class/gpio/gpioxx/value file that exists after
> exporting gpioxx.
>
> Without the reopening and closing of the file I get '' on subsequent reads
> which means that
> StandartFileStream>>basicNext answers nil.
>
> Is there a way to get the values without having to close and reopen the
> file each time?
>
> Thanks
>
> Herbert
> ___
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [SPAM] Re: [Newbies] Beginner's List Question

2015-01-28 Thread Phil (list)
On Wed, 2015-01-28 at 09:56 +0100, Mateusz Grotek wrote:
> Dear Squeakers,
> As a long term Linux user let me add a couple of remarks to the  
> discussion.
> 
> "The Linux way of doing
> things focuses on the super old school UNIX mentality that the person  
> using
> the system knows what they're doing better than any program or developer
> can guess, and so the power, and responsibility, is in your hands."
> 
> This do not apply to e.g. Ubuntu.
> 

The parent doesn't apply to any of the major distros targeting end users
AFAICT (Debian, Ubuntu, Red Hat, etc.)  Sure for things like Arch or
Slackware you're on your own, but if you're on one of those you already
knew that.

> "How do I get  to run?"
> isn't really a question for the squeak community if you're on a Linux
> machine."
> 
> IMHO there are two separate questions to address:
> 1. "How do I get Squeak to run on Linux?"
> 2. "How do I get Squeak to run on ?"
> The Squeak community should address only the first question and it  
> should do it with the One-Click Image. If there are any Linux users  
> around, who want to maintain packages in some distros, let them do it,  
> and help them with that. Then you can link to their work, when the  
> question concerning a particular distro arrives. Some links for  
> potential maintainers:
> https://www.debian.org/doc/manuals/developers-reference/new-maintainer.html
> https://help.launchpad.net/Packaging/PPA
> http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=1&chap=2
> 

Agreed.  Addressing 1 should address 2 in the general case.  Again, if
you're off in the wilderness you're on your own, but you already knew
that.

However, as a Debian user myself, I'd actually prefer it if most of the
more substantial user facing programs such as Squeak didn't waste time
packaging for Debian: these packages are so hopelessly out of date that
they create more problems than they solve.  If the distro version is
more than a couple of months behind the current release, it would seem
to be a better and more supportable solution to point people to the one
click.  Should they grow beyond that, presumably they'll also learn
about alternate downloads and building from source down the line.


> "In order to support a Linux distribution you need to compile the VM  
> against the library versions that the distribution uses."
> 
> Well, it is desirable, but not strictly necessary.
> 

I would say that is *only* desirable for packages that are maintained in
distro repositories.  For separately downloadable Linux packages (i.e.
things like one click), static linking results in them behaving largely
like a Windows or OS X app: it just works works without a bunch of
unsatisfiable .so issues.


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners