R, Python, CSS Notes

Notes on Program R, Python, and CSS notes accumulated during the building of this website.

Program R

SpatialAnalysis.co.uk
http://spatialanalysis.co.uk/r

SpatialAnalyst.net
http://spatial-analyst.net/wiki/index.php?title=Main_Page

R-Bloggers
http://www.r-bloggers.com

r TopModel
http://rwiki.sciviews.org/doku.php?id=packages:cran:topmodel

Digital-Geography
http://www.digital-geography.com/tag/en

Computational Ecology
http://toddjobe.blogspot.com

The Comprehensive R Archive Website (CRAN)
http://cran.r-project.org

RStudio
http://www.rstudio.com/ide/

Project R Software
http://www.r-project.org

Books
РAdler, J. (2010) R in a nutshell. O’Reilly (as a general reference)
– Spector, P. (2008) Data manipulation with R (for data processing)

Search Terms
DEM
watershed
ecohydrology
bathymetry
geomorphology
…………..

Python Notes:
The typical progression for students using GIS in their graduate research is to move from ArcToolbox to ModelBuilder to Python. In all three, you are doing the same thing: Geoprocessing tasks on raster, vector, and tabular data. The advantage of Python (like any programming language) is the speed with which it allows you to perform repetitive tasks.

Great introduction to Python by Portland State. LINK

…………..

Notes on CSS code for G4G

Notes on my modifications to the WordPress ‘twentyeleven’ theme CSS stylesheet and child templates for gis4geomorphology.com.

..........................................................................................

Upload Site with FileZilla
http://wordpress.org/support/topic/step-by-step-howto-upload-local-wp-to-remote-host

..........................................................................................
Meteor Slides
1.) Install, activate Meteor Slides
2.) Add this to header.css in the correct place.
Make sure to add opening and closing divtags on first line, open/close phptags on second.
See helpful Vimeo videos by Josh Leuze, www.jleuze.com.

style="clear:both">
if(function_exists('meteor_slideshow')) { meteor_slideshow(): }

3.) Dashboard > Slides > Add New > Give it a name (required) > click 'Set featured image'
4.) In the 'Set featured image' window > Media Library > scroll to your image, click 'Show'
5.) Click 'Use as featured image', then click 'Save all changes' > close window
6.) Image should appear below 'Slide Image (1000x200) > Click 'Publish' on the right
7.) Click 'Update' (same place)
7.) Should update the site and replace any header image with rotating banner images
9.) Click 'Add New' to add another slide

..........................................................................................
Set Up FileZilla Server
http://codex.wordpress.org/Using_FileZilla

..........................................................................................
Remove/Add Search Box
http://wordpress.org/support/topic/remove-search-box-twenty-eleven

..........................................................................................
Child Themes Overview
http://wordpress.org/support/topic/child-themes-and-php-pages

..........................................................................................
Commenting Out
PHP: forwardslash asterisk...asterisk forwardslash
HTML: opencarrot exclamationpoint dash dash....dash dash closecarrot

..........................................................................................
Remove 'Comments are Closed'
Add to end of style.css:
.nocomments {
display: none;
}

..........................................................................................
Space Below Menu Bar (Pages; Settings > Reading)
/* =Content -----------------------------
*/ #main { clear: both; padding: 0 0 0;

..........................................................................................
Change "Proudly Powered by WordPress" in Footer
Open footer.php and edit the text.
http://wordpress.org/support/topic/changing-the-footer-in-my-twenty-eleven-child-theme
http://wprockers.com/how-to-remove-proudly-powered-by-wordpress-from-twenty-eleven-theme-1120.html

..........................................................................................
Pastebin for Code or Preformatted Text
pre tag

..........................................................................................
Small Text
span style="font-size: small;"
/span

..........................................................................................
Extra-small Text
span style="font-size: x-small;"
/span

..........................................................................................
Add a Menu to the Footer
#access a {
http://www.coolestguyplanet.net/adding-a-footer-menu-to-twenty-eleven-theme-wordpress/

..........................................................................................
Space Above Header
#page {
margin: 2em auto;

..........................................................................................
Sidebar on Single Posts
Do this:
1. Assign 'Sidebar Template' to page.php under dashboard -> pages -> edit page -> attributes - page template
2. Remove < ?php get_sidebar(); ?> before the 'get_footer' in page.php
3. Remove any widgets in Sidebar (Appearance > Widgets, drag out)
4. Add the Recent Posts widget to Main Sidebar and set to show 50 posts and name GIS LESSONS.
http://webstutorial.com/wordpress-twenty-eleven-theme-sidebar-pages-posts/content-management-system-cms
http://www.transformationpowertools.com/wordpress/twenty-eleven-sidebar-on-single-posts-and-pages
http://surminski.eu/2011/07/06/add-sidebar-to-single-post-in-the-wordpress-3-2-twentyeleven-theme/
http://futurewebblog.com/add-sidebar-support-posts-twenty-eleven-theme/
http://wpbtips.wordpress.com/2009/11/12/widgets-on-pages-or-single-posts/
http://wpbtips.wordpress.com/2011/05/04/workings-of-duster/
http://webstutorial.com/wordpress-twenty-eleven-theme-sidebar-pages-posts/content-management-system-cms
http://webstutorial.com/add-sidebar-twentyeleven-theme/content-management-system-cms
http://www.tipsandtricks-hq.com/how-to-add-widgets-to-wordpress-themes-footer-1033

..........................................................................................
Add Sidebar to Post Pages
Add < ?php get_footer(); ?> before the 'get_footer' in single.php.

..........................................................................................
Remove "Previous" and "Next" from Single Posts
http://futurewebblog.com/add-sidebar-support-posts-twenty-eleven-theme/

..........................................................................................
Maximum Width of Post Names in Sidebar (twentyeleven)
27 characters

..........................................................................................
Color of Post Titles in Sidebar
Appearance > Theme options
(using this now: #ffa600)

..........................................................................................
Space Between Page Title and Content
.entry-content, .entry-summary {
padding-top: 1.625em;

and...

.entry-title {
clear: both;
color: #222;
font-size: 28px;
font-weight: bold;
line-height: 1.5em;
padding-bottom: .3em;
padding-top: 0;

..........................................................................................
 Comments Are Closed
http://www.lancelhoff.com/remove-comments-are-closed-text-from-posts/

..........................................................................................
 Space Between Widgets (like in sidebar)
http://www.pagelines.com/forum/discussion/11119/make-the-space-between-widgets-smaller-/p1

..........................................................................................
 Footer Boilerplate (copyright stuff)
Site Generator Line in css

..........................................................................................
 Page Title and Post Title Font Sizes
Search css for .entry-title
http://wordpress.org/support/topic/changing-page-title-font-size-and-color-in-twenty-eleven-theme

..........................................................................................
 Sidebar Bullets Color
.widget ul li {
color: #444 !important;

..........................................................................................
 Nav Menu Font Color
#access a {
color: #0065c9;
..........................................................................................

Comments are closed.