Drupal PHP meeting 30 April

I had a meeting today most of the day about Drupal PHP and Open Source community.

I have installed and setup my first drupal 7 and just took a glimpse at it. Just now skimming the code….

On Symfony2 I was able to make the connection resolving my doctrine common and doctrinebundle paths and autoloader problems. The documentation is pretty bad so I have had to do several changes aided by the community.

In addition to that I am getting ready to work on the second phase of testing and get some advance of the memorize scripture project.

On memorize scripture 2 project: I need to think my problems in terms of services and make my project “bundleable”.

On testing i have to work on the other commands tests and submit them for review.

FOS: Friends of Symfony – FOSUserBundle or UserBundle

After installing it according to

setup swiftmailer with gmail there is a link on the cookbook

use “doctrinechema:create –dump-sql” to output the SQL used to create the schema. you will see if there is two queries to create user
and seeing the fields will help you to find the entity
btw, user is a reserved keyword in SQL so using it as table name is not totally safe (and it is a bad practice) same is true for Group, but this break the table creation

now had a problem with:

Notice: serialize(): “sessionverses” returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php on line 136 Notice: serialize(): “chapter” returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php on line 136

But will continue since that is just a notice.

This notice was actually pretty serious notice and it was due to the fact that I needed to implement a serialization methods for my user or session class.

Brainstorming with Phil

1. easy navigation and switching is key there like tabs or something similar for sessions with title names edit feature

2. composite method for “fill in blanks interactive”
use these functions http://koine.heroku.com/javascripts/application.js
the first version should just display on hover

3. next to easily pass shortcut and avoid spending time
bookkeeping and quiz mode

4. “verse coverage” % of book % of chapter, % of bible

5. subset Torah, Prophets, Psalms, etc % distribution
session 1: Torah [X], Minor Prophets[_], Wisdom[X], Gospels [_]

6. color coding to differentiate old and new verses

7. console to interact with db objects? future idea?

8. autogeneration
all verses check box
all chapters check box
all books? check box

two choices: 1) do not allow auto generation based on verse ranges/chapters/books…. user must select everything. simple but harder for user.
2) add basic ranges
if you go with 2) then you should work on that code.
if you go with 1) there is less code so you can work also on other parts of the project.

9. master list & logs

10. social
later social network to share the calendar so you can see friends who completed a verse on the same day as you.

verse entry/setup, calendar algorithm, dashboard (where am I?)


after this the next step can be pushing messages to user’s mobile device (easy)…notifications

i would handle it in the order you get to it
first, you need users to wsign up
then log in
then create sessions
then lok at session status, then use sessions
just so you have a usability timeline and it’s obvious where you’re at

deploying experience

I did a

git submodule foreach git pull

Fatal error: Class ‘Symfony\Bundle\ZendBundle\ZendBundle’ not found in /home/cordoval/sites-2/memorizescripture/app/AppKernel.php on line 13

besides resolving a ton of issues with the naming and reissuing bootstrap build.php and solving other problems!

also was exploring phpfog and capifony, the former looks nice since it supports 5.3 php and trying now to deploy

however the git is missing some files… now troubleshooting with the guys at phpfog

Ok so now we want to explore how we create a repo to deploy at phpfog on sf2.

After much trouble we finally are able to deploy here http://memorizescripture.phpfogapp.com/web/index_dev.php/tracker

Praise the Lord!

Overnight updating

I was able to take the folders of symfony project and placed them on dropbox with git. Merged the latest sf2 standard distro with the tree of my project then manually added submodules to my project. I could not find a way that the .gitmodules could revert back how it was initially generated. But at any rate I was able to do it and learn on my way the names and perhaps speculate about what each component do for sf2.

My experience from one day invested on this is, do not do it, yes you hear well, do not even try.

Use symfony2project or the distro and then adapt it little by little, but never try to merge files.

If the default complete system is not in place it is a waste of time to try to rebuild sf2.