Search found 4732 matches

by josh
Fri Nov 29, 2013 8:53 pm
Forum: PHP - Theory and Design
Topic: DB transactions discussion
Replies: 7
Views: 13594

Re: DB transactions discussion

Well why are you inserting rows just to delete them or roll them back, might as well use a temp table if I understand right. Or maybe even a sqllite in memory database that you delete after you're done. Or just don't use a database at all if you don't need persistence. :roll: Either you're not comp...
by josh
Sat Nov 02, 2013 11:09 am
Forum: Linux
Topic: Starter Web Availability Fault Tolerance
Replies: 5
Views: 28967

Re: Starter Web Availability Fault Tolerance

I use http://linode.com you can deploy servers with their API, or by clicking a button to clone an existing server. You can deploy load balancers the same way w/ automatic failover. From there you just choose any server as the master for web (and/or DB), and sync to all the slaves (using rsync, and ...
by josh
Sat Nov 02, 2013 11:05 am
Forum: Linux
Topic: What is I/O of linux server?
Replies: 4
Views: 23800

Re: What is I/O of linux server?

On my host this is disk IO. They don't limit me, they just display it so I can add more servers if it becomes a bottleneck. Your web host should be happy to tell you what it is, so they can sell you up.
by josh
Sat Nov 02, 2013 12:49 am
Forum: PHP - Frameworks
Topic: Zend Framework pagination
Replies: 1
Views: 5557

Re: Zend Framework pagination

You could use ajax to request the next page's items & update the DOM.
by josh
Sat Nov 02, 2013 12:47 am
Forum: PHP - Code
Topic: Had edit php.ini for upload max size but in phpinfo but stil
Replies: 2
Views: 1038

Re: Had edit php.ini for upload max size but in phpinfo but

Have you checked if you have more than one php.ini? Looks like the one you edited was /etc/php5/cli/php.ini while the phpinfo page you linked to says it's using /etc/php5/apache2/php.ini. phpinfo will tell you which file it loaded: Loaded Configuration File /etc/php5/apache2/php.ini Make sure you e...
by josh
Sat Nov 02, 2013 12:43 am
Forum: Testing
Topic: CI, CD etc.
Replies: 2
Views: 23937

Re: CI, CD etc.

Never used that tool, I use http://phinx.org/ If I were you I'd pick my battles. I think using DB migrations is 1000x more important than unit testing, when it comes to "forcing" a good practice on a less experienced team. Of course in a perfect world you could have both. The CI server isn...
by josh
Sat Nov 02, 2013 12:36 am
Forum: PHP - Theory and Design
Topic: Magento site revamp issues.
Replies: 1
Views: 7197

Re: Magento site revamp issues.

Use database migrations. A good tool I use is robmorgan/phinx. No one is allowed to change the database or edit anything in the Magento admin panel. Everything must be done through a phinx migration. If you are going to make 100 edits to a CMS page, the 1st edit should edit the DB to make it read fr...
by josh
Sat Nov 02, 2013 12:30 am
Forum: PHP - Theory and Design
Topic: DB transactions discussion
Replies: 7
Views: 13594

Re: DB transactions discussion

Well why are you inserting rows just to delete them or roll them back, might as well use a temp table if I understand right. Or maybe even a sqllite in memory database that you delete after you're done. Or just don't use a database at all if you don't need persistence.
by josh
Tue Jul 09, 2013 3:49 pm
Forum: General Discussion
Topic: Writing a user guide
Replies: 7
Views: 4722

Re: Writing a user guide

Ok I understand now. Not sure if XSLT can remove the <html> tag, etc.. since the document I want to pull the documentation into already has it's own (its dynamically generated with an MVC framework). I think the Zend DOM Query is more elegant than XSLT anyways (I just need to grab a div and everythi...
by josh
Sat Jul 06, 2013 10:33 am
Forum: General Discussion
Topic: Writing a user guide
Replies: 7
Views: 4722

Re: Writing a user guide

automatically turn the XML into HTML The docbook or sphinx tools already convert to HTML. That's the whole point of using them over HTML, they automatically generate the ToC so you don't have to write any code. I want to write documentation for my project, not create my own documentation generator...
by josh
Tue Jul 02, 2013 7:19 pm
Forum: Testing
Topic: Testing that array gets shuffled
Replies: 3
Views: 22749

Re: Testing that array gets shuffled

You could serialize the results to a string and hash that. Shuffle & hash multiple times, then assert you have a minimum number of unique results. Regarding requinix's comment about avoiding a getCards() method on the class, there's nothing wrong with having that method. Why don't you want that ...
by josh
Tue Jul 02, 2013 7:15 pm
Forum: Testing
Topic: PHPUnit & DatabaseTestCase
Replies: 1
Views: 19595

Re: PHPUnit & DatabaseTestCase

Personally I'd just alter the low level DB object to delegate to your new more robust DB object. Testing legacy code without modifying it isn't always possible.
by josh
Mon Jul 01, 2013 5:58 pm
Forum: General Discussion
Topic: Got Thoughts on CubeCart, OpenCart, or PrestaShop?
Replies: 10
Views: 8768

Re: Got Thoughts on CubeCart, OpenCart, or PrestaShop?

I have extensive experience with Magento, and some experience with xcart, oscommerce & prestashop xcart & oscommerce are extremely dated. Prestashop isn't that much more modern, but somewhat more so. Its extension architecture is somewhat procedural. Magento is very object oriented, but has ...
by josh
Mon Jul 01, 2013 5:52 pm
Forum: General Discussion
Topic: Writing a user guide
Replies: 7
Views: 4722

Re: Writing a user guide

Something more complex. I think I figured out one way. Zend Framework does it like this. They generate the HTML with table of contents (TOC) using their tool (sphinx docs). Then they add a MVC controller which accepts a GET parameter "page", it then looks for the HTML file that matches tha...
by josh
Sun Jun 23, 2013 2:34 pm
Forum: General Discussion
Topic: Writing a user guide
Replies: 7
Views: 4722

Writing a user guide

I launched a new startup / open source product. http://bookingbat.com/ It is online appointment scheduling software (shameless plug). I need to create a user guide. In the past, for my other project "Vehicle Fits" I created an HTML user guide. This collection of HTML files was checked into...