Ready, Set, Launch!

So here I am. I have spent most of my spare time since April developing zingberry.com. Finally, we have a working version that we were satisfied with launching. I am now a person that has Co-Founded a company and launched a product. I am very proud of my team and all that we have accomplished on the zingberry project, and we are just getting started!

So far, I have already learned many things.

- What it really means to develop a project that will actually be put into production.
You start to pay attention to detail. Every step of the process has to be planned out. From a list of functionality to where every button and click on the page ends up going. If you dont know where you’re going, you’re just coding in the dark.

- How to work with a team.
One of the most valuable things you can have is experience working with a team. How to cooperate and compromise are very important skills to have. Also realizing that everybody has something to contribute to the project.

- Real world programming techniques.
I can’t stress this enough. Think Modular. Reusable and extendable code makes for a better and more efficient program.

- What i really want to do.
I want to work on ideas. I want to take this raw form of an idea, and bring it to life. Make that concept a reality. From inception all the way to deployment.

- How versatile you have to be to work on at start-up company.
I had to fix problems I didn’t even think could exist and configure applications i never worked with before.

- What “un-paid” actually means.
And it doesn’t mean “you get nothing from working on this project”. I means you get something that can be even more valuable in the future. EXPERIENCE.

These are just some of the main things I could come up with off the top of my head. There are many others, and definitely many to come in my future. Thanks to everybody on the zingberry team for getting us to where we are today.

-Brandon

new vps, and some fun with git

Hello all. like ive said in the past, i really need to update this more often. so here’s a big one lol.

Well i’ve finally upgraded webhosts from GoDaddy to ThrustVPS. That transition in and of itself has taught me alot about setting up apache virtual hosts and working with a production level webserver. so if you have the money, and want to upgrade to a vps, then DO IT. its pretty fun :)

now for some zingberry updates. I’ve recently been transitioning the codebase to git so we have revision control. This became a little more difficult then i thought because of the way i had CodeIgniter setup. Previously i had two completely separate CI applications for the dev and stable codebases. this was a hassle when i wanted to update the stable because i had to copy the files over manualy -____- so like i said, i have been reorganizing the code. Now i have a single CI application folder, but there is a new issue. I want to be able to use git to push the  development branch to dev.zingberry.com, and i want to push the production branch to zingberry.com. the problem is that those two branches had two different configurations for logging. production was set to production level logging and development was set to development level logging. In order to compensate for this new organization of the code, i had to make CI smart.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 *---------------------------------------------------------------
 * SMART APPLICATION ENVIORNMENT MANAGEMENT
 *---------------------------------------------------------------
 *
 * Changes ENVIORNMENT based on SERVER_NAME
 *
 */
 
    switch($_SERVER['SERVER_NAME']){
        case 'yoursite.com':
            define('ENVIRONMENT', 'production');
        break;
        case 'dev.yoursite.com':
            define('ENVIRONMENT', 'development');
        break;
        default:
            define('ENVIRONMENT', 'production');
    }

This is a code snippet i came up with to detect at what enviornment level to run at. This snippet is inserted into your index.php file. also if you to implement this snippet, you have to comment out this line:

1
//  define('ENVIRONMENT', 'production');

And that’s all there is to it :)
Its pretty straight forward, but still very useful in my case, so i thought i’d share.

until next time.

its been a while… plus an apple headache >:|

So ive ben neglecting my blog for months now and i guess i havent been doing anything exciting, but now i got good news!

I have just recently joined the fine team at ZingBerry.com
They have a great concept and a solid team and i look forward to working with them on this great project :)

In other related news, since one of the team members uses a MacBook, most of our team documents are in the iWork format (.pages). After a google search, i found that .pages files are actually .zip files with a standard structure:

1
2
3
4
QuickLook/Thumbnail.jpg
QuickLook/Preview.pdf
buildVersionHistory.plist
index.xml

So basically you acn extract the Preview.pdf and that is the equivalent of converting the .pages file to .pdf
But i didnt want to do this by hand -____-
So i made a bash script to do it recursively starting with the specified directory.

Below is the source code. the convert function is where the magic happens. it unzips the Preview.pdf out of the .pages file to the current directory, then it renames it to the name of the .pages file. Pretty simple. Although it is a real pain in the head that apple decided to make its own file type without at least an option for opening it on a windows machine >.<

waytogoapple
–Brandon

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
 
#set the internal feild seperator to newline
IFS=$'\n'
 
function usage {
echo "This is a script to extract the Preview.pdf out of a .pages file"
echo "recursively through all subdirectorys"
echo "Syntax:"
echo "./pagestopdf "
 
}
 
#unzips only the PDF preview from the .pages file and
#renames it to the name of the .pages file
function convert {
echo "------------------------------------------"
for i in `ls -1 *.pages`
do
unzip -j "$i" "QuickLook/Preview.pdf"
echo "Renaming to \"${i%\.pages}.pdf\""
mv Preview.pdf  "${i%\.pages}.pdf"
echo "--------------"
done
}
 
#Executes the convert function recursively through directorys
recursive () {
first_directory=$1
cd "$first_directory"
for directory in  `ls -d */`
do
recursive ${directory%/}
echo :::: Directory : `pwd`
convert
cd ..
done
}
 
#start the program
if  [ ${#1} -gt 0  ];
then
cd "$1"
echo :::: Directory : `pwd`
echo "------------------------------------------"
convert
recursive $1
echo "Extraction completed..."
else
#print usage
usage
fi

facepalm

So apparently something is making my webserver/database run Extremely slow. so slow that i cant even use the website or access the database over phpmyadmin. i guess thats what you get for using shared hosting from godaddy. In the meantime, as i fume over the fact that my site is not usable, i write this blog entry.

over the past day or so I’ve had a friend of mine school me in jquery and ajax and forms. I had no idea the power of the JQuery Forms plugin and the Form Validation Plugin.
I also broke my whole site by renaming database fields,. but it was a necessary change for scaling in the future.

I have also started to lay out a basic flow chart for how i think the iOS and android apps should flow.

Also, who would like to see something like this for the Stevens Community?
http://prospectandmeeting.com/

I think its genius.

whodoesntlikegenius
-Brandon

sudo progress

Just looked through my folder with all the ideas pertaining to my old project, evaluated the status of the project and re-drafted the list of features still to be implemented before some type of closed beta release. Still need a Graphic designer and an Android app developer to get things moving, but this is a start in the right direction.

As far as building a LAMP(LinuxApacheMysqlPHP) server for my friends company, i just need a decent box. It turns out with 2 garbage boxes i still cant make a decent box =/ In a couple days i should get a decent box from one of the guys so i can get started on that.

And now to get  working on that looong list of features with a little help from Deadmau5 and Kaskade.
Fuel the MIND.

-Brandon

intro post

so this is my first post… just kinda putting it out there. As far as things on my mind,

Just saw The Social Network the other day, kinda inspired me to continue working on a website project (which i will reveal when the time is right) I started working on it over the summer, worked on it for a couple weeks, stopped once school started, and it’s about half done right now. Needs a graphic designer and some more features before i roll it out to the public.

Im working with a friend who is trying to start a company. For this they need a webserver. I somehow need to put together a box with random parts , i’ll keep you updated on how that goes…

peace,
Brandon