This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Jquery for fancy things!--> | |
<script language="JavaScript" src="/js/public/jquery-latest.min.js" type="text/javascript"></script> | |
<script> | |
// to make fancy buttons. Uses noConflict just in case | |
var $jQ = jQuery.noConflict(); | |
// Use jQuery via $j(...) | |
$jQ(document).ready(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2168][jasonferrier.jlfMBP: tntsite][master]$ python manage.py migrate tnt | |
/Users/jasonferrier/Sites/transitandtrails/tntsite/tnt/migrations/0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key.py:9: SyntaxWarning: import * only allowed at module level | |
def forwards(self, orm): | |
Running migrations for tnt: | |
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del. | |
> tnt:0001_initial | |
FATAL ERROR - The following SQL query failed: SELECT AddGeometryColumn('tnt_trailhead', 'location', 4326, 'POINT', 2); | |
The error was: permission denied for relation spatial_ref_sys | |
CONTEXT: SQL statement "SELECT SRID FROM spatial_ref_sys WHERE SRID = new_srid" | |
PL/pgSQL function "addgeometrycolumn" line 75 at SQL statement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jlfMBP:tntsite postgres$ python manage.py migrate tnt | |
Running migrations for tnt: | |
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del. | |
> tnt:0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key | |
Traceback (most recent call last): | |
File "manage.py", line 11, in <module> | |
execute_manager(settings) | |
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager | |
utility.execute() | |
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 382, in execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jlfMBP:tntsite postgres$ python manage.py migrate tnt | |
Running migrations for tnt: | |
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del. | |
> tnt:0001_initial | |
> tnt:0002_auto__add_transitrouter__add_transitagency | |
> tnt:0003_auto__add_field_trip_geom | |
> tnt:0004_auto__add_field_park_slug | |
> tnt:0005_auto__add_field_park_geom | |
> tnt:0006_auto__add_cpadparks | |
> tnt:0007_auto__add_cpadunits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jlfMBP:tntsite postgres$ python manage.py migrate tnt | |
/Users/jasonferrier/Sites/transitandtrails/tntsite/tnt/migrations/0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key.py:9: SyntaxWarning: import * only allowed at module level | |
def forwards(self, orm): | |
Running migrations for tnt: | |
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del. | |
> tnt:0001_initial | |
> tnt:0002_auto__add_transitrouter__add_transitagency | |
> tnt:0003_auto__add_field_trip_geom | |
> tnt:0004_auto__add_field_park_slug | |
> tnt:0005_auto__add_field_park_geom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jlfMBP:tntsite postgres$ python manage.py migrate tnt | |
/Users/jasonferrier/Sites/transitandtrails/tntsite/tnt/migrations/0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key.py:9: SyntaxWarning: import * only allowed at module level | |
def forwards(self, orm): | |
Running migrations for tnt: | |
- Migrating forwards to 0052_auto__del_field_campground_bathrooms__del_field_campground_county__del. | |
> tnt:0019_auto__add_field_userprofile_api_secret__add_field_userprofile_api_key | |
FATAL ERROR - The following SQL query failed: ALTER TABLE "tnt_userprofile" ADD COLUMN "api_secret" text NULL DEFAULT '49c5830c61fbd6dc288f045b172648ae5094d0455c5fdfe59b20c1d6a5e70f27'; | |
The error was: column "api_secret" of relation "tnt_userprofile" already exists | |
! Error found during real run of migration! Aborting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Turn of subscribe2 for local | |
switch ($_SERVER['HTTP_HOST']) | |
{ | |
case 'domain.com.dev': | |
case 'domain.flickerbox.com': | |
case 'domain.' . $local_network[1] . '.flickerbox.local': | |
case (bool) preg_match("/^(stage\.)?domain\.([a-z]+)\.flickerbox\.local/i", $_SERVER['HTTP_HOST']): | |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
deactivate_plugins('subscribe2/subscribe2.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright Alex Leone, David Nufer, David Truong, 2011-03-11. kathack.com | |
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0); | |
*/ | |
var BORDER_STYLE = "1px solid #bbb", | |
CSS_TRANSFORM = null, | |
CSS_TRANSFORM_ORIGIN = null, | |
POSSIBLE_TRANSFORM_PREFIXES = ['-webkit-', '-moz-', '-o-', '-ms-', ''], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This bash script will inform you any changes in subdirectories that are git repositories | |
# todo: trim "/.git" from the output of line 13 | |
for dir in ~/Projects/*/.git | |
do ( | |
cd $dir/.. |
OlderNewer