![]() |
I know its not much...but it is to me (thanks n900)
despite its shortcomings I bought the n900 really only to learn shell scripting and perl. I have 0 programming experience and am 44.
well I made pearl say 'hello world' and I wrote this in bash...(was too lazy to fill in all the values in the album file) yea I know this is a joke to real programmers, but to me...how cool to write my first script on my friggin phone. when I typed "galy year" and it spit out the values 1979 1980 1981 1982 1983, I said to myself...perhaps I can really learn bash. like on a train or waiting on the line at the supermarket. long live easy debian and thank to all who ported it. long live the n900. [root@deb-m5v3d:~/scripts]cat galy ### enter (group album label year) to view that column from the albums file ### #!/bin/bash convert= case $1 in group) convert=$(echo 1) ;; album) convert=$(echo 2) ;; label) convert=$(echo 3) ;; year) convert=$(echo 4) ;; *) echo "please input group, album, label, or year." ; exit 1 ;; esac cut -f$(echo $convert) -d\| albums [root@deb-m5v3d:~/scripts]cat albums van halen|album named|record label|1979 ufo|album named|record label|1980 thin lizzy|album named|record label|1981 the doors|album named|record label|1982 al stewart|album named|record label|1983 |
Re: I know its not much...but it is to me (thanks n900)
You just gave me a warm fuzzy feeling inside; I'm glad you like it and keep up the learning. :)
I bought the device for the same reasons: wanting to extend my bash knowledge and learn python. |
Re: I know its not much...but it is to me (thanks n900)
If you want to learn it install it on the PC... if you want to make phone apps get a nexus one with its simple build program and a deivce that has a battery that lasts longer than 10 minutes and an OS that actually works.
|
Re: I know its not much...but it is to me (thanks n900)
im not fond of writing shell scripts (i use my pc with an SSH for that, ever so rarely)..
it would be great if we had a mini GCC or C++ compiler for the n900 so we can create even little console programs. |
Re: I know its not much...but it is to me (thanks n900)
Quote:
|
Re: I know its not much...but it is to me (thanks n900)
Congratz, extendedping!
I know the good feeling that comes from such a first step... FWIW, I had similar thoughts and have started teaching myself python...bought several books and reading through them as much as I can... There are also quite a few online resources as well... Have fun! |
Re: I know its not much...but it is to me (thanks n900)
yes I don't know if I should be looking at perl or python. I am not trying to be a developer I am trying to be an administrator and its seems (from what little I know) that perl is used more by admins and python by people building apps. Am I wrong in my thinking?
|
Re: I know its not much...but it is to me (thanks n900)
I would recommend python.
|
Re: I know its not much...but it is to me (thanks n900)
I second buurmas, python is far easier to work with with all the API's. I program a lot on PHP as well on the web, but I am trying my hands on Python for the N900, just wrote a small script to block calls :)
|
Re: I know its not much...but it is to me (thanks n900)
Python's the way to go. It's filling the niche BASIC did 30 years ago. It's extremely easy to get started with, but you won't have wasted your time learning it if you want to do something more ambitious down the road.
|
All times are GMT. The time now is 06:13. |
vBulletin® Version 3.8.8