Re: joomla

2013-02-27 Thread Tom Haws
Very good.  Congratulations.

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Wed, Feb 27, 2013 at 1:09 AM, Michael Havens bmi...@gmail.com wrote:

 got it working! Thanks. I had to delete everything in the sites directory
 and unpack joomla again to trigger the reinstall of joomla but it's all
 working. yipee!
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 11:37 PM, Tom Haws tom.h...@gmail.com wrote:

 Hmm.  These are always a headache to install when you are new.  You are
 almost there now.  Did you set up the Joomla admin username and password
 somewhere?  I assume those would be in the configuration.php file.  One
 possible approach is to delete that file and see if you can trigger Joomla
 to redo the installation now that you have the MySQL set up correctly.  It
 wouldn't be a bad refresher.  ???

 Tp,

 --
 To forgive is the highest, most beautiful form of love. In return, you
 will receive untold peace and happiness. - Dr. Robert Muller


 On Tue, Feb 26, 2013 at 11:29 PM, Michael Havens bmi...@gmail.comwrote:

 I found instructions to:

 Check your tmp and logs folder paths inside the main configuration.php
 file and make sure those folders are world writeable, 777 should work…

 And I changed the permissions of those two folders. Unfortunately, now
 when I load the admin page I am told:

 Warning

 Username and password do not match or you do not have an account yet.

 But I just got done creating it for sure!

 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 11:11 PM, Michael Havens bmi...@gmail.comwrote:

 Thanks Tom. So I need to create a new MySL for every site.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 11:09 PM, Tom Haws tom.h...@gmail.com wrote:

 I'm no wizard at this, but I always start mysql like this:

 mysql -uroot -p

 Now, are you saying you gave Joomla the mysql root username and
 password to use?

 --
 To forgive is the highest, most beautiful form of love. In return,
 you will receive untold peace and happiness. - Dr. Robert Muller


 On Tue, Feb 26, 2013 at 10:18 PM, Michael Havens bmi...@gmail.comwrote:

 so is this for each 'site' I create? I did create a user and I am
 told:

 An error occurred while trying to create the database
 onlineworkfinder.us.
 The user may not have enough privileges to create a database. The
 required database may need to be created separately before you can 
 install
 Joomla!.

  which says  he doesn't have the proper permissions.. But the
 username is 'root'. Doesn't that mean he has permission to do anything?
 Please, tell me what I need to do to give him the permissions he needs.

 Well, this is strange: I can start mysql  as my user but not with
 sudo.

 $ sudo mysql
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 password: NO)

 So what do I need to do?
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 6:45 PM, Tom Haws tom.h...@gmail.com wrote:

 You do need to create a MySQL user and database for Joomla.  And you
 do need to give that user all the required permissions on the Joomla
 database.  Then all you have to tell Joomla is the name of the database 
 and
 the MySQL username and password.

 --
 To forgive is the highest, most beautiful form of love. In return,
 you will receive untold peace and happiness. - Dr. Robert Muller


 On Tue, Feb 26, 2013 at 5:49 PM, Michael Havens bmi...@gmail.comwrote:

 I think I know what I need to do add my user to the mysql group
 (or whatever it is called).
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 5:28 PM, Michael Havens 
 bmi...@gmail.comwrote:

 so how do I set it up correctly? I mean it was working!
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:47 PM, Michael Havens 
 bmi...@gmail.comwrote:

 but before I created the link it went to the admin page.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:41 PM, keith smith 
 klsmith2...@yahoo.com wrote:


 Sounds like your install is not installed correctly.

 
 Keith Smith

 --- On *Tue, 2/26/13, Michael Havens bmi...@gmail.com* wrote:


 From: Michael Havens bmi...@gmail.com
 Subject: Re: joomla
 To: Main PLUG discussion list plug-discuss@lists.phxlinux.org
 
 Date: Tuesday, February 26, 2013, 3:05 PM


 I've already installed it on my local machine. The reason I'm
 thinking I need a database for each webpage is that I created a 
 link to the
 webpage's location in /var/www in an experiment to be able to not 
 store the
 page in /var/www but rather in ~/Documents/etc . Then when I went 
 to the
 admin page it wanted to setup joomla again.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 6:55 AM, keith smith 
 klsmith2...@yahoo.comhttp://mc/compose?to=klsmith2...@yahoo.com
  wrote:


 Mike,

 It appears you are thinking a DB is a physical thing like a
 static webpage.  It is physical in that it resides on your file 
 system,
 however it is not like a static webpage.

 Take a look at these tutorials
 http://dev.mysql.com/doc/refman/5.6/en/tutorial.html

