Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #400300

Re: i did not know that

From Jan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Newsgroups sci.electronics.design
Subject Re: i did not know that
Date 2016-02-25 08:46 +0000
Organization Datemas.de http://www.news.datemas.de
Message-ID <namf0g$3bt$1@news.datemas.de> (permalink)
References (1 earlier) <wRVyy.1061971$Wj7.220934@fx33.am4> <nahe5c$81b$1@news.datemas.de> <5PYyy.951625$Mi6.53914@fx35.am4> <nahq14$s6f$1@news.datemas.de> <7e99c5cb-eb24-4803-b4ea-95a9feb72fd9@googlegroups.com>

Show all headers | View raw


On a sunny day (Wed, 24 Feb 2016 15:24:00 -0800 (PST)) it happened Klaus
Kragelund <klauskvik@hotmail.com> wrote in
<7e99c5cb-eb24-4803-b4ea-95a9feb72fd9@googlegroups.com>:

>On Tuesday, February 23, 2016 at 3:23:37 PM UTC+1, Jan Panteltje wrote:
>> 
>> The main reason for me to run 'sensors' is that I have scripts that parse=
> it
>> and can take all sort of actions, including 'poweroff' and remote messagi=
>ng, SMS, anything.
>> I wrote it here before, spend 6 hours coding a GUI for something I can do=
> in one line in bash.
>> 
>
>I'm curious. Can you share an example of that (single line shell script cod=
>e that does that?)

Sure, its on my site:
 http://panteltje.com/panteltje/xpavrt/index.html

It is a GUI frontend to v4l2-ctl look it up.
v4l2-ctl can be run from a single line in bash, with all the recording timers going in crontab.
Last night I added voice output, to warn you when the IR link is about to activate so
you do not stand in front of the ir_pic transmitter as I did, and missed the start of a recording.
Uses the 'say' program from the festival voice synthesizer, can also be scripted in bash:
say "this sucks"
Has this whatshisname from the blackholes computah voice... Oh yea Hawkins.,
I think he uses the same program.



Not quite sure what you mean, but for example the sms code for my new
4G modem I wrote last month was also just a few lines, that was C though.
makes it easy to send and receive sms on the PC, based on this:
 http://panteltje.com/panteltje/newsflex/download.html#huaweic
the latest [4G] version is not released yet. is rather specific to the local telco' options.


>The other days I had a lot of samples from a datalogger, needed to represen=
>t the data in a graph. So fired up Excel, but of course it can only handle =
>1mill lines, so that option soon faded away. Then I almost wrote a windows =
>program in Labwindows, to cut away 9 out of 10 lines in the CSV file, so Ex=
>cel could come into play again.

>Ended up with Matlab, which has no problems crushing 100M lines of data in =
>a CSV file.


For display you can use gnuplot.
For the math you can use octave.
All of it can be scripted.
To read some of the MS format data I have openoffice installed.



All GUI coding I do is in xforms (libforms), it is small, fast, and does not need kde or other windows imitations.
 http://panteltje.com/panteltje/xpsa/index.html

To make it easier, if you are clueless in GUI programming, it has a GUI generator that creates everything,
you can just put buttons and other things on a form, it will write the callbacks for you in C,
all you have to do is fill in what you actually want to do, and it is not in that C++, just plain old C.
I never use 'fdesign' (the GUI generator), do it all by hand.
If you want to learn how to use libforms there is tons of code to download on my site, and on the web.

Here a GPS detection run with octave:
 http://panteltje.com/pub/run_50_outside_2728000.gif

Not sure if any of that answers your question, else be more specific?

There are a couple of utitlies in Linux you _have_ to know, like 'grep' and 'awk', 'sort', 'gnuplot', etc..
with those you can, in a very simple way, extract data from huge files, sort and display it too, 
The only limit is disk space AFAIK, but then...
not to forget the near magical 'netcat' program, that is all you need to connect to anything and transfer data to anything
on the internet from a script.
There are more.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-23 09:30 +0000
  Re: i did not know that Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-02-23 09:43 +0000
    Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-23 11:00 +0000
      Re: i did not know that Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-02-23 13:06 +0000
        Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-23 14:23 +0000
          Re: i did not know that Tom Gardner <spamjunk@blueyonder.co.uk> - 2016-02-23 14:58 +0000
          Re: i did not know that Klaus Kragelund <klauskvik@hotmail.com> - 2016-02-24 15:24 -0800
            Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-25 08:46 +0000
  Re: i did not know that Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-02-23 13:51 +0100
    Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-23 14:32 +0000
  Re: i did not know that Jasen Betts <jasen@xnet.co.nz> - 2016-02-24 10:37 +0000
    Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-24 13:03 +0000
    Re: i did not know that Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2016-02-24 19:01 +0000
    Re: i did not know that dplatt@coop.radagast.org (Dave Platt) - 2016-02-24 14:29 -0800

csiph-web