LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2011, 12:48 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Bash: Intelligent Learning Shopping List using DIALOG?


Hello,

Lot of you have still an old machine somewhere. What to do with it?

- Using Linux. There are thousand possibilities. Mail server, ftp, ...

Another one could be to be used in the kitchen.

I would propose to code together an intelligent solution to :
- Add items into a template
- Allow to wput/upload using SSH the shopping list in text format
- Print the shopping list with each items and the number required
- Possible email regularly using crontab
- Possibility of code improvement for enhanced features
- Coded under BASH and the simple dialog package (apt-get install wput ssh dialog)

You are interested?
 
Old 10-08-2011, 04:01 PM   #2
SigTerm
Member
 
Registered: Dec 2009
Distribution: Slackware 12.2
Posts: 379

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Xeratul View Post
Lot of you have still an old machine somewhere. What to do with it?
Sell it, give it away, or throw out.

Quote:
Originally Posted by Xeratul View Post
- Using Linux. There are thousand possibilities. Mail server, ftp, ...
You should consider electricity bill. Unless you have a hardware that eats less power than a lightbulb, it might be better idea to install extra daemons onto computer that is already working in non-stop mode (you probably have it).

If you have a smartphone/cellphone (with bluetooth, wifi OR unlimited data plan) it may be better idea to write software you want for that smartphone instead of trying to use old machine. If your old PC is old enough, chances are that smartphone has similar or superior computational power.

Quote:
Originally Posted by Xeratul View Post
- Add items into a template
- Allow to wput/upload using SSH the shopping list in text format
- Print the shopping list with each items and the number required
- Possible email regularly using crontab
- Possibility of code improvement for enhanced features
- Coded under BASH and the simple dialog package (apt-get install wput ssh dialog)
If you're going to "upload" shopping list, IMO, it means there's a server for that somewhere. It'll be probably faster to put a website with php + database onto THAT server and access it via text browser. I honestly don't think that using bash and inventing custom formats for data transfer is a good idea - it looks extremely inefficient and time-consuming. Also, bash is not that powerful, so it makes sense to consider using perl or python.

Quote:
Originally Posted by Xeratul View Post
You are interested?
(IMO) Wouldn't start working on it even if you were paying - you don't seem to have complete idea of final program, which is a red flag. You're approaching problem from the wrong end (IMO) - you're thinking about implementation and technologies you could use. As far as I know, it is a good way to make a horrible program. Start with user interface - think what you/user wants to see, how user is going to interact with program and only after that start looking for available technologies you can use, and use simplest solution. Starting with "technologies" without clear goal (IMO) will result in a messy product you won't ever be satisfied with, plus you'll waste a lot of time writing it.
 
Old 10-08-2011, 04:39 PM   #3
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 279Reputation: 279Reputation: 279
There already exists software that does this, and syncs between smartphones and PCs. It's free, and it works. If you want to reinvent the wheel, you're certainly free to do that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[BASH] dynamic dialog ejme Programming 2 12-15-2010 01:24 AM
Clear The Run Aplication Dialog List? RHEL Red Hat 2 07-02-2007 12:53 AM
Bash Loop Dialog xlordt Programming 5 09-26-2006 10:40 AM
List partiton with dialog command zael Programming 0 04-02-2004 03:55 PM
Shopping-list? Megamieuwsel Linux From Scratch 7 10-11-2003 05:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration