gregwhitworth's Profile
Reputation: 200
Stalwart
- Group:
- Members w/DIC++
- Active Posts:
- 1,561 (0.99 per day)
- Joined:
- 20-January 09
- Profile Views:
- 19,157
- Last Active:
Apr 18 2013 05:42 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Mac
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Chevrolet
- Dream Kudos:
- 50
- Expert In:
- HTML, CSS, Web Design
Latest Visitors
-
Ritecoliorero 
09 Jan 2013 - 04:16 -
nick2price 
07 Jan 2013 - 17:30 -
Apokio 
27 Dec 2012 - 21:38 -
sepp2k 
27 Dec 2012 - 11:39 -
Lance907 
14 Dec 2012 - 17:30
Posts I've Made
-
In Topic: Facebook Graph API do one call, not multiple
Posted 8 Jan 2013
True, and I'm not sure why I added in the additional API call, but still I'm having to do the following:
Get album id to then call photos.
I would like to have one query that calls all photos in all albums and just return the latest, say 14. -
In Topic: Git on linux machine doesn't show branch, status info, etc
Posted 8 Jan 2013
Ok, I found it - here you go:
# Use colors from system to show clean or dirty directory c_cyan=`tput setaf 6` c_red=`tput setaf 1` c_green=`tput setaf 2` c_sgr0=`tput sgr0` # get the git branch parse_git_branch () { if git rev-parse --git-dir >/dev/null 2>&1 then gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p') else return 0 fi echo -e $gitver } # set the color of the branch branch_color () { if git rev-parse --git-dir >/dev/null 2>&1 then color="" if git diff --quiet 2>/dev/null >&2 then color="${c_green}" else color=${c_red} fi else return 0 fi echo -ne $color } # export PS1 variable for the bash PS1='[\[$(branch_color)\]$(parse_git_branch)\[${c_sgr0}\]] \u \[${c_red}\]\W\[${c_sgr0}\]: '
Place this in your .bashrc file. -
In Topic: Git on linux machine doesn't show branch, status info, etc
Posted 30 Dec 2012
Uhm, I think you misunderstood my question. Not sure how else to explain it, but basically I like how on my local machine it shows the count info from git status as well as what branch you are on, including your pwd.
Where as on my linux box it just shows pwd. Does that make more sense? -
In Topic: Snippet & Tutorial Demo Capability
Posted 28 Dec 2012
Quote
I think you'll learn more by actual typing in the code, rather than Copy and paste. Is that the point of a tutorial, a more in depth look on a subject matter.
I'm not suggesting that the users copy and paste the code. But for some it would be great to see the end functionality without having to recreate the project. For example, if the title says, "Learn how to create a sweet transition with CSS3." I would want to actually see the transition working before I take the time to read the tutorial, as I may not think the transition is sweet. We can always suggest using JSFiddle or Codepen. -
In Topic: Need a couple pointers.
Posted 27 Dec 2012
Ok. That would require server side code, best with a REST API of some sort and then the use of AJAX would allow you to do changes on a form without actually leaving the page.
My Information
- Member Title:
- Tired.
- Age:
- 28 years old
- Birthday:
- February 3, 1985
- Gender:
-
- Location:
- Wasilla, Alaska
- Interests:
-
WISHLIST:
STEAM: http://steamcommunity.com/profiles/76561198008108961/wishlist
AMAZON: http://amzn.com/w/1ZQR48AECMCTM
And pretty much anything from ThinkGeek. Thanks - Years Programming:
- 13
- Programming Languages:
- HTML, XML, AS2, PHP, CSS, JS
Contact Information
- E-mail:
- Private
- Website URL:
-
http://www.whitworthgallery.org
- Facebook:
- http://www.facebook.com/gwhitworth
- Twitter:
- http://twitter.com/gregwhitworth
|
|


Find Topics
Find Posts
View Reputation Given



|
Comments
Lance907
14 Dec 2012 - 17:32skyhawk133
11 Apr 2011 - 17:59muahugs
11 Aug 2010 - 11:20