Levels of complexity and human ingenuity
You just went to the Google home page.
Simple, isn’t it?
What just actually happened?
You just went to the Google home page.
Simple, isn’t it?
What just actually happened?
“Be curious. Read widely. Try new things. What people call intelligence just boils down to curiosity.”
- Aaron Swartz
I swear to Asgard, if the Ancient Destiny ship does not return by 2014 I will go all medieval on MGM and that stupid lion.
Production/Development Branches:
* These branches should only be temporary. When you’re done with a branch (merged to TEST or ignoring the branch permanently), you can easily delete the branch with: git branch -D <branch name>
Daily Development Cycle:
You’ll be working on improving the codebase (feature or maintenance) or fixing a bug from TEST branch:
git checkout test # Switch to the TEST branch to pull the latest codebase.
git pull # Pull changes for all branches to see whats changed.
# For individual branch pull do: git pull origin <branch>
if you’re starting work on a new feature or bug fix, then checkout to a new branch:
if you’re already working on a feature/bug branch, then checkout to it to update codebase & continue work:
NOTE: Before merging branches or pushing changes to the team or server, it’s important to test your application to make sure all features work correctly and/or meet test cases. * Sometimes we forget to test and users or team members suffer. *
Fixing Bugs:
Sometimes a bug is found in production code or during the release (dev) cycle. Follow these steps to fix accordingly.
If found in production and it is a major bug which prevents users from using the application/core features:
Commits & Messages:
Commit messages are important and should describe your fixes, improvements, etc. You can write a brief message or detail commit that outlines important notes and possible files to look at so other team members understand how the code changes affect the partial or entire codebase.
Brief (samples):
Detail (sample):
Feature 123 – User is able to add comment and assign to friends to profile.
1 – able to add dynamic comment to profile via ajax.
** able to add, edit, delete.
** able to attach friend to commit, then notifies friend via email.
2 – notify user when friends reply to their comment.
URL: http://dev.app.com/profile/1234
DB changes: new table user_comments & user_comment_notify (app/schema/user_comments.sql)
Your application environment should always be ready, working code and deployable. The following example is an effortless and plain setup and release cycle, from development to production changes.
Server Environment:
There should be at least three environment setups:
Release Cycle Phases:
Sit back till bugs are reported or continue next release cycle. Grab yourself a beer & go out and play !!
Stargate writers and producers, Joseph Mallozzi and Paul Mullie, have teamed up for a 4-issue comic series called Dark Matter. Here’s an official series description:
A derelict ship floats in space, its troubled crew awakened from stasis with no memories of who they are or how they got on board. Their search for answers triggers the vessel’s deadly security system: a relentless android bent on their destruction. Facing threats at every turn, they have to work together to survive a voyage charged with vengeance, redemption, betrayals, and hidden secrets best left unknown.
It’s said Joseph Mallozzi is pitching Dark Matter as “a high-end cable television series.”
Based on the official series description, I can only imagine it will be very familiar to the Stargate Universe (SGU) tv drama and character suspense with the touch of space missions.
I for one would love to see the SGU return but thats very unlikely. I’m quite sure it was in Mallozzi’s interest and the rest of the SGU crew to entertain us with many more amazing episodes and seasons. I also remember SGU was originally pitched as a five season series.
Hopefully Dark Matter can bring those same character plots and dramatic yet complex human interaction that was instilled in SGU from the beginning, which left us at the very end of it’s series finale with a memorable cliffhanger and endless questions.
If this is the alternative version of the Stargate Universe tv show set with a different format, space mission and badass enemies, I will personally take whatever these fine writers and masters of Space tv show drama and action scene they have to offer. I know many other Stargate fans would agree.
You can still watch every Stargate episode, season and every series on Netflix.
Stay tune here or read the article post from GateWorld for further details on Dark Matter.
As a web developer, there’s nothing more I hate than not having the right tools to get the job done quickly or at an optimal speed. Aside from that, many hosting servers, for example GoDaddy, makes it even frustrating to work without access to version control and sometimes without SSH access when your clients hosting plans is on a shared plan. Not able to use Git (or SVN which ever you prefer) makes it a pain in the ass to commit changes, update the site quickly and show your talents.
So you know what I did of course, yes you do. I created an alternative tool that would alleviate the suffering of having to use FTP each time to update the website. I present to you my version of Git Publish to GoDaddy shared servers and the likes:
The script is very simple to use, just edit your SSH settings within the file then open up that trusty terminal window and run as such:
sh Git_Publish_To_Shared_Server.sh
The script will archive in a file the latest git commits since you last did your Git Push. It will secure copy the archived (tar.gz) file to your SSH server, then extract the archived file and update your remote files instantly.
The script checks if the current repository is clean or dirty, which will warn you in case its not clean. After you’ve commited your changes locally, its time to upload the most latest changed/added files to the website hosting via SSH. But don’t worry too much, the only thing the script asks you each time is your ssh password. (No, it does not store the password nor send it over to me) … just take a look and see how tiny yet useful it will be to you.
Happy Hacking.
How did you get around the password prompt when doing the scp?
It doesn’t bypass the scp password prompt. I left it on the script so its safer to prompt than storing your password and piping it to scp. If you use this script on a server which you have SSH password-less access configured (aka your public ssh key on the server) then the password should not prompt you.
godaddy is not always the best registrar, the private registration of godaddy is too expensive.
I am very thankful to this topic because it really gives great information
Sorry I’m a shell script noob, but is this all about wrapping up local Git changes and pushing them via scp?
I found this great post about setting up Git on Godaddy via a prior build created on a Virtual Box! Seems to work like a charm http://johntrammell.com/wp/2011/01/05/using-git-on-godaddy/
I am two weeks into using GIT and I’m already using your script to post from my VPS to a GoDaddy account. This works well! My only question is why have you asked to Push changes to remote repo at the end of the script?
@Josh pushing files via “scp” because GoDaddy didn’t make it easy to go regular “git push”. (Its been a long while so i think they might have updated their hosting to allow Git – unfortunately i’m no longer with GoDaddy neither recommend them to anyone.)
As you know from my last post on Ubiquity and PHP, I love to search and use the add-on like a mad-man, but i just could not get PHP search fully implemented for all functions, so i’ve updated the darn plugin. It is version 0.4 because that’s where i feel it was last best iterated, without my trusty SVN enabled.
Whats new?
Well for starters, the PHP search algorithm (and its very simple indeed, just take a peak) can now search for all existing functions (atleast from what i’ve tested so far). If the function you searched was misspelled or incorrect, it fails nicely into the default “PHP Function List” search results, as PHP.net current does for your convenience.
Second, sometimes when I search for php functions, I don’t necessarily need to view all the content of the function page, that is: code usage, examples, notes, parameters and user contributed notes. So what do I do in this case? I simply give it an parameter action after the function name to just display that section.
Usage before:
Start Ubiquity and type “php strstr” … notice how it just returns all the code block usage, examples, etc. Also notice how the scrollbar appears, I hate that.
Usage now (with only examples):
Start Ubiquity and type “php strstr examples” … notice how it just returns only examples.
You can return everything with param action “all” or by sections “description”, “notes”, “comments”.
Go ahead, give it a try and let me know what you think. If you’re a web developer, please feel free to extend it even more via Github.
View the Ubiquity PHP command and install it here.
PHP Search Tips:
Displays function & examples: {FUNC}
Displays only description: {FUNC} desc or {FUNC} description
Displays only parameters: {FUNC} params or {FUNC} parameters
Displays only notes: {FUNC} notes
Displays only user contibuted notes: {FUNC} comments
Displays All: {FUNC} all
So you want free business cards, you say? And want to have you Google Voice number too, eh? Don’t hesitate any longer and grab your free business cards from Google.
I happen to see an ad for free printed business cards on my Google Voice account, so I wanted them now. It took me to iPrint’s website and ask me to fill in a few fields (business name, address, email, etc) and iPrint (Google’s partnered printer) gives you the real-time proof of your cards. Submit your order through the cart and expect them in 10 business days via USPS (free shipping too). Happy networking.
I have been a loyal fan of Stargate (call me a fanboy if you’d like) since the theater showing of the original movie. Counting the years since, it has been more than 15 years and even still I’m more into the franchise then ever. My anticipation for the spin-off Stargate Universe is beyond words after having watched the second trailer of the show. I felt a wave of bliss, satisfaction and energy with all the hints, dramatic scenes and special effects the Stargate team have in stored for us dedicated fans and newcomers.
Well, enough for now. I will write more about the show as it comes and certainly be talking about the previous series’ (Stargate SG-1 and Atlantis), because after their ending finales, there is still much to talk about, theories to contemplate and questions unanswered. Especially my questions between the alliance of four great races, their technological relationships and advances.
Below is the Stargate Universe trailer # 2 for your viewing pleasure:
Gregg Williams 1:33 pm on February 13, 2012 Permalink
Bless you! I’ve been pursuing the same approach to git developement, but I’m not so adept at git, and sometimes things go wrong. This is an excellent blueprint–thanks!
mitchell amihod 2:22 pm on February 13, 2012 Permalink
nice article. One change i would recommend – using the -d flag for delete. this will help people from accidentally deleting an unmerged branch.