Re: joomla

2013-02-26 Thread Tom Haws
You do need to create a MySQL user and database for Joomla.  And you do
need to give that user all the required permissions on the Joomla
database.  Then all you have to tell Joomla is the name of the database and
the MySQL username and password.

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Tue, Feb 26, 2013 at 5:49 PM, Michael Havens bmi...@gmail.com wrote:

 I think I know what I need to do add my user to the mysql group (or
 whatever it is called).
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 5:28 PM, Michael Havens bmi...@gmail.com wrote:

 so how do I set it up correctly? I mean it was working!
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:47 PM, Michael Havens bmi...@gmail.com wrote:

 but before I created the link it went to the admin page.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:41 PM, keith smith klsmith2...@yahoo.comwrote:


 Sounds like your install is not installed correctly.

 
 Keith Smith

 --- On *Tue, 2/26/13, Michael Havens bmi...@gmail.com* wrote:


 From: Michael Havens bmi...@gmail.com
 Subject: Re: joomla
 To: Main PLUG discussion list plug-discuss@lists.phxlinux.org
 Date: Tuesday, February 26, 2013, 3:05 PM


 I've already installed it on my local machine. The reason I'm thinking
 I need a database for each webpage is that I created a link to the
 webpage's location in /var/www in an experiment to be able to not store the
 page in /var/www but rather in ~/Documents/etc . Then when I went to the
 admin page it wanted to setup joomla again.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 6:55 AM, keith smith 
 klsmith2...@yahoo.comhttp://mc/compose?to=klsmith2...@yahoo.com
  wrote:


 Mike,

 It appears you are thinking a DB is a physical thing like a static
 webpage.  It is physical in that it resides on your file system, however it
 is not like a static webpage.

 Take a look at these tutorials
 http://dev.mysql.com/doc/refman/5.6/en/tutorial.html.  They should
 help you understand the what and how of databases, specifically MySql.

 Here is some PHP info on how to work with MySql databases
 http://www.php.net/manual/en/set.mysqlinfo.php.

 I would recommend understanding the basics before trying to install
 Joomla on your local LAMP install.



 
 Keith Smith

 --- On *Tue, 2/26/13, Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
 * wrote:


 From: Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
 
 Subject: Re: joomla
 To: Main PLUG discussion list 
 plug-discuss@lists.phxlinux.orghttp://mc/compose?to=plug-discuss@lists.phxlinux.org
 
 Date: Tuesday, February 26, 2013, 12:27 AM



 I was thinking. Do you need to create a new database for every new
 website? If so I think I need to chown the database or maybe add it to a
 group.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 12:17 AM, Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
  wrote:

 why is it asking for database info?! oh bother.
 well I tried to create a database but this is the error it gives:

 An error occurred while trying to create the database
 onlineworkfinder.us.
 The user may not have enough privileges to create a database. The
 required database may need to be created separately before you can install
 Joomla!.

 So please, what do I need to do. Should I chown something? If so, what?
 :-)~MIKE~(-:



 -Inline Attachment Follows-

 ---
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.orghttp://mc/compose?to=PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss


 ---
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.orghttp://mc/compose?to=PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss



 -Inline Attachment Follows-

 ---
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.orghttp://mc/compose?to=PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss


 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss





 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, 

Re: joomla

2013-02-26 Thread Tom Haws
I'm no wizard at this, but I always start mysql like this:

mysql -uroot -p

Now, are you saying you gave Joomla the mysql root username and password to
use?

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Tue, Feb 26, 2013 at 10:18 PM, Michael Havens bmi...@gmail.com wrote:

 so is this for each 'site' I create? I did create a user and I am told:

 An error occurred while trying to create the database onlineworkfinder.us.
 The user may not have enough privileges to create a database. The required
 database may need to be created separately before you can install Joomla!.

  which says  he doesn't have the proper permissions.. But the username is
 'root'. Doesn't that mean he has permission to do anything? Please, tell me
 what I need to do to give him the permissions he needs.

 Well, this is strange: I can start mysql  as my user but not with sudo.

 $ sudo mysql
 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
 password: NO)

 So what do I need to do?
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 6:45 PM, Tom Haws tom.h...@gmail.com wrote:

 You do need to create a MySQL user and database for Joomla.  And you do
 need to give that user all the required permissions on the Joomla
 database.  Then all you have to tell Joomla is the name of the database and
 the MySQL username and password.

 --
 To forgive is the highest, most beautiful form of love. In return, you
 will receive untold peace and happiness. - Dr. Robert Muller


 On Tue, Feb 26, 2013 at 5:49 PM, Michael Havens bmi...@gmail.com wrote:

 I think I know what I need to do add my user to the mysql group (or
 whatever it is called).
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 5:28 PM, Michael Havens bmi...@gmail.comwrote:

 so how do I set it up correctly? I mean it was working!
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:47 PM, Michael Havens bmi...@gmail.comwrote:

 but before I created the link it went to the admin page.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 3:41 PM, keith smith klsmith2...@yahoo.comwrote:


 Sounds like your install is not installed correctly.

 
 Keith Smith

 --- On *Tue, 2/26/13, Michael Havens bmi...@gmail.com* wrote:


 From: Michael Havens bmi...@gmail.com
 Subject: Re: joomla
 To: Main PLUG discussion list plug-discuss@lists.phxlinux.org
 Date: Tuesday, February 26, 2013, 3:05 PM


 I've already installed it on my local machine. The reason I'm
 thinking I need a database for each webpage is that I created a link to 
 the
 webpage's location in /var/www in an experiment to be able to not store 
 the
 page in /var/www but rather in ~/Documents/etc . Then when I went to 
 the
 admin page it wanted to setup joomla again.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 6:55 AM, keith smith 
 klsmith2...@yahoo.comhttp://mc/compose?to=klsmith2...@yahoo.com
  wrote:


 Mike,

 It appears you are thinking a DB is a physical thing like a static
 webpage.  It is physical in that it resides on your file system, however 
 it
 is not like a static webpage.

 Take a look at these tutorials
 http://dev.mysql.com/doc/refman/5.6/en/tutorial.html.  They should
 help you understand the what and how of databases, specifically MySql.

 Here is some PHP info on how to work with MySql databases
 http://www.php.net/manual/en/set.mysqlinfo.php.

 I would recommend understanding the basics before trying to install
 Joomla on your local LAMP install.



 
 Keith Smith

 --- On *Tue, 2/26/13, Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
 * wrote:


 From: Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
 
 Subject: Re: joomla
 To: Main PLUG discussion list 
 plug-discuss@lists.phxlinux.orghttp://mc/compose?to=plug-discuss@lists.phxlinux.org
 
 Date: Tuesday, February 26, 2013, 12:27 AM



 I was thinking. Do you need to create a new database for every
 new website? If so I think I need to chown the database or maybe add it 
 to
 a group.
 :-)~MIKE~(-:


 On Tue, Feb 26, 2013 at 12:17 AM, Michael Havens 
 bmi...@gmail.comhttp://mc/compose?to=bmi...@gmail.com
  wrote:

 why is it asking for database info?! oh bother.
 well I tried to create a database but this is the error it gives:

 An error occurred while trying to create the database
 onlineworkfinder.us.
 The user may not have enough privileges to create a database. The
 required database may need to be created separately before you can 
 install
 Joomla!.

 So please, what do I need to do. Should I chown something? If so,
 what?
 :-)~MIKE~(-:



 -Inline Attachment Follows-

 ---
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.orghttp://mc/compose?to=PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: Question on Cable versus DSL

2013-02-07 Thread Tom Haws
Remind me not to invite you to my house where we are cruising at 512kbps on
the Cox Value package $25 per month.

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Thu, Feb 7, 2013 at 4:24 PM, Richard Wilson r...@mchsi.com wrote:

 I am considering changing from cable (expensive here in Apache Junction)
 to Century Link DSL (formerly Qwest) which now claims
 (from their website) that they can provide 12Mbps to my house. Last time I
 checked a few months ago, I couldn't get 12Mbps and wasn't
 willing to downgrade to their basic 1.5Mbps.  With my Cable provider
 (Mediacom) I am seeing about 11Mbps throughput.

 Can anyone share anything positive or negative about such a move? The one
 time I used DSL (7Mbps) at my brother's house it worked fine for
 me, but I was travelling and had only my laptop with me.  Here at home I
 have a lot more hitting the line, plus 3 teenagers...

 Thanks in advance,

 Richard Wilson
 --**-
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.**orgPLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/**mailman/listinfo/plug-discusshttp://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: torrent

2013-01-25 Thread Tom Haws
Back to the original question, downloading from a torrent is better because
it doesn't swamp the source server.  If you have a feeble server, but a
high-demand and large file to serve, providing a torrent download shifts
the server load from yourself to your users, where they nearly all download
from each other, and all you do is tell them where to find each other.

As a user, downloading a torrent can be better because that feeble server
in the example above may be crawling along at a snail's pace, while the
peer-to-peer download torrent is crusing at mach speed.

With a torrent, the more popular a file, the better the results.

Tom

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Fri, Jan 25, 2013 at 10:45 AM, Michael Havens bmi...@gmail.com wrote:

 how is downloading from a torrent better than just from a single location?
 :-)~MIKE~(-:

 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: woman I know needs help

2013-01-03 Thread Tom Haws
I might be able to help, but I don't know that I am very qualified.

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Thu, Jan 3, 2013 at 10:14 AM, Michael Havens bmi...@gmail.com wrote:

 What time?
 Could someone contact her and help her partition her drive in preperation?
 :-)~MIKE~(-:


 On Thu, Jan 3, 2013 at 10:05 AM, Dazed_75 lthiels...@gmail.com wrote:

 *Location : *The University of Advancing Technology, 2625 W. Baseline
 Road Tempe, AZ 85283 (Between 48th  Fry's)

 That's on the south side of the street.  There is parking on both sides
 (east and west).  Enter from the south side of the building (between the
 classroom building and the dormitories).

 Larry


 On Thu, Jan 3, 2013 at 9:22 AM, Michael Havens bmi...@gmail.com wrote:

 that is exactly what I was thinking. She doesn't have a car. Could
 someone give me the address of it? She will also need help partitioning her
 drive. I would do it but I live in cottonwood.
 :-)~MIKE~(-:


 On Thu, Jan 3, 2013 at 8:33 AM, Dazed_75 lthiels...@gmail.com wrote:

 Just realized people might expect me to chime in here since I run the
 installfests for PLUG.  They are right about it being a good place for here
 (even if she just wants to talk about it).  There will be people there that
 can help her but I will be on an airplane so it will not be me this time.


 On Thu, Jan 3, 2013 at 5:33 AM, Stephen cryptwo...@gmail.com wrote:

 I think the install fest would be a good idea as well.
 On Jan 3, 2013 12:09 AM, Brian Cluff br...@snaptek.com wrote:

 Can you get her to come out to the installfest this Saturday?  There
 will be multiple people there that could get her and her friend all set 
 up.

 Brian

 On 01/03/2013 12:02 AM, Michael Havens wrote:

 I know a lady who is not a gamer and is having problems with her
 computer. I think she is a good candidate for Linux. Could someone
 contact her and see if this is a possibility? She lives near main and
 extension in mesa. She also has a friend in a similar situation.
 :-)~MIKE~(-:


 --**-
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.**orgPLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/**mailman/listinfo/plug-discusshttp://lists.phxlinux.org/mailman/listinfo/plug-discuss


 --**-
 PLUG-discuss mailing list - 
 PLUG-discuss@lists.phxlinux.**orgPLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/**mailman/listinfo/plug-discusshttp://lists.phxlinux.org/mailman/listinfo/plug-discuss


 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss




 --
 Dazed_75 a.k.a. Larry

 Please protect my address like I protect yours. When sending messages
 to multiple recipients, use the BCC: (Blind carbon copy). Remove addresses
 from a forwarded message body before clicking Send.

 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss



 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss




 --
 Dazed_75 a.k.a. Larry

 Please protect my address like I protect yours. When sending messages to
 multiple recipients, use the BCC: (Blind carbon copy). Remove addresses
 from a forwarded message body before clicking Send.

 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss



 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: Questions about Working with (or around) Unity in Ubuntu 12.04

2012-12-18 Thread Tom Haws
 On Tue, Dec 18, 2012 at 1:31 PM, Ted Gould t...@gould.cx wrote:

 **

 This is probably caused by using virtual box, in that the launcher in
 12.04 behaves based on how hard you push it open.  In your case that's
 causing the pointer to leave the window.  I'd probably just recommend
 leaving it open.  You can adjust that setting and also the reveal
 sensitivity in the Appearance control panel on the Behavior tab.


You are my hero, Ted.  Tweaking doesn't work, but leaving it open does!



  2.  I cannot find any way to Show the Desktop.  I have never been able to
 do this in Unity (or in Gnome on Linux Mint).


 It's on the Alt+Tab switcher, first item.


I am not seeing it.
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: OT: Figuring Sales Tax for Online Sales

2012-12-12 Thread Tom Haws
What a coincidence.  We are doing the same thing this week at Pristine
Auction.  We think we've found the solution in Avalara.  Essentially, it's
a complicated thing, and you need to pay for an API calculating service.
At least that's what our team has determined.

To the others on the list, can you comment also for both Keith and me on
sales tax services like Avalara?

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller



On Wed, Dec 12, 2012 at 7:30 AM, keith smith klsmith2...@yahoo.com wrote:


 Hi,

 I support a California business who does most of it's business online.  I
 need to figure out how to determine the sales tax rates for California
 only.  As things change all online sales may be taxed soon so I need to
 prepare for that as well.

 I know I am not the first person to have to deal with collecting sales tax
 from online sales.  I do not want to build anything that would require us
 to maintain tax tables or to decipher who is in what jurisdiction.

 I've done a little research and find little in the way of an affordable
 subscription, or a government API.  As this campaign to get all online
 retailers to pay local sales tax continues, I'd hate to have to maintain 50
 or more API's just to be able to satisfy the governments requirement that
 we collect sales tax.

 Currently we collect sales tax based on the highest rate for those who
 ship using a California address. Our system allows for one tax rate at the
 state level.

 Anyone have any experience with collecting sales tax on line?

 Thank you in advance for your help!!

 
 Keith Smith


 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: OT: CodeIgniter Routing

2012-11-30 Thread Tom Haws
Yeah.  Keep researching CodeIgniter tutorials, because ideally, you
wouldn't ever need to use routes.php unless you had a need for an alias or
some other special occasion.

On another note, it would be more conventional to talk to your database
tables in model files and then call model functions in your controllers.
Again, I recall watching a short CodeIgniter tutorial video that really
helped clarify this.

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Fri, Nov 30, 2012 at 9:36 AM, Eric Cope eric.c...@gmail.com wrote:

 You can just put your controller pages in the controller/cp directory...

 Then you don't have to muck with the routes...

 Eric


 On Fri, Nov 30, 2012 at 9:20 AM, keith smith klsmith2...@yahoo.comwrote:



 Hi,

 I'm rather new to CodeIgniter.  I'm using version 2.0.3 and am using the
 provided .htaccess code to remove index.php from the URL.

 I'm working on a control panel and would like to set up a controller for
 each table to keep things simple and modular.  (any feedback on a better
 idea is much appreciated)

 I was thinking I needed to configure the controllers this way

 1) $route['cp/pages/(:any)'] = cp_pages; (would contain only controller
 code for managing the pages table.)

 2) $route['cp/users/(:any)'] = cp_users; (would contain only controller
 code for managing the users table.)

  other table configured with their own control panel.

 3) $route['cp/'] = cp; (splash page and menu.  If not logged in
 presents the log in form)

 /cp/  gives me the splash page. so far so good.

 /cp/pages - cp controller - not what I was expecting.  I was wanting the
 index function of the cp_pages controler.

 /cp/pages/list/ - takes me to the cp_pages controller / index function

 What I would like to configure is:

 /cp/ - use cp controller

 /cp/pages/ - use the cp_pages controller / index function
 /cp/pages/add/ - use the cp_pages controller / add function
 /cp/pages/list - use the cp_pages controller /list function
 /cp/pages/list/10 - use the cp_pages controller /list function with
 segment set to 10 as starting point.

 If I'm going down the wrong path please let me know.

 Thank you!


 
 Keith Smith
 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss



 ---
 PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
 To subscribe, unsubscribe, or to change your mail settings:
 http://lists.phxlinux.org/mailman/listinfo/plug-discuss

---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: OT: CodeIgniter Routing

2012-11-30 Thread Tom Haws
In other words, wouldn't you have the model functions build the data arrays
the way the views are going to need them, then call that output from the
controllers and send it to the views?

--
To forgive is the highest, most beautiful form of love. In return, you
will receive untold peace and happiness. - Dr. Robert Muller


On Fri, Nov 30, 2012 at 2:00 PM, Tom Haws tom.h...@gmail.com wrote:

 Keith,

 What I'm maybe not understanding is why you are putting 100 lines of CRUD
 into the controllers.  We have all CRUD functions in the models, and we
 simply call them in the controller functions, so that they typically are
 much shorter than 100 lines.

 So what I would expect is 100 model files and one controller file with a
 function each for 100 pages, assuming you want to organize it that way.  I
 think another way might be to make /cp a module with each cp/page1
 cp/page2, etc a controller file with mainly only an index function in it.

 Tom
 Gilbert

 --
 To forgive is the highest, most beautiful form of love. In return, you
 will receive untold peace and happiness. - Dr. Robert Muller


 On Fri, Nov 30, 2012 at 1:41 PM, keith smith klsmith2...@yahoo.comwrote:


 Thank Tom,

 I'm already following the M-V-C like you outlined.  The database is
 normalized so no tables can be combined.

 For one table the controller contains about 100 lines of code for
 add/edit/delete/save/list.  For 50 tables that would be 5000 lines of code
 in one controller.

 If I can figure out the routing, I can create one controller per table.
 That is the optimum for me.  Otherwise I will use includes with a switch to
 determine what code needs to be included and run.

 Thanks again!!




 
 Keith Smith

 --- On *Fri, 11/30/12, Tom Haws tom.h...@gmail.com* wrote:


 From: Tom Haws tom.h...@gmail.com
 Subject: Re: OT: CodeIgniter Routing
 To: Main PLUG discussion list plug-discuss@lists.phxlinux.org
 Date: Friday, November 30, 2012, 12:13 PM


 Keith,

 Remember the MVC motto Keep models fat.  Keep controllers skinny.
 Ideally the controller is nothing but a butler or a receptionist who knows
 who does what and where to send you for what.

 Here's what would be the standard procedure for the Tempe, Arizona Valley
 MedTrans team.

 1.  For every cp/, cp/page1, cp/page2, etc, have a function index(),
 function page1() function page2(), etc in controllers/cp.php.
 2.  For every table (or logical item of business) such as article,
 user_account, inventory_item, bid, shipment, etc, have a file
 models/article_model.php, models/user_account_model.php,
 models/inventory_item_model.php, models/bid_model.php,
 models/shipment_model.php.
 3.  Inside every ___model.php file, have functions like
 get_user_account($id), change_user_password($user_id, $new_password),
 get_shipments_by_user($user_id).

 Is it possible some of your tables might be able to be combined?  Would
 you be interested in sharing part of the db schema?

 --
 To forgive is the highest, most beautiful form of love. In return, you
 will receive untold peace and happiness. - Dr. Robert Muller


 On Fri, Nov 30, 2012 at 11:20 AM, keith smith 
 klsmith2...@yahoo.comhttp://mc/compose?to=klsmith2...@yahoo.com
  wrote:


 Ok,  I understand.  What you are talking about is what I would like to
 do.  However When I drop cp.php in the controllers directory and drop
 pages.php in the controllers/cp directory,

 /cp/pages uses the cp.php controller.  If this is what you suggested
 earlier, I must have it mis configured.

 I appreciate your help!!

 
 Keith Smith

 --- On *Fri, 11/30/12, Eric Cope 
 eric.c...@gmail.comhttp://mc/compose?to=eric.c...@gmail.com
 * wrote:


 From: Eric Cope 
 eric.c...@gmail.comhttp://mc/compose?to=eric.c...@gmail.com
 
 Subject: Re: OT: CodeIgniter Routing
 To: Main PLUG discussion list 
 plug-discuss@lists.phxlinux.orghttp://mc/compose?to=plug-discuss@lists.phxlinux.org
 
 Date: Friday, November 30, 2012, 11:12 AM


 You can do it that way. I always found that the CRUD wasn't just a simple
 CRUD. The form validation was slightly different. The data manipulation
 between models and views was slightly different.
 Therefore, I built individual controllers, with a database table having
 its own model extended from MY_Model extended from CI_Model. This allowed
 me to put all of the common model functions in one file, test it, then
 extend it further for other additional functionality.

 The CI style is less about doing it a specific way. Its not like Rails
 where there is ONLY one way to do things. CI is flexible.

 Does that help?

 Eric


 On Fri, Nov 30, 2012 at 11:04 AM, keith smith 
 klsmith2...@yahoo.comhttp://mc/compose?to=klsmith2...@yahoo.com
  wrote:


 Actually I have 50+ tables to deal with.  That number will grow.  I'm not
 following what you are suggesting - abstracting the models into a
 MY_Model.php core file?

 I'm thinking one controller for the control panel, and depending on what
 the second