code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9 values | license stringclasses 15 values | size int32 3 1.05M |
|---|---|---|---|---|---|
/**
* Copyright (C) SiteSupra SIA, Riga, Latvia, 2015
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
YUI.add('itemmanager.itemlist-uploader', function (Y) {
//Invoke strict mode
"use strict";
//Shortcut
var Manager = Supra.Manager,
Action = Manager.PageContent;
/*
* Editable content
*/
function ItemListUploader (config) {
ItemListUploader.superclass.constructor.apply(this, arguments);
}
ItemListUploader.NAME = 'itemmanager-itemlist-uploader';
ItemListUploader.NS = 'uploader';
ItemListUploader.ATTRS = {};
Y.extend(ItemListUploader, Y.Plugin.Base, {
/**
* Supra.Uploader instance
* @type {Object}
* @private
*/
uploader: null,
/**
* File uploader ids to item ids
* @type {Object}
* @private
*/
ids: null,
/**
*
*/
initializer: function () {
var itemlist = this.get('host'),
container = itemlist.get('contentElement');
this.ids = {};
this.listeners = [];
this.listeners.push(itemlist.after('contentElementChange', this.reattachListeners, this));
if (container) {
this.reattachListeners();
}
},
destructor: function () {
this.resetAll();
// Listeners
var listeners = this.listeners,
i = 0,
ii = listeners.length;
for (; i < ii; i++) listeners[i].detach();
this.listeners = null;
},
/**
* Attach drag and drop listeners
*/
reattachListeners: function () {
var itemlist = this.get('host'),
container = itemlist.get('contentElement'),
//doc = null,
target = null;
if (this.uploader) {
this.uploader.destroy();
this.uploader = null;
}
if (!container) {
return false;
}
//Create uploader
target = itemlist.get('iframe').one('.supra-itemmanager-wrapper');
this.uploader = new Supra.Uploader({
'dropTarget': target,
'allowBrowse': false,
'allowMultiple': true,
'accept': 'image/*',
'requestUri': Supra.Url.generate('media_library_upload'),
'uploadFolderId': itemlist.get('host').options.imageUploadFolder
});
this.uploader.on('file:upload', this.onFileUploadStart, this);
this.uploader.on('file:complete', this.onFileUploadEnd, this);
this.uploader.on('file:error', this.onFileUploadError, this);
},
/**
* Reset all iframe content bindings, etc.
*/
resetAll: function () {
var uploader = this.uploader;
if (uploader) {
uploader.destroy(true);
this.uploader = null;
}
},
/* ------------------------ FILE UPLOAD ------------------------ */
/**
* Handle file upload start
*/
onFileUploadStart: function (e) {
var data = e.details[0],
itemlist = this.get('host'),
item = null;
// Prevent item from being opened for editing
itemlist.initializing = true;
item = itemlist.addItem({'title': e.title.replace(/\..+$/, '')});
itemlist.initializing = false;
this.ids[e.id] = item.__suid;
},
/**
* Handle file upload end
*/
onFileUploadEnd: function (e) {
var data = e.details[0],
itemlist = this.get('host'),
itemdrop = itemlist.drop;
if (e.old_id in this.ids) {
itemdrop.updateItemInCollection(data, this.ids[e.old_id]);
delete(this.ids[e.old_id]);
} else {
itemdrop.addItemToCollection(data);
}
},
/**
* Handle file upload error
*/
onFileUploadError: function (e) {
var itemlist = this.get('host');
itemlist.removeItem(this.ids[e.id]);
delete(this.ids[e.id]);
}
});
Supra.ItemManagerItemListUploader = ItemListUploader;
//Since this widget has Supra namespace, it doesn't need to be bound to each YUI instance
//Make sure this constructor function is called only once
delete(this.fn); this.fn = function () {};
}, YUI.version, {requires: ['plugin', 'supra.uploader']});
| sitesupra/sitesupra | lib/Supra/Package/Cms/Resources/public/content-manager/itemmanager/modules/itemlist-uploader.js | JavaScript | gpl-2.0 | 4,508 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | Fez - Digital Repository System |
// +----------------------------------------------------------------------+
// | Copyright (c) 2005, 2006, 2007 The University of Queensland, |
// | Australian Partnership for Sustainable Repositories, |
// | eScholarship Project |
// | |
// | Some of the Fez code was derived from Eventum (Copyright 2003, 2004 |
// | MySQL AB - http://dev.mysql.com/downloads/other/eventum/ - GPL) |
// | |
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to: |
// | |
// | Free Software Foundation, Inc. |
// | 59 Temple Place - Suite 330 |
// | Boston, MA 02111-1307, USA. |
// +----------------------------------------------------------------------+
// | Authors: Christiaan Kortekaas <c.kortekaas@library.uq.edu.au>, |
// | Matthew Smith <m.smith@library.uq.edu.au> |
// +----------------------------------------------------------------------+
//
//
include_once("config.inc.php");
include_once(APP_INC_PATH . "class.lister.php");
include_once(APP_INC_PATH . "class.auth.php");
if (APP_AUTHOR_PROFILE_REDIRECT == 'ON') {
// Send to the new eSpace search profile page when only the author_id is supplied PT: #176474178
if (count($_GET) === 2 &&
array_key_exists('browse', $_GET) &&
$_GET['browse'] === 'author_id' &&
array_key_exists('value', $_GET) &&
is_numeric($_GET['value'])
) {
Lister::authorProfileRedirect($_GET['value']);
}
}
$res = Lister::getList($_GET, true);
$pids = array();
if (is_array($res['list'])) {
foreach ($res['list'] as $record) {
if (array_key_exists('rek_pid', $record)) {
$pids[] = $record['rek_pid'];
}
}
}
/*
* If this is a logged in user we want to save this data for view pages, so when can create
* 'prev' and 'next' links
*/
$username = Auth::getUsername();
if (!empty($username)) {
$_SESSION['list'] = $pids;
$_SESSION['list_params'] = $_GET;
$_SESSION['script_name'] = $_SERVER['SCRIPT_NAME'];
$_SESSION['last_page'] = $res['list_info']['last_page'];
$_SESSION['view_page'] = $res['list_info']['current_page'];
}
| uqlibrary/fez | public/list.php | PHP | gpl-2.0 | 3,603 |
using System.Collections.Generic;
using System.Xml.Linq;
using UnityEngine;
namespace IaS.Xml
{
public class XmlTrackNode
{
public const string ElementTrackNode = "node";
private const string AttrTrackNodeId = "id";
private const string AttrTrackNodePosition = "p";
public Vector3 Position { get; private set; }
public string Id { get; private set; }
public XmlTrackNode Previous { get; private set; }
public XmlTrackNode Next { get; private set; }
public static XmlTrackNode FromElement(XElement element, Dictionary<string, int> counts)
{
string id = XmlValueMapper.FromAttribute(element, AttrTrackNodeId).AsIdValue("t_node", counts);
Vector3 position = XmlValueMapper.FromAttribute(element, AttrTrackNodePosition).AsVector3().MandatoryValue();
return new XmlTrackNode(id, position);
}
public XmlTrackNode(string id, Vector3 position)
{
Id = id;
Position = position;
}
}
}
| mANDROID99/IaS | Iron_And_steam/Assets/Scripts/Xml/XmlTrackNode.cs | C# | gpl-2.0 | 1,065 |
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# https://morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "Movable-Type"
authors [
"Andrew Horton",
# v0.2 # remove :certainty.
# v0.3 # Uses :version=>//.
"Brendan Coles <bcoles@gmail.com>", # v0.4 # 2011-07-07 # updated regex. added example urls, google dorks and version/path detection with mt-check.cgi.
]
version "0.4"
description "Blogging platform"
website "http://www.movabletype.org/"
# Google results as at 2011-07-07 #
# 122 for "Powered by Movable Type"
# 89 for inurl:/mt-check.cgi intitle:"Movable Type System Check [mt-check.cgi]"
# 26 for inurl:/mt/mt-check.cgi
# More examples:
# www.movabletype.com/showcase/
# Dorks #
dorks [
'"Powered by Movable Type"',
'inurl:/mt-check.cgi intitle:"Movable Type System Check [mt-check.cgi]"'
]
# Matches #
matches [
# javascript with 'mt' in the filename
{:name=>"javascript with 'mt' in the name",
:certainty=>50, :regexp=>/<script type="text\/javascript" src="[^"]+mt(-site)?\.js"><\/script>/},
# mt-tags|mt-tb|mt-cp|mt-search|mt-user-login|mt-recommend cgi
{:name=>"mt-tags|mt-tb|mt-cp|mt-search|mt-user-login|mt-recommend cgi",
:certainty=>75,
:regexp=>/"[^"]+\/mt-(tags|tb|cp|search|user-login|recommend)\.[f]?cgi[^"]*"/},
# Meta Generator
{:name=>"meta generator tag", :regexp=>/<meta name="generator" content="http:\/\/www\.movabletype\.org\/" \/>/},
# mt-check.cgi # Title
{ :text=>'<title>Movable Type System Check [mt-check.cgi]</title>' },
# Version Detection # mt-check.cgi
{ :version=>/<li><strong>Movable Type version:<\/strong> <code>([^<]+)<\/code><\/li>/ },
# Local Path Detection # mt-check.cgi
{ :filepath=>/<li><strong>Current working directory:<\/strong> <code>([^<]+)<\/code><\/li>/ },
# Powered by link
{:name=>"Powered by link", :regexp=>/<a href="http:\/\/sixapart\.com">Powered by Movable Type<\/a>/},
{:name=>"Powered by link", :regexp=>/Powered by <a href="http:\/\/www\.movabletype\.com\/"[^>]*>Movable Type<\/a>/ },
# Version Detection # Meta Generator
{:version=>/<meta name="generator" content="Movable Type ([^"]*)/, :name=>"meta generator tag" }
]
end
=begin
# An aggressive plugin could check the following paths for confirmation:
# /mt or /mt/mt-check.cgi (discloses versions, paths)
# /mt/mt-tags.fcgi
# /mt-tb.fcgi
# /mt-cp.[f]?cgi
# /mt-search.cgi
# /mt-user-login.cgi
# /mt-recommend.cgi
# can't detect:
barackobama.com
blogs.oracle.com
electricartists.com/corporate
muledesign.com
www.radaronline.com
www.theatlantic.com
www.thehuffingtonpost.com
=end
| urbanadventurer/WhatWeb | plugins/movable_type.rb | Ruby | gpl-2.0 | 2,692 |
import { apiBase, versionApi } from '../commons';
const apiMonitoringBeta = `${apiBase}/beta/monitoring`;
const apiMonitoring = `${apiBase}/${versionApi}/monitoring`;
export { apiMonitoringBeta, apiMonitoring };
| centreon/centreon | tests/e2e/cypress/support/model.ts | TypeScript | gpl-2.0 | 214 |
<?php
/**
* Themes shortcode image options go here
*
* @package Omega
* @subpackage Core
* @since 1.0
*
* @copyright (c) 2014 Oxygenna.com
* @license http://wiki.envato.com/support/legal-terms/licensing-terms/
* @version 1.7.3
*/
return array(
'title' => __('Image options', 'omega-admin-td'),
'fields' => array(
array(
'name' => __('Image Shape', 'omega-admin-td'),
'desc' => __('Choose the shape of the image', 'omega-admin-td'),
'id' => 'image_shape',
'type' => 'select',
'options' => array(
'box-round' => __('Round', 'omega-admin-td'),
'box-rect' => __('Rectangle', 'omega-admin-td'),
'box-square' => __('Square', 'omega-admin-td'),
),
'default' => 'box-round',
),
array(
'name' => __('Image Size', 'omega-admin-td'),
'desc' => __('Choose the size of the image', 'omega-admin-td'),
'id' => 'image_size',
'type' => 'select',
'options' => array(
'box-mini' => __('Mini', 'omega-admin-td'),
'no-small' => __('Small', 'omega-admin-td'),
'box-medium' => __('Medium', 'omega-admin-td'),
'box-big' => __('Big', 'omega-admin-td'),
'box-huge' => __('Huge', 'omega-admin-td'),
),
'default' => 'box-medium',
),
)
); | rinodung/wordpress-demo | wp-content/themes/omega/inc/options/shortcodes/shortcode-image-options.php | PHP | gpl-2.0 | 1,670 |
<?php
/*
Template Name: Products Template
*
*/
?>
<?php get_header(); ?>
<div class="wrap-full banner-background cf" style="<?php if( get_field('background_banner')){ echo "background-image: url('". get_field('background_banner')."')"; } ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="products-container cf">
<h1><?php the_title(); ?> <span class="tagline"><?php the_field('tagline'); ?></span></h1>
<?php if($_GET['ativo'] == "tilbud") : ?>
<div class="price-table-column blue" style="display: block; margin: 0 auto 50px;">
<div class="price-table-header slim">
<span class="price-table-header-value"><h2>Ativo Medlemstilbud</h2></span>
</div>
<div class="price-table-price-row">
<span class="price-value price-eksl">Månedspris: 350,- <span style="color: #7f7f7f; font-size: 22px; text-decoration: line-through;">450,-</span></span>
</div>
<div class="price-table-cell">
<div class=""></div>
<span class="price-table-cell-value">Vedligeholdelse + Fuld Service</span>
<div class="price-table-cell-info">Alt fra pakken til 450,- her under, til en venlig pris :-)</div>
</div>
<div class="price-table-cell">
<div class=""></div>
<span class="price-table-cell-value">TILMELD</span>
<div class="price-table-cell-info">
<?php echo do_shortcode("[stripeform serviceid='service350']"); ?>
</div>
</div>
<div class="price-table-footer"></div>
</div>
<?php endif; ?>
<?php
// check if any products are created
if( have_rows('product') ):
// loop through products
while( have_rows('product') ): the_row(); ?>
<div class="price-table-column <?php the_sub_field('product_color'); ?>">
<div class="price-table-header slim">
<?php if(get_sub_field('product_link')) { ?><a href="<?php the_sub_field('product_link'); ?>"><?php } ?>
<span class="price-table-header-value"><h2><?php the_sub_field('product_name'); ?></h2></span>
<?php if(get_sub_field('product_link')) { ?></a><?php } ?>
</div>
<div class="price-table-price-row">
<?php if(get_sub_field('price_label') == 'from') { ?> <span class="price-value price-from price-eksl"><?php the_sub_field('product_price'); ?>,-</span><?php } ?>
<?php if(get_sub_field('price_label') == 'more') { ?> <span class="price-readmore"><?php the_sub_field('product_price'); ?></span><?php } ?>
<?php if(get_sub_field('price_label') == 'none') { ?> <span class="price-value price-eksl"><?php the_sub_field('product_price'); ?>,-</span><?php } ?>
</div>
<?php
if( get_sub_field('product_description') ):
?>
<div class="price-table-description">
<span><?php the_sub_field('product_description'); ?></span>
</div>
<?php endif; ?>
<?php
// check if any product items exists
if( have_rows('product_items') ):
// loop through product items
while( have_rows('product_items') ): the_row(); ?>
<div class="price-table-cell">
<div class="<?php the_sub_field('class'); ?>"></div>
<span class="price-table-cell-value"><?php the_sub_field('label'); ?></span>
<div class="price-table-cell-info"><?php echo do_shortcode(get_sub_field('description')); ?></div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="price-table-footer">
<?php if(get_sub_field('product_link')) { ?>
<a href="<?php the_sub_field('product_link'); ?>">
<span class="price-table-footer-value">Læs mere</span></a>
</a><?php } ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php endwhile; endif; ?>
</div>
<?php include (TEMPLATEPATH . '/contact-ribbon.php'); ?>
<div id="content">
<div id="inner-content" class="wrap cf">
<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<section class="entry-content cf" itemprop="articleBody">
<?php the_content(); ?>
</section> <?php // end article section ?>
<footer class="article-footer cf">
</footer>
</article>
<?php endwhile; endif; ?>
</main>
<!--
<?php get_sidebar(); ?>
-->
</div>
</div>
<?php get_footer(); ?>
| kragej/ativo | themes/bones/page-products.php | PHP | gpl-2.0 | 5,029 |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
This software is distributed under the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Contributing author: Axel Kohlmeyer (Temple U)
------------------------------------------------------------------------- */
#include "omp_compat.h"
#include <cmath>
#include "pair_lj_charmm_coul_long_omp.h"
#include "atom.h"
#include "comm.h"
#include "force.h"
#include "neighbor.h"
#include "neigh_list.h"
#include "suffix.h"
using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
PairLJCharmmCoulLongOMP::PairLJCharmmCoulLongOMP(LAMMPS *lmp) :
PairLJCharmmCoulLong(lmp), ThrOMP(lmp, THR_PAIR)
{
suffix_flag |= Suffix::OMP;
respa_enable = 0;
cut_respa = NULL;
}
/* ---------------------------------------------------------------------- */
void PairLJCharmmCoulLongOMP::compute(int eflag, int vflag)
{
ev_init(eflag,vflag);
const int nall = atom->nlocal + atom->nghost;
const int nthreads = comm->nthreads;
const int inum = list->inum;
#if defined(_OPENMP)
#pragma omp parallel LMP_DEFAULT_NONE LMP_SHARED(eflag,vflag)
#endif
{
int ifrom, ito, tid;
loop_setup_thr(ifrom, ito, tid, inum, nthreads);
ThrData *thr = fix->get_thr(tid);
thr->timer(Timer::START);
ev_setup_thr(eflag, vflag, nall, eatom, vatom, NULL, thr);
if (evflag) {
if (eflag) {
if (force->newton_pair) eval<1,1,1>(ifrom, ito, thr);
else eval<1,1,0>(ifrom, ito, thr);
} else {
if (force->newton_pair) eval<1,0,1>(ifrom, ito, thr);
else eval<1,0,0>(ifrom, ito, thr);
}
} else {
if (force->newton_pair) eval<0,0,1>(ifrom, ito, thr);
else eval<0,0,0>(ifrom, ito, thr);
}
thr->timer(Timer::PAIR);
reduce_thr(this, eflag, vflag, thr);
} // end of omp parallel region
}
/* ---------------------------------------------------------------------- */
template <int EVFLAG, int EFLAG, int NEWTON_PAIR>
void PairLJCharmmCoulLongOMP::eval(int iifrom, int iito, ThrData * const thr)
{
const dbl3_t * _noalias const x = (dbl3_t *) atom->x[0];
dbl3_t * _noalias const f = (dbl3_t *) thr->get_f()[0];
const double * _noalias const q = atom->q;
const int * _noalias const type = atom->type;
const double * _noalias const special_coul = force->special_coul;
const double * _noalias const special_lj = force->special_lj;
const double qqrd2e = force->qqrd2e;
const double inv_denom_lj = 1.0/denom_lj;
const int * const ilist = list->ilist;
const int * const numneigh = list->numneigh;
const int * const * const firstneigh = list->firstneigh;
const int nlocal = atom->nlocal;
// loop over neighbors of my atoms
for (int ii = iifrom; ii < iito; ++ii) {
const int i = ilist[ii];
const int itype = type[i];
const double qtmp = q[i];
const double xtmp = x[i].x;
const double ytmp = x[i].y;
const double ztmp = x[i].z;
double fxtmp,fytmp,fztmp;
fxtmp=fytmp=fztmp=0.0;
const int * const jlist = firstneigh[i];
const int jnum = numneigh[i];
const double * _noalias const lj1i = lj1[itype];
const double * _noalias const lj2i = lj2[itype];
const double * _noalias const lj3i = lj3[itype];
const double * _noalias const lj4i = lj4[itype];
for (int jj = 0; jj < jnum; jj++) {
double forcecoul, forcelj, evdwl, ecoul;
forcecoul = forcelj = evdwl = ecoul = 0.0;
const int sbindex = sbmask(jlist[jj]);
const int j = jlist[jj] & NEIGHMASK;
const double delx = xtmp - x[j].x;
const double dely = ytmp - x[j].y;
const double delz = ztmp - x[j].z;
const double rsq = delx*delx + dely*dely + delz*delz;
const int jtype = type[j];
if (rsq < cut_bothsq) {
const double r2inv = 1.0/rsq;
if (rsq < cut_coulsq) {
if (!ncoultablebits || rsq <= tabinnersq) {
const double A1 = 0.254829592;
const double A2 = -0.284496736;
const double A3 = 1.421413741;
const double A4 = -1.453152027;
const double A5 = 1.061405429;
const double EWALD_F = 1.12837917;
const double INV_EWALD_P = 1.0/0.3275911;
const double r = sqrt(rsq);
const double grij = g_ewald * r;
const double expm2 = exp(-grij*grij);
const double t = INV_EWALD_P / (INV_EWALD_P + grij);
const double erfc = t * (A1+t*(A2+t*(A3+t*(A4+t*A5)))) * expm2;
const double prefactor = qqrd2e * qtmp*q[j]/r;
forcecoul = prefactor * (erfc + EWALD_F*grij*expm2);
if (EFLAG) ecoul = prefactor*erfc;
if (sbindex) {
const double adjust = (1.0-special_coul[sbindex])*prefactor;
forcecoul -= adjust;
if (EFLAG) ecoul -= adjust;
}
} else {
union_int_float_t rsq_lookup;
rsq_lookup.f = rsq;
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
const double fraction = (rsq_lookup.f - rtable[itable]) * drtable[itable];
const double table = ftable[itable] + fraction*dftable[itable];
forcecoul = qtmp*q[j] * table;
if (EFLAG) ecoul = qtmp*q[j] * (etable[itable] + fraction*detable[itable]);
if (sbindex) {
const double table2 = ctable[itable] + fraction*dctable[itable];
const double prefactor = qtmp*q[j] * table2;
const double adjust = (1.0-special_coul[sbindex])*prefactor;
forcecoul -= adjust;
if (EFLAG) ecoul -= adjust;
}
}
}
if (rsq < cut_ljsq) {
const double r6inv = r2inv*r2inv*r2inv;
forcelj = r6inv * (lj1i[jtype]*r6inv - lj2i[jtype]);
const double philj = r6inv*(lj3i[jtype]*r6inv-lj4i[jtype]);
if (EFLAG) evdwl = philj;
if (rsq > cut_lj_innersq) {
const double drsq = cut_ljsq - rsq;
const double cut2 = (rsq - cut_lj_innersq) * drsq;
const double switch1 = drsq * (drsq*drsq + 3.0*cut2) * inv_denom_lj;
const double switch2 = 12.0*rsq * cut2 * inv_denom_lj;
forcelj = forcelj*switch1 + philj*switch2;
if (EFLAG) evdwl *= switch1;
}
if (sbindex) {
const double factor_lj = special_lj[sbindex];
forcelj *= factor_lj;
if (EFLAG) evdwl *= factor_lj;
}
}
const double fpair = (forcecoul + forcelj) * r2inv;
fxtmp += delx*fpair;
fytmp += dely*fpair;
fztmp += delz*fpair;
if (NEWTON_PAIR || j < nlocal) {
f[j].x -= delx*fpair;
f[j].y -= dely*fpair;
f[j].z -= delz*fpair;
}
if (EVFLAG) ev_tally_thr(this,i,j,nlocal,NEWTON_PAIR,
evdwl,ecoul,fpair,delx,dely,delz,thr);
}
}
f[i].x += fxtmp;
f[i].y += fytmp;
f[i].z += fztmp;
}
}
/* ---------------------------------------------------------------------- */
double PairLJCharmmCoulLongOMP::memory_usage()
{
double bytes = memory_usage_thr();
bytes += PairLJCharmmCoulLong::memory_usage();
return bytes;
}
| pastewka/lammps | src/USER-OMP/pair_lj_charmm_coul_long_omp.cpp | C++ | gpl-2.0 | 7,636 |
/* $Id: memuserkernel-r0drv-darwin.cpp $ */
/** @file
* IPRT - User & Kernel Memory, Ring-0 Driver, Darwin.
*/
/*
* Copyright (C) 2009 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "the-darwin-kernel.h"
#include "internal/iprt.h"
#include <iprt/mem.h>
#include <iprt/assert.h>
#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
# include <iprt/asm-amd64-x86.h>
#endif
#include <iprt/err.h>
RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t cb)
{
RT_ASSERT_INTS_ON();
int rc = copyin((const user_addr_t)R3PtrSrc, pvDst, cb);
if (RT_LIKELY(rc == 0))
return VINF_SUCCESS;
return VERR_ACCESS_DENIED;
}
RTR0DECL(int) RTR0MemUserCopyTo(RTR3PTR R3PtrDst, void const *pvSrc, size_t cb)
{
RT_ASSERT_INTS_ON();
int rc = copyout(pvSrc, R3PtrDst, cb);
if (RT_LIKELY(rc == 0))
return VINF_SUCCESS;
return VERR_ACCESS_DENIED;
}
RTR0DECL(bool) RTR0MemUserIsValidAddr(RTR3PTR R3Ptr)
{
/* the commpage is above this. */
#ifdef RT_ARCH_X86
return R3Ptr < VM_MAX_ADDRESS;
#else
return R3Ptr < VM_MAX_PAGE_ADDRESS;
#endif
}
RTR0DECL(bool) RTR0MemKernelIsValidAddr(void *pv)
{
/* Found no public #define or symbol for checking this, so we'll
have to make do with thing found in the debugger and the sources. */
#ifdef RT_ARCH_X86
NOREF(pv);
return true; /* Almost anything is a valid kernel address here. */
#elif defined(RT_ARCH_AMD64)
return (uintptr_t)pv >= UINT64_C(0xffff800000000000);
#else
# error "PORTME"
#endif
}
RTR0DECL(bool) RTR0MemAreKrnlAndUsrDifferent(void)
{
/* As mentioned in RTR0MemKernelIsValidAddr, found no way of checking
this at compiler or runtime. */
#ifdef RT_ARCH_X86
return false;
#else
return true;
#endif
}
| JSansalone/VirtualBox4.1.18 | src/VBox/Runtime/r0drv/darwin/memuserkernel-r0drv-darwin.cpp | C++ | gpl-2.0 | 2,937 |
<div id="obligee_volumen" class="viz" data-viz="treemap-a" data-graph="treemap-a">
<div class="row">
<div class="col-sm-12">
<h3>Volumen de recursos de revisión, por sujeto obligado y por sentido de la resolución: <span class="year-range">2007 - 2015</span></h3>
<p class="lead">Recursos de revisión que se realizan por sujeto obligado, tanto de acceso a la información como de datos personales</p>
<!--<a href="#" class="download" download><b></b>Descargar datos</a>-->
</div>
<div class="col-sm-10 col-sm-offset-1">
<p class="instructions">Da clic sobre un sector para observar la distribución del número de solicitudes por sujeto obligado
y tipo de solicitud. Para regresar, da clic sobre el área gris en la parte superior de la gráfica.
</p>
</div>
</div>
<section id="treemap-a"></section>
<!--source-->
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<!--source-->
<?php include "templates/source.php";?>
<p class="lead info">Distribución de la gráfica</p>
<ul class="info row">
<li class="col-sm-3">Primer nivel: <strong>Sector</strong></li>
<li class="col-sm-3">Segundo nivel: <strong>Sujeto obligado</strong></li>
<li class="col-sm-3">Tercer nivel: <strong>Sentido de la resolución</strong>
</li>
<li class="col-sm-3">Tamaño: <strong>Número de solicitudes</strong></li>
</ul>
</div>
</div>
</div>
| GobiernoFacil/mapadai | includes/recursos/obligee/volumen.php | PHP | gpl-2.0 | 1,410 |
package com.carpoolsophia;
import java.util.concurrent.ExecutionException;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Fragment;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import butterknife.InjectView;
import butterknife.Views;
import com.carpoolsophia.gcloudApi.model.CarpoolSophiaUser;
import com.carpoolsophia.service.CarpoolSophiaUserService;
import com.carpoolsophia.service.ProfileService;
import com.facebook.AccessToken;
import com.facebook.AccessTokenUtils;
import com.facebook.GraphRequest;
import com.facebook.GraphResponse;
public class ProfileFragment extends Fragment {
private final static String CLASSNAME = ProfileFragment.class.getSimpleName();
@InjectView(R.id.TestLoadFromFB)
Button testLoadFromFbBtn;
@InjectView(R.id.profile_firstName)
EditText profileFirstName;
@InjectView(R.id.profile_lastName)
EditText profileLastName;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.profile_fragment, container, false);
Views.inject(this, view);
return view;
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final ProfileFragment finalThis = this;
testLoadFromFbBtn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Log.w(ProfileFragment.class.getSimpleName(), "loadFromFB");
CarpoolSophiaUser user;
try {
user = (new LoadUserFromFbTask(finalThis).execute()).get();
if (user != null) {
// Log.w(getClass().getSimpleName(),
// "user loaded: "+ModelToJSONParseAdapter.toJSONParse(user));
profileFirstName.setText(user.getFirstName());
profileLastName.setText(user.getLastName());
}
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ExecutionException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
}
public void updateProfileInfo(View btn) {
Log.w(getClass().getSimpleName(), "updateProfileInfo");
}
private class LoadUserFromFbTask extends
AsyncTask<CarpoolSophiaUser, Void, CarpoolSophiaUser> {
private ProfileFragment profileFragment;
public LoadUserFromFbTask(ProfileFragment fragment) {
super();
this.profileFragment = fragment;
}
@SuppressWarnings("serial")
protected CarpoolSophiaUser doInBackground(final CarpoolSophiaUser... users) {
CarpoolSophiaUser user = CarpoolSophiaUserService.get()
.getCurrentCSuser();
AccessToken accessToken = AccessTokenUtils.deserializeToken(user
.getAccessToken());
GraphRequest request = GraphRequest.newMeRequest(accessToken,
new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(JSONObject object, GraphResponse response) {
// Log.d(CLASSNAME, "JSONobject: " + object);
// Log.d(CLASSNAME, "GraphResponse #1: " +
// response.getRawResponse());
}
});
GraphResponse response = request.executeAndWait();
Log.d(CLASSNAME, "GraphResponse #2: " + response.getRawResponse());
CarpoolSophiaUser userFromFB = new CarpoolSophiaUser();
try {
userFromFB.setFirstName(response.getJSONObject()
.getString("first_name"));
userFromFB.setLastName(response.getJSONObject().getString("last_name"));
} catch (JSONException e) {
e.printStackTrace();
}
ProfileService.get().refreshCSUser(user, userFromFB);
return user;
}
@Override
protected void onPostExecute(CarpoolSophiaUser result) {
super.onPostExecute(result);
}
}
}
| cernier/carpoolsophia | carpoolsophia/src/main/java/com/carpoolsophia/ProfileFragment.java | Java | gpl-2.0 | 4,190 |
/*
* Copyright (C) 2011-2012 ArkCORE2 <http://www.arkania.net/>
* Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ScriptPCH.h"
#include "ScriptedEscortAI.h"
#include "violet_hold.h"
#define GOSSIP_START_EVENT "Get your people to safety, we'll keep the Blue Dragonflight's forces at bay."
#define GOSSIP_ITEM_1 "Activate the crystals when we get in trouble, right"
#define GOSSIP_I_WANT_IN "I'm not fighting, so send me in now!"
#define SPAWN_TIME 20000
enum PortalCreatures
{
CREATURE_AZURE_INVADER_1 = 30661,
CREATURE_AZURE_INVADER_2 = 30961,
CREATURE_AZURE_SPELLBREAKER_1 = 30662,
CREATURE_AZURE_SPELLBREAKER_2 = 30962,
CREATURE_AZURE_BINDER_1 = 30663,
CREATURE_AZURE_BINDER_2 = 30918,
CREATURE_AZURE_MAGE_SLAYER_1 = 30664,
CREATURE_AZURE_MAGE_SLAYER_2 = 30963,
CREATURE_AZURE_CAPTAIN = 30666,
CREATURE_AZURE_SORCEROR = 30667,
CREATURE_AZURE_RAIDER = 30668,
CREATURE_AZURE_STALKER = 32191
};
enum AzureInvaderSpells
{
SPELL_CLEAVE = 15496,
SPELL_IMPALE = 58459,
H_SPELL_IMPALE = 59256,
SPELL_BRUTAL_STRIKE = 58460,
SPELL_SUNDER_ARMOR = 58461
};
enum AzureSellbreakerSpells
{
SPELL_ARCANE_BLAST = 58462,
H_SPELL_ARCANE_BLAST = 59257,
SPELL_SLOW = 25603,
SPELL_CHAINS_OF_ICE = 58464,
SPELL_CONE_OF_COLD = 58463,
H_SPELL_CONE_OF_COLD = 59258
};
enum AzureBinderSpells
{
SPELL_ARCANE_BARRAGE = 58456,
H_SPELL_ARCANE_BARRAGE = 59248,
SPELL_ARCANE_EXPLOSION = 58455,
H_SPELL_ARCANE_EXPLOSION = 59245,
SPELL_FROST_NOVA = 58458,
H_SPELL_FROST_NOVA = 59253,
SPELL_FROSTBOLT = 58457,
H_SPELL_FROSTBOLT = 59251,
};
enum AzureMageSlayerSpells
{
SPELL_ARCANE_EMPOWERMENT = 58469,
SPELL_SPELL_LOCK = 30849
};
enum AzureCaptainSpells
{
SPELL_MORTAL_STRIKE = 32736,
SPELL_WHIRLWIND_OF_STEEL = 41057
};
enum AzureSorcerorSpells
{
SPELL_ARCANE_STREAM = 60181,
H_SPELL_ARCANE_STREAM = 60204,
SPELL_MANA_DETONATION = 60182,
H_SPELL_MANA_DETONATION = 60205
};
enum AzureRaiderSpells
{
SPELL_CONCUSSION_BLOW = 52719,
SPELL_MAGIC_REFLECTION = 60158
};
enum AzureStalkerSpells
{
SPELL_BACKSTAB = 58471,
SPELL_TACTICAL_BLINK = 58470
};
enum AzureSaboteurSpells
{
SABOTEUR_SHIELD_DISRUPTION = 58291,
SABOTEUR_SHIELD_EFFECT = 45775
};
enum TrashDoorSpell
{
SPELL_DESTROY_DOOR_SEAL = 58040
};
enum Spells
{
SPELL_PORTAL_CHANNEL = 58012,
SPELL_CRYSTALL_ACTIVATION = 57804
};
enum eSinclari
{
SAY_SINCLARI_1 = -1608045
};
float FirstPortalWPs [6][3] =
{
{1877.670288f, 842.280273f, 43.333591f},
{1877.338867f, 834.615356f, 38.762287f},
{1872.161011f, 823.854309f, 38.645401f},
{1864.860474f, 815.787170f, 38.784843f},
{1858.953735f, 810.048950f, 44.008759f},
{1843.707153f, 805.807739f, 44.135197f}
//{1825.736084f, 807.305847f, 44.363785f}
};
float SecondPortalFirstWPs [9][3] =
{
{1902.561401f, 853.334656f, 47.106117f},
{1895.486084f, 855.376404f, 44.334591f},
{1882.805176f, 854.993286f, 43.333591f},
{1877.670288f, 842.280273f, 43.333591f},
{1877.338867f, 834.615356f, 38.762287f},
{1872.161011f, 823.854309f, 38.645401f},
{1864.860474f, 815.787170f, 38.784843f},
{1858.953735f, 810.048950f, 44.008759f},
{1843.707153f, 805.807739f, 44.135197f}
//{1825.736084f, 807.305847f, 44.363785f}
};
float SecondPortalSecondWPs [8][3] =
{
{1929.392212f, 837.614990f, 47.136166f},
{1928.290649f, 824.750427f, 45.474411f},
{1915.544922f, 826.919373f, 38.642811f},
{1900.933960f, 818.855652f, 38.801647f},
{1886.810547f, 813.536621f, 38.490490f},
{1869.079712f, 808.701538f, 38.689003f},
{1860.843384f, 806.645020f, 44.008789f},
{1843.707153f, 805.807739f, 44.135197f}
//{1825.736084f, 807.305847f, 44.363785f}
};
float ThirdPortalWPs [8][3] =
{
{1934.049438f, 815.778503f, 52.408699f},
{1928.290649f, 824.750427f, 45.474411f},
{1915.544922f, 826.919373f, 38.642811f},
{1900.933960f, 818.855652f, 38.801647f},
{1886.810547f, 813.536621f, 38.490490f},
{1869.079712f, 808.701538f, 38.689003f},
{1860.843384f, 806.645020f, 44.008789f},
{1843.707153f, 805.807739f, 44.135197f}
//{1825.736084f, 807.305847f, 44.363785f}
};
float FourthPortalWPs [9][3] =
{
{1921.658447f, 761.657043f, 50.866741f},
{1910.559814f, 755.780457f, 47.701447f},
{1896.664673f, 752.920898f, 47.667004f},
{1887.398804f, 763.633240f, 47.666851f},
{1879.020386f, 775.396973f, 38.705990f},
{1872.439087f, 782.568604f, 38.808292f},
{1863.573364f, 791.173584f, 38.743660f},
{1857.811890f, 796.765564f, 43.950329f},
{1845.577759f, 800.681152f, 44.104248f}
//{1827.100342f, 801.605957f, 44.363358f}
};
float FifthPortalWPs [6][3] =
{
{1887.398804f, 763.633240f, 47.666851f},
{1879.020386f, 775.396973f, 38.705990f},
{1872.439087f, 782.568604f, 38.808292f},
{1863.573364f, 791.173584f, 38.743660f},
{1857.811890f, 796.765564f, 43.950329f},
{1845.577759f, 800.681152f, 44.104248f}
//{1827.100342f, 801.605957f, 44.363358f}
};
float SixthPoralWPs [4][3] =
{
{1888.861084f, 805.074768f, 38.375790f},
{1869.793823f, 804.135804f, 38.647018f},
{1861.541504f, 804.149780f, 43.968292f},
{1843.567017f, 804.288208f, 44.139091f}
//{1826.889648f, 803.929993f, 44.363239f}
};
const float SaboteurFinalPos1[3][3] =
{
{1892.502319f, 777.410767f, 38.630402f},
{1891.165161f, 762.969421f, 47.666920f},
{1893.168091f, 740.919189f, 47.666920f}
};
const float SaboteurFinalPos2[3][3] =
{
{1882.242676f, 834.818726f, 38.646786f},
{1879.220825f, 842.224854f, 43.333641f},
{1873.842896f, 863.892456f, 43.333641f}
};
const float SaboteurFinalPos3[2][3] =
{
{1904.298340f, 792.400391f, 38.646782f},
{1935.716919f, 758.437073f, 30.627895f}
};
const float SaboteurFinalPos4[3] =
{
1855.006104f, 760.641724f, 38.655266f
};
const float SaboteurFinalPos5[3] =
{
1906.667358f, 841.705566f, 38.637894f
};
const float SaboteurFinalPos6[5][3] =
{
{1911.437012f, 821.289246f, 38.684128f},
{1920.734009f, 822.978027f, 41.525414f},
{1928.262939f, 830.836609f, 44.668266f},
{1929.338989f, 837.593933f, 47.137596f},
{1931.063354f, 848.468445f, 47.190434f}
};
const Position MovePosition = {1806.955566f, 803.851807f, 44.363323f, 0.0f};
const Position playerTeleportPosition = {1830.531006f, 803.939758f, 44.340508f, 6.281611f};
const Position sinclariOutsidePosition = {1817.315674f, 804.060608f, 44.363998f, 0.0f};
class npc_sinclari_vh : public CreatureScript
{
public:
npc_sinclari_vh() : CreatureScript("npc_sinclari_vh") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*Sender*/, uint32 action)
{
player->PlayerTalkClass->ClearMenus();
switch (action)
{
case GOSSIP_ACTION_INFO_DEF+1:
player->CLOSE_GOSSIP_MENU();
CAST_AI(npc_sinclari_vh::npc_sinclariAI, (creature->AI()))->uiPhase = 1;
if (InstanceScript* instance = creature->GetInstanceScript())
instance->SetData(DATA_MAIN_EVENT_PHASE, SPECIAL);
break;
case GOSSIP_ACTION_INFO_DEF+2:
player->SEND_GOSSIP_MENU(13854, creature->GetGUID());
break;
case GOSSIP_ACTION_INFO_DEF+3:
player->NearTeleportTo(playerTeleportPosition.GetPositionX(), playerTeleportPosition.GetPositionY(), playerTeleportPosition.GetPositionZ(), playerTeleportPosition.GetOrientation(), true);
player->CLOSE_GOSSIP_MENU();
break;
}
return true;
}
bool OnGossipHello(Player* player, Creature* creature)
{
if (InstanceScript* instance = creature->GetInstanceScript())
{
switch (instance->GetData(DATA_MAIN_EVENT_PHASE))
{
case NOT_STARTED:
case FAIL: // Allow to start event if not started or wiped
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
player->SEND_GOSSIP_MENU(13853, creature->GetGUID());
break;
case IN_PROGRESS: // Allow to teleport inside if event is in progress
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_I_WANT_IN, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3);
player->SEND_GOSSIP_MENU(13853, creature->GetGUID());
break;
default:
player->SEND_GOSSIP_MENU(13910, creature->GetGUID());
}
}
return true;
}
CreatureAI* GetAI(Creature* creature) const
{
return new npc_sinclariAI(creature);
}
struct npc_sinclariAI : public ScriptedAI
{
npc_sinclariAI(Creature* creature) : ScriptedAI(creature)
{
instance = creature->GetInstanceScript();
}
InstanceScript* instance;
uint8 uiPhase;
uint32 uiTimer;
void Reset()
{
uiPhase = 0;
uiTimer = 0;
me->SetReactState(REACT_AGGRESSIVE);
std::list<Creature*> GuardList;
me->GetCreatureListWithEntryInGrid(GuardList, NPC_VIOLET_HOLD_GUARD, 40.0f);
if (!GuardList.empty())
{
for (std::list<Creature*>::const_iterator itr = GuardList.begin(); itr != GuardList.end(); ++itr)
{
if (Creature* pGuard = *itr)
{
pGuard->DisappearAndDie();
pGuard->Respawn();
pGuard->SetVisible(true);
pGuard->SetReactState(REACT_AGGRESSIVE);
}
}
}
}
void UpdateAI(const uint32 uiDiff)
{
ScriptedAI::UpdateAI(uiDiff);
if (uiPhase)
{
if (uiTimer <= uiDiff)
{
switch (uiPhase)
{
case 1:
DoScriptText(SAY_SINCLARI_1, me);
uiTimer = 4000;
uiPhase = 2;
break;
case 2:
{
std::list<Creature*> GuardList;
me->GetCreatureListWithEntryInGrid(GuardList, NPC_VIOLET_HOLD_GUARD, 40.0f);
if (!GuardList.empty())
for (std::list<Creature*>::const_iterator itr = GuardList.begin(); itr != GuardList.end(); ++itr)
{
if (Creature* pGuard = *itr)
{
pGuard->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
pGuard->GetMotionMaster()->MovePoint(0, MovePosition);
}
}
uiTimer = 6000;
uiPhase = 3;
break;
}
case 3:
{
std::list<Creature*> GuardList;
me->GetCreatureListWithEntryInGrid(GuardList, NPC_VIOLET_HOLD_GUARD, 40.0f);
if (!GuardList.empty())
for (std::list<Creature*>::const_iterator itr = GuardList.begin(); itr != GuardList.end(); ++itr)
{
if (Creature* pGuard = *itr)
{
pGuard->SetVisible(false);
pGuard->SetReactState(REACT_PASSIVE);
}
}
uiTimer = 2000;
uiPhase = 4;
break;
}
case 4:
me->GetMotionMaster()->MovePoint(0, sinclariOutsidePosition);
uiTimer = 4000;
uiPhase = 5;
break;
case 5:
if (instance)
instance->SetData(DATA_MAIN_EVENT_PHASE, IN_PROGRESS);
me->SetReactState(REACT_PASSIVE);
uiTimer = 0;
uiPhase = 0;
break;
}
}
else uiTimer -= uiDiff;
}
if (!UpdateVictim())
return;
DoMeleeAttackIfReady();
}
};
};
class mob_azure_saboteur : public CreatureScript
{
public:
mob_azure_saboteur() : CreatureScript("mob_azure_saboteur") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_saboteurAI (creature);
}
struct mob_azure_saboteurAI : public npc_escortAI
{
mob_azure_saboteurAI(Creature* c):npc_escortAI(c)
{
instance = c->GetInstanceScript();
bHasGotMovingPoints = false;
uiBoss = 0;
Reset();
}
InstanceScript* instance;
bool bHasGotMovingPoints;
uint32 uiBoss;
void Reset()
{
if (instance && !uiBoss)
uiBoss = instance->GetData(DATA_WAVE_COUNT) == 6 ? instance->GetData(DATA_FIRST_BOSS) : instance->GetData(DATA_SECOND_BOSS);
me->SetReactState(REACT_PASSIVE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_NON_ATTACKABLE);
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
void WaypointReached(uint32 uiWPointId)
{
switch (uiBoss)
{
case 1:
if (uiWPointId == 2)
FinishPointReached();
break;
case 2:
if (uiWPointId == 2)
FinishPointReached();
break;
case 3:
if (uiWPointId == 1)
FinishPointReached();
break;
case 4:
if (uiWPointId == 0)
FinishPointReached();
break;
case 5:
if (uiWPointId == 0)
FinishPointReached();
break;
case 6:
if (uiWPointId == 4)
FinishPointReached();
break;
}
}
void UpdateAI(const uint32 diff)
{
if (instance && instance->GetData(DATA_MAIN_EVENT_PHASE) != IN_PROGRESS)
me->CastStop();
npc_escortAI::UpdateAI(diff);
if (!bHasGotMovingPoints)
{
bHasGotMovingPoints = true;
switch (uiBoss)
{
case 1:
for (int i=0;i<3;i++)
AddWaypoint(i, SaboteurFinalPos1[i][0], SaboteurFinalPos1[i][1], SaboteurFinalPos1[i][2], 0);
me->SetHomePosition(SaboteurFinalPos1[2][0], SaboteurFinalPos1[2][1], SaboteurFinalPos1[2][2], 4.762346f);
break;
case 2:
for (int i=0;i<3;i++)
AddWaypoint(i, SaboteurFinalPos2[i][0], SaboteurFinalPos2[i][1], SaboteurFinalPos2[i][2], 0);
me->SetHomePosition(SaboteurFinalPos2[2][0], SaboteurFinalPos2[2][1], SaboteurFinalPos2[2][2], 1.862674f);
break;
case 3:
for (int i=0;i<2;i++)
AddWaypoint(i, SaboteurFinalPos3[i][0], SaboteurFinalPos3[i][1], SaboteurFinalPos3[i][2], 0);
me->SetHomePosition(SaboteurFinalPos3[1][0], SaboteurFinalPos3[1][1], SaboteurFinalPos3[1][2], 5.500638f);
break;
case 4:
AddWaypoint(0, SaboteurFinalPos4[0], SaboteurFinalPos4[1], SaboteurFinalPos4[2], 0);
me->SetHomePosition(SaboteurFinalPos4[0], SaboteurFinalPos4[1], SaboteurFinalPos4[2], 3.991108f);
break;
case 5:
AddWaypoint(0, SaboteurFinalPos5[0], SaboteurFinalPos5[1], SaboteurFinalPos5[2], 0);
me->SetHomePosition(SaboteurFinalPos5[0], SaboteurFinalPos5[1], SaboteurFinalPos5[2], 1.100841f);
break;
case 6:
for (int i=0;i<5;i++)
AddWaypoint(i, SaboteurFinalPos6[i][0], SaboteurFinalPos6[i][1], SaboteurFinalPos6[i][2], 0);
me->SetHomePosition(SaboteurFinalPos6[4][0], SaboteurFinalPos6[4][1], SaboteurFinalPos6[4][2], 0.983031f);
break;
}
SetDespawnAtEnd(false);
Start(true, true);
}
}
void FinishPointReached()
{
me->CastSpell(me, SABOTEUR_SHIELD_DISRUPTION, false);
me->DisappearAndDie();
Creature* pSaboPort = Unit::GetCreature((*me), instance->GetData64(DATA_SABOTEUR_PORTAL));
if (pSaboPort)
pSaboPort->DisappearAndDie();
instance->SetData(DATA_START_BOSS_ENCOUNTER, 1);
}
};
};
class npc_teleportation_portal_vh : public CreatureScript
{
public:
npc_teleportation_portal_vh() : CreatureScript("npc_teleportation_portal_vh") { }
CreatureAI* GetAI(Creature* creature) const
{
return new npc_teleportation_portalAI(creature);
}
struct npc_teleportation_portalAI : public ScriptedAI
{
npc_teleportation_portalAI(Creature* c) : ScriptedAI(c), listOfMobs(me)
{
instance = c->GetInstanceScript();
uiTypeOfMobsPortal = urand(0, 1); // 0 - elite mobs 1 - portal guardian or portal keeper with regular mobs
bPortalGuardianOrKeeperOrEliteSpawn = false;
}
uint32 uiSpawnTimer;
bool bPortalGuardianOrKeeperOrEliteSpawn;
uint8 uiTypeOfMobsPortal;
SummonList listOfMobs;
InstanceScript* instance;
void Reset()
{
uiSpawnTimer = 10000;
bPortalGuardianOrKeeperOrEliteSpawn = false;
}
void EnterCombat(Unit* /*who*/) {}
void MoveInLineOfSight(Unit* /*who*/) {}
void UpdateAI(const uint32 diff)
{
if (!instance) //Massive usage of instance, global check
return;
if (instance->GetData(DATA_REMOVE_NPC) == 1)
{
me->DespawnOrUnsummon();
instance->SetData(DATA_REMOVE_NPC, 0);
}
uint8 uiWaveCount = instance->GetData(DATA_WAVE_COUNT);
if ((uiWaveCount == 6) || (uiWaveCount == 12)) //Don't spawn mobs on boss encounters
return;
switch (uiTypeOfMobsPortal)
{
// spawn elite mobs and then set portals visibility to make it look like it dissapeard
case 0:
if (!bPortalGuardianOrKeeperOrEliteSpawn)
{
if (uiSpawnTimer <= diff)
{
bPortalGuardianOrKeeperOrEliteSpawn = true;
uint8 k = uiWaveCount < 12 ? 2 : 3;
for (uint8 i = 0; i < k; ++i)
{
uint32 entry = RAND(CREATURE_AZURE_CAPTAIN, CREATURE_AZURE_RAIDER, CREATURE_AZURE_STALKER, CREATURE_AZURE_SORCEROR);
DoSummon(entry, me, 2.0f, 20000, TEMPSUMMON_DEAD_DESPAWN);
}
me->SetVisible(false);
} else uiSpawnTimer -= diff;
}
else
{
// if all spawned elites have died kill portal
if (listOfMobs.empty())
{
me->Kill(me, false);
me->RemoveCorpse();
}
}
break;
// spawn portal guardian or portal keeper with regular mobs
case 1:
if (uiSpawnTimer <= diff)
{
if (bPortalGuardianOrKeeperOrEliteSpawn)
{
uint8 k = instance->GetData(DATA_WAVE_COUNT) < 12 ? 3 : 4;
for (uint8 i = 0; i < k; ++i)
{
uint32 entry = RAND(CREATURE_AZURE_INVADER_1, CREATURE_AZURE_INVADER_2, CREATURE_AZURE_SPELLBREAKER_1, CREATURE_AZURE_SPELLBREAKER_2, CREATURE_AZURE_MAGE_SLAYER_1, CREATURE_AZURE_MAGE_SLAYER_2, CREATURE_AZURE_BINDER_1, CREATURE_AZURE_BINDER_2);
DoSummon(entry, me, 2.0f, 20000, TEMPSUMMON_DEAD_DESPAWN);
}
}
else
{
bPortalGuardianOrKeeperOrEliteSpawn = true;
uint32 entry = RAND(CREATURE_PORTAL_GUARDIAN, CREATURE_PORTAL_KEEPER);
if (Creature* pPortalKeeper = DoSummon(entry, me, 2.0f, 0, TEMPSUMMON_DEAD_DESPAWN))
me->CastSpell(pPortalKeeper, SPELL_PORTAL_CHANNEL, false);
}
uiSpawnTimer = SPAWN_TIME;
} else uiSpawnTimer -= diff;
if (bPortalGuardianOrKeeperOrEliteSpawn && !me->IsNonMeleeSpellCasted(false))
{
me->Kill(me, false);
me->RemoveCorpse();
}
break;
}
}
void JustDied(Unit* /*killer*/)
{
if (instance)
instance->SetData(DATA_WAVE_COUNT, instance->GetData(DATA_WAVE_COUNT)+1);
}
void JustSummoned(Creature* summoned)
{
listOfMobs.Summon(summoned);
if (summoned)
instance->SetData64(DATA_ADD_TRASH_MOB, summoned->GetGUID());
}
void SummonedMobDied(Creature* summoned)
{
listOfMobs.Despawn(summoned);
if (summoned)
instance->SetData64(DATA_DEL_TRASH_MOB, summoned->GetGUID());
}
};
};
struct violet_hold_trashAI : public npc_escortAI
{
violet_hold_trashAI(Creature* c):npc_escortAI(c)
{
instance = c->GetInstanceScript();
bHasGotMovingPoints = false;
if (instance)
portalLocationID = instance->GetData(DATA_PORTAL_LOCATION);
Reset();
}
public:
InstanceScript* instance;
bool bHasGotMovingPoints;
uint32 portalLocationID;
uint32 secondPortalRouteID;
void WaypointReached(uint32 uiPointId)
{
switch (portalLocationID)
{
case 0:
if (uiPointId == 5)
CreatureStartAttackDoor();
break;
case 1:
if ((uiPointId == 8 && secondPortalRouteID == 0) || (uiPointId == 7 && secondPortalRouteID == 1))
CreatureStartAttackDoor();
break;
case 2:
if (uiPointId == 7)
CreatureStartAttackDoor();
break;
case 3:
if (uiPointId == 8)
CreatureStartAttackDoor();
break;
case 4:
if (uiPointId == 5)
CreatureStartAttackDoor();
break;
case 5:
if (uiPointId == 3)
CreatureStartAttackDoor();
break;
}
}
void UpdateAI(const uint32)
{
if (instance && instance->GetData(DATA_MAIN_EVENT_PHASE) != IN_PROGRESS)
me->CastStop();
if (!bHasGotMovingPoints)
{
bHasGotMovingPoints = true;
switch (portalLocationID)
{
case 0:
for (int i=0;i<6;i++)
AddWaypoint(i, FirstPortalWPs[i][0]+irand(-1, 1), FirstPortalWPs[i][1]+irand(-1, 1), FirstPortalWPs[i][2]+irand(-1, 1), 0);
me->SetHomePosition(FirstPortalWPs[5][0], FirstPortalWPs[5][1], FirstPortalWPs[5][2], 3.149439f);
break;
case 1:
secondPortalRouteID = urand(0, 1);
switch (secondPortalRouteID)
{
case 0:
for (int i=0;i<9;i++)
AddWaypoint(i, SecondPortalFirstWPs[i][0]+irand(-1, 1), SecondPortalFirstWPs[i][1]+irand(-1, 1), SecondPortalFirstWPs[i][2], 0);
me->SetHomePosition(SecondPortalFirstWPs[8][0]+irand(-1, 1), SecondPortalFirstWPs[8][1]+irand(-1, 1), SecondPortalFirstWPs[8][2]+irand(-1, 1), 3.149439f);
break;
case 1:
for (int i=0;i<8;i++)
AddWaypoint(i, SecondPortalSecondWPs[i][0]+irand(-1, 1), SecondPortalSecondWPs[i][1]+irand(-1, 1), SecondPortalSecondWPs[i][2], 0);
me->SetHomePosition(SecondPortalSecondWPs[7][0], SecondPortalSecondWPs[7][1], SecondPortalSecondWPs[7][2], 3.149439f);
break;
}
break;
case 2:
for (int i=0;i<8;i++)
AddWaypoint(i, ThirdPortalWPs[i][0]+irand(-1, 1), ThirdPortalWPs[i][1]+irand(-1, 1), ThirdPortalWPs[i][2], 0);
me->SetHomePosition(ThirdPortalWPs[7][0], ThirdPortalWPs[7][1], ThirdPortalWPs[7][2], 3.149439f);
break;
case 3:
for (int i=0;i<9;i++)
AddWaypoint(i, FourthPortalWPs[i][0]+irand(-1, 1), FourthPortalWPs[i][1]+irand(-1, 1), FourthPortalWPs[i][2], 0);
me->SetHomePosition(FourthPortalWPs[8][0], FourthPortalWPs[8][1], FourthPortalWPs[8][2], 3.149439f);
break;
case 4:
for (int i=0;i<6;i++)
AddWaypoint(i, FifthPortalWPs[i][0]+irand(-1, 1), FifthPortalWPs[i][1]+irand(-1, 1), FifthPortalWPs[i][2], 0);
me->SetHomePosition(FifthPortalWPs[5][0], FifthPortalWPs[5][1], FifthPortalWPs[5][2], 3.149439f);
break;
case 5:
for (int i=0;i<4;i++)
AddWaypoint(i, SixthPoralWPs[i][0]+irand(-1, 1), SixthPoralWPs[i][1]+irand(-1, 1), SixthPoralWPs[i][2], 0);
me->SetHomePosition(SixthPoralWPs[3][0], SixthPoralWPs[3][1], SixthPoralWPs[3][2], 3.149439f);
break;
}
SetDespawnAtEnd(false);
Start(true, true);
}
}
void JustDied(Unit* /*unit*/)
{
if (Creature* portal = Unit::GetCreature((*me), instance->GetData64(DATA_TELEPORTATION_PORTAL)))
CAST_AI(npc_teleportation_portal_vh::npc_teleportation_portalAI, portal->AI())->SummonedMobDied(me);
if (instance)
instance->SetData(DATA_NPC_PRESENCE_AT_DOOR_REMOVE, 1);
}
void CreatureStartAttackDoor()
{
me->SetReactState(REACT_PASSIVE);
DoCast(SPELL_DESTROY_DOOR_SEAL);
if (instance)
instance->SetData(DATA_NPC_PRESENCE_AT_DOOR_ADD, 1);
}
};
class mob_azure_invader : public CreatureScript
{
public:
mob_azure_invader() : CreatureScript("mob_azure_invader") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_invaderAI (creature);
}
struct mob_azure_invaderAI : public violet_hold_trashAI
{
mob_azure_invaderAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiCleaveTimer;
uint32 uiImpaleTimer;
uint32 uiBrutalStrikeTimer;
uint32 uiSunderArmorTimer;
void Reset()
{
uiCleaveTimer = 5000;
uiImpaleTimer = 4000;
uiBrutalStrikeTimer = 5000;
uiSunderArmorTimer = 4000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (me->GetEntry() == CREATURE_AZURE_INVADER_1)
{
if (uiCleaveTimer <= diff)
{
DoCast(me->getVictim(), SPELL_CLEAVE);
uiCleaveTimer = 5000;
} else uiCleaveTimer -= diff;
if (uiImpaleTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, SPELL_IMPALE);
uiImpaleTimer = 4000;
} else uiImpaleTimer -= diff;
}
if (me->GetEntry() == CREATURE_AZURE_INVADER_2)
{
if (uiBrutalStrikeTimer <= diff)
{
DoCast(me->getVictim(), SPELL_BRUTAL_STRIKE);
uiBrutalStrikeTimer = 5000;
} else uiBrutalStrikeTimer -= diff;
if (uiSunderArmorTimer <= diff)
{
DoCast(me->getVictim(), SPELL_SUNDER_ARMOR);
uiSunderArmorTimer = urand(8000, 10000);
} else uiSunderArmorTimer -= diff;
DoMeleeAttackIfReady();
}
DoMeleeAttackIfReady();
}
};
};
class mob_azure_binder : public CreatureScript
{
public:
mob_azure_binder() : CreatureScript("mob_azure_binder") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_binderAI (creature);
}
struct mob_azure_binderAI : public violet_hold_trashAI
{
mob_azure_binderAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiArcaneExplosionTimer;
uint32 uiArcainBarrageTimer;
uint32 uiFrostNovaTimer;
uint32 uiFrostboltTimer;
void Reset()
{
uiArcaneExplosionTimer = 5000;
uiArcainBarrageTimer = 4000;
uiFrostNovaTimer = 5000;
uiFrostboltTimer = 4000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (me->GetEntry() == CREATURE_AZURE_BINDER_1)
{
if (uiArcaneExplosionTimer <= diff)
{
DoCast(DUNGEON_MODE(SPELL_ARCANE_EXPLOSION, H_SPELL_ARCANE_EXPLOSION));
uiArcaneExplosionTimer = 5000;
} else uiArcaneExplosionTimer -= diff;
if (uiArcainBarrageTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, DUNGEON_MODE(SPELL_ARCANE_BARRAGE, H_SPELL_ARCANE_BARRAGE));
uiArcainBarrageTimer = 6000;
} else uiArcainBarrageTimer -= diff;
}
if (me->GetEntry() == CREATURE_AZURE_BINDER_2)
{
if (uiFrostNovaTimer <= diff)
{
DoCast(DUNGEON_MODE(SPELL_FROST_NOVA, H_SPELL_FROST_NOVA));
uiFrostNovaTimer = 5000;
} else uiFrostNovaTimer -= diff;
if (uiFrostboltTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, DUNGEON_MODE(SPELL_FROSTBOLT, H_SPELL_FROSTBOLT));
uiFrostboltTimer = 6000;
} else uiFrostboltTimer -= diff;
}
DoMeleeAttackIfReady();
}
};
};
class mob_azure_mage_slayer : public CreatureScript
{
public:
mob_azure_mage_slayer() : CreatureScript("mob_azure_mage_slayer") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_mage_slayerAI (creature);
}
struct mob_azure_mage_slayerAI : public violet_hold_trashAI
{
mob_azure_mage_slayerAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiArcaneEmpowermentTimer;
uint32 uiSpellLockTimer;
void Reset()
{
uiArcaneEmpowermentTimer = 5000;
uiSpellLockTimer = 5000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (me->GetEntry() == CREATURE_AZURE_MAGE_SLAYER_1)
{
if (uiArcaneEmpowermentTimer <= diff)
{
DoCast(me, SPELL_ARCANE_EMPOWERMENT);
uiArcaneEmpowermentTimer = 14000;
} else uiArcaneEmpowermentTimer -= diff;
}
if (me->GetEntry() == CREATURE_AZURE_MAGE_SLAYER_2)
{
if (uiSpellLockTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, SPELL_SPELL_LOCK);
uiSpellLockTimer = 9000;
} else uiSpellLockTimer -= diff;
}
DoMeleeAttackIfReady();
}
};
};
class mob_azure_raider : public CreatureScript
{
public:
mob_azure_raider() : CreatureScript("mob_azure_raider") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_raiderAI (creature);
}
struct mob_azure_raiderAI : public violet_hold_trashAI
{
mob_azure_raiderAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiConcussionBlowTimer;
uint32 uiMagicReflectionTimer;
void Reset()
{
uiConcussionBlowTimer = 5000;
uiMagicReflectionTimer = 8000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (uiConcussionBlowTimer <= diff)
{
DoCast(me->getVictim(), SPELL_CONCUSSION_BLOW);
uiConcussionBlowTimer = 5000;
} else uiConcussionBlowTimer -= diff;
if (uiMagicReflectionTimer <= diff)
{
DoCast(SPELL_MAGIC_REFLECTION);
uiMagicReflectionTimer = urand(10000, 15000);
} else uiMagicReflectionTimer -= diff;
DoMeleeAttackIfReady();
}
};
};
class mob_azure_stalker : public CreatureScript
{
public:
mob_azure_stalker() : CreatureScript("mob_azure_stalker") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_stalkerAI (creature);
}
struct mob_azure_stalkerAI : public violet_hold_trashAI
{
mob_azure_stalkerAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiBackstabTimer;
uint32 uiTacticalBlinkTimer;
bool TacticalBlinkCasted;
void Reset()
{
uiBackstabTimer = 1300;
uiTacticalBlinkTimer = 8000;
TacticalBlinkCasted =false;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (!TacticalBlinkCasted)
{
if (uiTacticalBlinkTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 40, true);
if (target)
DoCast(target, SPELL_TACTICAL_BLINK);
uiTacticalBlinkTimer = 6000;
TacticalBlinkCasted = true;
} else uiTacticalBlinkTimer -= diff;
}
else
{
if (uiBackstabTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_NEAREST, 0, 10, true);
DoCast(target, SPELL_BACKSTAB);
TacticalBlinkCasted = false;
uiBackstabTimer =1300;
} else uiBackstabTimer -= diff;
}
DoMeleeAttackIfReady();
}
};
};
class mob_azure_spellbreaker : public CreatureScript
{
public:
mob_azure_spellbreaker() : CreatureScript("mob_azure_spellbreaker") { }
struct mob_azure_spellbreakerAI : public violet_hold_trashAI
{
mob_azure_spellbreakerAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiArcaneBlastTimer;
uint32 uiSlowTimer;
uint32 uiChainsOfIceTimer;
uint32 uiConeOfColdTimer;
void Reset()
{
uiArcaneBlastTimer = 5000;
uiSlowTimer = 4000;
uiChainsOfIceTimer = 5000;
uiConeOfColdTimer = 4000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (me->GetEntry() == CREATURE_AZURE_SPELLBREAKER_1)
{
if (uiArcaneBlastTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, DUNGEON_MODE(SPELL_ARCANE_BLAST, H_SPELL_ARCANE_BLAST));
uiArcaneBlastTimer = 6000;
} else uiArcaneBlastTimer -= diff;
if (uiSlowTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, SPELL_SLOW);
uiSlowTimer = 5000;
} else uiSlowTimer -= diff;
}
if (me->GetEntry() == CREATURE_AZURE_SPELLBREAKER_2)
{
if (uiChainsOfIceTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, SPELL_CHAINS_OF_ICE);
uiChainsOfIceTimer = 7000;
} else uiChainsOfIceTimer -= diff;
if (uiConeOfColdTimer <= diff)
{
DoCast(DUNGEON_MODE(SPELL_CONE_OF_COLD, H_SPELL_CONE_OF_COLD));
uiConeOfColdTimer = 5000;
} else uiConeOfColdTimer -= diff;
}
DoMeleeAttackIfReady();
}
};
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_spellbreakerAI (creature);
}
};
class mob_azure_captain : public CreatureScript
{
public:
mob_azure_captain() : CreatureScript("mob_azure_captain") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_captainAI (creature);
}
struct mob_azure_captainAI : public violet_hold_trashAI
{
mob_azure_captainAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiMortalStrikeTimer;
uint32 uiWhirlwindTimer;
void Reset()
{
uiMortalStrikeTimer = 5000;
uiWhirlwindTimer = 8000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (uiMortalStrikeTimer <= diff)
{
DoCast(me->getVictim(), SPELL_MORTAL_STRIKE);
uiMortalStrikeTimer = 5000;
} else uiMortalStrikeTimer -= diff;
if (uiWhirlwindTimer <= diff)
{
DoCast(me, SPELL_WHIRLWIND_OF_STEEL);
uiWhirlwindTimer = 8000;
} else uiWhirlwindTimer -= diff;
DoMeleeAttackIfReady();
}
};
};
class mob_azure_sorceror : public CreatureScript
{
public:
mob_azure_sorceror() : CreatureScript("mob_azure_sorceror") { }
CreatureAI* GetAI(Creature* creature) const
{
return new mob_azure_sorcerorAI (creature);
}
struct mob_azure_sorcerorAI : public violet_hold_trashAI
{
mob_azure_sorcerorAI(Creature* c) : violet_hold_trashAI(c)
{
instance = c->GetInstanceScript();
}
uint32 uiArcaneStreamTimer;
uint32 uiArcaneStreamTimerStartingValueHolder;
uint32 uiManaDetonationTimer;
void Reset()
{
uiArcaneStreamTimer = 4000;
uiArcaneStreamTimerStartingValueHolder = uiArcaneStreamTimer;
uiManaDetonationTimer = 5000;
}
void UpdateAI(const uint32 diff)
{
violet_hold_trashAI::UpdateAI(diff);
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
if (uiArcaneStreamTimer <= diff)
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
if (target)
DoCast(target, DUNGEON_MODE(SPELL_ARCANE_STREAM, H_SPELL_ARCANE_STREAM));
uiArcaneStreamTimer = urand(0, 5000)+5000;
uiArcaneStreamTimerStartingValueHolder = uiArcaneStreamTimer;
} else uiArcaneStreamTimer -= diff;
if (uiManaDetonationTimer <= diff && uiArcaneStreamTimer >=1500 && uiArcaneStreamTimer <= uiArcaneStreamTimerStartingValueHolder/2)
{
DoCast(DUNGEON_MODE(SPELL_MANA_DETONATION, H_SPELL_MANA_DETONATION));
uiManaDetonationTimer = urand(2000, 6000);
} else uiManaDetonationTimer -= diff;
DoMeleeAttackIfReady();
}
};
};
void AddSC_violet_hold()
{
new npc_sinclari_vh();
new npc_teleportation_portal_vh();
new mob_azure_invader();
new mob_azure_spellbreaker();
new mob_azure_binder();
new mob_azure_mage_slayer();
new mob_azure_captain();
new mob_azure_sorceror();
new mob_azure_raider();
new mob_azure_stalker();
new mob_azure_saboteur();
} | alideny/ChgMangos_CTM | src/server/scripts/Northrend/VioletHold/violet_hold.cpp | C++ | gpl-2.0 | 45,090 |
(function ($, window, document) {
"use strict";
$(document).on( 'ready', function(){
var $body = $('body'),
$topbar = $( document.getElementById('topbar') ),
$products_sliders = $('.products-slider-wrapper, .categories-slider-wrapper');
/*************************
* SHOP STYLE SWITCHER
*************************/
$('#list-or-grid').on( 'click', 'a', function(){
var trigger = $(this),
view = trigger.attr( 'class' ).replace('-view', '');
$( 'ul.products li' ).removeClass( 'list grid' ).addClass( view );
trigger.parent().find( 'a' ).removeClass( 'active' );
trigger.addClass( 'active' );
$.cookie( yit_shop_view_cookie, view );
return false;
});
/*************************
* Fix Product Name and Price
*************************/
var padding_nameprice = function () {
$('li.product .product-wrapper .info-product.slideup').each(function () {
$(this).find('h3').css( 'padding-' + ( ! yit.isRtl ? 'right' : 'left' ), $(this).find('span.price').width() + 10 );
});
};
if( $(window).width() > 1199 ){
padding_nameprice();
}
$(document).on('yith-wcan-ajax-filtered', padding_nameprice );
/*************************
* ADD TO CART
*************************/
var product, product_onsale;
var add_to_cart = function() {
$('ul.products').on('click', 'li.product .add_to_cart_button', function () {
product = $(this).parents('li.product');
product_onsale = product.find('.product-wrapper > .onsale');
if( typeof yit.load_gif != 'undefined' ) {
product.find('.thumb-wrapper').block({message: null, overlayCSS: {background: '#fff url(' + yit.load_gif + ') no-repeat center', opacity: 0.3, cursor: 'none'}});
}
else{
product.find('.thumb-wrapper').block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url.substring(0, woocommerce_params.ajax_loader_url.length - 7) + '.gif) no-repeat center', opacity: 0.3, cursor: 'none'}});
}
});
}
add_to_cart();
$(document).on('yith-wcan-ajax-filtered', add_to_cart );
$body.on('added_to_cart', function () {
if( typeof product_onsale === 'undefined' && typeof product === 'undefined' ) return;
$( '.products-slider.swiper .swiper-slide .opacity .swiper-product-informations span.product-add-to-cart a.added_to_cart.wc-forward')
.addClass( 'btn btn-flat' )
.prev('a').remove();
if ( product_onsale.length ) {
product_onsale.remove();
}
product.find('.thumb-wrapper').append('<div class="added_to_cart_box"><div class="added_to_cart_label">' + yit.added_to_cart + '</div></div>');
product.find('.added_to_cart_label').append(product.find('a.added_to_cart'));
product.find('.product-wrapper div:first-child').addClass('nohover');
setTimeout( function(){
product.find('.added_to_cart_box').fadeOut(2000, function(){ $(this).remove(); });
product.find('.product-wrapper div:first-child').removeClass('nohover');
}, 3000 );
if (product.find('.product-wrapper > .added_to_cart_ico').length == 0) {
setTimeout(function() {
product.find('.product-wrapper').append('<span class="added_to_cart_ico">' + yit.added_to_cart_ico + '</span>');
}, 4000);
}
product.find('.thumb-wrapper').unblock();
});
/*************************
* PRODUCTS SLIDER
*************************/
if( $.fn.owlCarousel && $.fn.imagesLoaded && $products_sliders.length ) {
var product_slider = function(t) {
t.imagesLoaded(function(){
var cols = t.data('columns') ? t.data('columns') : 4;
var autoplay = (t.attr('data-autoplay')=='true') ? 3000 : false;
var owl = t.find('.products').owlCarousel({
items : cols,
responsiveClass : true,
responsive:{
0 : {
items: 2
},
479 : {
items: 3
},
767 : {
items: 4
},
992 : {
items: cols
}
},
autoplay : autoplay,
autoplayTimeout : 2000,
autoplayHoverPause: true,
loop : true,
rtl: yit.isRtl == true
});
// Custom Navigation Events
t.on('click', '.es-nav-next', function () {
owl.trigger('next.owl.carousel');
});
t.on('click', '.es-nav-prev', function () {
owl.trigger('prev.owl.carousel');
});
});
};
// initialize slider in only visible tabs
$products_sliders.each(function(){
var t = $(this);
if( ! t.closest('.panel.group').length || t.closest('.panel.group').hasClass('showing') ){
product_slider( t );
}
});
$('.tabs-container').on( 'yit_tabopened', function( e, tab ) {
product_slider( tab.find( $products_sliders ) );
});
}
/*************************
* VARIATIONS SELECT
*************************/
var variations_select = function(){
// variations select
if( $.fn.selectbox ) {
var form = $('form.variations_form');
var select = form.find('select:not(.yith_wccl_custom)');
if( form.data('wccl') ) {
select = select.filter(function(){
return $(this).data('type') == 'select'
});
}
select.selectbox({
effect: 'fade',
onOpen: function() {
//$('.variations select').trigger('focusin');
}
});
var update_select = function(event){ // console.log(event);
select.selectbox("detach");
select.selectbox("attach");
};
// fix variations select
form.on( 'woocommerce_update_variation_values', update_select);
form.find('.reset_variations').on('click.yit', update_select);
}
};
variations_select();
/*************************
* TOPBAR INDICATORS
*************************/
$topbar.find('#lang_sel .lang_sel_sel').append('<span class="sf-sub-indicator"> +</span>');
$topbar.find('#wcml_currency_switcher > ul > li a.sbSelector').append('<span class="sf-sub-indicator"> +</span>');
/*************************
* PRODUCT TABS
*************************/
$('.single-product-tabs.vertical').on('click', 'ul.tabs li .tab_name', function () {
var tab_trigger = $(this),
panel = tab_trigger.siblings('.panel'),
container = tab_trigger.closest('.single-product-tabs');
if ( ! tab_trigger.hasClass('active') ) {
//remove opened tab
container.find('.tab_name.active').siblings('div.panel').slideToggle('slow');
container.find('.tab_name.active').removeClass('active');
//open tab
tab_trigger.addClass('active');
} else {
tab_trigger.removeClass('active');
}
panel.slideToggle('slow');
});
/*************************
* INQUIRY FORM
*************************/
var inquiry_form = function(){
if ( $('#inquiry-form .product-inquiry').length ) {
$(document).on('click', '#inquiry-form .product-inquiry', function(event){
event.stopImmediatePropagation('click');
$(this).next('form.contact-form').slideToggle('slow');
});
}
};
inquiry_form();
$(document).on('yit_quick_view_loaded', inquiry_form);
if( $( 'body').hasClass( 'single-product' ) ) {
setTimeout( function() {
if( $.trim( $( 'div.user-message').html() ) != '' || $.trim( $( '.contact-form li div.msg-error' ).text() ) != '' ) {
$('form.contact-form').slideToggle('slow');
}
}, 200 );
}
/*************************
* Wishlist
*************************/
var wishlist_share = function() {
if ( $('#wishlist-share div.share-text').length ) {
$(document).on('click', '#wishlist-share div.share-text', function(){
$(this).next('div.share-link-container').slideToggle('slow');
});
}
};
wishlist_share();
$(document).on('yit_quick_view_loaded', wishlist_share);
/*************************
* Update Calculate Shipping Select
*************************/
var wc_version = 2.2;
if (typeof yit_woocommerce != 'undefined') wc_version = parseFloat(yit_woocommerce.version);
if ( wc_version < 2.3 && $.fn.selectbox ) {
$('#calc_shipping_state').next('.sbHolder').addClass('stateHolder');
$body.on('country_to_state_changing', function(){
$('.stateHolder').remove();
$('#calc_shipping_state').show().attr('sb', '');
$('select#calc_shipping_state').selectbox({
effect: 'fade',
classHolder: 'stateHolder sbHolder'
});
});
}
/*************************
* Login Form
*************************/
// $('#login-form').on('submit', function(){
// var a = $('#reg_password').val();
// var b = $('#reg_password_retype').val();
// if(!(a==b)){
// $('#reg_password_retype').addClass('invalid');
// return false;
// }else{
// $('#reg_password_retype').removeClass('invalid');
// return true;
// }
// });
/*************************
* PRODUCT QUICK VIEW
*************************/
function quick_view_trigger() {
$('div.quick-view a.trigger').yit_quick_view({
item_container: 'li.product',
loader : 'div.single-product.woocommerce',
assets : yit_quick_view.assets,
before : function (trigger, item) {
// add loading in the button
if( typeof yit.load_gif != 'undefined' ) {
trigger.parent().block({message: null, overlayCSS: {background: '#fff url(' + yit.load_gif + ') no-repeat center', opacity: 0.3, cursor: 'none'}});
}
else{
trigger.parent().block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url.substring(0, woocommerce_params.ajax_loader_url.length - 7) + '.gif) no-repeat center', opacity: 0.3, cursor: 'none'}});
}
item.find('.thumb-wrapper').addClass('hover');
},
openDialog : function (trigger, item) {
// remove loading from button
trigger.parent().unblock();
item.find('.thumb-wrapper').removeClass('hover');
},
completed : function (trigger, item, html, overlay) {
var data = $('<div>' + html + '</div>'),
title = data.find('h1.product_title').html(),
price = data.find('p.price').html(),
rating = data.find('div.star-rating').html(),
container = document.getElementById('wrapper'),
wrapper = $(overlay).find('.main .container');
// add main class to dialog container
$(overlay).addClass('product-quick-view');
// head
$('<p />').addClass('price').html(price).prependTo(wrapper.find('.head'));
$('<div />').addClass('star-rating').html(rating).prependTo(wrapper.find('.head'));
$('<h4 />').html(title).prependTo(wrapper.find('.head'));
//prettyPhoto
if ( typeof $.prettyPhoto != 'undefined' ) {
data.find( "a[rel^='thumbnails'], a.zoom" ).prettyPhoto({
social_tools : false,
theme : 'pp_woocommerce',
horizontal_padding: 40,
opacity : 0.9,
deeplinking : false
});
}
// quantity fields
$('div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)').addClass('buttons_added').append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />');
variations_select();
// add to cart
$('form.cart', overlay).on('submit', function (e) {
e.preventDefault();
var form = $(this),
button = form.find('button'),
product_url = item.find('a.thumb').attr('href');
if( typeof yit.load_gif != 'undefined' ) {
button.block({message: null, overlayCSS: {background: '#fff url(' + yit.load_gif + ') no-repeat center', opacity: 0.3, cursor: 'none'}});
}
else if (typeof( woocommerce_params.plugin_url ) != 'undefined') {
button.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.plugin_url + '/assets/images/ajax-loader.gif) no-repeat center', opacity: 0.3, cursor: 'none'}});
}
else {
button.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url.substring(0, woocommerce_params.ajax_loader_url.length - 7) + '.gif) no-repeat center', opacity: 0.3, cursor: 'none'}});
}
$.post(product_url, form.serialize() + '&_wp_http_referer=' + product_url, function (result) {
var message = $( '.woocommerce-message', result ),
cart_dropdown = $( '#header .yit_cart_widget', result);
if( typeof wc_cart_fragments_params != 'undefined') {
// update fragments
var $supports_html5_storage;
try {
$supports_html5_storage = ( 'sessionStorage' in window && window.sessionStorage !== null );
window.sessionStorage.setItem('wc', 'test');
window.sessionStorage.removeItem('wc');
} catch (err) {
$supports_html5_storage = false;
}
$.ajax({
url : wc_cart_fragments_params.wc_ajax_url.toString().replace('%%endpoint%%', 'get_refreshed_fragments'),
type : 'POST',
success: function (data) {
if (data && data.fragments) {
$.each(data.fragments, function (key, value) {
$(key).replaceWith(value);
});
if ($supports_html5_storage) {
sessionStorage.setItem(wc_cart_fragments_params.fragment_name, JSON.stringify(data.fragments));
sessionStorage.setItem('wc_cart_hash', data.cart_hash);
}
$(document.body).trigger('wc_fragments_refreshed');
}
}
});
}
// add message
$('div.product', overlay).before(message);
// remove loading
button.unblock();
});
});
// others
$('#wishlist-share').find('.share-link-container').hide();
$('#inquiry-form').find('form.contact-form').hide();
},
action : 'yit_load_product_quick_view'
});
}
if ($.fn.yit_quick_view && typeof yit_quick_view != 'undefined') {
quick_view_trigger();
$(document).on('yith-wcan-ajax-filtered', quick_view_trigger);
}
/*************************
* WISHLIST LABEL
*************************/
$( '.yith-wcwl-add-button .add_to_wishlist').on( 'click', function() {
var feedback = $(this).closest('.yith-wcwl-add-to-wishlist').find('.yith-wcwl-wishlistaddedbrowse span.feedback');
feedback.fadeIn();
setTimeout( function(){
feedback.fadeOut('slow');
}, 4000 );
});
/*************************
* Widget Woo Price Filter
*************************/
if( yit.price_filter_slider == 'no' || typeof yit.price_filter_slider == 'undefined' ) {
var removePriceFilterSlider = function() {
$( 'input#min_price, input#max_price' ).show();
$('form > div.price_slider_wrapper').find( 'div.price_slider, div.price_label' ).hide();
};
removePriceFilterSlider();
}
/*****************************
* TERMS AND CONDITIONS POPUP
*****************************/
if ($.fn.yit_quick_view ) {
var term_popup = function() {
$('p.terms a').yit_quick_view({
item_container: 'p.terms',
loader: '#primary .content',
loadPage: true,
before: function( trigger, item ) {
// add loading in the button
if( typeof yit.load_gif != 'undefined' ) {
item.block({message: null, overlayCSS: {background: '#fff url(' + yit.load_gif + ') no-repeat center', opacity: 0.3, cursor: 'none'}});
} else {
item.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url.substring(0, woocommerce_params.ajax_loader_url.length - 7) + '.gif) no-repeat center', opacity: 0.3, cursor: 'none'}});
}
},
completed: function( trigger, item, html, overlay ) {
var data = $('<div>' + html + '</div>'),
title = trigger.text(),
container = document.getElementById( 'wrapper' ),
wrapper = $(overlay).find('.main .container');
// head
$('<h4 />').html(title).prependTo( wrapper.find('.head') );
$(overlay).addClass('terms-popup');
$(overlay).find('.content').removeClass('col-sm-12 col-sm-9');
},
openDialog: function( trigger, item ) {
item.unblock();
}
});
};
$body.on('updated_checkout', term_popup);
term_popup();
}
});
})( jQuery, window, document ); | lieison/IndustriasFenix | wp-content/themes/bishop/theme/assets/js/woocommerce.js | JavaScript | gpl-2.0 | 21,939 |
package com.yh.admin.bo;
import java.util.Date;
import com.yh.platform.core.bo.BaseBo;
public class UserAgent extends BaseBo {
private static final long serialVersionUID = 2715416587055228708L;
private Long userAgentOid;
private Long systemPositionOid;
private String userId; // 被代理人
private String agentUserId; // 指定的代理人
private Date effectiveDate; // 有效开始期
private Date expiredDt;
private String isActive;
public Long getSystemPositionOid() {
return systemPositionOid;
}
public void setSystemPositionOid(Long systemPositionOid) {
this.systemPositionOid = systemPositionOid;
}
public Long getUserAgentOid() {
return userAgentOid;
}
public void setUserAgentOid(Long userAgentOid) {
this.userAgentOid = userAgentOid;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getAgentUserId() {
return agentUserId;
}
public void setAgentUserId(String agentUserId) {
this.agentUserId = agentUserId;
}
public Date getExpiredDt() {
return expiredDt;
}
public void setExpiredDt(Date expiredDt) {
this.expiredDt = expiredDt;
}
public String getIsActive() {
return isActive;
}
public void setIsActive(String isActive) {
this.isActive = isActive;
}
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
}
| meijmOrg/Repo-test | freelance-admin/src/java/com/yh/admin/bo/UserAgent.java | Java | gpl-2.0 | 1,512 |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\File;
use PHPExiftool\Driver\AbstractTag;
class PreviewPNG extends AbstractTag
{
protected $Id = 'PreviewPNG';
protected $Name = 'PreviewPNG';
protected $FullName = 'Extra';
protected $GroupName = 'File';
protected $g0 = 'File';
protected $g1 = 'File';
protected $g2 = 'Image';
protected $Type = '?';
protected $Writable = false;
protected $Description = 'Preview PNG';
protected $flag_Binary = true;
}
| Droces/casabio | vendor/phpexiftool/phpexiftool/lib/PHPExiftool/Driver/Tag/File/PreviewPNG.php | PHP | gpl-2.0 | 725 |
<?php
/**
* @version $Id: blog.php 20960 2011-03-12 14:14:00Z chdemko $
* @package Chola.Site
* @subpackage com_content
* @copyright Copyright (C) 2005 - 2011 Cholalabs Software LLP. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
?>
<div class="blog<?php echo $this->pageclass_sfx;?>">
<?php if ($this->params->get('show_page_heading', 1)) : ?>
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_category_title', 1) OR $this->params->get('page_subheading')) : ?>
<h2>
<?php echo $this->escape($this->params->get('page_subheading')); ?>
<?php if ($this->params->get('show_category_title')) : ?>
<span class="subheading-category"><?php echo $this->category->title;?></span>
<?php endif; ?>
</h2>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
<div class="category-desc">
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
<img src="<?php echo $this->category->getParams()->get('image'); ?>"/>
<?php endif; ?>
<?php if ($this->params->get('show_description') && $this->category->description) : ?>
<?php echo JHtml::_('content.prepare', $this->category->description); ?>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php $leadingcount=0 ; ?>
<?php if (!empty($this->lead_items)) : ?>
<div class="items-leading">
<?php foreach ($this->lead_items as &$item) : ?>
<div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
<?php
$this->item = &$item;
echo $this->loadTemplate('item');
?>
</div>
<?php
$leadingcount++;
?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php
$introcount=(count($this->intro_items));
$counter=0;
?>
<?php if (!empty($this->intro_items)) : ?>
<?php foreach ($this->intro_items as $key => &$item) : ?>
<?php
$key= ($key-$leadingcount)+1;
$rowcount=( ((int)$key-1) % (int) $this->columns) +1;
$row = $counter / $this->columns ;
if ($rowcount==1) : ?>
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row ; ?>">
<?php endif; ?>
<div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
<?php
$this->item = &$item;
echo $this->loadTemplate('item');
?>
</div>
<?php $counter++; ?>
<?php if (($rowcount == $this->columns) or ($counter ==$introcount)): ?>
<span class="row-separator"></span>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if (!empty($this->link_items)) : ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?>
<?php if (!empty($this->children[$this->category->id])&& $this->maxLevel != 0) : ?>
<div class="cat-children">
<h3>
<?php echo JTEXT::_('JGLOBAL_SUBCATEGORIES'); ?>
</h3>
<?php echo $this->loadTemplate('children'); ?>
</div>
<?php endif; ?>
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
<div class="pagination">
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
</div>
| cholalabs/CholaApps2.0 | components/com_content/views/category/tmpl/blog.php | PHP | gpl-2.0 | 3,631 |
/* Cabal - Legacy Game Implementations
*
* Cabal is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
// Based on the ScummVM (GPLv2+) file of the same name
#ifdef ENABLE_HE
#include "scumm/he/floodfill_he.h"
#include "scumm/he/intern_he.h"
#include "scumm/resource.h"
#include "scumm/scumm.h"
namespace Scumm {
static bool floodFillPixelCheck(int x, int y, const FloodFillState *ffs) {
int diffColor = ffs->color1 - ffs->color2;
if (x >= 0 && x < ffs->dst_w && y >= 0 && y < ffs->dst_h) {
uint8 color = *(ffs->dst + y * ffs->dst_w + x);
diffColor = color - ffs->color1;
}
return diffColor == 0;
}
static void floodFillProcessRect(FloodFillState *ffs, const Common::Rect *r) {
Common::Rect *dr = &ffs->dstBox;
if (dr->right >= dr->left && dr->top <= dr->bottom) {
int rw = r->right - r->left + 1;
int rh = r->bottom - r->top + 1;
assert(r->top + rh <= ffs->dst_h);
assert(r->left + rw <= ffs->dst_w);
uint8 *dst = ffs->dst + r->top * ffs->dst_w + r->left;
if (rw <= 1) {
--rh;
while (rh >= 0) {
*dst = ffs->color2;
dst += ffs->dst_w;
--rh;
}
} else {
--rh;
while (rh >= 0) {
memset(dst, ffs->color2, rw);
dst += ffs->dst_w;
--rh;
}
}
dr->extend(*r);
} else {
*dr = *r;
}
}
static void floodFillAddLine(FloodFillLine **ffl, int y, int x1, int x2, int dy) {
(*ffl)->y = y;
(*ffl)->x1 = x1;
(*ffl)->x2 = x2;
(*ffl)->inc = dy;
(*ffl)++;
}
static void floodFillProcess(int x, int y, FloodFillState *ffs, FloodFillPixelCheckCallback pixelCheckCallback) {
ffs->dstBox.left = ffs->dstBox.top = 12345;
ffs->dstBox.right = ffs->dstBox.bottom = -12345;
FloodFillLine **fillLineCur = &ffs->fillLineTableCur;
FloodFillLine **fillLineEnd = &ffs->fillLineTableEnd;
assert(*fillLineCur < *fillLineEnd);
if (ffs->srcBox.top <= y + 1 && ffs->srcBox.bottom >= y + 1) {
(*fillLineCur)->y = y;
(*fillLineCur)->x1 = x;
(*fillLineCur)->x2 = x;
(*fillLineCur)->inc = 1;
(*fillLineCur)++;
}
assert(*fillLineCur < *fillLineEnd);
if (ffs->srcBox.top <= y && ffs->srcBox.bottom >= y) {
(*fillLineCur)->y = y + 1;
(*fillLineCur)->x1 = x;
(*fillLineCur)->x2 = x;
(*fillLineCur)->inc = -1;
(*fillLineCur)++;
}
assert(ffs->fillLineTable <= *fillLineCur);
FloodFillLine **fillLineStart = fillLineCur;
while (ffs->fillLineTable < *fillLineStart) {
Common::Rect r;
int x_start;
FloodFillLine *fflCur = --(*fillLineCur);
int dy = fflCur->inc;
int x_end = fflCur->x2;
int x1 = fflCur->x1;
int x2 = fflCur->x1 + 1;
r.bottom = r.top = y = fflCur->y + fflCur->inc;
r.left = x2;
r.right = x1;
x = x1;
while (ffs->srcBox.left <= x) {
if (!(*pixelCheckCallback)(x, y, ffs)) {
break;
}
r.left = x;
--x;
}
if (r.right >= r.left && r.top <= r.bottom) {
floodFillProcessRect(ffs, &r);
}
if (x >= x1) goto skip;
x_start = x + 1;
if (x1 > x_start) {
assert(*fillLineEnd > *fillLineCur);
if (ffs->srcBox.top <= y - dy && ffs->srcBox.bottom >= y - dy) {
--x1;
floodFillAddLine(fillLineCur, y, x_start, x1, -dy);
}
}
x = x2;
while (x_start <= x_end) {
r.left = x;
r.top = y;
r.right = x - 1;
r.bottom = y;
while (ffs->srcBox.right >= x) {
if (!(*pixelCheckCallback)(x, y, ffs)) {
break;
}
r.right = x;
++x;
}
if (r.right >= r.left && r.top <= r.bottom) {
floodFillProcessRect(ffs, &r);
}
assert(ffs->fillLineTableCur < ffs->fillLineTableEnd);
if (ffs->srcBox.top <= y + dy && ffs->srcBox.bottom >= y + dy) {
floodFillAddLine(&ffs->fillLineTableCur, y, x_start, x - 1, dy);
}
x_start = x_end + 1;
if (x > x_start) {
assert(ffs->fillLineTableCur < ffs->fillLineTableEnd);
if (ffs->srcBox.top <= y - dy && ffs->srcBox.bottom >= y - dy) {
floodFillAddLine(&ffs->fillLineTableCur, y, x_start, x - 1, -dy);
}
}
skip:
++x;
while (x <= x_end) {
if ((*pixelCheckCallback)(x, y, ffs)) {
break;
}
++x;
}
x_start = x;
}
}
}
void floodFill(FloodFillParameters *ffp, ScummEngine_v90he *vm) {
uint8 *dst;
VirtScreen *vs = &vm->_virtscr[kMainVirtScreen];
if (ffp->flags & 0x8000) {
dst = vs->getBackPixels(0, vs->topline);
} else {
dst = vs->getPixels(0, vs->topline);
}
uint8 color = ffp->flags & 0xFF;
Common::Rect r;
r.left = r.top = 12345;
r.right = r.bottom = -12345;
FloodFillState *ffs = new FloodFillState;
ffs->fillLineTableCount = vs->getHeight() * 2;
ffs->fillLineTable = new FloodFillLine[ffs->fillLineTableCount];
ffs->color2 = color;
ffs->dst = dst;
ffs->dst_w = vs->getWidth();
ffs->dst_h = vs->getHeight();
ffs->srcBox = ffp->box;
ffs->fillLineTableCur = &ffs->fillLineTable[0];
ffs->fillLineTableEnd = &ffs->fillLineTable[ffs->fillLineTableCount];
if (ffp->x < 0 || ffp->y < 0 || ffp->x >= vs->getWidth() || ffp->y >= vs->getHeight()) {
ffs->color1 = color;
} else {
ffs->color1 = *(dst + ffp->y * vs->getWidth() + ffp->x);
}
debug(5, "floodFill() x=%d y=%d color1=%d ffp->flags=0x%X", ffp->x, ffp->y, ffs->color1, ffp->flags);
if (ffs->color1 != color) {
floodFillProcess(ffp->x, ffp->y, ffs, floodFillPixelCheck);
r = ffs->dstBox;
}
r.debugPrint(5, "floodFill() dirty_rect");
delete[] ffs->fillLineTable;
delete ffs;
vm->VAR(119) = 1;
if (r.left <= r.right && r.top <= r.bottom) {
if (ffp->flags & 0x8000) {
vm->restoreBackgroundHE(r);
} else {
++r.bottom;
vm->markRectAsDirty(kMainVirtScreen, r);
}
}
}
void Wiz::fillWizFlood(const WizParameters *params) {
if (params->processFlags & kWPFClipBox2) {
int px = params->box2.left;
int py = params->box2.top;
uint8 *dataPtr = _vm->getResourceAddress(rtImage, params->img.resNum);
if (dataPtr) {
int state = 0;
if (params->processFlags & kWPFNewState) {
state = params->img.state;
}
uint8 *wizh = _vm->findWrappedBlock(MKTAG('W','I','Z','H'), dataPtr, state, 0);
assert(wizh);
int c = READ_LE_UINT32(wizh + 0x0);
int w = READ_LE_UINT32(wizh + 0x4);
int h = READ_LE_UINT32(wizh + 0x8);
assert(c == 0);
Common::Rect imageRect(w, h);
if (params->processFlags & kWPFClipBox) {
if (!imageRect.intersects(params->box)) {
return;
}
imageRect.clip(params->box);
}
uint8 color = _vm->VAR(93);
if (params->processFlags & kWPFFillColor) {
color = params->fillColor;
}
if (imageRect.contains(px, py)) {
uint8 *wizd = _vm->findWrappedBlock(MKTAG('W','I','Z','D'), dataPtr, state, 0);
assert(wizd);
FloodFillState *ffs = new FloodFillState;
ffs->fillLineTableCount = h * 2;
ffs->fillLineTable = new FloodFillLine[ffs->fillLineTableCount];
ffs->color2 = color;
ffs->dst = wizd;
ffs->dst_w = w;
ffs->dst_h = h;
ffs->srcBox = imageRect;
ffs->fillLineTableCur = &ffs->fillLineTable[0];
ffs->fillLineTableEnd = &ffs->fillLineTable[ffs->fillLineTableCount];
if (px < 0 || py < 0 || px >= w || py >= h) {
ffs->color1 = color;
} else {
ffs->color1 = *(wizd + py * w + px);
}
debug(0, "floodFill() x=%d y=%d color1=%d", px, py, ffs->color1);
if (ffs->color1 != color) {
floodFillProcess(px, py, ffs, floodFillPixelCheck);
}
delete[] ffs->fillLineTable;
delete ffs;
}
}
}
_vm->_res->setModified(rtImage, params->img.resNum);
}
} // End of namespace Scumm
#endif // ENABLE_HE
| project-cabal/cabal | engines/scumm/he/floodfill_he.cpp | C++ | gpl-2.0 | 8,174 |
if (Meteor.isServer) {
var
//// A lookup-table whose keys are generated each time an ‘you.register’ form is rendered using the `babelslug()` method.
//// The key is a babelslug, followed by hyphen, followed by a Meteor connection ID (like a session ID for anon users).
//// The value is the unix timestamp in milliseconds, which allows us to clear out old and unused babelslugs.
//// Two examples are shown here:
recentBabelslugs = { // @todo for a multi-servo project, move this functionality to a shared mongoDB collection
// 'MagentaMouse-KukNJw4d4vjGzzrQa': 1409341347912,
// 'BlueChessCat-YYJWMWTPq7RFWdKr6': 1409341399283
}
//// Clear out stale elements in the `recentBabelslugs` lookup-table.
, recentBabelslugsHousekeeping = function () {
var key
, now = Date.now()
;
for (key in recentBabelslugs) {
if (15 * 60 * 1000 < now - recentBabelslugs[key]) { // allow a user 15 minutes to fill in the registration form
delete recentBabelslugs[key];
}
}
}
//// Check how many times a given `username` exists in the user database. If all’s well, this should only ever return `0` or `1`.
, usernameCount = function (username) {
return Meteor.users.find({ 'profile.username': username }).count();
}
//// BabelSlug, from Rich Plastow’s work, 2014-02-09.
, ucs2 = [
[ // animal
{ en:'slug' ,es:'babosa' ,ru:'\u0441\u043B\u0438\u0437\u043D\u044F\u043A',fr:'limace' ,zh:'\u86DE\u8753',ar:'\u064A\u0631\u0642\u0627\u0646\u0629' }
, { en:'mouse' ,es:'rat\u00F3n',ru:'\u043C\u044B\u0448\u044C' ,fr:'souris' ,zh:'\u9F20\u6807',ar:'\u0641\u0623\u0631' }
, { en:'cow' ,es:'vaca' ,ru:'\u043A\u043E\u0440\u043E\u0432\u0430' ,fr:'vache' ,zh:'\u725B' ,ar:'\u0628\u0642\u0631\u0629' }
, { en:'cat' ,es:'gato' ,ru:'\u043A\u043E\u0448\u043A\u0430' ,fr:'chat' ,zh:'\u732B' ,ar:'\u0642\u0637' }
, { en:'rabbit',es:'conejo' ,ru:'\u043A\u0440\u043E\u043B\u0438\u043A' ,fr:'lapin' ,zh:'\u5154' ,ar:'\u0623\u0631\u0646\u0628' }
, { en:'deer' ,es:'ciervo' ,ru:'\u043E\u043B\u0435\u043D\u044C' ,fr:'cerf' ,zh:'\u9E7F' ,ar:'\u0623\u064A\u0644' }
, { en:'bear' ,es:'oso' ,ru:'\u043C\u0435\u0434\u0432\u0435\u0434\u044C',fr:'ours' ,zh:'\u718A' ,ar:'\u062F\u064F\u0628\u0651' }
, { en:'frog' ,es:'rana' ,ru:'\u043B\u044F\u0433\u0443\u0448\u043A\u0430',fr:'grenouille',zh:'\u9752\u86D9',ar:'\u0636\u0641\u062F\u0639' }
]
// , [ // texture
// { en:'-' ,es:'-' ,ru:'-' ,fr:'-' ,zh:'-' ,ar:'-' }
// , { en:'dotted' ,es:'punteado',ru:[1087,1091,1085,1082,1090,1080,1088,1085,1099,1081],fr:'pointill\u00E9',zh:[26001,28857],ar:[1605,1606,1602,1591] }
// , { en:'striped',es:'rayas' ,ru:[1087,1086,1083,1086,1089,1072,1090,1099,1081] ,fr:'ray\u00E9' ,zh:[26465,32441],ar:[1605,1602,1604,1605] }
// , { en:'chess' ,es:'ajedrez' ,ru:[1096,1072,1093,1084,1072,1090,1099] ,fr:'\u00E9checs' ,zh:[26827] ,ar:[1588,1591,1585,1606,1580] }
// ]
, [ // color1
{ en:'-' ,es:'-' ,ru:'-' ,fr:'-' ,zh:'-' ,ar:'-' }
, { en:'red' ,es:'rojo' ,ru:[1082,1088,1072,1089,1085,1099,1081] ,fr:'rouge' ,zh:[32418] ,ar:[1571,1581,1605,1585] }
, { en:'orange' ,es:'naranja' ,ru:[1086,1088,1072,1085,1078,1077,1074,1099,1081],fr:'orange' ,zh:[27225] ,ar:[1575,1604,1576,1585,1578,1602,1575,1604,1610] }
, { en:'yellow' ,es:'amarillo',ru:[1078,1077,1083,1090,1099,1081] ,fr:'jaune' ,zh:[40644] ,ar:[1571,1589,1601,1585] }
, { en:'green' ,es:'verde' ,ru:[1079,1077,1083,1077,1085,1099,1081] ,fr:'vert' ,zh:[32511] ,ar:[1571,1582,1590,1585] }
// , { en:'cyan' ,es:'cian' ,ru:[1075,1086,1083,1091,1073,1086,1081] ,fr:'cyan' ,zh:[38738] ,ar:[1587,1605,1575,1608,1610] }
, { en:'blue' ,es:'azul' ,ru:[1089,1080,1085,1080,1081] ,fr:'bleu' ,zh:[34013] ,ar:[1571,1586,1585,1602] }
, { en:'purple' ,es:'magenta' ,ru:[1087,1091,1088,1087,1091,1088,1085,1099,1081],fr:'magenta',zh:[27915,32418],ar:[1571,1585,1580,1608,1575,1606,1610] } // @todo translate purple (these are for magenta)
]
, [ // emotion @todo convert remaining languages from 2014-Work/BabelSlug/README.md
{ en:'-' ,es:'-' ,fr:'-' }
, { en:'happy' ,es:'feliz' ,fr:'heureux' }
// , { en:'sad' ,es:'triste' ,fr:'triste' }
, { en:'laughing' ,es:'risa' ,fr:'rire' }
, { en:'sleepy' ,es:'soñoliento' ,fr:'somnolent' }
, { en:'surprised',es:'sorprendido',fr:'étonné' }
// , { en:'playful' ,es:'juguetón' ,fr:'espiègle' }
, { en:'confused' ,es:'confundido' ,fr:'embrouillé' }
]
]
//// Prepare an empty cache, which may contain HTML entities converted from `ucs2`, if required.
, html = (function () {
var i, j, l, m ,html = {};
for (i=0, l=ucs2.length; i<l; i++) {
html[i] = [];
for (j=0, m=ucs2[i].length; j<m; j++) {
html[i][j] = {};
}
}
return html
} ())
// !!!! `numberToPhrase()`, then `i` becomes `num`, and then `ucs2` becomes an array, and `i` is iterator !!!!
, numberToPhrase = function (number, options) {
var key, len, rem, word
, num = ~~(number < 0 ? -number : number) // ensure `num` is a positive whole number, or zero
, opt = options || {}
, l18n = ucs2[0][0][opt.l18n] ? opt.l18n : 'en' // set to English if the localization option is invalid or unspecified
, phrase = []
;
for (key in ucs2) {
len = ucs2[key].length;
rem = num % len;
if (! opt.format || 'ucs2' === opt.format) {
word = ucs2[key][rem][l18n];
// console.log('key ' + key + ' format ' + 'ucs2' + ' word ' + word);
} else if ('html' === opt.format) {
word = html[key][rem][l18n];
if (! word) {
word = html[key][rem][l18n] = ucs2[key][rem][l18n].replace(/[\u00A0-\u2666]/g, function(c) {
return '&#' + c.charCodeAt(0) + ';';
});
// console.log('ADD TO CACHE key ' + key + ' format ' + 'html' + ' word ' + word);
} else {
// console.log('GET IN CACHE key ' + key + ' format ' + 'html' + ' word ' + word);
}
} else {
// @todo format error
}
if ('-' !== word) { phrase.unshift(word); }
num = ~~(num / len); // prepare for the next part in `ucs2`
if (0 === num) { break; } // low numbers don't need to step through every section in `ucs2`
}
return phrase.join('-');
}
;
Meteor.methods({
babelslug: function () {
var i, key, babelslug;
if (this.isSimulation) { return; } // clientside stub (return value is ignored)
//// Housekeeping on the `recentBabelslugs` lut.
recentBabelslugsHousekeeping();
//// Try, 200 times, to find a username which has not been taken. @todo this is quite brute-force ... can we come up with a more elegant solution?
for (i=200; i>0; i--) {
babelslug = numberToPhrase( Math.floor(Math.random() * 50000) );
if ( 3 === babelslug.split('-').length && ! recentBabelslugs[babelslug] && ! usernameCount(babelslug) ) { break; } // we are only using three-part usernames at present
}
if (! i) { throw new Meteor.Error(500, "Cannot generate a username! Please email " + Config.about.webmaster); } // @todo check `(! i)` can ever be truthy
recentBabelslugs[babelslug] = { // later, when the form is submitted, we will check that the babelslug value is expected
now: Date.now() // allows `recentBabelslugsHousekeeping()` to find stale babelslugs
, cid: this.connection.id
}
return babelslug + '_' + this.connection.id; // @todo is `this.connection.id` ever some unexpected value, for example `null`?
}
});
Accounts.onCreateUser(function (options, user) {
var babelslug, connectionId;
//// Housekeeping on the `recentBabelslugs` lut.
recentBabelslugsHousekeeping();
//// Validate the value of `<input id="AT_field_you-babelslug" ...>`.
babelslug = options.profile['you-babelslug'].split('_')[0];
connectionId = options.profile['you-babelslug'].split('_')[1];
if (! babelslug || ! connectionId) {
throw new Meteor.Error(500, "The ‘username’ field is invalid."); // @todo better error-code than 500?
}
if (! recentBabelslugs[babelslug]) {
throw new Meteor.Error(500, "Your registration form expired after 15 minutes. Please refresh the browser and try again."); // The ‘username’ value is unexpected, so this may actually be a hack attempt
}
if ( usernameCount(babelslug) ) {
throw new Meteor.Error(500, "The ‘username’ is already in use."); // prevent two `Meteor.user` records having the same username, which could happen on a multi-servo project, until we change `recentBabelslugs` to a shared mongoDB collection @todo
}
//// Remove the babelslug, as it’s not needed any more.
delete recentBabelslugs[babelslug];
//// Record the username (‘info@loop.coop’ gets a special username).
options.profile = options.profile || {};
options.profile.username = 'info@loop.coop' === options.email ? 'red-cat' : babelslug;
//// Record other registration data.
if (options.profile['you-age-group-code']) { options.profile.agc = options.profile['you-age-group-code']; }
if (options.profile['you-based-in-code']) { options.profile.bic = options.profile['you-based-in-code']; }
if (options.profile['you-hear-about-code']) { options.profile.hac = options.profile['you-hear-about-code']; }
if (options.profile['you-hear-about-text']) { options.profile.hat = options.profile['you-hear-about-text']; }
if (options.profile['you-newsletter-opt']) { options.profile.nlo = options.profile['you-newsletter-opt']; }
//// The registration is valid, so record it as usual. http://docs.meteor.com/#accounts_oncreateuser
user.profile = options.profile;
return user;
});
}
| loopdotcoop/looptopia | you/you.create-user.js | JavaScript | gpl-2.0 | 11,763 |
package org.rebecalang.modeltransformer.ros.timedrebeca;
import java.util.HashMap;
import java.util.Map;
import org.rebecalang.compiler.modelcompiler.corerebeca.CoreRebecaTypeSystem;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.BinaryExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.CastExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.DotPrimary;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.Expression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.FieldDeclaration;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.Literal;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.MsgsrvDeclaration;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.NonDetExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.PlusSubExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.PrimaryExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.ReactiveClassDeclaration;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.RebecInstantiationPrimary;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.RebecaModel;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.TermPrimary;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.TernaryExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.UnaryExpression;
import org.rebecalang.compiler.modelcompiler.corerebeca.objectmodel.VariableDeclarator;
import org.rebecalang.compiler.modelcompiler.timedrebeca.TimedRebecaTypeSystem;
import org.rebecalang.compiler.utils.CodeCompilationException;
import org.rebecalang.compiler.utils.ExceptionContainer;
import org.rebecalang.compiler.utils.Pair;
import org.rebecalang.modeltransformer.StatementTransformingException;
import org.rebecalang.modeltransformer.ros.Utilities;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class TimedRebeca2ROSExpressionTransformer {
public final static String NEW_LINE = "\r\n";
public final static String TAB = "\t";
static Integer i = 0;
private String modelName;
private ReactiveClassDeclaration rc;
private RebecaModel rebecaModel;
private Map <Pair<String, String>, String> methodCalls = new HashMap<Pair<String, String>, String>();
@Autowired
TimedRebecaTypeSystem timedRebecaTypeSystem;
@Autowired
ExceptionContainer exceptionContainer;
public void prepare(String modelName, ReactiveClassDeclaration rc, RebecaModel rebecaModel) {
this.modelName = modelName;
this.rebecaModel = rebecaModel;
this.rc = rc;
}
public String translate(Expression expression) {
String retValue = "";
if (expression instanceof TernaryExpression) {
TernaryExpression tExpression = (TernaryExpression)expression;
Expression condition = tExpression.getCondition();
retValue = "(" + (translate(condition)) + ")";
retValue += " ? " + "(" + translate(tExpression.getLeft()) + ")";
retValue += " : " + "(" + translate(tExpression.getRight()) + ")";
} else if (expression instanceof BinaryExpression) {
BinaryExpression bExpression = (BinaryExpression) expression;
String op = bExpression.getOperator();
retValue = translate(bExpression.getLeft()) +
" " + op + " " + translate(bExpression.getRight());
} else if (expression instanceof UnaryExpression) {
UnaryExpression uExpression = (UnaryExpression) expression;
retValue = uExpression.getOperator() + " " + translate(uExpression.getExpression());
} else if (expression instanceof CastExpression) {
exceptionContainer.addException(new StatementTransformingException("This version of transformer does not supprt " +
"\"cast\" expression.",
expression.getLineNumber(), expression.getCharacter()));
} else if (expression instanceof NonDetExpression) {
NonDetExpression nonDetExpression = (NonDetExpression)expression;
int numberOfChoices = nonDetExpression.getChoices().size();
retValue += nonDetExpression.getType().getTypeName();
retValue += "int numberOfChoices = " + Integer.toString(numberOfChoices) + ";" + NEW_LINE;
retValue += "int choice = " + "rand() % " + Integer.toString(numberOfChoices) + ";" + NEW_LINE;
int index = numberOfChoices;
for (Expression nonDetChoice : ((NonDetExpression)expression).getChoices()) {
retValue += "if (" + "choice ==" + Integer.toString(numberOfChoices - index) + ")" + NEW_LINE;
retValue += ((NonDetExpression)nonDetChoice);
index ++;
}
} else if (expression instanceof Literal) {
Literal lExpression = (Literal) expression;
retValue = lExpression.getLiteralValue();
if (retValue.equals("null"))
retValue = "\"dummy\"";
} else if (expression instanceof PlusSubExpression) {
retValue = translate(((PlusSubExpression)expression).getValue()) +
((PlusSubExpression)expression).getOperator();
} else if (expression instanceof PrimaryExpression) {
PrimaryExpression pExpression = (PrimaryExpression) expression;
retValue = translatePrimaryExpression(pExpression);
}
else {
exceptionContainer.addException(
new StatementTransformingException("Unknown translation rule for expression type "
+ expression.getClass(), expression.getLineNumber(), expression.getCharacter()));
}
return retValue;
}
protected String translatePrimaryExpression(PrimaryExpression pExpression) {
String retValue = "";
if (pExpression instanceof DotPrimary) {
DotPrimary dotPrimary = (DotPrimary) pExpression;
retValue = translateDotPrimary(dotPrimary);
} else if (pExpression instanceof TermPrimary) {
retValue = translatePrimaryTermExpression((TermPrimary) pExpression);
} else if (pExpression instanceof RebecInstantiationPrimary) {
RebecInstantiationPrimary rip = (RebecInstantiationPrimary) pExpression;
boolean hasMoreVariable = false;
String args = "";
try {
ReactiveClassDeclaration rcd = (ReactiveClassDeclaration) timedRebecaTypeSystem.getMetaData(rip.getType());
if (!rcd.getStatevars().isEmpty()) {
args += " , ";
for (FieldDeclaration fd : rcd.getStatevars()) {
for (VariableDeclarator vd : fd.getVariableDeclarators()) {
hasMoreVariable = true;
String typeInit = fd.getType() == CoreRebecaTypeSystem.BOOLEAN_TYPE ? "false" :
fd.getType().canTypeCastTo(CoreRebecaTypeSystem.INT_TYPE) ? "0" : "\"dummy\"";
args += "(" + rcd.getName() + "-" + vd.getVariableName() + " |-> " + typeInit + ") " ;
}
}
}
if (!hasMoreVariable)
args += "emptyValuation";
} catch (CodeCompilationException e) {
e.printStackTrace();
}
args += ",";
hasMoreVariable = false;
String typeName = rip.getType().getTypeName();
for (Expression expression : rip.getBindings()) {
args += " arg(" + translate(expression) + ")";
hasMoreVariable = true;
}
for (Expression expression : rip.getArguments()) {
args += " arg(" + translate(expression) + ")";
hasMoreVariable = true;
}
if (!hasMoreVariable)
args += "noArg";
retValue = " new (" + typeName + args + ")";
} else {
exceptionContainer.addException(new StatementTransformingException("Unknown translation rule for initializer type "
+ pExpression.getClass(), pExpression.getLineNumber(), pExpression.getCharacter()));
}
return retValue;
}
private String translateDotPrimary(DotPrimary dotPrimary) {
String retValue = "";
if (!(dotPrimary.getLeft() instanceof TermPrimary) || !(dotPrimary.getRight() instanceof TermPrimary)) {
exceptionContainer.addException(new StatementTransformingException("This version of transformer does not supprt " +
"nested record access expression.",
dotPrimary.getLineNumber(), dotPrimary.getCharacter()));
} else {
// TODO: Modified by Ehsan as the return vlaue type of message servers is always set to MSGSRV_TYPE
// if(TypesUtilities.getInstance().getSuperType(dotPrimary.getRight().getType()) == TypesUtilities.MSGSRV_TYPE) {
if(dotPrimary.getRight().getType() == CoreRebecaTypeSystem.MSGSRV_TYPE) {
retValue = mapToROSPublishing(dotPrimary);
}
}
return retValue;
}
private String mapToROSPublishing(DotPrimary dotPrimary) {
String retValue = "";
/* map to ROS Publishing */
retValue = modelName + "::" + ((TermPrimary)dotPrimary.getRight()).getName()
+ " " + "pubMsg" + i.toString() + ";" + NEW_LINE;
/* fill the ROS message fields with the arguments to be published */
int argumentIndex = 0;
for (Expression expression : ((TermPrimary)dotPrimary.getRight()).getParentSuffixPrimary().getArguments()) {
ReactiveClassDeclaration toClass = null;
TermPrimary toRebec = (TermPrimary)dotPrimary.getLeft();
toClass = Utilities.findKnownReactiveClass(rc, toRebec.getName(), rebecaModel);
String toMsgsrvName = ((TermPrimary)dotPrimary.getRight()).getName();
MsgsrvDeclaration toMsgsrv = Utilities.findTheMsgsrv(toClass, toMsgsrvName);
String argumentName = toMsgsrv.getFormalParameters().get(argumentIndex).getName();
retValue += "pubMsg" + i.toString() + "." + argumentName + " = " + translate(expression) + ";" + NEW_LINE;
argumentIndex ++;
}
retValue += "pubMsg" + i.toString() + "." + "sender" + "=" + "sender" + ";" + NEW_LINE;
retValue += ((TermPrimary) dotPrimary.getLeft()).getName() + "_" + ((TermPrimary)dotPrimary.getRight()).getName() + "_pub"
+ "." + "publish(" + "pubMsg" + i.toString() + ")" + ";" + NEW_LINE;
i ++; /* to prevent from repeated names */
/* end of publishing */
/* storing the name of callee rebec and the name of called msgsrv in order to declare publishers */
Pair<String, String> methodCall = new Pair<String, String>(
((TermPrimary)dotPrimary.getLeft()).getName(), ((TermPrimary)dotPrimary.getRight()).getName() );
methodCalls.put(methodCall, "");
//ReactiveClassDeclaration rcd = (ReactiveClassDeclaration) TransformingContext.getInstance().lookupInContext("current-reactive-class");
//retValue = ((TermPrimary) dotPrimary.getLeft()).getName();
//String typeName = TypesUtilities.getTypeName(((TermPrimary) dotPrimary.getLeft()).getType());
//System.out.println(typeName);
return retValue;
}
private String translatePrimaryTermExpression(TermPrimary pExpression) {
String retValue = "";
if(pExpression.getName().equals("assertion") ||
pExpression.getName().equals("after") ||
pExpression.getName().equals("deadline")){
return retValue;
}
if(pExpression.getName().equals("delay"))
retValue += "sleep";
else if(pExpression.getName().equals("sender"))
return "thisMsg.sender";
else
retValue += pExpression.getName();
if( pExpression.getParentSuffixPrimary() != null) {
retValue += "(";
for(Expression argument: pExpression.getParentSuffixPrimary().getArguments()) {
retValue += translate(argument) + ",";
}
if(! pExpression.getParentSuffixPrimary().getArguments().isEmpty()) {
retValue = retValue.substring(0, retValue.length() - 1);
}
retValue += ")";
}
//To support movement in ROS
if (retValue.compareTo("Move(1,0)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if (retValue.compareTo("Move(0,1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if (retValue.compareTo("Move(-1,0)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if (retValue.compareTo("Move(0,-1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if(retValue.compareTo("Move(1,1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if(retValue.compareTo("Move(1,-1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if(retValue.compareTo("Move(-1,1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
else if(retValue.compareTo("Move(-1,-1)")==0)
{
//ROSCode to publish on CM_Vel topic
}
/* to support arrays */
for(Expression ex: pExpression.getIndices()) {
retValue += "[" + translate(ex) + "]";
}
return retValue;
}
public Map <Pair<String, String>, String> getMethodCalls() {
return methodCalls;
}
} | rebeca-lang/org.rebecalang.modeltransformer | src/main/java/org/rebecalang/modeltransformer/ros/timedrebeca/TimedRebeca2ROSExpressionTransformer.java | Java | gpl-2.0 | 12,240 |
/*
* The ManaPlus Client
* Copyright (C) 2013-2015 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "utils/fuzzer.h"
#ifdef USE_FUZZER
#include "client.h"
#include "logger.h"
#include "settings.h"
#include "utils/stringutils.h"
#include "debug.h"
namespace
{
Logger *fuzz = nullptr;
int fuzzRand = 50;
} // namespace
void Fuzzer::init()
{
fuzz = new Logger;
fuzz->setLogFile(settings.localDataDir + "/fuzzer.log");
unsigned int sr = time(nullptr);
fuzz->log("Srand: %u", sr);
srand(sr);
}
bool Fuzzer::conditionTerminate(const char *const name)
{
if ((rand() % 100) <= fuzzRand)
{
fuzz->log("deleted: %s", name);
return true;
}
fuzz->log("passed: %s", name);
return false;
}
#endif
| Rawng/ManaPlus | src/utils/fuzzer.cpp | C++ | gpl-2.0 | 1,441 |
<?php
/**
* HTML attribute filters.
* Most of these functions filter the generic values from the framework found in hoot/functions/attr.php
* Attributes for non-generic structural elements (mostly theme specific) can be loaded in this file.
*
* @package hoot
* @subpackage responsive-brix
* @since responsive-brix 1.0
*/
/* Modify Original Filters from Framework */
add_filter( 'hoot_attr_content', 'hoot_theme_attr_content' );
add_filter( 'hoot_attr_sidebar', 'hoot_theme_attr_sidebar', 10, 2 );
/* New Theme Filters */
add_filter( 'hoot_attr_page_wrapper', 'hoot_theme_attr_page_wrapper' );
add_filter( 'hoot_attr_page_template_content', 'hoot_theme_page_template_content', 10, 2 );
/* Misc Filters */
add_filter( 'hoot_attr_social_icons_icon', 'hoot_theme_attr_social_icons_icon', 10, 2 );
/**
* Modify Main content container of the page attributes.
*
* @since 1.0
* @access public
* @param array $attr
* @return array
*/
function hoot_theme_attr_content( $attr ) {
$layout_class = hoot_main_layout_class( 'content' );
if ( !empty( $layout_class ) ) {
if ( isset( $attr['class'] ) )
$attr['class'] .= ' ' . $layout_class;
else
$attr['class'] = $layout_class;
}
return $attr;
}
/**
* Modify Sidebar attributes.
*
* @since 1.0
* @access public
* @param array $attr
* @param string $context
* @return array
*/
function hoot_theme_attr_sidebar( $attr, $context ) {
if ( !empty( $context ) && $context == 'primary' ) {
$layout_class = hoot_main_layout_class( 'primary-sidebar' );
if ( !empty( $layout_class ) ) {
if ( isset( $attr['class'] ) )
$attr['class'] .= ' ' . $layout_class;
else
$attr['class'] = $layout_class;
}
}
return $attr;
}
/**
* Page wrapper attributes.
*
* @since 1.0
* @access public
* @param array $attr
* @return array
*/
function hoot_theme_attr_page_wrapper( $attr ) {
$site_layout = hoot_get_mod( 'site_layout' );
$attr['class'] = ( $site_layout == 'boxed' ) ? 'grid site-boxed' : 'site-stretch';
$attr['class'] .= ' page-wrapper';
return $attr;
}
/**
* Main content container of the page attributes when a page template is being displayed
*
* @since 1.0
* @access public
* @param array $attr
* @param string $context
* @return array
*/
function hoot_theme_page_template_content( $attr, $context ) {
if ( is_page_template() && $context == 'none' ) {
$attr['id'] = 'content';
$attr['class'] = 'content sidebar-none';
$attr['role'] = 'main';
$attr['itemprop'] = 'mainContentOfPage';
$template_slug = basename( get_page_template(), '.php' );
$attr['class'] .= ' ' . sanitize_html_class( 'content-' . $template_slug );
} elseif ( function_exists( 'hoot_attr_content' ) ) {
// Get page attributes for main content container of a non-template regular page
$attr = apply_filters( "hoot_attr_content", $attr, $context );
}
return $attr;
}
/**
* Social Icons Widget - Icons
*
* @since 2.0
* @access public
* @param array $attr
* @param string $context
* @return array
*/
function hoot_theme_attr_social_icons_icon( $attr, $context ) {
$attr['class'] = 'social-icons-icon';
if ( $context != 'email' )
$attr['target'] = '_blank';
return $attr;
} | BellarmineBTDesigns/mashariki | wp-content/themes/responsive-brix/hoot-theme/attr.php | PHP | gpl-2.0 | 3,197 |
var iconhead={
title:"Icon Heading Shortcode",
id :'oscitas-form-iconhead',
pluginName: 'iconhead',
setRowColors:false
};
(function() {
_create_tinyMCE_options(iconhead,800);
})();
function create_oscitas_iconhead(pluginObj){
if(jQuery(pluginObj.hashId).length){
jQuery(pluginObj.hashId).remove();
}
// creates a form to be displayed everytime the button is clicked
// you should achieve this using AJAX instead of direct html code like this
var iconhead_fa='';
/*if(ebs.ebs_fa_inclusion==1){
iconhead_fa='<h4>Font Awesome</h4><ul name="oscitas-heading-icon_servicebox" class="oscitas-heading-icon">'+ebsfaicons+'</ul>';
}*/
iconhead_fa='<h4>Font Awesome</h4><ul name="oscitas-heading-icon_servicebox" class="oscitas-heading-icon">'+ebsfaicons+'</ul>';
// creates a form to be displayed everytime the button is clicked
// you should achieve this using AJAX instead of direct html code like this
var form = jQuery('<div id="'+pluginObj.id+'" class="oscitas-container" title="'+pluginObj.title+'"><table id="gallery-table" class="form-table">\
<tr>\
<th><label for="oscitas-heading-icon">Select Icon:</label></th>\
<td><div id="click_icon_list" class="oscitas-icon-div"><span id="osc_show_icon"></span><span class="show-drop"></span></div><input type="hidden" id="oscitas-iconhead-icon" value=""><input type="hidden" id="oscitas-iconhead-icontype" value="">\
<div id="osc_show_iconlist" class="oscitas-icon" style="display:none;width:100%"><h4>Glyphicons</h4><ul name="oscitas-heading-icon_servicebox" class="oscitas-heading-icon">'+ebsicons+'</ul>'+iconhead_fa+'</div>\
</td>\
</tr>\
<tr>\
<th><label for="oscitas-iconhead-iconcolor">Icon Color:</label></th>\
<td><input type="text" name="label" id="oscitas-iconhead-iconcolor" class="color" value="" /><br />\
</td>\
</tr>\
<tr>\
<th><label for="oscitas-iconhead-headingtype">Heading Type:</label></th>\
<td><select name="oscitas-iconhead-headingtype" id="oscitas-iconhead-headingtype">\
<option value="h1">H1</option>\
<option value="h2">H2</option>\
<option value="h3">H3</option>\
<option value="h4">H4</option>\
<option value="h5">H5</option>\
<option value="h6">H6</option>\
</select><br />\
</td>\
</tr>\
<tr>\
<th><label for="oscitas-iconhead-heading">Heading:</label></th>\
<td><input type="text" name="oscitas-iconhead-heading" id="oscitas-iconhead-heading" value="Heading"/><br />\
</td>\
</tr>\
<tr>\
<th><label for="oscitas-iconhead-class">Custom Class:</label></th>\
<td><input type="text" name="line" id="oscitas-iconhead-class" value=""/><br />\
</td>\
</tr>\
</table>\
<p class="submit">\
<input type="button" id="oscitas-iconhead-submit" class="button-primary" value="Insert Icon Heading" name="submit" />\
</p>\
</div>');
var table = form.find('table');
jQuery('.glyphicon').css('display','inline');
form.appendTo('body').hide();
form.find('.color').wpColorPicker();
table.find('#click_icon_list').click(function(){
if(!jQuery(this).hasClass('osc_icon_showing')){
jQuery(this).addClass('osc_icon_showing')
table.find('#osc_show_iconlist').show();
} else{
jQuery(this).removeClass('osc_icon_showing')
table.find('#osc_show_iconlist').hide();
}
});
table.find('.oscitas-heading-icon li').click(function(){
var val=jQuery(this).attr('data-value');
var type=jQuery(this).attr('type');
table.find('.oscitas-heading-icon li').removeClass('osc_icon_selected');
jQuery(this).addClass('osc_icon_selected');
table.find('#click_icon_list').removeClass('osc_icon_showing');
table.find('#osc_show_iconlist').hide();
table.find('#osc_show_icon').removeClass().addClass(type).addClass(val);
table.find('#oscitas-iconhead-icon').val(val);
table.find('#oscitas-iconhead-icontype').val(type);
});
// // handles the click event of the submit button
form.find('#oscitas-iconhead-submit').click(function() {
// defines the options and their default values
// again, this is not the most elegant way to do this
// but well, this gets the job done nonetheless
var type=jQuery('#oscitas-iconhead-headingtype').val();
var cusclass='',style='';
if(table.find('#oscitas-iconhead-icon').val()!=''){
style=' style="' + table.find('#oscitas-iconhead-icon').val()+'"' ;
}
if(table.find('#oscitas-iconhead-icontype').val()!=''){
style+=' icontype="' + table.find('#oscitas-iconhead-icontype').val()+'"' ;
}
if(table.find('#oscitas-iconhead-iconcolor').val()!=''){
cusclass+= ' color="'+table.find('#oscitas-iconhead-iconcolor').val()+'"';
}
if(table.find('#oscitas-iconhead-class').val()!=''){
cusclass+= ' class="'+table.find('#oscitas-iconhead-class').val()+'"';
}
var shortcode = '[iconheading type="'+type+'"';
shortcode += style+cusclass ;
shortcode += ']'+table.find('#oscitas-iconhead-heading').val()+'[/iconheading]' ;
// inserts the shortcode into the active editor
tinyMCE.activeEditor.execCommand('mceInsertContent',0 , shortcode);
// closes Dialoguebox
close_dialogue(pluginObj.hashId);
});
}
| wjmendez/easy-bootstrap-shortcodes | shortcode/iconhead/iconhead_plugin.js | JavaScript | gpl-2.0 | 5,742 |
using System;
using System.Threading.Tasks;
using System.Windows.Threading;
using Disp = System.Windows.Threading.Dispatcher;
using Op = System.Windows.Threading.DispatcherOperation;
using DO = System.Windows.Threading.DispatcherObject;
using static System.Array;
namespace AphidUI
{
public static class DispatcherObjectExtension
{
public static void Invoke(this Disp dispatcher, Action action) =>
dispatcher.Invoke(action, Empty<object>());
public static void Sync(this Disp dispatcher, Action action) =>
dispatcher.Invoke(action, Empty<object>());
public static Op BeginInvoke(this Disp dispatcher, Action action, params object[] args) =>
dispatcher.BeginInvoke(action, args);
public static Op Async(this Disp dispatcher, Action action, params object[] args) =>
dispatcher.BeginInvoke(action, args);
public static Task Run(this Disp dispatcher, Action action, params object[] args) =>
dispatcher.BeginInvoke(action, args).Task;
public static TResult Invoke<TResult>(this Disp dispatcher, Func<TResult> action) =>
(TResult)dispatcher.Invoke(action, Empty<object>());
public static TResult Sync<TResult>(this Disp dispatcher, Func<TResult> action) =>
(TResult)dispatcher.Invoke(action, Empty<object>());
public static Op BeginInvoke(this DO @do, Action action, params object[] args) =>
@do.Dispatcher.BeginInvoke(action, args);
public static Op Async(this DO @do, Action action, params object[] args) =>
@do.Dispatcher.BeginInvoke(action, args);
public static Task Run(this DO @do, Action action, params object[] args) =>
@do.BeginInvoke(action, args).Task;
public static Task Run<TArg>(this DO @do, Action<TArg> action, TArg arg0) =>
@do.Dispatcher.BeginInvoke(action, new object[] { arg0 }).Task;
public static void Invoke(this DO @do, Action action) =>
@do.Dispatcher.Invoke(action, Empty<object>());
public static void Sync(this DO @do, Action action) =>
@do.Dispatcher.Invoke(action, Empty<object>());
public static TResult Invoke<TResult>(this DO @do, Func<TResult> action) =>
(TResult)@do.Dispatcher.Invoke(action, Empty<object>());
public static TResult Sync<TResult>(this DO @do, Func<TResult> action) =>
(TResult)@do.Dispatcher.Invoke(action, Empty<object>());
public static DispatcherProcessingDisabled DisableProcessing(this DO @do) =>
@do.Dispatcher.DisableProcessing();
}
}
| John-Leitch/Aphid | AphidUI/DispatcherObjectExtension.cs | C# | gpl-2.0 | 2,708 |
<?php
/**
* @desc Modify from component Media Manager of Joomla
*
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
/**
* Weblinks Weblink Controller
*
* @package Joomla
* @subpackage Weblinks
* @since 1.5
*/
class JaextmanagerControllerFile extends JaextmanagerController
{
/**
* Upload a file
*
* @since 1.5
*/
function upload()
{
global $mainframe;
// Check for request forgeries
JRequest::checkToken( 'request' ) or jexit( 'Invalid Token' );
$file = JRequest::getVar( 'Filedata', '', 'files', 'array' );
$folder = JRequest::getVar( 'folder', '', '', 'path' );
$format = JRequest::getVar( 'format', 'html', '', 'cmd');
$return = JRequest::getVar( 'return-url', null, 'post', 'base64' );
$err = null;
// Set FTP credentials, if given
jimport('joomla.client.helper');
JClientHelper::setCredentialsFromRequest('ftp');
// Make the filename safe
jimport('joomla.filesystem.file');
$file['name'] = JFile::makeSafe($file['name']);
if (isset($file['name'])) {
$filepath = JPath::clean(JA_WORKING_DATA_FOLDER.DS.$folder.DS.strtolower($file['name']));
if (!RepoHelper::canUpload( $file, $err )) {
if ($format == 'json') {
jimport('joomla.error.log');
$log = &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'Invalid: '.$filepath.': '.$err));
header('HTTP/1.0 415 Unsupported Media Type');
jexit('Error. Unsupported Media Type!');
} else {
JError::raiseNotice(100, JText::_($err));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return).'&folder='.$folder);
}
return;
}
}
if (JFile::exists($filepath)) {
if ($format == 'json') {
jimport('joomla.error.log');
$log = &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'File already exists: '.$filepath));
header('HTTP/1.0 409 Conflict');
jexit('Error. File already exists');
} else {
JError::raiseNotice(100, JText::_('Error. File already exists'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return).'&folder='.$folder);
}
return;
}
}
if (!JFile::upload($file['tmp_name'], $filepath)) {
if ($format == 'json') {
jimport('joomla.error.log');
$log = &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'Cannot upload: '.$filepath));
header('HTTP/1.0 400 Bad Request');
jexit('Error. Unable to upload file');
} else {
JError::raiseWarning(100, JText::_('Error. Unable to upload file'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return).'&folder='.$folder);
}
return;
}
} else {
if ($format == 'json') {
jimport('joomla.error.log');
$log = &JLog::getInstance();
$log->addEntry(array('comment' => $folder));
jexit('Upload complete');
} else {
$mainframe->enqueueMessage(JText::_('Upload complete'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return).'&folder='.$folder);
}
return;
}
}
} else {
$mainframe->redirect('index.php', 'Invalid Request', 'error');
}
}
/**
* Deletes paths from the current path
*
* @param string $listFolder The image directory to delete a file from
* @since 1.5
*/
function delete()
{
global $mainframe;
JRequest::checkToken( 'request' ) or jexit( 'Invalid Token' );
// Set FTP credentials, if given
jimport('joomla.client.helper');
JClientHelper::setCredentialsFromRequest('ftp');
// Get some data from the request
$tmpl = JRequest::getCmd( 'tmpl' );
$paths = JRequest::getVar( 'rm', array(), '', 'array' );
$folder = JRequest::getVar( 'folder', '', '', 'path');
// Initialize variables
$msg = array();
$ret = true;
if (count($paths)) {
foreach ($paths as $path)
{
if ($path !== JFile::makeSafe($path)) {
JError::raiseWarning(100, JText::_('Unable to delete:').htmlspecialchars($path, ENT_COMPAT, 'UTF-8').' '.JText::_('WARNFILENAME'));
continue;
}
$fullPath = JPath::clean(JA_WORKING_DATA_FOLDER.DS.$folder.DS.$path);
if (is_file($fullPath)) {
$ret |= !JFile::delete($fullPath);
} else if (is_dir($fullPath)) {
$files = JFolder::files($fullPath, '.', true);
$canDelete = true;
foreach ($files as $file) {
if ($file != 'index.html') {
$canDelete = false;
}
}
if ($canDelete) {
$ret |= !JFolder::delete($fullPath);
} else {
//allow remove folder not empty on local repository
$ret2 = JFolder::delete($fullPath);
$ret |= !$ret2;
if($ret2 == false) {
JError::raiseWarning(100, JText::_('Unable to delete:').$fullPath);
}
}
}
}
}
if ($ret) {
JError::raiseNotice(200, JText::_('Successfully delete a seleted item(s).'));
}
if ($tmpl == 'component') {
// We are inside the iframe
$mainframe->redirect('index.php?option='.JACOMPONENT.'&view=repolist&folder='.$folder.'&tmpl=component');
} else {
$mainframe->redirect('index.php?option='.JACOMPONENT.'&view=repolist&folder='.$folder);
}
}
function download()
{
global $mainframe;
JRequest::checkToken( 'request' ) or jexit( 'Invalid Token' );
// Set FTP credentials, if given
jimport('joomla.client.helper');
JClientHelper::setCredentialsFromRequest('ftp');
// Get some data from the request
$tmpl = JRequest::getCmd( 'tmpl' );
$paths = JRequest::getVar( 'rm', array(), '', 'array' );
$folder = JRequest::getVar( 'folder', '', '', 'path');
// Initialize variables
$msg = array();
$ret = true;
if (count($paths)) {
foreach ($paths as $path)
{
$fullPath = JPath::clean(JA_WORKING_DATA_FOLDER.DS.$folder.DS.$path);
if(is_file($fullPath) && JFile::getExt($fullPath) == 'zip') {
// Set headers
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=$fullPath");
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
// Read the file from disk
readfile($fullPath);
exit();
}
}
}
if ($tmpl == 'component') {
// We are inside the iframe
$mainframe->redirect('index.php?option='.JACOMPONENT.'&view=repolist&folder='.$folder.'&tmpl=component');
} else {
$mainframe->redirect('index.php?option='.JACOMPONENT.'&view=repolist&folder='.$folder);
}
}
}
| rlee1962/diylegalcenter | administrator/components/com_jaextmanager/controllers/file.php | PHP | gpl-2.0 | 6,634 |
<?php
/**
* @version $Id: helper.php 20228 2011-01-10 00:52:54Z eddieajau $
* @package Joomla.Site
* @subpackage mod_stats
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
/**
* @package Joomla.Site
* @subpackage mod_stats
* @since 1.5
*/
class modStatsHelper
{
static function &getList(&$params)
{
$app = JFactory::getApplication();
$db = JFactory::getDbo();
$rows = array();
$query = $db->getQuery(true);
$serverinfo = $params->get('serverinfo');
$siteinfo = $params->get('siteinfo');
$counter = $params->get('counter');
$increase = $params->get('increase');
$i = 0;
if ($serverinfo) {
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_OS');
$rows[$i]->data = substr(php_uname(), 0, 7);
$i++;
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_PHP');
$rows[$i]->data = phpversion();
$i++;
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_MYSQL');
$rows[$i]->data = $db->getVersion();
$i++;
$rows[$i] = new stdClass;
$rows[$i]->title = JTEXT::_('MOD_STATS_TIME');
$rows[$i]->data = JHTML::_('date','now', 'H:i');
$i++;
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_CACHING');
$rows[$i]->data = $app->getCfg('caching') ? JText::_('JENABLED'):JText::_('JDISABLED');
$i++;
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_GZIP');
$rows[$i]->data = $app->getCfg('gzip') ? JText::_('JENABLED'):JText::_('JDISABLED');
$i++;
}
if ($siteinfo) {
$query->select('COUNT(id) AS count_users');
$query->from('#__users');
$db->setQuery($query);
$users = $db->loadResult();
$query->clear();
$query->select('COUNT(id) AS count_items');
$query->from('#__content');
$query->where('state = 1');
$db->setQuery($query);
$items = $db->loadResult();
$query->clear();
$query->select('COUNT(id) AS count_links ');
$query->from('#__weblinks');
$query->where('state = 1');
$db->setQuery($query);
$links = $db->loadResult();
if ($users) {
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_USERS');
$rows[$i]->data = $users;
$i++;
}
if ($items) {
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_ARTICLES');
$rows[$i]->data = $items;
$i++;
}
if ($links) {
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_WEBLINKS');
$rows[$i]->data = $links;
$i++;
}
}
if ($counter) {
$query->clear();
$query->select('SUM(hits) AS count_hits');
$query->from('#__content');
$query->where('state = 1');
$db->setQuery($query);
$hits = $db->loadResult();
if ($hits) {
$rows[$i] = new stdClass;
$rows[$i]->title = JText::_('MOD_STATS_ARTICLES_VIEW_HITS');
$rows[$i]->data = $hits + $increase;
$i++;
}
}
return $rows;
}
} | emelynelisboa/studiosummo | modules/mod_stats/helper.php | PHP | gpl-2.0 | 3,177 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pt.jkaiui.core.messages;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import pt.jkaiui.core.KaiString;
import pt.jkaiui.manager.I_InMessage;
/**
*
* @author yuu@akron
*/
public class ConnectedArena extends Message implements I_InMessage {
public ConnectedArena() {
}
public Message parse(String s) {
Pattern p = Pattern.compile("KAI_CLIENT_CONNECTED_ARENA;");
Matcher m = p.matcher(s);
if (m.matches()){
ConnectedArena msg = new ConnectedArena();
return msg;
}
return null;
}
}
| yuuakron/jKaiUI_Custom | src/pt/jkaiui/core/messages/ConnectedArena.java | Java | gpl-2.0 | 731 |
#ifndef NO_OGL
//OpenGL library
#pragma comment( lib, "OpenGL32" )
// MFC
#include "stdafx.h"
//GUI
#include "MainWnd.h"
#include "FullscreenSettings.h"
// Internals
#include "../System.h"
#include "../gba/GBA.h"
#include "../gba/Globals.h"
#include "../Util.h"
#include "../gb/gbGlobals.h"
#include "../common/memgzio.h"
//Math
#include <cmath>
#include <sys/stat.h>
// OpenGL
#include <gl/GL.h> // main include file
#include <GL/glu.h>
#include "glFont.h"
#include <gl/glext.h>
typedef BOOL (APIENTRY *PFNWGLSWAPINTERVALFARPROC)( int );
extern int Init_2xSaI(u32);
extern void winlog(const char *,...);
extern int systemSpeed;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#ifdef MMX
extern "C" bool cpu_mmx;
extern bool detectMMX();
#endif
class OpenGLDisplay : public IDisplay {
private:
HDC hDC;
HGLRC hRC;
GLuint texture;
int width,height;
float size;
u8 *filterData;
RECT destRect;
bool failed;
GLFONT font;
int pitch;
u8 *data;
DWORD currentAdapter;
void initializeMatrices( int w, int h );
bool initializeTexture( int w, int h );
void updateFiltering( int value );
void setVSync( int interval = 1 );
void calculateDestRect( int w, int h );
void initializeFont();
public:
OpenGLDisplay();
virtual ~OpenGLDisplay();
virtual DISPLAY_TYPE getType() { return OPENGL; };
virtual void EnableOpenGL();
virtual void DisableOpenGL();
virtual bool initialize();
virtual void cleanup();
virtual void clear();
virtual void render();
virtual bool changeRenderSize( int w, int h );
virtual void resize( int w, int h );
virtual void setOption( const char *, int );
virtual bool selectFullScreenMode( VIDEO_MODE &mode );
};
#include "gzglfont.h"
//Load GL font
void OpenGLDisplay::initializeFont()
{
int ret;
z_stream strm;
char *buf = (char *)malloc(GZGLFONT_SIZE);
/* allocate inflate state */
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
strm.avail_in = 0;
strm.next_in = Z_NULL;
ret = inflateInit2(&strm, 16+MAX_WBITS);
if (ret != Z_OK)
return;
strm.avail_in = sizeof(gzglfont);
strm.next_in = gzglfont;
strm.avail_out = GZGLFONT_SIZE;
strm.next_out = (Bytef *)buf;
ret = inflate(&strm, Z_NO_FLUSH);
if (ret==Z_STREAM_END)
{
glGenTextures( 1, &texture );
glFontCreate(&font, (char *)buf, texture);
texture=0;
}
free(buf);
(void)inflateEnd(&strm);
}
//OpenGL class constructor
OpenGLDisplay::OpenGLDisplay()
{
hDC = NULL;
hRC = NULL;
texture = 0;
width = 0;
height = 0;
size = 0.0f;
failed = false;
filterData = NULL;
currentAdapter = 0;
}
//OpenGL class destroyer
OpenGLDisplay::~OpenGLDisplay()
{
cleanup();
}
//Set OpenGL PFD and contexts
void OpenGLDisplay::EnableOpenGL()
{
PIXELFORMATDESCRIPTOR pfd;
// get the device context (DC)
hDC = GetDC( theApp.m_pMainWnd->GetSafeHwnd() );
// set the pixel format for the DC
ZeroMemory( &pfd, sizeof( pfd ) );
pfd.nSize = sizeof( pfd );
pfd.nVersion = 1;
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = 24;
pfd.cDepthBits = 16;
pfd.iLayerType = PFD_MAIN_PLANE;
SetPixelFormat (GetDC (theApp.m_pMainWnd->GetSafeHwnd()), ChoosePixelFormat ( GetDC (theApp.m_pMainWnd->GetSafeHwnd()), &pfd), &pfd);
wglMakeCurrent (GetDC (theApp.m_pMainWnd->GetSafeHwnd()), wglCreateContext(GetDC (theApp.m_pMainWnd->GetSafeHwnd()) ) );
}
//Remove contexts
void OpenGLDisplay::DisableOpenGL()
{
wglMakeCurrent( NULL, NULL );
wglDeleteContext( hRC );
ReleaseDC( theApp.m_pMainWnd->GetSafeHwnd(), hDC );
}
//Remove resources used
void OpenGLDisplay::cleanup()
{
if(texture != 0) {
glDeleteTextures(1, &texture);
texture = 0;
}
DisableOpenGL();
if(filterData) {
free(filterData);
filterData = NULL;
}
width = 0;
height = 0;
size = 0.0f;
DISPLAY_DEVICE dev;
ZeroMemory( &dev, sizeof(dev) );
dev.cb = sizeof(dev);
EnumDisplayDevices( NULL, currentAdapter, &dev, 0 );
// restore default video mode
ChangeDisplaySettingsEx( dev.DeviceName, NULL, NULL, 0, NULL );
}
//init renderer
bool OpenGLDisplay::initialize()
{
switch( theApp.cartridgeType )
{
case IMAGE_GBA:
theApp.sizeX = 240;
theApp.sizeY = 160;
break;
case IMAGE_GB:
if ( gbBorderOn )
{
theApp.sizeX = 256;
theApp.sizeY = 224;
}
else
{
theApp.sizeX = 160;
theApp.sizeY = 144;
}
break;
}
switch(theApp.videoOption)
{
case VIDEO_1X:
theApp.surfaceSizeX = theApp.sizeX;
theApp.surfaceSizeY = theApp.sizeY;
break;
case VIDEO_2X:
theApp.surfaceSizeX = theApp.sizeX * 2;
theApp.surfaceSizeY = theApp.sizeY * 2;
break;
case VIDEO_3X:
theApp.surfaceSizeX = theApp.sizeX * 3;
theApp.surfaceSizeY = theApp.sizeY * 3;
break;
case VIDEO_4X:
theApp.surfaceSizeX = theApp.sizeX * 4;
theApp.surfaceSizeY = theApp.sizeY * 4;
break;
case VIDEO_5X:
theApp.surfaceSizeX = theApp.sizeX * 5;
theApp.surfaceSizeY = theApp.sizeY * 5;
break;
case VIDEO_6X:
theApp.surfaceSizeX = theApp.sizeX * 6;
theApp.surfaceSizeY = theApp.sizeY * 6;
break;
case VIDEO_320x240:
case VIDEO_640x480:
case VIDEO_800x600:
case VIDEO_1024x768:
case VIDEO_1280x1024:
case VIDEO_OTHER:
{
if( theApp.fullScreenStretch ) {
theApp.surfaceSizeX = theApp.fsWidth;
theApp.surfaceSizeY = theApp.fsHeight;
} else {
float scaleX = (float)theApp.fsWidth / (float)theApp.sizeX;
float scaleY = (float)theApp.fsHeight / (float)theApp.sizeY;
float min = ( scaleX < scaleY ) ? scaleX : scaleY;
if( theApp.maxScale )
min = ( min > (float)theApp.maxScale ) ? (float)theApp.maxScale : min;
theApp.surfaceSizeX = (int)((float)theApp.sizeX * min);
theApp.surfaceSizeY = (int)((float)theApp.sizeY * min);
}
}
break;
}
theApp.rect.left = 0;
theApp.rect.top = 0;
theApp.rect.right = theApp.sizeX;
theApp.rect.bottom = theApp.sizeY;
theApp.dest.left = 0;
theApp.dest.top = 0;
theApp.dest.right = theApp.surfaceSizeX;
theApp.dest.bottom = theApp.surfaceSizeY;
DWORD style = WS_POPUP | WS_VISIBLE;
DWORD styleEx = 0;
if( theApp.videoOption <= VIDEO_6X )
style |= WS_OVERLAPPEDWINDOW;
else
styleEx = 0;
if( theApp.videoOption <= VIDEO_6X )
AdjustWindowRectEx( &theApp.dest, style, TRUE, styleEx );
else
AdjustWindowRectEx( &theApp.dest, style, FALSE, styleEx );
int winSizeX = theApp.dest.right - theApp.dest.left;
int winSizeY = theApp.dest.bottom - theApp.dest.top;
int x = 0, y = 0;
if( theApp.videoOption <= VIDEO_6X ) {
x = theApp.windowPositionX;
y = theApp.windowPositionY;
} else {
winSizeX = theApp.fsWidth;
winSizeY = theApp.fsHeight;
}
theApp.updateMenuBar();
theApp.adjustDestRect();
currentAdapter = theApp.fsAdapter;
DISPLAY_DEVICE dev;
ZeroMemory( &dev, sizeof(dev) );
dev.cb = sizeof(dev);
EnumDisplayDevices( NULL, currentAdapter, &dev, 0 );
if( theApp.videoOption >= VIDEO_320x240 ) {
// enter full screen mode
DEVMODE mode;
ZeroMemory( &mode, sizeof(mode) );
mode.dmSize = sizeof(mode);
mode.dmBitsPerPel = theApp.fsColorDepth;
mode.dmPelsWidth = theApp.fsWidth;
mode.dmPelsHeight = theApp.fsHeight;
mode.dmDisplayFrequency = theApp.fsFrequency;
mode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY;
LONG ret = ChangeDisplaySettingsEx( dev.DeviceName, &mode, NULL, CDS_FULLSCREEN, NULL );
if( ret != DISP_CHANGE_SUCCESSFUL ) {
systemMessage( 0, "Can not change display mode!" );
failed = true;
}
} else {
// restore default mode
ChangeDisplaySettingsEx( dev.DeviceName, NULL, NULL, 0, NULL );
}
EnableOpenGL();
initializeFont();
glPushAttrib( GL_ENABLE_BIT );
glDisable( GL_DEPTH_TEST );
glDisable( GL_CULL_FACE );
glEnable( GL_TEXTURE_2D );
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
initializeMatrices( theApp.surfaceSizeX, theApp.surfaceSizeY );
setVSync( theApp.vsync );
#ifdef MMX
if(!theApp.disableMMX)
cpu_mmx = theApp.detectMMX();
else
cpu_mmx = 0;
#endif
systemRedShift = 3;
systemGreenShift = 11;
systemBlueShift = 19;
systemColorDepth = 32;
theApp.fsColorDepth = 32;
Init_2xSaI(32);
utilUpdateSystemColorMaps(theApp.cartridgeType == IMAGE_GBA && gbColorOption == 1);
theApp.updateFilter();
theApp.updateIFB();
pitch = theApp.filterWidth * (systemColorDepth>>3) + 4;
data = pix + ( theApp.sizeX + 1 ) * 4;
if(failed)
return false;
return true;
}
//clear colour buffer
void OpenGLDisplay::clear()
{
glClearColor(0.0,0.0,0.0,1.0);
glClear( GL_COLOR_BUFFER_BIT );
}
//main render func
void OpenGLDisplay::render()
{
clear();
pitch = theApp.filterWidth * (systemColorDepth>>3) + 4;
data = pix + ( theApp.sizeX + 1 ) * 4;
// apply pixel filter
if(theApp.filterFunction) {
data = filterData;
theApp.filterFunction(
pix + pitch,
pitch,
(u8*)theApp.delta,
(u8*)filterData,
width * 4 ,
theApp.filterWidth,
theApp.filterHeight);
}
// Texturemap complete texture to surface
// so we have free scaling and antialiasing
if( theApp.filterFunction ) {
glPixelStorei( GL_UNPACK_ROW_LENGTH, width);
} else {
glPixelStorei( GL_UNPACK_ROW_LENGTH, theApp.sizeX + 1 );
}
glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_RGBA,GL_UNSIGNED_BYTE,data );
glBegin( GL_QUADS );
glTexCoord2f( 0.0f, 0.0f );
glVertex3i( 0, 0, 0 );
glTexCoord2f( (float)(width) / size, 0.0f );
glVertex3i( theApp.surfaceSizeX, 0, 0 );
glTexCoord2f( (float)(width) / size, (float)(height) / size );
glVertex3i( theApp.surfaceSizeX, theApp.surfaceSizeY, 0 );
glTexCoord2f( 0.0f, (float)(height) / size );
glVertex3i( 0, theApp.surfaceSizeY, 0 );
glEnd();
if( theApp.showSpeed ) { // && ( theApp.videoOption > VIDEO_6X ) ) {
char buffer[30];
if( theApp.showSpeed == 1 ) {
sprintf( buffer, "%3d%%", systemSpeed );
} else {
sprintf( buffer, "%3d%%(%d, %d fps)", systemSpeed, systemFrameSkip, theApp.showRenderedFrames );
}
glFontBegin(&font);
glPushMatrix();
float fontscale = (float)theApp.surfaceSizeX / 100.0f;
glScalef(fontscale, fontscale, fontscale);
glColor4f(1.0f, 0.25f, 0.25f, 1.0f);
glFontTextOut(buffer, (theApp.surfaceSizeX-(strlen(buffer)*11))/(fontscale*2), (theApp.surfaceSizeY-20)/fontscale, 0);
glPopMatrix();
glFontEnd();
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glBindTexture( GL_TEXTURE_2D, texture );
}
if( theApp.screenMessage ) {
if( ( ( GetTickCount() - theApp.screenMessageTime ) < 3000 ) && !theApp.disableStatusMessage ) {
glFontBegin(&font);
glPushMatrix();
float fontscale = (float)theApp.surfaceSizeX / 100.0f;
glScalef(fontscale, fontscale, fontscale);
glColor4f(1.0f, 0.25f, 0.25f, 1.0f);
glFontTextOut((char *)((const char *)theApp.screenMessageBuffer), (theApp.surfaceSizeX-(theApp.screenMessageBuffer.GetLength()*11))/(fontscale*2), (theApp.surfaceSizeY-40)/fontscale, 0);
glPopMatrix();
glFontEnd();
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glBindTexture( GL_TEXTURE_2D, texture );
} else {
theApp.screenMessage = false;
}
}
glFlush();
SwapBuffers( hDC );
// since OpenGL draws on the back buffer,
// we have to swap it to the front buffer to see the content
}
//resize screen
void OpenGLDisplay::resize( int w, int h )
{
initializeMatrices( w, h );
}
//update filtering methods
void OpenGLDisplay::updateFiltering( int value )
{
switch( value )
{
case 0:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
break;
case 1:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
break;
}
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );
}
//init projection matrixes and viewports
void OpenGLDisplay::initializeMatrices( int w, int h )
{
if( theApp.fullScreenStretch ) {
glViewport( 0, 0, w, h );
} else {
calculateDestRect( w, h );
glViewport(
destRect.left,
destRect.top,
destRect.right - destRect.left,
destRect.bottom - destRect.top );
}
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glOrtho(
/* left */ 1.0f,
/* right */ (GLdouble)(w - 1),
/* bottom */ (GLdouble)(h - 1),
/* top */ 1.0f,
0.0f,
1.0f );
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
//init font texture
bool OpenGLDisplay::initializeTexture( int w, int h )
{
// size = 2^n
// w = 24 > size = 256 = 2^8
// w = 255 > size = 256 = 2^8
// w = 256 > size = 512 = 2^9
// w = 300 > size = 512 = 2^9
// OpenGL textures have to be square and a power of 2
// We could use methods that allow tex's to not be powers of two
// but that requires extra OGL extensions
float n1 = log10( (float)w ) / log10( 2.0f );
float n2 = log10( (float)h ) / log10( 2.0f );
float n = ( n1 > n2 ) ? n1 : n2;
if( ((float)((int)n)) != n ) {
// round up
n = ((float)((int)n)) + 1.0f;
}
size = pow( 2.0f, n );
glGenTextures( 1, &texture );
glBindTexture( GL_TEXTURE_2D, texture );
updateFiltering( theApp.glFilter );
glTexImage2D(
GL_TEXTURE_2D,
0,
GL_RGBA,
(GLsizei)size,
(GLsizei)size,
0,
GL_RGBA,
GL_UNSIGNED_BYTE,
NULL );
width = w;
height = h;
//return ( glGetError() == GL_NO_ERROR) ? true : false;
// Workaround: We usually get GL_INVALID_VALUE, but somehow it works nevertheless
// In consequence, we must not treat it as an error or else the app behaves as if an error occured.
// This in the end results in theApp->input not being created = no input when switching from D3D to OGL
return true;
}
//turn vsync on or off
void OpenGLDisplay::setVSync( int interval )
{
const char *extensions = (const char *)glGetString( GL_EXTENSIONS );
if( strstr( extensions, "WGL_EXT_swap_control" ) == 0 ) {
winlog( "Error: WGL_EXT_swap_control extension not supported on your computer.\n" );
return;
} else {
PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = NULL;
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALFARPROC)wglGetProcAddress( "wglSwapIntervalEXT" );
if( wglSwapIntervalEXT ) {
wglSwapIntervalEXT( interval );
}
}
}
//change render size for fonts and filter data
bool OpenGLDisplay::changeRenderSize( int w, int h )
{
if( (width != w) || (height != h) ) {
if( texture != 0 ) {
glDeleteTextures( 1, &texture );
texture = 0;
}
if( !initializeTexture( w, h ) ) {
failed = true;
return false;
}
if (filterData)
free(filterData);
filterData = (u8 *)malloc(4*w*h);
}
return true;
}
//calculate RECTs
void OpenGLDisplay::calculateDestRect( int w, int h )
{
float scaleX = (float)w / (float)width;
float scaleY = (float)h / (float)height;
float min = (scaleX < scaleY) ? scaleX : scaleY;
if( theApp.maxScale && (min > theApp.maxScale) ) {
min = (float)theApp.maxScale;
}
destRect.left = 0;
destRect.top = 0;
destRect.right = (LONG)(width * min);
destRect.bottom = (LONG)(height * min);
if( destRect.right != w ) {
LONG diff = (w - destRect.right) / 2;
destRect.left += diff;
destRect.right += diff;
}
if( destRect.bottom != h ) {
LONG diff = (h - destRect.bottom) / 2;
destRect.top += diff;
destRect.bottom += diff;
}
}
//config options
void OpenGLDisplay::setOption( const char *option, int value )
{
if( !_tcscmp( option, _T("vsync") ) ) {
setVSync( value );
}
if( !_tcscmp( option, _T("glFilter") ) ) {
updateFiltering( value );
}
if( !_tcscmp( option, _T("maxScale") ) ) {
initializeMatrices( theApp.dest.right-theApp.dest.left, theApp.dest.bottom-theApp.dest.top );
}
if( !_tcscmp( option, _T("fullScreenStretch") ) ) {
initializeMatrices( theApp.dest.right-theApp.dest.left, theApp.dest.bottom-theApp.dest.top );
}
}
//set fullscreen mode
bool OpenGLDisplay::selectFullScreenMode( VIDEO_MODE &mode )
{
FullscreenSettings dlg;
dlg.setAPI( this->getType() );
INT_PTR ret = dlg.DoModal();
if( ret == IDOK ) {
mode.adapter = dlg.m_device;
switch( dlg.m_colorDepth )
{
case 30:
// TODO: support
return false;
break;
case 24:
mode.bitDepth = 32;
break;
case 16:
case 15:
mode.bitDepth = 16;
break;
}
mode.width = dlg.m_width;
mode.height = dlg.m_height;
mode.frequency = dlg.m_refreshRate;
return true;
} else {
return false;
}
}
IDisplay *newOpenGLDisplay()
{
return new OpenGLDisplay();
}
#endif // #ifndef NO_OGL
| wowzaman12/vba | trunk/src/win32/OpenGL.cpp | C++ | gpl-2.0 | 16,390 |
<?php
$consumer_key = $_GET['1'];
$consumer_secret = $_GET['2'];
$oauth_access_token = $_GET['3'];
$oauth_access_token_secret = $_GET['4'];
switch($_GET['url'])
{
case 'timeline':
$rest = 'statuses/user_timeline' ;
$params = Array('count' => $_GET['count'], 'include_rts' => $_GET['include_rts'], 'exclude_replies' => $_GET['exclude_replies'], 'screen_name' => $_GET['screen_name']);
break;
case 'search':
$rest = "search/tweets";
$params = Array('q' => $_GET['q'], 'count' => $_GET['count'], 'include_rts' => $_GET['include_rts']);
break;
case 'list':
$rest = "lists/statuses";
$params = Array('list_id' => $_GET['list_id'], 'count' => $_GET['count'], 'include_rts' => $_GET['include_rts']);
break;
default:
$rest = 'statuses/user_timeline' ;
$params = Array('count' => '20');
break;
}
$auth = new dcsnt_TwitterOAuth($consumer_key,$consumer_secret,$oauth_access_token,$oauth_access_token_secret);
$get = $auth->get( $rest, $params );
if( ! $get ) {
echo 'An error occurs while reading the feed, please check your connection or settings';
}
if( isset( $get->errors ) ) {
// foreach( $get->errors as $key => $val ) echo $val;
echo 'errors';
//print_r($get->errors);
} else {
echo $get;
}
/*
* Abraham Williams (abraham@abrah.am) http://abrah.am
*
* The first PHP Library to support OAuth for Twitter's REST API.
*/
/**
* Twitter OAuth class
*/
class dcsnt_TwitterOAuth {
/* Contains the last HTTP status code returned. */
public $http_code;
/* Contains the last API call. */
public $url;
/* Set up the API root URL. */
public $host = "https://api.twitter.com/1.1/";
/* Set timeout default. */
public $timeout = 30;
/* Set connect timeout. */
public $connecttimeout = 30;
/* Verify SSL Cert. */
public $ssl_verifypeer = FALSE;
/* Respons format. */
public $format = 'json';
/* Decode returned json data. */
public $decode_json = false;
/* Contains the last HTTP headers returned. */
public $http_info;
/* Set the useragnet. */
public $useragent = 'TwitterOAuth v0.2.0-beta2';
/* Immediately retry the API call if the response was not successful. */
//public $retry = TRUE;
/**
* Set API URLS
*/
function accessTokenURL() { return 'https://api.twitter.com/oauth/access_token'; }
function authenticateURL() { return 'https://api.twitter.com/oauth/authenticate'; }
function authorizeURL() { return 'https://api.twitter.com/oauth/authorize'; }
function requestTokenURL() { return 'https://api.twitter.com/oauth/request_token'; }
/**
* Debug helpers
*/
function lastStatusCode() { return $this->http_status; }
function lastAPICall() { return $this->last_api_call; }
/**
* construct TwitterOAuth object
*/
function __construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL) {
$this->sha1_method = new dcsnt_OAuthSignatureMethod_HMAC_SHA1();
$this->consumer = new dcsnt_OAuthConsumer($consumer_key, $consumer_secret);
if (!empty($oauth_token) && !empty($oauth_token_secret)) {
$this->token = new dcsnt_OAuthConsumer($oauth_token, $oauth_token_secret);
} else {
$this->token = NULL;
}
}
/**
* Get a request_token from Twitter
*
* @returns a key/value array containing oauth_token and oauth_token_secret
*/
function getRequestToken($oauth_callback = NULL) {
$parameters = array();
if (!empty($oauth_callback)) {
$parameters['oauth_callback'] = $oauth_callback;
}
$request = $this->dcsnt_OAuthRequest($this->requestTokenURL(), 'GET', $parameters);
$token = dcsnt_OAuthUtil::parse_parameters($request);
$this->token = new dcsnt_OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
return $token;
}
/**
* Get the authorize URL
*
* @returns a string
*/
function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
if (is_array($token)) {
$token = $token['oauth_token'];
}
if (empty($sign_in_with_twitter)) {
return $this->authorizeURL() . "?oauth_token={$token}";
} else {
return $this->authenticateURL() . "?oauth_token={$token}";
}
}
/**
* Exchange request token and secret for an access token and
* secret, to sign API calls.
*
* @returns array("oauth_token" => "the-access-token",
* "oauth_token_secret" => "the-access-secret",
* "user_id" => "9436992",
* "screen_name" => "abraham")
*/
function getAccessToken($oauth_verifier = FALSE) {
$parameters = array();
if (!empty($oauth_verifier)) {
$parameters['oauth_verifier'] = $oauth_verifier;
}
$request = $this->dcsnt_OAuthRequest($this->accessTokenURL(), 'GET', $parameters);
$token = dcsnt_OAuthUtil::parse_parameters($request);
$this->token = new dcsnt_OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
return $token;
}
/**
* One time exchange of username and password for access token and secret.
*
* @returns array("oauth_token" => "the-access-token",
* "oauth_token_secret" => "the-access-secret",
* "user_id" => "9436992",
* "screen_name" => "abraham",
* "x_auth_expires" => "0")
*/
function getXAuthToken($username, $password) {
$parameters = array();
$parameters['x_auth_username'] = $username;
$parameters['x_auth_password'] = $password;
$parameters['x_auth_mode'] = 'client_auth';
$request = $this->dcsnt_OAuthRequest($this->accessTokenURL(), 'POST', $parameters);
$token = dcsnt_OAuthUtil::parse_parameters($request);
$this->token = new dcsnt_OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
return $token;
}
/**
* GET wrapper for dcsnt_OAuthRequest.
*/
function get($url, $parameters = array()) {
$response = $this->dcsnt_OAuthRequest($url, 'GET', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}
/**
* POST wrapper for dcsnt_OAuthRequest.
*/
function post($url, $parameters = array()) {
$response = $this->dcsnt_OAuthRequest($url, 'POST', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}
/**
* DELETE wrapper for oAuthReqeust.
*/
function delete($url, $parameters = array()) {
$response = $this->dcsnt_OAuthRequest($url, 'DELETE', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}
/**
* Format and sign an OAuth / API request
*/
function dcsnt_OAuthRequest($url, $method, $parameters) {
if (strrpos($url, 'https://') !== 0 && strrpos($url, 'http://') !== 0) {
$url = "{$this->host}{$url}.{$this->format}";
}
$request = dcsnt_OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters);
$request->sign_request($this->sha1_method, $this->consumer, $this->token);
switch ($method) {
case 'GET':
return $this->http($request->to_url(), 'GET');
default:
return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata());
}
}
/**
* Make an HTTP request
*
* @return API results
*/
function http($url, $method, $postfields = NULL) {
$this->http_info = array();
$ci = curl_init();
/* Curl settings */
curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);
curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);
curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);
curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ci, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);
curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));
curl_setopt($ci, CURLOPT_HEADER, FALSE);
switch ($method) {
case 'POST':
curl_setopt($ci, CURLOPT_POST, TRUE);
if (!empty($postfields)) {
curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);
}
break;
case 'DELETE':
curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');
if (!empty($postfields)) {
$url = "{$url}?{$postfields}";
}
}
curl_setopt($ci, CURLOPT_URL, $url);
$response = curl_exec($ci);
$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);
$this->http_info = array_merge($this->http_info, curl_getinfo($ci));
$this->url = $url;
curl_close ($ci);
return $response;
}
/**
* Get the header info to store.
*/
function getHeader($ch, $header) {
$i = strpos($header, ':');
if (!empty($i)) {
$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));
$value = trim(substr($header, $i + 2));
$this->http_header[$key] = $value;
}
return strlen($header);
}
}
// vim: foldmethod=marker
/* Generic exception class
*/
class dcsnt_OAuthException extends Exception {
// pass
}
class dcsnt_OAuthConsumer {
public $key;
public $secret;
function __construct($key, $secret, $callback_url=NULL) {
$this->key = $key;
$this->secret = $secret;
$this->callback_url = $callback_url;
}
function __toString() {
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
}
}
class dcsnt_OAuthToken {
// access tokens and request tokens
public $key;
public $secret;
/**
* key = the token
* secret = the token secret
*/
function __construct($key, $secret) {
$this->key = $key;
$this->secret = $secret;
}
/**
* generates the basic string serialization of a token that a server
* would respond to request_token and access_token calls with
*/
function to_string() {
return "oauth_token=" .
dcsnt_OAuthUtil::urlencode_rfc3986($this->key) .
"&oauth_token_secret=" .
dcsnt_OAuthUtil::urlencode_rfc3986($this->secret);
}
function __toString() {
return $this->to_string();
}
}
/**
* A class for implementing a Signature Method
* See section 9 ("Signing Requests") in the spec
*/
abstract class dcsnt_OAuthSignatureMethod {
/**
* Needs to return the name of the Signature Method (ie HMAC-SHA1)
* @return string
*/
abstract public function get_name();
/**
* Build up the signature
* NOTE: The output of this function MUST NOT be urlencoded.
* the encoding is handled in dcsnt_OAuthRequest when the final
* request is serialized
* @param dcsnt_OAuthRequest $request
* @param OAuthConsumer $consumer
* @param dcsnt_OAuthToken $token
* @return string
*/
abstract public function build_signature($request, $consumer, $token);
/**
* Verifies that a given signature is correct
* @param dcsnt_OAuthRequest $request
* @param OAuthConsumer $consumer
* @param dcsnt_OAuthToken $token
* @param string $signature
* @return bool
*/
public function check_signature($request, $consumer, $token, $signature) {
$built = $this->build_signature($request, $consumer, $token);
return $built == $signature;
}
}
/**
* The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104]
* where the Signature Base String is the text and the key is the concatenated values (each first
* encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&'
* character (ASCII code 38) even if empty.
* - Chapter 9.2 ("HMAC-SHA1")
*/
class dcsnt_OAuthSignatureMethod_HMAC_SHA1 extends dcsnt_OAuthSignatureMethod {
function get_name() {
return "HMAC-SHA1";
}
public function build_signature($request, $consumer, $token) {
$base_string = $request->get_signature_base_string();
$request->base_string = $base_string;
$key_parts = array(
$consumer->secret,
($token) ? $token->secret : ""
);
$key_parts = dcsnt_OAuthUtil::urlencode_rfc3986($key_parts);
$key = implode('&', $key_parts);
return base64_encode(hash_hmac('sha1', $base_string, $key, true));
}
}
/**
* The PLAINTEXT method does not provide any security protection and SHOULD only be used
* over a secure channel such as HTTPS. It does not use the Signature Base String.
* - Chapter 9.4 ("PLAINTEXT")
*/
class dcsnt_OAuthSignatureMethod_PLAINTEXT extends dcsnt_OAuthSignatureMethod {
public function get_name() {
return "PLAINTEXT";
}
/**
* oauth_signature is set to the concatenated encoded values of the Consumer Secret and
* Token Secret, separated by a '&' character (ASCII code 38), even if either secret is
* empty. The result MUST be encoded again.
* - Chapter 9.4.1 ("Generating Signatures")
*
* Please note that the second encoding MUST NOT happen in the SignatureMethod, as
* dcsnt_OAuthRequest handles this!
*/
public function build_signature($request, $consumer, $token) {
$key_parts = array(
$consumer->secret,
($token) ? $token->secret : ""
);
$key_parts = dcsnt_OAuthUtil::urlencode_rfc3986($key_parts);
$key = implode('&', $key_parts);
$request->base_string = $key;
return $key;
}
}
/**
* The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in
* [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for
* EMSA-PKCS1-v1_5. It is assumed that the Consumer has provided its RSA public key in a
* verified way to the Service Provider, in a manner which is beyond the scope of this
* specification.
* - Chapter 9.3 ("RSA-SHA1")
*/
abstract class dcsnt_OAuthSignatureMethod_RSA_SHA1 extends dcsnt_OAuthSignatureMethod {
public function get_name() {
return "RSA-SHA1";
}
// Up to the SP to implement this lookup of keys. Possible ideas are:
// (1) do a lookup in a table of trusted certs keyed off of consumer
// (2) fetch via http using a url provided by the requester
// (3) some sort of specific discovery code based on request
//
// Either way should return a string representation of the certificate
protected abstract function fetch_public_cert(&$request);
// Up to the SP to implement this lookup of keys. Possible ideas are:
// (1) do a lookup in a table of trusted certs keyed off of consumer
//
// Either way should return a string representation of the certificate
protected abstract function fetch_private_cert(&$request);
public function build_signature($request, $consumer, $token) {
$base_string = $request->get_signature_base_string();
$request->base_string = $base_string;
// Fetch the private key cert based on the request
$cert = $this->fetch_private_cert($request);
// Pull the private key ID from the certificate
$privatekeyid = openssl_get_privatekey($cert);
// Sign using the key
$ok = openssl_sign($base_string, $signature, $privatekeyid);
// Release the key resource
openssl_free_key($privatekeyid);
return base64_encode($signature);
}
public function check_signature($request, $consumer, $token, $signature) {
$decoded_sig = base64_decode($signature);
$base_string = $request->get_signature_base_string();
// Fetch the public key cert based on the request
$cert = $this->fetch_public_cert($request);
// Pull the public key ID from the certificate
$publickeyid = openssl_get_publickey($cert);
// Check the computed signature against the one passed in the query
$ok = openssl_verify($base_string, $decoded_sig, $publickeyid);
// Release the key resource
openssl_free_key($publickeyid);
return $ok == 1;
}
}
class dcsnt_OAuthRequest {
private $parameters;
private $http_method;
private $http_url;
// for debug purposes
public $base_string;
public static $version = '1.0';
public static $POST_INPUT = 'php://input';
function __construct($http_method, $http_url, $parameters=NULL) {
@$parameters or $parameters = array();
$parameters = array_merge( dcsnt_OAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
$this->parameters = $parameters;
$this->http_method = $http_method;
$this->http_url = $http_url;
}
/**
* attempt to build up a request from what was passed to the server
*/
public static function from_request($http_method=NULL, $http_url=NULL, $parameters=NULL) {
$scheme = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on")
? 'http'
: 'https';
@$http_url or $http_url = $scheme .
'://' . $_SERVER['HTTP_HOST'] .
':' .
$_SERVER['SERVER_PORT'] .
$_SERVER['REQUEST_URI'];
@$http_method or $http_method = $_SERVER['REQUEST_METHOD'];
// We weren't handed any parameters, so let's find the ones relevant to
// this request.
// If you run XML-RPC or similar you should use this to provide your own
// parsed parameter-list
if (!$parameters) {
// Find request headers
$request_headers = dcsnt_OAuthUtil::get_headers();
// Parse the query-string to find GET parameters
$parameters = dcsnt_OAuthUtil::parse_parameters($_SERVER['QUERY_STRING']);
// It's a POST request of the proper content-type, so parse POST
// parameters and add those overriding any duplicates from GET
if ($http_method == "POST"
&& @strstr($request_headers["Content-Type"],
"application/x-www-form-urlencoded")
) {
$post_data = dcsnt_OAuthUtil::parse_parameters(
file_get_contents(self::$POST_INPUT)
);
$parameters = array_merge($parameters, $post_data);
}
// We have a Authorization-header with OAuth data. Parse the header
// and add those overriding any duplicates from GET or POST
if (@substr($request_headers['Authorization'], 0, 6) == "OAuth ") {
$header_parameters = dcsnt_OAuthUtil::split_header(
$request_headers['Authorization']
);
$parameters = array_merge($parameters, $header_parameters);
}
}
return new dcsnt_OAuthRequest($http_method, $http_url, $parameters);
}
/**
* pretty much a helper function to set up the request
*/
public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) {
@$parameters or $parameters = array();
$defaults = array("oauth_version" => dcsnt_OAuthRequest::$version,
"oauth_nonce" => dcsnt_OAuthRequest::generate_nonce(),
"oauth_timestamp" => dcsnt_OAuthRequest::generate_timestamp(),
"oauth_consumer_key" => $consumer->key);
if ($token)
$defaults['oauth_token'] = $token->key;
$parameters = array_merge($defaults, $parameters);
return new dcsnt_OAuthRequest($http_method, $http_url, $parameters);
}
public function set_parameter($name, $value, $allow_duplicates = true) {
if ($allow_duplicates && isset($this->parameters[$name])) {
// We have already added parameter(s) with this name, so add to the list
if (is_scalar($this->parameters[$name])) {
// This is the first duplicate, so transform scalar (string)
// into an array so we can add the duplicates
$this->parameters[$name] = array($this->parameters[$name]);
}
$this->parameters[$name][] = $value;
} else {
$this->parameters[$name] = $value;
}
}
public function get_parameter($name) {
return isset($this->parameters[$name]) ? $this->parameters[$name] : null;
}
public function get_parameters() {
return $this->parameters;
}
public function unset_parameter($name) {
unset($this->parameters[$name]);
}
/**
* The request parameters, sorted and concatenated into a normalized string.
* @return string
*/
public function get_signable_parameters() {
// Grab all parameters
$params = $this->parameters;
// Remove oauth_signature if present
// Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.")
if (isset($params['oauth_signature'])) {
unset($params['oauth_signature']);
}
return dcsnt_OAuthUtil::build_http_query($params);
}
/**
* Returns the base string of this request
*
* The base string defined as the method, the url
* and the parameters (normalized), each urlencoded
* and the concated with &.
*/
public function get_signature_base_string() {
$parts = array(
$this->get_normalized_http_method(),
$this->get_normalized_http_url(),
$this->get_signable_parameters()
);
$parts = dcsnt_OAuthUtil::urlencode_rfc3986($parts);
return implode('&', $parts);
}
/**
* just uppercases the http method
*/
public function get_normalized_http_method() {
return strtoupper($this->http_method);
}
/**
* parses the url and rebuilds it to be
* scheme://host/path
*/
public function get_normalized_http_url() {
$parts = parse_url($this->http_url);
$port = @$parts['port'];
$scheme = $parts['scheme'];
$host = $parts['host'];
$path = @$parts['path'];
$port or $port = ($scheme == 'https') ? '443' : '80';
if (($scheme == 'https' && $port != '443')
|| ($scheme == 'http' && $port != '80')) {
$host = "$host:$port";
}
return "$scheme://$host$path";
}
/**
* builds a url usable for a GET request
*/
public function to_url() {
$post_data = $this->to_postdata();
$out = $this->get_normalized_http_url();
if ($post_data) {
$out .= '?'.$post_data;
}
return $out;
}
/**
* builds the data one would send in a POST request
*/
public function to_postdata() {
return dcsnt_OAuthUtil::build_http_query($this->parameters);
}
/**
* builds the Authorization: header
*/
public function to_header($realm=null) {
$first = true;
if($realm) {
$out = 'Authorization: OAuth realm="' . dcsnt_OAuthUtil::urlencode_rfc3986($realm) . '"';
$first = false;
} else
$out = 'Authorization: OAuth';
$total = array();
foreach ($this->parameters as $k => $v) {
if (substr($k, 0, 5) != "oauth") continue;
if (is_array($v)) {
throw new dcsnt_OAuthException('Arrays not supported in headers');
}
$out .= ($first) ? ' ' : ',';
$out .= dcsnt_OAuthUtil::urlencode_rfc3986($k) .
'="' .
dcsnt_OAuthUtil::urlencode_rfc3986($v) .
'"';
$first = false;
}
return $out;
}
public function __toString() {
return $this->to_url();
}
public function sign_request($signature_method, $consumer, $token) {
$this->set_parameter(
"oauth_signature_method",
$signature_method->get_name(),
false
);
$signature = $this->build_signature($signature_method, $consumer, $token);
$this->set_parameter("oauth_signature", $signature, false);
}
public function build_signature($signature_method, $consumer, $token) {
$signature = $signature_method->build_signature($this, $consumer, $token);
return $signature;
}
/**
* util function: current timestamp
*/
private static function generate_timestamp() {
return time();
}
/**
* util function: current nonce
*/
private static function generate_nonce() {
$mt = microtime();
$rand = mt_rand();
return md5($mt . $rand); // md5s look nicer than numbers
}
}
class dcsnt_OAuthServer {
protected $timestamp_threshold = 300; // in seconds, five minutes
protected $version = '1.0'; // hi blaine
protected $signature_methods = array();
protected $data_store;
function __construct($data_store) {
$this->data_store = $data_store;
}
public function add_signature_method($signature_method) {
$this->signature_methods[$signature_method->get_name()] =
$signature_method;
}
// high level functions
/**
* process a request_token request
* returns the request token on success
*/
public function fetch_request_token(&$request) {
$this->get_version($request);
$consumer = $this->get_consumer($request);
// no token required for the initial token request
$token = NULL;
$this->check_signature($request, $consumer, $token);
// Rev A change
$callback = $request->get_parameter('oauth_callback');
$new_token = $this->data_store->new_request_token($consumer, $callback);
return $new_token;
}
/**
* process an access_token request
* returns the access token on success
*/
public function fetch_access_token(&$request) {
$this->get_version($request);
$consumer = $this->get_consumer($request);
// requires authorized request token
$token = $this->get_token($request, $consumer, "request");
$this->check_signature($request, $consumer, $token);
// Rev A change
$verifier = $request->get_parameter('oauth_verifier');
$new_token = $this->data_store->new_access_token($token, $consumer, $verifier);
return $new_token;
}
/**
* verify an api call, checks all the parameters
*/
public function verify_request(&$request) {
$this->get_version($request);
$consumer = $this->get_consumer($request);
$token = $this->get_token($request, $consumer, "access");
$this->check_signature($request, $consumer, $token);
return array($consumer, $token);
}
// Internals from here
/**
* version 1
*/
private function get_version(&$request) {
$version = $request->get_parameter("oauth_version");
if (!$version) {
// Service Providers MUST assume the protocol version to be 1.0 if this parameter is not present.
// Chapter 7.0 ("Accessing Protected Ressources")
$version = '1.0';
}
if ($version !== $this->version) {
throw new dcsnt_OAuthException("OAuth version '$version' not supported");
}
return $version;
}
/**
* figure out the signature with some defaults
*/
private function get_signature_method(&$request) {
$signature_method =
@$request->get_parameter("oauth_signature_method");
if (!$signature_method) {
// According to chapter 7 ("Accessing Protected Ressources") the signature-method
// parameter is required, and we can't just fallback to PLAINTEXT
throw new dcsnt_OAuthException('No signature method parameter. This parameter is required');
}
if (!in_array($signature_method,
array_keys($this->signature_methods))) {
throw new dcsnt_OAuthException(
"Signature method '$signature_method' not supported " .
"try one of the following: " .
implode(", ", array_keys($this->signature_methods))
);
}
return $this->signature_methods[$signature_method];
}
/**
* try to find the consumer for the provided request's consumer key
*/
private function get_consumer(&$request) {
$consumer_key = @$request->get_parameter("oauth_consumer_key");
if (!$consumer_key) {
throw new dcsnt_OAuthException("Invalid consumer key");
}
$consumer = $this->data_store->lookup_consumer($consumer_key);
if (!$consumer) {
throw new dcsnt_OAuthException("Invalid consumer");
}
return $consumer;
}
/**
* try to find the token for the provided request's token key
*/
private function get_token(&$request, $consumer, $token_type="access") {
$token_field = @$request->get_parameter('oauth_token');
$token = $this->data_store->lookup_token(
$consumer, $token_type, $token_field
);
if (!$token) {
throw new dcsnt_OAuthException("Invalid $token_type token: $token_field");
}
return $token;
}
/**
* all-in-one function to check the signature on a request
* should guess the signature method appropriately
*/
private function check_signature(&$request, $consumer, $token) {
// this should probably be in a different method
$timestamp = @$request->get_parameter('oauth_timestamp');
$nonce = @$request->get_parameter('oauth_nonce');
$this->check_timestamp($timestamp);
$this->check_nonce($consumer, $token, $nonce, $timestamp);
$signature_method = $this->get_signature_method($request);
$signature = $request->get_parameter('oauth_signature');
$valid_sig = $signature_method->check_signature(
$request,
$consumer,
$token,
$signature
);
if (!$valid_sig) {
throw new dcsnt_OAuthException("Invalid signature");
}
}
/**
* check that the timestamp is new enough
*/
private function check_timestamp($timestamp) {
if( ! $timestamp )
throw new dcsnt_OAuthException(
'Missing timestamp parameter. The parameter is required'
);
// verify that timestamp is recentish
$now = time();
if (abs($now - $timestamp) > $this->timestamp_threshold) {
throw new dcsnt_OAuthException(
"Expired timestamp, yours $timestamp, ours $now"
);
}
}
/**
* check that the nonce is not repeated
*/
private function check_nonce($consumer, $token, $nonce, $timestamp) {
if( ! $nonce )
throw new dcsnt_OAuthException(
'Missing nonce parameter. The parameter is required'
);
// verify that the nonce is uniqueish
$found = $this->data_store->lookup_nonce(
$consumer,
$token,
$nonce,
$timestamp
);
if ($found) {
throw new dcsnt_OAuthException("Nonce already used: $nonce");
}
}
}
class dcsnt_OAuthDataStore {
function lookup_consumer($consumer_key) {
// implement me
}
function lookup_token($consumer, $token_type, $token) {
// implement me
}
function lookup_nonce($consumer, $token, $nonce, $timestamp) {
// implement me
}
function new_request_token($consumer, $callback = null) {
// return a new token attached to this consumer
}
function new_access_token($token, $consumer, $verifier = null) {
// return a new access token attached to this consumer
// for the user associated with this token if the request token
// is authorized
// should also invalidate the request token
}
}
class dcsnt_OAuthUtil {
public static function urlencode_rfc3986($input) {
if (is_array($input)) {
return array_map(array('dcsnt_OAuthUtil', 'urlencode_rfc3986'), $input);
} else if (is_scalar($input)) {
return str_replace(
'+',
' ',
str_replace('%7E', '~', rawurlencode($input))
);
} else {
return '';
}
}
// This decode function isn't taking into consideration the above
// modifications to the encoding process. However, this method doesn't
// seem to be used anywhere so leaving it as is.
public static function urldecode_rfc3986($string) {
return urldecode($string);
}
// Utility function for turning the Authorization: header into
// parameters, has to do some unescaping
// Can filter out any non-oauth parameters if needed (default behaviour)
public static function split_header($header, $only_allow_oauth_parameters = true) {
$pattern = '/(([-_a-z]*)=("([^"]*)"|([^,]*)),?)/';
$offset = 0;
$params = array();
while (preg_match($pattern, $header, $matches, PREG_OFFSET_CAPTURE, $offset) > 0) {
$match = $matches[0];
$header_name = $matches[2][0];
$header_content = (isset($matches[5])) ? $matches[5][0] : $matches[4][0];
if (preg_match('/^oauth_/', $header_name) || !$only_allow_oauth_parameters) {
$params[$header_name] = dcsnt_OAuthUtil::urldecode_rfc3986($header_content);
}
$offset = $match[1] + strlen($match[0]);
}
if (isset($params['realm'])) {
unset($params['realm']);
}
return $params;
}
// helper to try to sort out headers for people who aren't running apache
public static function get_headers() {
if (function_exists('apache_request_headers')) {
// we need this to get the actual Authorization: header
// because apache tends to tell us it doesn't exist
$headers = apache_request_headers();
// sanitize the output of apache_request_headers because
// we always want the keys to be Cased-Like-This and arh()
// returns the headers in the same case as they are in the
// request
$out = array();
foreach( $headers AS $key => $value ) {
$key = str_replace(
" ",
"-",
ucwords(strtolower(str_replace("-", " ", $key)))
);
$out[$key] = $value;
}
} else {
// otherwise we don't have apache and are just going to have to hope
// that $_SERVER actually contains what we need
$out = array();
if( isset($_SERVER['CONTENT_TYPE']) )
$out['Content-Type'] = $_SERVER['CONTENT_TYPE'];
if( isset($_ENV['CONTENT_TYPE']) )
$out['Content-Type'] = $_ENV['CONTENT_TYPE'];
foreach ($_SERVER as $key => $value) {
if (substr($key, 0, 5) == "HTTP_") {
// this is chaos, basically it is just there to capitalize the first
// letter of every word that is not an initial HTTP and strip HTTP
// code from przemek
$key = str_replace(
" ",
"-",
ucwords(strtolower(str_replace("_", " ", substr($key, 5))))
);
$out[$key] = $value;
}
}
}
return $out;
}
// This function takes a input like a=b&a=c&d=e and returns the parsed
// parameters like this
// array('a' => array('b','c'), 'd' => 'e')
public static function parse_parameters( $input ) {
if (!isset($input) || !$input) return array();
$pairs = explode('&', $input);
$parsed_parameters = array();
foreach ($pairs as $pair) {
$split = explode('=', $pair, 2);
$parameter = dcsnt_OAuthUtil::urldecode_rfc3986($split[0]);
$value = isset($split[1]) ? dcsnt_OAuthUtil::urldecode_rfc3986($split[1]) : '';
if (isset($parsed_parameters[$parameter])) {
// We have already recieved parameter(s) with this name, so add to the list
// of parameters with this name
if (is_scalar($parsed_parameters[$parameter])) {
// This is the first duplicate, so transform scalar (string) into an array
// so we can add the duplicates
$parsed_parameters[$parameter] = array($parsed_parameters[$parameter]);
}
$parsed_parameters[$parameter][] = $value;
} else {
$parsed_parameters[$parameter] = $value;
}
}
return $parsed_parameters;
}
public static function build_http_query($params) {
if (!$params) return '';
// Urlencode both keys and values
$keys = dcsnt_OAuthUtil::urlencode_rfc3986(array_keys($params));
$values = dcsnt_OAuthUtil::urlencode_rfc3986(array_values($params));
$params = array_combine($keys, $values);
// Parameters are sorted by name, using lexicographical byte value ordering.
// Ref: Spec: 9.1.1 (1)
uksort($params, 'strcmp');
$pairs = array();
foreach ($params as $parameter => $value) {
if (is_array($value)) {
// If two or more parameters share the same name, they are sorted by their value
// Ref: Spec: 9.1.1 (1)
natsort($value);
foreach ($value as $duplicate_value) {
$pairs[] = $parameter . '=' . $duplicate_value;
}
} else {
$pairs[] = $parameter . '=' . $value;
}
}
// For each parameter, the name is separated from the corresponding value by an '=' character (ASCII code 61)
// Each name-value pair is separated by an '&' character (ASCII code 38)
return implode('&', $pairs);
}
}
?> | RomainGoncalves/cadell | wp-content/plugins/social-network-tabs/inc/dcwp_twitter.php | PHP | gpl-2.0 | 36,981 |
import win32pipe
import win32console
import win32process
import time
import win32con
import codecs
import ctypes
user32 = ctypes.windll.user32
CONQUE_WINDOWS_VK = {
'3' : win32con.VK_CANCEL,
'8' : win32con.VK_BACK,
'9' : win32con.VK_TAB,
'12' : win32con.VK_CLEAR,
'13' : win32con.VK_RETURN,
'17' : win32con.VK_CONTROL,
'20' : win32con.VK_CAPITAL,
'27' : win32con.VK_ESCAPE,
'28' : win32con.VK_CONVERT,
'35' : win32con.VK_END,
'36' : win32con.VK_HOME,
'37' : win32con.VK_LEFT,
'38' : win32con.VK_UP,
'39' : win32con.VK_RIGHT,
'40' : win32con.VK_DOWN,
'45' : win32con.VK_INSERT,
'46' : win32con.VK_DELETE,
'47' : win32con.VK_HELP
}
def make_input_key(c, control_key_state=None):
kc = win32console.PyINPUT_RECORDType (win32console.KEY_EVENT)
kc.KeyDown = True
kc.RepeatCount = 1
cnum = ord(c)
if cnum == 3:
pid_list = win32console.GetConsoleProcessList()
win32console.GenerateConsoleCtrlEvent(win32con.CTRL_C_EVENT, 0)
return
else:
kc.Char = unicode(c)
if str(cnum) in CONQUE_WINDOWS_VK:
kc.VirtualKeyCode = CONQUE_WINDOWS_VK[str(cnum)]
else:
kc.VirtualKeyCode = ctypes.windll.user32.VkKeyScanA(cnum)
#kc.VirtualKeyCode = ctypes.windll.user32.VkKeyScanA(cnum+96)
#kc.ControlKeyState = win32con.LEFT_CTRL_PRESSED
return kc
#win32console.AttachConsole()
coord = win32console.PyCOORDType
con_stdout = win32console.GetStdHandle(win32console.STD_OUTPUT_HANDLE)
con_stdin = win32console.GetStdHandle(win32console.STD_INPUT_HANDLE)
flags = win32process.NORMAL_PRIORITY_CLASS
si = win32process.STARTUPINFO()
si.dwFlags |= win32con.STARTF_USESHOWWINDOW
(handle1, handle2, i1, i2) = win32process.CreateProcess(None, "cmd.exe", None, None, 0, flags, None, '.', si)
time.sleep(1)
#size = con_stdout.GetConsoleScreenBufferInfo()['Window']
# with codecs.open("log.txt", "w", "utf8") as f:
# for i in xrange(0, size.Bottom):
# f.write(con_stdout.ReadConsoleOutputCharacter(size.Right+1, coord(0, i)))
# f.write("\n")
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 5554
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((HOST, PORT))
s.listen(1)
(sc, scname) = s.accept()
while True:
msg = sc.recv(1)
if ord(msg) == 0:
break
keys = [make_input_key(msg)]
if keys:
con_stdin.WriteConsoleInput(keys)
win32process.TerminateProcess(handle1, 0) | viswimmer1/PythonGenerator | data/python_files/34574373/cmss.py | Python | gpl-2.0 | 2,623 |
class EventsController < ApplicationController
before_filter :authorize_organizer, except: [:index, :show]
def index
@events_upcoming = Event.paginate(page: params[:page_upcoming], :per_page => 5).upcoming()
@events_past = Event.paginate(page: params[:page_past], :per_page => 5).past()
@events_past_count = Event.past().count
end
def show
@event = Event.find(params[:id])
end
def new
@event = Event.new
@event.date = Date.today
end
def edit
@event = Event.find(params[:id])
end
def create
@event = Event.new(params[:event])
if @event.save
flash[:success] = "Event was successfully created."
redirect_to @event
else
render 'new'
end
end
def update
@event = Event.find(params[:id])
if @event.update_attributes(params[:event])
flash[:success] = "Event was successfully updated."
redirect_to @event
else
render 'edit'
end
end
def destroy
@event = Event.find(params[:id])
@event.destroy
flash[:success] = "Event was successfully deleted."
redirect_to events_url
end
end
| sfreihofer/nama | app/controllers/events_controller.rb | Ruby | gpl-2.0 | 1,094 |
<?php global $woocommerce; ?>
<?php $woocommerce->show_messages(); ?>
<?php do_action('woocommerce_before_customer_login_form'); ?>
<?php if (get_option('woocommerce_enable_myaccount_registration')=='yes') : ?>
<div class="col2-set" id="customer_login">
<div class="col-1">
<?php endif; ?>
<h2><?php _e('Login', 'sp'); ?></h2>
<form method="post" class="login">
<p class="form-row form-row-first">
<label for="username"><?php _e('Username', 'sp'); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
</p>
<p class="form-row form-row-last">
<label for="password"><?php _e('Password', 'sp'); ?> <span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<div class="group"></div>
<p class="form-row">
<?php $woocommerce->nonce_field('login', 'login') ?>
<input type="submit" class="button" name="login" value="<?php _e('Login', 'sp'); ?>" />
<a class="lost_password" href="<?php echo esc_url( wp_lostpassword_url( home_url() ) ); ?>"><?php _e('Lost Password?', 'sp'); ?></a>
</p>
</form>
<?php if (get_option('woocommerce_enable_myaccount_registration')=='yes') : ?>
</div>
<div class="col-2">
<h2><?php _e('Register', 'sp'); ?></h2>
<form method="post" class="register">
<p class="form-row form-row-first">
<label for="reg_username"><?php _e('Username', 'sp'); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" />
</p>
<p class="form-row form-row-last">
<label for="reg_email"><?php _e('Email', 'sp'); ?> <span class="required">*</span></label>
<input type="email" class="input-text" name="email" id="reg_email" value="<?php if (isset($_POST['email'])) echo esc_attr($_POST['email']); ?>" />
</p>
<div class="group"></div>
<p class="form-row form-row-first">
<label for="reg_password"><?php _e('Password', 'sp'); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password" id="reg_password" value="<?php if (isset($_POST['password'])) echo esc_attr($_POST['password']); ?>" />
</p>
<p class="form-row form-row-last">
<label for="reg_password2"><?php _e('Re-enter password', 'sp'); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if (isset($_POST['password2'])) echo esc_attr($_POST['password2']); ?>" />
</p>
<div class="group"></div>
<!-- Spam Trap -->
<div style="left:-999em; position:absolute;"><label for="trap">Anti-spam</label><input type="text" name="email_2" id="trap" /></div>
<?php do_action( 'register_form' ); ?>
<p class="form-row">
<?php $woocommerce->nonce_field('register', 'register') ?>
<input type="submit" class="button" name="register" value="<?php _e('Register', 'sp'); ?>" />
</p>
</form>
</div>
</div>
<?php endif; ?>
<?php do_action('woocommerce_after_customer_login_form'); ?> | MedvedevKir/gmtest.ru | wp-content/themes/mio/woocommerce/myaccount/form-login.php | PHP | gpl-2.0 | 3,275 |
$('#section').on('click', '[id$="Empty"]', function(event) {
event.preventDefault();
var match = /(.+)Empty/.exec($(event.target).closest('.unwell').attr('id'));
var id = match[1];
var emptyId = match[0];
$('#'+id).trigger('addrow');
$('#'+emptyId).addClass('hidden');
return false;
});
$('#section').on('submit', 'form[name="formItem"]', function(e) {
e.preventDefault();
var form = $(this),
btn = form.find('.btn-primary'),
valid = isFormValid(form);
$('select[name$=".type"]:not(:disabled)').each(function(i,e){
if($(e).val() == "Select an option"){
valid = false;
showPermanentError(form, "Please select a valid action.");
}
});
if (valid) {
btn.button('loading');
resetAlert($('#section'));
$.ajax({
type: 'POST',
url: form.attr('action'),
data: form.serialize()
}).always(function() {
btn.button('reset');
}).done(function(data, textStatus, jqXHR) {
showSuccess(form, "Saved");
window.location.hash = "#config/portal_module/"+form.find('input[name="id"]').val()+"/read"
}).fail(function(jqXHR) {
$("body,html").animate({scrollTop:0}, 'fast');
var status_msg = getStatusMsg(jqXHR);
showPermanentError(form, status_msg);
});
}
});
$('#section').on('click', '.delete-portal-module', function(e){
e.preventDefault();
var button = $(e.target);
button.button('loading');
$.ajax({
type: 'GET',
url: button.attr('href'),
}).always(function() {
}).done(function(data, textStatus, jqXHR) {
showSuccess(button.closest('.table'), "Deleted");
button.closest('tr').remove();
}).fail(function(jqXHR) {
button.button('reset');
$("body,html").animate({scrollTop:0}, 'fast');
var status_msg = getStatusMsg(jqXHR);
showPermanentError(button.closest('.table'), status_msg);
});
return false;
});
$('#section').on('click', '.expand', function(e){
e.preventDefault();
$(e.target).hide(function(){
$($(e.target).attr('data-expand')).slideDown();
});
return false;
});
$('#section').on('change', '#actions select[name$=".type"]', function(event) {
var type_input = $(event.currentTarget);
updateActionMatchInput(type_input,false);
});
$('#section').on('click', '#actionsContainer a[href="#add"]', function(event) {
setTimeout(initActionMatchInput, 3000);
});
function initActionMatchInput() {
$('select[name$=".type"]:not(:disabled)').each(function(i,e){
updateActionMatchInput($(e),true);
});
}
function updateActionMatchInput(type_input, keep) {
var match_input = type_input.next();
var type_value = type_input.val();
var match_input_template_id = '#' + type_value + "_action_match";
var match_input_template = $(match_input_template_id);
if ( match_input_template.length == 0 ) {
match_input_template = $('#default_action_match');
}
if ( match_input_template.length ) {
changeInputFromTemplate(match_input, match_input_template, keep);
if (type_value == "switch") {
type_input.next().typeahead({
source: searchSwitchesGenerator($('#section h2')),
minLength: 2,
items: 11,
matcher: function(item) { return true; }
});
}
}
}
| jrouzierinverse/packetfence | html/pfappserver/root/static/admin/config/portal_modules.js | JavaScript | gpl-2.0 | 3,343 |
jQuery(function($){
$.supersized({
//Functionality
slideshow : 1, //Slideshow on/off
autoplay : 1, //Slideshow starts playing automatically
start_slide : 1, //Start slide (0 is random)
slide_interval : 4000, //Length between transitions
slideshow_interval : 4000, //Length between transitions
transition : 1, //0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
transition_speed : 500, //Speed of transition
new_window : 1, //Image links open in new window/tab
pause_hover : 0, //Pause slideshow on hover
keyboard_nav : 1, //Keyboard navigation on/off
performance : 1, //0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
image_protect : 1, //Disables image dragging and right click with Javascript
image_path : 'img/', //Default image path
//Size & Position
min_width : 0, //Min width allowed (in pixels)
min_height : 0, //Min height allowed (in pixels)
vertical_center : 1, //Vertically center background
horizontal_center : 1, //Horizontally center background
fit_portrait : 1, //Portrait images will not exceed browser height
fit_landscape : 0, //Landscape images will not exceed browser width
//Components
navigation : 1, //Slideshow controls on/off
thumbnail_navigation : 1, //Thumbnail navigation
slide_counter : 1, //Display slide numbers
slide_captions : 1, //Slide caption (Pull from "title" in slides array)
slides : (function(){
var ret = new Array();
for(var i in supersizedImgs){
ret.push({image: supersizedImgs[i]});
}
return ret;
})()
});
}); | infosecdev/markroxberry | wp-content/themes/widephoto/supersized/js/supersized.imgs.js | JavaScript | gpl-2.0 | 2,098 |
package com.mmm.product.domain;
import java.io.Serializable;
public class ShippingDetails implements Serializable{
private static final long serialVersionUID = 5941389959992371612L;
}
| Lnjena/mmm.com | mmm-spring-boot/src/main/java/com/mmm/product/domain/ShippingDetails.java | Java | gpl-2.0 | 189 |
package org.jiserte.bioformats.readers.phylip;
import org.jiserte.bioformats.readers.faults.AlignmentReadingFault;
public class FirstBlockLinePhylipFault extends AlignmentReadingFault {
public FirstBlockLinePhylipFault() {
super();
this.setMessage("Sequences in the first block of data must have a description of 10 characters and then the sequence.");
}
}
| javieriserte/XI-bio-formats | XI-Bio-Formats/src/org/jiserte/bioformats/readers/phylip/FirstBlockLinePhylipFault.java | Java | gpl-2.0 | 378 |
<?php
/*=======================================================================
// File: BACKEND.INC.PHP
// Description: All various output backends for QR barcodes available
// Created: 2008-08-01
// Ver: $Id: backend.inc.php 1504 2009-07-06 13:34:57Z ljp $
//
// Copyright (c) 2008 Aditus Consulting. All rights reserved.
//========================================================================
*/
DEFINE('BACKEND_ASCII', 0);
DEFINE('BACKEND_IMAGE', 1);
DEFINE('BACKEND_PS', 2);
DEFINE('BACKEND_EPS', 3);
//--------------------------------------------------------------------------------
// Class: QRCodeBackend
// Description: Parent class for all common functionality for barcode backends
//--------------------------------------------------------------------------------
class QRCodeBackend {
protected $iEncoder = NULL;
protected $iModWidth = 2;
protected $iInv = false;
protected $iQuietZone = 0;
protected $iError = 0;
protected $iQRInfo = array(); // Holds some infromation the QR code just generated
function __construct($aBarcodeEncoder) {
$this->iEncoder = $aBarcodeEncoder;
}
function Stroke(&$aData, $aFileName = '', $aDebug = false, $aDebugFile = 'qrlog.txt') {
if( $aDebug !== FALSE ) {
$this->iEncoder->SetDebugLevel($aDebug);
}
// If data is an array we assume it is supposed to be manual encodation.
// (A more thorough data check is made in the encodation class)
$manual = is_array($aData) ;
// Return the print specificiation (QRLayout)
return $this->iEncoder->Enc($aData, $manual);
}
function GetQRInfo() {
return $this->iQRInfo;
}
function isCmdLine() {
$s=php_sapi_name();
return substr($s, 0, 3) == 'cli';
}
function fmtInfo($aS) {
if ( !$this->isCmdLine() ) {
return '<pre>' . $aS . '<pre>';
}
else return $aS;
}
function SetModuleWidth($aW) {
$this->iModWidth = $aW;
}
function SetQuietZone($aW) {
$this->iQuietZone = $aW;
}
function SetTilde($aFlg = true) {
//throw new QRException('Tilde processing is not yet supported for QR Barcodes.',-1);
throw new QRExceptionL(1000);
//$this->iEncoder->SetTilde($aFlg);
}
function SetInvert($aFlg = true) {
//throw new QRException("Inverting the bit pattern is not supported for QR Barcodes.",-1);
throw new QRExceptionL(1001);
}
function GetError() {
return $this->iError;
}
function StrokeFromFile($aFromFileName,$aFileName='',$aDebug=FALSE) {
$data = @file_get_contents($aFromFileName);
if( $data === FALSE ) {
//throw new QRException("Cannot read data from file $aFromFileName");
throw new QRExceptionL(1002,$aFromFileName);
}
$this->Stroke($data,$aFileName,$aDebug);
}
}
//--------------------------------------------------------------------------------
// Class: QRCodeBackend_PS
// Description: Backend to generate postscript (or EPS) representation of the barcode
//--------------------------------------------------------------------------------
class QRCodeBackend_PS extends QRCodeBackend {
private $iEPS = false;
function __construct($aBarcodeEncoder) {
parent::__construct($aBarcodeEncoder);
}
function SetEPS($aFlg=true) {
$this->iEPS = $aFlg;
}
function Stroke(&$aData, $aFileName = '', $aDebug = false, $aDebugFile = 'qrlog.txt') {
$pspec = parent::Stroke($aData, $aFileName, $aDebug, $aDebugFile);
$w = $this->iModWidth;
$n = $pspec->iSize[0]; // width/height of matrix
$ystart = 4*$w + $n*$w;
$xstart = 4*$w ;
$totwidth = $n*$w+8*$w ;
$totheight = $n*$w+8*$w ;
$psbar = "%Data: $aData\n";
$psbar .= "%Each line represents one row and the x-position for black modules: [xpos]\n";
if( is_array($aData)) {
$data = " (manual encodation schemas) \n";
$m = count($aData);
for($i=0; $i < $m; $i++) {
$data .= "%% (" . $aData[$i][0] . " : " . $aData[$i][1] . ")\n" ;
}
$aData = $data;
}
$y = $ystart;
$psbar .= "\n";
$psbar .= ($w+0.05)." setlinewidth\n";
for( $r=0; $r < $n ; ++$r, $y -= $w ) {
$psbar .= '[';
$x = $xstart;
for( $i=0; $i < $n; ++$i, $x += $w ) {
if( $pspec->iMatrix[$r][$i] == 1) {
$psbar .= "[$x]";
}
}
$psbar .= "] {{} forall $y moveto 0 -".($w+0.05)." rlineto stroke} forall\n";
}
$psbar .= "\n";
$y += 4*$w;
$psbar .= "%End of QR Barcode \n\n";
if( !$this->iEPS )
$psbar .= "showpage \n\n";
$psbar .= "%%Trailer\n\n";
$errStr = array('L', 'M', 'Q', 'H');
$ps = ($this->iEPS ? "%!PS-Adobe EPSF-3.0\n" : "%!PS-Adobe-3.0\n" ) .
"%%Title: QR Barcode ".$pspec->iVersion."-".$errStr[$pspec->iErrLevel].", mask=".$pspec->iMaskIdx."\n".
"%%Creator: JpGraph Barcode http://www.aditus.nu/jpgraph/\n".
"%%CreationDate: ".date("D j M H:i:s Y",time())."\n";
if( $this->iEPS ) {
$ps .= "%%BoundingBox: 0 0 $totwidth $totheight\n";
}
else {
$ps .= "%%DocumentPaperSizes: A4\n";
}
$ps .=
"%%EndComments\n".
"%%BeginProlog\n".
"%%EndProlog\n";
if( !$this->iEPS )
$ps .= "%%Page: 1 1\n";
$ps .= "\n%Module width: $this->iModWidth pt\n\n";
/*
if( $this->iScale != 1 ) {
$ps .=
"%%Scale barcode\n".
"$this->iScale $this->iScale scale\n\n";
}
*/
$ps = $ps.$psbar;
$errStr=array ( 'L', 'M', 'Q', 'H' );
$this->iQRInfo = array($pspec->iVersion,$errStr[$pspec->iErrLevel],$pspec->iMaskIdx);
if( $aFileName !== '' ) {
$fp = @fopen($aFileName,'wt');
if( $fp === FALSE ) {
// throw new QRException("Cannot open file $aFileName.");
throw new QRExceptionL(1003,$aFileName);
}
if( fwrite($fp,$ps) === FALSE ) {
//throw new QRException("Cannot write barcode to file $aFileName.");
throw new QRExceptionL(1004,$aFileName);
}
return fclose($fp);
}
else {
return $ps;
}
}
}
require_once('rgb_colors.inc.php');
//--------------------------------------------------------------------------------
// Class: QRCodeBackend_IMAGE
// Description: Backend to generate image representation of the barcode
//--------------------------------------------------------------------------------
class QRCodeBackend_IMAGE extends QRCodeBackend {
private $iColor = array ( array ( 0, 0, 0 ), array ( 255, 255, 255 ), array ( 255, 255, 255 ) );
private $iRGB = null;
private $iImgFormat = 'png', $iQualityJPEG = 75;
function __construct($aBarcodeEncoder) {
parent::__construct($aBarcodeEncoder);
$this->iRGB=new BarcodeRGB();
}
function SetSize($aShapeIdx) {
$this->iEncoder->SetSize($aShapeIdx);
}
function SetColor($aOne, $aZero, $aBackground = array ( 255, 255, 255 )) {
$this->iColor[0]=$aOne;
$this->iColor[1]=$aZero;
$this->iColor[2]=$aBackground;
}
// Specify image format. Note depending on your installation
// of PHP not all formats may be supported.
function SetImgFormat($aFormat, $aQuality = 75) {
$this->iQualityJPEG=$aQuality;
$this->iImgFormat=$aFormat;
}
function PrepareImgFormat() {
$format=strtolower($this->iImgFormat);
if ( $format == 'jpg' ) {
$format = 'jpeg';
}
$tst=true;
$supported=imagetypes();
if ( $format == "auto" ) {
if ( $supported & IMG_PNG )
$this->iImgFormat="png";
elseif( $supported & IMG_JPG )
$this->iImgFormat="jpeg";
elseif( $supported & IMG_GIF )
$this->iImgFormat="gif";
elseif( $supported & IMG_WBMP )
$this->iImgFormat="wbmp";
else {
//throw new QRException('Unsupported image format selected. Check your GD installation', -1);
throw new QRExceptionL(1005);
}
}
else {
if ( $format == "jpeg" || $format == "png" || $format == "gif" ) {
if ( $format == "jpeg" && !($supported & IMG_JPG) )
$tst=false;
elseif( $format == "png" && !($supported & IMG_PNG) )
$tst=false;
elseif( $format == "gif" && !($supported & IMG_GIF) )
$tst=false;
elseif( $format == "wbmp" && !($supported & IMG_WBMP) )
$tst=false;
else {
$this->iImgFormat = $format;
}
}
else
$tst=false;
if ( !$tst ) {
//throw new QRException('Unsupported image format selected. Check your GD installation', -1);
throw new QRExceptionL(1005);
}
}
return true;
}
function Stroke(&$aData, $aFileName = '', $aDebug = false, $aDebugFile = 'qrlog.txt') {
// Check the chosen graphic format
$this->PrepareImgFormat();
$pspec = parent::Stroke($aData, $aFileName, $aDebug, $aDebugFile);
$mat=$pspec->iMatrix;
$m=$this->iModWidth;
$this->iQuietZone = $pspec->iQuietZone;
$h=$pspec->iSize[0] * $m + 2 * $m * $this->iQuietZone;
$w=$pspec->iSize[1] * $m + 2 * $m * $this->iQuietZone;
$img=@imagecreatetruecolor($w, $h);
if ( !$img ) {
$this->iError=-12;
return false;
}
$canvas_color = $this->iRGB->Allocate($img, 'white');
$one_color = $this->iRGB->Allocate($img, $this->iColor[0]);
$zero_color = $this->iRGB->Allocate($img, $this->iColor[1]);
$bkg_color = $this->iRGB->Allocate($img, $this->iColor[2]);
if ( $this->iInv && $pspec->iAllowColorInversion ) {
// Swap one/zero colors
$tmp=$one_color;
$one_color=$zero_color;
$zero_color=$tmp;
}
if ( $canvas_color === false || $one_color === false || $zero_color === false || $bkg_color === false ) {
// throw new QRException('Cannot set the selected colors. Check your GD installation and spelling of color name', -1);
throw new QRExceptionL(1006);
}
imagefilledrectangle($img, 0, 0, $w - 1, $h - 1, $canvas_color);
imagefilledrectangle($img, 0, 0, $w - 1, $h - 1, $bkg_color);
$borderoffset=0;
if ( $pspec->iDrawLeftBottomBorder ) {
// Left alignment line
imagefilledrectangle($img, $m * $this->iQuietZone, $m * $this->iQuietZone, $m * $this->iQuietZone + $m - 1,
$h - $m * $this->iQuietZone - 1, $one_color);
// Bottom alignment line
imagefilledrectangle($img, $m * $this->iQuietZone, $h - $m * $this->iQuietZone - $m,
$w - $m * $this->iQuietZone - 1, $h - $m * $this->iQuietZone - 1, $one_color);
$borderoffset=1;
}
for( $i = 0; $i < $pspec->iSize[0] - $borderoffset; ++$i ) {
for( $j = $borderoffset; $j < $pspec->iSize[1]; ++$j ) {
$bit = $mat[$i][$j] == 1 ? $one_color : $zero_color;
if ( $m == 1 ) {
imagesetpixel($img, $j + $m * $this->iQuietZone, $i + $m * $this->iQuietZone, $bit);
}
else {
imagefilledrectangle($img, $j * $m + $m * $this->iQuietZone,
$i * $m + $m * $this->iQuietZone, $j * $m + $m - 1 + $m * $this->iQuietZone,
$i * $m + $m - 1 + $m * $this->iQuietZone, $bit);
}
}
}
if ( $pspec->iDrawLeftBottomBorder ) {
// Left alignment line
imagefilledrectangle($img, $this->iQuietZone, $this->iQuietZone, $this->iQuietZone + $m - 1,
$h - $this->iQuietZone - 1, $one_color);
// Bottom alignment line
imagefilledrectangle($img, $this->iQuietZone, $h - $this->iQuietZone - $m, $w - $this->iQuietZone - 1,
$h - $this->iQuietZone - 1, $one_color);
}
if ( headers_sent($file, $lineno) ) {
// Headers already sent special error
throw new QRExceptionL(1007,$file,$lineno);
}
if ( $aFileName == '' ) {
$s=php_sapi_name();
if ( substr($s, 0, 3) != 'cli' ) {
header("Content-type: image/$this->iImgFormat");
}
switch( $this->iImgFormat ) {
case 'png':
$res=@imagepng($img);
break;
case 'jpeg':
$res=@imagejpeg($img, NULL, $this->iQualityJPEG);
break;
case 'gif':
$res=@imagegif($img);
break;
case 'wbmp':
$res=@imagewbmp($img);
break;
}
if( $res === FALSE ) {
throw new QRExceptionL(1008,$this->iImgFormat);
//throw new QRException("Could not create the barcode image. Check your GD/PHP installation.");
}
}
else {
switch( $this->iImgFormat ) {
case 'png':
$res=@imagepng($img, $aFileName);
break;
case 'jpeg':
$res=@imagejpeg($img, $aFileName, $this->iQualityJPEG);
break;
case 'gif':
$res=@imagegif($img, $aFileName);
break;
case 'wbmp':
$res=@imagewbmp($img, $aFileName);
break;
}
if( $res === FALSE ) {
throw new QRExceptionL(1011,$this->iImgFormat);
// 1011 => 'Could not write the barcode to file. Check the filesystem permission.',
}
}
// If debugging is enabled store encoding info in the specified log file
if( $aDebug !== FALSE && $aDebugFile !== '' ) {
$s = "QR Barcode Log created: " . date('r')."\n";
$s .= "Debug level = $aDebug \n";
$s .= "SAPI: " . php_sapi_name() ."\n\n";
$s .= $this->iEncoder;
$s .= $pspec;
$fp = @fopen($aDebugFile,'wt');
if( $fp === FALSE ) {
//throw new QRException("Cannot open log file for writing $aDebugFile.");
throw new QRExceptionL(1009,$aDebugFile);
}
if( @fwrite($fp,$s) === FALSE ) {
//throw new QRException("Cannot write log info to log file $aDebugFile.");
throw new QRExceptionL(1010,$aDebugFile);
}
fclose($fp);
}
$errStr=array ( 'L', 'M', 'Q', 'H' );
$this->iQRInfo = array($pspec->iVersion,$errStr[$pspec->iErrLevel],$pspec->iMaskIdx);
return 'true';
}
}
//--------------------------------------------------------------------------------
// Class: QRCodeBackend_ASCII
// Description: Backend to generate ASCII representation of the barcode
//--------------------------------------------------------------------------------
class QRCodeBackend_ASCII extends QRCodeBackend {
function __construct(&$aBarcodeEncoder) {
parent::__construct($aBarcodeEncoder);
}
function GetMatrixString($mat, $inv = false, $width = 1, $aOne = 'X', $aZero = '-') {
if ( $width > 1 ) {
$m=count($mat);
$n=count($mat[0]);
$newmat=array();
for( $i = 0; $i < $m; ++$i )
for( $j = 0; $j < $n; ++$j )
for( $k = 0; $k < $width; ++$k )
for( $l = 0; $l < $width; ++$l )
$newmat[$i * $width + $k][$j * $width + $l]=$mat[$i][$j];
$mat=$newmat;
}
$m=count($mat);
$n=count($mat[0]);
$s = '';
for( $i = 0; $i < $m; ++$i ) {
for( $j = 0; $j < $n; ++$j ) {
if ( !$inv ) {
$s .= $mat[$i][$j] ? $aOne : $aZero;
}
else {
$s .= !$mat[$i][$j] ? $aOne : $aZero;
}
}
$s .= "\n";
}
$s .= "\n";
return $this->fmtInfo($s);
}
function Stroke(&$aData, $aFileName='', $aDebug = FALSE, $aDebugFile = '') {
$pspec = parent::Stroke($aData, $aFileName, $aDebug, $aDebugFile);
// If debugging is enabled store encoding info in the specified log file
if( $aDebug !== FALSE ) {
$s = str_repeat('=',80)."\n";
$s .= "QR Barcode Log created: " . date('r')."\n";
$s .= str_repeat('=',80)."\n";
$s .= "Debug level = $aDebug \n";
$s .= "SAPI: " . php_sapi_name() ."\n\n";
$s .= $this->iEncoder;
$s .= $pspec . "\n";
$s .= str_repeat('=',80)."\nEnd of QR Barcode log file.\n".str_repeat('=',80)."\n\n";
if( $aDebugFile != '' ) {
$fp = @fopen($aDebugFile,'wt');
if( $fp === FALSE ) {
// throw new QRException("Cannot open log file for writing $aDebugFile.");
throw new QRExceptionL(1009,$aDebugFile);
}
if( @fwrite($fp,$s) === FALSE ) {
// throw new QRException("Cannot write log info to log file $aDebugFile.");
throw new QRExceptionL(1010,$aDebugFile);
}
fclose($fp);
}
else {
echo $this->fmtInfo($s);
}
}
$s = $this->GetMatrixString($pspec->iMatrix, $this->iInv, $this->iModWidth, 'X', '-') . "\n";
if( $aFileName !== '' ) {
$fp = @fopen($aFileName,'wt');
if( $fp === FALSE ) {
// throw new QRException("Cannot open file $aFileName.");
throw new QRExceptionL(1003,$aFileName);
}
if( fwrite($fp,$s) === FALSE ) {
// throw new QRException("Cannot write barcode to file $aFileName.");
throw new QRExceptionL(1004,$aFileName);
}
return fclose($fp);
}
else {
return $s;
}
}
}
//--------------------------------------------------------------------------------
// Class: QRCodeBackendFactory
// Description: Factory to return a suitable backend for generating barcode
//--------------------------------------------------------------------------------
class QRCodeBackendFactory {
static function Create(&$aBarcodeEncoder, $aBackend = BACKEND_IMAGE) {
switch( $aBackend ) {
case BACKEND_ASCII:
return new QRCodeBackend_ASCII($aBarcodeEncoder);
break;
case BACKEND_IMAGE:
return new QRCodeBackend_Image($aBarcodeEncoder);
break;
case BACKEND_PS:
return new QRCodeBackend_PS($aBarcodeEncoder);
break;
case BACKEND_EPS:
$b = new QRCodeBackend_PS($aBarcodeEncoder);
$b->SetEPS(true);
return $b;
break;
default:
return false;
}
}
}
?> | noparking/alticcio | core/outils/exterieurs/jpgraph/src/QR/backend.inc.php | PHP | gpl-2.0 | 19,943 |
namespace Tipshare
{
partial class Tipshare
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.gbAM = new System.Windows.Forms.GroupBox();
this.tbAMUnallocatedAdj = new System.Windows.Forms.TextBox();
this.lblAMCurrentUnallocated = new System.Windows.Forms.Label();
this.tbAMUnallocatedSugg = new System.Windows.Forms.TextBox();
this.lblAMUnallocated = new System.Windows.Forms.Label();
this.lAMAdj = new System.Windows.Forms.Label();
this.lAMSugg = new System.Windows.Forms.Label();
this.lAMID = new System.Windows.Forms.Label();
this.lAMName = new System.Windows.Forms.Label();
this.gbControls = new System.Windows.Forms.GroupBox();
this.btnDistributeUnallocated = new System.Windows.Forms.Button();
this.btnSettings = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.lDate = new System.Windows.Forms.Label();
this.lDay = new System.Windows.Forms.Label();
this.bDayBack = new System.Windows.Forms.Button();
this.bDayForward = new System.Windows.Forms.Button();
this.gbPM = new System.Windows.Forms.GroupBox();
this.tbPMUnallocatedAdj = new System.Windows.Forms.TextBox();
this.lblPMCurrentUnallocated = new System.Windows.Forms.Label();
this.tbPMUnallocatedSugg = new System.Windows.Forms.TextBox();
this.lblPMUnallocated = new System.Windows.Forms.Label();
this.lPMAdj = new System.Windows.Forms.Label();
this.lPMSugg = new System.Windows.Forms.Label();
this.lPMID = new System.Windows.Forms.Label();
this.lPMName = new System.Windows.Forms.Label();
this.msMenu = new System.Windows.Forms.MenuStrip();
this.mFile = new System.Windows.Forms.ToolStripMenuItem();
this.miJump = new System.Windows.Forms.ToolStripMenuItem();
this.miPrint = new System.Windows.Forms.ToolStripMenuItem();
this.miExit = new System.Windows.Forms.ToolStripMenuItem();
this.mAbout = new System.Windows.Forms.ToolStripMenuItem();
this.miHelp = new System.Windows.Forms.ToolStripMenuItem();
this.miAbout = new System.Windows.Forms.ToolStripMenuItem();
this.tTimer = new System.Windows.Forms.Timer(this.components);
this.gbTotals = new System.Windows.Forms.GroupBox();
this.lTotalSugg = new System.Windows.Forms.Label();
this.lTotalAdj = new System.Windows.Forms.Label();
this.lLabTotSug = new System.Windows.Forms.Label();
this.lTotalAMSugg = new System.Windows.Forms.Label();
this.lTotalAMAdj = new System.Windows.Forms.Label();
this.lLabTotAMSugg = new System.Windows.Forms.Label();
this.lTotalPMSugg = new System.Windows.Forms.Label();
this.lTotalPMAdj = new System.Windows.Forms.Label();
this.lLabTotPMSugg = new System.Windows.Forms.Label();
this.gbAM.SuspendLayout();
this.gbControls.SuspendLayout();
this.gbPM.SuspendLayout();
this.msMenu.SuspendLayout();
this.gbTotals.SuspendLayout();
this.SuspendLayout();
//
// gbAM
//
this.gbAM.Controls.Add(this.tbAMUnallocatedAdj);
this.gbAM.Controls.Add(this.lblAMCurrentUnallocated);
this.gbAM.Controls.Add(this.tbAMUnallocatedSugg);
this.gbAM.Controls.Add(this.lblAMUnallocated);
this.gbAM.Controls.Add(this.lAMAdj);
this.gbAM.Controls.Add(this.lAMSugg);
this.gbAM.Controls.Add(this.lAMID);
this.gbAM.Controls.Add(this.lAMName);
this.gbAM.Location = new System.Drawing.Point(12, 27);
this.gbAM.Name = "gbAM";
this.gbAM.Size = new System.Drawing.Size(318, 430);
this.gbAM.TabIndex = 1;
this.gbAM.TabStop = false;
this.gbAM.Text = "AM Declarations";
//
// tbAMUnallocatedAdj
//
this.tbAMUnallocatedAdj.Location = new System.Drawing.Point(277, 404);
this.tbAMUnallocatedAdj.Name = "tbAMUnallocatedAdj";
this.tbAMUnallocatedAdj.ReadOnly = true;
this.tbAMUnallocatedAdj.Size = new System.Drawing.Size(35, 20);
this.tbAMUnallocatedAdj.TabIndex = 14;
//
// lblAMCurrentUnallocated
//
this.lblAMCurrentUnallocated.AutoSize = true;
this.lblAMCurrentUnallocated.Location = new System.Drawing.Point(167, 407);
this.lblAMCurrentUnallocated.Name = "lblAMCurrentUnallocated";
this.lblAMCurrentUnallocated.Size = new System.Drawing.Size(104, 13);
this.lblAMCurrentUnallocated.TabIndex = 13;
this.lblAMCurrentUnallocated.Text = "Current Unallocated:";
//
// tbAMUnallocatedSugg
//
this.tbAMUnallocatedSugg.Location = new System.Drawing.Point(118, 404);
this.tbAMUnallocatedSugg.Name = "tbAMUnallocatedSugg";
this.tbAMUnallocatedSugg.ReadOnly = true;
this.tbAMUnallocatedSugg.Size = new System.Drawing.Size(35, 20);
this.tbAMUnallocatedSugg.TabIndex = 12;
//
// lblAMUnallocated
//
this.lblAMUnallocated.AutoSize = true;
this.lblAMUnallocated.Location = new System.Drawing.Point(6, 407);
this.lblAMUnallocated.Name = "lblAMUnallocated";
this.lblAMUnallocated.Size = new System.Drawing.Size(106, 13);
this.lblAMUnallocated.TabIndex = 10;
this.lblAMUnallocated.Text = "Starting Unallocated:";
//
// lAMAdj
//
this.lAMAdj.AutoSize = true;
this.lAMAdj.Location = new System.Drawing.Point(276, 16);
this.lAMAdj.Name = "lAMAdj";
this.lAMAdj.Size = new System.Drawing.Size(22, 13);
this.lAMAdj.TabIndex = 9;
this.lAMAdj.Text = "Adj";
//
// lAMSugg
//
this.lAMSugg.AutoSize = true;
this.lAMSugg.Location = new System.Drawing.Point(216, 16);
this.lAMSugg.Name = "lAMSugg";
this.lAMSugg.Size = new System.Drawing.Size(32, 13);
this.lAMSugg.TabIndex = 8;
this.lAMSugg.Text = "Sugg";
//
// lAMID
//
this.lAMID.AutoSize = true;
this.lAMID.Location = new System.Drawing.Point(169, 16);
this.lAMID.Name = "lAMID";
this.lAMID.Size = new System.Drawing.Size(18, 13);
this.lAMID.TabIndex = 7;
this.lAMID.Text = "ID";
//
// lAMName
//
this.lAMName.AutoSize = true;
this.lAMName.Location = new System.Drawing.Point(69, 16);
this.lAMName.Name = "lAMName";
this.lAMName.Size = new System.Drawing.Size(35, 13);
this.lAMName.TabIndex = 6;
this.lAMName.Text = "Name";
//
// gbControls
//
this.gbControls.Controls.Add(this.btnDistributeUnallocated);
this.gbControls.Controls.Add(this.btnSettings);
this.gbControls.Controls.Add(this.btnReset);
this.gbControls.Controls.Add(this.btnSave);
this.gbControls.Controls.Add(this.lDate);
this.gbControls.Controls.Add(this.lDay);
this.gbControls.Controls.Add(this.bDayBack);
this.gbControls.Controls.Add(this.bDayForward);
this.gbControls.Location = new System.Drawing.Point(12, 518);
this.gbControls.Name = "gbControls";
this.gbControls.Size = new System.Drawing.Size(648, 62);
this.gbControls.TabIndex = 2;
this.gbControls.TabStop = false;
this.gbControls.Text = "Controls";
//
// btnDistributeUnallocated
//
this.btnDistributeUnallocated.Enabled = false;
this.btnDistributeUnallocated.Location = new System.Drawing.Point(123, 19);
this.btnDistributeUnallocated.Name = "btnDistributeUnallocated";
this.btnDistributeUnallocated.Size = new System.Drawing.Size(111, 35);
this.btnDistributeUnallocated.TabIndex = 13;
this.btnDistributeUnallocated.Text = "Distribute Unallocated";
this.btnDistributeUnallocated.UseVisualStyleBackColor = true;
this.btnDistributeUnallocated.Click += new System.EventHandler(this.btnDistributeUnallocated_Click);
//
// btnSettings
//
this.btnSettings.Location = new System.Drawing.Point(6, 19);
this.btnSettings.Name = "btnSettings";
this.btnSettings.Size = new System.Drawing.Size(111, 35);
this.btnSettings.TabIndex = 12;
this.btnSettings.Text = "Advanced Settings";
this.btnSettings.UseVisualStyleBackColor = true;
this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click);
//
// btnReset
//
this.btnReset.Location = new System.Drawing.Point(414, 19);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(111, 35);
this.btnReset.TabIndex = 11;
this.btnReset.Text = "Reset Day";
this.btnReset.UseVisualStyleBackColor = true;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(531, 19);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(111, 35);
this.btnSave.TabIndex = 10;
this.btnSave.Text = "SAVE";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// lDate
//
this.lDate.AutoSize = true;
this.lDate.Location = new System.Drawing.Point(297, 19);
this.lDate.Name = "lDate";
this.lDate.Size = new System.Drawing.Size(64, 13);
this.lDate.TabIndex = 9;
this.lDate.Text = "##DATE##";
//
// lDay
//
this.lDay.AutoSize = true;
this.lDay.Location = new System.Drawing.Point(308, 41);
this.lDay.Name = "lDay";
this.lDay.Size = new System.Drawing.Size(26, 13);
this.lDay.TabIndex = 8;
this.lDay.Text = "Day";
//
// bDayBack
//
this.bDayBack.Location = new System.Drawing.Point(263, 35);
this.bDayBack.Name = "bDayBack";
this.bDayBack.Size = new System.Drawing.Size(39, 23);
this.bDayBack.TabIndex = 1;
this.bDayBack.Text = "<<";
this.bDayBack.UseVisualStyleBackColor = true;
this.bDayBack.Click += new System.EventHandler(this.bDayBack_Click);
//
// bDayForward
//
this.bDayForward.Location = new System.Drawing.Point(340, 36);
this.bDayForward.Name = "bDayForward";
this.bDayForward.Size = new System.Drawing.Size(39, 23);
this.bDayForward.TabIndex = 0;
this.bDayForward.Text = ">>";
this.bDayForward.UseVisualStyleBackColor = true;
this.bDayForward.Click += new System.EventHandler(this.bDayForward_Click);
//
// gbPM
//
this.gbPM.Controls.Add(this.tbPMUnallocatedAdj);
this.gbPM.Controls.Add(this.lblPMCurrentUnallocated);
this.gbPM.Controls.Add(this.tbPMUnallocatedSugg);
this.gbPM.Controls.Add(this.lblPMUnallocated);
this.gbPM.Controls.Add(this.lPMAdj);
this.gbPM.Controls.Add(this.lPMSugg);
this.gbPM.Controls.Add(this.lPMID);
this.gbPM.Controls.Add(this.lPMName);
this.gbPM.Location = new System.Drawing.Point(342, 27);
this.gbPM.Name = "gbPM";
this.gbPM.Size = new System.Drawing.Size(318, 430);
this.gbPM.TabIndex = 4;
this.gbPM.TabStop = false;
this.gbPM.Text = "PM Declarations";
//
// tbPMUnallocatedAdj
//
this.tbPMUnallocatedAdj.Location = new System.Drawing.Point(277, 404);
this.tbPMUnallocatedAdj.Name = "tbPMUnallocatedAdj";
this.tbPMUnallocatedAdj.ReadOnly = true;
this.tbPMUnallocatedAdj.Size = new System.Drawing.Size(35, 20);
this.tbPMUnallocatedAdj.TabIndex = 18;
//
// lblPMCurrentUnallocated
//
this.lblPMCurrentUnallocated.AutoSize = true;
this.lblPMCurrentUnallocated.Location = new System.Drawing.Point(167, 407);
this.lblPMCurrentUnallocated.Name = "lblPMCurrentUnallocated";
this.lblPMCurrentUnallocated.Size = new System.Drawing.Size(104, 13);
this.lblPMCurrentUnallocated.TabIndex = 17;
this.lblPMCurrentUnallocated.Text = "Current Unallocated:";
//
// tbPMUnallocatedSugg
//
this.tbPMUnallocatedSugg.Location = new System.Drawing.Point(115, 404);
this.tbPMUnallocatedSugg.Name = "tbPMUnallocatedSugg";
this.tbPMUnallocatedSugg.ReadOnly = true;
this.tbPMUnallocatedSugg.Size = new System.Drawing.Size(35, 20);
this.tbPMUnallocatedSugg.TabIndex = 15;
//
// lblPMUnallocated
//
this.lblPMUnallocated.AutoSize = true;
this.lblPMUnallocated.Location = new System.Drawing.Point(6, 407);
this.lblPMUnallocated.Name = "lblPMUnallocated";
this.lblPMUnallocated.Size = new System.Drawing.Size(106, 13);
this.lblPMUnallocated.TabIndex = 14;
this.lblPMUnallocated.Text = "Starting Unallocated:";
//
// lPMAdj
//
this.lPMAdj.AutoSize = true;
this.lPMAdj.Location = new System.Drawing.Point(276, 16);
this.lPMAdj.Name = "lPMAdj";
this.lPMAdj.Size = new System.Drawing.Size(22, 13);
this.lPMAdj.TabIndex = 13;
this.lPMAdj.Text = "Adj";
//
// lPMSugg
//
this.lPMSugg.AutoSize = true;
this.lPMSugg.Location = new System.Drawing.Point(216, 16);
this.lPMSugg.Name = "lPMSugg";
this.lPMSugg.Size = new System.Drawing.Size(32, 13);
this.lPMSugg.TabIndex = 12;
this.lPMSugg.Text = "Sugg";
//
// lPMID
//
this.lPMID.AutoSize = true;
this.lPMID.Location = new System.Drawing.Point(169, 16);
this.lPMID.Name = "lPMID";
this.lPMID.Size = new System.Drawing.Size(18, 13);
this.lPMID.TabIndex = 11;
this.lPMID.Text = "ID";
//
// lPMName
//
this.lPMName.AutoSize = true;
this.lPMName.Location = new System.Drawing.Point(69, 16);
this.lPMName.Name = "lPMName";
this.lPMName.Size = new System.Drawing.Size(35, 13);
this.lPMName.TabIndex = 10;
this.lPMName.Text = "Name";
//
// msMenu
//
this.msMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mFile,
this.mAbout});
this.msMenu.Location = new System.Drawing.Point(0, 0);
this.msMenu.Name = "msMenu";
this.msMenu.Size = new System.Drawing.Size(672, 24);
this.msMenu.TabIndex = 5;
this.msMenu.Text = "MenuStrip";
//
// mFile
//
this.mFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.miJump,
this.miPrint,
this.miExit});
this.mFile.Name = "mFile";
this.mFile.Size = new System.Drawing.Size(37, 20);
this.mFile.Text = "File";
//
// miJump
//
this.miJump.Name = "miJump";
this.miJump.Size = new System.Drawing.Size(148, 22);
this.miJump.Text = "Jump to day...";
//
// miPrint
//
this.miPrint.Name = "miPrint";
this.miPrint.Size = new System.Drawing.Size(148, 22);
this.miPrint.Text = "Print Today";
this.miPrint.Click += new System.EventHandler(this.miPrint_Click);
//
// miExit
//
this.miExit.Name = "miExit";
this.miExit.Size = new System.Drawing.Size(148, 22);
this.miExit.Text = "Exit";
this.miExit.Click += new System.EventHandler(this.miExit_Click);
//
// mAbout
//
this.mAbout.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.miHelp,
this.miAbout});
this.mAbout.Name = "mAbout";
this.mAbout.Size = new System.Drawing.Size(52, 20);
this.mAbout.Text = "About";
//
// miHelp
//
this.miHelp.Name = "miHelp";
this.miHelp.Size = new System.Drawing.Size(107, 22);
this.miHelp.Text = "Help";
this.miHelp.Click += new System.EventHandler(this.miHelp_Click);
//
// miAbout
//
this.miAbout.Name = "miAbout";
this.miAbout.Size = new System.Drawing.Size(107, 22);
this.miAbout.Text = "About";
this.miAbout.Click += new System.EventHandler(this.miAbout_Click);
//
// tTimer
//
this.tTimer.Tick += new System.EventHandler(this.tTimer_Tick);
//
// gbTotals
//
this.gbTotals.Controls.Add(this.lTotalSugg);
this.gbTotals.Controls.Add(this.lTotalAdj);
this.gbTotals.Controls.Add(this.lLabTotSug);
this.gbTotals.Controls.Add(this.lTotalAMSugg);
this.gbTotals.Controls.Add(this.lTotalAMAdj);
this.gbTotals.Controls.Add(this.lLabTotAMSugg);
this.gbTotals.Controls.Add(this.lTotalPMSugg);
this.gbTotals.Controls.Add(this.lTotalPMAdj);
this.gbTotals.Controls.Add(this.lLabTotPMSugg);
this.gbTotals.Location = new System.Drawing.Point(12, 463);
this.gbTotals.Name = "gbTotals";
this.gbTotals.Size = new System.Drawing.Size(648, 49);
this.gbTotals.TabIndex = 6;
this.gbTotals.TabStop = false;
this.gbTotals.Text = "Totals";
//
// lTotalSugg
//
this.lTotalSugg.AutoSize = true;
this.lTotalSugg.Location = new System.Drawing.Point(285, 29);
this.lTotalSugg.Name = "lTotalSugg";
this.lTotalSugg.Size = new System.Drawing.Size(21, 13);
this.lTotalSugg.TabIndex = 8;
this.lTotalSugg.Text = "##";
//
// lTotalAdj
//
this.lTotalAdj.AutoSize = true;
this.lTotalAdj.Location = new System.Drawing.Point(348, 29);
this.lTotalAdj.Name = "lTotalAdj";
this.lTotalAdj.Size = new System.Drawing.Size(21, 13);
this.lTotalAdj.TabIndex = 7;
this.lTotalAdj.Text = "##";
//
// lLabTotSug
//
this.lLabTotSug.AutoSize = true;
this.lLabTotSug.Location = new System.Drawing.Point(285, 16);
this.lLabTotSug.Name = "lLabTotSug";
this.lLabTotSug.Size = new System.Drawing.Size(79, 13);
this.lLabTotSug.TabIndex = 6;
this.lLabTotSug.Text = "Total Sugg/Adj";
//
// lTotalAMSugg
//
this.lTotalAMSugg.AutoSize = true;
this.lTotalAMSugg.Location = new System.Drawing.Point(32, 29);
this.lTotalAMSugg.Name = "lTotalAMSugg";
this.lTotalAMSugg.Size = new System.Drawing.Size(21, 13);
this.lTotalAMSugg.TabIndex = 5;
this.lTotalAMSugg.Text = "##";
//
// lTotalAMAdj
//
this.lTotalAMAdj.AutoSize = true;
this.lTotalAMAdj.Location = new System.Drawing.Point(83, 29);
this.lTotalAMAdj.Name = "lTotalAMAdj";
this.lTotalAMAdj.Size = new System.Drawing.Size(21, 13);
this.lTotalAMAdj.TabIndex = 4;
this.lTotalAMAdj.Text = "##";
//
// lLabTotAMSugg
//
this.lLabTotAMSugg.AutoSize = true;
this.lLabTotAMSugg.Location = new System.Drawing.Point(19, 16);
this.lLabTotAMSugg.Name = "lLabTotAMSugg";
this.lLabTotAMSugg.Size = new System.Drawing.Size(98, 13);
this.lLabTotAMSugg.TabIndex = 3;
this.lLabTotAMSugg.Text = "Total AM Sugg/Adj";
//
// lTotalPMSugg
//
this.lTotalPMSugg.AutoSize = true;
this.lTotalPMSugg.Location = new System.Drawing.Point(545, 29);
this.lTotalPMSugg.Name = "lTotalPMSugg";
this.lTotalPMSugg.Size = new System.Drawing.Size(21, 13);
this.lTotalPMSugg.TabIndex = 2;
this.lTotalPMSugg.Text = "##";
//
// lTotalPMAdj
//
this.lTotalPMAdj.AutoSize = true;
this.lTotalPMAdj.Location = new System.Drawing.Point(596, 29);
this.lTotalPMAdj.Name = "lTotalPMAdj";
this.lTotalPMAdj.Size = new System.Drawing.Size(21, 13);
this.lTotalPMAdj.TabIndex = 1;
this.lTotalPMAdj.Text = "##";
//
// lLabTotPMSugg
//
this.lLabTotPMSugg.AutoSize = true;
this.lLabTotPMSugg.Location = new System.Drawing.Point(530, 16);
this.lLabTotPMSugg.Name = "lLabTotPMSugg";
this.lLabTotPMSugg.Size = new System.Drawing.Size(98, 13);
this.lLabTotPMSugg.TabIndex = 0;
this.lLabTotPMSugg.Text = "Total PM Sugg/Adj";
//
// Tipshare
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(672, 592);
this.Controls.Add(this.gbTotals);
this.Controls.Add(this.gbPM);
this.Controls.Add(this.gbControls);
this.Controls.Add(this.gbAM);
this.Controls.Add(this.msMenu);
this.MainMenuStrip = this.msMenu;
this.Name = "Tipshare";
this.Text = "Tipshare##VERSION## - ##STORENAME##";
this.Load += new System.EventHandler(this.Tipshare_Load);
this.gbAM.ResumeLayout(false);
this.gbAM.PerformLayout();
this.gbControls.ResumeLayout(false);
this.gbControls.PerformLayout();
this.gbPM.ResumeLayout(false);
this.gbPM.PerformLayout();
this.msMenu.ResumeLayout(false);
this.msMenu.PerformLayout();
this.gbTotals.ResumeLayout(false);
this.gbTotals.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.GroupBox gbAM;
private System.Windows.Forms.GroupBox gbControls;
private System.Windows.Forms.GroupBox gbPM;
private System.Windows.Forms.Button bDayBack;
private System.Windows.Forms.Button bDayForward;
private System.Windows.Forms.Label lAMName;
private System.Windows.Forms.Label lAMAdj;
private System.Windows.Forms.Label lAMSugg;
private System.Windows.Forms.Label lAMID;
private System.Windows.Forms.Label lDate;
private System.Windows.Forms.Label lDay;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.Button btnDistributeUnallocated;
private System.Windows.Forms.Button btnSettings;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Label lPMAdj;
private System.Windows.Forms.Label lPMSugg;
private System.Windows.Forms.Label lPMID;
private System.Windows.Forms.Label lPMName;
private System.Windows.Forms.MenuStrip msMenu;
private System.Windows.Forms.ToolStripMenuItem mFile;
private System.Windows.Forms.ToolStripMenuItem miJump;
private System.Windows.Forms.ToolStripMenuItem miPrint;
private System.Windows.Forms.ToolStripMenuItem miExit;
private System.Windows.Forms.ToolStripMenuItem mAbout;
private System.Windows.Forms.ToolStripMenuItem miHelp;
private System.Windows.Forms.ToolStripMenuItem miAbout;
private System.Windows.Forms.Timer tTimer;
private System.Windows.Forms.GroupBox gbTotals;
private System.Windows.Forms.Label lTotalPMAdj;
private System.Windows.Forms.Label lLabTotPMSugg;
private System.Windows.Forms.Label lTotalAMSugg;
private System.Windows.Forms.Label lTotalAMAdj;
private System.Windows.Forms.Label lLabTotAMSugg;
private System.Windows.Forms.Label lTotalPMSugg;
private System.Windows.Forms.Label lTotalSugg;
private System.Windows.Forms.Label lTotalAdj;
private System.Windows.Forms.Label lLabTotSug;
private System.Windows.Forms.TextBox tbAMUnallocatedSugg;
private System.Windows.Forms.Label lblAMUnallocated;
private System.Windows.Forms.TextBox tbPMUnallocatedSugg;
private System.Windows.Forms.Label lblPMUnallocated;
private System.Windows.Forms.TextBox tbAMUnallocatedAdj;
private System.Windows.Forms.Label lblAMCurrentUnallocated;
private System.Windows.Forms.TextBox tbPMUnallocatedAdj;
private System.Windows.Forms.Label lblPMCurrentUnallocated;
}
}
| nsherrill/Consulting | Concord/Tipshare/Tipshare.Designer.cs | C# | gpl-2.0 | 27,660 |
using SFML.Graphics;
using SFML.Window;
namespace LudumDare.ParticleSystem
{
public class Emitter
{
public Vector2f Position;
public int ParticlesSpawnRate;
public float Spread;
public Color Color;
}
} | WebFreak001/LD-30 | ParticleSystem/Emitter.cs | C# | gpl-2.0 | 249 |
/*
Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
(c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#include <cmath>
#include <QDebug>
#include <QString>
#include "common.h"
#include "point.h"
Point::Point(int x, int y)
: x(x), y(y) {
}
Point::Point(const QPoint& p)
: x(p.x()), y(p.y()) {
}
Point::Point() {
}
Point::Point(const QString& str, int ysize) {
x = y = -1;
int length = str.length();
if(length == 0)
return;
if(str[0].isLetter()) {
char c = str[0].toAscii();
if(c >= 'a' && c <= 'z')
x = c-'a';
else if(c >= 'A' && c <= 'Z')
x = c-'A';
if(length>1)
y = ysize - str.mid(1).toInt();
}
else
y = ysize - str.toInt();
}
QString Point::row(int ysize) const {
if (y != -1)
return QString::number(ysize - y);
else
return QString();
}
QString Point::numcol(int xsize) const {
if (x != -1)
return QString::number(xsize - x);
else
return QString();
}
QString Point::col() const {
if (x != -1) {
if(x >= 26)
return QChar(static_cast<char>(x - 26 + 'A'));
else
return QChar(static_cast<char>(x + 'a'));
}
else
return QString();
}
QString Point::alpharow() const {
if (y != -1) {
if(y >= 26)
return QChar(static_cast<char>(y - 26 + 'A'));
else
return QChar(static_cast<char>(y + 'a'));
}
else
return QString();
}
QString Point::toString(int ysize) const {
return col() + row(ysize);
}
Point Point::operator+(const Point& other) const {
return Point(x + other.x, y + other.y);
}
Point Point::operator+=(const Point& other) {
return *this = *this + other;
}
Point Point::operator-() const {
return Point(-x, -y);
}
Point Point::operator-(const Point& other) const {
return Point(x - other.x, y - other.y);
}
Point Point::operator*(int n) const {
return Point(x * n, y * n);
}
Point Point::operator/(int n) const {
return Point(x / n, y / n);
}
Point Point::div(int n) const {
return Point(x >= 0 ? x / n : x / n - 1,
y >= 0 ? y / n : y / n - 1);
}
bool Point::operator==(const Point& other) const {
return x == other.x && y == other.y;
}
bool Point::operator!=(const Point& other) const {
return !(*this == other);
}
bool Point::operator<(const Point& other) const {
return y < other.y || (y == other.y && x < other.x);
}
bool Point::operator<=(const Point& other) const {
return y <= other.y || (y == other.y && x <= other.x);
}
bool Point::resembles(const Point& other) const {
return (other.x == -1 || x == other.x) &&
(other.y == -1 || y == other.y);
}
Point::operator QPoint() const {
return QPoint(x,y);
}
Point Point::normalizeInfinity() const {
return Point(
normalizeInfinityHelper(x),
normalizeInfinityHelper(y)
);
}
double Point::norm() const {
return sqrt((double)(x*x + y*y));
}
int Point::normalizeInfinityHelper(int n) const {
if (n == 0)
return 0;
else
return n > 0 ? 1 : -1;
}
QDebug operator<<(QDebug dbg, const Point& p) {
dbg << "(" << (p.x == -1 ? QString("?") : QString::number(p.x))
<< ", " << (p.y == -1 ? QString("?") : QString::number(p.y)) << ")";
return dbg;
}
| ruphy/tagua | src/point.cpp | C++ | gpl-2.0 | 3,545 |
/*
* Freeplane - mind map editor
* Copyright (C) 2008 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitry Polivaev
*
* This file is modified by Felix Natter in 2013.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.freeplane.core.resources.components;
import javax.swing.JButton;
import com.jgoodies.forms.builder.DefaultFormBuilder;
public class ButtonProperty extends PropertyBean implements IPropertyControl {
final JButton mButton;
/**
*/
public ButtonProperty(final String name, JButton button) {
super(name);
mButton = button;
}
@Override
public String getValue() {
return "";
}
public void appendToForm(final DefaultFormBuilder builder) {
appendToForm(builder, mButton);
}
public void setEnabled(final boolean pEnabled) {
mButton.setEnabled(pEnabled);
super.setEnabled(pEnabled);
}
@Override
public void setValue(final String value) {
}
public void setToolTipText(String text) {
mButton.setToolTipText(text);
}
}
| freeplane/freeplane | freeplane/src/main/java/org/freeplane/core/resources/components/ButtonProperty.java | Java | gpl-2.0 | 1,600 |
// logs.cpp
//
// Rivendell web service portal -- Log services
//
// (C) Copyright 2013,2016 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <rdcreate_log.h>
#include <rddb.h>
#include <rdformpost.h>
#include <rdweb.h>
#include <rdsvc.h>
#include <rduser.h>
#include <rdlog.h>
#include <rdlog_event.h>
#include <rdlog_line.h>
#include <rdconf.h>
#include <rdescape_string.h>
#include <rdxport.h>
void Xport::AddLog()
{
QString log_name;
QString service_name;
//
// Get Arguments
//
if(!xport_post->getValue("LOG_NAME",&log_name)) {
XmlExit("Missing LOG_NAME",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("SERVICE_NAME",&service_name)) {
XmlExit("Missing SERVICE_NAME",400,"logs.cpp",LINE_NUMBER);
}
RDSvc *svc=new RDSvc(service_name);
if(!svc->exists()) {
XmlExit("No such service",404,"logs.cpp",LINE_NUMBER);
}
//
// Verify User Perms
//
if(!xport_user->createLog()) {
XmlExit("Unauthorized",404,"logs.cpp",LINE_NUMBER);
}
RDLog *log=new RDLog(log_name);
if(!log->exists()) {
delete log;
log=new RDLog(log_name,true);
if(!log->exists()) {
delete log;
XmlExit("Unable to create log",500,"logs.cpp",LINE_NUMBER);
}
log->setOriginUser(xport_user->name());
log->setDescription("[new log]");
log->setService(service_name);
}
delete log;
RDCreateLogTable(RDLog::tableName(log_name));
XmlExit("OK",200,"logs.cpp",LINE_NUMBER);
}
void Xport::DeleteLog()
{
QString log_name;
//
// Get Arguments
//
if(!xport_post->getValue("LOG_NAME",&log_name)) {
XmlExit("Missing LOG_NAME",400,"logs.cpp",LINE_NUMBER);
}
//
// Verify User Perms
//
if(!xport_user->deleteLog()) {
XmlExit("Unauthorized",404,"logs.cpp",LINE_NUMBER);
}
RDLog *log=new RDLog(log_name);
if(log->exists()) {
if(!log->remove(xport_station,xport_user,xport_config)) {
delete log;
XmlExit("Unable to delete log",500,"logs.cpp",LINE_NUMBER);
}
}
delete log;
XmlExit("OK",200,"logs.cpp",LINE_NUMBER);
}
void Xport::ListLogs()
{
QString sql;
RDSqlQuery *q;
RDLog *log;
QString service_name="";
QString log_name="";
QString trackable;
//
// Get Options
//
xport_post->getValue("SERVICE_NAME",&service_name);
xport_post->getValue("LOG_NAME",&log_name);
xport_post->getValue("TRACKABLE",&trackable);
//
// Generate Log List
//
sql="select NAME from LOGS";
if((!service_name.isEmpty())||(!log_name.isEmpty())||(trackable=="1")) {
sql+=" where";
if(!log_name.isEmpty()) {
sql+=" (NAME=\""+RDEscapeString(log_name)+"\")&&";
}
if(!service_name.isEmpty()) {
sql+=" (SERVICE=\""+RDEscapeString(service_name)+"\")&&";
}
if(trackable=="1") {
sql+=" (SCHEDULED_TRACKS>0)&&";
}
sql=sql.left(sql.length()-2);
}
sql+=" order by NAME";
q=new RDSqlQuery(sql);
//
// Process Request
//
printf("Content-type: application/xml\n");
printf("Status: 200\n\n");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("<logList>\n");
while(q->next()) {
log=new RDLog(q->value(0).toString());
printf("%s",(const char *)log->xml());
delete log;
}
printf("</logList>\n");
delete q;
Exit(0);
}
void Xport::ListLog()
{
RDLog *log;
QString name="";
//
// Get Options
//
xport_post->getValue("NAME",&name);
//
// Verify that log exists
//
log=new RDLog(name);
if(!log->exists()) {
delete log;
XmlExit("No such log",404,"logs.cpp",LINE_NUMBER);
}
//
// Generate Log Listing
//
RDLogEvent *log_event=log->createLogEvent();
log_event->load(true);
//
// Process Request
//
printf("Content-type: application/xml\n");
printf("Status: 200\n\n");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("%s\n",(const char *)log_event->xml());
Exit(0);
}
void Xport::SaveLog()
{
//
// Verify User Perms
//
if((!xport_user->addtoLog())||(!xport_user->removefromLog())||(!xport_user->arrangeLog())) {
XmlExit("No user privilege",404,"logs.cpp",LINE_NUMBER);
}
QString log_name;
QString service_name;
QString description;
QDate purge_date;
bool auto_refresh;
QDate start_date;
QDate end_date;
int line_quantity;
//
// Header Data
//
if(!xport_post->getValue("LOG_NAME",&log_name)) {
XmlExit("Missing LOG_NAME",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("SERVICE_NAME",&service_name)) {
XmlExit("Missing SERVICE_NAME",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("DESCRIPTION",&description)) {
XmlExit("Missing DESCRIPTION",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("PURGE_DATE",&purge_date)) {
XmlExit("Missing PURGE_DATE",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("AUTO_REFRESH",&auto_refresh)) {
XmlExit("Missing AUTO_REFRESH",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("START_DATE",&start_date)) {
XmlExit("Missing START_DATE",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("END_DATE",&end_date)) {
XmlExit("Missing END_DATE",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue("LINE_QUANTITY",&line_quantity)) {
XmlExit("Missing LINE_QUANTITY",400,"logs.cpp",LINE_NUMBER);
}
//
// Logline Data
//
RDLogEvent *logevt=new RDLogEvent(RDLog::tableName(log_name));
for(int i=0;i<line_quantity;i++) {
logevt->insert(i,1);
RDLogLine *ll=logevt->logLine(i);
QString line=QString().sprintf("LINE%d",i);
QString str;
int integer1;
int integer2;
QDateTime datetime;
QTime time;
bool state;
bool ok=false;
if(!xport_post->getValue(line+"_ID",&integer1,&ok)) {
XmlExit("Missing "+line+"_ID",400,"logs.cpp",LINE_NUMBER);
}
if(!ok) {
XmlExit("Invalid "+line+"_ID",400,"logs.cpp",LINE_NUMBER);
}
ll->setId(integer1);
if(!xport_post->getValue(line+"_TYPE",&integer1)) {
XmlExit("Missing "+line+"_TYPE",400,"logs.cpp",LINE_NUMBER);
}
ll->setType((RDLogLine::Type)integer1);
if(!xport_post->getValue(line+"_CART_NUMBER",&integer1)) {
XmlExit("Missing "+line+"_CART_NUMBER",400,"logs.cpp",LINE_NUMBER);
}
ll->setCartNumber(integer1);
if(!xport_post->getValue(line+"_TIME_TYPE",&integer2)) {
XmlExit("Missing "+line+"_TIME_TYPE",400,"logs.cpp",LINE_NUMBER);
}
ll->setTimeType((RDLogLine::TimeType)integer2);
if(!xport_post->getValue(line+"_START_TIME",&integer1)) {
XmlExit("Missing "+line+"_START_TIME",400,"logs.cpp",LINE_NUMBER);
}
if(ll->timeType()==RDLogLine::Hard) {
ll->setStartTime(RDLogLine::Logged,QTime().addMSecs(integer1));
}
else {
ll->setStartTime(RDLogLine::Predicted,QTime().addMSecs(integer1));
}
if(!xport_post->getValue(line+"_GRACE_TIME",&integer1)) {
XmlExit("Missing "+line+"_GRACE_TIME",400,"logs.cpp",LINE_NUMBER);
}
ll->setGraceTime(integer1);
if(!xport_post->getValue(line+"_TRANS_TYPE",&str)) {
XmlExit("Missing "+line+"_TRANS_TYPE",400,"logs.cpp",LINE_NUMBER);
}
integer1=-1;
if(str.lower()=="play") {
integer1=RDLogLine::Play;
}
if(str.lower()=="segue") {
integer1=RDLogLine::Segue;
}
if(str.lower()=="stop") {
integer1=RDLogLine::Stop;
}
if(integer1<0) {
XmlExit("Invalid transition type in "+line+"_TRANS_TYPE",400,
"logs.cpp",LINE_NUMBER);
}
ll->setTransType((RDLogLine::TransType)integer1);
if(!xport_post->getValue(line+"_START_POINT",&integer1)) {
XmlExit("Missing "+line+"_START_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setStartPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_END_POINT",&integer1)) {
XmlExit("Missing "+line+"_END_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setEndPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_SEGUE_START_POINT",&integer1)) {
XmlExit("Missing "+line+"_SEGUE_START_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setSegueStartPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_SEGUE_END_POINT",&integer1)) {
XmlExit("Missing "+line+"_SEGUE_END_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setSegueEndPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_FADEUP_POINT",&integer1)) {
XmlExit("Missing "+line+"_FADEUP_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setFadeupPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_FADEUP_GAIN",&integer1)) {
XmlExit("Missing "+line+"_FADEUP_GAIN",400,"logs.cpp",LINE_NUMBER);
}
ll->setFadeupGain(integer1);
if(!xport_post->getValue(line+"_FADEDOWN_POINT",&integer1)) {
XmlExit("Missing "+line+"_FADEDOWN_POINT",400,"logs.cpp",LINE_NUMBER);
}
ll->setFadedownPoint(integer1,RDLogLine::LogPointer);
if(!xport_post->getValue(line+"_FADEDOWN_GAIN",&integer1)) {
XmlExit("Missing "+line+"_FADEDOWN_GAIN",400,"logs.cpp",LINE_NUMBER);
}
ll->setFadedownGain(integer1);
if(!xport_post->getValue(line+"_DUCK_UP_GAIN",&integer1)) {
XmlExit("Missing "+line+"_DUCK_UP_GAIN",400,"logs.cpp",LINE_NUMBER);
}
ll->setDuckUpGain(integer1);
if(!xport_post->getValue(line+"_DUCK_DOWN_GAIN",&integer1)) {
XmlExit("Missing "+line+"_DUCK_DOWN_GAIN",400,"logs.cpp",LINE_NUMBER);
}
ll->setDuckDownGain(integer1);
if(!xport_post->getValue(line+"_COMMENT",&str)) {
XmlExit("Missing "+line+"_COMMENT",400,"logs.cpp",LINE_NUMBER);
}
ll->setMarkerComment(str);
if(!xport_post->getValue(line+"_LABEL",&str)) {
XmlExit("Missing "+line+"_LABEL",400,"logs.cpp",LINE_NUMBER);
}
ll->setMarkerLabel(str);
if(!xport_post->getValue(line+"_ORIGIN_USER",&str)) {
XmlExit("Missing "+line+"_ORIGIN_USER",400,"logs.cpp",LINE_NUMBER);
}
ll->setOriginUser(str);
if(!xport_post->getValue(line+"_ORIGIN_DATETIME",&datetime)) {
XmlExit("Missing "+line+"_ORIGIN_DATETIME",400,"logs.cpp",LINE_NUMBER);
}
ll->setOriginDateTime(datetime);
if(!xport_post->getValue(line+"_EVENT_LENGTH",&integer1)) {
XmlExit("Missing "+line+"_EVENT_LENGTH",400,"logs.cpp",LINE_NUMBER);
}
ll->setEventLength(integer1);
if(!xport_post->getValue(line+"_LINK_EVENT_NAME",&str)) {
XmlExit("Missing "+line+"_LINK_EVENT_NAME",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkEventName(str);
if(!xport_post->getValue(line+"_LINK_START_TIME",&integer1)) {
XmlExit("Missing "+line+"_LINK_START_TIME",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkStartTime(QTime().addMSecs(integer1));
if(!xport_post->getValue(line+"_LINK_LENGTH",&integer1)) {
XmlExit("Missing "+line+"_LINK_LENGTH",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkLength(integer1);
if(!xport_post->getValue(line+"_LINK_START_SLOP",&integer1)) {
XmlExit("Missing "+line+"_LINK_START_SLOP",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkStartSlop(integer1);
if(!xport_post->getValue(line+"_LINK_END_SLOP",&integer1)) {
XmlExit("Missing "+line+"_LINK_END_SLOP",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkEndSlop(integer1);
if(!xport_post->getValue(line+"_LINK_ID",&integer1)) {
XmlExit("Missing "+line+"_LINK_ID",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkId(integer1);
if(!xport_post->getValue(line+"_LINK_EMBEDDED",&state)) {
XmlExit("Missing "+line+"_LINK_EMBEDDED",400,"logs.cpp",LINE_NUMBER);
}
ll->setLinkEmbedded(state);
if(!xport_post->getValue(line+"_EXT_START_TIME",&time)) {
XmlExit("Missing "+line+"_EXT_START_TIME",400,"logs.cpp",LINE_NUMBER);
}
ll->setExtStartTime(time);
if(!xport_post->getValue(line+"_EXT_CART_NAME",&str)) {
XmlExit("Missing "+line+"_EXT_CART_NAME",400,"logs.cpp",LINE_NUMBER);
}
ll->setExtCartName(str);
if(!xport_post->getValue(line+"_EXT_DATA",&str)) {
XmlExit("Missing "+line+"_EXT_DATA",400,"logs.cpp",LINE_NUMBER);
}
ll->setExtData(str);
if(!xport_post->getValue(line+"_EXT_EVENT_ID",&str)) {
XmlExit("Missing "+line+"_EXT_EVENT_ID",400,"logs.cpp",LINE_NUMBER);
}
ll->setExtEventId(str);
if(!xport_post->getValue(line+"_EXT_ANNC_TYPE",&str)) {
XmlExit("Missing "+line+"_EXT_ANNC_TYPE",400,"logs.cpp",LINE_NUMBER);
}
ll->setExtAnncType(str);
}
RDLog *log=new RDLog(log_name);
if(!log->exists()) {
XmlExit("No such log",404,"logs.cpp",LINE_NUMBER);
}
log->setService(service_name);
log->setDescription(description);
log->setPurgeDate(purge_date);
log->setAutoRefresh(auto_refresh);
log->setStartDate(start_date);
log->setEndDate(end_date);
log->setModifiedDatetime(QDateTime::currentDateTime());
logevt->save();
XmlExit(QString().sprintf("OK Saved %d events",logevt->size()),
200,"logs.cpp",LINE_NUMBER);
}
| NBassan/rivendell | web/rdxport/logs.cpp | C++ | gpl-2.0 | 13,675 |
/***************************************************************************
Copyright (C) 2003-2009 Robby Stephenson <robby@periapsis.org>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License or (at your option) version 3 or any later version *
* accepted by the membership of KDE e.V. (or its successor approved *
* by the membership of KDE e.V.), which shall act as a proxy *
* defined in Section 14 of version 3 of the license. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
***************************************************************************/
// The layout borrows heavily from kmsearchpatternedit.cpp in kmail
// which is authored by Marc Mutz <Marc@Mutz.com> under the GPL
#include "filterdialog.h"
#include "tellico_kernel.h"
#include "document.h"
#include "collection.h"
#include "fieldcompletion.h"
#include "gui/filterrulewidgetlister.h"
#include "gui/filterrulewidget.h"
#include "tellico_debug.h"
#include <KLocalizedString>
#include <KHelpClient>
#include <QGroupBox>
#include <QRadioButton>
#include <QButtonGroup>
#include <QLabel>
#include <QApplication>
#include <QFrame>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QDialogButtonBox>
using Tellico::FilterDialog;
namespace {
static const int FILTER_MIN_WIDTH = 600;
}
// modal dialog so I don't have to worry about updating stuff
// don't show apply button if not saving, i.e. just modifying existing filter
FilterDialog::FilterDialog(Mode mode_, QWidget* parent_)
: QDialog(parent_), m_filter(nullptr), m_mode(mode_), m_saveFilter(nullptr) {
setModal(true);
setWindowTitle(mode_ == CreateFilter ? i18n("Advanced Filter") : i18n("Modify Filter"));
QVBoxLayout* topLayout = new QVBoxLayout();
setLayout(topLayout);
QDialogButtonBox* buttonBox;
if(mode_ == CreateFilter) {
buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
} else {
buttonBox = new QDialogButtonBox(QDialogButtonBox::Help|QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
}
m_okButton = buttonBox->button(QDialogButtonBox::Ok);
m_applyButton = buttonBox->button(QDialogButtonBox::Apply);
connect(m_okButton, &QAbstractButton::clicked, this, &FilterDialog::slotOk);
if(m_applyButton) {
connect(m_applyButton, &QAbstractButton::clicked, this, &FilterDialog::slotApply);
}
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(buttonBox, &QDialogButtonBox::helpRequested, this, &FilterDialog::slotHelp);
QGroupBox* m_matchGroup = new QGroupBox(i18n("Filter Criteria"), this);
QVBoxLayout* vlay = new QVBoxLayout(m_matchGroup);
topLayout->addWidget(m_matchGroup);
m_matchGroup->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
m_matchAll = new QRadioButton(i18n("Match a&ll of the following"), m_matchGroup);
m_matchAny = new QRadioButton(i18n("Match an&y of the following"), m_matchGroup);
m_matchAll->setChecked(true);
vlay->addWidget(m_matchAll);
vlay->addWidget(m_matchAny);
QButtonGroup* bg = new QButtonGroup(m_matchGroup);
bg->addButton(m_matchAll);
bg->addButton(m_matchAny);
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
void (QButtonGroup::* buttonClicked)(int) = &QButtonGroup::buttonClicked;
connect(bg, buttonClicked, this, &FilterDialog::slotFilterChanged);
#else
connect(bg, &QButtonGroup::idClicked, this, &FilterDialog::slotFilterChanged);
#endif
m_ruleLister = new FilterRuleWidgetLister(m_matchGroup);
connect(m_ruleLister, &KWidgetLister::widgetRemoved, this, &FilterDialog::slotShrink);
connect(m_ruleLister, &FilterRuleWidgetLister::signalModified, this, &FilterDialog::slotFilterChanged);
m_ruleLister->setFocus();
vlay->addWidget(m_ruleLister);
QHBoxLayout* blay = new QHBoxLayout();
topLayout->addLayout(blay);
QLabel* lab = new QLabel(i18n("Filter name:"), this);
blay->addWidget(lab);
m_filterName = new QLineEdit(this);
blay->addWidget(m_filterName);
connect(m_filterName, &QLineEdit::textChanged, this, &FilterDialog::slotFilterChanged);
// only when creating a new filter can it be saved
if(m_mode == CreateFilter) {
m_saveFilter = new QPushButton(QIcon::fromTheme(QStringLiteral("view-filter")), i18n("&Save Filter"), this);
blay->addWidget(m_saveFilter);
m_saveFilter->setEnabled(false);
connect(m_saveFilter, &QAbstractButton::clicked, this, &FilterDialog::slotSaveFilter);
m_applyButton->setEnabled(false);
}
m_okButton->setEnabled(false); // disable at start
buttonBox->button(QDialogButtonBox::Cancel)->setDefault(true);
setMinimumWidth(qMax(minimumWidth(), FILTER_MIN_WIDTH));
topLayout->addWidget(buttonBox);
}
Tellico::FilterPtr FilterDialog::currentFilter(bool alwaysCreateNew_) {
FilterPtr newFilter(new Filter(Filter::MatchAny));
if(m_matchAll->isChecked()) {
newFilter->setMatch(Filter::MatchAll);
} else {
newFilter->setMatch(Filter::MatchAny);
}
foreach(QWidget* widget, m_ruleLister->widgetList()) {
FilterRuleWidget* rw = static_cast<FilterRuleWidget*>(widget);
FilterRule* rule = rw->rule();
if(rule && !rule->isEmpty()) {
newFilter->append(rule);
} else {
delete rule;
}
}
newFilter->setName(m_filterName->text());
if(!m_filter || !alwaysCreateNew_) {
m_filter = newFilter;
}
return newFilter;
}
void FilterDialog::setFilter(Tellico::FilterPtr filter_) {
if(!filter_) {
slotClear();
return;
}
if(filter_->op() == Filter::MatchAll) {
m_matchAll->setChecked(true);
} else {
m_matchAny->setChecked(true);
}
m_ruleLister->setFilter(filter_);
m_filterName->setText(filter_->name());
m_filter = filter_;
}
void FilterDialog::slotOk() {
slotApply();
accept();
}
void FilterDialog::slotApply() {
emit signalUpdateFilter(currentFilter());
}
void FilterDialog::slotHelp() {
KHelpClient::invokeHelp(QStringLiteral("filter-dialog"));
}
void FilterDialog::slotClear() {
// myDebug();
m_matchAll->setChecked(true);
m_ruleLister->reset();
m_filterName->clear();
}
void FilterDialog::slotShrink() {
updateGeometry();
QApplication::sendPostedEvents();
resize(width(), sizeHint().height());
}
void FilterDialog::slotFilterChanged() {
const bool hadFilter = m_filter && !m_filter->isEmpty();
const bool emptyFilter = currentFilter(true)->isEmpty();
// an empty filter can be ok if the filter was originally not empty
const bool enableOk = !currentFilter()->isEmpty() || hadFilter;
if(m_saveFilter) {
m_saveFilter->setEnabled(!m_filterName->text().isEmpty() && !emptyFilter);
if(m_applyButton) {
m_applyButton->setEnabled(!emptyFilter);
}
}
if(m_applyButton) {
m_applyButton->setEnabled(enableOk);
}
m_okButton->setEnabled(enableOk);
m_okButton->setDefault(enableOk);
}
void FilterDialog::slotSaveFilter() {
// non-op if editing an existing filter
if(m_mode != CreateFilter) {
return;
}
// in this case, currentFilter() either creates a new filter or
// updates the current one. If creating a new one, then I want to copy it
const bool wasEmpty = !m_filter;
FilterPtr filter(new Filter(*currentFilter()));
if(wasEmpty) {
m_filter = filter;
}
// this keeps the saving completely decoupled from the filter setting in the detailed view
if(filter->isEmpty()) {
m_filter = FilterPtr();
return;
}
Kernel::self()->addFilter(filter);
}
| KDE/tellico | src/filterdialog.cpp | C++ | gpl-2.0 | 8,620 |
<?php
/**
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (contact@vinades.vn)
* @Copyright (C) 2014 VINADES.,JSC. All rights reserved
* @Language Tiếng Việt
* @License CC BY-SA (http://creativecommons.org/licenses/by-sa/4.0/)
* @Createdate Mar 04, 2010, 03:22:00 PM
*/
if (!defined('NV_ADMIN') or !defined('NV_MAINFILE')) {
die('Stop!!!');
}
$lang_translator['author'] = 'VINADES.,JSC (contact@vinades.vn)';
$lang_translator['createdate'] = '04/03/2010, 15:22';
$lang_translator['copyright'] = '@Copyright (C) 2012 VINADES.,JSC. All rights reserved';
$lang_translator['info'] = '';
$lang_translator['langtype'] = 'lang_module';
$lang_module['is_suspend0'] = 'Hoạt động';
$lang_module['is_suspend1'] = 'Bị đình chỉ vào “%1$s” bởi “%2$s” với lý do “%3$s”';
$lang_module['is_suspend2'] = 'Bị đình chỉ';
$lang_module['last_login0'] = 'Chưa bao giờ';
$lang_module['login'] = 'Tên tài khoản';
$lang_module['email'] = 'Email';
$lang_module['full_name'] = 'Tên gọi trên site';
$lang_module['name'] = 'Tên gọi trên site';
$lang_module['sig'] = 'Chữ ký';
$lang_module['editor'] = 'Trình soạn thảo';
$lang_module['lev'] = 'Quyền hạn';
$lang_module['position'] = 'Chức danh';
$lang_module['regtime'] = 'Ngày tham gia';
$lang_module['is_suspend'] = 'Tình trạng hiện tại';
$lang_module['last_login'] = 'Lần đăng nhập gần đây';
$lang_module['last_ip'] = 'Bằng IP';
$lang_module['browser'] = 'Bằng trình duyệt';
$lang_module['os'] = 'Bằng hệ điều hành';
$lang_module['admin_info_title1'] = 'Thông tin tài khoản: %s';
$lang_module['admin_info_title2'] = 'Thông tin tài khoản: %s (là bạn)';
$lang_module['menulist'] = 'Danh sách Quản trị';
$lang_module['menuadd'] = 'Thêm Quản trị';
$lang_module['main'] = 'Danh sách Quản trị website';
$lang_module['nv_admin_edit'] = 'Sửa thông tin Quản trị website';
$lang_module['nv_admin_add'] = 'Thêm Quản trị website';
$lang_module['nv_admin_del'] = 'Xóa Quản trị website';
$lang_module['username_noactive'] = 'Lỗi: tài khoản: %s chưa được kích hoạt, bạn cần kích hoạt tài khoản này trước khi thêm vào quản trị site';
$lang_module['full_name_incorrect'] = 'Bạn chưa khai báo tên gọi của người quản trị này';
$lang_module['position_incorrect'] = 'Bạn chưa khai báo chức danh của người quản trị này';
$lang_module['nv_admin_add_info'] = 'Để tạo một tài khoản Quản trị website mới, bạn cần khai báo đầy đủ vào các ô trống dưới đây. Bạn chỉ có quyền tạo tài khoản Quản trị dưới cấp của mình';
$lang_module['if_level3_selected'] = 'Hãy đánh dấu tích vào những module mà bạn cho phép quản lý';
$lang_module['login_info'] = 'Bạn cần nhập tên thành viên, nếu chưa có thành viên bạn cần tạo thành viên trước.';
$lang_module['nv_admin_add_result'] = 'Thông tin về Quản trị website mới';
$lang_module['nv_admin_add_title'] = 'Hệ thống đã tạo thành công tài khoản Quản trị website mới với những thông tin dưới đây';
$lang_module['nv_admin_modules'] = 'Quản lý các module';
$lang_module['admin_account_info'] = 'Thông tin tài khoản Quản trị website %s';
$lang_module['nv_admin_add_download'] = 'Tải về';
$lang_module['nv_admin_add_sendmail'] = 'Gửi thông báo';
$lang_module['nv_admin_login_address'] = 'URL trang quản lý website';
$lang_module['nv_admin_edit_info'] = 'Thay đổi thông tin tài khoản “<strong>%s</strong>”';
$lang_module['show_mail'] = 'Hiển thị email';
$lang_module['sig_info'] = 'Chữ ký được chèn vào cuối mỗi bài trả lời, thư... được gửi đi từ tài khoản Quản trị “<strong>%s</strong>”. Chỉ chấp nhận dạng text đơn thuần';
$lang_module['not_use'] = 'Không sử dụng';
$lang_module['nv_admin_edit_result'] = 'Thay đổi thông tin tài khoản Quản trị: %s';
$lang_module['nv_admin_edit_result_title'] = 'Những thay đổi vừa được thực hiện đối với tài khoản Quản trị %s';
$lang_module['show_mail0'] = 'Không hiển thị';
$lang_module['show_mail1'] = 'Hiển thị';
$lang_module['field'] = 'tiêu chí';
$lang_module['old_value'] = 'Cũ';
$lang_module['new_value'] = 'Mới';
$lang_module['chg_is_suspend0'] = 'Tình trạng hiện tại: Đang bị đình chỉ. Để Khôi phục hoạt động của tài khoản quản trị này, bạn hãy khai báo vào các ô trống dưới đây';
$lang_module['chg_is_suspend1'] = 'Tình trạng hiện tại: Đang hoạt động. Để Đình chỉ hoạt động của tài khoản quản trị này, bạn hãy khai báo vào các ô trống dưới đây';
$lang_module['chg_is_suspend2'] = 'Khôi phục/Đình chỉ hoạt động';
$lang_module['nv_admin_chg_suspend'] = 'Thay đổi trạng thái hoạt động của tài khoản Quản trị “<strong>%s</strong>”';
$lang_module['position_info'] = 'Chức danh dùng trong các hoạt động đối ngoại như trao đổi thư từ, viết lời bình...';
$lang_module['susp_reason_empty'] = 'Bạn chưa khai báo lý do đình chỉ hoạt động của tài khoản Quản trị “<strong>%s</strong>”';
$lang_module['suspend_info_empty'] = 'Tài khoản quản trị “<strong>%s</strong>” chưa bị đình chỉ hoạt động lần nào';
$lang_module['suspend_info_yes'] = 'Danh sách các lần đình chỉ hoạt động của tài khoản quản trị “<strong>%s</strong>”';
$lang_module['suspend_start'] = 'Bắt đầu';
$lang_module['suspend_end'] = 'Kết thúc';
$lang_module['suspend_reason'] = 'Lý do đình chỉ';
$lang_module['suspend_info'] = 'Vào: %1$s<br />Bởi: %2$s';
$lang_module['suspend0'] = 'Khôi phục hoạt động';
$lang_module['suspend1'] = 'Đình chỉ hoạt động';
$lang_module['clean_history'] = 'Xóa lịch sử';
$lang_module['suspend_sendmail'] = 'Gửi thông báo';
$lang_module['suspend_sendmail_mess1'] = 'Ban quản trị website %1$s xin thông báo:<br />Tài khoản quản trị của bạn tại website %1$s đã bị đình chỉ hoạt động vào %2$s vì lý do: %3$s.<br />Mọi đề nghị, thắc mắc... xin gửi đến địa chỉ %4$s';
$lang_module['suspend_sendmail_mess0'] = 'Ban quản trị website %1$s xin thông báo:<br />Tài khoản quản trị của bạn tại website %1$s đã hoạt động trở lại vào %2$s.<br />Trước đó tài khoản này đã bị đình chỉ hoạt động vì lý do: %3$s';
$lang_module['suspend_sendmail_title'] = 'Thông báo từ website %s';
$lang_module['delete_sendmail_mess0'] = 'Ban quản trị website %1$s xin thông báo:<br />Tài khoản quản trị của bạn tại website %1$s đã bị xóa vào %2$s.<br />Mọi đề nghị, thắc mắc... xin gửi đến địa chỉ %3$s';
$lang_module['delete_sendmail_mess1'] = 'Ban quản trị website %1$s xin thông báo:<br />Tài khoản quản trị của bạn tại website %1$s đã bị xóa vào %2$s vì lý do: %3$s.<br />Mọi đề nghị, thắc mắc... xin gửi đến địa chỉ %4$s';
$lang_module['delete_sendmail_title'] = 'Thông báo từ website %s';
$lang_module['delete_sendmail_info'] = 'Bạn thực sự muốn xóa tài khoản quản trị “<strong>%s</strong>”? Hãy điền các thông tin vào các ô trống dưới đây để khẳng định thao tác này';
$lang_module['admin_del_sendmail'] = 'Gửi thông báo';
$lang_module['admin_del_reason'] = 'Lý do xóa';
$lang_module['allow_files_type'] = 'Các kiểu file được phép tải lên';
$lang_module['allow_modify_files'] = 'Được phép sửa, xóa files';
$lang_module['allow_create_subdirectories'] = 'Được phép tạo thư mục';
$lang_module['allow_modify_subdirectories'] = 'Được phép đổi tên, xóa thư mục';
$lang_module['admin_login_incorrect'] = 'Tài khoản “<strong>%s</strong>” đã có trong danh sách quản trị. Hãy sử dụng một tài khoản khác';
$lang_module['config'] = 'Cấu hình';
$lang_module['funcs'] = 'Chức năng';
$lang_module['checkall'] = 'Chọn tất cả';
$lang_module['uncheckall'] = 'Bỏ chọn tất cả';
$lang_module['ip_version'] = 'Loại IP';
$lang_module['adminip'] = 'Quản lý IP truy cập khu vực quản trị';
$lang_module['adminip_ip'] = 'Ip';
$lang_module['adminip_timeban'] = 'Thời gian bắt đầu';
$lang_module['adminip_timeendban'] = 'Thời gian kết thúc';
$lang_module['adminip_add'] = 'Thêm địa chỉ IP';
$lang_module['adminip_address'] = 'Địa chỉ';
$lang_module['adminip_begintime'] = 'Thời gian bắt đầu';
$lang_module['adminip_endtime'] = 'Thời gian kết thúc';
$lang_module['adminip_notice'] = 'Ghi chú';
$lang_module['save'] = 'Lưu thay đổi';
$lang_module['adminip_mask_select'] = 'Hãy chọn';
$lang_module['adminip_nolimit'] = 'Vô thời hạn';
$lang_module['adminip_del_success'] = 'Đã xóa thành công !';
$lang_module['adminip_delete_confirm'] = 'Bạn có chắc muốn xóa ip này ra khỏi danh sách?';
$lang_module['adminip_mask'] = 'Mask IP';
$lang_module['adminip_edit'] = 'Sửa địa chỉ IP';
$lang_module['adminip_delete'] = 'Xóa';
$lang_module['adminip_error_ip'] = 'Hãy nhập Ip được truy cập khu vực quản trị ';
$lang_module['adminip_error_validip'] = 'Lỗi: Bạn cần nhập IP đúng chuẩn';
$lang_module['title_username'] = 'Quản lý tài khoản tường lửa khu vực admin';
$lang_module['admfirewall'] = 'Kiểm tra tường lửa cho khu vực admin';
$lang_module['block_admin_ip'] = 'Kiểm tra IP khi truy cập khu vực admin';
$lang_module['username_add'] = 'Thêm tài khoản';
$lang_module['username_edit'] = 'Sửa tài khoản';
$lang_module['nicknam_delete_confirm'] = 'Bạn có chắc muốn xóa tài khoản này ra khỏi danh sách?';
$lang_module['passwordsincorrect'] = 'Mật khẩu bạn nhập hai lần không giống nhau.';
$lang_module['nochangepass'] = 'Nếu không thay đổi mật khẩu bạn không nhập hai trường mật khẩu';
$lang_module['rule_user'] = 'Tài khoản chỉ dùng các ký tự a-zA-Z0-9_-';
$lang_module['rule_pass'] = 'Mật khẩu chỉ dùng các ký tự a-zA-Z0-9_-';
$lang_module['spadmin_add_admin'] = 'Cho phép người điều hành chung tạo và thay đổi quyền hạn người điều hành modules';
$lang_module['authors_detail_main'] = 'Hiển thị chi tiết các thông tin tài khoản của người quản trị';
$lang_module['admin_check_pass_time'] = 'Thời gian kiểm tra lại mật khẩu, nếu admin không sử dụng trình duyệt';
$lang_module['add_user'] = 'Chỉ định thành viên';
$lang_module['add_select'] = 'Chọn';
$lang_module['add_error_choose'] = 'Lỗi: Bạn chưa chọn thành viên được chỉ định làm quản trị';
$lang_module['add_error_exist'] = 'Lỗi: Thành viên này đã là quản trị';
$lang_module['add_error_notexist'] = 'Lỗi: Thành viên này không tồn tại';
$lang_module['add_error_diff'] = 'Xảy ra lỗi không xác định';
$lang_module['action_account'] = 'Tài khoản thành viên';
$lang_module['action_account_nochange'] = 'Giữ nguyên tài khoản thành viên';
$lang_module['action_account_suspend'] = 'Khóa tài khoản thành viên';
$lang_module['action_account_del'] = 'Xóa tài khoản thành viên';
$lang_module['module_admin'] = 'Phân quyền hệ thống';
$lang_module['users'] = 'Tài khoản';
$lang_module['number'] = 'STT';
$lang_module['module'] = 'Tên module';
$lang_module['custom_title'] = 'Tiêu đề';
$lang_module['main_module'] = 'Module trang chính';
$lang_module['themeadmin'] = 'Giao diện người quản trị';
$lang_module['theme_default'] = 'Mặc định theo cấu hình site';
$lang_module['2step_manager'] = 'Quản lý xác thực hai bước';
$lang_module['2step_code_off'] = 'Xác thực hai bước bằng ứng dụng đang tắt';
$lang_module['2step_code_on'] = 'Xác thực hai bước bằng ứng dụng đang bật';
$lang_module['2step_oauth'] = 'Xác thực hai bước bằng Oauth';
$lang_module['2step_oauth_gate'] = 'Cổng Oauth';
$lang_module['2step_oauth_email'] = 'Email sử dụng';
$lang_module['2step_oauth_empty'] = 'Chưa có tài khoản xác thực nào';
$lang_module['2step_add_google'] = 'Thêm tài khoản Google';
$lang_module['2step_add_facebook'] = 'Thêm tài khoản Facebook';
$lang_module['2step_delete_all'] = 'Gỡ tất cả';
$lang_module['2step_error_oauth_exists'] = 'Tài khoản này đã có trong danh sách xác thực';
$lang_module['2step_addtime'] = 'Thêm lúc';
| NukeVietCMS/nukeviet | includes/language/vi/admin_authors.php | PHP | gpl-2.0 | 12,863 |
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <cstddef>
#include <string>
#include <vector>
#include <wx/chartype.h>
#include <wx/defs.h>
#include <wx/dynarray.h>
#include <wx/event.h>
#include <wx/frame.h>
#include <wx/gdicmn.h>
#include <wx/list.h>
#include <wx/menu.h>
#include <wx/menuitem.h>
#include <wx/msgdlg.h>
#include <wx/object.h>
#include <wx/panel.h>
#include <wx/rtti.h>
#include <wx/sizer.h>
#include <wx/statusbr.h>
#include <wx/string.h>
#include <wx/textdlg.h>
#include <wx/toplevel.h>
#include <wx/translation.h>
#include <wx/window.h>
#include <wx/windowid.h>
#include <wx/aui/auibar.h>
#include <wx/aui/auibook.h>
#include <wx/aui/framemanager.h>
#include "Common/CommonTypes.h"
#include "Common/FileUtil.h"
#include "Common/IniFile.h"
#include "Common/MathUtil.h"
#include "Common/StringUtil.h"
#include "Common/Logging/ConsoleListener.h"
#include "Core/ConfigManager.h"
#include "DolphinWX/Frame.h"
#include "DolphinWX/Globals.h"
#include "DolphinWX/LogConfigWindow.h"
#include "DolphinWX/LogWindow.h"
#include "DolphinWX/WxUtils.h"
#include "DolphinWX/Debugger/CodeWindow.h"
// ------------
// Aui events
void CFrame::OnManagerResize(wxAuiManagerEvent& event)
{
if (!g_pCodeWindow && m_LogWindow &&
m_Mgr->GetPane("Pane 1").IsShown() &&
!m_Mgr->GetPane("Pane 1").IsFloating())
{
m_LogWindow->x = m_Mgr->GetPane("Pane 1").rect.GetWidth();
m_LogWindow->y = m_Mgr->GetPane("Pane 1").rect.GetHeight();
m_LogWindow->winpos = m_Mgr->GetPane("Pane 1").dock_direction;
}
event.Skip();
}
void CFrame::OnPaneClose(wxAuiManagerEvent& event)
{
event.Veto();
wxAuiNotebook * nb = (wxAuiNotebook*)event.pane->window;
if (!nb) return;
if (!g_pCodeWindow)
{
if (nb->GetPage(0)->GetId() == IDM_LOGWINDOW ||
nb->GetPage(0)->GetId() == IDM_LOGCONFIGWINDOW)
{
SConfig::GetInstance().m_InterfaceLogWindow = false;
SConfig::GetInstance().m_InterfaceLogConfigWindow = false;
ToggleLogWindow(false);
ToggleLogConfigWindow(false);
}
}
else
{
if (GetNotebookCount() == 1)
{
wxMessageBox(_("At least one pane must remain open."),
_("Notice"), wxOK, this);
}
else if (nb->GetPageCount() != 0 && !nb->GetPageText(0).IsSameAs("<>"))
{
wxMessageBox(_("You can't close panes that have pages in them."),
_("Notice"), wxOK, this);
}
else
{
// Detach and delete the empty notebook
event.pane->DestroyOnClose(true);
m_Mgr->ClosePane(*event.pane);
}
}
m_Mgr->Update();
}
void CFrame::ToggleLogWindow(bool bShow)
{
if (!m_LogWindow)
return;
GetMenuBar()->FindItem(IDM_LOGWINDOW)->Check(bShow);
if (bShow)
{
// Create a new log window if it doesn't exist.
if (!m_LogWindow)
{
m_LogWindow = new CLogWindow(this, IDM_LOGWINDOW);
}
m_LogWindow->Enable();
DoAddPage(m_LogWindow,
g_pCodeWindow ? g_pCodeWindow->iNbAffiliation[0] : 0,
g_pCodeWindow ? bFloatWindow[0] : false);
}
else
{
// Hiding the log window, so disable it and remove it.
m_LogWindow->Disable();
DoRemovePage(m_LogWindow, true);
}
// Hide or Show the pane
if (!g_pCodeWindow)
TogglePane();
}
void CFrame::ToggleLogConfigWindow(bool bShow)
{
GetMenuBar()->FindItem(IDM_LOGCONFIGWINDOW)->Check(bShow);
if (bShow)
{
if (!m_LogConfigWindow)
m_LogConfigWindow = new LogConfigWindow(this, m_LogWindow, IDM_LOGCONFIGWINDOW);
const int nbIndex = IDM_LOGCONFIGWINDOW - IDM_LOGWINDOW;
DoAddPage(m_LogConfigWindow,
g_pCodeWindow ? g_pCodeWindow->iNbAffiliation[nbIndex] : 0,
g_pCodeWindow ? bFloatWindow[nbIndex] : false);
}
else
{
DoRemovePage(m_LogConfigWindow, false);
m_LogConfigWindow = nullptr;
}
// Hide or Show the pane
if (!g_pCodeWindow)
TogglePane();
}
void CFrame::OnToggleWindow(wxCommandEvent& event)
{
bool bShow = GetMenuBar()->IsChecked(event.GetId());
switch (event.GetId())
{
case IDM_LOGWINDOW:
if (!g_pCodeWindow)
SConfig::GetInstance().m_InterfaceLogWindow = bShow;
ToggleLogWindow(bShow);
break;
case IDM_LOGCONFIGWINDOW:
if (!g_pCodeWindow)
SConfig::GetInstance().m_InterfaceLogConfigWindow = bShow;
ToggleLogConfigWindow(bShow);
break;
case IDM_REGISTERWINDOW:
g_pCodeWindow->ToggleRegisterWindow(bShow);
break;
case IDM_WATCHWINDOW:
g_pCodeWindow->ToggleWatchWindow(bShow);
break;
case IDM_BREAKPOINTWINDOW:
g_pCodeWindow->ToggleBreakPointWindow(bShow);
break;
case IDM_MEMORYWINDOW:
g_pCodeWindow->ToggleMemoryWindow(bShow);
break;
case IDM_JITWINDOW:
g_pCodeWindow->ToggleJitWindow(bShow);
break;
case IDM_SOUNDWINDOW:
g_pCodeWindow->ToggleSoundWindow(bShow);
break;
case IDM_VIDEOWINDOW:
g_pCodeWindow->ToggleVideoWindow(bShow);
break;
}
}
// Notebooks
// ---------------------
void CFrame::ClosePages()
{
ToggleLogWindow(false);
ToggleLogConfigWindow(false);
if (g_pCodeWindow)
{
g_pCodeWindow->ToggleCodeWindow(false);
g_pCodeWindow->ToggleRegisterWindow(false);
g_pCodeWindow->ToggleWatchWindow(false);
g_pCodeWindow->ToggleBreakPointWindow(false);
g_pCodeWindow->ToggleMemoryWindow(false);
g_pCodeWindow->ToggleJitWindow(false);
g_pCodeWindow->ToggleSoundWindow(false);
g_pCodeWindow->ToggleVideoWindow(false);
}
}
void CFrame::OnNotebookPageChanged(wxAuiNotebookEvent& event)
{
event.Skip();
if (!g_pCodeWindow)
return;
// Remove the blank page if any
AddRemoveBlankPage();
// Update the notebook affiliation
for (int i = IDM_LOGWINDOW; i <= IDM_CODEWINDOW; i++)
{
if (GetNotebookAffiliation(i) >= 0)
g_pCodeWindow->iNbAffiliation[i - IDM_LOGWINDOW] = GetNotebookAffiliation(i);
}
}
void CFrame::OnNotebookPageClose(wxAuiNotebookEvent& event)
{
// Override event
event.Veto();
wxAuiNotebook* Ctrl = (wxAuiNotebook*)event.GetEventObject();
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_LOGWINDOW)
ToggleLogWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_LOGCONFIGWINDOW)
ToggleLogConfigWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_REGISTERWINDOW)
g_pCodeWindow->ToggleRegisterWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_WATCHWINDOW)
g_pCodeWindow->ToggleWatchWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_BREAKPOINTWINDOW)
g_pCodeWindow->ToggleBreakPointWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_JITWINDOW)
g_pCodeWindow->ToggleJitWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_MEMORYWINDOW)
g_pCodeWindow->ToggleMemoryWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_SOUNDWINDOW)
g_pCodeWindow->ToggleSoundWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_VIDEOWINDOW)
g_pCodeWindow->ToggleVideoWindow(false);
}
void CFrame::OnFloatingPageClosed(wxCloseEvent& event)
{
ToggleFloatWindow(event.GetId() - IDM_LOGWINDOW_PARENT + IDM_FLOAT_LOGWINDOW);
}
void CFrame::OnFloatingPageSize(wxSizeEvent& event)
{
event.Skip();
}
void CFrame::OnFloatWindow(wxCommandEvent& event)
{
ToggleFloatWindow(event.GetId());
}
void CFrame::ToggleFloatWindow(int Id)
{
wxWindowID WinId = Id - IDM_FLOAT_LOGWINDOW + IDM_LOGWINDOW;
if (GetNotebookPageFromId(WinId))
{
DoFloatNotebookPage(WinId);
bFloatWindow[WinId - IDM_LOGWINDOW] = true;
}
else
{
if (FindWindowById(WinId))
DoUnfloatPage(WinId - IDM_LOGWINDOW + IDM_LOGWINDOW_PARENT);
bFloatWindow[WinId - IDM_LOGWINDOW] = false;
}
}
void CFrame::DoFloatNotebookPage(wxWindowID Id)
{
wxPanel *Win = (wxPanel*)FindWindowById(Id);
if (!Win) return;
for (int i = 0; i < GetNotebookCount(); i++)
{
wxAuiNotebook *nb = GetNotebookFromId(i);
if (nb->GetPageIndex(Win) != wxNOT_FOUND)
{
nb->RemovePage(nb->GetPageIndex(Win));
// Create the parent frame and reparent the window
CreateParentFrame(Win->GetId() + IDM_LOGWINDOW_PARENT - IDM_LOGWINDOW,
Win->GetName(), Win);
if (nb->GetPageCount() == 0)
AddRemoveBlankPage();
}
}
}
void CFrame::DoUnfloatPage(int Id)
{
wxFrame * Win = (wxFrame*)FindWindowById(Id);
if (!Win) return;
wxWindow * Child = Win->GetChildren().Item(0)->GetData();
Child->Reparent(this);
DoAddPage(Child, g_pCodeWindow->iNbAffiliation[Child->GetId() - IDM_LOGWINDOW], false);
Win->Destroy();
}
void CFrame::OnTab(wxAuiNotebookEvent& event)
{
event.Skip();
if (!g_pCodeWindow) return;
// Create the popup menu
wxMenu* MenuPopup = new wxMenu;
wxMenuItem* Item = new wxMenuItem(MenuPopup, wxID_ANY, _("Select floating windows"));
MenuPopup->Append(Item);
Item->Enable(false);
MenuPopup->Append(new wxMenuItem(MenuPopup));
for (int i = IDM_LOGWINDOW; i <= IDM_CODEWINDOW; i++)
{
wxWindow *Win = FindWindowById(i);
if (Win && Win->IsEnabled())
{
Item = new wxMenuItem(MenuPopup, i + IDM_FLOAT_LOGWINDOW - IDM_LOGWINDOW,
Win->GetName(), "", wxITEM_CHECK);
MenuPopup->Append(Item);
Item->Check(!!FindWindowById(i + IDM_LOGWINDOW_PARENT - IDM_LOGWINDOW));
}
}
// Line up our menu with the cursor
wxPoint Pt = ::wxGetMousePosition();
Pt = ScreenToClient(Pt);
// Show
PopupMenu(MenuPopup, Pt);
}
void CFrame::OnAllowNotebookDnD(wxAuiNotebookEvent& event)
{
event.Skip();
event.Allow();
}
void CFrame::ShowResizePane()
{
if (!m_LogWindow) return;
// Make sure the size is sane
if (m_LogWindow->x > GetClientRect().GetWidth())
m_LogWindow->x = GetClientRect().GetWidth() / 2;
if (m_LogWindow->y > GetClientRect().GetHeight())
m_LogWindow->y = GetClientRect().GetHeight() / 2;
wxAuiPaneInfo &pane = m_Mgr->GetPane("Pane 1");
// Hide first otherwise a resize doesn't work
pane.Hide();
m_Mgr->Update();
pane.BestSize(m_LogWindow->x, m_LogWindow->y)
.MinSize(m_LogWindow->x, m_LogWindow->y)
.Direction(m_LogWindow->winpos).Show();
m_Mgr->Update();
// Reset the minimum size of the pane
pane.MinSize(-1, -1);
m_Mgr->Update();
}
void CFrame::TogglePane()
{
// Get the first notebook
wxAuiNotebook * NB = nullptr;
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
NB = (wxAuiNotebook*)m_Mgr->GetAllPanes()[i].window;
}
if (NB)
{
if (NB->GetPageCount() == 0)
{
m_Mgr->GetPane("Pane 1").Hide();
m_Mgr->Update();
}
else
{
ShowResizePane();
}
}
}
void CFrame::DoRemovePage(wxWindow *Win, bool bHide)
{
if (!Win) return;
wxWindow *Parent = FindWindowById(Win->GetId() +
IDM_LOGWINDOW_PARENT - IDM_LOGWINDOW);
if (Parent)
{
if (bHide)
{
Win->Hide();
Win->Reparent(this);
}
else
{
Win->Destroy();
}
Parent->Destroy();
}
else
{
for (int i = 0; i < GetNotebookCount(); i++)
{
int PageIndex = GetNotebookFromId(i)->GetPageIndex(Win);
if (PageIndex != wxNOT_FOUND)
{
GetNotebookFromId(i)->RemovePage(PageIndex);
if (bHide)
{
Win->Hide();
Win->Reparent(this);
}
else
{
Win->Destroy();
}
}
}
}
if (g_pCodeWindow)
AddRemoveBlankPage();
}
void CFrame::DoAddPage(wxWindow *Win, int i, bool Float)
{
if (!Win) return;
// Ensure accessor remains within valid bounds.
if (i < 0 || i > GetNotebookCount()-1)
i = 0;
// The page was already previously added, no need to add it again.
if (Win && GetNotebookFromId(i)->GetPageIndex(Win) != wxNOT_FOUND)
return;
if (!Float)
GetNotebookFromId(i)->AddPage(Win, Win->GetName(), true);
else
CreateParentFrame(Win->GetId() + IDM_LOGWINDOW_PARENT - IDM_LOGWINDOW,
Win->GetName(), Win);
}
void CFrame::PopulateSavedPerspectives()
{
// If the perspective submenu hasn't been created yet, return
if (!m_SavedPerspectives) return;
// Delete all saved perspective menu items
while (m_SavedPerspectives->GetMenuItemCount() != 0)
{
// Delete the first menu item in the list (while there are menu items)
m_SavedPerspectives->Delete(m_SavedPerspectives->FindItemByPosition(0));
}
if (Perspectives.size() > 0)
{
for (u32 i = 0; i < Perspectives.size(); i++)
{
wxMenuItem* mItem = new wxMenuItem(m_SavedPerspectives, IDM_PERSPECTIVES_0 + i,
StrToWxStr(Perspectives[i].Name), "", wxITEM_CHECK);
m_SavedPerspectives->Append(mItem);
if (i == ActivePerspective)
{
mItem->Check(true);
}
}
}
}
void CFrame::OnPerspectiveMenu(wxCommandEvent& event)
{
ClearStatusBar();
switch (event.GetId())
{
case IDM_SAVE_PERSPECTIVE:
if (Perspectives.size() == 0)
{
wxMessageBox(_("Please create a perspective before saving"),
_("Notice"), wxOK, this);
return;
}
SaveIniPerspectives();
GetStatusBar()->SetStatusText(StrToWxStr(std::string
("Saved " + Perspectives[ActivePerspective].Name)), 0);
break;
case IDM_PERSPECTIVES_ADD_PANE:
AddPane();
break;
case IDM_EDIT_PERSPECTIVES:
m_bEdit = event.IsChecked();
TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES);
break;
case IDM_ADD_PERSPECTIVE:
{
wxTextEntryDialog dlg(this,
_("Enter a name for the new perspective:"),
_("Create new perspective"));
wxString DefaultValue = wxString::Format(_("Perspective %d"), (int)(Perspectives.size() + 1));
dlg.SetValue(DefaultValue);
int Return = 0;
bool DlgOk = false;
while (!DlgOk)
{
Return = dlg.ShowModal();
if (Return == wxID_CANCEL)
{
return;
}
else if (dlg.GetValue().Find(",") != -1)
{
wxMessageBox(_("The name cannot contain the character ','"),
_("Notice"), wxOK, this);
wxString Str = dlg.GetValue();
Str.Replace(",", "", true);
dlg.SetValue(Str);
}
else if (dlg.GetValue().IsSameAs(""))
{
wxMessageBox(_("The name cannot be empty"),
_("Notice"), wxOK, this);
dlg.SetValue(DefaultValue);
}
else
{
DlgOk = true;
}
}
SPerspectives Tmp;
Tmp.Name = WxStrToStr(dlg.GetValue());
Tmp.Perspective = m_Mgr->SavePerspective();
ActivePerspective = (u32)Perspectives.size();
Perspectives.push_back(Tmp);
UpdateCurrentPerspective();
PopulateSavedPerspectives();
}
break;
case IDM_TAB_SPLIT:
m_bTabSplit = event.IsChecked();
ToggleNotebookStyle(m_bTabSplit, wxAUI_NB_TAB_SPLIT);
break;
case IDM_NO_DOCKING:
m_bNoDocking = event.IsChecked();
TogglePaneStyle(m_bNoDocking, IDM_NO_DOCKING);
break;
}
}
void CFrame::TogglePaneStyle(bool On, int EventId)
{
wxAuiPaneInfoArray& AllPanes = m_Mgr->GetAllPanes();
for (u32 i = 0; i < AllPanes.GetCount(); ++i)
{
wxAuiPaneInfo& Pane = AllPanes[i];
if (Pane.window->IsKindOf(CLASSINFO(wxAuiNotebook)))
{
// Default
Pane.CloseButton(true);
Pane.MaximizeButton(true);
Pane.MinimizeButton(true);
Pane.PinButton(true);
Pane.Show();
switch (EventId)
{
case IDM_EDIT_PERSPECTIVES:
Pane.CaptionVisible(On);
Pane.Movable(On);
Pane.Floatable(On);
Pane.Dockable(On);
break;
}
Pane.Dockable(!m_bNoDocking);
}
}
m_Mgr->Update();
}
void CFrame::ToggleNotebookStyle(bool On, long Style)
{
wxAuiPaneInfoArray& AllPanes = m_Mgr->GetAllPanes();
for (int i = 0, Count = (int)AllPanes.GetCount(); i < Count; ++i)
{
wxAuiPaneInfo& Pane = AllPanes[i];
if (Pane.window->IsKindOf(CLASSINFO(wxAuiNotebook)))
{
wxAuiNotebook* NB = (wxAuiNotebook*)Pane.window;
if (On)
NB->SetWindowStyleFlag(NB->GetWindowStyleFlag() | Style);
else
NB->SetWindowStyleFlag(NB->GetWindowStyleFlag() &~ Style);
NB->Refresh();
}
}
}
void CFrame::OnSelectPerspective(wxCommandEvent& event)
{
u32 _Selection = event.GetId() - IDM_PERSPECTIVES_0;
if (Perspectives.size() <= _Selection) _Selection = 0;
ActivePerspective = _Selection;
DoLoadPerspective();
}
void CFrame::SetPaneSize()
{
if (Perspectives.size() <= ActivePerspective)
return;
int iClientX = GetSize().GetX();
int iClientY = GetSize().GetY();
for (u32 i = 0, j = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiToolBar)))
{
if (!m_Mgr->GetAllPanes()[i].IsOk())
return;
if (Perspectives[ActivePerspective].Width.size() <= j ||
Perspectives[ActivePerspective].Height.size() <= j)
continue;
// Width and height of the active perspective
u32 W = Perspectives[ActivePerspective].Width[j],
H = Perspectives[ActivePerspective].Height[j];
// Check limits
MathUtil::Clamp<u32>(&W, 5, 95);
MathUtil::Clamp<u32>(&H, 5, 95);
// Convert percentages to pixel lengths
W = (W * iClientX) / 100;
H = (H * iClientY) / 100;
m_Mgr->GetAllPanes()[i].BestSize(W,H).MinSize(W,H);
j++;
}
}
m_Mgr->Update();
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiToolBar)))
{
m_Mgr->GetAllPanes()[i].MinSize(-1,-1);
}
}
}
void CFrame::ReloadPanes()
{
// Close all pages
ClosePages();
CloseAllNotebooks();
// Create new panes with notebooks
for (u32 i = 0; i < Perspectives[ActivePerspective].Width.size() - 1; i++)
{
wxString PaneName = wxString::Format("Pane %i", i + 1);
m_Mgr->AddPane(CreateEmptyNotebook(), wxAuiPaneInfo().Hide()
.CaptionVisible(m_bEdit).Dockable(!m_bNoDocking).Position(i)
.Name(PaneName).Caption(PaneName));
}
// Perspectives
m_Mgr->LoadPerspective(Perspectives[ActivePerspective].Perspective, false);
// Restore settings
TogglePaneStyle(m_bNoDocking, IDM_NO_DOCKING);
TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES);
// Load GUI settings
g_pCodeWindow->Load();
// Open notebook pages
AddRemoveBlankPage();
g_pCodeWindow->OpenPages();
// Repopulate perspectives
PopulateSavedPerspectives();
}
void CFrame::DoLoadPerspective()
{
ReloadPanes();
// Restore the exact window sizes, which LoadPerspective doesn't always do
SetPaneSize();
m_Mgr->Update();
}
// Update the local perspectives array
void CFrame::LoadIniPerspectives()
{
Perspectives.clear();
std::vector<std::string> VPerspectives;
std::string _Perspectives;
IniFile ini;
ini.Load(File::GetUserPath(F_DEBUGGERCONFIG_IDX));
IniFile::Section* perspectives = ini.GetOrCreateSection("Perspectives");
perspectives->Get("Perspectives", &_Perspectives, "Perspective 1");
perspectives->Get("Active", &ActivePerspective, 0);
SplitString(_Perspectives, ',', VPerspectives);
for (auto& VPerspective : VPerspectives)
{
SPerspectives Tmp;
std::string _Section, _Perspective, _Widths, _Heights;
std::vector<std::string> _SWidth, _SHeight;
Tmp.Name = VPerspective;
// Don't save a blank perspective
if (Tmp.Name.empty())
{
continue;
}
_Section = StringFromFormat("P - %s", Tmp.Name.c_str());
IniFile::Section* perspec_section = ini.GetOrCreateSection(_Section);
perspec_section->Get("Perspective", &_Perspective,
"layout2|"
"name=Pane 0;caption=Pane 0;state=768;dir=5;prop=100000;|"
"name=Pane 1;caption=Pane 1;state=31458108;dir=4;prop=100000;|"
"dock_size(5,0,0)=22|dock_size(4,0,0)=333|");
perspec_section->Get("Width", &_Widths, "70,25");
perspec_section->Get("Height", &_Heights, "80,80");
Tmp.Perspective = StrToWxStr(_Perspective);
SplitString(_Widths, ',', _SWidth);
SplitString(_Heights, ',', _SHeight);
for (auto& Width : _SWidth)
{
int _Tmp;
if (TryParse(Width, &_Tmp))
Tmp.Width.push_back(_Tmp);
}
for (auto& Height : _SHeight)
{
int _Tmp;
if (TryParse(Height, &_Tmp))
Tmp.Height.push_back(_Tmp);
}
Perspectives.push_back(Tmp);
}
}
void CFrame::UpdateCurrentPerspective()
{
SPerspectives *current = &Perspectives[ActivePerspective];
current->Perspective = m_Mgr->SavePerspective();
// Get client size
int iClientX = GetSize().GetX(), iClientY = GetSize().GetY();
current->Width.clear();
current->Height.clear();
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->
IsKindOf(CLASSINFO(wxAuiToolBar)))
{
// Save width and height as a percentage of the client width and height
current->Width.push_back(
(m_Mgr->GetAllPanes()[i].window->GetClientSize().GetX() * 100) /
iClientX);
current->Height.push_back(
(m_Mgr->GetAllPanes()[i].window->GetClientSize().GetY() * 100) /
iClientY);
}
}
}
void CFrame::SaveIniPerspectives()
{
if (Perspectives.size() == 0) return;
if (ActivePerspective >= Perspectives.size()) ActivePerspective = 0;
// Turn off edit before saving
TogglePaneStyle(false, IDM_EDIT_PERSPECTIVES);
UpdateCurrentPerspective();
IniFile ini;
ini.Load(File::GetUserPath(F_DEBUGGERCONFIG_IDX));
// Save perspective names
std::string STmp = "";
for (auto& Perspective : Perspectives)
{
STmp += Perspective.Name + ",";
}
STmp = STmp.substr(0, STmp.length()-1);
IniFile::Section* perspectives = ini.GetOrCreateSection("Perspectives");
perspectives->Set("Perspectives", STmp);
perspectives->Set("Active", ActivePerspective);
// Save the perspectives
for (auto& Perspective : Perspectives)
{
std::string _Section = "P - " + Perspective.Name;
IniFile::Section* perspec_section = ini.GetOrCreateSection(_Section);
perspec_section->Set("Perspective", WxStrToStr(Perspective.Perspective));
std::string SWidth = "", SHeight = "";
for (u32 j = 0; j < Perspective.Width.size(); j++)
{
SWidth += StringFromFormat("%i,", Perspective.Width[j]);
SHeight += StringFromFormat("%i,", Perspective.Height[j]);
}
// Remove the ending ","
SWidth = SWidth.substr(0, SWidth.length()-1);
SHeight = SHeight.substr(0, SHeight.length()-1);
perspec_section->Set("Width", SWidth);
perspec_section->Set("Height", SHeight);
}
ini.Save(File::GetUserPath(F_DEBUGGERCONFIG_IDX));
// Save notebook affiliations
g_pCodeWindow->Save();
TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES);
}
void CFrame::AddPane()
{
int PaneNum = GetNotebookCount() + 1;
wxString PaneName = wxString::Format("Pane %i", PaneNum);
m_Mgr->AddPane(CreateEmptyNotebook(), wxAuiPaneInfo()
.CaptionVisible(m_bEdit).Dockable(!m_bNoDocking)
.Name(PaneName).Caption(PaneName)
.Position(GetNotebookCount()));
AddRemoveBlankPage();
m_Mgr->Update();
}
wxWindow * CFrame::GetNotebookPageFromId(wxWindowID Id)
{
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
continue;
wxAuiNotebook * NB = (wxAuiNotebook*)m_Mgr->GetAllPanes()[i].window;
for (u32 j = 0; j < NB->GetPageCount(); j++)
{
if (NB->GetPage(j)->GetId() == Id)
return NB->GetPage(j);
}
}
return nullptr;
}
wxFrame* CFrame::CreateParentFrame(wxWindowID Id, const wxString& Title, wxWindow* Child)
{
wxFrame* Frame = new wxFrame(this, Id, Title);
Child->Reparent(Frame);
wxBoxSizer* m_MainSizer = new wxBoxSizer(wxHORIZONTAL);
m_MainSizer->Add(Child, 1, wxEXPAND);
Frame->Bind(wxEVT_CLOSE_WINDOW, &CFrame::OnFloatingPageClosed, this);
// Main sizer
Frame->SetSizer(m_MainSizer);
// Minimum frame size
Frame->SetMinSize(wxSize(200, 200));
Frame->Show();
return Frame;
}
wxAuiNotebook* CFrame::CreateEmptyNotebook()
{
const long NOTEBOOK_STYLE = wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT |
wxAUI_NB_TAB_EXTERNAL_MOVE | wxAUI_NB_SCROLL_BUTTONS |
wxAUI_NB_WINDOWLIST_BUTTON | wxNO_BORDER;
wxAuiNotebook* NB = new wxAuiNotebook(this, wxID_ANY,
wxDefaultPosition, wxDefaultSize, NOTEBOOK_STYLE);
return NB;
}
void CFrame::AddRemoveBlankPage()
{
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
continue;
wxAuiNotebook * NB = (wxAuiNotebook*)m_Mgr->GetAllPanes()[i].window;
for (u32 j = 0; j < NB->GetPageCount(); j++)
{
if (NB->GetPageText(j).IsSameAs("<>") && NB->GetPageCount() > 1)
NB->DeletePage(j);
}
if (NB->GetPageCount() == 0)
NB->AddPage(new wxPanel(this, wxID_ANY), "<>", true);
}
}
int CFrame::GetNotebookAffiliation(wxWindowID Id)
{
for (u32 i = 0, j = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
continue;
wxAuiNotebook * NB = (wxAuiNotebook*)m_Mgr->GetAllPanes()[i].window;
for (u32 k = 0; k < NB->GetPageCount(); k++)
{
if (NB->GetPage(k)->GetId() == Id)
return j;
}
j++;
}
return -1;
}
// Close all panes with notebooks
void CFrame::CloseAllNotebooks()
{
wxAuiPaneInfoArray AllPanes = m_Mgr->GetAllPanes();
for (u32 i = 0; i < AllPanes.GetCount(); i++)
{
if (AllPanes[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
{
AllPanes[i].DestroyOnClose(true);
m_Mgr->ClosePane(AllPanes[i]);
}
}
}
int CFrame::GetNotebookCount()
{
int Ret = 0;
for (u32 i = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
Ret++;
}
return Ret;
}
wxAuiNotebook * CFrame::GetNotebookFromId(u32 NBId)
{
for (u32 i = 0, j = 0; i < m_Mgr->GetAllPanes().GetCount(); i++)
{
if (!m_Mgr->GetAllPanes()[i].window->IsKindOf(CLASSINFO(wxAuiNotebook)))
continue;
if (j == NBId)
return (wxAuiNotebook*)m_Mgr->GetAllPanes()[i].window;
j++;
}
return nullptr;
}
| Asmodean-/dolphin | Source/Core/DolphinWX/FrameAui.cpp | C++ | gpl-2.0 | 25,156 |
/*****************************************************************************
* Free42 -- an HP-42S calculator simulator
* Copyright (C) 2004-2016 Thomas Okken
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see http://www.gnu.org/licenses/.
*****************************************************************************/
#include <stdlib.h>
#include "core_commands2.h"
#include "core_commands3.h"
#include "core_commands4.h"
#include "core_display.h"
#include "core_helpers.h"
#include "core_linalg1.h"
#include "core_sto_rcl.h"
#include "core_variables.h"
/********************************************************/
/* Implementations of HP-42S built-in functions, part 4 */
/********************************************************/
int docmd_insr(arg_struct *arg) {
vartype *m, *newx;
vartype_realmatrix *rm;
vartype_complexmatrix *cm;
int4 rows, columns, i;
int err, refcount;
int interactive;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type != TYPE_REALMATRIX && m->type != TYPE_COMPLEXMATRIX)
return ERR_INVALID_TYPE;
interactive = matedit_mode == 2 || matedit_mode == 3;
if (interactive) {
err = docmd_stoel(NULL);
if (err != ERR_NONE)
return err;
}
if (m->type == TYPE_REALMATRIX) {
rm = (vartype_realmatrix *) m;
rows = rm->rows;
columns = rm->columns;
refcount = rm->array->refcount;
if (interactive) {
newx = new_real(0);
if (newx == NULL)
return ERR_INSUFFICIENT_MEMORY;
}
} else {
cm = (vartype_complexmatrix *) m;
rows = cm->rows;
columns = cm->columns;
refcount = cm->array->refcount;
if (interactive) {
newx = new_complex(0, 0);
if (newx == NULL)
return ERR_INSUFFICIENT_MEMORY;
}
}
if (matedit_i >= rows)
matedit_i = rows - 1;
if (matedit_j >= columns)
matedit_j = columns - 1;
if (refcount == 1) {
/* We have this array to ourselves so we can modify it in place */
err = dimension_array_ref(m, rows + 1, columns);
if (err != ERR_NONE) {
if (interactive)
free_vartype(newx);
return err;
}
rows++;
if (m->type == TYPE_REALMATRIX) {
for (i = rows * columns - 1; i >= (matedit_i + 1) * columns; i--) {
rm->array->is_string[i] = rm->array->is_string[i - columns];
rm->array->data[i] = rm->array->data[i - columns];
}
for (i = matedit_i * columns; i < (matedit_i + 1) * columns; i++) {
rm->array->is_string[i] = 0;
rm->array->data[i] = 0;
}
} else {
for (i = 2 * rows * columns - 1;
i >= 2 * (matedit_i + 1) * columns; i--)
cm->array->data[i] = cm->array->data[i - 2 * columns];
for (i = 2 * matedit_i * columns;
i < 2 * (matedit_i + 1) * columns; i++)
cm->array->data[i] = 0;
}
} else {
/* We're sharing this array. I don't use disentangle() because it
* does not deal with resizing. */
int4 newsize = (rows + 1) * columns;
if (m->type == TYPE_REALMATRIX) {
realmatrix_data *array = (realmatrix_data *)
malloc(sizeof(realmatrix_data));
if (array == NULL) {
if (interactive)
free_vartype(newx);
return ERR_INSUFFICIENT_MEMORY;
}
array->data = (phloat *) malloc(newsize * sizeof(phloat));
if (array->data == NULL) {
if (interactive)
free_vartype(newx);
free(array);
return ERR_INSUFFICIENT_MEMORY;
}
array->is_string = (char *) malloc(newsize);
if (array->is_string == NULL) {
if (interactive)
free_vartype(newx);
free(array->data);
free(array);
return ERR_INSUFFICIENT_MEMORY;
}
for (i = 0; i < matedit_i * columns; i++) {
array->is_string[i] = rm->array->is_string[i];
array->data[i] = rm->array->data[i];
}
for (i = matedit_i * columns; i < (matedit_i + 1) * columns; i++) {
array->is_string[i] = 0;
array->data[i] = 0;
}
for (i = (matedit_i + 1) * columns; i < newsize; i++) {
array->is_string[i] = rm->array->is_string[i - columns];
array->data[i] = rm->array->data[i - columns];
}
array->refcount = 1;
rm->array->refcount--;
rm->array = array;
rm->rows++;
} else {
complexmatrix_data *array = (complexmatrix_data *)
malloc(sizeof(complexmatrix_data));
if (array == NULL) {
if (interactive)
free_vartype(newx);
return ERR_INSUFFICIENT_MEMORY;
}
array->data = (phloat *) malloc(2 * newsize * sizeof(phloat));
if (array->data == NULL) {
if (interactive)
free_vartype(newx);
free(array);
return ERR_INSUFFICIENT_MEMORY;
}
for (i = 0; i < 2 * matedit_i * columns; i++)
array->data[i] = cm->array->data[i];
for (i = 2 * matedit_i * columns;
i < 2 * (matedit_i + 1) * columns; i++)
array->data[i] = 0;
for (i = 2 * (matedit_i + 1) * columns; i < 2 * newsize; i++)
array->data[i] = cm->array->data[i - 2 * columns];
array->refcount = 1;
cm->array->refcount--;
cm->array = array;
cm->rows++;
}
}
if (interactive) {
free_vartype(reg_x);
reg_x = newx;
}
mode_disable_stack_lift = true;
return ERR_NONE;
}
static void invrt_completion(int error, vartype *res) {
if (error == ERR_NONE)
unary_result(res);
}
int docmd_invrt(arg_struct *arg) {
if (reg_x->type == TYPE_REAL || reg_x->type == TYPE_COMPLEX)
return ERR_INVALID_TYPE;
else if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else
return linalg_inv(reg_x, invrt_completion);
}
int docmd_j_add(arg_struct *arg) {
int4 rows, columns;
int4 oldi = matedit_i;
int4 oldj = matedit_j;
int err = matedit_get_dim(&rows, &columns);
if (err != ERR_NONE)
return err;
if (++matedit_j >= columns) {
flags.f.matrix_edge_wrap = 1;
matedit_j = 0;
if (++matedit_i >= rows) {
flags.f.matrix_end_wrap = 1;
if (flags.f.grow) {
if (matedit_mode == 2)
err = dimension_array_ref(matedit_x, rows + 1, columns);
else
err = dimension_array(matedit_name, matedit_length,
rows + 1, columns);
if (err != ERR_NONE) {
matedit_i = oldi;
matedit_j = oldj;
return err;
}
matedit_i = rows;
} else
matedit_i = 0;
} else
flags.f.matrix_end_wrap = 0;
} else {
flags.f.matrix_edge_wrap = 0;
flags.f.matrix_end_wrap = 0;
}
return ERR_NONE;
}
int docmd_j_sub(arg_struct *arg) {
int4 rows, columns;
int err = matedit_get_dim(&rows, &columns);
if (err != ERR_NONE)
return err;
if (--matedit_j < 0) {
flags.f.matrix_edge_wrap = 1;
matedit_j = columns - 1;
if (--matedit_i < 0) {
flags.f.matrix_end_wrap = 1;
matedit_i = rows - 1;
} else
flags.f.matrix_end_wrap = 0;
} else {
flags.f.matrix_edge_wrap = 0;
flags.f.matrix_end_wrap = 0;
}
return ERR_NONE;
}
static int mappable_ln_1_x(phloat x, phloat *y) {
if (x <= -1)
return ERR_INVALID_DATA;
*y = log1p(x);
return ERR_NONE;
}
int docmd_ln_1_x(arg_struct *arg) {
if (reg_x->type == TYPE_REAL || reg_x->type == TYPE_REALMATRIX) {
vartype *v;
int err = map_unary(reg_x, &v, mappable_ln_1_x, NULL);
if (err == ERR_NONE)
unary_result(v);
return err;
} else if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else
return ERR_INVALID_TYPE;
}
int docmd_old(arg_struct *arg) {
return docmd_rclel(NULL);
}
int docmd_posa(arg_struct *arg) {
int pos = -1;
vartype *v;
if (reg_x->type == TYPE_REAL) {
phloat x = ((vartype_real *) reg_x)->x;
char c;
int i;
if (x < 0)
x = -x;
if (x >= 256)
return ERR_INVALID_DATA;
c = to_char(x);
for (i = 0; i < reg_alpha_length; i++)
if (reg_alpha[i] == c) {
pos = i;
break;
}
} else if (reg_x->type == TYPE_STRING) {
vartype_string *s = (vartype_string *) reg_x;
if (s->length != 0) {
int i, j;
for (i = 0; i < reg_alpha_length - s->length; i++) {
for (j = 0; j < s->length; j++)
if (reg_alpha[i + j] != s->text[j])
goto notfound;
pos = i;
break;
notfound:;
}
}
} else
return ERR_INVALID_TYPE;
v = new_real(pos);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
unary_result(v);
return ERR_NONE;
}
int docmd_putm(arg_struct *arg) {
vartype *m;
int4 i, j;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type != TYPE_REALMATRIX && m->type != TYPE_COMPLEXMATRIX)
/* Shouldn't happen, but could, as long as I don't
* implement matrix locking
*/
return ERR_INVALID_TYPE;
if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else if (reg_x->type == TYPE_REAL || reg_x->type == TYPE_COMPLEX)
return ERR_INVALID_TYPE;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *src, *dst;
if (reg_x->type == TYPE_COMPLEXMATRIX)
return ERR_INVALID_TYPE;
src = (vartype_realmatrix *) reg_x;
dst = (vartype_realmatrix *) m;
if (src->rows + matedit_i > dst->rows
|| src->columns + matedit_j > dst->columns)
return ERR_DIMENSION_ERROR;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < src->rows; i++)
for (j = 0; j < src->columns; j++) {
int4 n1 = i * src->columns + j;
int4 n2 = (i + matedit_i) * dst->columns + j + matedit_j;
dst->array->is_string[n2] = src->array->is_string[n1];
dst->array->data[n2] = src->array->data[n1];
}
return ERR_NONE;
} else if (reg_x->type == TYPE_REALMATRIX) {
vartype_realmatrix *src = (vartype_realmatrix *) reg_x;
vartype_complexmatrix *dst = (vartype_complexmatrix *) m;
if (src->rows + matedit_i > dst->rows
|| src->columns + matedit_j > dst->columns)
return ERR_DIMENSION_ERROR;
for (i = 0; i < src->rows * src->columns; i++)
if (src->array->is_string[i])
return ERR_ALPHA_DATA_IS_INVALID;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < src->rows; i++)
for (j = 0; j < src->columns; j++) {
int4 n1 = i * src->columns + j;
int4 n2 = (i + matedit_i) * dst->columns + j + matedit_j;
dst->array->data[n2 * 2] = src->array->data[n1];
dst->array->data[n2 * 2 + 1] = 0;
}
return ERR_NONE;
} else {
vartype_complexmatrix *src = (vartype_complexmatrix *) reg_x;
vartype_complexmatrix *dst = (vartype_complexmatrix *) m;
if (src->rows + matedit_i > dst->rows
|| src->columns + matedit_j > dst->columns)
return ERR_DIMENSION_ERROR;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < src->rows; i++)
for (j = 0; j < src->columns; j++) {
int4 n1 = i * src->columns + j;
int4 n2 = (i + matedit_i) * dst->columns + j + matedit_j;
dst->array->data[n2 * 2] = src->array->data[n1 * 2];
dst->array->data[n2 * 2 + 1] = src->array->data[n1 * 2 + 1];
}
return ERR_NONE;
}
}
int docmd_rclel(arg_struct *arg) {
vartype *m, *v;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) m;
int4 n = matedit_i * rm->columns + matedit_j;
if (rm->array->is_string[n])
v = new_string(phloat_text(rm->array->data[n]),
phloat_length(rm->array->data[n]));
else
v = new_real(rm->array->data[n]);
} else if (m->type == TYPE_COMPLEXMATRIX) {
vartype_complexmatrix *cm = (vartype_complexmatrix *) m;
int4 n = matedit_i * cm->columns + matedit_j;
v = new_complex(cm->array->data[2 * n],
cm->array->data[2 * n + 1]);
} else
return ERR_INVALID_TYPE;
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
recall_result(v);
return ERR_NONE;
}
int docmd_rclij(arg_struct *arg) {
vartype *i, *j;
if (matedit_mode == 0)
return ERR_NONEXISTENT;
i = new_real(matedit_i + 1);
j = new_real(matedit_j + 1);
if (i == NULL || j == NULL) {
free_vartype(i);
free_vartype(j);
return ERR_INSUFFICIENT_MEMORY;
}
recall_two_results(j, i);
return ERR_NONE;
}
int docmd_rnrm(arg_struct *arg) {
if (reg_x->type == TYPE_REALMATRIX) {
vartype *v;
vartype_realmatrix *rm = (vartype_realmatrix *) reg_x;
int4 size = rm->rows * rm->columns;
int4 i, j;
phloat max = 0;
for (i = 0; i < size; i++)
if (rm->array->is_string[i])
return ERR_ALPHA_DATA_IS_INVALID;
for (i = 0; i < rm->rows; i++) {
phloat nrm = 0;
for (j = 0; j < rm->columns; j++) {
phloat x = rm->array->data[i * rm->columns + j];
if (x >= 0)
nrm += x;
else
nrm -= x;
}
if (p_isinf(nrm)) {
if (flags.f.range_error_ignore)
max = POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
break;
}
if (nrm > max)
max = nrm;
}
v = new_real(max);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
unary_result(v);
return ERR_NONE;
} else if (reg_x->type == TYPE_COMPLEXMATRIX) {
vartype *v;
vartype_complexmatrix *cm = (vartype_complexmatrix *) reg_x;
int4 i, j;
phloat max = 0;
for (i = 0; i < cm->rows; i++) {
phloat nrm = 0;
for (j = 0; j < cm->columns; j++) {
phloat re = cm->array->data[2 * (i * cm->columns + j)];
phloat im = cm->array->data[2 * (i * cm->columns + j) + 1];
nrm += hypot(re, im);
}
if (p_isinf(nrm)) {
if (flags.f.range_error_ignore)
max = POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
break;
}
if (nrm > max)
max = nrm;
}
v = new_real(max);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
unary_result(v);
return ERR_NONE;
} else if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else
return ERR_INVALID_TYPE;
}
int docmd_rsum(arg_struct *arg) {
if (reg_x->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) reg_x;
vartype_realmatrix *res;
int4 size = rm->rows * rm->columns;
int4 i, j;
for (i = 0; i < size; i++)
if (rm->array->is_string[i])
return ERR_ALPHA_DATA_IS_INVALID;
res = (vartype_realmatrix *) new_realmatrix(rm->rows, 1);
if (res == NULL)
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < rm->rows; i++) {
phloat sum = 0;
int inf;
for (j = 0; j < rm->columns; j++)
sum += rm->array->data[i * rm->columns + j];
if ((inf = p_isinf(sum)) != 0) {
if (flags.f.range_error_ignore)
sum = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else {
free_vartype((vartype *) res);
return ERR_OUT_OF_RANGE;
}
}
res->array->data[i] = sum;
}
unary_result((vartype *) res);
return ERR_NONE;
} else if (reg_x->type == TYPE_COMPLEXMATRIX) {
vartype_complexmatrix *cm = (vartype_complexmatrix *) reg_x;
vartype_complexmatrix *res;
int4 i, j;
res = (vartype_complexmatrix *) new_complexmatrix(cm->rows, 1);
if (res == NULL)
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < cm->rows; i++) {
phloat sum_re = 0, sum_im = 0;
int inf;
for (j = 0; j < cm->columns; j++) {
sum_re += cm->array->data[2 * (i * cm->columns + j)];
sum_im += cm->array->data[2 * (i * cm->columns + j) + 1];
}
if ((inf = p_isinf(sum_re)) != 0) {
if (flags.f.range_error_ignore)
sum_re = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else {
free_vartype((vartype *) res);
return ERR_OUT_OF_RANGE;
}
}
if ((inf = p_isinf(sum_im)) != 0) {
if (flags.f.range_error_ignore)
sum_im = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else {
free_vartype((vartype *) res);
return ERR_OUT_OF_RANGE;
}
}
res->array->data[2 * i] = sum_re;
res->array->data[2 * i + 1] = sum_im;
}
unary_result((vartype *) res);
return ERR_NONE;
} else if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else
return ERR_INVALID_TYPE;
}
int docmd_swap_r(arg_struct *arg) {
vartype *m;
phloat xx, yy;
int4 x, y, i;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type != TYPE_REALMATRIX && m->type != TYPE_COMPLEXMATRIX)
/* Should not happen, but could, as long as I don't implement
* matrix locking. */
return ERR_INVALID_TYPE;
if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_x->type != TYPE_REAL)
return ERR_INVALID_TYPE;
if (reg_y->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_y->type != TYPE_REAL)
return ERR_INVALID_TYPE;
xx = ((vartype_real *) reg_x)->x;
if (xx <= -2147483648.0 || xx >= 2147483648.0)
return ERR_DIMENSION_ERROR;
x = to_int4(xx);
if (x == 0)
return ERR_DIMENSION_ERROR;
if (x < 0)
x = -x;
x--;
yy = ((vartype_real *) reg_y)->x;
if (yy <= -2147483648.0 || yy >= 2147483648.0)
return ERR_DIMENSION_ERROR;
y = to_int4(yy);
if (y == 0)
return ERR_DIMENSION_ERROR;
if (y < 0)
y = -y;
y--;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) m;
if (x > rm->rows || y > rm->rows)
return ERR_DIMENSION_ERROR;
else if (x == y)
return ERR_NONE;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < rm->columns; i++) {
int4 n1 = x * rm->columns + i;
int4 n2 = y * rm->columns + i;
char tempc = rm->array->is_string[n1];
phloat tempds = rm->array->data[n1];
rm->array->is_string[n1] = rm->array->is_string[n2];
rm->array->data[n1] = rm->array->data[n2];
rm->array->is_string[n2] = tempc;
rm->array->data[n2] = tempds;
}
return ERR_NONE;
} else /* m->type == TYPE_COMPLEXMATRIX */ {
vartype_complexmatrix *cm = (vartype_complexmatrix *) m;
if (x > cm->rows || y > cm->rows)
return ERR_DIMENSION_ERROR;
else if (x == y)
return ERR_NONE;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < 2 * cm->columns; i++) {
int4 n1 = x * 2 * cm->columns + i;
int4 n2 = y * 2 * cm->columns + i;
phloat tempd = cm->array->data[n1];
cm->array->data[n1] = cm->array->data[n2];
cm->array->data[n2] = tempd;
}
return ERR_NONE;
}
}
static int mappable_sinh_r(phloat x, phloat *y) {
int inf;
*y = sinh(x);
if ((inf = p_isinf(*y)) != 0) {
if (flags.f.range_error_ignore)
*y = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
return ERR_NONE;
}
static int mappable_sinh_c(phloat xre, phloat xim, phloat *yre, phloat *yim) {
phloat sinhxre, coshxre;
phloat sinxim, cosxim;
int inf;
sinhxre = sinh(xre);
coshxre = cosh(xre);
sincos(xim, &sinxim, &cosxim);
*yre = sinhxre * cosxim;
if ((inf = p_isinf(*yre)) != 0) {
if (flags.f.range_error_ignore)
*yre = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
*yim = coshxre * sinxim;
if ((inf = p_isinf(*yim)) != 0) {
if (flags.f.range_error_ignore)
*yim = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
return ERR_NONE;
}
int docmd_sinh(arg_struct *arg) {
if (reg_x->type != TYPE_STRING) {
vartype *v;
int err = map_unary(reg_x, &v, mappable_sinh_r, mappable_sinh_c);
if (err == ERR_NONE)
unary_result(v);
return err;
} else
return ERR_ALPHA_DATA_IS_INVALID;
}
int docmd_stoel(arg_struct *arg) {
vartype *m;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type != TYPE_REALMATRIX && m->type != TYPE_COMPLEXMATRIX)
/* Should not happen, but could, as long as I don't implement
* matrix locking.
*/
return ERR_INVALID_TYPE;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) m;
int4 n = matedit_i * rm->columns + matedit_j;
if (reg_x->type == TYPE_REAL) {
rm->array->is_string[n] = 0;
rm->array->data[n] = ((vartype_real *) reg_x)->x;
return ERR_NONE;
} else if (reg_x->type == TYPE_STRING) {
vartype_string *s = (vartype_string *) reg_x;
int i;
rm->array->is_string[n] = 1;
phloat_length(rm->array->data[n]) = s->length;
for (i = 0; i < s->length; i++)
phloat_text(rm->array->data[n])[i] = s->text[i];
return ERR_NONE;
} else
return ERR_INVALID_TYPE;
} else /* m->type == TYPE_COMPLEXMATRIX */ {
vartype_complexmatrix *cm = (vartype_complexmatrix *) m;
int4 n = matedit_i * cm->columns + matedit_j;
if (reg_x->type == TYPE_REAL) {
cm->array->data[2 * n] = ((vartype_real *) reg_x)->x;
cm->array->data[2 * n + 1] = 0;
return ERR_NONE;
} else if (reg_x->type == TYPE_COMPLEX) {
vartype_complex *c = (vartype_complex *) reg_x;
cm->array->data[2 * n] = c->re;
cm->array->data[2 * n + 1] = c->im;
return ERR_NONE;
} else
return ERR_INVALID_TYPE;
}
}
int docmd_stoij(arg_struct *arg) {
vartype *m;
phloat x, y;
int4 i, j;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_x->type != TYPE_REAL)
return ERR_INVALID_TYPE;
if (reg_y->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_y->type != TYPE_REAL)
return ERR_INVALID_TYPE;
x = ((vartype_real *) reg_x)->x;
if (x <= -2147483648.0 || x >= 2147483648.0)
return ERR_DIMENSION_ERROR;
j = to_int4(x);
if (j < 0)
j = -j;
y = ((vartype_real *) reg_y)->x;
if (y <= -2147483648.0 || y >= 2147483648.0)
return ERR_DIMENSION_ERROR;
i = to_int4(y);
if (i < 0)
i = -i;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) m;
if (i == 0 || i > rm->rows || j == 0 || j > rm->columns)
return ERR_DIMENSION_ERROR;
} else if (m->type == TYPE_COMPLEXMATRIX) {
vartype_complexmatrix *cm = (vartype_complexmatrix *) m;
if (i == 0 || i > cm->rows || j == 0 || j > cm->columns)
return ERR_DIMENSION_ERROR;
} else
/* Should not happen, but could, as long as I don't implement
* matrix locking. */
return ERR_INVALID_TYPE;
matedit_i = i - 1;
matedit_j = j - 1;
return ERR_NONE;
}
static int mappable_tanh_r(phloat x, phloat *y) {
*y = tanh(x);
return ERR_NONE;
}
static int mappable_tanh_c(phloat xre, phloat xim, phloat *yre, phloat *yim) {
phloat sinhxre, coshxre;
phloat sinxim, cosxim;
phloat re_sinh, re_cosh, im_sinh, im_cosh, abs_cosh;
int inf;
sinhxre = sinh(xre);
coshxre = cosh(xre);
sincos(xim, &sinxim, &cosxim);
re_sinh = sinhxre * cosxim;
im_sinh = coshxre * sinxim;
re_cosh = coshxre * cosxim;
im_cosh = sinhxre * sinxim;
abs_cosh = hypot(re_cosh, im_cosh);
if (abs_cosh == 0) {
if (flags.f.range_error_ignore) {
*yre = re_sinh * im_sinh + re_cosh * im_cosh > 0 ? POS_HUGE_PHLOAT
: NEG_HUGE_PHLOAT;
*yim = im_sinh * re_cosh - re_sinh * im_cosh > 0 ? POS_HUGE_PHLOAT
: NEG_HUGE_PHLOAT;
} else
return ERR_OUT_OF_RANGE;
}
*yre = (re_sinh * re_cosh + im_sinh * im_cosh) / abs_cosh / abs_cosh;
if ((inf = p_isinf(*yre)) != 0) {
if (flags.f.range_error_ignore)
*yre = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
*yim = (im_sinh * re_cosh - re_sinh * im_cosh) / abs_cosh / abs_cosh;
if ((inf = p_isinf(*yim)) != 0) {
if (flags.f.range_error_ignore)
*yim = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
return ERR_NONE;
}
int docmd_tanh(arg_struct *arg) {
if (reg_x->type != TYPE_STRING) {
vartype *v;
int err = map_unary(reg_x, &v, mappable_tanh_r, mappable_tanh_c);
if (err == ERR_NONE)
unary_result(v);
return err;
} else
return ERR_ALPHA_DATA_IS_INVALID;
}
int docmd_trans(arg_struct *arg) {
if (reg_x->type == TYPE_REALMATRIX) {
vartype_realmatrix *src = (vartype_realmatrix *) reg_x;
vartype_realmatrix *dst;
int4 rows = src->rows;
int4 columns = src->columns;
int4 i, j;
dst = (vartype_realmatrix *) new_realmatrix(columns, rows);
if (dst == NULL)
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < rows; i++)
for (j = 0; j < columns; j++) {
int4 n1 = i * columns + j;
int4 n2 = j * rows + i;
dst->array->is_string[n2] = src->array->is_string[n1];
dst->array->data[n2] = src->array->data[n1];
}
unary_result((vartype *) dst);
return ERR_NONE;
} else if (reg_x->type == TYPE_COMPLEXMATRIX) {
vartype_complexmatrix *src = (vartype_complexmatrix *) reg_x;
vartype_complexmatrix *dst;
int4 rows = src->rows;
int4 columns = src->columns;
int4 i, j;
dst = (vartype_complexmatrix *) new_complexmatrix(columns, rows);
if (dst == NULL)
return ERR_INSUFFICIENT_MEMORY;
for (i = 0; i < rows; i++)
for (j = 0; j < columns; j++) {
int4 n1 = 2 * (i * columns + j);
int4 n2 = 2 * (j * rows + i);
dst->array->data[n2] = src->array->data[n1];
dst->array->data[n2 + 1] = src->array->data[n1 + 1];
}
unary_result((vartype *) dst);
return ERR_NONE;
} else if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
else
return ERR_INVALID_TYPE;
}
int docmd_wrap(arg_struct *arg) {
flags.f.grow = 0;
return ERR_NONE;
}
int docmd_x_swap(arg_struct *arg) {
vartype *v;
int err = generic_rcl(arg, &v);
if (err != ERR_NONE)
return err;
err = generic_sto(arg, 0);
if (err != ERR_NONE)
free_vartype(v);
else {
free_vartype(reg_x);
reg_x = v;
if (flags.f.trace_print && flags.f.printer_exists)
docmd_prx(NULL);
}
return err;
}
#define DIR_LEFT 0
#define DIR_RIGHT 1
#define DIR_UP 2
#define DIR_DOWN 3
static int matedit_move(int direction) {
vartype *m, *v;
vartype_realmatrix *rm;
vartype_complexmatrix *cm;
int4 rows, columns, new_i, new_j, old_n, new_n;
int edge_flag = 0;
int end_flag = 0;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type == TYPE_REALMATRIX) {
rm = (vartype_realmatrix *) m;
rows = rm->rows;
columns = rm->columns;
} else if (m->type == TYPE_COMPLEXMATRIX) {
cm = (vartype_complexmatrix *) m;
rows = cm->rows;
columns = cm->columns;
} else
return ERR_INVALID_TYPE;
if (!disentangle(m))
return ERR_INSUFFICIENT_MEMORY;
new_i = matedit_i;
new_j = matedit_j;
switch (direction) {
case DIR_LEFT:
if (--new_j < 0) {
edge_flag = 1;
new_j = columns - 1;
if (--new_i < 0) {
end_flag = 1;
new_i = rows - 1;
}
}
break;
case DIR_RIGHT:
if (++new_j >= columns) {
edge_flag = 1;
new_j = 0;
if (++new_i >= rows) {
end_flag = 1;
if (flags.f.grow) {
int err;
if (matedit_mode == 2)
err = dimension_array_ref(matedit_x,
rows + 1, columns);
else
err = dimension_array(matedit_name, matedit_length,
rows + 1, columns);
if (err != ERR_NONE)
return err;
new_i = rows++;
} else
new_i = 0;
}
}
break;
case DIR_UP:
if (--new_i < 0) {
edge_flag = 1;
new_i = rows - 1;
if (--new_j < 0) {
end_flag = 1;
new_j = columns - 1;
}
}
break;
case DIR_DOWN:
if (++new_i >= rows) {
edge_flag = 1;
new_i = 0;
if (++new_j >= columns) {
end_flag = 1;
new_j = 0;
}
}
break;
}
old_n = matedit_i * columns + matedit_j;
new_n = new_i * columns + new_j;
if (m->type == TYPE_REALMATRIX) {
if (old_n != new_n) {
if (rm->array->is_string[new_n])
v = new_string(phloat_text(rm->array->data[new_n]),
phloat_length(rm->array->data[new_n]));
else
v = new_real(rm->array->data[new_n]);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
}
if (reg_x->type == TYPE_REAL) {
rm->array->is_string[old_n] = 0;
rm->array->data[old_n] = ((vartype_real *) reg_x)->x;
} else if (reg_x->type == TYPE_STRING) {
vartype_string *s = (vartype_string *) reg_x;
int i;
rm->array->is_string[old_n] = 1;
phloat_length(rm->array->data[old_n]) = s->length;
for (i = 0; i < s->length; i++)
phloat_text(rm->array->data[old_n])[i] = s->text[i];
} else {
free_vartype(v);
return ERR_INVALID_TYPE;
}
} else /* m->type == TYPE_COMPLEXMATRIX */ {
if (old_n != new_n) {
v = new_complex(cm->array->data[2 * new_n],
cm->array->data[2 * new_n + 1]);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
}
if (reg_x->type == TYPE_REAL) {
cm->array->data[2 * old_n] = ((vartype_real *) reg_x)->x;
cm->array->data[2 * old_n + 1] = 0;
} else if (reg_x->type == TYPE_COMPLEX) {
vartype_complex *c = (vartype_complex *) reg_x;
cm->array->data[2 * old_n] = c->re;
cm->array->data[2 * old_n + 1] = c->im;
} else {
free_vartype(v);
return ERR_INVALID_TYPE;
}
}
matedit_i = new_i;
matedit_j = new_j;
flags.f.matrix_edge_wrap = edge_flag;
flags.f.matrix_end_wrap = end_flag;
if (old_n != new_n) {
free_vartype(reg_x);
reg_x = v;
}
mode_disable_stack_lift = true;
if (flags.f.trace_print && flags.f.printer_enable)
docmd_prx(NULL);
return ERR_NONE;
}
int docmd_left(arg_struct *arg) {
return matedit_move(DIR_LEFT);
}
int docmd_up(arg_struct *arg) {
return matedit_move(DIR_UP);
}
int docmd_down(arg_struct *arg) {
return matedit_move(DIR_DOWN);
}
int docmd_right(arg_struct *arg) {
return matedit_move(DIR_RIGHT);
}
int docmd_percent_ch(arg_struct *arg) {
phloat x, y, r;
int inf;
vartype *v;
if (reg_x->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_x->type != TYPE_REAL)
return ERR_INVALID_TYPE;
if (reg_y->type == TYPE_STRING)
return ERR_ALPHA_DATA_IS_INVALID;
if (reg_y->type != TYPE_REAL)
return ERR_INVALID_TYPE;
x = ((vartype_real *) reg_x)->x;
y = ((vartype_real *) reg_y)->x;
if (y == 0)
return ERR_DIVIDE_BY_0;
r = (x - y) / y * 100;
if ((inf = p_isinf(r)) != 0) {
if (flags.f.range_error_ignore)
r = inf < 0 ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
else
return ERR_OUT_OF_RANGE;
}
v = new_real(r);
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
/* Binary function, but unary result, like % */
unary_result(v);
return ERR_NONE;
}
static vartype *matx_v;
static void matx_completion(int error, vartype *res) {
if (error != ERR_NONE) {
free_vartype(matx_v);
return;
}
store_var("MATX", 4, res);
matedit_prev_appmenu = MENU_MATRIX_SIMQ;
set_menu(MENULEVEL_APP, MENU_MATRIX_EDIT1);
/* NOTE: no need to use set_menu_return_err() here, since the MAT[ABX]
* commands can only be invoked from the SIMQ menu; the SIMQ menu
* has no exit callback, so leaving it never fails.
*/
set_appmenu_exitcallback(1);
if (res->type == TYPE_REALMATRIX) {
vartype_realmatrix *m = (vartype_realmatrix *) res;
vartype_real *v = (vartype_real *) matx_v;
v->x = m->array->data[0];
} else {
vartype_complexmatrix *m = (vartype_complexmatrix *) res;
vartype_complex *v = (vartype_complex *) matx_v;
v->re = m->array->data[0];
v->im = m->array->data[1];
}
free_vartype(reg_x);
reg_x = matx_v;
matedit_mode = 3;
matedit_length = 4;
matedit_name[0] = 'M';
matedit_name[1] = 'A';
matedit_name[2] = 'T';
matedit_name[3] = 'X';
matedit_i = 0;
matedit_j = 0;
}
static int matabx(int which) {
vartype *mat, *v;
switch (which) {
case 0:
mat = recall_var("MATA", 4);
break;
case 1:
mat = recall_var("MATB", 4);
break;
case 2: {
vartype *mata, *matb;
mata = recall_var("MATA", 4);
if (mata == NULL)
return ERR_NONEXISTENT;
if (mata->type != TYPE_REALMATRIX
&& mata->type != TYPE_COMPLEXMATRIX)
return ERR_INVALID_TYPE;
matb = recall_var("MATB", 4);
if (matb == NULL)
return ERR_NONEXISTENT;
if (matb->type != TYPE_REALMATRIX
&& matb->type != TYPE_COMPLEXMATRIX)
return ERR_INVALID_TYPE;
if (mata->type == TYPE_REALMATRIX && matb->type == TYPE_REALMATRIX)
matx_v = new_real(0);
else
matx_v = new_complex(0, 0);
if (matx_v == NULL)
return ERR_INSUFFICIENT_MEMORY;
return linalg_div(matb, mata, matx_completion);
}
}
if (mat->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm = (vartype_realmatrix *) mat;
if (rm->array->is_string[0])
v = new_string(phloat_text(rm->array->data[0]),
phloat_length(rm->array->data[0]));
else
v = new_real(rm->array->data[0]);
} else {
vartype_complexmatrix *cm = (vartype_complexmatrix *) mat;
v = new_complex(cm->array->data[0], cm->array->data[1]);
}
if (v == NULL)
return ERR_INSUFFICIENT_MEMORY;
matedit_prev_appmenu = MENU_MATRIX_SIMQ;
set_menu(MENULEVEL_APP, MENU_MATRIX_EDIT1);
/* NOTE: no need to use set_menu_return_err() here, since the MAT[ABX]
* commands can only be invoked from the SIMQ menu; the SIMQ menu
* has no exit callback, so leaving it never fails.
*/
set_appmenu_exitcallback(1);
free_vartype(reg_x);
reg_x = v;
matedit_mode = 3;
matedit_length = 4;
matedit_name[0] = 'M';
matedit_name[1] = 'A';
matedit_name[2] = 'T';
matedit_name[3] = which == 0 ? 'A' : 'B';
matedit_i = 0;
matedit_j = 0;
return ERR_NONE;
}
int docmd_mata(arg_struct *arg) {
return matabx(0);
}
int docmd_matb(arg_struct *arg) {
return matabx(1);
}
int docmd_matx(arg_struct *arg) {
return matabx(2);
}
int docmd_simq(arg_struct *arg) {
vartype *m, *mata, *matb, *matx;
int4 dim;
int err;
if (arg->type != ARGTYPE_NUM)
return ERR_INVALID_TYPE;
dim = arg->val.num;
if (dim <= 0)
return ERR_DIMENSION_ERROR;
m = recall_var("MATA", 4);
if (m != NULL && (m->type == TYPE_REALMATRIX || m->type == TYPE_COMPLEXMATRIX)) {
mata = dup_vartype(m);
if (mata == NULL)
return ERR_INSUFFICIENT_MEMORY;
err = dimension_array_ref(mata, dim, dim);
if (err != ERR_NONE)
goto abort_and_free_a;
} else {
mata = new_realmatrix(dim, dim);
if (mata == NULL)
return ERR_INSUFFICIENT_MEMORY;
}
m = recall_var("MATB", 4);
if (m != NULL && (m->type == TYPE_REALMATRIX || m->type == TYPE_COMPLEXMATRIX)) {
matb = dup_vartype(m);
if (matb == NULL) {
err = ERR_INSUFFICIENT_MEMORY;
goto abort_and_free_a;
}
err = dimension_array_ref(matb, dim, 1);
if (err != ERR_NONE)
goto abort_and_free_a_b;
} else {
matb = new_realmatrix(dim, 1);
if (matb == NULL) {
err = ERR_INSUFFICIENT_MEMORY;
goto abort_and_free_a;
}
}
m = recall_var("MATX", 4);
if (m != NULL && (m->type == TYPE_REALMATRIX || m->type == TYPE_COMPLEXMATRIX)) {
matx = dup_vartype(m);
if (matx == NULL) {
err = ERR_INSUFFICIENT_MEMORY;
goto abort_and_free_a_b;
}
err = dimension_array_ref(matx, dim, 1);
if (err != ERR_NONE)
goto abort_and_free_a_b_x;
} else {
matx = new_realmatrix(dim, 1);
if (matx == NULL) {
err = ERR_INSUFFICIENT_MEMORY;
goto abort_and_free_a_b;
}
}
err = set_menu_return_err(MENULEVEL_APP, MENU_MATRIX_SIMQ);
if (err != ERR_NONE) {
/* Didn't work; we're stuck in the matrix editor
* waiting for the user to put something valid into X.
* (Then again, how can anyone issue the SIMQ command if
* they're in the matrix editor? SIMQ has the 'hidden'
* command property. Oh, well, better safe than sorry...)
*/
abort_and_free_a_b_x:
free_vartype(matx);
abort_and_free_a_b:
free_vartype(matb);
abort_and_free_a:
free_vartype(mata);
return err;
}
store_var("MATX", 4, matx);
store_var("MATB", 4, matb);
store_var("MATA", 4, mata);
return ERR_NONE;
}
static int max_min_helper(int do_max) {
vartype *m;
vartype_realmatrix *rm;
phloat max_or_min_value = do_max ? NEG_HUGE_PHLOAT : POS_HUGE_PHLOAT;
int4 i, max_or_min_index = 0;
vartype *new_x, *new_y;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type != TYPE_REALMATRIX)
return ERR_INVALID_TYPE;
rm = (vartype_realmatrix *) m;
for (i = matedit_i; i < rm->rows; i++) {
int4 index = i * rm->columns + matedit_j;
phloat e;
if (rm->array->is_string[index])
return ERR_ALPHA_DATA_IS_INVALID;
e = rm->array->data[index];
if (do_max ? e >= max_or_min_value : e <= max_or_min_value) {
max_or_min_value = e;
max_or_min_index = i;
}
}
new_x = new_real(max_or_min_value);
if (new_x == NULL)
return ERR_INSUFFICIENT_MEMORY;
new_y = new_real(max_or_min_index + 1);
if (new_y == NULL) {
free_vartype(new_x);
return ERR_INSUFFICIENT_MEMORY;
}
recall_two_results(new_x, new_y);
return ERR_NONE;
}
int docmd_max(arg_struct *arg) {
return max_min_helper(1);
}
int docmd_min(arg_struct *arg) {
return max_min_helper(0);
}
int docmd_find(arg_struct *arg) {
vartype *m;
if (reg_x->type == TYPE_REALMATRIX || reg_x->type == TYPE_COMPLEXMATRIX)
return ERR_INVALID_TYPE;
switch (matedit_mode) {
case 0:
return ERR_NONEXISTENT;
case 1:
case 3:
m = recall_var(matedit_name, matedit_length);
break;
case 2:
m = matedit_x;
break;
default:
return ERR_INTERNAL_ERROR;
}
if (m == NULL)
return ERR_NONEXISTENT;
if (m->type == TYPE_REALMATRIX) {
vartype_realmatrix *rm;
int4 i, j, p = 0;
if (reg_x->type == TYPE_COMPLEX)
return ERR_NO;
rm = (vartype_realmatrix *) m;
if (reg_x->type == TYPE_REAL) {
phloat d = ((vartype_real *) reg_x)->x;
for (i = 0; i < rm->rows; i++)
for (j = 0; j < rm->columns; j++)
if (!rm->array->is_string[p] && rm->array->data[p] == d) {
matedit_i = i;
matedit_j = j;
return ERR_YES;
} else
p++;
} else /* reg_x->type == TYPE_STRING */ {
vartype_string *s = (vartype_string *) reg_x;
for (i = 0; i < rm->rows; i++)
for (j = 0; j < rm->columns; j++)
if (rm->array->is_string[p]
&& string_equals(s->text, s->length,
phloat_text(rm->array->data[p]),
phloat_length(rm->array->data[p]))) {
matedit_i = i;
matedit_j = j;
return ERR_YES;
} else
p++;
}
} else /* m->type == TYPE_COMPLEXMATRIX */ {
vartype_complexmatrix *cm;
int4 i, j, p = 0;
phloat re, im;
if (reg_x->type != TYPE_COMPLEX)
return ERR_NO;
cm = (vartype_complexmatrix *) m;
re = ((vartype_complex *) reg_x)->re;
im = ((vartype_complex *) reg_x)->im;
for (i = 0; i < cm->rows; i++)
for (j = 0; j < cm->columns; j++)
if (cm->array->data[p] == re && cm->array->data[p + 1] == im) {
matedit_i = i;
matedit_j = j;
return ERR_YES;
} else
p += 2;
}
return ERR_NO;
}
int docmd_xrom(arg_struct *arg) {
return ERR_NONEXISTENT;
}
| axd1967/free42s | common/core_commands4.cc | C++ | gpl-2.0 | 48,956 |
/***************************************************/
/*! \class BiQuad
\brief STK biquad (two-pole, two-zero) filter class.
This class implements a two-pole, two-zero digital filter.
Methods are provided for creating a resonance or notch in the
frequency response while maintaining a constant filter gain.
by Perry R. Cook and Gary P. Scavone, 1995-2012.
*/
/***************************************************/
#include "BiQuad.h"
#include <cmath>
namespace stk {
BiQuad :: BiQuad() : Filter()
{
b_.resize( 3, 0.0 );
a_.resize( 3, 0.0 );
b_[0] = 1.0;
a_[0] = 1.0;
inputs_.resize( 3, 1, 0.0 );
outputs_.resize( 3, 1, 0.0 );
Stk::addSampleRateAlert( this );
}
BiQuad :: ~BiQuad()
{
Stk::removeSampleRateAlert( this );
}
void BiQuad :: setCoefficients( StkFloat b0, StkFloat b1, StkFloat b2, StkFloat a1, StkFloat a2, bool clearState )
{
b_[0] = b0;
b_[1] = b1;
b_[2] = b2;
a_[1] = a1;
a_[2] = a2;
if ( clearState ) this->clear();
}
void BiQuad :: sampleRateChanged( StkFloat newRate, StkFloat oldRate )
{
if ( !ignoreSampleRateChange_ ) {
std::cerr << "BiQuad::sampleRateChanged: you may need to recompute filter coefficients!";
handleError( StkError::WARNING );
}
}
void BiQuad :: setResonance( StkFloat frequency, StkFloat radius, bool normalize )
{
#if defined(_STK_DEBUG_)
if ( frequency < 0.0 || frequency > 0.5 * Stk::sampleRate() ) {
std::cerr << "BiQuad::setResonance: frequency argument (" << frequency << ") is out of range!";
handleError( StkError::WARNING ); return;
}
if ( radius < 0.0 || radius >= 1.0 ) {
std::cerr << "BiQuad::setResonance: radius argument (" << radius << ") is out of range!";
handleError( StkError::WARNING ); return;
}
#endif
a_[2] = radius * radius;
a_[1] = -2.0 * radius * cos( TWO_PI * frequency / Stk::sampleRate() );
if ( normalize ) {
// Use zeros at +- 1 and normalize the filter peak gain.
b_[0] = 0.5 - 0.5 * a_[2];
b_[1] = 0.0;
b_[2] = -b_[0];
}
}
void BiQuad :: setNotch( StkFloat frequency, StkFloat radius )
{
#if defined(_STK_DEBUG_)
if ( frequency < 0.0 || frequency > 0.5 * Stk::sampleRate() ) {
std::cerr << "BiQuad::setNotch: frequency argument (" << frequency << ") is out of range!";
handleError( StkError::WARNING ); return;
}
if ( radius < 0.0 ) {
std::cerr << "BiQuad::setNotch: radius argument (" << radius << ") is negative!";
handleError( StkError::WARNING ); return;
}
#endif
// This method does not attempt to normalize the filter gain.
b_[2] = radius * radius;
b_[1] = (StkFloat) -2.0 * radius * cos( TWO_PI * (double) frequency / Stk::sampleRate() );
}
void BiQuad :: setEqualGainZeroes( void )
{
b_[0] = 1.0;
b_[1] = 0.0;
b_[2] = -1.0;
}
} // stk namespace
| TheAlphaNerd/theremax | include/stk/BiQuad.cpp | C++ | gpl-2.0 | 2,784 |
/*
* Copyright (C) 2005-2014 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "mpqfile.h"
#include <deque>
#include <cstdio>
#include "StormLib.h"
MPQFile::MPQFile(HANDLE mpq, const char* filename, bool warnNoExist /*= true*/) :
eof(false),
buffer(0),
pointer(0),
size(0)
{
HANDLE file;
if (!SFileOpenFileEx(mpq, filename, SFILE_OPEN_PATCHED_FILE, &file))
{
if (warnNoExist || GetLastError() != ERROR_FILE_NOT_FOUND)
fprintf(stderr, "Can't open %s, err=%u!\n", filename, GetLastError());
eof = true;
return;
}
DWORD hi = 0;
size = SFileGetFileSize(file, &hi);
if (hi)
{
fprintf(stderr, "Can't open %s, size[hi] = %u!\n", filename, uint32(hi));
SFileCloseFile(file);
eof = true;
return;
}
if (size <= 1)
{
fprintf(stderr, "Can't open %s, size = %u!\n", filename, uint32(size));
SFileCloseFile(file);
eof = true;
return;
}
DWORD read = 0;
buffer = new char[size];
if (!SFileReadFile(file, buffer, size, &read) || size != read)
{
fprintf(stderr, "Can't read %s, size=%u read=%u!\n", filename, uint32(size), uint32(read));
SFileCloseFile(file);
eof = true;
return;
}
SFileCloseFile(file);
}
size_t MPQFile::read(void* dest, size_t bytes)
{
if (eof) return 0;
size_t rpos = pointer + bytes;
if (rpos > size) {
bytes = size - pointer;
eof = true;
}
memcpy(dest, &(buffer[pointer]), bytes);
pointer = rpos;
return bytes;
}
void MPQFile::seek(int offset)
{
pointer = offset;
eof = (pointer >= size);
}
void MPQFile::seekRelative(int offset)
{
pointer += offset;
eof = (pointer >= size);
}
void MPQFile::close()
{
if (buffer) delete[] buffer;
buffer = 0;
eof = true;
}
| MistyWorld/MistyWorld_6xx | src/outils/vmap4_extracteur/mpqfile.cpp | C++ | gpl-2.0 | 2,513 |
<div><p><br/></p></div><div class="container">
<div class="row">
<div id="index" class="col-md-3">
<div >
<div class="panel panel-default">
<div class="panel-heading">Classes</div>
<div class="panel-body"><a href="/docs/api/BB_Frame"><span class="indent" style="padding-left:14px;"><i class="icon-jsdoc icon-jsdoc-class"></i><span class="jsdoc-class-index">Frame</span></span></a></div>
<div class="panel-body"><a href="/docs/api/BB_RecPlayer"><span class="indent" style="padding-left:14px;"><i class="icon-jsdoc icon-jsdoc-class"></i><span class="jsdoc-class-index">RecPlayer</span></span></a></div>
<div class="panel-body"><a href="/docs/api/BB_Recording"><span class="indent" style="padding-left:14px;"><i class="icon-jsdoc icon-jsdoc-class"></i><span class="jsdoc-class-index">Recording</span></span></a></div>
<div class="panel-body"><a href="/docs/api/BB_Session"><span class="indent" style="padding-left:14px;"><i class="icon-jsdoc icon-jsdoc-class"></i><span class="jsdoc-class-index">Session</span></span></a></div>
<div class="panel-body"><a href="/docs/api/_global_"><span class="indent" style="padding-left:0px;"><i class="icon-jsdoc icon-jsdoc-namespace"></i><span class="jsdoc-class-index">_global_</span></span></a></div>
</div>
</div>
</div>
<div id="content" class="col-md-9">
<pre class="prettyprint linenums">goog.provide('BB.Session');
goog.require('BB.Frame');
goog.require('BB.Recording');
/**
*
* @param {string} backendUrl
* @param {number=} fps
* @param {string=} title
* @param {string=} url
*
* @constructor
*/
BB.Session = function(backendUrl, fps, title, url) {
/** @type {string} */
this.backendUrl = backendUrl;
/** @type {number} */
this.fps = fps || 3;
/** @type {number} */
this.TICK_MILLI = 1000 / this.fps;
/** @type {string} */
this.title = title || BB.Session.getPageTitle();
/** @type {string} */
this.url = url || BB.Session.getPageUrl();
/** @type {Array.<BB.Frame>} */
this.frames = [];
/** @type {boolean} */
this.active = false;
/** @type {number} Pointer to setTimeout */
this.timer;
/** @type {boolean} */
this.clicked = false;
this.init();
};
/**
* @private
*/
BB.Session.prototype.init = function(){
var self = this;
document.addEventListener('mousemove', function(e) {
BB.Session.mouse.x = e.clientX || e.pageX;
BB.Session.mouse.y = e.clientY || e.pageY;
}, false);
document.addEventListener('click', function(e) {
self.clicked = true;
}, false);
};
/**
* Start recording a session
*/
BB.Session.prototype.start = function(){
if (!this.active) {
this.active = true;
this.tick();
}
};
/**
* Stop recording a session
*/
BB.Session.prototype.stop = function(){
clearTimeout(this.timer);
this.active = false;
};
/**
* Captures the current frame
*
* @private
*/
BB.Session.prototype.tick = function(){
if (this.active) {
var frame = new BB.Frame(
BB.Frame.getCurrentWin(),
BB.Frame.getCurrentScroll(),
BB.Frame.getCurrentMouse(),
this.clicked
);
this.frames.push(frame);
this.timer = setTimeout(this.tick.bind(this), this.TICK_MILLI);
this.clicked = false;
}
};
/**
* Send recording to backend server
*/
BB.Session.prototype.upload = function(){
var xhr = new XMLHttpRequest();
xhr.open('POST', '/save.php', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhr.send('recording=' + this.toString());
};
/**
*
* @returns {string}
*/
BB.Session.getPageTitle = function() {
var el = document.getElementsByTagName('title');
var title = 'Untitled document';
if (el.length > 0) {
title = el[0].textContent;
}
return title;
};
/**
*
* @returns {string}
*/
BB.Session.getPageUrl = function(){
return window.location.href;
};
/**
*
* @returns {string}
*/
BB.Session.prototype.toString = function(){
return JSON.stringify(
new BB.Recording(this.title, this.url, BB.Frame.getClientRes(), this.fps, this.frames)
);
};
/**
*
* @type {BB.mouse}
*/
BB.Session.mouse = {
x: 0,
y: 0
};
</div>
</div>
</div>
<script type="text/javascript">
prettyPrint();
var i = 1;
$('#source-code li').each(function() {
$(this).attr({ id: 'line' + (i++) });
});
</script>
</div></div> | formigone/big-brother-js | promo-site/application/views/scripts/docs/src/BB_Session_js.php | PHP | gpl-2.0 | 4,500 |
import urllib2
import appuifw, e32
from key_codes import *
class Drinker(object):
def __init__(self):
self.id = 0
self.name = ""
self.prom = 0.0
self.idle = ""
self.drinks = 0
def get_drinker_list():
data = urllib2.urlopen("http://192.168.11.5:8080/drinkcounter/get_datas/").read().split("\n")
drinkers = []
for data_row in data:
if data_row == '': continue
fields = data_row.split('|')
drinker = Drinker()
drinker.id = int(fields[0])
drinker.name = fields[1]
drinker.drinks = int(fields[2])
drinker.prom = float(fields[3])
drinker.idle = fields[4]
drinkers.append(drinker)
return drinkers
def get_listbox_items(drinkers):
items = []
for drinker in drinkers:
items.append(unicode('%s, %d drinks, %s' % (drinker.name, drinker.drinks, drinker.idle)))
return items
appuifw.app.title = u"Alkoholilaskuri"
app_lock = e32.Ao_lock()
#Define the exit function
def quit():
app_lock.signal()
appuifw.app.exit_key_handler = quit
drinkers = get_drinker_list()
items = get_listbox_items(drinkers)
#Define a function that is called when an item is selected
def handle_selection():
selected_drinker = drinkers[lb.current()]
urllib2.urlopen("http://192.168.11.5:8080/drinkcounter/add_drink/%d/" % (selected_drinker.id))
appuifw.note(u"A drink has been added to " + drinkers[lb.current()].name, 'info')
new_drinkers = get_drinker_list()
items = get_listbox_items(new_drinkers)
lb.set_list(items, lb.current())
#Create an instance of Listbox and set it as the application's body
lb = appuifw.Listbox(items, handle_selection)
appuifw.app.body = lb
app_lock.wait()
| deggis/drinkcounter | clients/s60-python/client.py | Python | gpl-2.0 | 1,757 |
package com.mikesantiago.mariofighter;
import static com.mikesantiago.mariofighter.GlobalVariables.PPM;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.badlogic.gdx.physics.box2d.PolygonShape;
import com.badlogic.gdx.physics.box2d.World;
import com.mikesantiago.mariofighter.assets.Animation;
public class PlayerOne
{
public enum Direction
{
LEFT, RIGHT, STOP
}
private BodyDef playerBodyDef;
private Body playerBody;
private PolygonShape playerShape;
private FixtureDef playerFixtureDef;
private Fixture playerFixture;
private boolean isMoving = false;
private Direction currentDirection = Direction.RIGHT;
private Animation animationRight;
private Animation animationLeft;
public boolean getMoving(){return isMoving;}
public Direction getCurrentDirection(){return currentDirection;}
public PlayerOne(World worldToCreateIn)
{
playerBodyDef = new BodyDef();
playerBodyDef.type = BodyType.DynamicBody;
playerBodyDef.position.set(new Vector2(32f / PPM, 256f / PPM));
playerBody = worldToCreateIn.createBody(playerBodyDef);
playerShape = new PolygonShape();
playerShape.setAsBox((32f / 2) / PPM, (36f / 2) / PPM);
playerFixtureDef = new FixtureDef();
playerFixtureDef.shape = playerShape;
playerFixtureDef.filter.categoryBits = GlobalVariables.PLAYER_BIT;
playerFixtureDef.filter.maskBits = GlobalVariables.GROUND_BIT;
playerFixture = playerBody.createFixture(playerFixtureDef);
playerFixture.setUserData("body");
//create foot sensor
{
playerShape.setAsBox(2 / PPM, 2 / PPM, new Vector2(0, -32 / PPM), 0);
playerFixtureDef.shape = playerShape;
playerFixtureDef.filter.categoryBits = GlobalVariables.PLAYER_BIT;
playerFixtureDef.filter.maskBits = GlobalVariables.GROUND_BIT;
playerFixtureDef.isSensor = true;
playerBody.createFixture(playerFixtureDef).setUserData("FOOT");
}
CreateAnimation();
System.out.println("Player 1 created!");
}
private void CreateAnimation()
{
float updateInterval = 1 / 20f;
Texture tex = GlobalVariables.manager.GetTexture("mario");
TextureRegion[] sprites = TextureRegion.split(tex, 16, 28)[0];
if(animationRight == null)
animationRight = new Animation();
animationRight.setFrames(sprites, updateInterval);
if(animationLeft == null)
animationLeft = new Animation();
TextureRegion[] leftSprites = TextureRegion.split(tex, 16, 28)[0];
for(TextureRegion tr : leftSprites)
tr.flip(true, false);
animationLeft.setFrames(leftSprites, updateInterval);
sprWidth = sprites[0].getRegionWidth();
sprHeight = sprites[0].getRegionHeight();
}
private int sprWidth, sprHeight;
public void update(float dt)
{
if(this.isMoving)
{
animationRight.update(dt);
animationLeft.update(dt);
}
}
public void render(SpriteBatch sb)
{
if(!sb.isDrawing())
sb.begin();
sb.setProjectionMatrix(GlobalVariables.maincamera.combined);
if(this.isMoving)
{
if(this.currentDirection == Direction.RIGHT)
{
sb.draw(animationRight.getFrame(),
(playerBody.getPosition().x * PPM) - 16, (playerBody.getPosition().y * PPM) - 34,
sprWidth * 2, sprHeight * 2);
}
else if(this.currentDirection == Direction.LEFT)
{
sb.draw(animationLeft.getFrame(),
(playerBody.getPosition().x * PPM) - 16, (playerBody.getPosition().y * PPM) - 34,
sprWidth * 2, sprHeight * 2);
}
}
else
{
if(this.currentDirection == Direction.RIGHT)
{
sb.draw(animationRight.getFrame(0),
(playerBody.getPosition().x * PPM) - 16, (playerBody.getPosition().y * PPM) - 34,
sprWidth * 2, sprHeight * 2);
}
else if(this.currentDirection == Direction.LEFT)
{
sb.draw(animationLeft.getFrame(0),
(playerBody.getPosition().x * PPM) - 16, (playerBody.getPosition().y * PPM) - 34,
sprWidth * 2, sprHeight * 2);
}
}
if(sb.isDrawing())
sb.end();
}
public void setMoving(boolean a){this.isMoving = a;}
public void setCurrentDirection(Direction a){currentDirection = a;}
public BodyDef getPlayerBodyDef() {
return playerBodyDef;
}
public void setPlayerBodyDef(BodyDef playerBodyDef) {
this.playerBodyDef = playerBodyDef;
}
public Body getPlayerBody() {
return playerBody;
}
public void setPlayerBody(Body playerBody) {
this.playerBody = playerBody;
}
public PolygonShape getPlayerShape() {
return playerShape;
}
public void setPlayerShape(PolygonShape playerShape) {
this.playerShape = playerShape;
}
public FixtureDef getPlayerFixtureDef() {
return playerFixtureDef;
}
public void setPlayerFixtureDef(FixtureDef playerFixtureDef) {
this.playerFixtureDef = playerFixtureDef;
}
public Fixture getPlayerFixture() {
return playerFixture;
}
public void setPlayerFixture(Fixture playerFixture) {
this.playerFixture = playerFixture;
}
}
| Luigifan/MarioFighter | core/src/com/mikesantiago/mariofighter/PlayerOne.java | Java | gpl-2.0 | 5,195 |
<?php
class Request {
public static function redirect($to) {
header('Location: ' . Config::get('url') . $to);
}
public static function path() {
return $_SERVER['REQUEST_URI'];
}
public static function method() {
$method = $_SERVER['REQUEST_METHOD'];
if($method === 'PUT') return 'put';
if($method === 'GET') return 'post';
if($method === 'GET') return 'get';
if($method === 'HEAD') return 'head';
if($method === 'DELETE') return 'delete';
if($method === 'OPTIONS') return 'options';
return false;
}
public static function isMethod($method) {
if(self::method() === $method) {
return true;
}
return false;
}
}
| thatasko/elsa | system/modules/Request.php | PHP | gpl-2.0 | 708 |
/*
* Copyright (c) 1998-2011 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Resin Open Source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
* of NON-INFRINGEMENT. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License
* along with Resin Open Source; if not, write to the
*
* Free Software Foundation, Inc.
* 59 Temple Place, Suite 330
* Boston, MA 02111-1307 USA
*
* @author Sam
*/
package com.caucho.quercus.lib.spl;
import com.caucho.quercus.env.Value;
public interface OuterIterator
extends Iterator
{
public Value getInnerIterator();
}
| dlitz/resin | modules/quercus/src/com/caucho/quercus/lib/spl/OuterIterator.java | Java | gpl-2.0 | 1,187 |
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
// This file is part of Libmoleculizer
//
// Copyright (C) 2001-2009 The Molecular Sciences Institute.
//
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//
// Moleculizer is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// Moleculizer is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Moleculizer; if not, write to the Free Software Foundation
// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
//
// END HEADER
//
// Original Author:
// Larry Lok, Research Fellow, Molecular Sciences Institute, 2001
//
// Modifing Authors:
//
//
#ifndef FND_DUMPSTREAM_H
#define FND_DUMPSTREAM_H
#include <fstream>
#include <vector>
#include "utl/xcpt.hh"
#include "utl/autoVector.hh"
#include "fnd/dumpable.hh"
#include "fnd/dmpColumn.hh"
namespace fnd
{
class dumpStream :
public utl::autoVector<basicDmpColumn>
{
// Now that the output stream and everything else is passed to
// the dumpables through a dumpArg, these are here mainly to
// memory-manage the stream, to emphasize that this class is what
// corresponds to a .dmp file, and to facilitate the construction
// of dumpArg's through getOstream(), in particular.
std::string fileName;
std::ostream* pOs;
std::ofstream* pFileStream;
public:
// Use a genuine file path, "-" for std::cout, "+" for std::cerr.
dumpStream( const std::string& rFileName )
throw( utl::xcpt );
~dumpStream( void )
{
// This is null if the output stream not actually a file.
delete pFileStream;
}
std::ostream&
getOstream( void ) const
{
return *pOs;
}
// Returns the file name given at construction time, including
// the special cases.
const std::string&
getFileName( void ) const
{
return fileName;
}
// Initializes output stream and writes column headers.
void
init( void )
throw( utl::xcpt );
// Writes a line in the output file.
void
doDump( void );
};
}
#endif // FND_DUMPSTREAM_H
| ecell/libmoleculizer | src/libmoleculizer/fnd/dumpStream.hh | C++ | gpl-2.0 | 2,822 |
<?php
// $Id$
/**
* @file
* general functions for mothership
*/
function mothership_id_safe($string, $vars = "default") {
// Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
if($vars == "remove-numbers"){
$string = strtolower(preg_replace('/[^a-zA-Z_-]+/', '-', $string));
}else{
$string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));
}
// change the "_" to "-"
$string = strtolower(str_replace('_', '-', $string));
// If the first character is not a-z, add 'n' in front.
if (function_exists('ctype_lower')) {
if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
$string = 'id' . $string;
}
}
else {
preg_match('/[a-z]+/', $string{0}, $matches);
if (count($matches) == 0) {
$string = 'id' . $string;
}
}
return $string;
}
/*
getting some of the userprofile data into a single function
*/
function mothership_userprofile($user){
if ($user->uid) {
// global $user;
// $profile = profile_load_profile($user);
//$user->profile_name
//user picture
if ($user->picture) {
$userimage = '<img src="/' . $user->picture . '">';
print '<div class="profile-image">' . l($userimage, 'user/' . $user->uid, $options = array('html' => TRUE)) . '</div>';
}
print '<ul class="profile">';
print '<li class="profile-name">' . l($user->name, 'user/' . $user->uid . '') . '</li>';
print '<li class="profile-edit">' . l(t('edit'), 'user/' . $user->uid . '/edit') . '</li>';
print '<li class="profile-logout">' . l(t('Sign out'), 'logout') . '</li>';
print '</ul>';
}
}
/*
Quick & handy function for adding time ago
*/
function mothership_time_ago($timestamp,$granularity = 2, $langcode = NULL){
$difference = time() - $timestamp;
$text = format_interval($difference, $granularity, $langcode) ." ". t("ago");
return $text;
}
/*
return only the terms from a vocabulary in the node
*/
function return_terms_from_vocabulary($node, $vid){
$terms = taxonomy_node_get_terms_by_vocabulary($node, $vid, $key = 'tid');
// $vocabulary = taxonomy_vocabulary_load($vid);
// $content .='<div class="vocabulary">'.$vocabulary->name.'</div>';
$termslist = '';
if ($terms) {
$content .= '<span class="terms">';
foreach ($terms as $term) {
$termslist = $termslist . '<span class="term-icon-'. mothership_id_safe($term->name) .'">' . l($term->name, 'taxonomy/term/'.$term->tid) .'</span> | ';
}
//TODO make a better split option hardcoded is kinda sad ;)
$content.= trim ($termslist," |").'</span>';
}
return $content;
}
| aakb/sport-aarhus-events | sites/all/themes/mothership/template/template.functions.php | PHP | gpl-2.0 | 2,637 |
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
global $DB;
global $USER;
// Require config.php file for database connection // 1
require_once('/home/libecour/public_html/moodle/config.php');
// Get quiz number // 2
$quiz = $_GET['quiz'];
// Create connection - MySQLi (object-oriented) // 3
$conn = new mysqli($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname);
// Check connection - MySQLi (object-oriented) // 4
if ($conn->connect_error) {
die("Connection to the database failed: " . $conn->connect_error . "<br>");
}
// Set character set to UTF8 // 5
mysqli_set_charset($conn,"utf8");
// Check if user is connected // 6
if ($USER->id != 0) {
// Select Statement - MySQLi (object-oriented) // 7
$sql = "SELECT id FROM mdl_pe_learner_profile WHERE userid = $USER->id" ;
$result = $conn->query($sql);
// Get learner profile id // 8
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$learnerprofileid = $row['id'];
}
// free result set // 9
$result->free();
// Select Statement - MySQLi (object-oriented) // 10
$sql = "SELECT abilitylevel FROM mdl_pe_user_ability_levels WHERE learnerprofileid = $learnerprofileid AND libethemeid = 2" ;
$result = $conn->query($sql);
// Get ability level
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$abilitylevel = $row['abilitylevel'];
// free result set // 11
$result->free();
// Insert rows in mdl_pe_ability_level_log table // 12
$sql = "INSERT INTO mdl_pe_ability_level_log (learnerprofileid, libethemeid, quiz, abilitylevel, timelogged) VALUES ($learnerprofileid, 2, $quiz, '$abilitylevel', NULL)";
$conn->query($sql);
}
}
// Close database connection // 13
$conn->close();
| LIBE-VLE/libecour | pe/abilitylevellog.php | PHP | gpl-2.0 | 1,922 |
/*
* AudioCore.c: Implements the JNi interface and handles
*
* (C) Copyright 2015 Simon Grätzer
* Email: simon@graetzer.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2
* of the License.
*/
#include "de_rwth_aachen_comsys_audiosync_AudioCore.h"
#include <android/log.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <signal.h>
#include <assert.h>
#include "audioplayer.h"
#include "AudioStreamSession.h"
#include "SenderSession.h"
#include "ReceiverSession.h"
#include "decoder.h"
#include "jrtplib/rtpsourcedata.h"
#define debugLog(...) __android_log_print(ANDROID_LOG_DEBUG, "AudioCore", __VA_ARGS__)
//#define debugLog(...) printf(__VA_ARGS__)
#ifdef RTP_SUPPORT_THREAD
void thread_exit_handler(int sig) {
debugLog("this signal is %d \n", sig);
pthread_exit(0);
}
#endif
// Global audiostream manager
AudioStreamSession *audioSession;
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_initAudio(JNIEnv *env, jobject thiz,
jint samplesPerSec,
jint framesPerBuffer) {
audioplayer_initGlobal((uint32_t) samplesPerSec, (uint32_t) framesPerBuffer);
#ifdef RTP_SUPPORT_THREAD
// Workaround to kill threads since pthread_cancel is not supported
// See jthread.cpp
struct sigaction actions;
memset(&actions, 0, sizeof(actions));
sigemptyset(&actions.sa_mask);
actions.sa_flags = 0;
actions.sa_handler = thread_exit_handler;
sigaction(SIGUSR1, &actions, NULL);
#endif
}
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_deinitAudio(JNIEnv *env, jobject thiz) {
if (audioSession) audioSession->Stop();
if (audioSession) delete audioSession;
audioplayer_cleanup();
}
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_startStreamingAsset (JNIEnv *env, jobject thiz,
jint portbase,
jobject assetManager,
jstring jPath) {
AAssetManager *mgr = AAssetManager_fromJava(env, assetManager);
const char *path = env->GetStringUTFChars(jPath, 0);
// Open the asset from the assets/ folder
AAsset *asset = AAssetManager_open(mgr, path, AASSET_MODE_UNKNOWN);
env->ReleaseStringUTFChars(jPath, path);
if (NULL == asset) {
debugLog("_ASSET_NOT_FOUND_");
return;
}
off_t outStart, fileSize;
int fd = AAsset_openFileDescriptor(asset, &outStart, &fileSize);
assert(0 <= fd);
debugLog("Audio file offset: %ld, size: %ld", outStart, fileSize);
AMediaExtractor *extr = decoder_createExtractorFromFd(fd, outStart, fileSize);
audioSession = SenderSession::StartStreaming((uint16_t) portbase, extr);
AAsset_close(asset);
}
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_startStreamingUri
(JNIEnv *env, jobject thiz, jint portbase, jstring jPath) {
const char *path = env->GetStringUTFChars(jPath, 0);
AMediaExtractor *extr = decoder_createExtractorFromUri(path);
env->ReleaseStringUTFChars(jPath, path);
audioSession = SenderSession::StartStreaming((uint16_t) portbase, extr);
}
/*
* Class: de_rwth_aachen_comsys_audiosync_AudioCore
* Method: startReceiving
* Signature: (Ljava/lang/String;I)V
*/
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_startReceiving(JNIEnv *env, jobject thiz,
jstring jHost, jint portbase) {
const char *host = env->GetStringUTFChars(jHost, 0);
audioSession = ReceiverSession::StartReceiving(host, (uint16_t) portbase);
env->ReleaseStringUTFChars(jHost, host);
}
/*
* Class: de_rwth_aachen_comsys_audiosync_AudioCore
* Method: stop
* Signature: ()V
*/
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_stopServices(JNIEnv *env, jobject thiz) {
if (audioSession) audioSession->Stop();
audioplayer_stopPlayback();
}
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_setDeviceLatency(JNIEnv *env, jobject thiz, jlong latencyMs) {
if (latencyMs >= 0)
audioplayer_setDeviceLatency((int64_t)latencyMs * 1000);
}
/*
* Class: de_rwth_aachen_comsys_audiosync_AudioCore
* Method: getRtpSourceCount
* Signature: ()I
*/
jobjectArray Java_de_rwth_1aachen_comsys_audiosync_AudioCore_getAudioDestinations
(JNIEnv *env, jobject thiz) {
if (audioSession == NULL) return NULL;
int i = 0;
if (audioSession->GotoFirstSource())
do {
jrtplib::RTPSourceData *source = audioSession->GetCurrentSourceInfo();
if (source == nullptr || source->IsOwnSSRC()) continue;
i++;
} while (audioSession->GotoNextSource());
if (i == 0) return NULL;
jclass clzz = env->FindClass("de/rwth_aachen/comsys/audiosync/AudioDestination");
jmethodID init = env->GetMethodID(clzz, "<init>", "()V");
jfieldID nameID = env->GetFieldID(clzz, "name", "Ljava/lang/String;");
jfieldID jitterID = env->GetFieldID(clzz, "jitter", "I");
jfieldID timeOffsetID = env->GetFieldID(clzz, "timeOffset", "I");
jfieldID packetsLostID = env->GetFieldID(clzz, "packetsLost", "I");
jobjectArray ret = env->NewObjectArray(i, clzz, NULL);
i = 0;
if (audioSession->GotoFirstSource()) {
do {
jrtplib::RTPSourceData *source = audioSession->GetCurrentSourceInfo();
if (source != nullptr && !source->IsOwnSSRC()) {
jrtplib::RTPSourceData *sourceData = audioSession->GetCurrentSourceInfo();
size_t nameLen = 0;
uint8_t *nameChars = sourceData->SDES_GetName(&nameLen);
char chars[256] = {0};
memcpy(chars, nameChars, nameLen);
jobject dest = env->NewObject(clzz, init);
env->SetObjectField(dest, nameID, env->NewStringUTF(chars));
env->SetIntField(dest, jitterID, (jint) sourceData->INF_GetJitter());
env->SetIntField(dest, timeOffsetID, (jint)sourceData->GetClockOffsetUSeconds());
env->SetIntField(dest, packetsLostID, (jint) sourceData->RR_GetPacketsLost());
env->SetObjectArrayElement(ret, i, dest);
i++;
}
} while (audioSession->GotoNextSource());
}
return ret;
}
/*
* Return current presentation time in milliseconds
*/
jlong Java_de_rwth_1aachen_comsys_audiosync_AudioCore_getCurrentPresentationTime
(JNIEnv *, jobject) {
if (audioSession != NULL && audioSession->IsRunning())
return (jlong)(audioSession->CurrentPlaybackTimeUs() / 1000);
return -1;
}
jboolean Java_de_rwth_1aachen_comsys_audiosync_AudioCore_isRunning (JNIEnv *, jobject) {
bool a = audioSession != NULL && audioSession->IsRunning();
return (jboolean) (a ? JNI_TRUE : JNI_FALSE);
}
jboolean Java_de_rwth_1aachen_comsys_audiosync_AudioCore_isSending(JNIEnv *, jobject) {
if (audioSession != NULL && audioSession->IsSender()) {
return (jboolean) (audioSession->IsRunning());
}
return JNI_FALSE;
}
void Java_de_rwth_1aachen_comsys_audiosync_AudioCore_pauseSending
(JNIEnv *, jobject) {
if (audioSession != NULL && audioSession->IsSender()) {
SenderSession *sender = (SenderSession *)audioSession;
// TODO
}
}
| graetzer/AudioSync | app/src/main/jni/AudioCore.cpp | C++ | gpl-2.0 | 7,611 |
package cz.vutbr.fit.xfekia00;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.LinkedList;
/**
* jedno vykonanie skriptu sa uklada ako polozka historie
* @author Filip Fekiac
*/
public class HistoryItem {
private final String usedDatabase; // pouzity databazovy system
private final LinkedList<String[][]> resultList; // vysledky dopytov
private final LinkedList<String[]> resultHeader; // hlavicky dopytov
private final LinkedList<String> resultCaption; // jednotlive dopyty
private final Calendar date;
public HistoryItem(String _usedDB) {
usedDatabase = _usedDB;
resultList = new LinkedList<>();
resultHeader = new LinkedList<>();
resultCaption = new LinkedList<>();
date = Calendar.getInstance();
}
public void addResultItem(int pos, String[][] _item) {
resultList.add(pos, _item);
}
public void addHeaderItem(int pos, String[] _item) {
resultHeader.add(pos, _item);
}
public void addCaptionItem(int pos, String _item) {
resultCaption.add(pos, _item);
}
public String getUsedDatabase() {
return usedDatabase;
}
public LinkedList<String[][]> getResultList() {
return resultList;
}
public LinkedList<String[]> getResultHeader() {
return resultHeader;
}
public LinkedList<String> getResultCaption() {
return resultCaption;
}
@Override
public String toString() {
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss dd.MM.yyyy");
return format.format(date.getTime()) + " " + usedDatabase;
}
}
| waresko18/TempJDBC | src-gui/src/cz/vutbr/fit/xfekia00/HistoryItem.java | Java | gpl-2.0 | 1,674 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* Postgre Database Adapter Class
*
* Note: _DB is an extender class that the app controller
* creates dynamically based on whether the active record
* class is being used or not.
*
* @package CodeIgniter
* @subpackage Drivers
* @category Database
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/database/
*/
class CI_DB_postgre_driver extends CI_DB {
var $dbdriver = 'postgre';
var $_escape_char = '"';
// clause and character used for LIKE escape sequences
var $_like_escape_str = " ESCAPE '%s' ";
var $_like_escape_chr = '!';
/**
* The syntax to count rows is slightly different across different
* database engines, so this string appears in each driver and is
* used for the count_all() and count_all_results() functions.
*/
var $_count_string = "SELECT COUNT(*) AS ";
var $_random_keyword = ' RANDOM()'; // database specific random keyword
/**
* Connection String
*
* @access private
* @return string
*/
function _connect_string()
{
$components = array(
'hostname' => 'host',
'port' => 'port',
'database' => 'dbname',
'username' => 'user',
'password' => 'password'
);
$connect_string = "";
foreach ($components as $key => $val)
{
if (isset($this->$key) && $this->$key != '')
{
$connect_string .= " $val=".$this->$key;
}
}
return trim($connect_string);
}
// --------------------------------------------------------------------
/**
* Non-persistent database connection
*
* @access private called by the base class
* @return resource
*/
function db_connect()
{
return @pg_connect($this->_connect_string());
}
// --------------------------------------------------------------------
/**
* Persistent database connection
*
* @access private called by the base class
* @return resource
*/
function db_pconnect()
{
return @pg_pconnect($this->_connect_string());
}
// --------------------------------------------------------------------
/**
* Reconnect
*
* Keep / reestablish the db connection if no queries have been
* sent for a length of time exceeding the server's idle timeout
*
* @access public
* @return void
*/
function reconnect()
{
if (pg_ping($this->conn_id) === FALSE)
{
$this->conn_id = FALSE;
}
}
// --------------------------------------------------------------------
/**
* Select the database
*
* @access private called by the base class
* @return resource
*/
function db_select()
{
// Not needed for Postgre so we'll return TRUE
return TRUE;
}
// --------------------------------------------------------------------
/**
* Set client character set
*
* @access public
* @param string
* @param string
* @return resource
*/
function db_set_charset($charset, $collation)
{
// @todo - add support if needed
return TRUE;
}
// --------------------------------------------------------------------
/**
* Version number query string
*
* @access public
* @return string
*/
function _version()
{
return "SELECT version() AS ver";
}
// --------------------------------------------------------------------
/**
* Execute the query
*
* @access private called by the base class
* @param string an SQL query
* @return resource
*/
function _execute($sql)
{
$sql = $this->_prep_query($sql);
return @pg_query($this->conn_id, $sql);
}
// --------------------------------------------------------------------
/**
* Prep the query
*
* If needed, each database adapter can prep the query string
*
* @access private called by execute()
* @param string an SQL query
* @return string
*/
function _prep_query($sql)
{
return $sql;
}
// --------------------------------------------------------------------
/**
* Begin Transaction
*
* @access public
* @return bool
*/
function trans_begin($test_mode = FALSE)
{
if ( ! $this->trans_enabled)
{
return TRUE;
}
// When transactions are nested we only begin/commit/rollback the outermost ones
if ($this->_trans_depth > 0)
{
return TRUE;
}
// Reset the transaction failure flag.
// If the $test_mode flag is set to TRUE transactions will be rolled back
// even if the queries produce a successful result.
$this->_trans_failure = ($test_mode === TRUE) ? TRUE : FALSE;
return @pg_exec($this->conn_id, "begin");
}
// --------------------------------------------------------------------
/**
* Commit Transaction
*
* @access public
* @return bool
*/
function trans_commit()
{
if ( ! $this->trans_enabled)
{
return TRUE;
}
// When transactions are nested we only begin/commit/rollback the outermost ones
if ($this->_trans_depth > 0)
{
return TRUE;
}
return @pg_exec($this->conn_id, "commit");
}
// --------------------------------------------------------------------
/**
* Rollback Transaction
*
* @access public
* @return bool
*/
function trans_rollback()
{
if ( ! $this->trans_enabled)
{
return TRUE;
}
// When transactions are nested we only begin/commit/rollback the outermost ones
if ($this->_trans_depth > 0)
{
return TRUE;
}
return @pg_exec($this->conn_id, "rollback");
}
// --------------------------------------------------------------------
/**
* Escape String
*
* @access public
* @param string
* @param bool whether or not the string will be used in a LIKE condition
* @return string
*/
function escape_str($str, $like = FALSE)
{
if (is_array($str))
{
foreach ($str as $key => $val)
{
$str[$key] = $this->escape_str($val, $like);
}
return $str;
}
$str = pg_escape_string($str);
// escape LIKE condition wildcards
if ($like === TRUE)
{
$str = str_replace( array('%', '_', $this->_like_escape_chr),
array($this->_like_escape_chr.'%', $this->_like_escape_chr.'_', $this->_like_escape_chr.$this->_like_escape_chr),
$str);
}
return $str;
}
// --------------------------------------------------------------------
/**
* Affected Rows
*
* @access public
* @return integer
*/
function affected_rows()
{
return @pg_affected_rows($this->result_id);
}
// --------------------------------------------------------------------
/**
* Insert ID
*
* @access public
* @return integer
*/
function insert_id()
{
$v = $this->_version();
$v = $v['server'];
$table = func_num_args() > 0 ? func_get_arg(0) : NULL;
$column = func_num_args() > 1 ? func_get_arg(1) : NULL;
if ($table == NULL && $v >= '8.1')
{
$sql='SELECT LASTVAL() as ins_id';
}
elseif ($table != NULL && $column != NULL && $v >= '8.0')
{
$sql = sprintf("SELECT pg_get_serial_sequence('%s','%s') as seq", $table, $column);
$query = $this->query($sql);
$row = $query->row();
$sql = sprintf("SELECT CURRVAL('%s') as ins_id", $row->seq);
}
elseif ($table != NULL)
{
// seq_name passed in table parameter
$sql = sprintf("SELECT CURRVAL('%s') as ins_id", $table);
}
else
{
return pg_last_oid($this->result_id);
}
$query = $this->query($sql);
$row = $query->row();
return $row->ins_id;
}
// --------------------------------------------------------------------
/**
* "Count All" query
*
* Generates a platform-specific query string that counts all records in
* the specified database
*
* @access public
* @param string
* @return string
*/
function count_all($table = '')
{
if ($table == '')
{
return 0;
}
$query = $this->query($this->_count_string . $this->_protect_identifiers('numrows') . " FROM " . $this->_protect_identifiers($table, TRUE, NULL, FALSE));
if ($query->num_rows() == 0)
{
return 0;
}
$row = $query->row();
$this->_reset_select();
return (int) $row->numrows;
}
// --------------------------------------------------------------------
/**
* Show table query
*
* Generates a platform-specific query string so that the table names can be fetched
*
* @access private
* @param boolean
* @return string
*/
function _list_tables($prefix_limit = FALSE)
{
$sql = "SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'";
if ($prefix_limit !== FALSE AND $this->dbprefix != '')
{
$sql .= " AND table_name LIKE '".$this->escape_like_str($this->dbprefix)."%' ".sprintf($this->_like_escape_str, $this->_like_escape_chr);
}
return $sql;
}
// --------------------------------------------------------------------
/**
* Show column query
*
* Generates a platform-specific query string so that the column names can be fetched
*
* @access public
* @param string the table name
* @return string
*/
function _list_columns($table = '')
{
return "SELECT column_name FROM information_schema.columns WHERE table_name ='".$table."'";
}
// --------------------------------------------------------------------
/**
* Field data query
*
* Generates a platform-specific query so that the column data can be retrieved
*
* @access public
* @param string the table name
* @return object
*/
function _field_data($table)
{
return "SELECT * FROM ".$table." LIMIT 1";
}
// --------------------------------------------------------------------
/**
* The error message string
*
* @access private
* @return string
*/
function _error_message()
{
return pg_last_error($this->conn_id);
}
// --------------------------------------------------------------------
/**
* The error message number
*
* @access private
* @return integer
*/
function _error_number()
{
return '';
}
// --------------------------------------------------------------------
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @access private
* @param string
* @return string
*/
function _escape_identifiers($item)
{
if ($this->_escape_char == '')
{
return $item;
}
foreach ($this->_reserved_identifiers as $id)
{
if (strpos($item, '.'.$id) !== FALSE)
{
$str = $this->_escape_char. str_replace('.', $this->_escape_char.'.', $item);
// remove duplicates if the user already included the escape
return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
}
}
if (strpos($item, '.') !== FALSE)
{
$str = $this->_escape_char.str_replace('.', $this->_escape_char.'.'.$this->_escape_char, $item).$this->_escape_char;
}
else
{
$str = $this->_escape_char.$item.$this->_escape_char;
}
// remove duplicates if the user already included the escape
return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
}
// --------------------------------------------------------------------
/**
* From Tables
*
* This function implicitly groups FROM tables so there is no confusion
* about operator precedence in harmony with SQL standards
*
* @access public
* @param type
* @return type
*/
function _from_tables($tables)
{
if ( ! is_array($tables))
{
$tables = array($tables);
}
return implode(', ', $tables);
}
// --------------------------------------------------------------------
/**
* Insert statement
*
* Generates a platform-specific insert string from the supplied data
*
* @access public
* @param string the table name
* @param array the insert keys
* @param array the insert values
* @return string
*/
function _insert($table, $keys, $values)
{
return "INSERT INTO ".$table." (".implode(', ', $keys).") VALUES (".implode(', ', $values).")";
}
// --------------------------------------------------------------------
/**
* Insert_batch statement
*
* Generates a platform-specific insert string from the supplied data
*
* @access public
* @param string the table name
* @param array the insert keys
* @param array the insert values
* @return string
*/
function _insert_batch($table, $keys, $values)
{
return "INSERT INTO ".$table." (".implode(', ', $keys).") VALUES ".implode(', ', $values);
}
// --------------------------------------------------------------------
/**
* Update statement
*
* Generates a platform-specific update string from the supplied data
*
* @access public
* @param string the table name
* @param array the update data
* @param array the where clause
* @param array the orderby clause
* @param array the limit clause
* @return string
*/
function _update($table, $values, $where, $orderby = array(), $limit = FALSE)
{
foreach ($values as $key => $val)
{
$valstr[] = $key." = ".$val;
}
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
$sql = "UPDATE ".$table." SET ".implode(', ', $valstr);
$sql .= ($where != '' AND count($where) >=1) ? " WHERE ".implode(" ", $where) : '';
$sql .= $orderby.$limit;
return $sql;
}
// --------------------------------------------------------------------
/**
* Truncate statement
*
* Generates a platform-specific truncate string from the supplied data
* If the database does not support the truncate() command
* This function maps to "DELETE FROM table"
*
* @access public
* @param string the table name
* @return string
*/
function _truncate($table)
{
return "TRUNCATE ".$table;
}
// --------------------------------------------------------------------
/**
* Delete statement
*
* Generates a platform-specific delete string from the supplied data
*
* @access public
* @param string the table name
* @param array the where clause
* @param string the limit clause
* @return string
*/
function _delete($table, $where = array(), $like = array(), $limit = FALSE)
{
$conditions = '';
if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
if (count($where) > 0 && count($like) > 0)
{
$conditions .= " AND ";
}
$conditions .= implode("\n", $like);
}
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
// --------------------------------------------------------------------
/**
* Limit string
*
* Generates a platform-specific LIMIT clause
*
* @access public
* @param string the sql query string
* @param integer the number of rows to limit the query to
* @param integer the offset value
* @return string
*/
function _limit($sql, $limit, $offset)
{
$sql .= "LIMIT ".$limit;
if ($offset > 0)
{
$sql .= " OFFSET ".$offset;
}
return $sql;
}
// --------------------------------------------------------------------
/**
* Close DB Connection
*
* @access public
* @param resource
* @return void
*/
function _close($conn_id)
{
@pg_close($conn_id);
}
}
/* End of file postgre_driver.php */
/* Location: ./system/database/drivers/postgre/postgre_driver.php */ | abhijeetmote/sama | system/database/drivers/postgre/postgre_driver.php | PHP | gpl-2.0 | 16,300 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
/**
* Cairo implementation for Image_Transform package
*
* PHP versions 4 and 5
*
* @category Image
* @package Image_Transform
* @subpackage Image_Transform_Driver_Cairowrapper
* @author Christian Weiske <cweiske@php.net>
* @copyright 2008 The PHP Group
* @license https://www.gnu.org/copyleft/lesser.html LGPL
* @version CVS: $Id: Cairowrapper.php 288112 2009-09-06 21:02:37Z cweiske $
* @link http://pear.php.net/package/Image_Transform
*/
require_once __DIR__ . '/Image/Transform.php';
/**
* Cairo implementation for Image_Transform package using pecl's cairo_wrapper
* extension.
*
* Supports png files only.
*
* @category Image
* @package Image_Transform
* @subpackage Image_Transform_Driver_Cairowrapper
* @author Christian Weiske <cweiske@php.net>
* @copyright 2008 The PHP Group
* @license https://www.gnu.org/copyleft/lesser.html LGPL
* @version Release: @package_version@
* @link http://pear.php.net/package/Image_Transform
*/
class Image_Transform_Driver_Cairowrapper extends Image_Transform
{
public $surface = null;
/**
* Supported image types
*
* @var array
* @access protected
*/
public $_supported_image_types = [
'png' => 'rw',
];
/**
* Check settings
*/
public function Image_Transform_Driver_Cairowrapper()
{
$this->__construct();
}
/**
* Create object and check if cairo_wrapper is loaded
*/
public function __construct()
{
if (!PEAR::loadExtension('cairo_wrapper')) {
$this->isError(PEAR::raiseError('cairo_wrapper extension is not available.', IMAGE_TRANSFORM_ERROR_UNSUPPORTED));
}
}
/**
* Loads an image from file
*
* @param string $image filename
*
* @return bool|PEAR_Error TRUE or a PEAR_Error object on error
*
* @access public
*/
public function load($image)
{
$this->free();
$this->image = $image;
$result = $this->_get_image_details($image);
if (PEAR::isError($result)) {
return $result;
}
if (!$this->supportsType($this->type, 'r')) {
return PEAR::raiseError('Image type not supported for input', IMAGE_TRANSFORM_ERROR_UNSUPPORTED);
}
$this->surface = cairo_image_surface_create_from_png($this->image);
if (CAIRO_STATUS_SUCCESS != cairo_surface_status($this->surface)) {
$this->surface = null;
return PEAR::raiseError('Error while loading image file.', IMAGE_TRANSFORM_ERROR_IO);
}
return true;
}
//function load(..)
/**
* Resize the image
*
* @param int $new_x New width
* @param int $new_y New height
* @param array $options Optional parameters
*
* @return bool|PEAR_Error TRUE on success or PEAR_Error object on error
*
* @access protected
*/
public function _resize($new_x, $new_y, $options = null)
{
if (true === $this->resized) {
return PEAR::raiseError('You have already resized the image without saving it.' . ' Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
}
if ($this->new_x == $new_x && $this->new_y == $new_y) {
return true;
}
$xFactor = $new_x / $this->img_x;
$yFactor = $new_y / $this->img_y;
$outputSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, $new_x, $new_y);
$outputContext = cairo_create($outputSurface);
cairo_scale($outputContext, $xFactor, $yFactor);
cairo_set_source_surface($outputContext, $this->surface, 0, 0);
cairo_paint($outputContext);
cairo_destroy($outputContext);
cairo_surface_destroy($this->surface);
$this->surface = $outputSurface;
$this->new_x = $new_x;
$this->new_y = $new_y;
return true;
}
//function _resize(..)
/**
* Saves the scaled image into a file.
*
* @param string $filename The filename to save to
* @param mixed $type ignored
* @param mixed $quality ignored
*
* @return bool|PEAR_Error TRUE on success or PEAR_Error object on error
*
* @access public
*/
public function save($filename, $type = null, $quality = null)
{
cairo_surface_write_to_png($this->surface, $filename);
$this->free();
return true;
}
//function save(..)
/**
* Returns the surface of the image so it can be modified further
*
* @return resource
*
* @access public
*/
public function getHandle()
{
return $this->surface;
}
//function getHandle()
/**
* Frees cairo handles
*
*
* @access public
*/
public function free()
{
$this->resized = false;
if (is_resource($this->surface)) {
cairo_surface_destroy($this->surface);
}
$this->surface = null;
}
//function free()
/**
* Mirrors the image vertically
* Uses an affine transformation matrix to flip the image.
*/
public function flip()
{
$outputSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, $this->img_x, $this->img_y);
$outputContext = cairo_create($outputSurface);
// xx, yx, xy, yy, x0, y0
$matrix = cairo_matrix_create(1, 0, 0, -1, 0, $this->img_y);
cairo_set_matrix($outputContext, $matrix);
cairo_set_source_surface($outputContext, $this->surface, 0, 0);
cairo_paint($outputContext);
cairo_destroy($outputContext);
cairo_surface_destroy($this->surface);
$this->surface = $outputSurface;
}
//function flip()
/**
* Mirrors the image horizontally.
* Uses an affine transformation matrix to mirror the image.
*
* 123 -> 321
*/
public function mirror()
{
$outputSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, $this->img_x, $this->img_y);
$outputContext = cairo_create($outputSurface);
// xx, yx, xy, yy, x0, y0
$matrix = cairo_matrix_create(-1, 0, 0, 1, $this->img_x, 0);
cairo_set_matrix($outputContext, $matrix);
cairo_set_source_surface($outputContext, $this->surface, 0, 0);
cairo_paint($outputContext);
cairo_destroy($outputContext);
cairo_surface_destroy($this->surface);
$this->surface = $outputSurface;
}
//function mirror()
}//class Image_Transform_Driver_Cairowrapper extends Image_Transform
| mambax7/extgallery | class/pear/Image/Transform/Driver/Cairowrapper.php | PHP | gpl-2.0 | 6,761 |
/*--------------------------------------------------------------------------
*--------------------------------------------------------------------------
*
* Copyright (C) 2011 Gabriel Terejanu - terejanu@cec.sc.edu
*
* This is an application framework for solving the problem of
* predictive model selection of coupled models as presented in the
* following paper:
*
* Gabriel Terejanu, Todd Oliver, Chris Simmons (2011). Application of
* Predictive Model Selection to Coupled Models. In Proceedings of the World
* Congress on Engineering and Computer Science 2011 Vol II, WCECS 2011,
* pp. 927-932.
*
* The framework is built on top of statistical library QUESO
* (Quantification of Uncertainty for Estimation, Simulation and Optimization).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*--------------------------------------------------------------------------
*
* coupled_OLS_SED_funcs_test.C
*
*--------------------------------------------------------------------------
*-------------------------------------------------------------------------- */
#include <cmath>
#include <map>
#include <string>
#include <iostream>
#include "uqDefines.h"
#include "uqGslVector.h"
#include "uqVectorSpace.h"
#include "uqGslMatrix.h"
#include "testsCommon.h"
#include "oscillatorLinearSpring.h"
#include "forcingSimpleExponentialDecay.h"
#include "modelForcingSimpleExponentialDecay.h"
uqFullEnvironmentClass* env;
//********************************************************************
// Definitions
//********************************************************************
bool test_OLS_SED_func();
bool test_OLS_SED_int_exact();
bool test_OLS_SED_int_energy();
//********************************************************************
// main - OLS - SED tests
//********************************************************************
int main(int argc, char* argv[])
{
MPI_Init(&argc,&argv);
env = new uqFullEnvironmentClass(MPI_COMM_WORLD,argv[1],"",NULL);
// tests OLS_SED_func
TST_MACRO( test_OLS_SED_func(),
"oscillatorLinearSpring_func",
"with forcing" );
// tests OLS_SED_int_exact
TST_MACRO( test_OLS_SED_int_exact(),
"oscillatorLinearSpring_int",
"exact solution with forcing" );
// Finalize environment
delete env;
MPI_Finalize();
// no error has been found
return 0;
}
//********************************************************************
// tests OLS_SED_func
//********************************************************************
bool test_OLS_SED_func()
{
// scenario
double scn_time = 1.0;
// params oscillator
double param_c = 2.0;
double param_k10 = param_c;
// params forcing
double param_F0 = 2.0;
double param_tau = 1.0;
// map inputs params (oscillator)
std::map<std::string, double> map_act_params;
map_act_params[ __OLS_PARAM_C ] = param_c;
map_act_params[ __OLS_PARAM_K10 ] = param_k10;
// forcing
map_act_params[ __SED_PARAM_F0 ] = param_F0;
map_act_params[ __SED_PARAM_TAU ] = param_tau;
// set coupling
map_act_params[ __SED_NAME ] = 1.0;
// outputs
double ic_y[2] = {0.5, 1.5};
double computed_f[2] = {0.0, 0.0};
double exact_f[2] =
{ ic_y[1],
param_F0*exp(-scn_time/param_tau) - param_c/__OSCILLATOR_MASS*(ic_y[0]+ic_y[1]) };
// get values
oscillatorLinearSpring_func( scn_time,
ic_y,
computed_f,
(void*)&map_act_params );
// compare the exact value with the computed one
return ( ( std::fabs( exact_f[0] - computed_f[0] ) > DOUBLE_TOL ) ||
( std::fabs( exact_f[1] - computed_f[1] ) > DOUBLE_TOL ) );
}
//********************************************************************
// tests OLS_SED_int_exact
//********************************************************************
bool test_OLS_SED_int_exact()
{
// scenario
double scn_time = 1.0;
// params oscillator
double param_c = 0.1;
double param_k10 = 0.0; // to have a linear ODE in velocity
// params forcing
double param_F0 = 2.0;
double param_tau = 1.0;
// map inputs
std::map<std::string, double> map_scn;
map_scn[ __OLS_SCN_TIME ] = scn_time;
// map params oscillator
std::map<std::string, double> map_act_params;
map_act_params[ __OLS_PARAM_C ] = param_c;
map_act_params[ __OLS_PARAM_K10 ] = param_k10;
// forcing
map_act_params[ __SED_PARAM_F0 ] = param_F0;
map_act_params[ __SED_PARAM_TAU ] = param_tau;
// set coupling
map_act_params[ __SED_NAME ] = 1.0;
// outputs
double final_y0;
double final_y1;
double time_to_rest;
double max_displacement;
double max_velocity;
// get final velocity
oscillatorLinearSpring_int( final_y0, final_y1,
time_to_rest,
max_displacement,
max_velocity,
false,
map_scn,
map_act_params );
double my_const = __OSCILLATOR_IC_X2 +
param_tau * param_F0 / (__OSCILLATOR_MASS - param_tau * param_c );
double pre_exp = param_tau * param_F0 / ( param_tau * param_c - __OSCILLATOR_MASS );
double exact_y1 = exp( -param_c/__OSCILLATOR_MASS*scn_time ) *
( pre_exp *
exp( (param_tau*param_c-__OSCILLATOR_MASS)/(__OSCILLATOR_MASS*param_tau)*scn_time )
+ my_const );
// std::cout << "final_y1 = " << final_y1 << std::endl;
// std::cout << "exact_y1 = " << exact_y1 << std::endl;
// compare the exact value with the computed one
return ( std::fabs( exact_y1 - final_y1 ) > DOUBLE_TOL ) ;
}
| terejanu/PredictiveSelectionCoupledModels | tests/coupled_OLS_SED_funcs_test.C | C++ | gpl-2.0 | 6,162 |
import sys
import time
import logging
from socketio import socketio_manage
from socketio.mixins import BroadcastMixin
from socketio.namespace import BaseNamespace
from DataAggregation.webdata_aggregator import getAvailableWorkshops
logger = logging.getLogger(__name__)
std_out_logger = logging.StreamHandler(sys.stdout)
logger.addHandler(std_out_logger)
def broadcast_msg(server, ns_name, event, *args):
pkt = dict(type="event",
name=event,
args=args,
endpoint=ns_name)
for sessid, socket in server.sockets.iteritems():
socket.send_packet(pkt)
def workshops_monitor(server):
sizes = []
workshops = getAvailableWorkshops()
for w in workshops:
tmp = [w.workshopName, w.q.qsize()]
sizes.append(tmp)
broadcast_msg(server, '', "sizes", tmp)
while True:
logger.info("Participants viewing frontend:" + str(len(server.sockets)))
workshops_available = []
curr_workshops = getAvailableWorkshops()
for w in curr_workshops:
workshops_available.append([w.workshopName, w.q.qsize()])
wq = filter(lambda x: x[0] == w.workshopName, sizes)[0]
if wq[1] != w.q.qsize():
wq[1] = w.q.qsize()
logging.info("client_updater: New update being pushed to clients: " + str(wq))
broadcast_msg(server, '', 'sizes', wq)
logger.info("Workshops available:" + str(workshops_available))
time.sleep(1)
class RequestHandlerApp(object):
def __call__(self, environ, start_response):
if environ['PATH_INFO'].startswith('/socket.io'):
socketio_manage(environ, {'': QueueStatusHandler})
class QueueStatusHandler(BaseNamespace, BroadcastMixin):
def on_connect(self):
sizes = []
workshops = getAvailableWorkshops()
for w in workshops:
tmp = [w.workshopName, w.q.qsize()]
sizes.append(tmp)
self.emit('sizes', tmp)
| ARL-UTEP-OC/emubox | workshop-manager/bin/RequestHandler/client_updater.py | Python | gpl-2.0 | 2,004 |
<?php
/**
* @file
* Contains \Drupal\Core\Lock\LockBackendInterface.
*/
namespace Drupal\Core\Lock;
/**
* @defgroup lock Locking mechanisms
* @{
* Functions to coordinate long-running operations across requests.
*
* In most environments, multiple Drupal page requests (a.k.a. threads or
* processes) will execute in parallel. This leads to potential conflicts or
* race conditions when two requests execute the same code at the same time. A
* common example of this is a rebuild like menu_router_rebuild() where we
* invoke many hook implementations to get and process data from all active
* modules, and then delete the current data in the database to insert the new
* afterwards.
*
* This is a cooperative, advisory lock system. Any long-running operation
* that could potentially be attempted in parallel by multiple requests should
* try to acquire a lock before proceeding. By obtaining a lock, one request
* notifies any other requests that a specific operation is in progress which
* must not be executed in parallel.
*
* To use this API, pick a unique name for the lock. A sensible choice is the
* name of the function performing the operation. A very simple example use of
* this API:
* @code
* function mymodule_long_operation() {
* $lock = \Drupal::lock();
* if ($lock->acquire('mymodule_long_operation')) {
* // Do the long operation here.
* // ...
* $lock->release('mymodule_long_operation');
* }
* }
* @endcode
*
* If a function acquires a lock it should always release it when the operation
* is complete by calling $lock->release(), as in the example.
*
* A function that has acquired a lock may attempt to renew a lock (extend the
* duration of the lock) by calling $lock->acquire() again during the operation.
* Failure to renew a lock is indicative that another request has acquired the
* lock, and that the current operation may need to be aborted.
*
* If a function fails to acquire a lock it may either immediately return, or
* it may call $lock->wait() if the rest of the current page request requires
* that the operation in question be complete. After $lock->wait() returns, the
* function may again attempt to acquire the lock, or may simply allow the page
* request to proceed on the assumption that a parallel request completed the
* operation.
*
* $lock->acquire() and $lock->wait() will automatically break (delete) a lock
* whose duration has exceeded the timeout specified when it was acquired.
*
* @} End of "defgroup lock".
*/
/**
* Lock backend interface.
*
* @ingroup lock
*/
interface LockBackendInterface {
/**
* Acquires a lock.
*
* @param string $name
* Lock name. Limit of name's length is 255 characters.
* @param float $timeout = 30.0
* (optional) Lock lifetime in seconds.
*
* @return bool
*/
public function acquire($name, $timeout = 30.0);
/**
* Checks if a lock is available for acquiring.
*
* @param string $name
* Lock to acquire.
*
* @return bool
*/
public function lockMayBeAvailable($name);
/**
* Waits a short amount of time before a second lock acquire attempt.
*
* While this method is subject to have a generic implementation in abstract
* backend implementation, some backends may provide non blocking or less I/O
* intensive wait mechanism: this is why this method remains on the backend
* interface.
*
* @param string $name
* Lock name currently being locked.
* @param int $delay = 30
* Milliseconds to wait for.
*
* @return bool
* TRUE if the lock holds, FALSE if it may be available. You still need to
* acquire the lock manually and it may fail again.
*/
public function wait($name, $delay = 30);
/**
* Releases the given lock.
*
* @param string $name
*/
public function release($name);
/**
* Releases all locks for the given lock token identifier.
*
* @param string $lockId
* (optional) If none given, remove all locks from the current page.
* Defaults to NULL.
*/
public function releaseAll($lockId = NULL);
/**
* Gets the unique page token for locks.
*
* Locks will be wiped out at the end of each page request on a token basis.
*
* @return string
*/
public function getLockId();
}
| acappellamaniac/eva_website | sites/all/modules/service_container/lib/Drupal/Core/Lock/LockBackendInterface.php | PHP | gpl-2.0 | 4,456 |
def freq_month(obj):
if obj is None or obj == []:
return
months = {1: 'jan',
2: 'feb',
3: 'mar',
4: 'apr',
5: 'may',
6: 'jun',
7: 'jul',
8: 'aug',
9: 'sep',
10: 'oct',
11: 'nov',
12: 'dec',
}
frequencies = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
# for i in range(0, len(obj)):
# frequencies[ obj[i] -1] += 1
for i in obj:
frequencies[ i-1 ] += 1
print "The following month(s) have a birthday celebration"
for i in range(0, len(frequencies)):
if frequencies[i] > 0:
print str(months[i+1]) + " has " + str(frequencies[i])
return frequencies
in_array = [3,6,2,7,7,7,]
print freq_month(in_array)
print freq_month([])
| bluciam/ruby_versus_python | other/dicco_numbers.py | Python | gpl-2.0 | 857 |
# -*- coding: utf-8 -*-
#
# pynag - Python Nagios plug-in and configuration environment
# Copyright (C) 2010 Drew Stinnet
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""This module contains low-level Parsers for nagios configuration and status objects.
Hint: If you are looking to parse some nagios configuration data, you probably
want pynag.Model module instead.
The highlights of this module are:
class Config: For Parsing nagios local nagios configuration files
class Livestatus: To connect to MK-Livestatus
class StatusDat: To read info from status.dat (not used a lot, migrate to mk-livestatus)
class LogFiles: To read nagios log-files
class MultiSite: To talk with multiple Livestatus instances
"""
import os
import re
import time
import sys
import socket # for mk_livestatus
import stat
import pynag.Plugins
import pynag.Utils
import StringIO
import tarfile
_sentinel = object()
class Config(object):
""" Parse and write nagios config files """
# Regex for beginning of object definition
# We want everything that matches:
# define <object_type> {
__beginning_of_object = re.compile("^\s*define\s+(\w+)\s*\{?(.*)$")
def __init__(self, cfg_file=None, strict=False):
""" Constructor for :py:class:`pynag.Parsers.config` class
Args:
cfg_file (str): Full path to nagios.cfg. If None, try to
auto-discover location
strict (bool): if True, use stricter parsing which is more prone to
raising exceptions
"""
self.cfg_file = cfg_file # Main configuration file
self.strict = strict # Use strict parsing or not
# If nagios.cfg is not set, lets do some minor autodiscover.
if self.cfg_file is None:
self.cfg_file = self.guess_cfg_file()
self.data = {}
self.maincfg_values = []
self._is_dirty = False
self.reset() # Initilize misc member variables
def guess_nagios_directory(self):
""" Returns a path to the nagios configuration directory on your system
Use this function for determining the nagios config directory in your
code
Returns:
str. directory containing the nagios.cfg file
Raises:
:py:class:`pynag.Parsers.ConfigFileNotFound` if cannot guess config
file location.
"""
cfg_file = self.guess_cfg_file()
if not cfg_file:
raise ConfigFileNotFound("Could not find nagios.cfg")
return os.path.dirname(cfg_file)
def guess_nagios_binary(self):
""" Returns a path to any nagios binary found on your system
Use this function if you don't want specify path to the nagios binary
in your code and you are confident that it is located in a common
location
Checked locations are as follows:
* /usr/bin/nagios
* /usr/sbin/nagios
* /usr/local/nagios/bin/nagios
* /nagios/bin/nagios
* /usr/bin/icinga
* /usr/sbin/icinga
* /usr/bin/naemon
* /usr/sbin/naemon
* /usr/local/naemon/bin/naemon.cfg
* /usr/bin/shinken
* /usr/sbin/shinken
Returns:
str. Path to the nagios binary
None if could not find a binary in any of those locations
"""
possible_files = ('/usr/bin/nagios',
'/usr/sbin/nagios',
'/usr/local/nagios/bin/nagios',
'/nagios/bin/nagios',
'/usr/bin/icinga',
'/usr/sbin/icinga',
'/usr/bin/naemon',
'/usr/sbin/naemon',
'/usr/local/naemon/bin/naemon.cfg',
'/usr/bin/shinken',
'/usr/sbin/shinken')
possible_binaries = ('nagios', 'nagios3', 'naemon', 'icinga', 'shinken')
for i in possible_binaries:
command = ['which', i]
code, stdout, stderr = pynag.Utils.runCommand(command=command, shell=False)
if code == 0:
return stdout.splitlines()[0].strip()
return None
def guess_cfg_file(self):
""" Returns a path to any nagios.cfg found on your system
Use this function if you don't want specify path to nagios.cfg in your
code and you are confident that it is located in a common location
Checked locations are as follows:
* /etc/nagios/nagios.cfg
* /etc/nagios3/nagios.cfg
* /usr/local/nagios/etc/nagios.cfg
* /nagios/etc/nagios/nagios.cfg
* ./nagios.cfg
* ./nagios/nagios.cfg
* /etc/icinga/icinga.cfg
* /usr/local/icinga/etc/icinga.cfg
* ./icinga.cfg
* ./icinga/icinga.cfg
* /etc/naemon/naemon.cfg
* /usr/local/naemon/etc/naemon.cfg
* ./naemon.cfg
* ./naemon/naemon.cfg
* /etc/shinken/shinken.cfg
Returns:
str. Path to the nagios.cfg or equivalent file
None if couldn't find a file in any of these locations.
"""
possible_files = ('/etc/nagios/nagios.cfg',
'/etc/nagios3/nagios.cfg',
'/usr/local/nagios/etc/nagios.cfg',
'/nagios/etc/nagios/nagios.cfg',
'./nagios.cfg',
'./nagios/nagios.cfg',
'/etc/icinga/icinga.cfg',
'/usr/local/icinga/etc/icinga.cfg',
'./icinga.cfg',
'./icinga/icinga.cfg',
'/etc/naemon/naemon.cfg',
'/usr/local/naemon/etc/naemon.cfg',
'./naemon.cfg',
'./naemon/naemon.cfg',
'/etc/shinken/shinken.cfg',
)
for file_path in possible_files:
if self.isfile(file_path):
return file_path
return None
def reset(self):
""" Reinitializes the data of a parser instance to its default values.
"""
self.cfg_files = [] # List of other configuration files
self.data = {} # dict of every known object definition
self.errors = [] # List of ParserErrors
self.item_list = None
self.item_cache = None
self.maincfg_values = [] # The contents of main nagios.cfg
self._resource_values = [] # The contents of any resource_files
self.item_apply_cache = {} # This is performance tweak used by _apply_template
# This is a pure listof all the key/values in the config files. It
# shouldn't be useful until the items in it are parsed through with the proper
# 'use' relationships
self.pre_object_list = []
self.post_object_list = []
self.object_type_keys = {
'hostgroup': 'hostgroup_name',
'hostextinfo': 'host_name',
'host': 'host_name',
'service': 'name',
'servicegroup': 'servicegroup_name',
'contact': 'contact_name',
'contactgroup': 'contactgroup_name',
'timeperiod': 'timeperiod_name',
'command': 'command_name',
#'service':['host_name','description'],
}
def _has_template(self, target):
""" Determine if an item has a template associated with it
Args:
target (dict): Parsed item as parsed by :py:class:`pynag.Parsers.config`
"""
return 'use' in target
def _get_pid(self):
""" Checks the lock_file var in nagios.cfg and returns the pid from the file
If the pid file does not exist, returns None.
"""
try:
return self.open(self.get_cfg_value('lock_file'), "r").readline().strip()
except Exception:
return None
def _get_hostgroup(self, hostgroup_name):
""" Returns the hostgroup that matches the queried name.
Args:
hostgroup_name: Name of the hostgroup to be returned (string)
Returns:
Hostgroup item with hostgroup_name that matches the queried name.
"""
return self.data['all_hostgroup'].get(hostgroup_name, None)
def _get_key(self, object_type, user_key=None):
""" Return the correct 'key' for an item.
This is mainly a helper method for other methods in this class. It is
used to shorten code repetition.
Args:
object_type: Object type from which to obtain the 'key' (string)
user_key: User defined key. Default None. (string)
Returns:
Correct 'key' for the object type. (string)
"""
if not user_key and not object_type in self.object_type_keys:
raise ParserError("Unknown key for object type: %s\n" % object_type)
# Use a default key
if not user_key:
user_key = self.object_type_keys[object_type]
return user_key
def _get_item(self, item_name, item_type):
""" Return an item from a list
Creates a cache of items in self.pre_object_list and returns an element
from this cache. Looks for an item with corresponding name and type.
Args:
item_name: Name of the item to be returned (string)
item_type: Type of the item to be returned (string)
Returns:
Item with matching name and type from
:py:attr:`pynag.Parsers.config.item_cache`
"""
# create local cache for performance optimizations. TODO: Rewrite functions that call this function
if not self.item_list:
self.item_list = self.pre_object_list
self.item_cache = {}
for item in self.item_list:
if not "name" in item:
continue
name = item['name']
tmp_item_type = (item['meta']['object_type'])
if not tmp_item_type in self.item_cache:
self.item_cache[tmp_item_type] = {}
self.item_cache[tmp_item_type][name] = item
my_cache = self.item_cache.get(item_type, None)
if not my_cache:
return None
return my_cache.get(item_name, None)
def _apply_template(self, original_item):
""" Apply all attributes of item named parent_name to "original_item".
Applies all of the attributes of parents (from the 'use' field) to item.
Args:
original_item: Item 'use'-ing a parent item. The parent's attributes
will be concretely added to this item.
Returns:
original_item to which have been added all the attributes defined
in parent items.
"""
# TODO: There is space for more performance tweaks here
# If item does not inherit from anyone else, lets just return item as is.
if 'use' not in original_item:
return original_item
object_type = original_item['meta']['object_type']
raw_definition = original_item['meta']['raw_definition']
my_cache = self.item_apply_cache.get(object_type, {})
# Performance tweak, if item has been parsed. Lets not do it again
if raw_definition in my_cache:
return my_cache[raw_definition]
parent_names = original_item['use'].split(',')
parent_items = []
for parent_name in parent_names:
parent_item = self._get_item(parent_name, object_type)
if parent_item is None:
error_string = "Can not find any %s named %s\n" % (object_type, parent_name)
self.errors.append(ParserError(error_string, item=original_item))
continue
try:
# Parent item probably has use flags on its own. So lets apply to parent first
parent_item = self._apply_template(parent_item)
except RuntimeError:
t, e = sys.exc_info()[:2]
self.errors.append(ParserError("Error while parsing item: %s (it might have circular use=)" % str(e),
item=original_item))
parent_items.append(parent_item)
inherited_attributes = original_item['meta']['inherited_attributes']
template_fields = original_item['meta']['template_fields']
for parent_item in parent_items:
for k, v in parent_item.iteritems():
if k in ('use', 'register', 'meta', 'name'):
continue
if k not in inherited_attributes:
inherited_attributes[k] = v
if k not in original_item:
original_item[k] = v
template_fields.append(k)
if 'name' in original_item:
my_cache[raw_definition] = original_item
return original_item
def _get_items_in_file(self, filename):
""" Return all items in the given file
Iterates through all elements in self.data and gatehrs all the items
defined in the queried filename.
Args:
filename: file from which are defined the items that will be
returned.
Returns:
A list containing all the items in self.data that were defined in
filename
"""
return_list = []
for k in self.data.keys():
for item in self[k]:
if item['meta']['filename'] == filename:
return_list.append(item)
return return_list
def get_new_item(self, object_type, filename):
""" Returns an empty item with all necessary metadata
Creates a new item dict and fills it with usual metadata:
* object_type : object_type (arg)
* filename : filename (arg)
* template_fields = []
* needs_commit = None
* delete_me = None
* defined_attributes = {}
* inherited_attributes = {}
* raw_definition = "define %s {\\n\\n} % object_type"
Args:
object_type: type of the object to be created (string)
filename: Path to which the item will be saved (string)
Returns:
A new item with default metadata
"""
meta = {
'object_type': object_type,
'filename': filename,
'template_fields': [],
'needs_commit': None,
'delete_me': None,
'defined_attributes': {},
'inherited_attributes': {},
'raw_definition': "define %s {\n\n}" % object_type,
}
return {'meta': meta}
def _load_file(self, filename):
""" Parses filename with self.parse_filename and append results in self._pre_object_list
This function is mostly here for backwards compatibility
Args:
filename: the file to be parsed. This is supposed to a nagios object definition file
"""
for i in self.parse_file(filename):
self.pre_object_list.append(i)
def parse_file(self, filename):
""" Parses a nagios object configuration file and returns lists of dictionaries.
This is more or less a wrapper around :py:meth:`config.parse_string`,
so reading documentation there is useful.
Args:
filename: Path to the file to parse (string)
Returns:
A list containing elements parsed by :py:meth:`parse_string`
"""
try:
raw_string = self.open(filename, 'rb').read()
return self.parse_string(raw_string, filename=filename)
except IOError:
t, e = sys.exc_info()[:2]
parser_error = ParserError(e.strerror)
parser_error.filename = e.filename
self.errors.append(parser_error)
return []
def parse_string(self, string, filename='None'):
""" Parses a string, and returns all object definitions in that string
Args:
string: A string containing one or more object definitions
filename (optional): If filename is provided, it will be referenced
when raising exceptions
Examples:
>>> test_string = "define host {\\nhost_name examplehost\\n}\\n"
>>> test_string += "define service {\\nhost_name examplehost\\nservice_description example service\\n}\\n"
>>> c = config()
>>> result = c.parse_string(test_string)
>>> for i in result: print i.get('host_name'), i.get('service_description', None)
examplehost None
examplehost example service
Returns:
A list of dictionaries, that look like self.data
Raises:
:py:class:`ParserError`
"""
append = ""
current = None
in_definition = {}
tmp_buffer = []
result = []
for sequence_no, line in enumerate(string.splitlines(False)):
line_num = sequence_no + 1
# If previous line ended with backslash, treat this line as a
# continuation of previous line
if append:
line = append + line
append = None
# Cleanup and line skips
line = line.strip()
if line == "":
continue
if line[0] == "#" or line[0] == ';':
continue
# If this line ends with a backslash, continue directly to next line
if line.endswith('\\'):
append = line.strip('\\')
continue
if line.startswith('}'): # end of object definition
if not in_definition:
p = ParserError("Unexpected '}' found outside object definition in line %s" % line_num)
p.filename = filename
p.line_start = line_num
raise p
in_definition = None
current['meta']['line_end'] = line_num
# Looks to me like nagios ignores everything after the } so why shouldn't we ?
rest = line.split("}", 1)[1]
tmp_buffer.append(line)
try:
current['meta']['raw_definition'] = '\n'.join(tmp_buffer)
except Exception:
raise ParserError("Encountered Unexpected end of object definition in file '%s'." % filename)
result.append(current)
# Destroy the Nagios Object
current = None
continue
elif line.startswith('define'): # beginning of object definition
if in_definition:
msg = "Unexpected 'define' in {filename} on line {line_num}. was expecting '}}'."
msg = msg.format(**locals())
self.errors.append(ParserError(msg, item=current))
m = self.__beginning_of_object.search(line)
tmp_buffer = [line]
object_type = m.groups()[0]
if self.strict and object_type not in self.object_type_keys.keys():
raise ParserError(
"Don't know any object definition of type '%s'. it is not in a list of known object definitions." % object_type)
current = self.get_new_item(object_type, filename)
current['meta']['line_start'] = line_num
# Start off an object
in_definition = True
# Looks to me like nagios ignores everything after the {, so why shouldn't we ?
rest = m.groups()[1]
continue
else: # In the middle of an object definition
tmp_buffer.append(' ' + line)
# save whatever's left in the buffer for the next iteration
if not in_definition:
append = line
continue
# this is an attribute inside an object definition
if in_definition:
#(key, value) = line.split(None, 1)
tmp = line.split(None, 1)
if len(tmp) > 1:
(key, value) = tmp
else:
key = tmp[0]
value = ""
# Strip out in-line comments
if value.find(";") != -1:
value = value.split(";", 1)[0]
# Clean info
key = key.strip()
value = value.strip()
# Rename some old values that may be in the configuration
# This can probably be removed in the future to increase performance
if (current['meta']['object_type'] == 'service') and key == 'description':
key = 'service_description'
# Special hack for timeperiods as they are not consistent with other objects
# We will treat whole line as a key with an empty value
if (current['meta']['object_type'] == 'timeperiod') and key not in ('timeperiod_name', 'alias'):
key = line
value = ''
current[key] = value
current['meta']['defined_attributes'][key] = value
# Something is wrong in the config
else:
raise ParserError("Error: Unexpected token in file '%s'" % filename)
# Something is wrong in the config
if in_definition:
raise ParserError("Error: Unexpected EOF in file '%s'" % filename)
return result
def _locate_item(self, item):
""" This is a helper function for anyone who wishes to modify objects.
It takes "item", locates the file which is configured in, and locates
exactly the lines which contain that definition.
Returns: (tuple)
(everything_before, object_definition, everything_after, filename):
* everything_before (list of lines): Every line in filename before object was defined
* everything_after (list of lines): Every line in "filename" after object was defined
* object_definition (list of lines): Every line used to define our item in "filename"
* filename (string): file in which the object was written to
Raises:
:py:class:`ValueError` if object was not found in "filename"
"""
if "filename" in item['meta']:
filename = item['meta']['filename']
else:
raise ValueError("item does not have a filename")
# Look for our item, store it as my_item
for i in self.parse_file(filename):
if self.compareObjects(item, i):
my_item = i
break
else:
raise ValueError("We could not find object in %s\n%s" % (filename, item))
# Caller of this method expects to be returned
# several lists that describe the lines in our file.
# The splitting logic starts here.
my_file = self.open(filename)
all_lines = my_file.readlines()
my_file.close()
start = my_item['meta']['line_start'] - 1
end = my_item['meta']['line_end']
everything_before = all_lines[:start]
object_definition = all_lines[start:end]
everything_after = all_lines[end:]
# If there happen to be line continuations in the object we will edit
# We will remove them from object_definition
object_definition = self._clean_backslashes(object_definition)
return everything_before, object_definition, everything_after, filename
def _clean_backslashes(self, list_of_strings):
""" Returns list_of_strings with all all strings joined that ended with backslashes
Args:
list_of_strings: List of strings to join
Returns:
Another list of strings, which lines ending with \ joined together.
"""
tmp_buffer = ''
result = []
for i in list_of_strings:
if i.endswith('\\\n'):
tmp_buffer += i.strip('\\\n')
else:
result.append(tmp_buffer + i)
tmp_buffer = ''
return result
def _modify_object(self, item, field_name=None, new_value=None, new_field_name=None, new_item=None,
make_comments=False):
""" Locates "item" and changes the line which contains field_name.
Helper function for object_* functions. Locates "item" and changes the
line which contains field_name. If new_value and new_field_name are both
None, the attribute is removed.
Args:
item(dict): The item to be modified
field_name(str): The field_name to modify (if any)
new_field_name(str): If set, field_name will be renamed
new_value(str): If set the value of field_name will be changed
new_item(str): If set, whole object will be replaced with this
string
make_comments: If set, put pynag-branded comments where changes
have been made
Returns:
True on success
Raises:
:py:class:`ValueError` if object or field_name is not found
:py:class:`IOError` is save is unsuccessful.
"""
if item is None:
return
if field_name is None and new_item is None:
raise ValueError("either field_name or new_item must be set")
if '\n' in str(new_value):
raise ValueError("Invalid character \\n used as an attribute value.")
everything_before, object_definition, everything_after, filename = self._locate_item(item)
if new_item is not None:
# We have instruction on how to write new object, so we dont need to parse it
object_definition = [new_item]
else:
change = None
value = None
i = 0
for i in range(len(object_definition)):
tmp = object_definition[i].split(None, 1)
if len(tmp) == 0:
continue
# Hack for timeperiods, they dont work like other objects
elif item['meta']['object_type'] == 'timeperiod' and field_name not in ('alias', 'timeperiod_name'):
tmp = [object_definition[i]]
# we can't change timeperiod, so we fake a field rename
if new_value is not None:
new_field_name = new_value
new_value = None
value = ''
elif len(tmp) == 1:
value = ''
else:
value = tmp[1]
k = tmp[0].strip()
if k == field_name:
# Attribute was found, lets change this line
if new_field_name is None and new_value is None:
# We take it that we are supposed to remove this attribute
change = object_definition.pop(i)
break
elif new_field_name:
# Field name has changed
k = new_field_name
if new_value is not None:
# value has changed
value = new_value
# Here we do the actual change
change = "\t%-30s%s\n" % (k, value)
if item['meta']['object_type'] == 'timeperiod' and field_name not in ('alias', 'timeperiod_name'):
change = "\t%s\n" % new_field_name
object_definition[i] = change
break
if not change and new_value is not None:
# Attribute was not found. Lets add it
change = "\t%-30s%s\n" % (field_name, new_value)
object_definition.insert(i, change)
# Lets put a banner in front of our item
if make_comments:
comment = '# Edited by PyNag on %s\n' % time.ctime()
if len(everything_before) > 0:
last_line_before = everything_before[-1]
if last_line_before.startswith('# Edited by PyNag on'):
everything_before.pop() # remove this line
object_definition.insert(0, comment)
# Here we overwrite the config-file, hoping not to ruin anything
str_buffer = "%s%s%s" % (''.join(everything_before), ''.join(object_definition), ''.join(everything_after))
self.write(filename, str_buffer)
return True
def open(self, filename, *args, **kwargs):
""" Wrapper around global open()
Simply calls global open(filename, *args, **kwargs) and passes all arguments
as they are received. See global open() function for more details.
"""
return open(filename, *args, **kwargs)
@pynag.Utils.synchronized(pynag.Utils.rlock)
def write(self, filename, string):
""" Wrapper around open(filename).write()
Writes string to filename and closes the file handler. File handler is
openned in `'w'` mode.
Args:
filename: File where *string* will be written. This is the path to
the file. (string)
string: String to be written to file. (string)
Returns:
Return code as returned by :py:meth:`os.write`
"""
fh = self.open(filename, 'w')
return_code = fh.write(string)
fh.flush()
# os.fsync(fh)
fh.close()
self._is_dirty = True
return return_code
def item_rewrite(self, item, str_new_item):
""" Completely rewrites item with string provided.
Args:
item: Item that is to be rewritten
str_new_item: str representation of the new item
..
In the following line, every "\\n" is actually a simple line break
This is only a little patch for the generated documentation.
Examples::
item_rewrite( item, "define service {\\n name example-service \\n register 0 \\n }\\n" )
Returns:
True on success
Raises:
:py:class:`ValueError` if object is not found
:py:class:`IOError` if save fails
"""
return self._modify_object(item=item, new_item=str_new_item)
def item_remove(self, item):
""" Delete one specific item from its configuration files
Args:
item: Item that is to be rewritten
str_new_item: string representation of the new item
..
In the following line, every "\\n" is actually a simple line break
This is only a little patch for the generated documentation.
Examples::
item_remove( item, "define service {\\n name example-service \\n register 0 \\n }\\n" )
Returns:
True on success
Raises:
:py:class:`ValueError` if object is not found
:py:class:`IOError` if save fails
"""
return self._modify_object(item=item, new_item="")
def item_edit_field(self, item, field_name, new_value):
""" Modifies one field of a (currently existing) object.
Changes are immediate (i.e. there is no commit)
Args:
item: Item to be modified. Its field `field_name` will be set to
`new_value`.
field_name: Name of the field that will be modified. (str)
new_value: Value to which will be set the field `field_name`. (str)
Example usage::
edit_object( item, field_name="host_name", new_value="examplehost.example.com") # doctest: +SKIP
Returns:
True on success
Raises:
:py:class:`ValueError` if object is not found
:py:class:`IOError` if save fails
"""
return self._modify_object(item, field_name=field_name, new_value=new_value)
def item_remove_field(self, item, field_name):
""" Removes one field of a (currently existing) object.
Changes are immediate (i.e. there is no commit)
Args:
item: Item to remove field from.
field_name: Field to remove. (string)
Example usage::
item_remove_field( item, field_name="contactgroups" )
Returns:
True on success
Raises:
:py:class:`ValueError` if object is not found
:py:class:`IOError` if save fails
"""
return self._modify_object(item=item, field_name=field_name, new_value=None, new_field_name=None)
def item_rename_field(self, item, old_field_name, new_field_name):
""" Renames a field of a (currently existing) item.
Changes are immediate (i.e. there is no commit).
Args:
item: Item to modify.
old_field_name: Name of the field that will have its name changed. (string)
new_field_name: New name given to `old_field_name` (string)
Example usage::
item_rename_field(item, old_field_name="normal_check_interval", new_field_name="check_interval")
Returns:
True on success
Raises:
:py:class:`ValueError` if object is not found
:py:class:`IOError` if save fails
"""
return self._modify_object(item=item, field_name=old_field_name, new_field_name=new_field_name)
def item_add(self, item, filename):
""" Adds a new object to a specified config file.
Args:
item: Item to be created
filename: Filename that we are supposed to write the new item to.
This is the path to the file. (string)
Returns:
True on success
Raises:
:py:class:`IOError` on failed save
"""
if not 'meta' in item:
item['meta'] = {}
item['meta']['filename'] = filename
# Create directory if it does not already exist
dirname = os.path.dirname(filename)
if not self.isdir(dirname):
os.makedirs(dirname)
str_buffer = self.print_conf(item)
fh = self.open(filename, 'a')
fh.write(str_buffer)
fh.close()
return True
def edit_object(self, item, field_name, new_value):
""" Modifies a (currently existing) item.
Changes are immediate (i.e. there is no commit)
Args:
item: Item to modify.
field_name: Field that will be updated.
new_value: Updated value of field `field_name`
Example Usage:
edit_object( item, field_name="host_name", new_value="examplehost.example.com")
Returns:
True on success
.. WARNING::
THIS FUNCTION IS DEPRECATED. USE item_edit_field() instead
"""
return self.item_edit_field(item=item, field_name=field_name, new_value=new_value)
def compareObjects(self, item1, item2):
""" Compares two items. Returns true if they are equal
Compares every key: value pair for both items. If anything is different,
the items will not be considered equal.
Args:
item1, item2: Items to be compared.
Returns:
True -- Items are equal
False -- Items are not equal
"""
keys1 = item1['meta']['defined_attributes'].keys()
keys2 = item2['meta']['defined_attributes'].keys()
keys1.sort()
keys2.sort()
result = True
if keys1 != keys2:
return False
for key in keys1:
if key == 'meta':
continue
key1 = item1[key]
key2 = item2[key]
# For our purpose, 30 is equal to 30.000
if key == 'check_interval':
key1 = int(float(key1))
key2 = int(float(key2))
if str(key1) != str(key2):
result = False
if result is False:
return False
return True
def edit_service(self, target_host, service_description, field_name, new_value):
""" Edit a service's attributes
Takes a host, service_description pair to identify the service to modify
and sets its field `field_name` to `new_value`.
Args:
target_host: name of the host to which the service is attached to. (string)
service_description: Service description of the service to modify. (string)
field_name: Field to modify. (string)
new_value: Value to which the `field_name` field will be updated (string)
Returns:
True on success
Raises:
:py:class:`ParserError` if the service is not found
"""
original_object = self.get_service(target_host, service_description)
if original_object is None:
raise ParserError("Service not found")
return self.edit_object(original_object, field_name, new_value)
def _get_list(self, item, key):
""" Return a comma list from an item
Args:
item: Item from which to select value. (string)
key: Field name of the value to select and return as a list. (string)
Example::
_get_list(Foo_object, host_name)
define service {
service_description Foo
host_name larry,curly,moe
}
returns
['larry','curly','moe']
Returns:
A list of the item's values of `key`
Raises:
:py:class:`ParserError` if item is not a dict
"""
if not isinstance(item, dict):
raise ParserError("%s is not a dictionary\n" % item)
# return []
if not key in item:
return []
return_list = []
if item[key].find(",") != -1:
for name in item[key].split(","):
return_list.append(name)
else:
return_list.append(item[key])
# Alphabetize
return_list.sort()
return return_list
def delete_object(self, object_type, object_name, user_key=None):
""" Delete object from configuration files
Args:
object_type: Type of the object to delete from configuration files.
object_name: Name of the object to delete from configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
True on success.
"""
item = self.get_object(object_type=object_type, object_name=object_name, user_key=user_key)
return self.item_remove(item)
def delete_service(self, service_description, host_name):
""" Delete service from configuration files
Args:
service_description: service_description field value of the object
to delete from configuration files.
host_name: host_name field value of the object to delete from
configuration files.
Returns:
True on success.
"""
item = self.get_service(host_name, service_description)
return self.item_remove(item)
def delete_host(self, object_name, user_key=None):
""" Delete a host from its configuration files
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
True on success.
"""
return self.delete_object('host', object_name, user_key=user_key)
def delete_hostgroup(self, object_name, user_key=None):
""" Delete a hostgroup from its configuration files
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
True on success.
"""
return self.delete_object('hostgroup', object_name, user_key=user_key)
def get_object(self, object_type, object_name, user_key=None):
""" Return a complete object dictionary
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: User defined key. Default None. (string)
Returns:
The item found to match all the criterias.
None if object is not found
"""
object_key = self._get_key(object_type, user_key)
for item in self.data['all_%s' % object_type]:
if item.get(object_key, None) == object_name:
return item
return None
def get_host(self, object_name, user_key=None):
""" Return a host object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('host', object_name, user_key=user_key)
def get_servicegroup(self, object_name, user_key=None):
""" Return a Servicegroup object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('servicegroup', object_name, user_key=user_key)
def get_contact(self, object_name, user_key=None):
""" Return a Contact object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('contact', object_name, user_key=user_key)
def get_contactgroup(self, object_name, user_key=None):
""" Return a Contactgroup object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('contactgroup', object_name, user_key=user_key)
def get_timeperiod(self, object_name, user_key=None):
""" Return a Timeperiod object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('timeperiod', object_name, user_key=user_key)
def get_command(self, object_name, user_key=None):
""" Return a Command object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('command', object_name, user_key=user_key)
def get_hostgroup(self, object_name, user_key=None):
""" Return a hostgroup object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('hostgroup', object_name, user_key=user_key)
def get_servicedependency(self, object_name, user_key=None):
""" Return a servicedependency object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('servicedependency', object_name, user_key=user_key)
def get_hostdependency(self, object_name, user_key=None):
""" Return a hostdependency object
Args:
object_name: object_name field value of the object to delete from
configuration files.
user_key: user_key to pass to :py:meth:`get_object`
Returns:
The item found to match all the criterias.
"""
return self.get_object('hostdependency', object_name, user_key=user_key)
def get_service(self, target_host, service_description):
""" Return a service object
Args:
target_host: host_name field of the service to be returned. This is
the host to which is attached the service.
service_description: service_description field of the service to be
returned.
Returns:
The item found to match all the criterias.
"""
for item in self.data['all_service']:
if item.get('service_description') == service_description and item.get('host_name') == target_host:
return item
return None
def _append_use(self, source_item, name):
""" Append attributes to source_item that are inherited via 'use' attribute'
Args:
source_item: item (dict) to apply the inheritance upon
name: obsolete (discovered automatically via source_item['use'].
Here for compatibility.
Returns:
Source Item with appended attributes.
Raises:
:py:class:`ParserError` on recursion errors
"""
# Remove the 'use' key
if "use" in source_item:
del source_item['use']
for possible_item in self.pre_object_list:
if "name" in possible_item:
# Start appending to the item
for k, v in possible_item.iteritems():
try:
if k == 'use':
source_item = self._append_use(source_item, v)
except Exception:
raise ParserError("Recursion error on %s %s" % (source_item, v))
# Only add the item if it doesn't already exist
if not k in source_item:
source_item[k] = v
return source_item
def _post_parse(self):
""" Creates a few optimization tweaks and easy access lists in self.data
Creates :py:attr:`config.item_apply_cache` and fills the all_object
item lists in self.data.
"""
self.item_list = None
self.item_apply_cache = {} # This is performance tweak used by _apply_template
for raw_item in self.pre_object_list:
# Performance tweak, make sure hashmap exists for this object_type
object_type = raw_item['meta']['object_type']
if not object_type in self.item_apply_cache:
self.item_apply_cache[object_type] = {}
# Tweak ends
if "use" in raw_item:
raw_item = self._apply_template(raw_item)
self.post_object_list.append(raw_item)
# Add the items to the class lists.
for list_item in self.post_object_list:
type_list_name = "all_%s" % list_item['meta']['object_type']
if not type_list_name in self.data:
self.data[type_list_name] = []
self.data[type_list_name].append(list_item)
def commit(self):
""" Write any changes that have been made to it's appropriate file """
# Loops through ALL items
for k in self.data.keys():
for item in self[k]:
# If the object needs committing, commit it!
if item['meta']['needs_commit']:
# Create file contents as an empty string
file_contents = ""
# find any other items that may share this config file
extra_items = self._get_items_in_file(item['meta']['filename'])
if len(extra_items) > 0:
for commit_item in extra_items:
# Ignore files that are already set to be deleted:w
if commit_item['meta']['delete_me']:
continue
# Make sure we aren't adding this thing twice
if item != commit_item:
file_contents += self.print_conf(commit_item)
# This is the actual item that needs commiting
if not item['meta']['delete_me']:
file_contents += self.print_conf(item)
# Write the file
filename = item['meta']['filename']
self.write(filename, file_contents)
# Recreate the item entry without the commit flag
self.data[k].remove(item)
item['meta']['needs_commit'] = None
self.data[k].append(item)
def flag_all_commit(self):
""" Flag every item in the configuration to be committed
This should probably only be used for debugging purposes
"""
for object_type in self.data.keys():
for item in self.data[object_type]:
item['meta']['needs_commit'] = True
def print_conf(self, item):
""" Return a string that can be used in a configuration file
Args:
item: Item to be dumped as a string.
Returns:
String representation of item.
"""
output = ""
# Header, to go on all files
output += "# Configuration file %s\n" % item['meta']['filename']
output += "# Edited by PyNag on %s\n" % time.ctime()
# Some hostgroup information
if "hostgroup_list" in item['meta']:
output += "# Hostgroups: %s\n" % ",".join(item['meta']['hostgroup_list'])
# Some hostgroup information
if "service_list" in item['meta']:
output += "# Services: %s\n" % ",".join(item['meta']['service_list'])
# Some hostgroup information
if "service_members" in item['meta']:
output += "# Service Members: %s\n" % ",".join(item['meta']['service_members'])
if len(item['meta']['template_fields']) != 0:
output += "# Values from templates:\n"
for k in item['meta']['template_fields']:
output += "#\t %-30s %-30s\n" % (k, item[k])
output += "\n"
output += "define %s {\n" % item['meta']['object_type']
for k, v in item.iteritems():
if v is None:
# Skip entries with No value
continue
if k != 'meta':
if k not in item['meta']['template_fields']:
output += "\t %-30s %-30s\n" % (k, v)
output += "}\n\n"
return output
def _load_static_file(self, filename=None):
""" Load a general config file (like nagios.cfg) that has key=value config file format. Ignore comments
Arguments:
filename: name of file to parse, if none nagios.cfg will be used
Returns:
a [ (key,value), (key,value) ] list
"""
result = []
if not filename:
filename = self.cfg_file
for line in self.open(filename).readlines():
# Strip out new line characters
line = line.strip()
# Skip blank lines
if line == "":
continue
# Skip comments
if line[0] == "#" or line[0] == ';':
continue
tmp = line.split("=", 1)
if len(tmp) < 2:
continue
key, value = tmp
key = key.strip()
value = value.strip()
result.append((key, value))
return result
def _edit_static_file(self, attribute, new_value, filename=None, old_value=None, append=False):
""" Modify a general config file (like nagios.cfg) that has a key=value config file format.
Arguments:
filename: Name of config file that will be edited (i.e. nagios.cfg)
attribute: name of attribute to edit (i.e. check_external_commands)
new_value: new value for the said attribute (i.e. "1"). None deletes
the line.
old_value: Useful if multiple attributes exist (i.e. cfg_dir) and
you want to replace a specific one.
append: If true, do not overwrite current setting. Instead append
this at the end. Use this with settings that are repeated like
cfg_file.
Examples::
_edit_static_file(filename='/etc/nagios/nagios.cfg', attribute='check_external_commands', new_value='1')
_edit_static_file(filename='/etc/nagios/nagios.cfg', attribute='cfg_dir', new_value='/etc/nagios/okconfig', append=True)
"""
if filename is None:
filename = self.cfg_file
# For some specific attributes, append should be implied
if attribute in ('cfg_file', 'cfg_dir', 'broker_module'):
append = True
# If/when we make a change, new_line is what will be written
new_line = '%s=%s\n' % (attribute, new_value)
# new_value=None means line should be removed
if new_value is None:
new_line = ''
write_buffer = self.open(filename).readlines()
is_dirty = False # dirty if we make any changes
for i, line in enumerate(write_buffer):
# Strip out new line characters
line = line.strip()
# Skip blank lines
if line == "":
continue
# Skip comments
if line[0] == "#" or line[0] == ';':
continue
key, value = line.split("=", 1)
key = key.strip()
value = value.strip()
# If key does not match, we are not interested in this line
if key != attribute:
continue
# If old_value was specified, and it matches, dont have to look any further
elif value == old_value:
write_buffer[i] = new_line
is_dirty = True
break
# if current value is the same as new_value, no need to make changes
elif value == new_value:
return False
# Special so cfg_dir matches despite double-slashes, etc
elif attribute == 'cfg_dir' and new_value and os.path.normpath(value) == os.path.normpath(new_value):
return False
# We are not appending, and no old value was specified:
elif append is False and not old_value:
write_buffer[i] = new_line
is_dirty = True
break
if is_dirty is False and new_value is not None:
# If we get here, it means we read the whole file,
# and we have not yet made any changes, So we assume
# We should append to the file
write_buffer.append(new_line)
is_dirty = True
# When we get down here, it is time to write changes to file
if is_dirty is True:
str_buffer = ''.join(write_buffer)
self.write(filename, str_buffer)
return True
else:
return False
def needs_reload(self):
""" Checks if the Nagios service needs a reload.
Returns:
True if Nagios service needs reload of cfg files
False if reload not needed or Nagios is not running
"""
if not self.maincfg_values:
self.reset()
self.parse_maincfg()
new_timestamps = self.get_timestamps()
object_cache_file = self.get_cfg_value('object_cache_file')
if self._get_pid() is None:
return False
if not object_cache_file:
return True
if not self.isfile(object_cache_file):
return True
object_cache_timestamp = new_timestamps.get(object_cache_file, 0)
# Reload not needed if no object_cache file
if object_cache_file is None:
return False
for k, v in new_timestamps.items():
if not v or int(v) > object_cache_timestamp:
return True
return False
def needs_reparse(self):
""" Checks if the Nagios configuration needs to be reparsed.
Returns:
True if any Nagios configuration file has changed since last parse()
"""
# If Parse has never been run:
if self.data == {}:
return True
# If previous save operation has forced a reparse
if self._is_dirty is True:
return True
# If we get here, we check the timestamps of the configs
new_timestamps = self.get_timestamps()
if len(new_timestamps) != len(self.timestamps):
return True
for k, v in new_timestamps.items():
if self.timestamps.get(k, None) != v:
return True
return False
@pynag.Utils.synchronized(pynag.Utils.rlock)
def parse_maincfg(self):
""" Parses your main configuration (nagios.cfg) and stores it as key/value pairs in self.maincfg_values
This function is mainly used by config.parse() which also parses your
whole configuration set.
Raises:
py:class:`ConfigFileNotFound`
"""
# If nagios.cfg is not set, lets do some minor autodiscover.
if self.cfg_file is None:
raise ConfigFileNotFound('Could not find nagios.cfg')
self.maincfg_values = self._load_static_file(self.cfg_file)
@pynag.Utils.synchronized(pynag.Utils.rlock)
def parse(self):
""" Parse all objects in your nagios configuration
This functions starts by loading up your nagios.cfg ( parse_maincfg() )
then moving on to your object configuration files (as defined via
cfg_file and cfg_dir) and and your resource_file as well.
Returns:
None
Raises:
:py:class:`IOError` if unable to read any file due to permission
problems
"""
# reset
self.reset()
self.parse_maincfg()
self.cfg_files = self.get_cfg_files()
# When parsing config, we will softly fail if permission denied
# comes on resource files. If later someone tries to get them via
# get_resource, we will fail hard
try:
self._resource_values = self.get_resources()
except IOError:
t, e = sys.exc_info()[:2]
self.errors.append(str(e))
self.timestamps = self.get_timestamps()
# This loads everything into
for cfg_file in self.cfg_files:
self._load_file(cfg_file)
self._post_parse()
self._is_dirty = False
def get_resource(self, resource_name):
""" Get a single resource value which can be located in any resource.cfg file
Arguments:
resource_name: Name as it appears in resource file (i.e. $USER1$)
Returns:
String value of the resource value.
Raises:
:py:class:`KeyError` if resource is not found
:py:class:`ParserError` if resource is not found and you do not have
permissions
"""
resources = self.get_resources()
for k, v in resources:
if k == resource_name:
return v
def get_timestamps(self):
""" Returns hash map of all nagios related files and their timestamps"""
files = {}
files[self.cfg_file] = None
for k, v in self.maincfg_values:
if k in ('resource_file', 'lock_file', 'object_cache_file'):
files[v] = None
for i in self.get_cfg_files():
files[i] = None
# Now lets lets get timestamp of every file
for k, v in files.items():
if not self.isfile(k):
continue
files[k] = self.stat(k).st_mtime
return files
def isfile(self, *args, **kwargs):
""" Wrapper around os.path.isfile """
return os.path.isfile(*args, **kwargs)
def isdir(self, *args, **kwargs):
""" Wrapper around os.path.isdir """
return os.path.isdir(*args, **kwargs)
def islink(self, *args, **kwargs):
""" Wrapper around os.path.islink """
return os.path.islink(*args, **kwargs)
def readlink(selfself, *args, **kwargs):
""" Wrapper around os.readlink """
return os.readlink(*args, **kwargs)
def stat(self, *args, **kwargs):
""" Wrapper around os.stat """
return os.stat(*args, **kwargs)
def remove(self, *args, **kwargs):
""" Wrapper around os.remove """
return os.remove(*args, **kwargs)
def access(self, *args, **kwargs):
""" Wrapper around os.access """
return os.access(*args, **kwargs)
def listdir(self, *args, **kwargs):
""" Wrapper around os.listdir """
return os.listdir(*args, **kwargs)
def exists(self, *args, **kwargs):
""" Wrapper around os.path.exists """
return os.path.exists(*args, **kwargs)
def get_resources(self):
"""Returns a list of every private resources from nagios.cfg"""
resources = []
for config_object, config_value in self.maincfg_values:
if config_object == 'resource_file' and self.isfile(config_value):
resources += self._load_static_file(config_value)
return resources
def extended_parse(self):
""" This parse is used after the initial parse() command is run.
It is only needed if you want extended meta information about hosts or other objects
"""
# Do the initial parsing
self.parse()
# First, cycle through the hosts, and append hostgroup information
index = 0
for host in self.data['all_host']:
if host.get("register", None) == "0":
continue
if not "host_name" in host:
continue
if not "hostgroup_list" in self.data['all_host'][index]['meta']:
self.data['all_host'][index]['meta']['hostgroup_list'] = []
# Append any hostgroups that are directly listed in the host definition
if "hostgroups" in host:
for hostgroup_name in self._get_list(host, 'hostgroups'):
if not "hostgroup_list" in self.data['all_host'][index]['meta']:
self.data['all_host'][index]['meta']['hostgroup_list'] = []
if hostgroup_name not in self.data['all_host'][index]['meta']['hostgroup_list']:
self.data['all_host'][index]['meta']['hostgroup_list'].append(hostgroup_name)
# Append any services which reference this host
service_list = []
for service in self.data['all_service']:
if service.get("register", None) == "0":
continue
if not "service_description" in service:
continue
if host['host_name'] in self._get_active_hosts(service):
service_list.append(service['service_description'])
self.data['all_host'][index]['meta']['service_list'] = service_list
# Increment count
index += 1
# Loop through all hostgroups, appending them to their respective hosts
for hostgroup in self.data['all_hostgroup']:
for member in self._get_list(hostgroup, 'members'):
index = 0
for host in self.data['all_host']:
if not "host_name" in host:
continue
# Skip members that do not match
if host['host_name'] == member:
# Create the meta var if it doesn' exist
if not "hostgroup_list" in self.data['all_host'][index]['meta']:
self.data['all_host'][index]['meta']['hostgroup_list'] = []
if hostgroup['hostgroup_name'] not in self.data['all_host'][index]['meta']['hostgroup_list']:
self.data['all_host'][index]['meta']['hostgroup_list'].append(hostgroup['hostgroup_name'])
# Increment count
index += 1
# Expand service membership
index = 0
for service in self.data['all_service']:
# Find a list of hosts to negate from the final list
self.data['all_service'][index]['meta']['service_members'] = self._get_active_hosts(service)
# Increment count
index += 1
def _get_active_hosts(self, item):
""" Given an object, return a list of active hosts.
This will exclude hosts that are negated with a "!"
Args:
item: Item to obtain active hosts from.
Returns:
List of all the active hosts for `item`
"""
# First, generate the negation list
negate_hosts = []
# Hostgroups
if "hostgroup_name" in item:
for hostgroup_name in self._get_list(item, 'hostgroup_name'):
if hostgroup_name[0] == "!":
hostgroup_obj = self.get_hostgroup(hostgroup_name[1:])
negate_hosts.extend(self._get_list(hostgroup_obj, 'members'))
# Host Names
if "host_name" in item:
for host_name in self._get_list(item, 'host_name'):
if host_name[0] == "!":
negate_hosts.append(host_name[1:])
# Now get hosts that are actually listed
active_hosts = []
# Hostgroups
if "hostgroup_name" in item:
for hostgroup_name in self._get_list(item, 'hostgroup_name'):
if hostgroup_name[0] != "!":
active_hosts.extend(self._get_list(self.get_hostgroup(hostgroup_name), 'members'))
# Host Names
if "host_name" in item:
for host_name in self._get_list(item, 'host_name'):
if host_name[0] != "!":
active_hosts.append(host_name)
# Combine the lists
return_hosts = []
for active_host in active_hosts:
if active_host not in negate_hosts:
return_hosts.append(active_host)
return return_hosts
def get_cfg_dirs(self):
""" Parses the main config file for configuration directories
Returns:
List of all cfg directories used in this configuration
Example::
print(get_cfg_dirs())
['/etc/nagios/hosts','/etc/nagios/objects',...]
"""
cfg_dirs = []
for config_object, config_value in self.maincfg_values:
if config_object == "cfg_dir":
cfg_dirs.append(config_value)
return cfg_dirs
def get_cfg_files(self):
""" Return a list of all cfg files used in this configuration
Filenames are normalised so that if nagios.cfg specifies relative
filenames we will convert it to fully qualified filename before returning.
Returns:
List of all configurations files used in the configuration.
Example:
print(get_cfg_files())
['/etc/nagios/hosts/host1.cfg','/etc/nagios/hosts/host2.cfg',...]
"""
cfg_files = []
for config_object, config_value in self.maincfg_values:
# Add cfg_file objects to cfg file list
if config_object == "cfg_file":
config_value = self.abspath(config_value)
if self.isfile(config_value):
cfg_files.append(config_value)
# Parse all files in a cfg directory
if config_object == "cfg_dir":
config_value = self.abspath(config_value)
directories = []
raw_file_list = []
directories.append(config_value)
# Walk through every subdirectory and add to our list
while directories:
current_directory = directories.pop(0)
# Nagios doesnt care if cfg_dir exists or not, so why should we ?
if not self.isdir(current_directory):
continue
for item in self.listdir(current_directory):
# Append full path to file
item = "%s" % (os.path.join(current_directory, item.strip()))
if self.islink(item):
item = os.readlink(item)
if self.isdir(item):
directories.append(item)
if raw_file_list.count(item) < 1:
raw_file_list.append(item)
for raw_file in raw_file_list:
if raw_file.endswith('.cfg'):
if self.exists(raw_file) and not self.isdir(raw_file):
# Nagios doesnt care if cfg_file exists or not, so we will not throws errors
cfg_files.append(raw_file)
return cfg_files
def abspath(self, path):
""" Return the absolute path of a given relative path.
The current working directory is assumed to be the dirname of nagios.cfg
Args:
path: relative path to be transformed into absolute path. (string)
Returns:
Absolute path of given relative path.
Example:
>>> c = config(cfg_file="/etc/nagios/nagios.cfg")
>>> c.abspath('nagios.cfg')
'/etc/nagios/nagios.cfg'
>>> c.abspath('/etc/nagios/nagios.cfg')
'/etc/nagios/nagios.cfg'
"""
if not isinstance(path, str):
return ValueError("Path must be a string got %s instead" % type(path))
if path.startswith('/'):
return path
nagiosdir = os.path.dirname(self.cfg_file)
normpath = os.path.abspath(os.path.join(nagiosdir, path))
return normpath
def get_cfg_value(self, key):
""" Returns one specific value from your nagios.cfg file,
None if value is not found.
Arguments:
key: what attribute to fetch from nagios.cfg (example: "command_file" )
Returns:
String of the first value found for
Example:
>>> c = Config() # doctest: +SKIP
>>> log_file = c.get_cfg_value('log_file') # doctest: +SKIP
# Should return something like "/var/log/nagios/nagios.log"
"""
if not self.maincfg_values:
self.parse_maincfg()
for k, v in self.maincfg_values:
if k == key:
return v
return None
def get_object_types(self):
""" Returns a list of all discovered object types """
return map(lambda x: re.sub("all_", "", x), self.data.keys())
def cleanup(self):
""" Remove configuration files that have no configuration items """
for filename in self.cfg_files:
if not self.parse_file(filename): # parse_file returns empty list on empty files
self.remove(filename)
# If nagios.cfg specifies this file directly via cfg_file directive then...
for k, v in self.maincfg_values:
if k == 'cfg_file' and v == filename:
self._edit_static_file(k, old_value=v, new_value=None)
def __setitem__(self, key, item):
self.data[key] = item
def __getitem__(self, key):
return self.data[key]
class Livestatus(object):
""" Wrapper around MK-Livestatus
Example usage::
s = Livestatus()
for hostgroup s.get_hostgroups():
print(hostgroup['name'], hostgroup['num_hosts'])
"""
def __init__(self, livestatus_socket_path=None, nagios_cfg_file=None, authuser=None):
""" Initilize a new instance of Livestatus
Args:
livestatus_socket_path: Path to livestatus socket (if none specified,
use one specified in nagios.cfg)
nagios_cfg_file: Path to your nagios.cfg. If None then try to
auto-detect
authuser: If specified. Every data pulled is with the access rights
of that contact.
"""
self.nagios_cfg_file = nagios_cfg_file
self.error = None
if not livestatus_socket_path:
c = config(cfg_file=nagios_cfg_file)
c.parse_maincfg()
self.nagios_cfg_file = c.cfg_file
# Look for a broker_module line in the main config and parse its arguments
# One of the arguments is path to the file socket created
for k, v in c.maincfg_values:
if k == 'broker_module' and "livestatus.o" in v:
for arg in v.split()[1:]:
if arg.startswith('/') or '=' not in arg:
livestatus_socket_path = arg
break
else:
# If we get here, then we could not locate a broker_module argument
# that looked like a filename
msg = "No Livestatus socket defined. Make sure livestatus broker module is loaded."
raise ParserError(msg)
self.livestatus_socket_path = livestatus_socket_path
self.authuser = authuser
def test(self, raise_error=True):
""" Test if connection to livestatus socket is working
Args:
raise_error: If set to True, raise exception if test fails,otherwise return False
Raises:
ParserError if raise_error == True and connection fails
Returns:
True -- Connection is OK
False -- there are problems and raise_error==False
"""
try:
self.query("GET hosts")
except Exception:
t, e = sys.exc_info()[:2]
self.error = e
if raise_error:
raise ParserError("got '%s' when testing livestatus socket. error was: '%s'" % (type(e), e))
else:
return False
return True
def _get_socket(self):
""" Returns a socket.socket() instance to communicate with livestatus
Socket might be either unix filesocket or a tcp socket depenging in
the content of :py:attr:`livestatus_socket_path`
Returns:
Socket to livestatus instance (socket.socket)
Raises:
:py:class:`LivestatusNotConfiguredException` on failed connection.
:py:class:`ParserError` If could not parse configured TCP address
correctly.
"""
if not self.livestatus_socket_path:
msg = "We could not find path to MK livestatus socket file. Make sure MK livestatus is installed and configured"
raise LivestatusNotConfiguredException(msg)
try:
# If livestatus_socket_path contains a colon, then we assume that it is tcp socket instead of a local filesocket
if self.livestatus_socket_path.find(':') > 0:
address, tcp_port = self.livestatus_socket_path.split(':', 1)
if not tcp_port.isdigit():
msg = 'Could not parse host:port "%s". %s does not look like a valid port is not a valid tcp port.'
raise ParserError(msg % (self.livestatus_socket_path, tcp_port))
tcp_port = int(tcp_port)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((address, tcp_port))
else:
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect(self.livestatus_socket_path)
return s
except IOError:
t, e = sys.exc_info()[:2]
msg = "%s while connecting to '%s'. Make sure nagios is running and mk_livestatus loaded."
raise ParserError(msg % (e, self.livestatus_socket_path))
def query(self, query, *args, **kwargs):
""" Performs LQL queries the livestatus socket
Queries are corrected and convienient default data are added to the
query before sending it to the socket.
Args:
query: Query to be passed to the livestatus socket (string)
args, kwargs: Additionnal parameters that will be sent to
:py:meth:`pynag.Utils.grep_to_livestatus`. The result will be
appended to the query.
Returns:
Answer from livestatus. It will be in python format unless specified
otherwise.
Raises:
:py:class:`ParserError` if problems connecting to livestatus.
"""
# columns parameter is here for backwards compatibility only
kwargs.pop('columns', None)
# We break query up into a list, of commands, then before sending command to the socket
# We will write it one line per item in the array
query = query.split('\n')
query += pynag.Utils.grep_to_livestatus(*args, **kwargs)
# If no response header was specified, we add fixed16
response_header = None
if not filter(lambda x: x.startswith('ResponseHeader:'), query):
query.append("ResponseHeader: fixed16")
response_header = "fixed16"
# If no specific outputformat is requested, we will return in python format
python_format = False
if not filter(lambda x: x.startswith('OutputFormat:'), query):
query.append("OutputFormat: python")
python_format = True
# There is a bug in livestatus where if requesting Stats, then no column headers are sent from livestatus
# In later version, the headers are sent, but the output is corrupted.
#
# We maintain consistency by clinging on to the old bug, and if there are Stats in the output
# we will not ask for column headers
doing_stats = len(filter(lambda x: x.startswith('Stats:'), query)) > 0
if not filter(lambda x: x.startswith('Stats:'), query) and not filter(
lambda x: x.startswith('ColumnHeaders: on'), query):
query.append("ColumnHeaders: on")
# Check if we need to add authuser to the query
if not filter(lambda x: x.startswith('AuthUser:'), query) and self.authuser not in (None, ''):
query.append("AuthUser: %s" % self.authuser)
# When we reach here, we are done adding options to the query, so we convert to the string that will
# be sent to the livestatus socket
query = '\n'.join(query) + '\n'
self.last_query = query
#
# Lets create a socket and see if we can write to it
#
s = self._get_socket()
try:
s.send(query)
except IOError:
msg = "Could not write to socket '%s'. Make sure you have the right permissions"
raise ParserError(msg % self.livestatus_socket_path)
s.shutdown(socket.SHUT_WR)
tmp = s.makefile()
# Read the response header from livestatus
if response_header == "fixed16":
response_data = tmp.readline()
if len(response_data) == 0:
return []
return_code = response_data.split()[0]
if not return_code.startswith('2'):
error_message = tmp.readline().strip()
raise ParserError("Error '%s' from livestatus: %s" % (return_code, error_message))
answer = tmp.read()
# We are done with the livestatus socket. lets close it
s.close()
if answer == '':
return []
# If something other than python format was requested, we return the answer as is
if python_format is False:
return answer
# If we reach down here, it means we are supposed to parse the output before returning it
try:
answer = eval(answer)
except Exception:
raise ParserError("Error, could not parse response from livestatus.\n%s" % answer)
# Workaround for livestatus bug, where column headers are not provided even if we asked for them
if doing_stats is True and len(answer) == 1:
return answer[0]
columns = answer.pop(0)
# Lets throw everything into a hashmap before we return
result = []
for line in answer:
tmp = {}
for i, column in enumerate(line):
column_name = columns[i]
tmp[column_name] = column
result.append(tmp)
return result
def get(self, table, *args, **kwargs):
""" Same as self.query('GET %s' % (table,))
Extra arguments will be appended to the query.
Args:
table: Table from which the data will be retrieved
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Example::
get('contacts', 'Columns: name alias')
Returns:
Answer from livestatus in python format.
"""
return self.query('GET %s' % (table,), *args, **kwargs)
def get_host(self, host_name):
""" Performs a GET query for a particular host
This performs::
'''GET hosts
Filter: host_name = %s''' % host_name
Args:
host_name: name of the host to obtain livestatus data from
Returns:
Answer from livestatus in python format.
"""
return self.query('GET hosts', 'Filter: host_name = %s' % host_name)[0]
def get_service(self, host_name, service_description):
""" Performs a GET query for a particular service
This performs::
'''GET services
Filter: host_name = %s
Filter: service_description = %s''' % (host_name, service_description)
Args:
host_name: name of the host the target service is attached to.
service_description: Description of the service to obtain livestatus
data from.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET services', 'Filter: host_name = %s' % host_name,
'Filter: description = %s' % service_description)[0]
def get_hosts(self, *args, **kwargs):
""" Performs a GET query for all hosts
This performs::
'''GET hosts %s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET hosts', *args, **kwargs)
def get_services(self, *args, **kwargs):
""" Performs a GET query for all services
This performs::
'''GET services
%s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET services', *args, **kwargs)
def get_hostgroups(self, *args, **kwargs):
""" Performs a GET query for all hostgroups
This performs::
'''GET hostgroups
%s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET hostgroups', *args, **kwargs)
def get_servicegroups(self, *args, **kwargs):
""" Performs a GET query for all servicegroups
This performs::
'''GET servicegroups
%s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET servicegroups', *args, **kwargs)
def get_contactgroups(self, *args, **kwargs):
""" Performs a GET query for all contactgroups
This performs::
'''GET contactgroups
%s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET contactgroups', *args, **kwargs)
def get_contacts(self, *args, **kwargs):
""" Performs a GET query for all contacts
This performs::
'''GET contacts
%s %s''' % (*args, **kwargs)
Args:
args, kwargs: These will be appendend to the end of the query to
perform additionnal instructions.
Returns:
Answer from livestatus in python format.
"""
return self.query('GET contacts', *args, **kwargs)
def get_contact(self, contact_name):
""" Performs a GET query for a particular contact
This performs::
'''GET contacts
Filter: contact_name = %s''' % contact_name
Args:
contact_name: name of the contact to obtain livestatus data from
Returns:
Answer from livestatus in python format.
"""
return self.query('GET contacts', 'Filter: contact_name = %s' % contact_name)[0]
def get_servicegroup(self, name):
""" Performs a GET query for a particular servicegroup
This performs::
'''GET servicegroups
Filter: servicegroup_name = %s''' % servicegroup_name
Args:
servicegroup_name: name of the servicegroup to obtain livestatus data from
Returns:
Answer from livestatus in python format.
"""
return self.query('GET servicegroups', 'Filter: name = %s' % name)[0]
def get_hostgroup(self, name):
""" Performs a GET query for a particular hostgroup
This performs::
'''GET hostgroups
Filter: hostgroup_name = %s''' % hostgroup_name
Args:
hostgroup_name: name of the hostgroup to obtain livestatus data from
Returns:
Answer from livestatus in python format.
"""
return self.query('GET hostgroups', 'Filter: name = %s' % name)[0]
def get_contactgroup(self, name):
""" Performs a GET query for a particular contactgroup
This performs::
'''GET contactgroups
Filter: contactgroup_name = %s''' % contactgroup_name
Args:
contactgroup_name: name of the contactgroup to obtain livestatus data from
Returns:
Answer from livestatus in python format.
"""
return self.query('GET contactgroups', 'Filter: name = %s' % name)[0]
class RetentionDat(object):
""" Easy way to parse the content of retention.dat
After calling parse() contents of retention.dat are kept in self.data
Example Usage::
r = retention()
r.parse()
print r
print r.data['info']
"""
def __init__(self, filename=None, cfg_file=None):
""" Initilize a new instance of retention.dat
Args (you only need to provide one of these):
filename: path to your retention.dat file
cfg_file: path to your nagios.cfg file, path to retention.dat will
be looked up in this file
"""
# If filename is not provided, lets try to discover it from
# nagios.cfg
if filename is None:
c = config(cfg_file=cfg_file)
for key, value in c._load_static_file():
if key == "state_retention_file":
filename = value
self.filename = filename
self.data = None
def parse(self):
""" Parses your status.dat file and stores in a dictionary under self.data
Returns:
None
Raises:
:py:class:`ParserError`: if problem arises while reading status.dat
:py:class:`ParserError`: if status.dat is not found
:py:class:`IOError`: if status.dat cannot be read
"""
self.data = {}
status = {} # Holds all attributes of a single item
key = None # if within definition, store everything before =
value = None # if within definition, store everything after =
if not self.filename:
raise ParserError("status.dat file not found")
lines = open(self.filename, 'rb').readlines()
for sequence_no, line in enumerate(lines):
line_num = sequence_no + 1
# Cleanup and line skips
line = line.strip()
if line == "":
pass
elif line[0] == "#" or line[0] == ';':
pass
elif line.find("{") != -1:
status = {}
status['meta'] = {}
status['meta']['type'] = line.split("{")[0].strip()
elif line.find("}") != -1:
# Status definition has finished, lets add it to
# self.data
if status['meta']['type'] not in self.data:
self.data[status['meta']['type']] = []
self.data[status['meta']['type']].append(status)
else:
tmp = line.split("=", 1)
if len(tmp) == 2:
(key, value) = line.split("=", 1)
status[key] = value
elif key == "long_plugin_output":
# special hack for long_output support. We get here if:
# * line does not contain {
# * line does not contain }
# * line does not contain =
# * last line parsed started with long_plugin_output=
status[key] += "\n" + line
else:
raise ParserError("Error on %s:%s: Could not parse line: %s" % (self.filename, line_num, line))
def __setitem__(self, key, item):
self.data[key] = item
def __getitem__(self, key):
return self.data[key]
def __str__(self):
if not self.data:
self.parse()
str_buffer = "# Generated by pynag"
for datatype, datalist in self.data.items():
for item in datalist:
str_buffer += "%s {\n" % datatype
for attr, value in item.items():
str_buffer += "%s=%s\n" % (attr, value)
str_buffer += "}\n"
return str_buffer
class StatusDat(RetentionDat):
""" Easy way to parse status.dat file from nagios
After calling parse() contents of status.dat are kept in status.data
Example usage::
>>> s = status()
>>> s.parse()
>>> keys = s.data.keys()
>>> 'info' in keys
True
>>> 'programstatus' in keys
True
>>> for service in s.data.get('servicestatus',[]):
... host_name=service.get('host_name', None)
... description=service.get('service_description',None)
"""
def __init__(self, filename=None, cfg_file=None):
""" Initilize a new instance of status
Args (you only need to provide one of these):
filename: path to your status.dat file
cfg_file: path to your nagios.cfg file, path to status.dat will be
looked up in this file
"""
# If filename is not provided, lets try to discover it from
# nagios.cfg
if filename is None:
c = config(cfg_file=cfg_file)
for key, value in c._load_static_file():
if key == "status_file":
filename = value
self.filename = filename
self.data = None
def get_contactstatus(self, contact_name):
""" Returns a dictionary derived from status.dat for one particular contact
Args:
contact_name: `contact_name` field of the contact's status.dat data
to parse and return as a dict.
Returns:
dict derived from status.dat for the contact.
Raises:
ValueError if object is not found
Example:
>>> s = status()
>>> s.get_contactstatus(contact_name='invalid_contact')
ValueError('invalid_contact',)
>>> first_contact = s.data['contactstatus'][0]['contact_name']
>>> s.get_contactstatus(first_contact)['contact_name'] == first_contact
True
"""
if self.data is None:
self.parse()
for i in self.data['contactstatus']:
if i.get('contact_name') == contact_name:
return i
return ValueError(contact_name)
def get_hoststatus(self, host_name):
""" Returns a dictionary derived from status.dat for one particular contact
Args:
host_name: `host_name` field of the host's status.dat data
to parse and return as a dict.
Returns:
dict derived from status.dat for the host.
Raises:
ValueError if object is not found
"""
if self.data is None:
self.parse()
for i in self.data['hoststatus']:
if i.get('host_name') == host_name:
return i
raise ValueError(host_name)
def get_servicestatus(self, host_name, service_description):
""" Returns a dictionary derived from status.dat for one particular service
Args:
service_name: `service_name` field of the host's status.dat data
to parse and return as a dict.
Returns:
dict derived from status.dat for the service.
Raises:
ValueError if object is not found
"""
if self.data is None:
self.parse()
for i in self.data['servicestatus']:
if i.get('host_name') == host_name:
if i.get('service_description') == service_description:
return i
raise ValueError(host_name, service_description)
class ObjectCache(Config):
""" Loads the configuration as it appears in objects.cache file """
def get_cfg_files(self):
for k, v in self.maincfg_values:
if k == 'object_cache_file':
return [v]
class ParserError(Exception):
""" ParserError is used for errors that the Parser has when parsing config.
Typical usecase when there is a critical error while trying to read configuration.
"""
filename = None
line_start = None
message = None
def __init__(self, message, item=None):
""" Creates an instance of ParserError
Args:
message: Message to be printed by the error
item: Pynag item who caused the error
"""
self.message = message
if item is None:
return
self.item = item
self.filename = item['meta']['filename']
self.line_start = item['meta'].get('line_start')
def __str__(self):
message = self.message
if self.filename and self.line_start:
message = '%s in %s, line %s' % (message, self.filename, self.line_start)
return repr(message)
class ConfigFileNotFound(ParserError):
""" This exception is thrown if we cannot locate any nagios.cfg-style config file. """
pass
class LivestatusNotConfiguredException(ParserError):
""" This exception is raised if we tried to autodiscover path to livestatus and failed """
class LogFiles(object):
""" Parses Logfiles defined in nagios.cfg and allows easy access to its content
Content is stored in python-friendly arrays of dicts. Output should be more
or less compatible with mk_livestatus log output
"""
def __init__(self, maincfg=None):
self.config = config(maincfg)
self.log_file = self.config.get_cfg_value('log_file')
self.log_archive_path = self.config.get_cfg_value('log_archive_path')
def get_log_entries(self, start_time=None, end_time=None, strict=True, search=None, **kwargs):
""" Get Parsed log entries for given timeperiod.
Args:
start_time: unix timestamp. if None, return all entries from today
end_time: If specified, only fetch log entries older than this (unix
timestamp)
strict: If True, only return entries between start_time and
end_time, if False, then return entries that belong to same log
files as given timeset
search: If provided, only return log entries that contain this
string (case insensitive)
kwargs: All extra arguments are provided as filter on the log
entries. f.e. host_name="localhost"
Returns:
List of dicts
"""
now = time.time()
if end_time is None:
end_time = now
if start_time is None:
if 'filename' in kwargs:
start_time = 1
else:
seconds_in_a_day = 60 * 60 * 24
seconds_today = end_time % seconds_in_a_day # midnight of today
start_time = end_time - seconds_today
start_time = int(start_time)
end_time = int(end_time)
logfiles = self.get_logfiles()
if 'filename' in kwargs:
logfiles = filter(lambda x: x == kwargs.get('filename'), logfiles)
# If start time was provided, skip all files that we last modified
# before start_time
if start_time:
logfiles = filter(lambda x: start_time <= os.stat(x).st_mtime, logfiles)
# Log entries are returned in ascending order, which is the opposite of
# what get_logfiles returns.
logfiles.reverse()
result = []
for log_file in logfiles:
entries = self._parse_log_file(filename=log_file)
if len(entries) == 0:
continue
first_entry = entries[0]
last_entry = entries[-1]
if first_entry['time'] > end_time:
continue
# If strict, filter entries to only include the ones in the timespan
if strict is True:
entries = [x for x in entries if x['time'] >= start_time and x['time'] <= end_time]
# If search string provided, filter the string
if search is not None:
entries = [x for x in entries if x['message'].lower().find(search.lower()) > -1]
for k, v in kwargs.items():
entries = [x for x in entries if x.get(k) == v]
result += entries
if start_time is None or int(start_time) >= int(first_entry.get('time')):
continue
# Now, logfiles should in MOST cases come sorted for us.
# However we rely on modification time of files and if it is off,
# We want to make sure log entries are coming in the correct order.
# The following sort should not impact performance in the typical use case.
result.sort(key=lambda x: x.get('time'))
return result
def get_logfiles(self):
""" Returns a list with the fullpath to every log file used by nagios.
Lists are sorted by modification times. Newest logfile is at the front
of the list so usually nagios.log comes first, followed by archivelogs
Returns:
List of strings
"""
logfiles = []
for filename in os.listdir(self.log_archive_path):
full_path = "%s/%s" % (self.log_archive_path, filename)
logfiles.append(full_path)
logfiles.append(self.log_file)
# Sort the logfiles by modification time, newest file at the front
compare_mtime = lambda a, b: os.stat(a).st_mtime < os.stat(b).st_mtime
logfiles.sort(key=lambda x: int(os.stat(x).st_mtime))
# Newest logfiles go to the front of the list
logfiles.reverse()
return logfiles
def get_flap_alerts(self, **kwargs):
""" Same as :py:meth:`get_log_entries`, except return timeperiod transitions.
Takes same parameters.
"""
return self.get_log_entries(class_name="timeperiod transition", **kwargs)
def get_notifications(self, **kwargs):
""" Same as :py:meth:`get_log_entries`, except return only notifications.
Takes same parameters.
"""
return self.get_log_entries(class_name="notification", **kwargs)
def get_state_history(self, start_time=None, end_time=None, host_name=None, strict=True, service_description=None):
""" Returns a list of dicts, with the state history of hosts and services.
Args:
start_time: unix timestamp. if None, return all entries from today
end_time: If specified, only fetch log entries older than this (unix
timestamp)
host_name: If provided, only return log entries that contain this
string (case insensitive)
service_description: If provided, only return log entries that contain this
string (case insensitive)
Returns:
List of dicts with state history of hosts and services
"""
log_entries = self.get_log_entries(start_time=start_time, end_time=end_time, strict=strict, class_name='alerts')
result = []
last_state = {}
now = time.time()
for line in log_entries:
if 'state' not in line:
continue
line['duration'] = now - int(line.get('time'))
if host_name is not None and host_name != line.get('host_name'):
continue
if service_description is not None and service_description != line.get('service_description'):
continue
if start_time is None:
start_time = int(line.get('time'))
short_name = "%s/%s" % (line['host_name'], line['service_description'])
if short_name in last_state:
last = last_state[short_name]
last['end_time'] = line['time']
last['duration'] = last['end_time'] - last['time']
line['previous_state'] = last['state']
last_state[short_name] = line
if strict is True:
if start_time is not None and int(start_time) > int(line.get('time')):
continue
if end_time is not None and int(end_time) < int(line.get('time')):
continue
result.append(line)
return result
def _parse_log_file(self, filename=None):
""" Parses one particular nagios logfile into arrays of dicts.
Args:
filename: Log file to be parsed. If is None, then log_file from
nagios.cfg is used.
Returns:
A list of dicts containing all data from the log file
"""
if filename is None:
filename = self.log_file
result = []
for line in open(filename).readlines():
parsed_entry = self._parse_log_line(line)
if parsed_entry != {}:
parsed_entry['filename'] = filename
result.append(parsed_entry)
return result
def _parse_log_line(self, line):
""" Parse one particular line in nagios logfile and return a dict.
Args:
line: Line of the log file to be parsed.
Returns:
dict containing the information from the log file line.
"""
host = None
service_description = None
state = None
check_attempt = None
plugin_output = None
contact = None
m = re.search('^\[(.*?)\] (.*?): (.*)', line)
if m is None:
return {}
line = line.strip()
timestamp, logtype, options = m.groups()
result = {}
try:
timestamp = int(timestamp)
except ValueError:
timestamp = 0
result['time'] = int(timestamp)
result['type'] = logtype
result['options'] = options
result['message'] = line
result['class'] = 0 # unknown
result['class_name'] = 'unclassified'
if logtype in ('CURRENT HOST STATE', 'CURRENT SERVICE STATE', 'SERVICE ALERT', 'HOST ALERT'):
result['class'] = 1
result['class_name'] = 'alerts'
if logtype.find('HOST') > -1:
# This matches host current state:
m = re.search('(.*?);(.*?);(.*);(.*?);(.*)', options)
if m is None:
return result
host, state, hard, check_attempt, plugin_output = m.groups()
service_description = None
if logtype.find('SERVICE') > -1:
m = re.search('(.*?);(.*?);(.*?);(.*?);(.*?);(.*)', options)
if m is None:
return result
host, service_description, state, hard, check_attempt, plugin_output = m.groups()
result['host_name'] = host
result['service_description'] = service_description
result['state'] = int(pynag.Plugins.state[state])
result['check_attempt'] = check_attempt
result['plugin_output'] = plugin_output
result['text'] = plugin_output
elif "NOTIFICATION" in logtype:
result['class'] = 3
result['class_name'] = 'notification'
if logtype == 'SERVICE NOTIFICATION':
m = re.search('(.*?);(.*?);(.*?);(.*?);(.*?);(.*)', options)
if m is None:
return result
contact, host, service_description, state, command, plugin_output = m.groups()
elif logtype == 'HOST NOTIFICATION':
m = re.search('(.*?);(.*?);(.*?);(.*?);(.*)', options)
if m is None:
return result
contact, host, state, command, plugin_output = m.groups()
service_description = None
result['contact_name'] = contact
result['host_name'] = host
result['service_description'] = service_description
try:
result['state'] = int(pynag.Plugins.state[state])
except Exception:
result['state'] = -1
result['plugin_output'] = plugin_output
result['text'] = plugin_output
elif logtype == "EXTERNAL COMMAND":
result['class'] = 5
result['class_name'] = 'command'
m = re.search('(.*?);(.*)', options)
if m is None:
return result
command_name, text = m.groups()
result['command_name'] = command_name
result['text'] = text
elif logtype in ('PASSIVE SERVICE CHECK', 'PASSIVE HOST CHECK'):
result['class'] = 4
result['class_name'] = 'passive'
if logtype.find('HOST') > -1:
# This matches host current state:
m = re.search('(.*?);(.*?);(.*)', options)
if m is None:
return result
host, state, plugin_output = m.groups()
service_description = None
if logtype.find('SERVICE') > -1:
m = re.search('(.*?);(.*?);(.*?);(.*)', options)
if m is None:
return result
host, service_description, state, plugin_output = m.groups()
result['host_name'] = host
result['service_description'] = service_description
result['state'] = state
result['plugin_output'] = plugin_output
result['text'] = plugin_output
elif logtype in ('SERVICE FLAPPING ALERT', 'HOST FLAPPING ALERT'):
result['class_name'] = 'flapping'
elif logtype == 'TIMEPERIOD TRANSITION':
result['class_name'] = 'timeperiod_transition'
elif logtype == 'Warning':
result['class_name'] = 'warning'
result['state'] = "1"
result['text'] = options
if 'text' not in result:
result['text'] = result['options']
result['log_class'] = result['class'] # since class is a python keyword
return result
class ExtraOptsParser(object):
""" Get Nagios Extra-Opts from a config file as specified by http://nagiosplugins.org/extra-opts
We could ALMOST use pythons ConfParser but nagios plugin team thought it would be a
good idea to support multiple values per key, so a dict datatype no longer works.
Its a shame because we have to make our own "ini" parser as a result
Usage::
# cat /etc/nagios/plugins.ini
[main]
host_name = localhost
[other section]
host_name = example.com
# EOF
e = ExtraOptsParser(section_name='main', config_file='/etc/nagios/plugins.ini')
e.get('host_name') # returns "localhost"
e.get_values() # Returns a dict of all the extra opts
e.getlist('host_name') # returns all values of host_name (if more than one were specified) in a list
"""
standard_locations = [
"/etc/nagios/plugins.ini",
"/usr/local/nagios/etc/plugins.ini",
"/usr/local/etc/nagios/plugins.ini",
"/etc/opt/nagios/plugins.ini",
"/etc/nagios-plugins.ini",
"/usr/local/etc/nagios-plugins.ini",
"/etc/opt/nagios-plugins.ini",
]
def __init__(self, section_name=None, config_file=None):
if not section_name:
section_name = self.get_default_section_name()
if not config_file:
config_file = self.get_default_config_file()
self.section_name = section_name
self.config_file = config_file
self._all_options = self.parse_file(filename=config_file) or {}
def get_values(self):
""" Returns a dict with all extra-options with the granted section_name and config_file
Results are in the form of::
{
'key': ["possible","values"]
}
"""
return self._all_options.get(self.section_name, {})
def get_default_section_name(self):
""" According to extra-opts standard, the default should be filename of check script being run """
return os.path.basename(sys.argv[0])
def get_default_config_file(self):
""" Return path to first readable extra-opt config-file found
According to the nagiosplugins extra-opts spec the search method is as follows:
1. Search for nagios.ini or nagios-plugins.ini in : splitted variable NAGIOS_CONFIG_PATH
2. Search in a predefined list of files
3. Return None if no config file is found
The method works as follows:
To quote the spec on NAGIOS_CONFIG_PATH:
*"To use a custom location, set a NAGIOS_CONFIG_PATH environment
variable to the set of directories that should be checked (this is a
colon-separated list just like PATH). The first plugins.ini or
nagios-plugins.ini file found in these directories will be used."*
"""
search_path = []
nagios_config_path = os.environ.get('NAGIOS_CONFIG_PATH', '')
for path in nagios_config_path.split(':'):
search_path.append(os.path.join(path, 'plugins.ini'))
search_path.append(os.path.join(path, 'nagios-plugins.ini'))
search_path += self.standard_locations
self.search_path = search_path
for path in search_path:
if os.path.isfile(path):
return path
return None
def get(self, option_name, default=_sentinel):
""" Return the value of one specific option
Args:
option_name: The value set to this option will be returned
Returns:
The value of `option_name`
Raises:
:py:class:`ValueError` when `option_name` cannot be found in options
"""
result = self.getlist(option_name, default)
# If option was not found, raise error
if result == _sentinel:
raise ValueError("Option named %s was not found" % (option_name))
elif result == default:
return result
elif not result:
# empty list
return result
else:
return result[0]
def getlist(self, option_name, default=_sentinel):
""" Return a list of all values for option_name
Args:
option_name: All the values set to this option will be returned
Returns:
List containing all the options set to `option_name`
Raises:
:py:class:`ValueError` when `option_name` cannot be found in options
"""
result = self.get_values().get(option_name, default)
if result == _sentinel:
raise ValueError("Option named %s was not found" % (option_name))
return result
def parse_file(self, filename):
""" Parses an ini-file and returns a dict of the ini values.
The datatype returned is a list of sections where each section is a
dict of values.
Args:
filename: Full path to the ini-file to be parsed.
Example the following the file::
[main]
name = this is a name
key = value
key = value2
Would return::
[
{'main':
{
'name': ['this is a name'],
'key': [value, value2]
}
},
]
"""
if filename is None:
return {}
f = open(filename)
try:
data = f.read()
return self.parse_string(data)
finally:
f.close()
def parse_string(self, string):
""" Parses a string that is supposed to be ini-style format.
See :py:meth:`parse_file` for more info
Args:
string: String to be parsed. Should be in ini-file format.
Returns:
Dictionnary containing all the sections of the ini-file and their
respective data.
Raises:
:py:class:`ParserError` when line does not follow the ini format.
"""
sections = {}
# When parsing inside a section, the name of it stored here.
section_name = None
current_section = pynag.Utils.defaultdict(dict)
for line_no, line, in enumerate(string.splitlines()):
line = line.strip()
# skip empty lines
if not line or line[0] in ('#', ';'):
continue
# Check if this is a new section
if line.startswith('[') and line.endswith(']'):
section_name = line.strip('[').strip(']').strip()
current_section = pynag.Utils.defaultdict(list)
sections[section_name] = current_section
continue
# All entries should have key=value format
if not '=' in line:
error = "Line %s should be in the form of key=value format (got '%s' instead)" % (line_no, line)
raise ParserError(error)
# If we reach here, we parse current line into key and a value section
key, value = line.split('=', 1)
key = key.strip()
value = value.strip()
sections[section_name][key].append(value)
return sections
class SshConfig(Config):
""" Parse object configuration files from remote host via ssh
Uses python-paramiko for ssh connections.
"""
def __init__(self, host, username, password=None, cfg_file=None):
""" Creates a SshConfig instance
Args:
host: Host to connect to
username: User to connect with
password: Password for `username`
cfg_file: Nagios main cfg file
"""
import paramiko
self.ssh = paramiko.SSHClient()
self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.ssh.connect(host, username=username, password=password)
self.ftp = self.ssh.open_sftp()
import cStringIO
c = cStringIO.StringIO()
self.tar = tarfile.open(mode='w', fileobj=c)
self.cached_stats = {}
super(SshConfig, self).__init__(cfg_file=cfg_file)
def open(self, filename, *args, **kwargs):
""" Behaves like file.open only, via ssh connection """
return self.tar.extractfile(filename)
tarinfo = self._get_file(filename)
string = tarinfo.tobuf()
print string
return StringIO.StringIO(string)
return self.tar.extractfile(tarinfo)
def add_to_tar(self, path):
"""
"""
print "Taring ", path
command = "find '{path}' -type f | tar -c -T - --to-stdout --absolute-names"
command = command.format(path=path)
print command
stdin, stdout, stderr = self.ssh.exec_command(command, bufsize=50000)
tar = tarfile.open(fileobj=stdout, mode='r|')
if not self.tar:
self.tar = tar
# return
else:
for i in tar:
self.tar.addfile(i)
def is_cached(self, filename):
if not self.tar:
return False
return filename in self.tar.getnames()
def _get_file(self, filename):
""" Download filename and return the TarInfo object """
if filename not in self.tar.getnames():
self.add_to_tar(filename)
return self.tar.getmember(filename)
def get_cfg_files(self):
cfg_files = []
for config_object, config_value in self.maincfg_values:
# Add cfg_file objects to cfg file list
if config_object == "cfg_file":
config_value = self.abspath(config_value)
if self.isfile(config_value):
cfg_files.append(config_value)
elif config_object == "cfg_dir":
absolut_path = self.abspath(config_value)
command = "find '%s' -type f -iname \*cfg" % (absolut_path)
stdin, stdout, stderr = self.ssh.exec_command(command)
raw_filelist = stdout.read().splitlines()
cfg_files += raw_filelist
else:
continue
if not self.is_cached(config_value):
self.add_to_tar(config_value)
return cfg_files
def isfile(self, path):
""" Behaves like os.path.isfile only, via ssh connection """
try:
copy = self._get_file(path)
return copy.isfile()
except IOError:
return False
def isdir(self, path):
""" Behaves like os.path.isdir only, via ssh connection """
try:
file_stat = self.stat(path)
return stat.S_ISDIR(file_stat.st_mode)
except IOError:
return False
def islink(self, path):
""" Behaves like os.path.islink only, via ssh connection """
try:
file_stat = self.stat(path)
return stat.S_ISLNK(file_stat.st_mode)
except IOError:
return False
def readlink(self, path):
""" Behaves like os.readlink only, via ssh connection """
return self.ftp.readlink(path)
def stat(self, *args, **kwargs):
""" Wrapper around os.stat only, via ssh connection """
path = args[0]
if not self.is_cached(path):
self.add_to_tar(path)
if path not in self.tar.getnames():
raise IOError("No such file or directory %s" % path)
member = self.tar.getmember(path)
member.st_mode = member.mode
member.st_mtime = member.mtime
return member
def access(self, *args, **kwargs):
""" Wrapper around os.access only, via ssh connection """
return os.access(*args, **kwargs)
def exists(self, path):
""" Wrapper around os.path.exists only, via ssh connection """
try:
self.ftp.stat(path)
return True
except IOError:
return False
def listdir(self, *args, **kwargs):
""" Wrapper around os.listdir but via ssh connection """
stats = self.ftp.listdir_attr(*args, **kwargs)
for i in stats:
self.cached_stats[args[0] + "/" + i.filename] = i
files = map(lambda x: x.filename, stats)
return files
class MultiSite(Livestatus):
""" Wrapps around multiple Livesatus instances and aggregates the results
of queries.
Example:
>>> m = MultiSite()
>>> m.add_backend(path='/var/spool/nagios/livestatus.socket', name='local')
>>> m.add_backend(path='127.0.0.1:5992', name='remote')
"""
def __init__(self, *args, **kwargs):
super(MultiSite, self).__init__(*args, **kwargs)
self.backends = {}
def add_backend(self, path, name):
""" Add a new livestatus backend to this instance.
Arguments:
path (str): Path to file socket or remote address
name (str): Friendly shortname for this backend
"""
backend = Livestatus(
livestatus_socket_path=path,
nagios_cfg_file=self.nagios_cfg_file,
authuser=self.authuser
)
self.backends[name] = backend
def get_backends(self):
""" Returns a list of mk_livestatus instances
Returns:
list. List of mk_livestatus instances
"""
return self.backends
def get_backend(self, backend_name):
""" Return one specific backend that has previously been added
"""
if not backend_name:
return self.backends.values()[0]
try:
return self.backends[backend_name]
except KeyError:
raise ParserError("No backend found with name='%s'" % backend_name)
def query(self, query, *args, **kwargs):
""" Behaves like mk_livestatus.query() except results are aggregated from multiple backends
Arguments:
backend (str): If specified, fetch only data from this backend (see add_backend())
*args: Passed directly to mk_livestatus.query()
**kwargs: Passed directly to mk_livestatus.query()
"""
result = []
backend = kwargs.pop('backend', None)
# Special hack, if 'Stats' argument was provided to livestatus
# We have to maintain compatibility with old versions of livestatus
# and return single list with all results instead of a list of dicts
doing_stats = any(map(lambda x: x.startswith('Stats:'), args + (query,)))
# Iterate though all backends and run the query
# TODO: Make this multithreaded
for name, backend_instance in self.backends.items():
# Skip if a specific backend was requested and this is not it
if backend and backend != name:
continue
query_result = backend_instance.query(query, *args, **kwargs)
if doing_stats:
result = self._merge_statistics(result, query_result)
else:
for row in query_result:
row['backend'] = name
result.append(row)
return result
def _merge_statistics(self, list1, list2):
""" Merges multiple livestatus results into one result
Arguments:
list1 (list): List of integers
list2 (list): List of integers
Returns:
list. Aggregated results of list1 + list2
Example:
>>> result1 = [1,1,1,1]
>>> result2 = [2,2,2,2]
>>> MultiSite()._merge_statistics(result1, result2)
[3, 3, 3, 3]
"""
if not list1:
return list2
if not list2:
return list1
number_of_columns = len(list1)
result = [0] * number_of_columns
for row in (list1, list2):
for i, column in enumerate(row):
result[i] += column
return result
def get_host(self, host_name, backend=None):
""" Same as Livestatus.get_host() """
backend = self.get_backend(backend)
return backend.get_host(host_name)
def get_service(self, host_name, service_description, backend=None):
""" Same as Livestatus.get_service() """
backend = self.get_backend(backend)
return backend.get_service(host_name, service_description)
def get_contact(self, contact_name, backend=None):
""" Same as Livestatus.get_contact() """
backend = self.get_backend(backend)
return backend.get_contact(contact_name)
def get_contactgroup(self, contactgroup_name, backend=None):
""" Same as Livestatus.get_contact() """
backend = self.get_backend(backend)
return backend.get_contactgroup(contactgroup_name)
def get_servicegroup(self, servicegroup_name, backend=None):
""" Same as Livestatus.get_servicegroup() """
backend = self.get_backend(backend)
return backend.get_servicegroup(servicegroup_name)
def get_hostgroup(self, hostgroup_name, backend=None):
""" Same as Livestatus.get_hostgroup() """
backend = self.get_backend(backend)
return backend.get_hostgroup(hostgroup_name)
class config(Config):
""" This class is here only for backwards compatibility. Use Config instead. """
class mk_livestatus(Livestatus):
""" This class is here only for backwards compatibility. Use Livestatus instead. """
class object_cache(ObjectCache):
""" This class is here only for backwards compatibility. Use ObjectCache instead. """
class status(StatusDat):
""" This class is here only for backwards compatibility. Use StatusDat instead. """
class retention(RetentionDat):
""" This class is here only for backwards compatibility. Use RetentionDat instead. """
if __name__ == '__main__':
import time
start = time.time()
ssh = SshConfig(host='status.adagios.org', username='palli')
ssh.ssh.get_transport().window_size = 3 * 1024 * 1024
ssh.ssh.get_transport().use_compression()
# ssh.add_to_tar('/etc/nagios')
# sys.exit()
# ssh.ssh.exec_command("/bin/ls")
print "before reset"
ssh.parse()
end = time.time()
print "duration=", end - start
bland = ssh.tar.getmember('/etc/nagios/okconfig/hosts/web-servers/bland.is-http.cfg')
print bland.tobuf()
sys.exit(0)
print "ssh up"
ssh_conn = FastTransport(('status.adagios.org', 22))
ssh_conn.connect(username='palli')
ftp = paramiko.SFTPClient.from_transport(ssh_conn)
print "connected" \
""
ssh.ssh = ssh_conn
ssh.ftp = ftp
print "starting parse"
print "done parsing"
| kaji-project/pynag | pynag/Parsers/__init__.py | Python | gpl-2.0 | 129,457 |
<?php
/**
* also_purchased_products.php
*
* @package modules
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: also_purchased_products.php 5369 2006-12-23 10:55:52Z drbyte $
* Modified by Anne (Picaflor-Azul.com) Dover Fine v1.0
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (isset($_GET['products_id']) && SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS > 0 && MIN_DISPLAY_ALSO_PURCHASED > 0) {
$also_purchased_products = $db->Execute(sprintf(SQL_ALSO_PURCHASED, (int)$_GET['products_id'], (int)$_GET['products_id']));
$num_products_ordered = $also_purchased_products->RecordCount();
$row = 0;
$col = 0;
$list_box_contents = array();
$title = '';
// show only when 1 or more and equal to or greater than minimum set in admin
if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED && $num_products_ordered > 0) {
if ($num_products_ordered < SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS) {
$col_width = floor(100/$num_products_ordered);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS);
}
while (!$also_purchased_products->EOF) {
$also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsAlsoPurch"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><h3 class="itemTitle">') . '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a></h3>');
$col ++;
if ($col > (SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS - 1)) {
$col = 0;
$row ++;
}
$also_purchased_products->MoveNext();
}
}
if ($also_purchased_products->RecordCount() > 0 && $also_purchased_products->RecordCount() >= MIN_DISPLAY_ALSO_PURCHASED) {
$title = '<h2 class="centerBoxHeading">' . TEXT_ALSO_PURCHASED_PRODUCTS . '</h2>';
$zc_show_also_purchased = true;
}
}
?> | picaflor-azul/dover_fine | dover_fine/files/includes/modules/dover_fine/also_purchased_products.php | PHP | gpl-2.0 | 2,803 |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Css\PreProcessor\File\FileList;
use Magento\Framework\View\File\FileList\CollateInterface;
/**
* File list collator
*/
class Collator implements CollateInterface
{
/**
* Collate source files
*
* @param \Magento\Framework\View\File[] $files
* @param \Magento\Framework\View\File[] $filesOrigin
* @return \Magento\Framework\View\File[]
*/
public function collate($files, $filesOrigin)
{
foreach ($files as $file) {
$fileId = substr($file->getFileIdentifier(), strpos($file->getFileIdentifier(), '|'));
foreach (array_keys($filesOrigin) as $identifier) {
if (false !== strpos($identifier, $fileId)) {
unset($filesOrigin[$identifier]);
}
}
$filesOrigin[$file->getFileIdentifier()] = $file;
}
return $filesOrigin;
}
}
| kunj1988/Magento2 | lib/internal/Magento/Framework/Css/PreProcessor/File/FileList/Collator.php | PHP | gpl-2.0 | 1,020 |
package org.lastbamboo.common.util.mina.decode.binary;
import org.littleshoot.mina.common.ByteBuffer;
import org.littleshoot.mina.filter.codec.ProtocolDecoderOutput;
import org.littleshoot.util.mina.DecodingState;
/**
* Decoding state for reading a single unsigned int.
*/
public abstract class UnsignedIntDecodingState implements DecodingState
{
public DecodingState decode(final ByteBuffer in,
final ProtocolDecoderOutput out) throws Exception
{
if (in.remaining() > 3)
{
final long decoded = in.getUnsignedInt();
return finishDecode(decoded, out);
}
else
{
return this;
}
}
/**
* Called on the subclass when the unsigned int has been successfully
* decoded.
*
* @param decodedShort The decoded unsigned int.
* @param out The decoder output.
* @return The next state.
* @throws Exception If any unexpected error occurs.
*/
protected abstract DecodingState finishDecode(final long decodedShort,
final ProtocolDecoderOutput out) throws Exception;
}
| adamfisk/littleshoot-client | common/util/mina/src/main/java/org/lastbamboo/common/util/mina/decode/binary/UnsignedIntDecodingState.java | Java | gpl-2.0 | 1,151 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2011-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(R) is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* OpenNMS(R) is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenNMS(R). If not, see:
* http://www.gnu.org/licenses/
*
* For more information contact:
* OpenNMS(R) Licensing <license@opennms.org>
* http://www.opennms.org/
* http://www.opennms.com/
*******************************************************************************/
package org.opennms.netmgt.config.datacollection;
import java.io.Reader;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.exolab.castor.xml.Validator;
import org.opennms.core.xml.ValidateUsing;
/**
* a MIB object
*
* @version $Revision$ $Date$
*/
@XmlRootElement(name="mibObj", namespace="http://xmlns.opennms.org/xsd/config/datacollection")
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(propOrder={"oid", "instance", "alias", "type", "maxval", "minval"})
@ValidateUsing("datacollection-config.xsd")
public class MibObj implements java.io.Serializable {
private static final long serialVersionUID = -7831201614734695268L;
/**
* object identifier
*/
private String m_oid;
/**
* instance identifier. Only valid instance identifier
* values are a positive integer value or the keyword
* "ifIndex" which
* indicates that the ifIndex of the interface is to be
* substituted for
* the instance value for each interface the oid is retrieved
* for.
*/
private String m_instance;
/**
* a human readable name for the object (such as
* "ifOctetsIn"). NOTE: This value is used as the RRD file
* name and
* data source name. RRD only supports data source names up to
* 19 chars
* in length. If the SNMP data collector encounters an alias
* which
* exceeds 19 characters it will be truncated.
*/
private String m_alias;
/**
* SNMP data type SNMP supported types: counter, gauge,
* timeticks, integer, octetstring, string. The SNMP type is
* mapped to
* one of two RRD supported data types COUNTER or GAUGE, or
* the
* string.properties file. The mapping is as follows: SNMP
* counter
* -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring
* ->
* RRD GAUGE; SNMP string -> String properties file
*/
private String m_type;
/**
* Maximum Value. In order to correctly manage counter
* wraps, it is possible to add a maximum value for a
* collection. For
* example, a 32-bit counter would have a max value of
* 4294967295.
*/
private String m_maxval;
/**
* Minimum Value. For completeness, adding the ability
* to use a minimum value.
*/
private String m_minval;
public MibObj() {
super();
}
public MibObj(final String oid, final String instance, final String alias, final String type) {
super();
m_oid = oid;
m_instance = instance;
m_alias = alias;
m_type = type;
}
/**
* Overrides the java.lang.Object.equals method.
*
* @param obj
* @return true if the objects are equal.
*/
@Override()
public boolean equals(final java.lang.Object obj) {
if ( this == obj )
return true;
if (obj instanceof MibObj) {
final MibObj temp = (MibObj)obj;
if (m_oid != null) {
if (temp.m_oid == null) return false;
else if (!(m_oid.equals(temp.m_oid)))
return false;
}
else if (temp.m_oid != null)
return false;
if (m_instance != null) {
if (temp.m_instance == null) return false;
else if (!(m_instance.equals(temp.m_instance)))
return false;
}
else if (temp.m_instance != null)
return false;
if (m_alias != null) {
if (temp.m_alias == null) return false;
else if (!(m_alias.equals(temp.m_alias)))
return false;
}
else if (temp.m_alias != null)
return false;
if (m_type != null) {
if (temp.m_type == null) return false;
else if (!(m_type.equals(temp.m_type)))
return false;
}
else if (temp.m_type != null)
return false;
if (m_maxval != null) {
if (temp.m_maxval == null) return false;
else if (!(m_maxval.equals(temp.m_maxval)))
return false;
}
else if (temp.m_maxval != null)
return false;
if (m_minval != null) {
if (temp.m_minval == null) return false;
else if (!(m_minval.equals(temp.m_minval)))
return false;
}
else if (temp.m_minval != null)
return false;
return true;
}
return false;
}
/**
* Returns the value of field 'alias'. The field 'alias' has
* the following description: a human readable name for the
* object (such as
* "ifOctetsIn"). NOTE: This value is used as the RRD file
* name and
* data source name. RRD only supports data source names up to
* 19 chars
* in length. If the SNMP data collector encounters an alias
* which
* exceeds 19 characters it will be truncated.
*
* @return the value of field 'Alias'.
*/
@XmlAttribute(name="alias", required=true)
public String getAlias() {
return m_alias;
}
/**
* Returns the value of field 'instance'. The field 'instance'
* has the following description: instance identifier. Only
* valid instance identifier
* values are a positive integer value or the keyword
* "ifIndex" which
* indicates that the ifIndex of the interface is to be
* substituted for
* the instance value for each interface the oid is retrieved
* for.
*
* @return the value of field 'Instance'.
*/
@XmlAttribute(name="instance", required=true)
public String getInstance() {
return m_instance;
}
/**
* Returns the value of field 'maxval'. The field 'maxval' has
* the following description: Maximum Value. In order to
* correctly manage counter
* wraps, it is possible to add a maximum value for a
* collection. For
* example, a 32-bit counter would have a max value of
* 4294967295.
*
* @return the value of field 'Maxval'.
*/
@XmlAttribute(name="maxval", required=false)
public String getMaxval() {
return m_maxval;
}
/**
* Returns the value of field 'minval'. The field 'minval' has
* the following description: Minimum Value. For completeness,
* adding the ability
* to use a minimum value.
*
* @return the value of field 'Minval'.
*/
@XmlAttribute(name="minval", required=false)
public String getMinval() {
return m_minval;
}
/**
* Returns the value of field 'oid'. The field 'oid' has the
* following description: object identifier
*
* @return the value of field 'Oid'.
*/
@XmlAttribute(name="oid", required=true)
public String getOid() {
return m_oid;
}
/**
* Returns the value of field 'type'. The field 'type' has the
* following description: SNMP data type SNMP supported types:
* counter, gauge,
* timeticks, integer, octetstring, string. The SNMP type is
* mapped to
* one of two RRD supported data types COUNTER or GAUGE, or
* the
* string.properties file. The mapping is as follows: SNMP
* counter
* -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring
* ->
* RRD GAUGE; SNMP string -> String properties file
*
* @return the value of field 'Type'.
*/
@XmlAttribute(name="type", required=true)
public String getType() {
return m_type;
}
/**
* Overrides the java.lang.Object.hashCode method.
* <p>
* The following steps came from <b>Effective Java Programming
* Language Guide</b> by Joshua Bloch, Chapter 3
*
* @return a hash code value for the object.
*/
public int hashCode() {
int result = 17;
if (m_oid != null) {
result = 37 * result + m_oid.hashCode();
}
if (m_instance != null) {
result = 37 * result + m_instance.hashCode();
}
if (m_alias != null) {
result = 37 * result + m_alias.hashCode();
}
if (m_type != null) {
result = 37 * result + m_type.hashCode();
}
if (m_maxval != null) {
result = 37 * result + m_maxval.hashCode();
}
if (m_minval != null) {
result = 37 * result + m_minval.hashCode();
}
return result;
}
/**
* Method isValid.
*
* @return true if this object is valid according to the schema
*/
@Deprecated
public boolean isValid() {
try {
validate();
} catch (ValidationException vex) {
return false;
}
return true;
}
/**
*
*
* @param out
* @throws MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws ValidationException if this
* object is an invalid instance according to the schema
*/
@Deprecated
public void marshal(final java.io.Writer out)
throws MarshalException, ValidationException {
Marshaller.marshal(this, out);
}
/**
*
*
* @param handler
* @throws java.io.IOException if an IOException occurs during
* marshaling
* @throws ValidationException if this
* object is an invalid instance according to the schema
* @throws MarshalException if object is
* null or if any SAXException is thrown during marshaling
*/
@Deprecated
public void marshal(final org.xml.sax.ContentHandler handler)
throws java.io.IOException, MarshalException, ValidationException {
Marshaller.marshal(this, handler);
}
/**
* Sets the value of field 'alias'. The field 'alias' has the
* following description: a human readable name for the object
* (such as
* "ifOctetsIn"). NOTE: This value is used as the RRD file
* name and
* data source name. RRD only supports data source names up to
* 19 chars
* in length. If the SNMP data collector encounters an alias
* which
* exceeds 19 characters it will be truncated.
*
* @param alias the value of field 'alias'.
*/
public void setAlias(final String alias) {
m_alias = alias.intern();
}
/**
* Sets the value of field 'instance'. The field 'instance' has
* the following description: instance identifier. Only valid
* instance identifier
* values are a positive integer value or the keyword
* "ifIndex" which
* indicates that the ifIndex of the interface is to be
* substituted for
* the instance value for each interface the oid is retrieved
* for.
*
* @param instance the value of field 'instance'.
*/
public void setInstance(final String instance) {
m_instance = instance.intern();
}
/**
* Sets the value of field 'maxval'. The field 'maxval' has the
* following description: Maximum Value. In order to correctly
* manage counter
* wraps, it is possible to add a maximum value for a
* collection. For
* example, a 32-bit counter would have a max value of
* 4294967295.
*
* @param maxval the value of field 'maxval'.
*/
public void setMaxval(final String maxval) {
m_maxval = maxval.intern();
}
/**
* Sets the value of field 'minval'. The field 'minval' has the
* following description: Minimum Value. For completeness,
* adding the ability
* to use a minimum value.
*
* @param minval the value of field 'minval'.
*/
public void setMinval(final String minval) {
m_minval = minval.intern();
}
/**
* Sets the value of field 'oid'. The field 'oid' has the
* following description: object identifier
*
* @param oid the value of field 'oid'.
*/
public void setOid(final String oid) {
m_oid = oid.intern();
}
/**
* Sets the value of field 'type'. The field 'type' has the
* following description: SNMP data type SNMP supported types:
* counter, gauge,
* timeticks, integer, octetstring, string. The SNMP type is
* mapped to
* one of two RRD supported data types COUNTER or GAUGE, or
* the
* string.properties file. The mapping is as follows: SNMP
* counter
* -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring
* ->
* RRD GAUGE; SNMP string -> String properties file
*
* @param type the value of field 'type'.
*/
public void setType(final String type) {
m_type = type.intern();
}
/**
* Method unmarshal.
*
* @param reader
* @throws MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws ValidationException if this
* object is an invalid instance according to the schema
* @return the unmarshaled
* MibObj
*/
@Deprecated
public static MibObj unmarshal(final Reader reader) throws MarshalException, ValidationException {
return (MibObj)Unmarshaller.unmarshal(MibObj.class, reader);
}
/**
*
*
* @throws ValidationException if this
* object is an invalid instance according to the schema
*/
public void validate() throws ValidationException {
Validator validator = new Validator();
validator.validate(this);
}
}
| vishwaAbhinav/OpenNMS | opennms-config/src/main/java/org/opennms/netmgt/config/datacollection/MibObj.java | Java | gpl-2.0 | 15,302 |
<?php
/**
* @author Antonio Durán Terrés
* @package Joomdle
* @license GNU/GPL
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Import Joomla! libraries
jimport( 'joomla.application.component.view');
require_once( JPATH_COMPONENT.'/helpers/content.php' );
require_once( JPATH_COMPONENT.'/helpers/profiletypes.php' );
class JoomdleViewCustomprofiletypes extends JViewLegacy {
protected $items;
protected $pagination;
protected $state;
function display($tpl = null) {
$mainframe = JFactory::getApplication();
$params = JComponentHelper::getParams( 'com_joomdle' );
$this->sidebar = JHtmlSidebar::render();
if (!$params->get( 'use_profiletypes' ))
{
JToolbarHelper::title(JText::_('COM_JOOMDLE_VIEW_PROFILETYPES_TITLE'), 'customprofiletypes');
$this->message = JText::_('COM_JOOMDLE_PROFILE_TYPES_INTEGRATION_NOT_ENABLED');
$tpl = "disabled";
parent::display($tpl);
return;
}
/* List of profiletypes */
$this->profiletypes = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->addToolbar();
parent::display($tpl);
}
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_JOOMDLE_VIEW_PROFILETYPES_TITLE'), 'customprofiletypes');
JToolBarHelper::custom( 'create_profiletype_on_moodle', 'publish', 'publish', 'COM_JOOMDLE_CREATE_ON_MOODLE', true, false );
JToolBarHelper::custom( 'dont_create_profiletype_on_moodle', 'unpublish', 'unpublish', 'COM_JOOMDLE_NOT_CREATE_ON_MOODLE', true, false );
JHtmlSidebar::setAction('index.php?option=com_joomdle&view=customprofiletypes');
JHtmlSidebar::addFilter(
JText::_('COM_JOOMDLE_SELECT_STATE'),
'filter_state',
JHtml::_('select.options', JoomdleHelperProfiletypes::getStateOptions(), 'value', 'text', $this->state->get('filter.state'))
);
}
}
?>
| LauraRey/oacfdc | administrator/components/com_joomdle/views/customprofiletypes/view.html.php | PHP | gpl-2.0 | 2,060 |
/***************************************************************************
* Copyright 2007 Robert Gruber <rgruber@users.sourceforge.net> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "test_cvs.h"
#include <QtTest/QtTest>
#include <QUrl>
#include <KIO/DeleteJob>
#include <cvsjob.h>
#include <cvsproxy.h>
#include <tests/autotestshell.h>
#include <tests/testcore.h>
#define CVSTEST_BASEDIR "/tmp/kdevcvs_testdir/"
#define CVS_REPO CVSTEST_BASEDIR "repo/"
#define CVS_IMPORT CVSTEST_BASEDIR "import/"
#define CVS_TESTFILE_NAME "testfile"
#define CVS_CHECKOUT CVSTEST_BASEDIR "working/"
// we need to add this since it is declared in cvsplugin.cpp which we don't compile here
Q_LOGGING_CATEGORY(PLUGIN_CVS, "kdevplatform.plugins.cvs")
void TestCvs::initTestCase()
{
KDevelop::AutoTestShell::init();
KDevelop::TestCore::initialize(KDevelop::Core::NoUi);
m_proxy = new CvsProxy;
// If the basedir for this cvs test exists from a
// previous run; remove it...
cleanup();
}
void TestCvs::cleanupTestCase()
{
KDevelop::TestCore::shutdown();
delete m_proxy;
}
void TestCvs::init()
{
// Now create the basic directory structure
QDir tmpdir("/tmp");
tmpdir.mkdir(CVSTEST_BASEDIR);
tmpdir.mkdir(CVS_REPO);
tmpdir.mkdir(CVS_IMPORT);
}
void TestCvs::cleanup()
{
if ( QFileInfo::exists(CVSTEST_BASEDIR) )
KIO::del(QUrl::fromLocalFile(QString(CVSTEST_BASEDIR)))->exec();
}
void TestCvs::repoInit()
{
// make job that creates the local repository
CvsJob* j = new CvsJob(0);
QVERIFY( j );
j->setDirectory(CVSTEST_BASEDIR);
*j << "cvs" << "-d" << CVS_REPO << "init";
// try to start the job
QVERIFY( j->exec() );
//check if the CVSROOT directory in the new local repository exists now
QVERIFY( QFileInfo::exists(QString(CVS_REPO "/CVSROOT")) );
}
void TestCvs::importTestData()
{
// create a file so we don't import an empty dir
QFile f(CVS_IMPORT "" CVS_TESTFILE_NAME);
if(f.open(QIODevice::WriteOnly)) {
QTextStream input( &f );
input << "HELLO WORLD";
}
f.flush();
CvsJob* j = m_proxy->import(QUrl::fromLocalFile(CVS_IMPORT), CVS_REPO,
"test", "vendor", "release",
"test import message");
QVERIFY( j );
// try to start the job
QVERIFY( j->exec() );
//check if the directory has been added to the repository
QString testdir(CVS_REPO "/test");
QVERIFY( QFileInfo::exists(testdir) );
//check if the file has been added to the repository
QString testfile(CVS_REPO "/test/" CVS_TESTFILE_NAME ",v");
QVERIFY( QFileInfo::exists(testfile) );
}
void TestCvs::checkoutTestData()
{
CvsJob* j = m_proxy->checkout(QUrl::fromLocalFile(CVS_CHECKOUT), CVS_REPO, "test");
QVERIFY( j );
// try to start the job
QVERIFY( j->exec() );
//check if the directory is there
QString testdir(CVS_CHECKOUT);
QVERIFY( QFileInfo::exists(testdir) );
//check if the file is there
QString testfile(CVS_CHECKOUT "" CVS_TESTFILE_NAME);
QVERIFY( QFileInfo::exists(testfile) );
}
void TestCvs::testInitAndImport()
{
repoInit();
importTestData();
checkoutTestData();
}
void TestCvs::testLogFolder()
{
repoInit();
importTestData();
checkoutTestData();
QString testdir(CVS_CHECKOUT);
KDevelop::VcsRevision rev = KDevelop::VcsRevision::createSpecialRevision(KDevelop::VcsRevision::Head);
CvsJob* job = m_proxy->log(QUrl::fromLocalFile(testdir), rev);
QVERIFY(job);
}
QTEST_MAIN(TestCvs)
| mali/kdevplatform | plugins/cvs/tests/test_cvs.cpp | C++ | gpl-2.0 | 4,139 |
#!/usr/bin/env python
import unittest
from werkzeug.exceptions import NotFound, Forbidden
from tests.logic_t.layer.LogicLayer.util import generate_ll
class TaskPrioritizeBeforeLogicLayerTest(unittest.TestCase):
def setUp(self):
self.ll = generate_ll()
self.pl = self.ll.pl
def test_add_prioritize_before_adds_prioritize_before(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# when
results = self.ll.do_add_prioritize_before_to_task(t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_if_already_added_still_succeeds(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
t1.prioritize_before.append(t2)
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# when
results = self.ll.do_add_prioritize_before_to_task(t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_null_ids_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_before_to_task,
None, t2.id, user)
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_before_to_task,
t1.id, None, user)
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_before_to_task,
None, None, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
def test_null_user_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_before_to_task,
t1.id, t2.id, None)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
def test_user_not_authorized_for_task_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# expect
self.assertRaises(Forbidden, self.ll.do_add_prioritize_before_to_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
def test_user_not_authorized_for_prioritize_before_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# expect
self.assertRaises(Forbidden, self.ll.do_add_prioritize_before_to_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
def test_task_not_found_raises_exception(self):
# given
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNone(self.pl.get_task(t2.id + 1))
# expect
self.assertRaises(NotFound, self.ll.do_add_prioritize_before_to_task,
t2.id + 1, t2.id, user)
# then
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNone(self.pl.get_task(t2.id+1))
def test_prioritize_before_not_found_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertIsNone(self.pl.get_task(t1.id + 1))
# expect
self.assertRaises(NotFound, self.ll.do_add_prioritize_before_to_task,
t1.id, t1.id + 1, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertIsNone(self.pl.get_task(t1.id + 1))
def test_remove_prioritize_before_removes_prioritize_before(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_before.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# when
results = self.ll.do_remove_prioritize_before_from_task(t1.id, t2.id,
user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_if_prioritize_before_already_removed_still_succeeds(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
# when
results = self.ll.do_remove_prioritize_before_from_task(t1.id, t2.id,
user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_remove_prioritize_before_with_null_ids_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_before.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_before_from_task,
None, t2.id, user)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_before_from_task,
t1.id, None, user)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_before_from_task,
None, None, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
def test_remove_prioritize_before_with_null_user_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_before.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_before_from_task,
t1.id, t2.id, None)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
def test_remove_prioritize_before_user_unauthd_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
t1.prioritize_before.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# note that this situation shouldn't happen anyways. a task shouldn't
# be prioritized before another task unless both share a common set of
# one or more authorized users
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# expect
self.assertRaises(Forbidden,
self.ll.do_remove_prioritize_before_from_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
def test_remove_user_not_authd_for_prioritizebefore_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t1.prioritize_before.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# note that this situation shouldn't happen anyways. a task shouldn't
# be prioritized before another task unless both share a common set of
# one or more authorized users
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
# expect
self.assertRaises(Forbidden,
self.ll.do_remove_prioritize_before_from_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(1, len(t1.prioritize_before))
self.assertEqual(1, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertTrue(t2 in t1.prioritize_before)
self.assertTrue(t1 in t2.prioritize_after)
def test_remove_prioritize_before_task_not_found_raises_exception(self):
# given
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNone(self.pl.get_task(t2.id + 1))
# expect
self.assertRaises(NotFound,
self.ll.do_remove_prioritize_before_from_task,
t2.id + 1, t2.id, user)
# then
self.assertEqual(0, len(t2.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertIsNone(self.pl.get_task(t2.id+1))
def test_remove_prioritize_before_when_not_found_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertIsNone(self.pl.get_task(t1.id + 1))
# expect
self.assertRaises(NotFound,
self.ll.do_remove_prioritize_before_from_task,
t1.id, t1.id + 1, user)
# then
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t1.prioritize_before))
self.assertIsNone(self.pl.get_task(t1.id + 1))
class TaskPrioritizeAfterLogicLayerTest(unittest.TestCase):
def setUp(self):
self.ll = generate_ll()
self.pl = self.ll.pl
def test_add_prioritize_after_adds_prioritize_after(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# when
results = self.ll.do_add_prioritize_after_to_task(t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_if_already_added_still_succeeds(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
t1.prioritize_after.append(t2)
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# when
results = self.ll.do_add_prioritize_after_to_task(t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_null_ids_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_after_to_task,
None, t2.id, user)
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_after_to_task,
t1.id, None, user)
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_after_to_task,
None, None, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
def test_null_user_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# expect
self.assertRaises(ValueError, self.ll.do_add_prioritize_after_to_task,
t1.id, t2.id, None)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
def test_user_not_authorized_for_task_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# expect
self.assertRaises(Forbidden, self.ll.do_add_prioritize_after_to_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
def test_user_not_authorized_for_prioritize_after_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# expect
self.assertRaises(Forbidden, self.ll.do_add_prioritize_after_to_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
def test_task_not_found_raises_exception(self):
# given
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNone(self.pl.get_task(t2.id + 1))
# expect
self.assertRaises(NotFound, self.ll.do_add_prioritize_after_to_task,
t2.id + 1, t2.id, user)
# then
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNone(self.pl.get_task(t2.id+1))
def test_prioritize_after_not_found_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertIsNone(self.pl.get_task(t1.id + 1))
# expect
self.assertRaises(NotFound, self.ll.do_add_prioritize_after_to_task,
t1.id, t1.id + 1, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertIsNone(self.pl.get_task(t1.id + 1))
def test_remove_prioritize_after_removes_prioritize_after(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_after.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# when
results = self.ll.do_remove_prioritize_after_from_task(t1.id, t2.id,
user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_if_prioritize_after_already_removed_still_succeeds(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
# when
results = self.ll.do_remove_prioritize_after_from_task(t1.id, t2.id,
user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNotNone(results)
self.assertEqual([t1, t2], list(results))
def test_remove_prioritize_after_with_null_ids_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_after.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_after_from_task,
None, t2.id, user)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_after_from_task,
t1.id, None, user)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_after_from_task,
None, None, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
def test_remove_prioritize_after_with_null_user_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t2.users.append(user)
t1.prioritize_after.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# expect
self.assertRaises(ValueError,
self.ll.do_remove_prioritize_after_from_task,
t1.id, t2.id, None)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
def test_rem_prioritize_after_user_unauthd_for_task_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
t1.prioritize_after.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# note that this situation shouldn't happen anyways. a task shouldn't
# be prioritized before another task unless both share a common set of
# one or more authorized users
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# expect
self.assertRaises(Forbidden,
self.ll.do_remove_prioritize_after_from_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
def test_remove_user_not_authd_for_prioritize_after_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
t1.prioritize_after.append(t2)
self.pl.add(t1)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# note that this situation shouldn't happen anyways. a task shouldn't
# be prioritized before another task unless both share a common set of
# one or more authorized users
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
# expect
self.assertRaises(Forbidden,
self.ll.do_remove_prioritize_after_from_task,
t1.id, t2.id, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(1, len(t1.prioritize_after))
self.assertEqual(1, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertTrue(t2 in t1.prioritize_after)
self.assertTrue(t1 in t2.prioritize_before)
def test_remove_prioritize_after_task_not_found_raises_exception(self):
# given
t2 = self.pl.create_task('t2')
user = self.pl.create_user('name@example.com')
t2.users.append(user)
self.pl.add(t2)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNone(self.pl.get_task(t2.id + 1))
# expect
self.assertRaises(NotFound,
self.ll.do_remove_prioritize_after_from_task,
t2.id + 1, t2.id, user)
# then
self.assertEqual(0, len(t2.prioritize_before))
self.assertEqual(0, len(t2.prioritize_after))
self.assertIsNone(self.pl.get_task(t2.id+1))
def test_remove_prioritize_after_when_not_found_raises_exception(self):
# given
t1 = self.pl.create_task('t1')
user = self.pl.create_user('name@example.com')
t1.users.append(user)
self.pl.add(t1)
self.pl.add(user)
self.pl.commit()
# precondition
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertIsNone(self.pl.get_task(t1.id + 1))
# expect
self.assertRaises(NotFound,
self.ll.do_remove_prioritize_after_from_task,
t1.id, t1.id + 1, user)
# then
self.assertEqual(0, len(t1.prioritize_before))
self.assertEqual(0, len(t1.prioritize_after))
self.assertIsNone(self.pl.get_task(t1.id + 1))
| izrik/tudor | tests/logic_t/layer/LogicLayer/test_task_prioritize.py | Python | gpl-2.0 | 36,403 |
<?php
/**
* @file
* Default theme implementation to display a single Drupal page.
*
* The doctype, html, head and body tags are not in this template. Instead they
* can be found in the html.tpl.php template in this directory.
*
* Available variables:
*
* General utility variables:
* - $base_path: The base URL path of the Drupal installation. At the very
* least, this will always default to /.
* - $directory: The directory the template is located in, e.g. modules/system
* or themes/bartik.
* - $is_front: TRUE if the current page is the front page.
* - $logged_in: TRUE if the user is registered and signed in.
* - $is_admin: TRUE if the user has permission to access administration pages.
*
* Site identity:
* - $front_page: The URL of the front page. Use this instead of $base_path,
* when linking to the front page. This includes the language domain or
* prefix.
* - $logo: The path to the logo image, as defined in theme configuration.
* - $site_name: The name of the site, empty when display has been disabled
* in theme settings.
* - $site_slogan: The slogan of the site, empty when display has been disabled
* in theme settings.
*
* Navigation:
* - $main_menu (array): An array containing the Main menu links for the
* site, if they have been configured.
* - $secondary_menu (array): An array containing the Secondary menu links for
* the site, if they have been configured.
* - $breadcrumb: The breadcrumb trail for the current page.
*
* Page content (in order of occurrence in the default page.tpl.php):
* - $title_prefix (array): An array containing additional output populated by
* modules, intended to be displayed in front of the main title tag that
* appears in the template.
* - $title: The page title, for use in the actual HTML content.
* - $title_suffix (array): An array containing additional output populated by
* modules, intended to be displayed after the main title tag that appears in
* the template.
* - $messages: HTML for status and error messages. Should be displayed
* prominently.
* - $tabs (array): Tabs linking to any sub-pages beneath the current page
* (e.g., the view and edit tabs when displaying a node).
* - $action_links (array): Actions local to the page, such as 'Add menu' on the
* menu administration interface.
* - $feed_icons: A string of all feed icons for the current page.
* - $node: The node object, if there is an automatically-loaded node
* associated with the page, and the node ID is the second argument
* in the page's path (e.g. node/12345 and node/12345/revisions, but not
* comment/reply/12345).
*
* Regions:
* - $page['help']: Dynamic help text, mostly for admin pages.
* - $page['highlighted']: Items for the highlighted content region.
* - $page['content']: The main content of the current page.
* - $page['sidebar_first']: Items for the first sidebar.
* - $page['sidebar_second']: Items for the second sidebar.
* - $page['header']: Items for the header region.
* - $page['footer']: Items for the footer region.
*
* @see template_preprocess()
* @see template_preprocess_page()
* @see template_process()
* @see html.tpl.php
*
* @ingroup themeable
*/
?>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<?php
$path = "";
if(theme_get_setting('default_logo', 'md_leaders')) {
$path = $logo;
}else{
if(theme_get_setting('logo_normal_upload','md_leaders')) {
$file_upload = theme_get_setting('logo_normal_upload','md_leaders');
if($file_upload['fid'] != 0) {
$file = file_load($file_upload['fid']);
if($file) {
$path = file_create_url($file->uri);
}
} else {
$path = '';
}
}
}
?>
<div id="header" class="color_section">
<div class="container"><div class="row">
<a class="navbar-brand" href="<?php print $front_page; ?>" title="<?php print $site_name; ?>">
<img src="<?php print $path; ?>" alt="<?php print $site_name; ?>" />
</a>
<?php if (theme_get_setting('toggle_name') || theme_get_setting('toggle_slogan')): ?>
<div id="name-and-slogan">
<?php if (theme_get_setting('toggle_name')): ?>
<?php if ($title): ?>
<div id="site-name"><strong>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
</strong></div>
<?php else: /* Use h1 when the content title is empty */ ?>
<h1 id="site-name">
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
</h1>
<?php endif; ?>
<?php endif; ?>
<?php if (theme_get_setting('toggle_slogan')): ?>
<div id="site-slogan"><?php print $site_slogan; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php print render($page['header']); ?>
<?php print render($page['menu']); ?>
</div></div>
</div>
<?php print render($page['mainslider']); ?>
<?php print $messages; ?>
<!--<section class="darkgrey_section" id="abovecontent">
<div class="container"><div class="row">
<div class="block col-sm-12">
print $breadcrumb;
</div>
</div></div>
</section>-->
<section class="grey_section" id="middle">
<div class="container">
<?php print render($page['content']); ?>
</div>
</section>
<section class="light_section" id="copyright">
<div class="container">
<div class="row to_animate_child_blocks">
<div class="col-sm-12 text-center"><a href="/terms-conditions">Terms & Conditions</a></div>
</div>
</div>
</section>
<?php if (isset($preload)): ?>
<div class="preloader">
<div class="preloaderimg"></div>
</div>
<?php endif; ?>
| toniabhi/hclcausefight | sites/all/themes/md_leaders/templates/page--comment--reply.tpl.php | PHP | gpl-2.0 | 6,117 |
<?php
/**
* @package Surveyforce
* @version 1.1-modified
* @copyright JooPlce Team, 臺北市政府資訊局, Copyright (C) 2016. All rights reserved.
* @license GPL-2.0+
* @author JooPlace Team, 臺北市政府資訊局- http://doit.gov.taipei/
*/
defined('_JEXEC') or die('Restricted access');
/**
* Surveyforce Component Controller
*/
class SurveyforceController extends JControllerLegacy {
/**
* display task
*
* @return void
*/
public function __construct($config = array()){
parent::__construct($config);
}
public function display($cachable = false, $urlparams = array()){
$app = JFactory::getApplication();
$view = JFactory::getApplication()->input->getCmd('view', 'surveys');
switch($view){
case "surveys":
case "survey":
case "questions":
case "question":
case "review":
case "import":
case "result":
case "resultnote":
case "export":
case "getip":
case "autocheck":
case "print":
case "lottery":
case "addend":
case "analyzes":
case "analyze":
case "voted":
break;
default:
$app->redirect("index.php?option=com_surveyforce&view=surveys"); // 直接進入議題管理
}
JFactory::getApplication()->input->set('view', $view);
parent::display($cachable);
}
public function get_options(){
if(!class_exists('SfAppPlugins')){
include_once JPATH_COMPONENT_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'app_plugin.php';
$appsLib = SfAppPlugins::getInstance();
$appsLib->loadApplications();
}
$type = SurveyforceHelper::getQuestionType(JFactory::getApplication()->input->getCmd('sf_qtype'));
$data['quest_type'] = $type->sf_plg_name;
$data['quest_id'] = JFactory::getApplication()->input->get('quest_id');
$data['sf_qtype'] = JFactory::getApplication()->input->getCmd('sf_qtype');
$appsLib->triggerEvent('onGetAdminQuestionOptions', $data);
}
// 投票測試
public function testvote(){
$db = JFactory::getDBO();
$config = JFactory::getConfig();
$testsite_link = $config->get('testsite_link', false);
$app = JFactory::getApplication();
$survey_id = $app->input->getInt('test_survey_id', 0);
$api_request_url = $config->get('testsite_link', '') . "api/server_survey.php";
// 先刪除資料
$api_request_parameters = array('survey_id' => $survey_id);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$api_request_url .= '?' . http_build_query($api_request_parameters);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
curl_setopt($ch, CURLOPT_URL, $api_request_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$api_response = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$message = curl_error($ch);
curl_close($ch);
if($code == 200){
$result_data = json_decode($api_response);
if($result_data->status == 0){
echo "無法匯入資料,請聯絡系統管理員。";
JHtml::_('utility.recordLog', "api_log.php", "投票測試無法刪除資料", JLog::ERROR);
jexit();
}
}else{ // 無法連線API
echo "無法連線API,請聯絡系統管理員。";
JHtml::_('utility.recordLog', "api_log.php", sprintf("Url:%s, Code:%d, Msg:%s", $api_request_url, $code, $message), JLog::ERROR);
jexit();
}
// 再新增資料
// 依序取得議題、題目、選項的資料
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__survey_force_survs_release');
$query->where('id = ' . $db->quote($survey_id));
$db->setQuery($query);
$survey_row = $db->loadAssoc();
// 取得題目
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__survey_force_quests');
$query->where('sf_survey = ' . $db->quote($survey_id));
$db->setQuery($query);
$question_rows = $db->loadAssocList();
unset($options_rows);
$options_rows = array();
unset($sub_options_rows);
$sub_options_rows = array();
unset($cats_rows);
$cats_rows = array();
if($question_rows){
$question_ids = array();
foreach($question_rows as $question_row){
$question_ids[] = $question_row["id"];
}
// 取得選項
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__survey_force_fields');
$query->where('quest_id IN (' . implode(",", $question_ids) . ')');
$db->setQuery($query);
$options_rows = $db->loadAssocList();
// 取得子選項
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__survey_force_sub_fields');
$query->where('quest_id IN (' . implode(",", $question_ids) . ')');
$db->setQuery($query);
$sub_options_rows = $db->loadAssocList();
// 取得分類
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__survey_force_quests_cat');
$query->where('question_id IN (' . implode(",", $question_ids) . ')');
$db->setQuery($query);
$cats_rows = $db->loadAssocList();
}
// assign_summary
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__assign_summary');
$query->where('survey_id = ' . $db->quote($survey_id));
$db->setQuery($query);
$assign_summary_rows = $db->loadAssocList();
// 寫至測試站台中,再將網頁導向測試站台
$api_request_parameters = array('survey_id' => $survey_id, 'survey_row' => json_encode($survey_row), 'question_rows' => json_encode($question_rows), 'options_rows' => json_encode($options_rows), 'sub_options_rows' => json_encode($sub_options_rows), 'assign_summary_rows' => json_encode($assign_summary_rows), 'cats_rows' => json_encode($cats_rows));
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($api_request_parameters));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
curl_setopt($ch, CURLOPT_URL, $api_request_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$api_response = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$message = curl_error($ch);
curl_close($ch);
if($code == 200){
$result_data = json_decode($api_response);
if($result_data->status == 0){
echo "無法匯入議題資料,請聯絡系統管理員。";
JHtml::_('utility.recordLog', "api_log.php", "投票測試無法新增資料", JLog::ERROR);
jexit();
}else{
header("Location:" . $testsite_link . "index.php?option=com_surveyforce&view=intro&Itemid=120&sid=" . $survey_id);
jexit();
}
}else{ // 無法連線API
echo "無法連線API,請聯絡系統管理員。";
JHtml::_('utility.recordLog', "api_log.php", sprintf("Url:%s, Code:%d, Msg:%s", $api_request_url, $code, $message), JLog::ERROR);
jexit();
}
jexit();
}
}
| taipeicity/i-voting | administrator/components/com_surveyforce/controller.php | PHP | gpl-2.0 | 8,229 |
package org.mo.com.io;
public class FLinkInput
{
}
| favedit/MoPlatform | mo-1-common/src/lang-java/org/mo/com/io/FLinkInput.java | Java | gpl-2.0 | 52 |
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
require_once CLASS_EX_REALDIR . 'page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Ex.php';
/**
* ランキング のページクラス.
*
* @package Page
* @author Designup.jp
* @version 1.1
*/
class LC_Page_FrontParts_Bloc_BcRanking extends LC_Page_FrontParts_Bloc_Ex
{
/**
* Page を初期化する.
*
* @return void
*/
public function init()
{
parent::init();
}
/**
* Page のプロセス.
*
* @return void
*/
public function process()
{
$this->action();
$this->sendResponse();
}
/**
* Page のアクション.
*
* @return void
*/
public function action()
{
// 基本情報を渡す
// $objSiteInfo = SC_Helper_DB_Ex::sfGetBasisData();
// $this->arrInfo = $objSiteInfo->data;
//売上ランキング取得
$this->arrBestProducts = $this->lfGetRanking();
//売上ランキング取得、8位まで
//$this->arrBestProducts8 = $this->lfGetRanking(8);
//商品レビュー情報を取得
//$this->arrReviewList = $this->getReviewList();
//メーカー情報を取得
//$this->arrMakerList = $this->getMakerList();
}
/**
* おすすめ商品検索.
*
* @return array $arrBestProducts 検索結果配列
*/
public function lfGetRanking($getNumber = 10)
{
// $objRecommend = new SC_Helper_BestProducts_Ex();
// 売上ランキング取得、デフォルトは5位まで取得
$arrRanking = $this->getList($getNumber);
$response = array();
if (count($arrRanking) > 0) {
// 商品一覧を取得
$objQuery =& SC_Query_Ex::getSingletonInstance();
$objProduct = new SC_Product_Ex();
// where条件生成&セット
$arrProductId = array();
foreach ($arrRanking as $key => $val) {
$arrProductId[] = $val['product_id'];
}
//$arrProducts = $objProduct->getListByProductIds($objQuery, $arrProductId);
$arrProducts = $objProduct->getListByProductIdsWithAgencyCode($objQuery, $arrProductId);
// 税込金額を設定する
SC_Product_Ex::setIncTaxToProducts($arrProducts);
// 売上ランキング情報にマージ
$i=0;
foreach ($arrRanking as $key => $value) {
if (isset($arrProducts[$value['product_id']])) {
$product = $arrProducts[$value['product_id']];
if ($product['status'] == 1 && (!NOSTOCK_HIDDEN || ($product['stock_max'] >= 1 || $product['stock_unlimited_max'] == 1))) {
if ($i == $getNumber ) {
break;
}
$response[] = array_merge($value, $arrProducts[$value['product_id']]);
$i++;
}
} else {
// 削除済み商品は除外
unset($arrRanking[$key]);
}
}
}
return $response;
}
/**
* 商品情報を取得
*
* @return array $arrNewProducts 検索結果配列
*/
public function getList($dispNumber = 0, $pageNumber = 0, $has_deleted = false)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
$col = 'OD.product_id,OD.price,SUM(OD.quantity),SUM(OD.quantity)*OD.price';
$table = 'dtb_order as O, dtb_order_detail as OD';
$where = 'O.order_id = OD.order_id AND O.del_flg = 0';
$objQuery->setGroupBy('OD.product_id');
$objQuery->setOrder('SUM(OD.quantity) DESC');
/*
if ($dispNumber > 0) {
if ($pageNumber > 0) {
$objQuery->setLimitOffset($dispNumber, (($pageNumber - 1) * $dispNumber));
} else {
$objQuery->setLimit($dispNumber);
}
}
*/
$arrRet = $objQuery->select($col, $table, $where);
// データの中身の表示テスト
// echo "<pre>";
// var_dump($arrRet);
// echo "</pre>";
return $arrRet;
}
/*
public function getList($dispNumber = 0, $pageNumber = 0, $has_deleted = false)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
$col = 'product_id,price,SUM(quantity),SUM(quantity)*price';
$table = 'dtb_order_detail';
$where = '';
$objQuery->setGroupBy('product_id,price');
$objQuery->setOrder('SUM(quantity)*price DESC');
if ($dispNumber > 0) {
if ($pageNumber > 0) {
$objQuery->setLimitOffset($dispNumber, (($pageNumber - 1) * $dispNumber));
} else {
$objQuery->setLimit($dispNumber);
}
}
$arrRet = $objQuery->select($col, $table, $where);
// データの中身の表示テスト
// echo "<pre>";
// var_dump($arrRet);
// echo "</pre>";
return $arrRet;
}
*/
/**
* 商品のレビューと商品情報を結合した情報を取得
* 商品ごとに集計、小数点以下切り捨て
*
* @return array $arrReviewList 検索結果配列
*/
public function getReviewList($dispNumber = 0, $pageNumber = 0, $has_deleted = false)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
$col = 'product_id,TRUNC(AVG(recommend_level),0) AS recommend_level,COUNT(*) AS recommend_count';
$table = 'dtb_review';
$where = '';
$objQuery->setGroupBy('product_id');
$objQuery->setOrder('product_id DESC');
if ($dispNumber > 0) {
if ($pageNumber > 0) {
$objQuery->setLimitOffset($dispNumber, (($pageNumber - 1) * $dispNumber));
} else {
$objQuery->setLimit($dispNumber);
}
}
$arrRet = $objQuery->select($col, $table, $where);
// データの中身の表示テスト
// echo "<pre>";
// var_dump($arrRet);
// echo "</pre>";
return $arrRet;
}
/**
* メーカー情報の取得
*
* @return array $arrMakerList 検索結果配列
*/
public function getMakerList($dispNumber = 0, $pageNumber = 0, $has_deleted = false)
{
$objQuery =& SC_Query_Ex::getSingletonInstance();
$col = '*';
$table = 'dtb_maker';
$where = '';
if ($dispNumber > 0) {
if ($pageNumber > 0) {
$objQuery->setLimitOffset($dispNumber, (($pageNumber - 1) * $dispNumber));
} else {
$objQuery->setLimit($dispNumber);
}
}
$arrRet = $objQuery->select($col, $table, $where);
// データの中身の表示テスト
// echo "<pre>";
// var_dump($arrRet);
// echo "</pre>";
return $arrRet;
}
}
| kazuma-fujita/taheebo-ec | data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_BcRanking.php | PHP | gpl-2.0 | 7,846 |
/*
Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009 Mark Aylett <mark.aylett@gmail.com>
This file is part of Aug written by Mark Aylett.
Aug is released under the GPL with the additional exemption that compiling,
linking, and/or using OpenSSL is allowed.
Aug is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
Aug is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef AUGUTILPP_LOG_HPP
#define AUGUTILPP_LOG_HPP
#include "augutilpp/config.hpp"
#include "augctxpp/exception.hpp"
#include "augutil/log.h"
#include "augctx/defs.h" // AUG_MAXLINE
#include <string>
namespace aug {
inline void
vformatlog(char* buf, size_t& n, clockref clock, unsigned level,
const char* format, va_list args)
{
verify(aug_vformatlog(buf, &n, clock.get(), level, format, args));
}
inline void
formatlog(char* buf, size_t& n, clockref clock, unsigned level,
const char* format, ...)
{
va_list args;
va_start(args, format);
aug_result result(aug_vformatlog(buf, &n, clock.get(), level, format,
args));
va_end(args);
verify(result);
}
inline std::string
vformatlog(clockref clock, unsigned level, const char* format,
va_list args)
{
char buf[AUG_MAXLINE];
size_t n(sizeof(buf));
vformatlog(buf, n, clock, level, format, args);
return std::string(buf, n);
}
inline std::string
formatlog(clockref clock, unsigned level, const char* format, ...)
{
char buf[AUG_MAXLINE];
size_t n(sizeof(buf));
va_list args;
va_start(args, format);
aug_result result(aug_vformatlog(buf, &n, clock.get(), level, format,
args));
va_end(args);
verify(result);
return std::string(buf, n);
}
inline logptr
createdaemonlog(mpoolref mpool, clockref clock)
{
return object_attach<aug_log>
(aug_createdaemonlog(mpool.get(), clock.get()));
}
inline void
setdaemonlog(ctxref ctx)
{
verify(aug_setdaemonlog(ctx.get()));
}
}
#endif // AUGUTILPP_LOG_HPP
| marayl/aug | src/cpp/augutilpp/log.hpp | C++ | gpl-2.0 | 2,797 |
<?php
/**
* Item Controller
*
* @package ReReplacer
* @version 5.4.4
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2012 NoNumber All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
jimport('joomla.application.component.controllerform');
/**
* Item Controller
*/
class ReReplacerControllerItem extends JControllerForm
{
/**
* @var string The prefix to use with controller messages.
*/
protected $text_prefix = 'NN';
// Parent class access checks are sufficient for this controller.
}
| cristhian-fe/EidonKaires | administrator/components/com_rereplacer/controllers/item.php | PHP | gpl-2.0 | 682 |
/*
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "c1/c1_Compilation.hpp"
#include "c1/c1_Instruction.hpp"
#include "c1/c1_InstructionPrinter.hpp"
#include "c1/c1_LIRAssembler.hpp"
#include "c1/c1_MacroAssembler.hpp"
#include "c1/c1_ValueStack.hpp"
#include "ci/ciInstance.hpp"
#include "runtime/os.hpp"
void LIR_Assembler::patching_epilog(PatchingStub* patch, LIR_PatchCode patch_code, Register obj, CodeEmitInfo* info) {
// We must have enough patching space so that call can be inserted.
// We cannot use fat nops here, since the concurrent code rewrite may transiently
// create the illegal instruction sequence.
while ((intx) _masm->pc() - (intx) patch->pc_start() < NativeGeneralJump::instruction_size) {
_masm->nop();
}
patch->install(_masm, patch_code, obj, info);
append_code_stub(patch);
#ifdef ASSERT
Bytecodes::Code code = info->scope()->method()->java_code_at_bci(info->stack()->bci());
if (patch->id() == PatchingStub::access_field_id) {
switch (code) {
case Bytecodes::_putstatic:
case Bytecodes::_getstatic:
case Bytecodes::_putfield:
case Bytecodes::_getfield:
break;
default:
ShouldNotReachHere();
}
} else if (patch->id() == PatchingStub::load_klass_id) {
switch (code) {
case Bytecodes::_new:
case Bytecodes::_anewarray:
case Bytecodes::_multianewarray:
case Bytecodes::_instanceof:
case Bytecodes::_checkcast:
break;
default:
ShouldNotReachHere();
}
} else if (patch->id() == PatchingStub::load_mirror_id) {
switch (code) {
case Bytecodes::_putstatic:
case Bytecodes::_getstatic:
case Bytecodes::_ldc:
case Bytecodes::_ldc_w:
break;
default:
ShouldNotReachHere();
}
} else if (patch->id() == PatchingStub::load_appendix_id) {
Bytecodes::Code bc_raw = info->scope()->method()->raw_code_at_bci(info->stack()->bci());
assert(Bytecodes::has_optional_appendix(bc_raw), "unexpected appendix resolution");
} else {
ShouldNotReachHere();
}
#endif
}
PatchingStub::PatchID LIR_Assembler::patching_id(CodeEmitInfo* info) {
IRScope* scope = info->scope();
Bytecodes::Code bc_raw = scope->method()->raw_code_at_bci(info->stack()->bci());
if (Bytecodes::has_optional_appendix(bc_raw)) {
return PatchingStub::load_appendix_id;
}
return PatchingStub::load_mirror_id;
}
//---------------------------------------------------------------
LIR_Assembler::LIR_Assembler(Compilation* c):
_compilation(c)
, _masm(c->masm())
, _bs(Universe::heap()->barrier_set())
, _frame_map(c->frame_map())
, _current_block(NULL)
, _pending_non_safepoint(NULL)
, _pending_non_safepoint_offset(0)
{
_slow_case_stubs = new CodeStubList();
}
LIR_Assembler::~LIR_Assembler() {
}
void LIR_Assembler::check_codespace() {
CodeSection* cs = _masm->code_section();
if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) {
BAILOUT("CodeBuffer overflow");
}
}
void LIR_Assembler::append_code_stub(CodeStub* stub) {
_slow_case_stubs->append(stub);
}
void LIR_Assembler::emit_stubs(CodeStubList* stub_list) {
for (int m = 0; m < stub_list->length(); m++) {
CodeStub* s = (*stub_list)[m];
check_codespace();
CHECK_BAILOUT();
#ifndef PRODUCT
if (CommentedAssembly) {
stringStream st;
s->print_name(&st);
st.print(" slow case");
_masm->block_comment(st.as_string());
}
#endif
s->emit_code(this);
#ifdef ASSERT
s->assert_no_unbound_labels();
#endif
}
}
void LIR_Assembler::emit_slow_case_stubs() {
emit_stubs(_slow_case_stubs);
}
bool LIR_Assembler::needs_icache(ciMethod* method) const {
return !method->is_static();
}
int LIR_Assembler::code_offset() const {
return _masm->offset();
}
address LIR_Assembler::pc() const {
return _masm->pc();
}
// To bang the stack of this compiled method we use the stack size
// that the interpreter would need in case of a deoptimization. This
// removes the need to bang the stack in the deoptimization blob which
// in turn simplifies stack overflow handling.
int LIR_Assembler::bang_size_in_bytes() const {
return MAX2(initial_frame_size_in_bytes() + os::extra_bang_size_in_bytes(), _compilation->interpreter_frame_size());
}
void LIR_Assembler::emit_exception_entries(ExceptionInfoList* info_list) {
for (int i = 0; i < info_list->length(); i++) {
XHandlers* handlers = info_list->at(i)->exception_handlers();
for (int j = 0; j < handlers->length(); j++) {
XHandler* handler = handlers->handler_at(j);
assert(handler->lir_op_id() != -1, "handler not processed by LinearScan");
assert(handler->entry_code() == NULL ||
handler->entry_code()->instructions_list()->last()->code() == lir_branch ||
handler->entry_code()->instructions_list()->last()->code() == lir_delay_slot, "last operation must be branch");
if (handler->entry_pco() == -1) {
// entry code not emitted yet
if (handler->entry_code() != NULL && handler->entry_code()->instructions_list()->length() > 1) {
handler->set_entry_pco(code_offset());
if (CommentedAssembly) {
_masm->block_comment("Exception adapter block");
}
emit_lir_list(handler->entry_code());
} else {
handler->set_entry_pco(handler->entry_block()->exception_handler_pco());
}
assert(handler->entry_pco() != -1, "must be set now");
}
}
}
}
void LIR_Assembler::emit_code(BlockList* hir) {
if (PrintLIR) {
print_LIR(hir);
}
int n = hir->length();
for (int i = 0; i < n; i++) {
emit_block(hir->at(i));
CHECK_BAILOUT();
}
flush_debug_info(code_offset());
DEBUG_ONLY(check_no_unbound_labels());
}
void LIR_Assembler::emit_block(BlockBegin* block) {
if (block->is_set(BlockBegin::backward_branch_target_flag)) {
align_backward_branch_target();
}
// if this block is the start of an exception handler, record the
// PC offset of the first instruction for later construction of
// the ExceptionHandlerTable
if (block->is_set(BlockBegin::exception_entry_flag)) {
block->set_exception_handler_pco(code_offset());
}
#ifndef PRODUCT
if (PrintLIRWithAssembly) {
// don't print Phi's
InstructionPrinter ip(false);
block->print(ip);
}
#endif /* PRODUCT */
assert(block->lir() != NULL, "must have LIR");
X86_ONLY(assert(_masm->rsp_offset() == 0, "frame size should be fixed"));
#ifndef PRODUCT
if (CommentedAssembly) {
stringStream st;
st.print_cr(" block B%d [%d, %d]", block->block_id(), block->bci(), block->end()->printable_bci());
_masm->block_comment(st.as_string());
}
#endif
emit_lir_list(block->lir());
X86_ONLY(assert(_masm->rsp_offset() == 0, "frame size should be fixed"));
}
void LIR_Assembler::emit_lir_list(LIR_List* list) {
peephole(list);
int n = list->length();
for (int i = 0; i < n; i++) {
LIR_Op* op = list->at(i);
check_codespace();
CHECK_BAILOUT();
#ifndef PRODUCT
if (CommentedAssembly) {
// Don't record out every op since that's too verbose. Print
// branches since they include block and stub names. Also print
// patching moves since they generate funny looking code.
if (op->code() == lir_branch ||
(op->code() == lir_move && op->as_Op1()->patch_code() != lir_patch_none)) {
stringStream st;
op->print_on(&st);
_masm->block_comment(st.as_string());
}
}
if (PrintLIRWithAssembly) {
// print out the LIR operation followed by the resulting assembly
list->at(i)->print(); tty->cr();
}
#endif /* PRODUCT */
op->emit_code(this);
if (compilation()->debug_info_recorder()->recording_non_safepoints()) {
process_debug_info(op);
}
#ifndef PRODUCT
if (PrintLIRWithAssembly) {
_masm->code()->decode();
}
#endif /* PRODUCT */
}
}
#ifdef ASSERT
void LIR_Assembler::check_no_unbound_labels() {
CHECK_BAILOUT();
for (int i = 0; i < _branch_target_blocks.length() - 1; i++) {
if (!_branch_target_blocks.at(i)->label()->is_bound()) {
tty->print_cr("label of block B%d is not bound", _branch_target_blocks.at(i)->block_id());
assert(false, "unbound label");
}
}
}
#endif
//----------------------------------debug info--------------------------------
void LIR_Assembler::add_debug_info_for_branch(CodeEmitInfo* info) {
int pc_offset = code_offset();
flush_debug_info(pc_offset);
info->record_debug_info(compilation()->debug_info_recorder(), pc_offset);
if (info->exception_handlers() != NULL) {
compilation()->add_exception_handlers_for_pco(pc_offset, info->exception_handlers());
}
}
void LIR_Assembler::add_call_info(int pc_offset, CodeEmitInfo* cinfo) {
flush_debug_info(pc_offset);
cinfo->record_debug_info(compilation()->debug_info_recorder(), pc_offset);
if (cinfo->exception_handlers() != NULL) {
compilation()->add_exception_handlers_for_pco(pc_offset, cinfo->exception_handlers());
}
}
static ValueStack* debug_info(Instruction* ins) {
StateSplit* ss = ins->as_StateSplit();
if (ss != NULL) return ss->state();
return ins->state_before();
}
void LIR_Assembler::process_debug_info(LIR_Op* op) {
Instruction* src = op->source();
if (src == NULL) return;
int pc_offset = code_offset();
if (_pending_non_safepoint == src) {
_pending_non_safepoint_offset = pc_offset;
return;
}
ValueStack* vstack = debug_info(src);
if (vstack == NULL) return;
if (_pending_non_safepoint != NULL) {
// Got some old debug info. Get rid of it.
if (debug_info(_pending_non_safepoint) == vstack) {
_pending_non_safepoint_offset = pc_offset;
return;
}
if (_pending_non_safepoint_offset < pc_offset) {
record_non_safepoint_debug_info();
}
_pending_non_safepoint = NULL;
}
// Remember the debug info.
if (pc_offset > compilation()->debug_info_recorder()->last_pc_offset()) {
_pending_non_safepoint = src;
_pending_non_safepoint_offset = pc_offset;
}
}
// Index caller states in s, where 0 is the oldest, 1 its callee, etc.
// Return NULL if n is too large.
// Returns the caller_bci for the next-younger state, also.
static ValueStack* nth_oldest(ValueStack* s, int n, int& bci_result) {
ValueStack* t = s;
for (int i = 0; i < n; i++) {
if (t == NULL) break;
t = t->caller_state();
}
if (t == NULL) return NULL;
for (;;) {
ValueStack* tc = t->caller_state();
if (tc == NULL) return s;
t = tc;
bci_result = tc->bci();
s = s->caller_state();
}
}
void LIR_Assembler::record_non_safepoint_debug_info() {
int pc_offset = _pending_non_safepoint_offset;
ValueStack* vstack = debug_info(_pending_non_safepoint);
int bci = vstack->bci();
DebugInformationRecorder* debug_info = compilation()->debug_info_recorder();
assert(debug_info->recording_non_safepoints(), "sanity");
debug_info->add_non_safepoint(pc_offset);
// Visit scopes from oldest to youngest.
for (int n = 0; ; n++) {
int s_bci = bci;
ValueStack* s = nth_oldest(vstack, n, s_bci);
if (s == NULL) break;
IRScope* scope = s->scope();
//Always pass false for reexecute since these ScopeDescs are never used for deopt
methodHandle null_mh;
debug_info->describe_scope(pc_offset, null_mh, scope->method(), s->bci(), false/*reexecute*/);
}
debug_info->end_non_safepoint(pc_offset);
}
ImplicitNullCheckStub* LIR_Assembler::add_debug_info_for_null_check_here(CodeEmitInfo* cinfo) {
return add_debug_info_for_null_check(code_offset(), cinfo);
}
ImplicitNullCheckStub* LIR_Assembler::add_debug_info_for_null_check(int pc_offset, CodeEmitInfo* cinfo) {
ImplicitNullCheckStub* stub = new ImplicitNullCheckStub(pc_offset, cinfo);
append_code_stub(stub);
return stub;
}
void LIR_Assembler::add_debug_info_for_div0_here(CodeEmitInfo* info) {
add_debug_info_for_div0(code_offset(), info);
}
void LIR_Assembler::add_debug_info_for_div0(int pc_offset, CodeEmitInfo* cinfo) {
DivByZeroStub* stub = new DivByZeroStub(pc_offset, cinfo);
append_code_stub(stub);
}
void LIR_Assembler::emit_rtcall(LIR_OpRTCall* op) {
rt_call(op->result_opr(), op->addr(), op->arguments(), op->tmp(), op->info());
}
void LIR_Assembler::emit_call(LIR_OpJavaCall* op) {
verify_oop_map(op->info());
if (os::is_MP()) {
// must align calls sites, otherwise they can't be updated atomically on MP hardware
align_call(op->code());
}
// emit the static call stub stuff out of line
emit_static_call_stub();
CHECK_BAILOUT();
switch (op->code()) {
case lir_static_call:
case lir_dynamic_call:
call(op, relocInfo::static_call_type);
break;
case lir_optvirtual_call:
call(op, relocInfo::opt_virtual_call_type);
break;
case lir_icvirtual_call:
ic_call(op);
break;
case lir_virtual_call:
vtable_call(op);
break;
default:
fatal("unexpected op code: %s", op->name());
break;
}
// JSR 292
// Record if this method has MethodHandle invokes.
if (op->is_method_handle_invoke()) {
compilation()->set_has_method_handle_invokes(true);
}
#if defined(X86) && defined(TIERED)
// C2 leave fpu stack dirty clean it
if (UseSSE < 2) {
int i;
for ( i = 1; i <= 7 ; i++ ) {
ffree(i);
}
if (!op->result_opr()->is_float_kind()) {
ffree(0);
}
}
#endif // X86 && TIERED
}
void LIR_Assembler::emit_opLabel(LIR_OpLabel* op) {
_masm->bind (*(op->label()));
}
void LIR_Assembler::emit_op1(LIR_Op1* op) {
switch (op->code()) {
case lir_move:
if (op->move_kind() == lir_move_volatile) {
assert(op->patch_code() == lir_patch_none, "can't patch volatiles");
volatile_move_op(op->in_opr(), op->result_opr(), op->type(), op->info());
} else {
move_op(op->in_opr(), op->result_opr(), op->type(),
op->patch_code(), op->info(), op->pop_fpu_stack(),
op->move_kind() == lir_move_unaligned,
op->move_kind() == lir_move_wide);
}
break;
case lir_roundfp: {
LIR_OpRoundFP* round_op = op->as_OpRoundFP();
roundfp_op(round_op->in_opr(), round_op->tmp(), round_op->result_opr(), round_op->pop_fpu_stack());
break;
}
case lir_return:
return_op(op->in_opr());
break;
case lir_safepoint:
if (compilation()->debug_info_recorder()->last_pc_offset() == code_offset()) {
_masm->nop();
}
safepoint_poll(op->in_opr(), op->info());
break;
case lir_fxch:
fxch(op->in_opr()->as_jint());
break;
case lir_fld:
fld(op->in_opr()->as_jint());
break;
case lir_ffree:
ffree(op->in_opr()->as_jint());
break;
case lir_branch:
break;
case lir_push:
push(op->in_opr());
break;
case lir_pop:
pop(op->in_opr());
break;
case lir_neg:
negate(op->in_opr(), op->result_opr());
break;
case lir_leal:
leal(op->in_opr(), op->result_opr());
break;
case lir_null_check:
if (GenerateCompilerNullChecks) {
ImplicitNullCheckStub* stub = add_debug_info_for_null_check_here(op->info());
if (op->in_opr()->is_single_cpu()) {
_masm->null_check(op->in_opr()->as_register(), stub->entry());
} else {
Unimplemented();
}
}
break;
case lir_monaddr:
monitor_address(op->in_opr()->as_constant_ptr()->as_jint(), op->result_opr());
break;
#ifdef SPARC
case lir_pack64:
pack64(op->in_opr(), op->result_opr());
break;
case lir_unpack64:
unpack64(op->in_opr(), op->result_opr());
break;
#endif
case lir_unwind:
unwind_op(op->in_opr());
break;
default:
Unimplemented();
break;
}
}
void LIR_Assembler::emit_op0(LIR_Op0* op) {
switch (op->code()) {
case lir_word_align: {
_masm->align(BytesPerWord);
break;
}
case lir_nop:
assert(op->info() == NULL, "not supported");
_masm->nop();
break;
case lir_label:
Unimplemented();
break;
case lir_build_frame:
build_frame();
break;
case lir_std_entry:
// init offsets
offsets()->set_value(CodeOffsets::OSR_Entry, _masm->offset());
_masm->align(CodeEntryAlignment);
if (needs_icache(compilation()->method())) {
check_icache();
}
offsets()->set_value(CodeOffsets::Verified_Entry, _masm->offset());
_masm->verified_entry();
build_frame();
offsets()->set_value(CodeOffsets::Frame_Complete, _masm->offset());
break;
case lir_osr_entry:
offsets()->set_value(CodeOffsets::OSR_Entry, _masm->offset());
osr_entry();
break;
case lir_24bit_FPU:
set_24bit_FPU();
break;
case lir_reset_FPU:
reset_FPU();
break;
case lir_breakpoint:
breakpoint();
break;
case lir_fpop_raw:
fpop();
break;
case lir_membar:
membar();
break;
case lir_membar_acquire:
membar_acquire();
break;
case lir_membar_release:
membar_release();
break;
case lir_membar_loadload:
membar_loadload();
break;
case lir_membar_storestore:
membar_storestore();
break;
case lir_membar_loadstore:
membar_loadstore();
break;
case lir_membar_storeload:
membar_storeload();
break;
case lir_get_thread:
get_thread(op->result_opr());
break;
default:
ShouldNotReachHere();
break;
}
}
void LIR_Assembler::emit_op2(LIR_Op2* op) {
switch (op->code()) {
case lir_cmp:
if (op->info() != NULL) {
assert(op->in_opr1()->is_address() || op->in_opr2()->is_address(),
"shouldn't be codeemitinfo for non-address operands");
add_debug_info_for_null_check_here(op->info()); // exception possible
}
comp_op(op->condition(), op->in_opr1(), op->in_opr2(), op);
break;
case lir_cmp_l2i:
case lir_cmp_fd2i:
case lir_ucmp_fd2i:
comp_fl2i(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op);
break;
case lir_cmove:
cmove(op->condition(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->type());
break;
case lir_shl:
case lir_shr:
case lir_ushr:
if (op->in_opr2()->is_constant()) {
shift_op(op->code(), op->in_opr1(), op->in_opr2()->as_constant_ptr()->as_jint(), op->result_opr());
} else {
shift_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->tmp1_opr());
}
break;
case lir_add:
case lir_sub:
case lir_mul:
case lir_mul_strictfp:
case lir_div:
case lir_div_strictfp:
case lir_rem:
assert(op->fpu_pop_count() < 2, "");
arith_op(
op->code(),
op->in_opr1(),
op->in_opr2(),
op->result_opr(),
op->info(),
op->fpu_pop_count() == 1);
break;
case lir_abs:
case lir_sqrt:
case lir_sin:
case lir_tan:
case lir_cos:
case lir_log10:
case lir_pow:
intrinsic_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op);
break;
case lir_logic_and:
case lir_logic_or:
case lir_logic_xor:
logic_op(
op->code(),
op->in_opr1(),
op->in_opr2(),
op->result_opr());
break;
case lir_throw:
throw_op(op->in_opr1(), op->in_opr2(), op->info());
break;
case lir_xadd:
case lir_xchg:
atomic_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->tmp1_opr());
break;
default:
Unimplemented();
break;
}
}
void LIR_Assembler::build_frame() {
_masm->build_frame(initial_frame_size_in_bytes(), bang_size_in_bytes());
}
void LIR_Assembler::roundfp_op(LIR_Opr src, LIR_Opr tmp, LIR_Opr dest, bool pop_fpu_stack) {
assert((src->is_single_fpu() && dest->is_single_stack()) ||
(src->is_double_fpu() && dest->is_double_stack()),
"round_fp: rounds register -> stack location");
reg2stack (src, dest, src->type(), pop_fpu_stack);
}
void LIR_Assembler::move_op(LIR_Opr src, LIR_Opr dest, BasicType type, LIR_PatchCode patch_code, CodeEmitInfo* info, bool pop_fpu_stack, bool unaligned, bool wide) {
if (src->is_register()) {
if (dest->is_register()) {
assert(patch_code == lir_patch_none && info == NULL, "no patching and info allowed here");
reg2reg(src, dest);
} else if (dest->is_stack()) {
assert(patch_code == lir_patch_none && info == NULL, "no patching and info allowed here");
reg2stack(src, dest, type, pop_fpu_stack);
} else if (dest->is_address()) {
reg2mem(src, dest, type, patch_code, info, pop_fpu_stack, wide, unaligned);
} else {
ShouldNotReachHere();
}
} else if (src->is_stack()) {
assert(patch_code == lir_patch_none && info == NULL, "no patching and info allowed here");
if (dest->is_register()) {
stack2reg(src, dest, type);
} else if (dest->is_stack()) {
stack2stack(src, dest, type);
} else {
ShouldNotReachHere();
}
} else if (src->is_constant()) {
if (dest->is_register()) {
const2reg(src, dest, patch_code, info); // patching is possible
} else if (dest->is_stack()) {
assert(patch_code == lir_patch_none && info == NULL, "no patching and info allowed here");
const2stack(src, dest);
} else if (dest->is_address()) {
assert(patch_code == lir_patch_none, "no patching allowed here");
const2mem(src, dest, type, info, wide);
} else {
ShouldNotReachHere();
}
} else if (src->is_address()) {
mem2reg(src, dest, type, patch_code, info, wide, unaligned);
} else {
ShouldNotReachHere();
}
}
void LIR_Assembler::verify_oop_map(CodeEmitInfo* info) {
#ifndef PRODUCT
if (VerifyOops) {
OopMapStream s(info->oop_map());
while (!s.is_done()) {
OopMapValue v = s.current();
if (v.is_oop()) {
VMReg r = v.reg();
if (!r->is_stack()) {
stringStream st;
st.print("bad oop %s at %d", r->as_Register()->name(), _masm->offset());
#ifdef SPARC
_masm->_verify_oop(r->as_Register(), os::strdup(st.as_string(), mtCompiler), __FILE__, __LINE__);
#else
_masm->verify_oop(r->as_Register());
#endif
} else {
_masm->verify_stack_oop(r->reg2stack() * VMRegImpl::stack_slot_size);
}
}
check_codespace();
CHECK_BAILOUT();
s.next();
}
}
#endif
}
| gaoxiaojun/dync | src/share/vm/c1/c1_LIRAssembler.cpp | C++ | gpl-2.0 | 23,698 |
define(function () {
return {
customerAccount: ['CustomerAccountService', function (CustomerAccountService) {
return CustomerAccountService.getCurrent();
}]
};
});
| lordmarkm/tyrael-laundry | tyrael-laundry-dist/src/main/webapp/common/resolve/JobOrderListResolve.js | JavaScript | gpl-2.0 | 182 |
/*
Tests multidimensional numerical integration using cubature.
Copyright 2014 Ilja Honkonen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "array"
#include "cmath"
#include "cstdlib"
#include "iostream"
#include "limits"
#include "cubature.h"
bool good_solution(
const double integral,
const double exact,
const double max_relative_error
) {
if (
std::fabs(integral - exact)
> max_relative_error * std::max(std::fabs(integral), std::fabs(exact))
) {
return false;
}
return true;
}
int main()
{
constexpr double max_acceptable_error = 1e-9;
// integration range
const std::array<double, 3> start{1, 1, 1}, end{2, 2, 2};
double integral, error, exact;
/*
Returns x*y^2*z^3.
In dimension(s) over which pcubature is integrating, x, y or z
are given by r, the rest are given in extra_data. Format of
extra_data: std::pair<std::array<size_t, 3>, std::array<double, 3>>.
size_t tells the index of the dimension over which integration over
Nth dimension in r actually goes. The first r_dims of
size_t's contain valid data. For the rest the corresponding
double contains the coordinate at which to integrate over the
rest of dimensions of r.
For example when integrating x and z from 0 to 1 with y == -2
integrand could be called by cubature as (999's mark unused data):
f = integrand(
2,
std::array<double, 2>{0, 0}.data(),
std::pair<
std::array<size_t, 3>,
std::array<double, 3>
>{{0, 2, 999}, {999, -2, 999}}.data(),
1,
ret_val.data()
);
and when integrating y from -2 to -1 with x == 0.5 and z == 2/3:
f = integrand(
1,
std::array<double, 1>{-2}.data(),
std::pair<
std::array<size_t, 3>,
std::array<double, 3>
>{{1, 999, 999}, {0.5, 999, 2/3}}.data(),
1,
ret_val.data()
);
*/
auto integrand
= [](
unsigned r_dims,
const double* r,
void* extra_data,
unsigned f_dims,
double* f
) {
if (r_dims == 0) {
return -1;
}
if (f_dims != 1) {
return -2;
}
if (r == NULL) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (f == NULL) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (extra_data == NULL) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
const auto integration_info
= *static_cast<
std::pair<
std::array<size_t, 3>,
std::array<double, 3>
>*
>(extra_data);
std::array<double, 3> real_r = integration_info.second;
for (size_t i = 0; i < r_dims; i++) {
if (integration_info.first[i] > 3) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
real_r[integration_info.first[i]] = *(r + i);
}
*f
= std::pow(real_r[0], 1)
* std::pow(real_r[1], 2)
* std::pow(real_r[2], 3);
return 0;
};
std::pair<std::array<size_t, 3>, std::array<double, 3>> integration_parameters;
// 1d over x at y == 3/2 and z == 3/2
exact = std::pow(3./2., 6);
integration_parameters.first[0] = 0;
integration_parameters.first[1] = 999;
integration_parameters.first[2] = 999;
integration_parameters.second[0] = 999;
integration_parameters.second[1] = 3.0 / 2.0;
integration_parameters.second[2] = 3.0 / 2.0;
if (
pcubature(
1,
integrand,
&integration_parameters,
1,
start.data(),
end.data(),
0,
0,
1e-3,
ERROR_LINF,
&integral,
&error
) != 0
) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (not good_solution(integral, exact, max_acceptable_error)) {
std::cerr << __FILE__ << "(" << __LINE__ << "): "
<< "Too large relative error when integrating from " << start[0]
<< " to " << end[0]
<< ", exact: " << exact
<< ", numerical: " << integral
<< std::endl;
abort();
}
// 2d over y and z at x == 3/2
exact = 105.0 / 8.0;
integration_parameters.first[0] = 1;
integration_parameters.first[1] = 2;
integration_parameters.first[2] = 999;
integration_parameters.second[0] = 3.0 / 2.0;
integration_parameters.second[1] = 999;
integration_parameters.second[2] = 999;
if (
pcubature(
1,
integrand,
&integration_parameters,
2,
start.data(),
end.data(),
0,
0,
1e-3,
ERROR_LINF,
&integral,
&error
) != 0
) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (not good_solution(integral, exact, max_acceptable_error)) {
std::cerr << __FILE__ << "(" << __LINE__ << "): "
<< "Too large relative error when integrating from "
<< start[1] << "," << start[2]
<< " to " << end[1] << "," << end[2]
<< ", exact: " << exact
<< ", numerical: " << integral
<< std::endl;
abort();
}
// integrate over the edges of the unit cube from start to end
std::array<
std::pair<
// exact value for below integration parameters
double,
// same as in integration_parameters
std::pair<
std::array<size_t, 3>,
std::array<double, 3>
>
>,
12
> integration_params1d{{
// over x at min y, min z
{3.0 / 2.0, {{0, 999, 999}, {999, 1, 1}}},
// x at min y, max z
{12, {{0, 999, 999}, {999, 1, 2}}},
// x at max y, min z
{6, {{0, 999, 999}, {999, 2, 1}}},
// x at max y, max z
{48, {{0, 999, 999}, {999, 2, 2}}},
// over y at min x, min z
{7.0 / 3.0, {{1, 999, 999}, {1, 999, 1}}},
// y at min x, max z
{56.0 / 3.0, {{1, 999, 999}, {1, 999, 2}}},
// y at max y, min z
{14.0 / 3.0, {{1, 999, 999}, {2, 999, 1}}},
// y at max x, max z
{112.0 / 3.0, {{1, 999, 999}, {2, 999, 2}}},
// over z at min x, min y
{15.0 / 4.0, {{2, 999, 999}, {1, 1, 999}}},
// z at min x, max y
{15, {{2, 999, 999}, {1, 2, 999}}},
// z at max x, min y
{15.0 / 2.0, {{2, 999, 999}, {2, 1, 999}}},
// z at max x, max y
{30, {{2, 999, 999}, {2, 2, 999}}}
}};
for (auto& info: integration_params1d) {
const double exact = info.first;
if (
pcubature(
1,
integrand,
&info.second,
1,
start.data(),
end.data(),
0,
0,
1e-3,
ERROR_LINF,
&integral,
&error
) != 0
) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (not good_solution(integral, exact, max_acceptable_error)) {
std::cerr << __FILE__ << "(" << __LINE__ << "): "
<< "Too large relative error, exact: " << exact
<< ", numerical: " << integral
<< std::endl;
abort();
}
}
// integrate over the faces of the unit cube from start to end
std::array<
std::pair<
double,
std::pair<
std::array<size_t, 3>,
std::array<double, 3>
>
>,
6
> integration_params2d{{
// over x and y at min z
{7.0 / 2.0, {{0, 1, 999}, {999, 999, 1}}},
// x, y at max z
{28, {{0, 1, 999}, {999, 999, 2}}},
// x, z at min y
{45.0 / 8.0, {{0, 2, 999}, {999, 1, 999}}},
// x, z at max y
{45.0 / 2.0, {{0, 2, 999}, {999, 2, 999}}},
// y, z at min x
{35.0 / 4.0, {{1, 2, 999}, {1, 999, 999}}},
// y, z at max x
{35.0 / 2.0, {{1, 2, 999}, {2, 999, 999}}}
}};
for (auto& info: integration_params2d) {
const double exact = info.first;
if (
pcubature(
1,
integrand,
&info.second,
2,
start.data(),
end.data(),
0,
0,
1e-3,
ERROR_LINF,
&integral,
&error
) != 0
) {
std::cerr << __FILE__ << "(" << __LINE__ << ")" << std::endl;
abort();
}
if (not good_solution(integral, exact, max_acceptable_error)) {
std::cerr << __FILE__ << "(" << __LINE__ << "): "
<< "Too large relative error, exact: " << exact
<< ", numerical: " << integral
<< std::endl;
abort();
}
}
return EXIT_SUCCESS;
}
| nasailja/background_B | tests/integration/cubature_multidim.cpp | C++ | gpl-2.0 | 8,198 |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Components.Aphid.Parser
{
public class AphidExpressionBinder : SerializationBinder
{
private const string _prefix = "System.Collections.Generic.List`1[[";
public override Type BindToType(string assemblyName, string typeName)
{
if (typeName.StartsWith(_prefix))
{
var name = typeName.Substring(_prefix.Length).RemoveAtIndexOf(',');
return typeof(List<>).MakeGenericType(Type.GetType(name));
}
return Type.GetType(typeName);
}
}
}
| John-Leitch/Aphid | Components.Aphid/Parser/Mutators/AphidExpressionBinder.cs | C# | gpl-2.0 | 677 |
<?php
global $VISUAL_COMPOSER_EXTENSIONS;
?>
<div id="ts-settings-files" class="tab-content">
<div class="ts-vcsc-section-main">
<div class="ts-vcsc-section-title ts-vcsc-section-show"><i class="dashicons-download"></i>External Files Settings</div>
<div class="ts-vcsc-section-content">
<div class="ts-vcsc-notice-field ts-vcsc-critical" style="margin-top: 10px; font-size: 13px; text-align: justify; font-weight: bold;">
Changes to the default settings done in this section can severely impact the overall functionality of this add-on or WordPress itself. Only make changes if you really know what you are doing and if the add-on is not
working correctly with the default settings!
</div>
<p>
<h4>Force Load of jQuery:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to force a load of jQuery and jQuery Migrate:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadjQuery == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadjQuery" class="toggle-check ts_vcsc_extend_settings_loadjQuery" name="ts_vcsc_extend_settings_loadjQuery" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadjQuery); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadjQuery == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadjQuery == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadjQuery">Force Load of jQuery</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load ONLY Lightbox Files on ALL Pages:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the lightbox files on ALL pages, even if no shortcode has been detected:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadLightbox == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadLightbox" class="toggle-check ts_vcsc_extend_settings_loadLightbox" name="ts_vcsc_extend_settings_loadLightbox" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadLightbox); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadLightbox == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadLightbox == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadLightbox">Load Lightbox On All Pages</label></span>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load ONLY Tooltip Files on ALL Pages:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the tooltip files on ALL pages, even if no shortcode has been detected:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadTooltip == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadTooltip" class="toggle-check ts_vcsc_extend_settings_loadTooltip" name="ts_vcsc_extend_settings_loadTooltip" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadTooltip); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadTooltip == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadTooltip == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadTooltip">Load Tooltips On All Pages</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load ONLY Icon Font Files on ALL Pages:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the active Icon Font files on ALL pages, even if no shortcode has been detected:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadFonts == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadFonts" class="toggle-check ts_vcsc_extend_settings_loadFonts" name="ts_vcsc_extend_settings_loadFonts" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadFonts); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadFonts == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadFonts == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadFonts">Load active Icon Fonts On All Pages</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load ALL Files on ALL Pages:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load ALL of the plugin files on ALL pages, even if no shortcode has been detected:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadForcable == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadForcable" class="toggle-check ts_vcsc_extend_settings_loadForcable" name="ts_vcsc_extend_settings_loadForcable" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadForcable); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadForcable == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadForcable == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadForcable">Load ALL Files On All Pages</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load External Files in HEAD:</h4>
<p style="font-size: 12px; text-align: justify;">Please define where you want to load the JS Files:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadHeader == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadHeader" class="toggle-check ts_vcsc_extend_settings_loadHeader" name="ts_vcsc_extend_settings_loadHeader" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadHeader); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadHeader == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadHeader == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadHeader">Load all Files in HEAD</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load Files via WordPress Standard:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the script files via "wp_enqueue_script" and "wp_enqueue_style":</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadEnqueue == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadEnqueue" class="toggle-check ts_vcsc_extend_settings_loadEnqueue" name="ts_vcsc_extend_settings_loadEnqueue" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadEnqueue); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadEnqueue == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadEnqueue == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadEnqueue">Load Files with Standard Method</label>
</p>
<div class="ts-vcsc-notice-field ts-vcsc-warning" style="margin-top: 30px; margin-bottom: 30px; font-size: 13px; text-align: justify;">
This plugin will load some external CSS and JS files in order to make the content elements work on the front end. Your theme or another plugin might already load the same file, which in some cases
can cause problems. Use this page to enable/disable the files this plugin should be allowed to load on the front end.
</div>
<p>
<h4>Load Modernizr File:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the Modernizr file to ensure CSS3 compatibility for most browsers:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadModernizr == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadModernizr" class="toggle-check ts_vcsc_extend_settings_loadModernizr" name="ts_vcsc_extend_settings_loadModernizr" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadModernizr); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadModernizr == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadModernizr == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadModernizr">Load Modernizr</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load Waypoints File:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the Waypoints File for Viewport Animations:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadWaypoints == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadWaypoints" class="toggle-check ts_vcsc_extend_settings_loadWaypoints" name="ts_vcsc_extend_settings_loadWaypoints" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadWaypoints); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadWaypoints == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadWaypoints == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadWaypoints">Load WayPoints</label>
</p>
<hr class='style-six' style='margin-top: 20px;'>
<p>
<h4>Load CountTo File:</h4>
<p style="font-size: 12px; text-align: justify;">Please define if you want to load the CountTo File for the Icon Counter:</p>
<div class="ts-switch-button ts-composer-switch" data-value="<?php echo ($ts_vcsc_extend_settings_loadCountTo == 1 ? 'true' : 'false'); ?>" data-width="80" data-style="compact" data-on="Yes" data-off="No" style="float: left; margin-right: 10px;">
<input type="checkbox" style="display: none; " id="ts_vcsc_extend_settings_loadCountTo" class="toggle-check ts_vcsc_extend_settings_loadCountTo" name="ts_vcsc_extend_settings_loadCountTo" value="1" <?php echo checked('1', $ts_vcsc_extend_settings_loadCountTo); ?>/>
<div class="toggle toggle-light" style="width: 80px; height: 20px;">
<div class="toggle-slide">
<div class="toggle-inner">
<div class="toggle-on <?php echo ($ts_vcsc_extend_settings_loadCountTo == 1 ? 'active' : ''); ?>">Yes</div>
<div class="toggle-blob"></div>
<div class="toggle-off <?php echo ($ts_vcsc_extend_settings_loadCountTo == 0 ? 'active' : ''); ?>">No</div>
</div>
</div>
</div>
</div>
<label class="labelToggleBox" for="ts_vcsc_extend_settings_loadCountTo">Load CountTo</label>
</p>
</div>
</div>
</div> | baochung26/happy-c | wp-content/plugins/ts-visual-composer-extend/assets/ts_vcsc_settings_external.php | PHP | gpl-2.0 | 14,684 |
package com.app.labeli;
import com.app.labeli.member.Member;
import net.tools.*;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
/**
* > @FragmentConnection
*
* Fragment to create a connection between app
* and API.
*
* @author Florian "Aamu Lumi" Kauder
* for the project @Label[i]
*/
public class FragmentConnection extends Fragment {
private EditText editTextLogin, editTextPassword;
private Button button;
private ProgressDialog pDialog;
public FragmentConnection() {
}
public void connectToAPI(View v){
if (editTextLogin.length() == 0)
Toast.makeText(getActivity(), "Veuillez rentrer un identifiant", Toast.LENGTH_SHORT).show();
else if (editTextPassword.length() == 0)
Toast.makeText(getActivity(), "Veuillez rentrer un mot de passe", Toast.LENGTH_SHORT).show();
else {
new InitConnection(editTextLogin.getText().toString(), editTextPassword.getText().toString())
.execute();
}
}
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
getActivity().getActionBar().setTitle("Connexion");
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View v = inflater.inflate(R.layout.fragment_connection, container,
false);
editTextLogin = (EditText) v.findViewById(R.id.fragment_connection_edit_text_login);
editTextPassword = (EditText) v.findViewById(R.id.fragment_connection_edit_text_password);
button = (Button) v.findViewById(R.id.fragment_connection_button_connection);
button.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View arg0) {
connectToAPI(arg0);
}
});
return v;
}
private class InitConnection extends AsyncTask<Void, Void, String>
{
String username, password;
boolean success;
public InitConnection(String username, String password){
this.username = username;
this.password = password;
this.success = false;
}
@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(FragmentConnection.this.getActivity());
pDialog.setMessage("Connexion");
pDialog.setIndeterminate(false);
pDialog.setCancelable(false);
pDialog.show();
}
@Override
protected String doInBackground(Void... params)
{
success = APIConnection.login(username, password);
return null;
}
@Override
protected void onPostExecute(String file_url) {
pDialog.dismiss();
if (!success)
Toast.makeText(getActivity(), "Mauvais identifiant / mot de passe", Toast.LENGTH_SHORT).show();
else {
Member loggedUser = APIConnection.getLoggedUser();
Toast.makeText(getActivity(), "Bonjour " + loggedUser.getFirstName() + " " + loggedUser.getLastName(), Toast.LENGTH_SHORT).show();
((MainActivity)getActivity()).loadLeftMenu();
Fragment fragment = new FragmentAccount();
Bundle args = new Bundle();
fragment.setArguments(args);
FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
transaction.replace(R.id.activity_main_content_frame, fragment, fragment.getClass().getName());
transaction.addToBackStack(fragment.getClass().getName());
transaction.commit();
}
}
}
}
| asso-labeli/labeli-android-app | src/com/app/labeli/FragmentConnection.java | Java | gpl-2.0 | 3,863 |
require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
given "a message exists" do
Message.all.destroy!
request(resource(:messages), :method => "POST",
:params => { :message => { :id => nil }})
end
describe "resource(:messages)" do
describe "GET" do
before(:each) do
@response = request(resource(:messages))
end
it "responds successfully" do
@response.should be_successful
end
it "contains a list of messages" do
pending
@response.should have_xpath("//ul")
end
end
describe "GET", :given => "a message exists" do
before(:each) do
@response = request(resource(:messages))
end
it "has a list of messages" do
pending
@response.should have_xpath("//ul/li")
end
end
describe "a successful POST" do
before(:each) do
Message.all.destroy!
@response = request(resource(:messages), :method => "POST",
:params => { :message => { :id => nil }})
end
it "redirects to resource(:messages)" do
@response.should redirect_to(resource(Message.first), :message => {:notice => "message was successfully created"})
end
end
end
describe "resource(@message)" do
describe "a successful DELETE", :given => "a message exists" do
before(:each) do
@response = request(resource(Message.first), :method => "DELETE")
end
it "should redirect to the index action" do
@response.should redirect_to(resource(:messages))
end
end
end
describe "resource(:messages, :new)" do
before(:each) do
@response = request(resource(:messages, :new))
end
it "responds successfully" do
@response.should be_successful
end
end
describe "resource(@message, :edit)", :given => "a message exists" do
before(:each) do
@response = request(resource(Message.first, :edit))
end
it "responds successfully" do
@response.should be_successful
end
end
describe "resource(@message)", :given => "a message exists" do
describe "GET" do
before(:each) do
@response = request(resource(Message.first))
end
it "responds successfully" do
@response.should be_successful
end
end
describe "PUT" do
before(:each) do
@message = Message.first
@response = request(resource(@message), :method => "PUT",
:params => { :message => {:id => @message.id} })
end
it "redirect to the article show action" do
@response.should redirect_to(resource(@message))
end
end
end
| alfanick/irc-logger | spec/requests/messages_spec.rb | Ruby | gpl-2.0 | 2,551 |
<?php
if (isset($_POST['_wpcf7_mail_sent'])) {
$expire=time()+60*60*24*30*2;
setcookie("surveySent2", "true", $expire, '/');
}
/*************
!!!!!!!IMPORTANT!!!!!!!!
If you change the styles then edit the stylesheet querystring here!
*************/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" href="/wp-content/themes/aparatus/css.php?a=16" type="text/css" media="screen" />
<?php global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] );
}
} ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<!--[if gte IE 7]>
<link href="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_directory')); ?>/forie8.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8"/>
<![endif]-->
<!--[if lt IE 7]>
<link href="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_directory')); ?>/forie6.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8"/>
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_directory')); ?>/forie7.css" rel="stylesheet" type="text/css" media="screen" title="no title" charset="utf-8"/>
<![endif]-->
<!--Css SmoothGallery-->
<link rel="stylesheet" href="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url')); ?>/gallery-css/jd.gallery.css" type="text/css" media="screen"/>
<?php wp_enqueue_script("jquery"); ?>
<script type="text/javascript" src="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url')); ?>/scripts/mootools.js"></script>
<script type="text/javascript" src="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url')); ?>/scripts/jd.gallery.js"></script>
<script type="text/javascript" src="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url')); ?>/scripts/mootabs1.2.js"></script>
<script type="text/javascript" src="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url'));; ?>/scripts/cufon-yui.js"></script>
<script type="text/javascript" src="<?php echo str_replace("http://www.thephotographyparlour.com/","/",get_bloginfo('template_url')); ?>/scripts/League_Gothic_400.font.js"></script>
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
<script type="text/javascript">/*<![CDATA[*/Cufon.replace('a#logo',{fontSize:'98px',lineHeight:'98px'});/*]]>*/</script>
<script type="text/javascript">/*<![CDATA[*/
jQuery(document).ready(function () {
jQuery('#nav2 ul li').each(function (i) {
jQuery(this).mouseenter(function () {
jQuery(this).addClass("sfhover");
});
jQuery(this).mouseleave(function () {
jQuery(this).removeClass("sfhover");
});
});
});
<?php /* old code
<?php } else { ?>
sfHover = function() {
var sfEls = document.getElementById("nav2").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhoverb"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
<?php } ?>
<?php */ ?>
/*]]>*/
</script>
<script type="text/javascript" charset="utf-8">/*<![CDATA[*/
window.addEvent('domready', init);
function init() {
myTabs1 = new mootabs('myTabs', {height: '320px', width: '300px', changeTransition: Fx.Transitions.Back.easeOut, mouseOverClass: 'over'});
}
/*]]>*/</script>
<meta name="google-site-verification" content="QlCldWYkiMZwNFqnwTJ-dPgrwhlKK7S8VXQniIfqoD8" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<?php wp_head();flush(); ?>
</head>
<body>
<div class="bodywrapper">
<div id="header"><?php
/** header **/
?><div id="twitter-badge"><a href="http://twitter.com/<?php if ($apa_Twitter == ''){echo '_fearlessflyer';}else{echo $apa_Twitter;} ?>" onclick="pageTracker._trackEvent('Twitter', 'Follow me');" >follow</a></div><!--twitter-badge-->
<?php if (is_front_page()) { ?><h1><?php } ?><a id="logo" href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a><?php if (is_front_page()) { ?></h1><?php } ?>
<?php if (is_front_page()) { ?><h2 style="float:left;margin:-20px 0 10px 10px;font-family:verdana,arial,helvetica;font-size:10px;font-weight:bold;">Where aspiring photographers <span style="font-size:11px;font-style:italic;color:#750000">click</span> with the pros</h2><?php } else { ?>
<p style="float:left;margin:-20px 0 10px 10px;font-family:verdana,arial,helvetica;font-size:10px;font-weight:bold;">Where aspiring photographers <span style="color:#750000;font-style:italic;font-size:11px;">click</span> with the pros</p>
<?php } ?>
<div id="navigation">
<div id="page-nav">
<ul>
<li id="welcome" class="current_page_item2"><a href="<?php bloginfo('url');?>" title="Home">Welcome</a></li>
<li class="cat-item cat-page<?php if (is_page('2')) { ?> current-cat<?php } ?>"><a href="/about/" title="About the Photography Parlour">About</a></li>
<li class="cat-item cat-page"><a href="/forum/" title="photography forum">Forum</a></li>
<li class="cat-item cat-page"><a href="/shop/" title="photography shop">Shop</a></li>
<li class="cat-item cat-page"><a href="/info-for-advertisers/" title="photography Advertising Information">Advertise</a></li>
<li class="cat-item cat-page"><a href="/media-center/" title="Photography Media Center">Media Center</a></li>
<li class="cat-item cat-page"><a href="/2010/05/contribute-to-the-photography-parlour/1937" title="Contribute to The Photography Parlour">Contribute</a></li>
<li class="cat-item cat-page"><a href="/contact/" title="contact the photography parlour team">Contact</a></li>
</ul>
<span id="login"><?php /* <a href="<?php echo get_option('home'); ?>/wp-admin/">Login to Site</a>
<a href="/info-for-advertisers/" title="Information for Advertisers">Advertising Info</a>*/ ?>
<a href="http://www.twitter.com/photoparlour/" onclick="pageTracker._trackEvent('Twitter', 'twitter sign up');" title="follow us on twitter" class="toptwitter"></a><a href="http://www.facebook.com/thephotographyparlour/" title="follow us on facebook" class="topfacebook" onclick="pageTracker._trackEvent('facebook', 'facebook sign up');"></a>
<a class="rss" href="http://feeds.feedburner.com/thephotographyparlour" onclick="pageTracker._trackEvent('RSS', 'RSS FEED sign up');"></a>
</span>
</div><!--page-nav-->
<script type="text/javascript">/*<![CDATA[*/Cufon.now();/*]]>*/</script>
<div id="cat-nav">
<ul id="nav2">
<?php wp_list_categories('title_li=&sort_column=menu_order&exclude=1,114,115');?>
</ul>
</div><!--cat-nav-->
</div><!--navigation-->
</div><!--header-->
<div id="wrap">
<?php
Forumticker();
| leeparsons/tpp | wp-content/themes/aparatus/header.php | PHP | gpl-2.0 | 7,679 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
/// <summary>
/// An AND gate class to store the correct image and
/// calculate the appropriate output
/// </summary>
public class AndGate : Gate
{
/// <summary>
/// Constructor
/// </summary>
public AndGate()
{
this.Input = new InputPoint[2];
this.Input[0] = new InputPoint(-45, -9, 10, this);
this.Input[1] = new InputPoint(-45, 8, 10, this);
this.Output = new OutputPoint(44, 0, 20, this);
this.Img[0] = CircuitSimLib.Properties.Resources.and;
}
/// <summary>
/// Calculates the output for an AND gate
/// </summary>
/// <returns>Returns a calculated int</returns>
public override bool CalculateOutput()
{
return Input[0].ConnectedElementsOutput() && Input[1].ConnectedElementsOutput();
}
}
| Dominykasrr/Logic-Circuit-Sim | Circuit Simulator/CircuitSimLib/GeneratedCode/AndGate.cs | C# | gpl-2.0 | 944 |
<?php
$social_channels = $view_data['settings']['right_tab']['social_channels'];
$bar_layout_design = $view_data['settings']['right_tab']['bar_layout_design'];
$call_to_action = $view_data['settings']['right_tab']['call_to_action'];
$visibility_settings = $view_data['settings']['right_tab']['visibility_settings'];
$channels = array(
'Facebook'=>'Facebook',
'Twitter'=>'Twitter',
'Google'=>'Google',
'Linkedin'=>'Linkedin',
'Pinterest'=>'Pinterest',
'Digg'=>'Digg',
'Myspace'=>'Myspace',
'Stumbleupon'=>'Stumbleupon',
'Bebo'=>'Bebo',
'Blogger'=>'Blogger',
'Delicious'=>'Delicious',
'Xing'=>'Xing',
'Tumblr'=>'Tumblr',
'Technorati'=>'Technorati',
'Reddit'=>'Reddit',
'Netlog'=>'Netlog',
'Identi'=>'Identi',
'Friendfeed'=>'Friendfeed',
'Evernote'=>'Evernote',
'Diigo'=>'Diigo',
'VK'=>'VK',
'Email'=>'Email',
);
?>
<div id="right_tab_social_channels" class="modal widget-settings" tabindex="-1" role="dialog" aria-labelledby="registerShareLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3><?php echo $social_channels['settings_category']; ?></h3>
</div>
<div class="modal-body">
<div class="drag-links row">
<div class="col-md-5">
<h5>Active channels</h5>
<form class="form-horizontal" id="social-channels-right_tab" novalidate="novalidate" title="<?php echo $social_channels['settings_category']; ?>">
<ul id="socialsuse" class="connected list" style="margin:0;">
<?php
$socials = explode(',', $social_channels['socials']);
foreach($socials as $social){
echo '<li class="'.$social.'"><div class="share-icns"></div><span>'.$social.'</span><input type="hidden" id="socials" name="options[socials][]" value="'.$social.'" /></li>';
unset($channels["{$social}"]);
}
?>
</ul>
<div class="form-group" id="socials_target-group" style="margin-top: 20px;">
<h5>Open channel sharing in</h5>
<select class="selectpicker form-control" name="options[socials_target]" id="socials_target" data-style="btn-default">
<option value="window" <?php echo($social_channels['socials_target'] == 'window')? 'selected': ''; ?>>New window</option>
<option value="tab" <?php echo($social_channels['socials_target'] == 'tab')? 'selected': ''; ?>>New tab</option>
</select>
</div>
</form>
</div>
<div class="col-md-1">
<div class="between-connected">Drag to activate <span class="appz-point-left"></span></div>
</div>
<div class="col-md-5">
<h5>Inactive channels</h5>
<ul class="connected list no2" style="margin:0;">
<?php
foreach($channels as $channel){
echo '<li class="'.$channel.'"><div class="share-icns"></div><span>'.$channel.'</span><input type="hidden" id="socials" name="options[socials][]" value="'.$channel.'" /></li>';
}
?>
</ul>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div class="modal-footer">
<button class="btn btn-icon btn-default circle_remove" data-dismiss="modal" aria-hidden="true"><i class="appz-close-3"></i> Close</button>
<button type="submit" class="btn btn-icon btn-primary circle_ok save-widget-settings" settings="#social-channels-right_tab" layout="right_tab" data-loading-text="loading..."><i class="appz-checkmark-circle-2"></i> Save</button>
</div>
</div>
</div>
</div><!--/Social Channels Settings-->
<div id="right_tab_bar_layout_design" class="modal widget-settings" tabindex="-1" role="dialog" aria-labelledby="registerShareLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3><?php echo $bar_layout_design['settings_category']; ?></h3>
</div>
<div class="modal-body">
<form class="form-horizontal" id="bar-layout-right_tab" novalidate="novalidate" title="<?php echo $bar_layout_design['settings_category']; ?>">
<div class="row">
<div class="col-md-6">
<div class="form-group" id="bgcolor-group">
<h5>Background color</h5>
<div class="input-group">
<input type="text" id="bgcolor-right_tab" name="options[bgcolor]" value="<?php echo $bar_layout_design['bgcolor']; ?>" class="form-control"/>
<span class="input-group-btn">
<button href="javascript:void(0)" class="btn undo-color" target="#bgcolor-right_tab" original="<?php echo $bar_layout_design['bgcolor']; ?>"><i class="appz-undo"></i> Undo</button>
</span>
</div>
<br/><br/>
<div class="palette" target="#bgcolor-right_tab"></div>
</div>
<div class="form-group span11" id="icons-group">
<h5>Icons style</h5>
<select style="width: 100%;" id="icons" name="options[icons]" class="select-icons" layout="right_tab">
<option value="white" <?php echo($bar_layout_design['icons'] == 'white')? 'selected': ''; ?>>White</option>
<option value="black" <?php echo($bar_layout_design['icons'] == 'black')? 'selected': ''; ?>>Black</option>
<option value="icons" <?php echo($bar_layout_design['icons'] == 'icons')? 'selected': ''; ?>>Shiny</option>
<option value="variety" <?php echo($bar_layout_design['icons'] == 'variety')? 'selected': ''; ?>>Variety</option>
<option value="satin" <?php echo($bar_layout_design['icons'] == 'satin')? 'selected': ''; ?>>Satin</option>
<option value="shiny2" <?php echo($bar_layout_design['icons'] == 'shiny2')? 'selected': ''; ?>>Shiny 2</option>
<option value="elegant" <?php echo($bar_layout_design['icons'] == 'elegant')? 'selected': ''; ?>>Elegant</option>
<option value="metro" <?php echo($bar_layout_design['icons'] == 'metro')? 'selected': ''; ?>>Metro</option>
<option value="milky" <?php echo($bar_layout_design['icons'] == 'milky')? 'selected': ''; ?>>Milky</option>
<option value="bald" <?php echo($bar_layout_design['icons'] == 'bald')? 'selected': ''; ?>>Bald</option>
<option value="round" <?php echo($bar_layout_design['icons'] == 'round')? 'selected': ''; ?>>Round</option>
</select>
</div>
<div class="form-group" id="toolstyle-group">
<h5>Tooltip style</h5>
<select class="selectpicker form-control" name="options[toolstyle]" id="toolstyle" data-style="btn-default">
<option value="darkminimal" <?php echo($bar_layout_design['toolstyle'] == 'darkminimal')? 'selected': ''; ?>>Dark minimal</option>
<option value="lightminimal" <?php echo($bar_layout_design['toolstyle'] == 'lightminimal')? 'selected': ''; ?>>Light minimal</option>
<option value="darkgray" <?php echo($bar_layout_design['toolstyle'] == 'darkgray')? 'selected': ''; ?>>Dark gray</option>
</select>
</div>
</div><!--/span6-->
<div class="col-md-6">
<div class="form-group" id="textcolor-group">
<h5>Text color</h5>
<div class="input-group">
<input type="text" id="textcolor-right_tab" name="options[textcolor]" value="<?php echo $bar_layout_design['textcolor']; ?>" class="form-control"/>
<span class="input-group-btn">
<button href="javascript:void(0)" class="btn undo-color" target="#textcolor-right_tab" original="<?php echo $bar_layout_design['textcolor']; ?>"><i class="appz-undo"></i> Undo</button>
</span>
</div>
<br/><br/>
<div class="palette" target="#textcolor-right_tab"></div>
</div>
<div class="form-group" id="position-group">
<h5>Bar position</h5>
<select class="selectpicker form-control" name="options[position]" id="position" data-style="btn-default">
<option value="center" <?php echo($bar_layout_design['position'] == 'center')? 'selected': ''; ?>>Center</option>
<option value="top" <?php echo($bar_layout_design['position'] == 'top')? 'selected': ''; ?>>Top</option>
<option value="bottom" <?php echo($bar_layout_design['position'] == 'bottom')? 'selected': ''; ?>>Bottom</option>
</select>
</div>
</div><!--/span6-->
</div><!--/row-->
</form>
</div>
<div class="modal-footer">
<button class="btn btn-icon btn-default circle_remove" data-dismiss="modal" aria-hidden="true"><i class="appz-close-3"></i> Close</button>
<button type="submit" class="btn btn-icon btn-primary circle_ok save-widget-settings" settings="#bar-layout-right_tab" layout="right_tab" data-loading-text="loading..."><i class="appz-checkmark-circle-2"></i> Save</button>
</div>
</div>
</div>
</div><!--/Bar layout design Settings-->
<div id="right_tab_visibility_settings" class="modal widget-settings" tabindex="-1" role="dialog" aria-labelledby="registerShareLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3><?php echo $visibility_settings['settings_category']; ?></h3>
</div>
<div class="modal-body">
<form class="form-horizontal" id="visibility-settings-right_tab" novalidate="novalidate" title="Visibility settings">
<?php if( $view_data['site_list'] != NULL ): ?>
<div class="row">
<div class="col-md-12">
<div class="form-group span11" id="exclude_blogs-group">
<h5>WPMU - Hide widget on specific blogs</h5>
<select name="options[exclude_blogs][]" id="exclude_blogs" multiple ui_select style="width: 100%;" data-placeholder="Click to select blogs">
<?php
foreach ( $view_data['site_list'] as $bid ) {
$current_blog_details = get_blog_details( array( 'blog_id' => $bid->blog_id ) );
$option = '<option value="' . $bid->blog_id . '" '.((in_array($bid->blog_id, explode(',', $visibility_settings['exclude_blogs'])))? 'selected' : '').'>';
$option .= $current_blog_details->blogname;
$option .= '</option>';
echo $option;
}
?>
</select>
</div>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-6">
<div class="form-group span11" id="exclude_pages-group">
<h5>Hide widget on specific pages</h5>
<select name="options[exclude_pages][]" id="exclude_pages" multiple ui_select style="width: 100%;" <?php echo(($view_data['site_list'] != NULL)? 'disabled' : 'data-placeholder="Click to select pages"'); ?>>
<?php
if($view_data['site_list'] == NULL) {
$pages = get_pages();
foreach ( $pages as $page ) {
$option = '<option value="' . $page->ID . '" '.((in_array($page->ID, explode(',', $visibility_settings['exclude_pages'])))? 'selected' : '').'>';
$option .= $page->post_title;
$option .= '</option>';
echo $option;
}
}
else {
echo '<option selected="selected">Temporary disabled for WPMU</option>';
}
?>
</select>
</div>
<div class="form-group span11" id="on_home-group">
<h5>Show widget on Home page</h5>
<div class="toggle-button" data-toggleButton-style-enabled="info">
<input data-toggle="value" target_id="on_home-right_tab" target_name="options[on_home]" type="checkbox" value="1" <?php echo($visibility_settings['on_home'] == 0)? '': 'checked="checked"'; ?>/>
</div>
</div>
<div class="form-group span11" id="on_posts-group">
<h5>Show widget on posts</h5>
<div class="toggle-button" data-toggleButton-style-enabled="info">
<input data-toggle="value" target_id="on_posts-right_tab" target_name="options[on_posts]" type="checkbox" value="1" <?php echo($visibility_settings['on_posts'] == 0)? '': 'checked="checked"'; ?>/>
</div>
</div>
</div><!--/span6-->
<div class="col-md-6">
<div class="form-group span11" id="exclude_pages-group">
<h5>Hide widget on specific posts</h5>
<select name="options[exclude_posts][]" id="exclude_posts" multiple ui_select style="width: 100%;" <?php echo(($view_data['site_list'] != NULL)? 'disabled' : 'data-placeholder="Click to select posts"'); ?>>
<?php
if($view_data['site_list'] == NULL) {
$posts = get_posts();
foreach ( $posts as $post ) {
$option = '<option value="' . $post->ID . '" '.((in_array($post->ID, explode(',', $visibility_settings['exclude_posts'])))? 'selected' : '').'>';
$option .= $post->post_title;
$option .= '</option>';
echo $option;
}
}
else {
echo '<option selected="selected">Temporary disabled for WPMU</option>';
}
?>
</select>
</div>
<div class="form-group span11" id="on_pages-group">
<h5>Show widget on pages</h5>
<div class="toggle-button" data-toggleButton-style-enabled="info">
<input data-toggle="value" target_id="on_pages-bottom_tab" target_name="options[on_pages]" type="checkbox" value="1" <?php echo($visibility_settings['on_pages'] == 0)? '': 'checked="checked"'; ?>/>
</div>
</div>
<div class="form-group span11" id="on_custom-group">
<h5>Show widget on custom post types</h5>
<select name="options[on_custom][]" id="on_custom" multiple ui_select style="width: 100%;" <?php echo(($view_data['site_list'] != NULL)? 'disabled' : 'data-placeholder="Click to select post types"'); ?>>
<?php
if($view_data['site_list'] == NULL) {
$args=array(
'public' => true,
'_builtin' => false
);
$post_types=get_post_types($args,'names');
foreach ( $post_types as $post_type ) {
$option = '<option value="' . $post_type . '" '.((in_array($post_type, explode(',', $visibility_settings['on_custom'])))? 'selected' : '').'>';
$option .= $post_type;
$option .= '</option>';
echo $option;
}
}
else {
echo '<option selected="selected">Temporary disabled for WPMU</option>';
}
?>
</select>
</div>
</div><!--/span6-->
</div><!--/row-->
</form>
</div>
<div class="modal-footer">
<button class="btn btn-icon btn-default circle_remove" data-dismiss="modal" aria-hidden="true"><i class="appz-close-3"></i> Close</button>
<button type="submit" class="btn btn-icon btn-primary circle_ok save-widget-settings" settings="#visibility-settings-right_tab" layout="right_tab" data-loading-text="loading..."><i class="appz-checkmark-circle-2"></i> Save</button>
</div>
</div>
</div>
</div><!--/Visibility Settings-->
<!---Preview Widget--->
<div id="preview_right_tab" class="modal widget-preview-modal" tabindex="-1" role="dialog" wp_address="<?php echo get_site_url(); ?>/?cunjo=right_tab" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Preview</h3>
</div>
<div class="modal-body">
Preview here
</div>
<div class="modal-footer">
<button class="btn btn-icon btn-default circle_remove" data-dismiss="modal" aria-hidden="true"><i class="appz-close-3"></i> Close</button>
</div>
</div>
</div>
</div><!--/Preview Widget-->
<?php //echo '<pre>'.print_r($view_data, true).'</pre>'; ?> | suneeshps/wordpress | wp-content/plugins/share-social/views/tab_modals/right_tab_modals.php | PHP | gpl-2.0 | 21,979 |
// -*-C++ -*-
/** \file
********************************************************************
* Device shape base class for route window.
*
* \author Rüdiger Krauße,
* Tobias Schlemmer <keinstein@users.sourceforge.net>
* \license GPL
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
********************************************************************
*\addtogroup GUIroute
*\{
********************************************************************/
#include "src/kernel/Defs.h"
#include "src/kernel/error.h"
#include "src/wxGUI/MutFrame.h"
#include "src/wxGUI/Routing/GUIRoute.h"
#include "src/wxGUI/Routing/DeviceShape.h"
#include "src/wxGUI/Routing/RouteIcons.h"
#include "src/wxGUI/Routing/DebugRoute.h"
#include "src/wxGUI/Routing/BoxChannelShape.h"
#include "src/wxGUI/Routing/BoxDlg.h"
#include "src/wxGUI/Routing/InputDevDlg.h"
#include "src/wxGUI/Routing/OutputDevDlg.h"
#include "src/wxGUI/Routing/GUIRoute-inlines.h"
#include <algorithm>
#include "wx/defs.h"
#include "wx/bmpbuttn.h"
#include "wx/msgdlg.h"
//#include "MutApp.h"
//#include "MutIcon.h"
//#include "MutRouteWnd.h"
//#include "InputDevDlg.h"
//#include "Device.h"
// common part of the macros below
#define wxIMPLEMENT_CLASS_COMMON_TEMPLATE1(name, basename, baseclsinfo2, func, T1) \
template<> \
wxClassInfo name<T1>::ms_classInfo(wxT(#name "<" #T1 ">"), \
&basename::ms_classInfo, \
baseclsinfo2, \
(int) sizeof(name<T1>), \
(wxObjectConstructorFn) func); \
template<> \
wxClassInfo *name<T1>::GetClassInfo() const \
{ return &name<T1>::ms_classInfo; }
#define wxIMPLEMENT_CLASS_COMMON1_TEMPLATE1(name, basename, func, T1) \
wxIMPLEMENT_CLASS_COMMON_TEMPLATE1(name, basename, NULL, func, T1)
// Single inheritance with one base class
#define IMPLEMENT_ABSTRACT_CLASS_TEMPLATE1(name, basename, T1) \
wxIMPLEMENT_CLASS_COMMON1_TEMPLATE1(name, basename, NULL, T1)
// Single inheritance with one base class
#define IMPLEMENT_DYNAMIC_CLASS_TEMPLATE1(name, basename, T1) \
template<> \
wxObject* name<T1>::wxCreateObject() \
{ return new name<T1>; } \
wxIMPLEMENT_CLASS_COMMON1_TEMPLATE1(name, basename, \
name<T1>::wxCreateObject, T1)
using namespace mutaborGUI;
using namespace mutabor;
BEGIN_EVENT_TABLE_TEMPLATE1(MutDeviceShape, MutIconShape, T)
EVT_KEY_DOWN(MutDeviceShape::OnKeyDown)
EVT_LEFT_DCLICK(MutDeviceShape::LeftDblClickEvent)
EVT_MENU(CM_MOVE_UP, MutDeviceShape::CmMoveIcon)
EVT_MENU(CM_MOVE_DOWN, MutDeviceShape::CmMoveIcon)
EVT_MENU(CM_DEVICE_STATE_CHANGED, MutDeviceShape::CmDeviceNotification)
EVT_BUTTON(CM_PLAYDEVICE, MutDeviceShape::PlayButtonPressed)
EVT_BUTTON(CM_PAUSEDEVICE, MutDeviceShape::PlayButtonPressed)
EVT_BUTTON(CM_STOPDEVICE, MutDeviceShape::PlayButtonPressed)
END_EVENT_TABLE()
MUTABOR_NAMESPACE(mutaborGUI)
template<class T>
MutDeviceShape<T>::~MutDeviceShape() {
TRACEC;
if (device) {
try {
disconnect(device,this);
TRACEC;
} catch (const mutabor::error::unreachable_exception & e) {
mutabor::unhandled_exception_handler();
}
}
if (playbuttons) delete playbuttons;
TRACEC;
}
template<class T>
bool MutDeviceShape<T>::Create (wxWindow * parent,
wxWindowID id,
devicetype & d)
{
if (!d) return false;
DEBUGLOG (other, ("Checking icon"));
mutASSERT(MidiInputDevBitmap.IsOk());
mutASSERT(MidiOutputDevBitmap.IsOk());
TRACEC;
bool fine =
Create (parent, id, d->GetName());
TRACEC;
if (fine)
connect(d,this);
TRACEC;
return fine;
}
template<class T>
void MutDeviceShape<T>::Add(MutBoxChannelShape * route)
{
#ifdef DEBUG
MutBoxChannelShapeList::iterator pos =
std::find(routes.begin(),routes.end(),route);
mutASSERT(pos == routes.end());
#endif
routes.push_back(route);
// ClearPerimeterPoints();
Refresh();
Update();
}
template<class T>
bool MutDeviceShape<T>::Replace(MutBoxChannelShape * oldroute,
MutBoxChannelShape * newroute)
{
#ifdef DEBUG
MutBoxChannelShapeList::iterator pos =
std::find(routes.begin(),routes.end(),oldroute);
mutASSERT(pos != routes.end());
#endif
bool retval = Remove(oldroute);
Add(newroute);
Recompute();
return retval;
}
template<class T>
bool MutDeviceShape<T>::Remove(MutBoxChannelShape * route)
{
MutBoxChannelShapeList::iterator pos =
std::find(routes.begin(),routes.end(),route);
if (pos == routes.end()) {
UNREACHABLEC;
return false;
} else {
routes.erase(pos);
}
Recompute();
return true;
}
template<class T>
bool MutDeviceShape<T>::MoveRoutes (MutDeviceShape * newclass)
{
routes.swap(newclass->routes);
Recompute();
return true;
}
template<class T>
bool MutDeviceShape<T>::Recompute()
{
// ClearPerimeterPoints();
SetIcon(GetMutIcon());
// SetLabel (filename.GetFullName());
return GetIcon().IsOk();
}
template<class T>
void MutDeviceShape<T>::ReadPanel(FilterPanel * panel,
MutBoxChannelShape * channel)
{
mutASSERT(panel);
mutASSERT(channel);
if (!panel || !channel) return;
bool active = panel->IsShown();
thistype * newShape = panel->GetCurrentSelection();
Route & route = channel->GetRoute();
if (!active) {
TRACEC;
disconnect(channel,this);
TRACEC;
return;
} else if (newShape != this) {
TRACEC;
reconnect(channel,this,newShape);
TRACEC;
}
if (newShape) {
wxWindow * subpanel = panel->GetCurrentDevicePage();
if (!panel) {
UNREACHABLEC;
return;
}
TRACEC;
newShape->ReadFilterPanel(subpanel,route);
}
TRACEC;
}
template<class T>
void MutDeviceShape<T>::OnKeyDown (wxKeyEvent & event) {
if (event.HasModifiers()) {
event.Skip();
return;
}
/* Other inspirations:
case WXK_DELETE:
// cursor keys
*/
switch (event.GetKeyCode()) {
case WXK_NUMPAD_ENTER:
case WXK_RETURN:
case WXK_SPACE:
case WXK_NUMPAD_SPACE:
case WXK_NUMPAD_ADD:
case WXK_ADD:
case WXK_WINDOWS_MENU:
case WXK_MENU:
{
wxCommandEvent command(wxEVT_COMMAND_MENU_SELECTED,
CM_LEFT_DOUBLE_CLICK);
wxPostEvent(this,command);
return;
}
default:
event.Skip();
}
}
/**
* Move the corresponding device in the device list and
* update the GUI according to the new order.
*
* \param event wxCommandEvent containing the request
*/
template <class T>
void MutDeviceShape<T>::CmMoveIcon (wxCommandEvent & event) {
switch (event.GetId()) {
case CM_MOVE_UP:
MoveDevice(-1);
break;
case CM_MOVE_DOWN:
MoveDevice(+1);
break;
}
}
template <class T>
void MutDeviceShape<T>::DoDeviceNotification(wxCommandEvent & mutUNUSED(event))
{
if (!device || !playbuttons) return;
MutaborModeType mode = device->GetMode();
bool open = device->IsOpen();
bool hidePlay = !open;
bool hidePause = hidePlay,
hideStop = hidePlay;
if (open) {
switch (mode) {
case DevicePlay:
hidePlay = true;
break;
case DeviceStop:
hideStop = true;
break;
case DevicePause:
hidePause = true;
break;
case DeviceKilled:
case DeviceUnregistered:
case DeviceInitializing:
case DeviceCompileError:
case DeviceTimingError:
return;
}
}
bool dolayout = false;
wxSizerItemList & playlist = playbuttons->GetChildren();
for (wxSizerItemList::iterator i = playlist.begin();
i != playlist.end(); i++) {
wxWindow * button = (*i)->GetWindow();
bool hide = !open;
switch (button -> GetId()) {
case CM_PLAYDEVICE:
hide = hidePlay;
break;
case CM_STOPDEVICE:
hide = hideStop;
break;
case CM_PAUSEDEVICE:
hide = hidePause;
break;
}
if (hide) {
if (playbuttons->IsShown(button)) {
playbuttons->Hide(button);
dolayout = true;
}
} else {
if (!playbuttons->IsShown(button)) {
playbuttons->Show(button);
dolayout = true;
}
}
}
if (dolayout) {
playbuttons->Layout();
wxSize size = playbuttons->GetMinSize();
playbuttons->SetDimension(0,0,size.GetWidth(),size.GetHeight());
Update();
}
}
template <class T>
void MutDeviceShape<T>::createPlayButtons()
{
mutASSERT(!playbuttons);
playbuttons = new wxBoxSizer(wxVERTICAL);
if (!playbuttons) return;
wxBitmapButton * button =
new wxBitmapButton(this,CM_PLAYDEVICE,DevicePlayBitmap);
playbuttons->Add(button);
button =
new wxBitmapButton(this,CM_PAUSEDEVICE,DevicePauseBitmap);
playbuttons->Add(button);
button =
new wxBitmapButton(this,CM_STOPDEVICE,DeviceStopBitmap);
playbuttons->Add(button);
playbuttons->Layout();
wxSize size = playbuttons->GetMinSize();
playbuttons->SetDimension(0,0,size.GetWidth(),size.GetHeight());
}
template <class T>
void MutDeviceShape<T>::createPauseButton()
{
mutASSERT(!playbuttons);
playbuttons = new wxBoxSizer(wxVERTICAL);
if (!playbuttons) return;
wxBitmapButton * button =
new wxBitmapButton(this,CM_PAUSEDEVICE,DevicePauseBitmap);
playbuttons->Add(button);
playbuttons->Layout();
wxSize size = playbuttons->GetMinSize();
playbuttons->SetDimension(0,0,size.GetWidth(),size.GetHeight());
}
template <class T>
void MutDeviceShape<T>::createRecordButtons()
{
mutASSERT(!playbuttons);
playbuttons = new wxBoxSizer(wxVERTICAL);
if (!playbuttons) return;
wxBitmapButton * button =
new wxBitmapButton(this,CM_PLAYDEVICE,DeviceRecordBitmap);
playbuttons->Add(button);
button =
new wxBitmapButton(this,CM_PAUSEDEVICE,DevicePauseBitmap);
playbuttons->Add(button);
button =
new wxBitmapButton(this,CM_STOPDEVICE,DeviceStopBitmap);
playbuttons->Add(button);
playbuttons->Layout();
wxSize size = playbuttons->GetMinSize();
playbuttons->SetDimension(0,0,size.GetWidth(),size.GetHeight());
}
template <class T>
void MutDeviceShape<T>::PlayButtonPressed(wxCommandEvent & event)
{
if (!device) return;
if (!device->IsOpen()) return;
switch (event.GetId()) {
case CM_PLAYDEVICE:
device -> Play();
break;
case CM_PAUSEDEVICE:
device -> Pause();
break;
case CM_STOPDEVICE:
device -> Stop();
break;
}
}
template <class T>
void MutDeviceShape<T>::DoLeftDblClick() {
TRACEC;
DeviceDialog * dlg = ShowDeviceDialog();
int Res = dlg->ShowModal();
TRACEC;
bool destroySelf = false;
wxWindow * parent = m_parent; // to be availlable after deleten.
TRACEC;
if (Res == wxID_OK) {
DevType type = dlg->GetType();
if (CanHandleType (type)) {
TRACEC;
readDialog (dlg);
} else if (type != DTNotSet) { // assure type is set.
TRACEC;
devicetype dev =
DeviceFactory::Create<devicetype>(type);
if (dev) {
TRACEC;
thistype * newdev =
GUIDeviceFactory::CreateShape (dev,
GetParent());
if (! newdev) {
dlg->Destroy();
UNREACHABLEC;
return;
}
mutASSERT(newdev->device);
TRACEC;
newdev -> readDialog (dlg);
if (LogicOn && !(newdev->device->IsOpen()))
newdev->device->Open();
TRACEC;
destroySelf = replaceSelfBy (newdev);
}
}
} else if (Res == ::wxID_REMOVE) {
TRACEC;
device -> Destroy();
}
// Now, we may be deleted.
dlg->Destroy();
DebugCheckRoutes();
TRACEC;
if (Res != ::wxID_REMOVE && !destroySelf) {
Layout();
InvalidateBestSize();
Fit();
Refresh();
}
if (parent) {
parent->InvalidateBestSize();
parent->Layout();
parent->FitInside();
parent->Refresh();
parent->Update();
} else if (Res != ::wxID_REMOVE && !destroySelf) Update();
/* we don't need to destroy this control.
This should have been done during device destruction
*/
TRACE;
}
template<class T>
typename MutDeviceShape<T>::DeviceDialog * MutDeviceShape<T>::ShowDeviceDialog() {
ABSTRACT_FUNCTIONC;
abort();
}
template <class T>
bool MutDeviceShape<T>::DetachDevice ()
{
wxWindow * parent = m_parent;
wxSizer * sizer = GetContainingSizer();
Hide();
if (sizer) {
sizer -> Detach(this);
}
if (parent) {
parent->Layout();
parent->FitInside();
parent->SetVirtualSize(wxDefaultSize);
parent->Refresh();
parent->Update();
}
TRACEC;
device->Destroy();
TRACEC;
return true;
}
template<class T>
bool MutDeviceShape<T>::replaceSelfBy (thistype * newshape)
{
/** \todo transfer this function to GUIRoute */
mutASSERT (newshape);
mutASSERT (newshape->device);
TRACEC;
if (device) // might be zero as in MutNewInputDeviceShape
device->MoveRoutes(newshape->GetDevice());
TRACEC;
newshape->MoveBeforeInTabOrder (this);
wxSizer * sizer = GetContainingSizer();
sizer -> Replace (this, newshape, false);
newshape->SetFocus();
Hide();
wxWindow * parent = m_parent;
parent->RemoveChild(this);
parent->Layout();
parent->FitInside();
parent->SetVirtualSize(wxDefaultSize);
TRACEC;
device->Destroy();
// at this moment this points to invalid memory
TRACET(MutInputDeviceShape);
return true;
}
// instantiate MutInputDeviceShape
template<>
InputDevDlg * MutInputDeviceShape::ShowDeviceDialog() {
InputDevDlg * in = new InputDevDlg (m_parent);
#ifdef RTMIDI
if (rtmidiin) {
try {
rtmidi::PortList ports = rtmidiin->getPortList();
if (ports.empty()) {
in->AppendPortChoiceNoDevice();
}
else for (rtmidi::PortList::iterator i = ports.begin();
i != ports.end();
++i) {
in->AppendPortChoice(*i);
}
} catch (const rtmidi::Error &error) {
error.printMessage();
in->AppendPortChoiceNoDevice();
}
}
#else
STUBC;
#endif
// in->SetType(DTUnknown);
in->SelectMidiDevice(0);
in->SetMidiFile(wxEmptyString);
in->SetGUIDOFile(wxEmptyString);
InitializeDialog(in);
in->Fit();
return in;
}
template<>
OutputDevDlg * MutOutputDeviceShape::ShowDeviceDialog()
{
OutputDevDlg * out = new OutputDevDlg (m_parent);
#ifdef RTMIDI
if (rtmidiout) {
try {
rtmidi::PortList ports = rtmidiout->getPortList();
if (ports.empty()) {
out->AppendPortChoiceNoDevice();
}
else for (rtmidi::PortList::iterator i = ports.begin();
i != ports.end();
++i) {
out->AppendPortChoice(*i);
}
} catch (const rtmidi::Error &error) {
wxMessageBox(error.getMessage());
error.printMessage();
out->AppendPortChoiceNoDevice();
}
}
#else
/* nMidi = midiInGetNumDevs();
if ( nMidi )
{
for (int i = 0; i < nMidi; i++)
{
MIDIINCAPS miin;
midiInGetDevCaps(i, &miin, sizeof(MIDIINCAPS));
DataR0.Device.AddString(miin.szPname);
}
}
else
DataR0.Device.AddString("no device");*/
#endif
// in->SetType(DTUnknown);
out->SelectMidiDevice(0);
out->SetMidiFile(wxEmptyString);
out->SetGUIDOFile(wxEmptyString);
out->SetMidiBendingRange(2);
out->SetMidiFileBendingRange(2);
InitializeDialog(out);
out->Fit();
return out;
}
IMPLEMENT_ABSTRACT_CLASS_TEMPLATE1(MutDeviceShape, MutIconShape, inputdevicetypes)
IMPLEMENT_ABSTRACT_CLASS_TEMPLATE1(MutDeviceShape, MutIconShape, outputdevicetypes)
template class MutDeviceShape<inputdevicetypes>;
template class MutDeviceShape<outputdevicetypes>;
MUTABOR_NAMESPACE_END(mutaborGUI)
template class std::list<mutaborGUI::MutInputDeviceShape *>;
template class std::list<mutaborGUI::MutOutputDeviceShape *>;
/*
* \}
*/
| keinstein/mutabor | src/wxGUI/Routing/DeviceShape.cpp | C++ | gpl-2.0 | 15,501 |
package teammates.test.cases.action;
import org.testng.annotations.Test;
import teammates.common.datatransfer.DataBundle;
import teammates.common.datatransfer.attributes.FeedbackQuestionAttributes;
import teammates.common.datatransfer.attributes.FeedbackResponseAttributes;
import teammates.common.datatransfer.attributes.FeedbackSessionAttributes;
import teammates.common.datatransfer.attributes.InstructorAttributes;
import teammates.common.datatransfer.questions.FeedbackNumericalScaleQuestionDetails;
import teammates.common.exception.NullPostParameterException;
import teammates.common.util.Const;
import teammates.common.util.EmailType;
import teammates.common.util.EmailWrapper;
import teammates.common.util.StringHelper;
import teammates.common.util.TimeHelper;
import teammates.logic.core.CoursesLogic;
import teammates.storage.api.FeedbackQuestionsDb;
import teammates.storage.api.FeedbackResponsesDb;
import teammates.storage.api.FeedbackSessionsDb;
import teammates.ui.controller.InstructorFeedbackSubmissionEditSaveAction;
import teammates.ui.controller.RedirectResult;
/**
* SUT: {@link InstructorFeedbackSubmissionEditSaveAction}.
*/
public class InstructorFeedbackSubmissionEditSaveActionTest extends BaseActionTest {
private static final CoursesLogic coursesLogic = CoursesLogic.inst();
private final FeedbackSessionsDb fsDb = new FeedbackSessionsDb();
@Override
protected String getActionUri() {
return Const.ActionURIs.INSTRUCTOR_FEEDBACK_SUBMISSION_EDIT_SAVE;
}
@Override
protected void prepareTestData() {
super.prepareTestData();
dataBundle = loadDataBundle("/InstructorFeedbackSubmissionEditSaveActionTest.json");
removeAndRestoreDataBundle(dataBundle);
}
@Override
@Test
public void testExecuteAndPostProcess() {
prepareTestData();
InstructorAttributes instructor1InCourse1 = dataBundle.getInstructors().get("instructor1InCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
______TS("Unsuccessful case: test empty feedback session name parameter");
String[] submissionParams = new String[]{
Const.ParamsNames.COURSE_ID, dataBundle.getFeedbackResponses().get("response1ForQ1S1C1").courseId
};
InstructorFeedbackSubmissionEditSaveAction a;
RedirectResult r;
try {
a = getAction(submissionParams);
r = getRedirectResult(a);
signalFailureToDetectException("Did not detect that parameters are null.");
} catch (NullPostParameterException e) {
assertEquals(String.format(Const.StatusCodes.NULL_POST_PARAMETER,
Const.ParamsNames.FEEDBACK_SESSION_NAME), e.getMessage());
}
______TS("Unsuccessful case: test empty course id parameter");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_SESSION_NAME,
dataBundle.getFeedbackResponses().get("response1ForQ1S1C1").feedbackSessionName
};
try {
a = getAction(submissionParams);
r = getRedirectResult(a);
signalFailureToDetectException("Did not detect that parameters are null.");
} catch (NullPostParameterException e) {
assertEquals(String.format(Const.StatusCodes.NULL_POST_PARAMETER,
Const.ParamsNames.COURSE_ID), e.getMessage());
}
______TS("Successful case: edit existing answer");
FeedbackQuestionsDb fqDb = new FeedbackQuestionsDb();
FeedbackQuestionAttributes fq = fqDb.getFeedbackQuestion("First Session", "idOfCourse1", 1);
assertNotNull("Feedback question not found in database", fq);
FeedbackResponsesDb frDb = new FeedbackResponsesDb();
FeedbackResponseAttributes fr = dataBundle.getFeedbackResponses().get("response1ForQ1S1C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
instructor1InCourse1 = dataBundle.getInstructors().get("instructor1InCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "Edited" + fr.getResponseDetails().getAnswerString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
// submission confirmation email not sent if parameter does not exist
verifyNoEmailsSent(a);
______TS("Successful case: deleted response");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "",
Const.ParamsNames.SEND_SUBMISSION_EMAIL, "on"
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
// submission confirmation email sent
verifyNumberOfEmailsSent(a, 1);
EmailWrapper email = getEmailsSent(a).get(0);
String courseName = coursesLogic.getCourse(fr.courseId).getName();
assertEquals(String.format(EmailType.FEEDBACK_SUBMISSION_CONFIRMATION.getSubject(), courseName,
fr.feedbackSessionName),
email.getSubject());
assertEquals(instructor1InCourse1.email, email.getRecipient());
______TS("Successful case: skipped question");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "",
Const.ParamsNames.SEND_SUBMISSION_EMAIL, "off"
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
// submission confirmation email not sent if parameter is not "on"
verifyNoEmailsSent(a);
______TS("Successful case: new response");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "New " + fr.getResponseDetails().getAnswerString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: edit response, did not specify recipient");
fq = fqDb.getFeedbackQuestion("First Session", "idOfCourse1", 2);
assertNotNull("Feedback question not found in database", fq);
fr = dataBundle.getFeedbackResponses().get("response1ForQ2S1C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-2", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-2-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-2", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-2-0", "student1InCourse1@gmail.tmt",
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-2", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-2-0", "Edited" + fr.getResponseDetails().getAnswerString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: new response, did not specify recipient");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-2", "1",
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-2", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-2-0", "student1InCourse1@gmail.tmt",
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-2", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-2-0", fr.getResponseDetails().getAnswerString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: private session");
fq = fqDb.getFeedbackQuestion("Private Session", "idOfCourse1", 1);
assertNotNull("Feedback question not found in database", fq);
fr = dataBundle.getFeedbackResponses().get("response1ForPrivateSession");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "Edited" + fr.getResponseDetails().getAnswerString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Unsuccessful case: modified recipient to invalid recipient");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", "invalid_recipient_email",
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", fr.getResponseDetails().getAnswerString(),
Const.ParamsNames.SEND_SUBMISSION_EMAIL, "on"
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertTrue(r.isError);
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "instructor1InCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, "invalid_recipient_email"));
// submission confirmation email not sent if the action is an error, even with submission parameter "on"
verifyNoEmailsSent(a);
______TS("Successful case: mcq: typical case");
DataBundle dataBundle = loadDataBundle("/FeedbackSessionQuestionTypeTest.json");
removeAndRestoreDataBundle(dataBundle);
fq = fqDb.getFeedbackQuestion("MCQ Session", "FSQTT.idOfTypicalCourse1", 2);
assertNotNull("Feedback question not found in database", fq);
fr = dataBundle.getFeedbackResponses().get("response1ForQ2S1C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
instructor1InCourse1 = dataBundle.getInstructors().get("instructor1OfCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "It's perfect"
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: mcq: question skipped");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: msq: typical case");
fq = fqDb.getFeedbackQuestion("MSQ Session", "FSQTT.idOfTypicalCourse1", 2);
assertNotNull("Feedback question not found in database", fq);
fr = dataBundle.getFeedbackResponses().get("response1ForQ2S2C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
instructor1InCourse1 = dataBundle.getInstructors().get("instructor1OfCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "It's perfect"
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful csae: msq: question skipped");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString()
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: numerical scale: typical case");
fq = fqDb.getFeedbackQuestion("NUMSCALE Session", "FSQTT.idOfTypicalCourse1", 2);
assertNotNull("Feedback question not found in database", fq);
FeedbackNumericalScaleQuestionDetails fqd =
(FeedbackNumericalScaleQuestionDetails) fq.getQuestionDetails();
fr = dataBundle.getFeedbackResponses().get("response1ForQ2S3C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
instructor1InCourse1 = dataBundle.getInstructors().get("instructor1OfCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "3.5",
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_MIN + "-1-0", Integer.toString(fqd.getMinScale()),
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_MAX + "-1-0", Integer.toString(fqd.getMaxScale()),
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_STEP + "-1-0", StringHelper.toDecimalFormatString(fqd.getStep())
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: numerical scale: question skipped");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "",
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_MIN + "-1-0", Integer.toString(fqd.getMinScale()),
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_MAX + "-1-0", Integer.toString(fqd.getMaxScale()),
Const.ParamsNames.FEEDBACK_QUESTION_NUMSCALE_STEP + "-1-0", StringHelper.toDecimalFormatString(fqd.getStep())
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: const sum: typical case");
fq = fqDb.getFeedbackQuestion("CONSTSUM Session", "FSQTT.idOfTypicalCourse1", 2);
assertNotNull("Feedback question not found in database", fq);
fr = dataBundle.getFeedbackResponses().get("response1ForQ2S4C1");
// necessary to get the correct responseId
fr = frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient);
assertNotNull("Feedback response not found in database", fr);
FeedbackResponseAttributes fr2 = dataBundle.getFeedbackResponses().get("response2ForQ2S4C1");
// necessary to get the correct responseId
fr2 = frDb.getFeedbackResponse(fq.getId(), fr2.giver, fr2.recipient);
assertNotNull("Feedback response not found in database", fr2);
instructor1InCourse1 = dataBundle.getInstructors().get("instructor1OfCourse1");
gaeSimulation.loginAsInstructor(instructor1InCourse1.googleId);
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "2",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", "150",
//Const sum question needs response to each recipient to sum up properly.
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-1", fr2.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr2.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr2.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr2.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-1", fr2.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr2.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-1", "50",
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertFalse(r.isError);
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
assertNotNull(frDb.getFeedbackResponse(fq.getId(), fr2.giver, fr2.recipient));
______TS("Successful case: const sum: question skipped");
submissionParams = new String[]{
Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL + "-1", "1",
Const.ParamsNames.FEEDBACK_RESPONSE_ID + "-1-0", fr.getId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fr.feedbackSessionName,
Const.ParamsNames.COURSE_ID, fr.courseId,
Const.ParamsNames.FEEDBACK_QUESTION_ID + "-1", fr.feedbackQuestionId,
Const.ParamsNames.FEEDBACK_RESPONSE_RECIPIENT + "-1-0", fr.recipient,
Const.ParamsNames.FEEDBACK_QUESTION_TYPE + "-1", fr.feedbackQuestionType.toString(),
Const.ParamsNames.FEEDBACK_RESPONSE_TEXT + "-1-0", ""
};
a = getAction(submissionParams);
r = getRedirectResult(a);
assertFalse(r.isError);
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, r.isError, "FSQTT.idOfInstructor1OfCourse1"),
r.getDestinationWithParams());
assertNull(frDb.getFeedbackResponse(fq.getId(), fr.giver, fr.recipient));
______TS("Successful case: contrib qn: typical case");
// No tests since contrib qn can only be answered by students to own team members including self.
}
@Test
public void testGracePeriodExecuteAndPostProcess() throws Exception {
dataBundle = loadDataBundle("/InstructorFeedbackSubmissionEditSaveActionTest.json");
FeedbackSessionsDb feedbackSessionDb = new FeedbackSessionsDb();
FeedbackSessionAttributes fs = dataBundle.getFeedbackSessions().get("Grace Period Session");
InstructorAttributes instructor = dataBundle.getInstructors().get("instructor1InCourse1");
gaeSimulation.loginAsInstructor(instructor.googleId);
String[] submissionParams = new String[]{
Const.ParamsNames.COURSE_ID, fs.getCourseId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fs.getFeedbackSessionName()
};
______TS("opened");
fs.setEndTime(TimeHelper.getDateOffsetToCurrentTime(1));
feedbackSessionDb.updateFeedbackSession(fs);
assertTrue(fs.isOpened());
assertFalse(fs.isInGracePeriod());
InstructorFeedbackSubmissionEditSaveAction a = getAction(submissionParams);
RedirectResult r = getRedirectResult(a);
assertEquals(
getPageResultDestination(
Const.ActionURIs.INSTRUCTOR_HOME_PAGE, false, "instructor1InCourse1"),
r.getDestinationWithParams());
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertFalse(r.isError);
______TS("during grace period");
fs.setEndTime(TimeHelper.getDateOffsetToCurrentTime(0));
feedbackSessionDb.updateFeedbackSession(fs);
assertFalse(fs.isOpened());
assertTrue(fs.isInGracePeriod());
a = getAction(submissionParams);
r = getRedirectResult(a);
assertEquals(
getPageResultDestination(Const.ActionURIs.INSTRUCTOR_HOME_PAGE, false, "instructor1InCourse1"),
r.getDestinationWithParams());
assertEquals(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED, r.getStatusMessage());
assertFalse(r.isError);
______TS("after grace period");
fs.setEndTime(TimeHelper.getDateOffsetToCurrentTime(-10));
feedbackSessionDb.updateFeedbackSession(fs);
assertFalse(fs.isOpened());
assertFalse(fs.isInGracePeriod());
a = getAction(submissionParams);
r = getRedirectResult(a);
assertEquals(Const.StatusMessages.FEEDBACK_SUBMISSIONS_NOT_OPEN, r.getStatusMessage());
}
@Override
protected InstructorFeedbackSubmissionEditSaveAction getAction(String... params) {
return (InstructorFeedbackSubmissionEditSaveAction) gaeSimulation.getActionObject(getActionUri(), params);
}
@Override
@Test
protected void testAccessControl() throws Exception {
dataBundle = getTypicalDataBundle();
FeedbackSessionAttributes fs = dataBundle.getFeedbackSessions().get("session1InCourse1");
String[] submissionParams = new String[]{
Const.ParamsNames.COURSE_ID, fs.getCourseId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fs.getFeedbackSessionName()
};
verifyUnaccessibleWithoutSubmitSessionInSectionsPrivilege(submissionParams);
verifyOnlyInstructorsOfTheSameCourseCanAccess(submissionParams);
testGracePeriodAccessControlForInstructors();
}
private void testGracePeriodAccessControlForInstructors() throws Exception {
dataBundle = getTypicalDataBundle();
FeedbackSessionAttributes fs = dataBundle.getFeedbackSessions().get("gracePeriodSession");
closeSession(fs);
assertFalse(fs.isOpened());
assertTrue(fs.isInGracePeriod());
assertFalse(fs.isClosed());
String[] submissionParams = new String[]{
Const.ParamsNames.COURSE_ID, fs.getCourseId(),
Const.ParamsNames.FEEDBACK_SESSION_NAME, fs.getFeedbackSessionName()
};
verifyOnlyInstructorsOfTheSameCourseCanAccess(submissionParams);
}
private void closeSession(FeedbackSessionAttributes fs) throws Exception {
fs.setEndTime(TimeHelper.getDateOffsetToCurrentTime(0));
fsDb.updateFeedbackSession(fs);
}
}
| Gorgony/teammates | src/test/java/teammates/test/cases/action/InstructorFeedbackSubmissionEditSaveActionTest.java | Java | gpl-2.0 | 34,801 |
# accounts/authentication.py
import requests
import logging
from django.conf import settings
from django.contrib.auth import get_user_model
logger = logging.getLogger(__name__)
User = get_user_model()
PERSONA_VERIFY_URL = 'https://verifier.login.persona.org/verify'
#DOMAIN = 'localhost'
#DOMAIN = 'http://hotzenplotz.pythonanywhere.com'
class PersonaAuthenticationBackend(object):
def authenticate(self, assertion):
logging.warning('entering authenticate function')
response = requests.post(
PERSONA_VERIFY_URL,
data = {'assertion': assertion, 'audience': settings.DOMAIN}
)
logging.warning('got response from persona')
logging.warning(response.content.decode())
if response.ok and response.json()['status'] == 'okay':
email = response.json()['email']
try:
return User.objects.get(email=email)
except User.DoesNotExist:
return User.objects.create(email=email)
else:
logger.warning(
'Persona says no. Json was: {}'.format(response.json())
)
def get_user(self, email):
try:
return User.objects.get(email=email)
except User.DoesNotExist:
return None
| thomec/tango | accounts/authentication.py | Python | gpl-2.0 | 1,296 |
#include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include <set>
#include <stdio.h>
#include <algorithm>
using namespace std;
typedef unsigned long long U64;
typedef int S32;
typedef unsigned int U32;
typedef struct tag_things
{
U64 nCode; // 编码
S32 nLongitude; // 经度
S32 nLatitude; // 纬度
U32 nType:8;
U32 nGender: 2; // 性别,1男2女
U32 nSub:8;
U32 nFish:7; //投放的鱼克数(最大100g)
U32 nGears:3; //投放档位
#define _Gear_L0 0 // 无限制
#define _Gear_L1 1 // 1公里
#define _Gear_L2 2 // 4公里
#define _Gear_L3 3 // 8公里
#define _Gear_L4 4 // 20公里
U32 nRe:4; // 保留
U32 nRe2;
} Record_Things;
bool operator<(const tag_things &lhs, const tag_things &rhs)
{
if (lhs.nCode != rhs.nCode)
{
return lhs.nCode < rhs.nCode;
}
if (lhs.nLatitude != rhs.nLatitude)
{
return lhs.nLatitude < rhs.nLatitude;
}
if (lhs.nLongitude != rhs.nLongitude)
{
return lhs.nLongitude < rhs.nLongitude;
}
return false;
}
int main(int argc, char *argv[])
{
if (argc != 2)
{
cerr << "No input file!" << endl;
return -1;
}
FILE *fp = fopen(argv[1], "r");
int num = 0;
int cnt = 0;
fread(&num, sizeof(int), 1, fp);
printf("num: %d\n", num);
Record_Things thing;
set<Record_Things> rec_set;
while (!feof(fp) && cnt < num)
{
fread(&thing, sizeof(Record_Things), 1, fp);
rec_set.insert(thing);
// printf("%lld, %d, %d, %d\n", thing.nCode, thing.nLongitude,
// thing.nLatitude, thing.nRe2);
++cnt;
}
fclose(fp);
// ofstream out_file("1.dat");
// out_file << num;
// ostream_iterator<Record_Things> out_it(out_file, "");
// copy(rec_set.begin(), rec_set.end(), out_it);
// out.close();
fp = fopen("1.dat", "wb");
fwrite(&num, sizeof(int), 1, fp);
cout << sizeof(Record_Things) << endl;
for (auto it = rec_set.begin(); it != rec_set.end(); ++it)
{
// cout << it->nCode << ", " << it->nLongitude << ", " << it->nLatitude
// << ", " << it->nRe2 << endl;
// out_file << *it;
fwrite(&*it, sizeof(Record_Things), 1, fp);
cout << sizeof(*it) << endl;
}
// out_file.close();
return 0;
} | opensvn/cpp_primer_5th | set_rec.cc | C++ | gpl-2.0 | 2,553 |
import os
import sys
import subprocess
testP = {
"2005": [
{
"date": "2005-10-17",
"videos": [
"http://thecolbertreport.cc.com/videos/61f6xj/intro---10-17-05",
"http://thecolbertreport.cc.com/videos/w9dr6d/first-show",
"http://thecolbertreport.cc.com/videos/63ite2/the-word---truthiness",
"http://thecolbertreport.cc.com/videos/2hvbwp/threatdown---bird-flu",
"http://thecolbertreport.cc.com/videos/ydz3a0/stone-phillips",
"http://thecolbertreport.cc.com/videos/4ewylv/gravitas-off-with-stone-phillips",
"http://thecolbertreport.cc.com/videos/e3mrnm/sign-off---commemorating-chewbacca-s-american-citizenship"
],
"guest": "Stone Phillips"
},
{
"date": "2005-10-18",
"videos": [
"http://thecolbertreport.cc.com/videos/u39l6v/intro---10-18-05",
"http://thecolbertreport.cc.com/videos/kzin67/the-word---bacchanalia",
"http://thecolbertreport.cc.com/videos/5icgst/all-you-need-to-know---illegal-immigration",
"http://thecolbertreport.cc.com/videos/fydq17/lesley-stahl",
"http://thecolbertreport.cc.com/videos/235ftw/better-know-a-district---georgia-s-1st---jack-kingston",
"http://thecolbertreport.cc.com/videos/joj31r/sign-off---a-fax-from-james-brady"
],
"guest": "Lesley Stahl"
},
{
"date": "2005-10-19",
"videos": [
"http://thecolbertreport.cc.com/videos/vmoc19/intro---10-19-05",
"http://thecolbertreport.cc.com/videos/gpmykq/the-word---disappointed",
"http://thecolbertreport.cc.com/videos/95k30i/stephen-settles-the-debate---whales-and-cod-vs--polar-bears-and-seal-hunters",
"http://thecolbertreport.cc.com/videos/p42ju6/on-notice---bobby-s-candy-apples",
"http://thecolbertreport.cc.com/videos/malmcz/tip-wag---teen-pregnancy---katie-s-no-lady",
"http://thecolbertreport.cc.com/videos/db0w9q/fareed-zakaria",
"http://thecolbertreport.cc.com/videos/8kkcau/sign-off---the-in-box---you-re-great"
],
"guest": "Fareed Zakaria"
},
{
"date": "2005-10-20",
"videos": [
"http://thecolbertreport.cc.com/videos/rwhdnt/intro---10-20-05",
"http://thecolbertreport.cc.com/videos/p1n8k4/avian-flu",
"http://thecolbertreport.cc.com/videos/mk7yrx/russ-lieber---candy-and-air",
"http://thecolbertreport.cc.com/videos/cz3euw/un-american-news---the-foreign-press",
"http://thecolbertreport.cc.com/videos/j1b7vj/jim-cramer",
"http://thecolbertreport.cc.com/videos/rohluc/sign-off---credit-cards",
"http://thecolbertreport.cc.com/videos/24lb41/the-word---love-handles"
],
"guest": "Jim Cramer"
},
{
"date": "2005-10-24",
"videos": [
"http://thecolbertreport.cc.com/videos/67cs19/intro---10-24-05",
"http://thecolbertreport.cc.com/videos/gv2cjs/the-word---pussy",
"http://thecolbertreport.cc.com/videos/i491tt/lou-dobbs",
"http://thecolbertreport.cc.com/videos/dd1sbx/fract---the-wright-brothers",
"http://thecolbertreport.cc.com/videos/wtqx4r/bring--em-back-or-leave--em-dead---inquisition",
"http://thecolbertreport.cc.com/videos/qgvny1/mug-shot",
"http://thecolbertreport.cc.com/videos/vuftif/against-the-pundocracy"
],
"guest": "Lou Dobbs"
},
{
"date": "2005-10-25",
"videos": [
"http://thecolbertreport.cc.com/videos/lldiq0/intro---10-25-05",
"http://thecolbertreport.cc.com/videos/whvmzj/benjamin-shalom-bernanke",
"http://thecolbertreport.cc.com/videos/iqvyat/the-word---overrated",
"http://thecolbertreport.cc.com/videos/qwe0c7/threatdown---anti-bacterial-soap",
"http://thecolbertreport.cc.com/videos/7ioxmq/greg-behrendt",
"http://thecolbertreport.cc.com/videos/nwkm8y/greg-behrendt-fields-calls",
"http://thecolbertreport.cc.com/videos/vzk1ho/yet-another-day---soup-and-pets"
],
"guest": "Greg Behrendt"
},
{
"date": "2005-10-26",
"videos": [
"http://thecolbertreport.cc.com/videos/nxsljd/intro---10-26-05",
"http://thecolbertreport.cc.com/videos/39lnsj/outsourcing",
"http://thecolbertreport.cc.com/videos/7o86ff/the-word---perspective",
"http://thecolbertreport.cc.com/videos/yuq4bm/neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/5fyjl2/tip-wag---public-nudity-advice",
"http://thecolbertreport.cc.com/videos/wsfpru/the-pulse"
],
"guest": "Neil deGrasse Tyson"
},
{
"date": "2005-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/ap807f/intro---10-27-05",
"http://thecolbertreport.cc.com/videos/nb6dxf/lieber---white-pumpkins",
"http://thecolbertreport.cc.com/videos/llj5fu/the-word---quitter",
"http://thecolbertreport.cc.com/videos/1vbs16/bookshelf-of-broken-dreams",
"http://thecolbertreport.cc.com/videos/ynldrg/fract---the-states",
"http://thecolbertreport.cc.com/videos/zyop79/better-know-a-district---massachusetts--4th---barney-frank",
"http://thecolbertreport.cc.com/videos/h9zw2j/jeff-daniels",
"http://thecolbertreport.cc.com/videos/3eb29d/yet-another-day---checking-in-with-christina-and-ernesto"
],
"guest": "Jeff Daniels"
},
{
"date": "2005-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/11fva6/intro---10-31-05",
"http://thecolbertreport.cc.com/videos/mqoacz/criminal-intent",
"http://thecolbertreport.cc.com/videos/p3782h/patrick-fitzgerald-s-press-conference",
"http://thecolbertreport.cc.com/videos/ey4w8s/the-word---alito",
"http://thecolbertreport.cc.com/videos/jfbl04/monica-crowley",
"http://thecolbertreport.cc.com/videos/sxj08u/fract---greatest-lakes",
"http://thecolbertreport.cc.com/videos/5d63df/stephen-settles-the-debate---ramadan-or-halloween-",
"http://thecolbertreport.cc.com/videos/qc29ld/rocktober"
],
"guest": "Monica Crowley"
},
{
"date": "2005-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/1zu9d3/intro---11-1-05",
"http://thecolbertreport.cc.com/videos/r7fmyb/the-word---camilla-mania",
"http://thecolbertreport.cc.com/videos/ufgobt/emergency-evacuation-plan",
"http://thecolbertreport.cc.com/videos/b7u1wy/ken-burns",
"http://thecolbertreport.cc.com/videos/kpjrtm/formidable-opponent---charity"
],
"guest": "Ken Burns"
},
{
"date": "2005-11-02",
"videos": [
"http://thecolbertreport.cc.com/videos/1kskdq/intro---11-2-05",
"http://thecolbertreport.cc.com/videos/xp1gbs/fatwa",
"http://thecolbertreport.cc.com/videos/8e6qo8/c-span-coverage",
"http://thecolbertreport.cc.com/videos/ayw8g9/the-word---cat",
"http://thecolbertreport.cc.com/videos/ey3oos/fract---civil-war",
"http://thecolbertreport.cc.com/videos/9438aw/the-war-on-wal-mart",
"http://thecolbertreport.cc.com/videos/nvopei/bruce-feiler",
"http://thecolbertreport.cc.com/videos/6v0azb/lieber---one-testicle"
],
"guest": "Bruce Feiler"
},
{
"date": "2005-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/4g6fdp/intro---11-3-05",
"http://thecolbertreport.cc.com/videos/9lmjfq/the-word---shhhh----",
"http://thecolbertreport.cc.com/videos/tq3k8n/bradley-whitford",
"http://thecolbertreport.cc.com/videos/wwof8g/fract---karl-marx",
"http://thecolbertreport.cc.com/videos/cxtvxm/better-know-a-district---ohio-s-11th---stephanie-tubbs-jones",
"http://thecolbertreport.cc.com/videos/86juj9/judge-tubbs",
"http://thecolbertreport.cc.com/videos/mkig56/the-in-box---kicking-ass"
],
"guest": "Bradley Whitford"
},
{
"date": "2005-11-07",
"videos": [
"http://thecolbertreport.cc.com/videos/lbtbtl/intro---11-7-05",
"http://thecolbertreport.cc.com/videos/s0yn8n/rioting-do-s-and-don-ts",
"http://thecolbertreport.cc.com/videos/2iezg1/the-word---hoser",
"http://thecolbertreport.cc.com/videos/dzis1b/fract---frnap--the-freedom-snap",
"http://thecolbertreport.cc.com/videos/1xhewi/threatdown---pirates",
"http://thecolbertreport.cc.com/videos/fjfr4z/eliot-spitzer",
"http://thecolbertreport.cc.com/videos/ufqqpc/rock--em-sock--em-robots"
],
"guest": "Eliot Spitzer"
},
{
"date": "2005-11-08",
"videos": [
"http://thecolbertreport.cc.com/videos/2lgs12/intro---11-8-05",
"http://thecolbertreport.cc.com/videos/5lxdom/america-doesn-t-torture",
"http://thecolbertreport.cc.com/videos/xul3qa/intercepted-satellite-feed",
"http://thecolbertreport.cc.com/videos/huzs1z/the-word---t-o-",
"http://thecolbertreport.cc.com/videos/7nl1pw/fract---franagram--american-patriot",
"http://thecolbertreport.cc.com/videos/wgvsjo/tip-wag---convicted-murderers",
"http://thecolbertreport.cc.com/videos/0l19is/catherine-crier",
"http://thecolbertreport.cc.com/videos/6zdr9d/wilford-brimley-calls---cocoon",
"http://thecolbertreport.cc.com/videos/ykxirt/yet-another-day---flesh-eating-virus"
],
"guest": "Catherine Crier"
},
{
"date": "2005-11-09",
"videos": [
"http://thecolbertreport.cc.com/videos/s6miz8/intro---11-9-05",
"http://thecolbertreport.cc.com/videos/5fvmyv/next-question",
"http://thecolbertreport.cc.com/videos/bcmkct/the-word---willy-loman",
"http://thecolbertreport.cc.com/videos/43es16/all-you-need-to-know---kansas-education",
"http://thecolbertreport.cc.com/videos/nzfogn/mary-roach",
"http://thecolbertreport.cc.com/videos/gqeqrk/better-know-a-district---florida-s-7th---john-mica"
],
"guest": "Mary Roach"
},
{
"date": "2005-11-10",
"videos": [
"http://thecolbertreport.cc.com/videos/jqfk3o/intro---11-10-05",
"http://thecolbertreport.cc.com/videos/8c7dra/swear-to-god",
"http://thecolbertreport.cc.com/videos/9kcrqk/the-word---armistice",
"http://thecolbertreport.cc.com/videos/o63fqi/cokie-roberts",
"http://thecolbertreport.cc.com/videos/bd1uuq/the-in-box---asian-stereotypes",
"http://thecolbertreport.cc.com/videos/c0bksd/the-dacolbert-code---samuel-alito"
],
"guest": "Cokie Roberts"
},
{
"date": "2005-11-14",
"videos": [
"http://thecolbertreport.cc.com/videos/e5zymg/intro---11-14-05",
"http://thecolbertreport.cc.com/videos/gfzikt/cma-buzz",
"http://thecolbertreport.cc.com/videos/jaukv1/the-word---testosterone",
"http://thecolbertreport.cc.com/videos/oel1ef/bob-kerrey",
"http://thecolbertreport.cc.com/videos/2lpp85/tip-line---flag-sticker",
"http://thecolbertreport.cc.com/videos/1wb4cs/un-american-news---shame-cotton",
"http://thecolbertreport.cc.com/videos/kuqe6u/internets-anniversary"
],
"guest": "Sen. Bob Kerrey"
},
{
"date": "2005-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/c8h749/intro---11-15-05",
"http://thecolbertreport.cc.com/videos/9jy462/sayako-s-wedding",
"http://thecolbertreport.cc.com/videos/yctr24/the-word---the-orient",
"http://thecolbertreport.cc.com/videos/4z4p4o/bring--em-back-or-leave--em-dead---asian-history",
"http://thecolbertreport.cc.com/videos/94g5r1/al-sharpton",
"http://thecolbertreport.cc.com/videos/9disf3/fract---mt--rushmore",
"http://thecolbertreport.cc.com/videos/w11pi7/formidable-opponent---torture"
],
"guest": "Rev. Al Sharpton"
},
{
"date": "2005-11-16",
"videos": [
"http://thecolbertreport.cc.com/videos/nl3o0c/intro---11-16-05",
"http://thecolbertreport.cc.com/videos/ebxyv5/the-word---information",
"http://thecolbertreport.cc.com/videos/eh69qj/on-notice-dead-to-me---juan-gabriel",
"http://thecolbertreport.cc.com/videos/h1e498/better-know-a-district---colorado-s-2nd---mark-udall",
"http://thecolbertreport.cc.com/videos/ddef4x/matt-taibbi",
"http://thecolbertreport.cc.com/videos/4kvhir/america--sleep-safe"
],
"guest": "Matt Taibbi"
},
{
"date": "2005-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/zl8rtq/intro---11-17-05",
"http://thecolbertreport.cc.com/videos/f8fusi/no-good-deed",
"http://thecolbertreport.cc.com/videos/pxeto4/the-word---mcconaughey-",
"http://thecolbertreport.cc.com/videos/bypiaq/threatdown---children",
"http://thecolbertreport.cc.com/videos/smm3x9/tim-robbins",
"http://thecolbertreport.cc.com/videos/wk6dps/here-today--more-tomorrow",
"http://thecolbertreport.cc.com/videos/8sxlv8/thanksgiving-vacation"
],
"guest": "Tim Robbins"
},
{
"date": "2005-11-28",
"videos": [
"http://thecolbertreport.cc.com/videos/sf87bf/intro---11-28-05",
"http://thecolbertreport.cc.com/videos/nrf3km/cyber-monday",
"http://thecolbertreport.cc.com/videos/sqsdz6/the-word---never",
"http://thecolbertreport.cc.com/videos/r6xqra/viewer-phone-calls",
"http://thecolbertreport.cc.com/videos/vdncvg/stephen-settles-the-debate---science-vs--faith",
"http://thecolbertreport.cc.com/videos/507rw4/brian-greene",
"http://thecolbertreport.cc.com/videos/ngo5nh/sign-off---check-your-local-listings"
],
"guest": "Brian Greene"
},
{
"date": "2005-11-29",
"videos": [
"http://thecolbertreport.cc.com/videos/4yku0o/intro---11-29-05",
"http://thecolbertreport.cc.com/videos/zaot6p/better-know-a-district---california-s-50th---randy--duke--cunningham",
"http://thecolbertreport.cc.com/videos/o2kdz0/the-word---confidence",
"http://thecolbertreport.cc.com/videos/6f1i25/was-it-really-that-bad----black-death",
"http://thecolbertreport.cc.com/videos/75dr62/the--duke-s--things",
"http://thecolbertreport.cc.com/videos/rtbpes/richard-preston"
],
"guest": "Richard Preston"
},
{
"date": "2005-11-30",
"videos": [
"http://thecolbertreport.cc.com/videos/951mir/intro---11-30-05",
"http://thecolbertreport.cc.com/videos/jsl09o/the-word---gay-gay-gay-gay-gay",
"http://thecolbertreport.cc.com/videos/h7okp1/fract---nobody-messes-with-house",
"http://thecolbertreport.cc.com/videos/ut6y25/katrina-vanden-heuvel",
"http://thecolbertreport.cc.com/videos/0frx2n/around-the-world-in-11-6-seconds---media"
],
"guest": "Katrina Vanden Heuvel"
},
{
"date": "2005-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/j4tan3/intro---12-1-05",
"http://thecolbertreport.cc.com/videos/bocj8y/giant-gold-washer",
"http://thecolbertreport.cc.com/videos/w4dblj/the-word---spectacle",
"http://thecolbertreport.cc.com/videos/3yvygm/tip-wag---seattle",
"http://thecolbertreport.cc.com/videos/idpn3b/richard-clarke",
"http://thecolbertreport.cc.com/videos/9icneu/face-transplant"
],
"guest": "Richard Clarke"
},
{
"date": "2005-12-05",
"videos": [
"http://thecolbertreport.cc.com/videos/0yxnmj/intro---12-5-05",
"http://thecolbertreport.cc.com/videos/utqsnp/kennedy-center-honors",
"http://thecolbertreport.cc.com/videos/278dqm/the-word---xmas",
"http://thecolbertreport.cc.com/videos/6ulwwh/apology",
"http://thecolbertreport.cc.com/videos/sg4wi3/this-week-in-history---december-4th-10th",
"http://thecolbertreport.cc.com/videos/p01a0h/colbert-nation-citizen-award",
"http://thecolbertreport.cc.com/videos/djl273/maureen-dowd"
],
"guest": "Maureen Dowd"
},
{
"date": "2005-12-06",
"videos": [
"http://thecolbertreport.cc.com/videos/ad0e3u/intro---12-6-05",
"http://thecolbertreport.cc.com/videos/l23e5t/the-word---backsies",
"http://thecolbertreport.cc.com/videos/c6b939/better-know-a-district---virginia-s-8th---jim-moran",
"http://thecolbertreport.cc.com/videos/bgq83k/fract---the-star-spangled-banner",
"http://thecolbertreport.cc.com/videos/mjqiqk/anderson-cooper",
"http://thecolbertreport.cc.com/videos/jo01oi/season-of-giving"
],
"guest": "Anderson Cooper"
},
{
"date": "2005-12-07",
"videos": [
"http://thecolbertreport.cc.com/videos/uvfu4h/intro---12-7-05",
"http://thecolbertreport.cc.com/videos/k5nni4/burritos-happy-holidays",
"http://thecolbertreport.cc.com/videos/rmm1zo/the-word---hell--no-",
"http://thecolbertreport.cc.com/videos/5ti5hp/threatdown---threats",
"http://thecolbertreport.cc.com/videos/1buius/craig-crawford"
],
"guest": "Craig Crawford"
},
{
"date": "2005-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/muvtpz/intro---12-8-07",
"http://thecolbertreport.cc.com/videos/zo8qem/the-mallomar",
"http://thecolbertreport.cc.com/videos/9zltfz/the-word---satisfied-",
"http://thecolbertreport.cc.com/videos/zc6wzp/papa-bear-nailed-him",
"http://thecolbertreport.cc.com/videos/0k58ru/movies-that-are-destroying-america---christmas",
"http://thecolbertreport.cc.com/videos/f63xob/peggy-noonan",
"http://thecolbertreport.cc.com/videos/huxiwh/nationwide-secret-santa"
],
"guest": "Peggy Noonan"
},
{
"date": "2005-12-12",
"videos": [
"http://thecolbertreport.cc.com/videos/26ln5h/intro---12-12-05",
"http://thecolbertreport.cc.com/videos/th38l3/the-real-christmas",
"http://thecolbertreport.cc.com/videos/xld8bn/the-word---belly-achin-",
"http://thecolbertreport.cc.com/videos/4qrc6w/un-american-news---tootsie",
"http://thecolbertreport.cc.com/videos/gljaa1/fract---war",
"http://thecolbertreport.cc.com/videos/tos96b/harry-smith",
"http://thecolbertreport.cc.com/videos/onf96q/the-in-box---custom-stamps"
],
"guest": "Harry Smith"
},
{
"date": "2005-12-13",
"videos": [
"http://thecolbertreport.cc.com/videos/hh6w14/intro---12-13-05",
"http://thecolbertreport.cc.com/videos/f3vpvn/the-de-ballification-of-the-american-sportscape",
"http://thecolbertreport.cc.com/videos/omscph/the-word---lombardi",
"http://thecolbertreport.cc.com/videos/53a836/sports-update",
"http://thecolbertreport.cc.com/videos/reee2h/formidable-opponent---steroids",
"http://thecolbertreport.cc.com/videos/raw18i/fract---nba",
"http://thecolbertreport.cc.com/videos/mopfat/bob-costas",
"http://thecolbertreport.cc.com/videos/97uhmb/sign-off---excellence-in-everything"
],
"guest": "Bob Costas"
},
{
"date": "2005-12-14",
"videos": [
"http://thecolbertreport.cc.com/videos/irtzij/intro---12-14-05",
"http://thecolbertreport.cc.com/videos/rxzsfq/king-kong",
"http://thecolbertreport.cc.com/videos/g7vs24/the-word---travolta",
"http://thecolbertreport.cc.com/videos/j8pyop/tip-wag---redefining-cruel-and-unusual",
"http://thecolbertreport.cc.com/videos/po8ta2/dermot-mulroney",
"http://thecolbertreport.cc.com/videos/nf6l8d/sign-off---three-stockings"
],
"guest": "Dermot Mulroney"
},
{
"date": "2005-12-15",
"videos": [
"http://thecolbertreport.cc.com/videos/12ie90/intro---12-15-05",
"http://thecolbertreport.cc.com/videos/7x2gjd/war-on-holiday",
"http://thecolbertreport.cc.com/videos/1286w8/the-word---jetpack",
"http://thecolbertreport.cc.com/videos/4epy8c/better-know-a-district---new-york-s-11th---major-owens",
"http://thecolbertreport.cc.com/videos/gn64jt/mark-cuban",
"http://thecolbertreport.cc.com/videos/9d08kf/tax-deductions"
],
"guest": "Mark Cuban"
}
],
"2006": [
{
"date": "2006-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/ccm8j9/intro---1-9-2006",
"http://thecolbertreport.cc.com/videos/gfhklq/merry-christmas",
"http://thecolbertreport.cc.com/videos/k2b0t4/going-at-it",
"http://thecolbertreport.cc.com/videos/tfsnjk/the-lusk-alito-connection",
"http://thecolbertreport.cc.com/videos/zvszwh/the-word---there-is-no-word",
"http://thecolbertreport.cc.com/videos/wm808s/tip-wag---addicted-to-cute",
"http://thecolbertreport.cc.com/videos/fx17nm/fract---columbus",
"http://thecolbertreport.cc.com/videos/nctzb0/nancy-grace",
"http://thecolbertreport.cc.com/videos/vt9veh/on-notice-dead-to-me---word-of-the-year"
],
"guest": "Nancy Grace"
},
{
"date": "2006-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/zffhux/intro---1-10-02",
"http://thecolbertreport.cc.com/videos/znlsxv/off-notice---the-e-street-band",
"http://thecolbertreport.cc.com/videos/jz3vjq/the-word---sleeper-cell",
"http://thecolbertreport.cc.com/videos/fzr3d5/balls-for-kidz---bear-hunting",
"http://thecolbertreport.cc.com/videos/uk2dty/carl-bernstein",
"http://thecolbertreport.cc.com/videos/lppcfe/the-in-box---taking-a-bullet"
],
"guest": "Carl Bernstein"
},
{
"date": "2006-01-11",
"videos": [
"http://thecolbertreport.cc.com/videos/yq13d1/intro---1-11-06",
"http://thecolbertreport.cc.com/videos/kci614/colbert-report-consumer-alert",
"http://thecolbertreport.cc.com/videos/ho8xgd/alito-haters",
"http://thecolbertreport.cc.com/videos/vko8sm/the-word---whatever",
"http://thecolbertreport.cc.com/videos/bbh162/threatdown---fathers-and-sons",
"http://thecolbertreport.cc.com/videos/o71qa3/fract---colbert-trivia",
"http://thecolbertreport.cc.com/videos/4z25yz/john-stossel",
"http://thecolbertreport.cc.com/videos/gsuxni/sign-off---future-money"
],
"guest": "John Stossel"
},
{
"date": "2006-01-12",
"videos": [
"http://thecolbertreport.cc.com/videos/vkw0ea/intro---1-12-06",
"http://thecolbertreport.cc.com/videos/smz33e/the-oscars",
"http://thecolbertreport.cc.com/videos/hldbza/the-word---double-stick-tape",
"http://thecolbertreport.cc.com/videos/ycx56p/better-know-a-district---new-jersey-s-9th---steven-rothman",
"http://thecolbertreport.cc.com/videos/4huh6w/fract---frnap--monarchy",
"http://thecolbertreport.cc.com/videos/2qbk3w/kenneth-miller",
"http://thecolbertreport.cc.com/videos/393ez5/michael-adams--apology"
],
"guest": "Ken Miller"
},
{
"date": "2006-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/hk33gu/intro---1-16-06",
"http://thecolbertreport.cc.com/videos/sfiw6u/martin-luther-king-jr--day",
"http://thecolbertreport.cc.com/videos/a3wcdf/the-word---cerrado-",
"http://thecolbertreport.cc.com/videos/7te5id/movies-that-are-destroying-america---transamerica",
"http://thecolbertreport.cc.com/videos/2zgm7q/fract---captain-north-korea",
"http://thecolbertreport.cc.com/videos/39qjdh/george-stephanopoulos",
"http://thecolbertreport.cc.com/videos/1jvqfi/sign-off---i-have-a-dreamsicle"
],
"guest": "George Stephanopoulos"
},
{
"date": "2006-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/btjtm2/intro---1-17-2006",
"http://thecolbertreport.cc.com/videos/uhh2bv/the-golden-globes",
"http://thecolbertreport.cc.com/videos/lqd06o/age-defying-pancakes",
"http://thecolbertreport.cc.com/videos/pxy8xm/the-word---old-school",
"http://thecolbertreport.cc.com/videos/3wpryl/tip-wag---eminem",
"http://thecolbertreport.cc.com/videos/l2yoxp/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/lpdbmt/wilford-brimley-calls---oatmeal"
],
"guest": "Andrew Sullivan"
},
{
"date": "2006-01-18",
"videos": [
"http://thecolbertreport.cc.com/videos/nh5ji3/intro---1-18-06",
"http://thecolbertreport.cc.com/videos/z3vrpl/the-de-edumacation-of-the-american-brainscape",
"http://thecolbertreport.cc.com/videos/ti5lsj/the-word---smarterer",
"http://thecolbertreport.cc.com/videos/92rf9j/bring--em-back-or-leave--em-dead---teacher-s-edition",
"http://thecolbertreport.cc.com/videos/rnpcxp/frank-mccourt",
"http://thecolbertreport.cc.com/videos/86d7fs/sign-off---the-bully-system"
],
"guest": "Frank McCourt"
},
{
"date": "2006-01-19",
"videos": [
"http://thecolbertreport.cc.com/videos/1ibsf9/intro---1-19-06",
"http://thecolbertreport.cc.com/videos/9s67zo/who-s-attacking-me-now----humane-society",
"http://thecolbertreport.cc.com/videos/xguuix/the-word---public-see",
"http://thecolbertreport.cc.com/videos/lidn3n/better-know-a-district---new-york-s-17th---eliot-engel",
"http://thecolbertreport.cc.com/videos/11mx9e/nina-totenberg",
"http://thecolbertreport.cc.com/videos/9g8c9i/sign-off---drink-on"
],
"guest": "Nina Totenberg"
},
{
"date": "2006-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/rnxq1m/intro---1-23-06",
"http://thecolbertreport.cc.com/videos/k046s8/oprah-s-book-club",
"http://thecolbertreport.cc.com/videos/ruzjfq/the-word---charlie-daniels",
"http://thecolbertreport.cc.com/videos/0wj0h7/threatdown---hamas",
"http://thecolbertreport.cc.com/videos/puj7cw/david-gregory",
"http://thecolbertreport.cc.com/videos/ipkxy5/dr--love"
],
"guest": "David Gregory"
},
{
"date": "2006-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/4cxurq/intro---1-24-06",
"http://thecolbertreport.cc.com/videos/63ywy8/most-depressing-day-of-the-year",
"http://thecolbertreport.cc.com/videos/xpxm3x/the-word---chernobyl",
"http://thecolbertreport.cc.com/videos/bpx4o0/formidable-opponent---superpowers",
"http://thecolbertreport.cc.com/videos/44x8vn/robin-givhan",
"http://thecolbertreport.cc.com/videos/meshre/the-in-box---dvds"
],
"guest": "Robin Givhan"
},
{
"date": "2006-01-25",
"videos": [
"http://thecolbertreport.cc.com/videos/fcwdw2/intro---1-25-06",
"http://thecolbertreport.cc.com/videos/sc546i/bill-o-reilly--fan-of-the-show",
"http://thecolbertreport.cc.com/videos/dg5r31/the-word---remote-control",
"http://thecolbertreport.cc.com/videos/d7q9f6/better-know-a-district---new-jersey-s-8th---bill-pascrell",
"http://thecolbertreport.cc.com/videos/e7x760/norah-vincent"
],
"guest": "Norah Vincent"
},
{
"date": "2006-01-26",
"videos": [
"http://thecolbertreport.cc.com/videos/lquo7k/intro---1-26-06",
"http://thecolbertreport.cc.com/videos/xh484k/thundersnow",
"http://thecolbertreport.cc.com/videos/qdqpdn/who-s-attacking-me-now----marina-core",
"http://thecolbertreport.cc.com/videos/9v3sqy/the-word---wham-o",
"http://thecolbertreport.cc.com/videos/qnlt2s/one-of-the-heroes--lily-s-",
"http://thecolbertreport.cc.com/videos/lca5rm/colbert-cruise---write-off",
"http://thecolbertreport.cc.com/videos/gimvpm/paul-begala"
],
"guest": "Paul Begala"
},
{
"date": "2006-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/fhkpsg/intro---1-30-06",
"http://thecolbertreport.cc.com/videos/vbdym4/james-frey-s-truthiness",
"http://thecolbertreport.cc.com/videos/e6nijq/the-word---abortion",
"http://thecolbertreport.cc.com/videos/5se9xj/tip-wag---google",
"http://thecolbertreport.cc.com/videos/3f4m4d/annie-duke"
],
"guest": "Annie Duke"
},
{
"date": "2006-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/2cxabn/intro---1-31-06",
"http://thecolbertreport.cc.com/videos/d5gebw/the-word---jesi",
"http://thecolbertreport.cc.com/videos/fo1pme/all-you-need-to-know---samuel-alito",
"http://thecolbertreport.cc.com/videos/165jzf/fract---the-american-flag",
"http://thecolbertreport.cc.com/videos/2uduhl/david-maresh",
"http://thecolbertreport.cc.com/videos/iddejj/sign-off---god-bless",
"http://thecolbertreport.cc.com/videos/2na088/craziest-f--king-thing-i-ve-ever-heard---snake-and-hamster"
],
"guest": "Dave Marash"
},
{
"date": "2006-02-01",
"videos": [
"http://thecolbertreport.cc.com/videos/dk9yev/intro---2-1-06",
"http://thecolbertreport.cc.com/videos/y6qr8t/the-american-worker--a-hero-s-salute-to-the-besieged-heroes-of-the-american-jobscape",
"http://thecolbertreport.cc.com/videos/u7tnek/the-word---you-re-welcome",
"http://thecolbertreport.cc.com/videos/zfo99j/lieber---minimum-wage",
"http://thecolbertreport.cc.com/videos/qm6xwf/emily-yoffe",
"http://thecolbertreport.cc.com/videos/359g3f/sign-off---blue-collar-workday"
],
"guest": "Emily Yoffe"
},
{
"date": "2006-02-02",
"videos": [
"http://thecolbertreport.cc.com/videos/1dag2u/intro---2-2-06",
"http://thecolbertreport.cc.com/videos/ad4eb4/groundhog-day-forecast",
"http://thecolbertreport.cc.com/videos/3bftnm/stephen-s-famous-five-meat-chili",
"http://thecolbertreport.cc.com/videos/xbb82c/the-word---aggravated-assault",
"http://thecolbertreport.cc.com/videos/lggm23/better-know-a-district---new-york-s-8th---jerrold-nadler",
"http://thecolbertreport.cc.com/videos/waxwaq/christine-todd-whitman",
"http://thecolbertreport.cc.com/videos/1q178e/sign-off---tivo"
],
"guest": "Gov. Christine Todd Whitman"
},
{
"date": "2006-02-06",
"videos": [
"http://thecolbertreport.cc.com/videos/dpnfel/intro---2-6-06",
"http://thecolbertreport.cc.com/videos/x1tmbw/birth-day-off",
"http://thecolbertreport.cc.com/videos/1gk1h5/the-golden-corner",
"http://thecolbertreport.cc.com/videos/r9ih4w/the-word---metaphorically",
"http://thecolbertreport.cc.com/videos/4xxw86/threatdown---killer-bees",
"http://thecolbertreport.cc.com/videos/kckjlf/fract---native-american-state-names",
"http://thecolbertreport.cc.com/videos/lynt84/barbara-boxer",
"http://thecolbertreport.cc.com/videos/xaj1wb/to-be-continued"
],
"guest": "Barbara Boxer"
},
{
"date": "2006-02-07",
"videos": [
"http://thecolbertreport.cc.com/videos/aa2a90/intro---2-7-06",
"http://thecolbertreport.cc.com/videos/nzdokc/math-is-hard",
"http://thecolbertreport.cc.com/videos/iwl7g4/the-word---kidding",
"http://thecolbertreport.cc.com/videos/pc9syn/fract---frnap--royalty",
"http://thecolbertreport.cc.com/videos/uvx8kk/james-woolsey",
"http://thecolbertreport.cc.com/videos/xx0m7n/western-union"
],
"guest": "R. James Woolsey"
},
{
"date": "2006-02-08",
"videos": [
"http://thecolbertreport.cc.com/videos/3vblh5/intro---2-8-06",
"http://thecolbertreport.cc.com/videos/zmpne2/b-b-b-l-t-",
"http://thecolbertreport.cc.com/videos/0qolhd/electronic-surveillance",
"http://thecolbertreport.cc.com/videos/pi8m0r/the-word---eureka",
"http://thecolbertreport.cc.com/videos/29usyw/better-know-a-district---pennsylvania-s-2nd---chaka-fattah",
"http://thecolbertreport.cc.com/videos/flyja7/fract---bush-s-height",
"http://thecolbertreport.cc.com/videos/6jmw8z/alan-dershowitz",
"http://thecolbertreport.cc.com/videos/96mt5f/the-in-box---terry"
],
"guest": "Alan Dershowitz"
},
{
"date": "2006-02-09",
"videos": [
"http://thecolbertreport.cc.com/videos/afiwhq/intro---2-9-06",
"http://thecolbertreport.cc.com/videos/qryfzw/big-brass-balls-award",
"http://thecolbertreport.cc.com/videos/c00cpa/the-word---u-s-a---u-s-a--",
"http://thecolbertreport.cc.com/videos/wpi1k4/stephen-s-laws-of-love",
"http://thecolbertreport.cc.com/videos/8rwy8k/george-packer",
"http://thecolbertreport.cc.com/videos/33a8tw/charlene--i-m-right-behind-you-"
],
"guest": "George Packer"
},
{
"date": "2006-02-21",
"videos": [
"http://thecolbertreport.cc.com/videos/z5opi6/intro---2-21-06",
"http://thecolbertreport.cc.com/videos/uo23hp/accidental-shooting",
"http://thecolbertreport.cc.com/videos/loo817/the-word---u-s-a---u-s-a--",
"http://thecolbertreport.cc.com/videos/u7vgjy/better-know-a-district---new-jersey-s-13th",
"http://thecolbertreport.cc.com/videos/gb5q2m/fract---americana",
"http://thecolbertreport.cc.com/videos/zyrf0h/lama-surya-das",
"http://thecolbertreport.cc.com/videos/501uix/sign-off---dna"
],
"guest": "Lama Surya Das"
},
{
"date": "2006-02-22",
"videos": [
"http://thecolbertreport.cc.com/videos/i0btk9/intro---2-22-06",
"http://thecolbertreport.cc.com/videos/9a1fo6/speed-skating-debacle",
"http://thecolbertreport.cc.com/videos/0g837q/the-word---absolutely-maybe",
"http://thecolbertreport.cc.com/videos/mvtu98/threatdown---gay-adoption",
"http://thecolbertreport.cc.com/videos/jkkvih/michael-eric-dyson"
],
"guest": "Michael Eric Dyson"
},
{
"date": "2006-02-23",
"videos": [
"http://thecolbertreport.cc.com/videos/v60d4d/intro---2-23-06",
"http://thecolbertreport.cc.com/videos/rr6syc/threatdown---bears",
"http://thecolbertreport.cc.com/videos/754igf/presidential-visions",
"http://thecolbertreport.cc.com/videos/s0zne3/the-word---hippocratical",
"http://thecolbertreport.cc.com/videos/kftjaw/pharmaceuticals--prescription-for-progress",
"http://thecolbertreport.cc.com/videos/rsogzl/david-brooks",
"http://thecolbertreport.cc.com/videos/azjwel/sign-off---pause-your-tvs"
],
"guest": "David Brooks"
},
{
"date": "2006-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/te5not/intro---2-27-06",
"http://thecolbertreport.cc.com/videos/a6q20s/the-de-deification-of-the-american-faithscape",
"http://thecolbertreport.cc.com/videos/opnyg5/who-hates-whom-in-the-name-of-god",
"http://thecolbertreport.cc.com/videos/2hdt17/the-word---trial-separation",
"http://thecolbertreport.cc.com/videos/5ggers/pick-your-apocalypse",
"http://thecolbertreport.cc.com/videos/oop06i/tony-campolo",
"http://thecolbertreport.cc.com/videos/14uaa2/confess-your-sins-to-stephen"
],
"guest": "Tony Campolo"
},
{
"date": "2006-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/cebyqr/intro---2-28-06",
"http://thecolbertreport.cc.com/videos/roej3y/who-s-attacking-me-now----anderson-cooper",
"http://thecolbertreport.cc.com/videos/bdairu/the-word---laissez-les-bons-temps-rouler-",
"http://thecolbertreport.cc.com/videos/2v3htj/tip-wag---wheeled-transportation",
"http://thecolbertreport.cc.com/videos/sz96fe/brett-o-donnell"
],
"guest": "Brett O'Donnell"
},
{
"date": "2006-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/ldd32b/intro---3-1-06",
"http://thecolbertreport.cc.com/videos/jndc1b/better-know-a-district---california-s-50th",
"http://thecolbertreport.cc.com/videos/4j8lfp/the-word---faith",
"http://thecolbertreport.cc.com/videos/1bozfl/better-know-a-founder---benjamin-franklin",
"http://thecolbertreport.cc.com/videos/11m5ii/arianna-huffington"
],
"guest": "Arianna Huffington"
},
{
"date": "2006-03-02",
"videos": [
"http://thecolbertreport.cc.com/videos/ubq51o/intro---3-2-06",
"http://thecolbertreport.cc.com/videos/stez1k/the-word---homo-sapien-agenda",
"http://thecolbertreport.cc.com/videos/3k2tf6/the-dacolbert-code---the-oscars",
"http://thecolbertreport.cc.com/videos/gltobj/jeffrey-sachs",
"http://thecolbertreport.cc.com/videos/wx4nw0/sign-off---end-of-an-era"
],
"guest": "Jeffrey Sachs"
},
{
"date": "2006-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/404ffy/intro---3-6-06",
"http://thecolbertreport.cc.com/videos/l42kmx/hollywood-decontamination",
"http://thecolbertreport.cc.com/videos/tsfsdu/never-say-die",
"http://thecolbertreport.cc.com/videos/5tdn6m/the-word---spoiler-alert-",
"http://thecolbertreport.cc.com/videos/tua61a/threatdown---non-blondes",
"http://thecolbertreport.cc.com/videos/rlta2z/bob-schieffer",
"http://thecolbertreport.cc.com/videos/iwpji5/sign-off---narnia"
],
"guest": "Bob Schieffer"
},
{
"date": "2006-03-07",
"videos": [
"http://thecolbertreport.cc.com/videos/ca0riz/intro---3-7-06",
"http://thecolbertreport.cc.com/videos/4cutks/colbert-manor",
"http://thecolbertreport.cc.com/videos/mtcb44/the-word---the-long-war",
"http://thecolbertreport.cc.com/videos/g0hyvn/all-you-need-to-know---video-games",
"http://thecolbertreport.cc.com/videos/8n27zq/norman-ornstein"
],
"guest": "Norman Ornstean"
},
{
"date": "2006-03-08",
"videos": [
"http://thecolbertreport.cc.com/videos/xbwofw/intro---3-8-06",
"http://thecolbertreport.cc.com/videos/x1smyo/colbert-manor-revisited",
"http://thecolbertreport.cc.com/videos/to3c41/the-word---monopoly",
"http://thecolbertreport.cc.com/videos/qhlrjh/stephen-s-sound-advice---civil-war-do-s---don-ts",
"http://thecolbertreport.cc.com/videos/1ggda8/fract---america-rocks",
"http://thecolbertreport.cc.com/videos/ovaery/james-webb",
"http://thecolbertreport.cc.com/videos/vggdk5/used-flag-offer"
],
"guest": "James Webb"
},
{
"date": "2006-03-09",
"videos": [
"http://thecolbertreport.cc.com/videos/vaflyt/intro---3-9-06",
"http://thecolbertreport.cc.com/videos/dx0yti/canadian-baseball-",
"http://thecolbertreport.cc.com/videos/6l67tv/the-word---d-i-y-",
"http://thecolbertreport.cc.com/videos/7oy8db/better-know-a-district---california-s-39th-district---linda-sanchez",
"http://thecolbertreport.cc.com/videos/15d41c/lorraine-bracco"
],
"guest": "Lorraine Bracco"
},
{
"date": "2006-03-13",
"videos": [
"http://thecolbertreport.cc.com/videos/d7ebhg/intro---3-13-06",
"http://thecolbertreport.cc.com/videos/lmy7oh/predictions",
"http://thecolbertreport.cc.com/videos/lykn1c/not-gay",
"http://thecolbertreport.cc.com/videos/so8v2i/the-word---sidney-poitier",
"http://thecolbertreport.cc.com/videos/ufh2rw/christopher-buckley",
"http://thecolbertreport.cc.com/videos/k79bmy/sign-off---mad-magazine"
],
"guest": "Christopher Buckley"
},
{
"date": "2006-03-14",
"videos": [
"http://thecolbertreport.cc.com/videos/9rlemm/intro---3-14-06",
"http://thecolbertreport.cc.com/videos/i3ouk4/trusting-the-media",
"http://thecolbertreport.cc.com/videos/i5bwzw/the-word---scapegoat",
"http://thecolbertreport.cc.com/videos/kiwto1/was-it-really-that-bad----before-unions",
"http://thecolbertreport.cc.com/videos/402x36/fract---hawaii",
"http://thecolbertreport.cc.com/videos/loh9en/keith-olbermann",
"http://thecolbertreport.cc.com/videos/8vssl2/hiphopketball-ii--the-rejazzebration-remix--06"
],
"guest": "Keith Olbermann"
},
{
"date": "2006-03-15",
"videos": [
"http://thecolbertreport.cc.com/videos/wt5xpw/intro---3-15-06",
"http://thecolbertreport.cc.com/videos/u8eaqc/sperm-donor",
"http://thecolbertreport.cc.com/videos/g4bu6e/the-word---none-of-the-above",
"http://thecolbertreport.cc.com/videos/kruphn/al-franken",
"http://thecolbertreport.cc.com/videos/usnoo7/al-franken-fields-calls",
"http://thecolbertreport.cc.com/videos/z5ir97/craziest-f--king-thing-i-ve-ever-heard---bear-wrestling"
],
"guest": "Al Franken"
},
{
"date": "2006-03-16",
"videos": [
"http://thecolbertreport.cc.com/videos/yna7fv/intro---3-16-06",
"http://thecolbertreport.cc.com/videos/ecjm4u/who-s-attacking-me-now----commander-coconut",
"http://thecolbertreport.cc.com/videos/2m2cs5/the-word---sweet-dreams",
"http://thecolbertreport.cc.com/videos/kgsuha/better-know-a-protectorate---the-virgin-islands---donna-christensen",
"http://thecolbertreport.cc.com/videos/6o7ym9/frank-vincent",
"http://thecolbertreport.cc.com/videos/cycayo/sign-off---i-ll-miss-you"
],
"guest": "Frank Vincent"
},
{
"date": "2006-03-20",
"videos": [
"http://thecolbertreport.cc.com/videos/nnadg0/intro---3-20-06",
"http://thecolbertreport.cc.com/videos/isowuv/movies-that-are-destroying-america---post-oscar-wrap-up",
"http://thecolbertreport.cc.com/videos/vr4vvt/connie-chung",
"http://thecolbertreport.cc.com/videos/yuth1j/jessica-simpson-turns-down-gop",
"http://thecolbertreport.cc.com/videos/6xoiww/war-in-iraq---third-anniversary",
"http://thecolbertreport.cc.com/videos/b7697r/the-word---stop-it"
],
"guest": "Connie Chung"
},
{
"date": "2006-03-21",
"videos": [
"http://thecolbertreport.cc.com/videos/xvs8w8/intro---3-21-06",
"http://thecolbertreport.cc.com/videos/zze24r/world-baseball-classic",
"http://thecolbertreport.cc.com/videos/teon93/the-word---eat-it",
"http://thecolbertreport.cc.com/videos/eh7h1y/employee-performance-reviews",
"http://thecolbertreport.cc.com/videos/nbiu6f/steve-kroft",
"http://thecolbertreport.cc.com/videos/jt1thw/the-in-box---corrections"
],
"guest": "Steve Kroft"
},
{
"date": "2006-03-22",
"videos": [
"http://thecolbertreport.cc.com/videos/70ntar/intro---3-22-06",
"http://thecolbertreport.cc.com/videos/nw6pi6/advice-for-jennifer-anniston",
"http://thecolbertreport.cc.com/videos/gx67le/better-know-a-district---california-s-27th---brad-sherman",
"http://thecolbertreport.cc.com/videos/c3fb4g/the-word---i-am-the-great-and-powerful-oz",
"http://thecolbertreport.cc.com/videos/uqd7r1/dan-senor",
"http://thecolbertreport.cc.com/videos/qay3pj/sign-off---thank-you--america"
],
"guest": "Dan Senor"
},
{
"date": "2006-03-23",
"videos": [
"http://thecolbertreport.cc.com/videos/ou0ql7/intro---3-23-06",
"http://thecolbertreport.cc.com/videos/rxxsf1/home--hearth--heart-and-heartland---this-land-is-your-land",
"http://thecolbertreport.cc.com/videos/1q0pl8/miss-manners",
"http://thecolbertreport.cc.com/videos/jeurtc/stephen-s-sound-advice---how-to-raise-a-hero",
"http://thecolbertreport.cc.com/videos/3x5mhp/john-kasich",
"http://thecolbertreport.cc.com/videos/tgvvyb/sign-off---the-reason-for-the-hearth"
],
"guest": "John Kasich"
},
{
"date": "2006-03-27",
"videos": [
"http://thecolbertreport.cc.com/videos/yvu55b/intro---3-27-06",
"http://thecolbertreport.cc.com/videos/lu2x91/off-the-market",
"http://thecolbertreport.cc.com/videos/b1jlbx/immigration-protests",
"http://thecolbertreport.cc.com/videos/hizymr/exercise-routine",
"http://thecolbertreport.cc.com/videos/fafxll/the-word---tense",
"http://thecolbertreport.cc.com/videos/jmwqn6/letter-to-the-judge",
"http://thecolbertreport.cc.com/videos/6zqqyf/threatdown---drug-candy",
"http://thecolbertreport.cc.com/videos/hx3fbe/fract---bald-eagle",
"http://thecolbertreport.cc.com/videos/i44o34/gary-hart",
"http://thecolbertreport.cc.com/videos/bwhjyd/sign-off---tomorrow-s-guest"
],
"guest": "Gary Hart"
},
{
"date": "2006-03-28",
"videos": [
"http://thecolbertreport.cc.com/videos/9tw416/intro---3-28-06",
"http://thecolbertreport.cc.com/videos/wm4vs8/baby-eagle",
"http://thecolbertreport.cc.com/videos/4s1h3q/the-word---easter-under-attack---marketing",
"http://thecolbertreport.cc.com/videos/erxj6i/lieber---school-vouchers",
"http://thecolbertreport.cc.com/videos/3ejtt4/fract---commemorative-spoons",
"http://thecolbertreport.cc.com/videos/tyfnef/michael-brown",
"http://thecolbertreport.cc.com/videos/t4qaaf/sign-off---goodnight--stephen-jr-"
],
"guest": "Michael Brown"
},
{
"date": "2006-03-29",
"videos": [
"http://thecolbertreport.cc.com/videos/4mdlim/intro---3-29-06",
"http://thecolbertreport.cc.com/videos/r9z4ro/eclipse",
"http://thecolbertreport.cc.com/videos/mqt5m8/the-word---merrier",
"http://thecolbertreport.cc.com/videos/3xpeh4/better-know-a-district---california-s-29th---adam-schiff",
"http://thecolbertreport.cc.com/videos/k1c0hq/bruce-bartlett"
],
"guest": "Bruce Bartlett"
},
{
"date": "2006-03-30",
"videos": [
"http://thecolbertreport.cc.com/videos/uaktnl/intro---3-30-06",
"http://thecolbertreport.cc.com/videos/89u375/what-jill-carroll-missed",
"http://thecolbertreport.cc.com/videos/nuwaus/women-s-history-month---soledad-o-brien",
"http://thecolbertreport.cc.com/videos/smbaky/tip-wag---the-templeton-prize",
"http://thecolbertreport.cc.com/videos/n7sm3g/fract---drug-testing-standards",
"http://thecolbertreport.cc.com/videos/b95nrh/robert-greenwald",
"http://thecolbertreport.cc.com/videos/0vbmc1/million-man-march",
"http://thecolbertreport.cc.com/videos/zcqswd/the-word---f--k"
],
"guest": "Robert Greenwald"
},
{
"date": "2006-04-03",
"videos": [
"http://thecolbertreport.cc.com/videos/r2tcqv/intro---4-3-06",
"http://thecolbertreport.cc.com/videos/cckn97/who-s-honoring-me-now----southern-poverty-law-center",
"http://thecolbertreport.cc.com/videos/j51p1g/the-word---stay-the-course",
"http://thecolbertreport.cc.com/videos/mq3zja/stephen-s-sound-advice---taxes",
"http://thecolbertreport.cc.com/videos/ci41dt/michael-smerconish",
"http://thecolbertreport.cc.com/videos/716068/sign-off---nutz"
],
"guest": "Michael Smerconish"
},
{
"date": "2006-04-04",
"videos": [
"http://thecolbertreport.cc.com/videos/9ew48u/intro---4-4-06",
"http://thecolbertreport.cc.com/videos/ouryux/delay-retires",
"http://thecolbertreport.cc.com/videos/3pmhdv/the-word---birdie",
"http://thecolbertreport.cc.com/videos/fgj62q/balls-for-kidz---plastic-surgery",
"http://thecolbertreport.cc.com/videos/3sqfo3/jesse-jackson"
],
"guest": "Jesse Jackson"
},
{
"date": "2006-04-05",
"videos": [
"http://thecolbertreport.cc.com/videos/pxrtxy/intro---4-5-06",
"http://thecolbertreport.cc.com/videos/1sxrid/crying",
"http://thecolbertreport.cc.com/videos/alac6s/the-word---martyr",
"http://thecolbertreport.cc.com/videos/6ythy9/formidable-opponent---immigration",
"http://thecolbertreport.cc.com/videos/4ipowz/fract---russian-girls",
"http://thecolbertreport.cc.com/videos/7hiane/harvey-mansfield",
"http://thecolbertreport.cc.com/videos/7q90hr/sign-off---en-espanol"
],
"guest": "Harvey Mansfield"
},
{
"date": "2006-04-06",
"videos": [
"http://thecolbertreport.cc.com/videos/4p2khi/intro---4-6-06",
"http://thecolbertreport.cc.com/videos/yy1ecn/who-s-not-honoring-me-now----peabody-award",
"http://thecolbertreport.cc.com/videos/wh4nku/easter-under-attack---recalled-eggs",
"http://thecolbertreport.cc.com/videos/h6f8ks/the-word---nazis",
"http://thecolbertreport.cc.com/videos/hqbc11/better-know-a-district---oregon-s-5th---darlene-hooley",
"http://thecolbertreport.cc.com/videos/2v5yd4/markos-moulitsas",
"http://thecolbertreport.cc.com/videos/a2gy6a/sign-off---spring-break"
],
"guest": "Markos Moulitsas"
},
{
"date": "2006-04-17",
"videos": [
"http://thecolbertreport.cc.com/videos/rho2b5/intro---4-17-06",
"http://thecolbertreport.cc.com/videos/jh0t6d/dime-boycott",
"http://thecolbertreport.cc.com/videos/nyextq/on-notice---journal-of-paleolimnology",
"http://thecolbertreport.cc.com/videos/swdzeg/was-it-really-that-bad----san-francisco-earthquake",
"http://thecolbertreport.cc.com/videos/8ydrv2/reza-aslan",
"http://thecolbertreport.cc.com/videos/nfyuyx/craziest-f--king-thing-i-ve-ever-heard---fly-glasses"
],
"guest": "Reza Aslan"
},
{
"date": "2006-04-18",
"videos": [
"http://thecolbertreport.cc.com/videos/mwy60m/intro---4-18-06",
"http://thecolbertreport.cc.com/videos/8zlfj4/stephen-jr--hatches-",
"http://thecolbertreport.cc.com/videos/gi0de7/the-word---sir--yes--sir",
"http://thecolbertreport.cc.com/videos/6epoa4/threatdown---pooh",
"http://thecolbertreport.cc.com/videos/5peygv/anthony-romero",
"http://thecolbertreport.cc.com/videos/9g88m0/baby-monitor",
"http://thecolbertreport.cc.com/videos/sdky8q/who-s-not-honoring-me-now----pulitzer-prize"
],
"guest": "Anthony Romero"
},
{
"date": "2006-04-19",
"videos": [
"http://thecolbertreport.cc.com/videos/msbasq/intro---4-19-06",
"http://thecolbertreport.cc.com/videos/8e53yj/white-house-press-secretary",
"http://thecolbertreport.cc.com/videos/usn2co/global-warming-tv",
"http://thecolbertreport.cc.com/videos/ai2zb9/the-word---save-it",
"http://thecolbertreport.cc.com/videos/0nrquc/tip-wag---tom-cruise-and-katie-holmes",
"http://thecolbertreport.cc.com/videos/x40hn2/caitlin-flanagan"
],
"guest": "Caitlin Flanagan"
},
{
"date": "2006-04-20",
"videos": [
"http://thecolbertreport.cc.com/videos/ejbl27/intro---4-20-06",
"http://thecolbertreport.cc.com/videos/qw6of6/protecting-kids-from-papers",
"http://thecolbertreport.cc.com/videos/agw4nc/the-word---bard",
"http://thecolbertreport.cc.com/videos/yrza7w/better-know-a-district---maryland-s-4th---albert-wynn",
"http://thecolbertreport.cc.com/videos/isrl05/ralph-nader"
],
"guest": "Ralph Nader"
},
{
"date": "2006-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/ed2ifv/intro---4-24-06",
"http://thecolbertreport.cc.com/videos/yd10jl/wok-this-way",
"http://thecolbertreport.cc.com/videos/nhj8qv/money---politics--the-machine-that-ain-t-broke",
"http://thecolbertreport.cc.com/videos/z1f4bz/duke-obilia-auction",
"http://thecolbertreport.cc.com/videos/svw55c/hugh-hewitt",
"http://thecolbertreport.cc.com/videos/qzp0e4/sign-off---chatty-cathy"
],
"guest": "Hugh Hewitt"
},
{
"date": "2006-04-25",
"videos": [
"http://thecolbertreport.cc.com/videos/h6j9ry/intro---4-25-06",
"http://thecolbertreport.cc.com/videos/y1ry7v/contacting-john-lennon",
"http://thecolbertreport.cc.com/videos/ef5fdk/the-word---panama",
"http://thecolbertreport.cc.com/videos/6iaobq/threatdown---tom-hanks",
"http://thecolbertreport.cc.com/videos/6smo0z/fract---middle-name",
"http://thecolbertreport.cc.com/videos/gael38/sam-harris",
"http://thecolbertreport.cc.com/videos/f00cpp/sign-off---bush-clock"
],
"guest": "Sam Harris"
},
{
"date": "2006-04-26",
"videos": [
"http://thecolbertreport.cc.com/videos/xo40za/intro---4-26-06",
"http://thecolbertreport.cc.com/videos/pjxlyg/armed-and-ready",
"http://thecolbertreport.cc.com/videos/hhuez9/the-word---english",
"http://thecolbertreport.cc.com/videos/ydqtim/better-know-a-district---georgia-s-11th---phil-gingrey",
"http://thecolbertreport.cc.com/videos/thlh72/sebastian-junger",
"http://thecolbertreport.cc.com/videos/8puf3y/sign-off---yellowcake"
],
"guest": "Sebastian Junger"
},
{
"date": "2006-04-27",
"videos": [
"http://thecolbertreport.cc.com/videos/5ry4l9/intro---4-27-06",
"http://thecolbertreport.cc.com/videos/z7tcn4/snow--informer",
"http://thecolbertreport.cc.com/videos/6lr3t0/the-word---white-gloves",
"http://thecolbertreport.cc.com/videos/b4nnko/plagiarism",
"http://thecolbertreport.cc.com/videos/g4i72k/all-you-need-to-know---sleight-of-hand",
"http://thecolbertreport.cc.com/videos/u54lrz/bill-kristol",
"http://thecolbertreport.cc.com/videos/efk2x7/sign-off---the-nfl-draft"
],
"guest": "Bill Kristol"
},
{
"date": "2006-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/w2hp62/intro---5-1-06",
"http://thecolbertreport.cc.com/videos/7jined/white-house-correspondents--dinner",
"http://thecolbertreport.cc.com/videos/8uzt2n/the-word---drug-fueled-sex-crime",
"http://thecolbertreport.cc.com/videos/yzcgdu/tip-wag---exxon",
"http://thecolbertreport.cc.com/videos/5ptkiy/jon-meacham",
"http://thecolbertreport.cc.com/videos/i3oqoh/sign-off---spam"
],
"guest": "Jon Meacham"
},
{
"date": "2006-05-02",
"videos": [
"http://thecolbertreport.cc.com/videos/341pc6/intro---5-2-06",
"http://thecolbertreport.cc.com/videos/y9f7ks/magic-",
"http://thecolbertreport.cc.com/videos/fdtzal/the-word---healthy-appetite",
"http://thecolbertreport.cc.com/videos/hl6b8d/stephen-for-press-secretary",
"http://thecolbertreport.cc.com/videos/lh3j87/mike-huckabee"
],
"guest": "Governor Mike Huckabee"
},
{
"date": "2006-05-03",
"videos": [
"http://thecolbertreport.cc.com/videos/wjeu9g/intro---5-3-06",
"http://thecolbertreport.cc.com/videos/72mru6/alan-town",
"http://thecolbertreport.cc.com/videos/gdu7ux/the-word---name-game",
"http://thecolbertreport.cc.com/videos/f8iv5g/stephen-s-sound-advice---gas-prices",
"http://thecolbertreport.cc.com/videos/3pdcz2/paul-rieckhoff",
"http://thecolbertreport.cc.com/videos/65gltn/betterer-know-a-district---georgia-s-11th---phil-gingrey-bonus-edition"
],
"guest": "Paul Rieckhoff"
},
{
"date": "2006-05-04",
"videos": [
"http://thecolbertreport.cc.com/videos/mtzlgi/exclusive---better-know-a-district---oregon-s-3rd---earl-blumenauer",
"http://thecolbertreport.cc.com/videos/pgiz58/intro---5-4-06",
"http://thecolbertreport.cc.com/videos/ox5eqb/national-day-of-prayer",
"http://thecolbertreport.cc.com/videos/38ws3t/the-word---indulgence",
"http://thecolbertreport.cc.com/videos/h6w8h9/better-know-a-district---oregon-s-3rd---earl-blumenauer",
"http://thecolbertreport.cc.com/videos/71jv5y/rick-reilly",
"http://thecolbertreport.cc.com/videos/4uy12b/stephen-s-keys"
],
"guest": "Rick Reilly"
},
{
"date": "2006-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/6p8qc0/intro---5-8-06",
"http://thecolbertreport.cc.com/videos/gk0182/stegul",
"http://thecolbertreport.cc.com/videos/fyqj80/porter-goss-resignation",
"http://thecolbertreport.cc.com/videos/3ig0g8/the-word---not",
"http://thecolbertreport.cc.com/videos/zdkg2i/shere-hite",
"http://thecolbertreport.cc.com/videos/7581zo/sign-off---thank-you--stephen-"
],
"guest": "Shere Hite"
},
{
"date": "2006-05-09",
"videos": [
"http://thecolbertreport.cc.com/videos/v9p03c/intro---5-9-06",
"http://thecolbertreport.cc.com/videos/t6b1ke/double-or-nothing",
"http://thecolbertreport.cc.com/videos/mjq9vh/the-word---superegomaniac",
"http://thecolbertreport.cc.com/videos/9w4u9e/movies-that-are-destroying-america---summer-movies",
"http://thecolbertreport.cc.com/videos/s2q4vq/frank-rich",
"http://thecolbertreport.cc.com/videos/hofw72/sign-off---closing-credits-contest"
],
"guest": "Frank Rich"
},
{
"date": "2006-05-10",
"videos": [
"http://thecolbertreport.cc.com/videos/j0109g/exclusive---better-know-a-district---nebraska-s-2nd---lee-terry",
"http://thecolbertreport.cc.com/videos/z0wmkf/intro---5-10-06",
"http://thecolbertreport.cc.com/videos/pc9isx/the-bird-flu",
"http://thecolbertreport.cc.com/videos/6olwle/the-word---athletes-are-above-the-law",
"http://thecolbertreport.cc.com/videos/m1vdpp/better-know-a-district---nebraska-s-2nd---lee-terry",
"http://thecolbertreport.cc.com/videos/kuohzs/william-bastone",
"http://thecolbertreport.cc.com/videos/pksza0/sign-off---what-you-deserve"
],
"guest": "Bill Bastone"
},
{
"date": "2006-05-11",
"videos": [
"http://thecolbertreport.cc.com/videos/3oo94k/intro---5-11-06",
"http://thecolbertreport.cc.com/videos/jn8cw4/the-west-wing",
"http://thecolbertreport.cc.com/videos/j7pjuz/the-word---fill--er-up",
"http://thecolbertreport.cc.com/videos/yy27qi/madeleine-albright",
"http://thecolbertreport.cc.com/videos/8nl4m3/tip-wag---gold"
],
"guest": "Madeleine Albright"
},
{
"date": "2006-05-15",
"videos": [
"http://thecolbertreport.cc.com/videos/uhk7yp/intro---5-15-06",
"http://thecolbertreport.cc.com/videos/nxszdr/ahmadinejad-s-letter",
"http://thecolbertreport.cc.com/videos/g2h9yx/the-word---lunchables",
"http://thecolbertreport.cc.com/videos/pn3k09/summaries-of-summaries",
"http://thecolbertreport.cc.com/videos/f5iuwt/all-you-need-to-know---dick-cheney",
"http://thecolbertreport.cc.com/videos/qrt5tg/kevin-phillips",
"http://thecolbertreport.cc.com/videos/lww1s9/craziest-f--king-thing-i-ve-ever-heard---gas-prices"
],
"guest": "Kevin Phillips"
},
{
"date": "2006-05-16",
"videos": [
"http://thecolbertreport.cc.com/videos/x3193a/intro---5-16-06",
"http://thecolbertreport.cc.com/videos/swctyt/the-word---inoculation",
"http://thecolbertreport.cc.com/videos/5qdvts/billboard",
"http://thecolbertreport.cc.com/videos/r5u8hp/body-parts-for-sale",
"http://thecolbertreport.cc.com/videos/kdtmpm/tyson-slocum",
"http://thecolbertreport.cc.com/videos/53mwdm/search-for-a-new-black-friend"
],
"guest": "Tyson Slocum"
},
{
"date": "2006-05-17",
"videos": [
"http://thecolbertreport.cc.com/videos/8b6qml/exclusive---better-know-a-president---theodore-roosevelt",
"http://thecolbertreport.cc.com/videos/x3193a/intro---5-16-06",
"http://thecolbertreport.cc.com/videos/swctyt/the-word---inoculation",
"http://thecolbertreport.cc.com/videos/5qdvts/billboard",
"http://thecolbertreport.cc.com/videos/r5u8hp/body-parts-for-sale",
"http://thecolbertreport.cc.com/videos/kdtmpm/tyson-slocum",
"http://thecolbertreport.cc.com/videos/53mwdm/search-for-a-new-black-friend"
],
"guest": "Jonathan Alter"
},
{
"date": "2006-05-17",
"videos": [
"http://thecolbertreport.cc.com/videos/wnj4cc/intro---5-17-06",
"http://thecolbertreport.cc.com/videos/xie8nv/the-word---democrats",
"http://thecolbertreport.cc.com/videos/3w6t72/better-know-a-president---theodore-roosevelt",
"http://thecolbertreport.cc.com/videos/1pm4i8/jonathan-alter",
"http://thecolbertreport.cc.com/videos/3f6dmg/boycott",
"http://thecolbertreport.cc.com/videos/bqqkk9/reagan-dimes"
],
"guest": "Jonathan Alter"
},
{
"date": "2006-05-18",
"videos": [
"http://thecolbertreport.cc.com/videos/ddjyzq/intro---5-18-06",
"http://thecolbertreport.cc.com/videos/q374t3/stephen-colbert-s-guardian-eagles",
"http://thecolbertreport.cc.com/videos/91osyo/the-word---libya",
"http://thecolbertreport.cc.com/videos/rvxfth/difference-makers---tim-donnelly",
"http://thecolbertreport.cc.com/videos/lga95g/fract---this-day-in-stephen-history",
"http://thecolbertreport.cc.com/videos/jl63dd/ted-daeschler",
"http://thecolbertreport.cc.com/videos/ddobv8/bears-eat-monkey"
],
"guest": "Ted Daeschler"
},
{
"date": "2006-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/63cmgz/my-first-100-shows--how-i-changed-the-world",
"http://thecolbertreport.cc.com/videos/dk29ec/the-word---me",
"http://thecolbertreport.cc.com/videos/sygeud/stone-phillips",
"http://thecolbertreport.cc.com/videos/oqbssv/helium-balloon-drop",
"http://thecolbertreport.cc.com/videos/n2keyu/the-in-box---100th-episode"
],
"guest": "Stone Phillips"
},
{
"date": "2006-06-06",
"videos": [
"http://thecolbertreport.cc.com/videos/0jvvnp/intro---6-6-06",
"http://thecolbertreport.cc.com/videos/zo00tb/666",
"http://thecolbertreport.cc.com/videos/fvrhwv/the-word---military",
"http://thecolbertreport.cc.com/videos/ohdrye/stephen-s-sound-advice---graduation",
"http://thecolbertreport.cc.com/videos/j42g38/christiane-amanpour",
"http://thecolbertreport.cc.com/videos/5pxetf/sign-off---666-almost-over"
],
"guest": "Christiane Amanpour"
},
{
"date": "2006-06-07",
"videos": [
"http://thecolbertreport.cc.com/videos/4y1ae4/intro---6-7-06",
"http://thecolbertreport.cc.com/videos/krcfjp/balrog",
"http://thecolbertreport.cc.com/videos/8enhyk/search-for-a-new-black-friend---first-submissions",
"http://thecolbertreport.cc.com/videos/b9ck5g/the-word---big-deal",
"http://thecolbertreport.cc.com/videos/q5rrxq/threatdown---bad-heroin",
"http://thecolbertreport.cc.com/videos/g6gwcq/steve-squyres",
"http://thecolbertreport.cc.com/videos/l4kbi3/sign-off---vaughniston"
],
"guest": "Steve Squyres"
},
{
"date": "2006-06-08",
"videos": [
"http://thecolbertreport.cc.com/videos/s8vv3c/intro---6-8-06",
"http://thecolbertreport.cc.com/videos/5h2hdf/good-news-about-terror",
"http://thecolbertreport.cc.com/videos/9s5g2f/the-word---goooooaaaaaal-",
"http://thecolbertreport.cc.com/videos/tb1qzm/better-know-a-district---texas--22nd---tom-delay",
"http://thecolbertreport.cc.com/videos/l9x3is/steve-johnson",
"http://thecolbertreport.cc.com/videos/irk0rv/honorary-doctor"
],
"guest": "Steve Johnson"
},
{
"date": "2006-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/kjiw2u/intro---6-12-06",
"http://thecolbertreport.cc.com/videos/6ev021/tony-awards",
"http://thecolbertreport.cc.com/videos/m292m0/on-notice---mort-zuckerman",
"http://thecolbertreport.cc.com/videos/g6su9g/the-word---tom-delay-s-farewell-address",
"http://thecolbertreport.cc.com/videos/e9sys9/tip-wag---college-students",
"http://thecolbertreport.cc.com/videos/1zagcw/robert-f--kennedy-jr-",
"http://thecolbertreport.cc.com/videos/rklfpc/a-tip-from-stephen-colbert-s-gardening-almanac"
],
"guest": "Robert F. Kennedy Jr."
},
{
"date": "2006-06-13",
"videos": [
"http://thecolbertreport.cc.com/videos/04ejnu/intro---6-13-06",
"http://thecolbertreport.cc.com/videos/g9ijaq/stephen-jr--update",
"http://thecolbertreport.cc.com/videos/qieya3/the-word---great-f---ing-idea",
"http://thecolbertreport.cc.com/videos/c3pmq2/nsa-wiretapping",
"http://thecolbertreport.cc.com/videos/2z4g9m/tim-flannery",
"http://thecolbertreport.cc.com/videos/15yb0t/feline-bravery"
],
"guest": "Tim Flannery"
},
{
"date": "2006-06-14",
"videos": [
"http://thecolbertreport.cc.com/videos/6tm6zq/exclusive---better-know-a-district---georgia-s-8th---lynn-westmoreland",
"http://thecolbertreport.cc.com/videos/ddmy1c/intro---6-14-06",
"http://thecolbertreport.cc.com/videos/3lnns6/surprise-visit-to-iraq",
"http://thecolbertreport.cc.com/videos/l28ig3/the-word---license-renewal",
"http://thecolbertreport.cc.com/videos/tlf8t3/better-know-a-district---georgia-s-8th---lynn-westmoreland",
"http://thecolbertreport.cc.com/videos/4xe4qw/david-sirota",
"http://thecolbertreport.cc.com/videos/g3hppv/sign-off---disappearing-act"
],
"guest": "David Sirota"
},
{
"date": "2006-06-15",
"videos": [
"http://thecolbertreport.cc.com/videos/b9zn8f/intro---6-15-06",
"http://thecolbertreport.cc.com/videos/69j400/search-for-a-new-black-friend----miami-vice--premiere",
"http://thecolbertreport.cc.com/videos/kt2s9v/the-word---lock---load",
"http://thecolbertreport.cc.com/videos/mqgxig/formidable-opponent---guantanamo-bay",
"http://thecolbertreport.cc.com/videos/p118td/michael-pollan",
"http://thecolbertreport.cc.com/videos/avxgi1/biggie-ness"
],
"guest": "Michael Pollan"
},
{
"date": "2006-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/1zww1j/intro---6-19-06",
"http://thecolbertreport.cc.com/videos/hsj6mj/bill-gates",
"http://thecolbertreport.cc.com/videos/dattp1/the-word---risky-business",
"http://thecolbertreport.cc.com/videos/q5w5ph/threatdown---the-homo-sexy-edition",
"http://thecolbertreport.cc.com/videos/vaw7tx/gustavo-arellano"
],
"guest": "Gustavo Arellano"
},
{
"date": "2006-06-20",
"videos": [
"http://thecolbertreport.cc.com/videos/wanyh5/intro---6-20-06",
"http://thecolbertreport.cc.com/videos/t2udf0/marrying-snakes",
"http://thecolbertreport.cc.com/videos/5kkfzf/the-word---everything-must-go",
"http://thecolbertreport.cc.com/videos/m05b1x/american-goal",
"http://thecolbertreport.cc.com/videos/qitmnq/stephen-makes-it-simple---government",
"http://thecolbertreport.cc.com/videos/yji71b/bart-ehrman",
"http://thecolbertreport.cc.com/videos/cahdxo/sign-off---i-ll-call-you"
],
"guest": "Bart Ehrman"
},
{
"date": "2006-06-21",
"videos": [
"http://thecolbertreport.cc.com/videos/ghd1lj/intro---6-21-06",
"http://thecolbertreport.cc.com/videos/sx1i4m/truthiness-cheer",
"http://thecolbertreport.cc.com/videos/o652yy/don-t-mess-with-jesus",
"http://thecolbertreport.cc.com/videos/alty3q/world-cup-trash-talk---alexi-lalas",
"http://thecolbertreport.cc.com/videos/n3wvrq/tip-wag---episcopal-church",
"http://thecolbertreport.cc.com/videos/qjlwml/bay-buchanan",
"http://thecolbertreport.cc.com/videos/k5qunl/sign-off---insane-clown"
],
"guest": "Bay Buchanan"
},
{
"date": "2006-06-22",
"videos": [
"http://thecolbertreport.cc.com/videos/q057ll/exclusive---better-know-a-district---colorado-s-1st---diana-degette",
"http://thecolbertreport.cc.com/videos/wjjbzb/intro---6-22-06",
"http://thecolbertreport.cc.com/videos/f4jomt/stephen-s-fault",
"http://thecolbertreport.cc.com/videos/21iu1g/stephen-hawking-is-an-a-hole",
"http://thecolbertreport.cc.com/videos/hfgyhs/the-word---cut-and-run",
"http://thecolbertreport.cc.com/videos/abdpyq/better-know-a-district---colorado-s-1st---diana-degette",
"http://thecolbertreport.cc.com/videos/2oh72f/douglas-brinkley",
"http://thecolbertreport.cc.com/videos/vh4cyy/sign-off---not-winning-prizes"
],
"guest": "Doug Brinkley"
},
{
"date": "2006-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/nxwjfg/intro---6-26-06",
"http://thecolbertreport.cc.com/videos/0au60f/buffett-hires-gates",
"http://thecolbertreport.cc.com/videos/7xr6qc/medal-of-audacity",
"http://thecolbertreport.cc.com/videos/wzsdxf/the-word---class-warfare",
"http://thecolbertreport.cc.com/videos/gb7vwl/all-you-need-to-know---hot-planet",
"http://thecolbertreport.cc.com/videos/ny0s7o/mark-bowden",
"http://thecolbertreport.cc.com/videos/7zeule/sign-off---highlights-magazine"
],
"guest": "Mark Bowden"
},
{
"date": "2006-06-27",
"videos": [
"http://thecolbertreport.cc.com/videos/fqk84n/intro---6-27-06",
"http://thecolbertreport.cc.com/videos/wmi0fy/flammo-mcburny",
"http://thecolbertreport.cc.com/videos/jgpsp4/greatest-conservative-rock-songs",
"http://thecolbertreport.cc.com/videos/5xzyo9/the-word---cold--dead-fingers",
"http://thecolbertreport.cc.com/videos/nnrjlz/movies-that-are-destroying-america---a-scanner-darkly",
"http://thecolbertreport.cc.com/videos/360rgd/chris-matthews",
"http://thecolbertreport.cc.com/videos/iiom30/sign-off---rubber-mop"
],
"guest": "Chris Matthews"
},
{
"date": "2006-06-28",
"videos": [
"http://thecolbertreport.cc.com/videos/iehmr9/intro---6-28-06",
"http://thecolbertreport.cc.com/videos/mdix0g/the-smoking-side-dish",
"http://thecolbertreport.cc.com/videos/luor1n/american-flags",
"http://thecolbertreport.cc.com/videos/ygvw1r/the-word---superman",
"http://thecolbertreport.cc.com/videos/9i4qz9/citizens-in-action---fondue-it-yourself",
"http://thecolbertreport.cc.com/videos/pt4qqj/robert-baer",
"http://thecolbertreport.cc.com/videos/h13p5y/sign-off---mr--potato-head"
],
"guest": "Robert Baer"
},
{
"date": "2006-06-29",
"videos": [
"http://thecolbertreport.cc.com/videos/edzwgb/intro---6-29-06",
"http://thecolbertreport.cc.com/videos/voqmme/farewell--supreme-court",
"http://thecolbertreport.cc.com/videos/z39ivs/the-president-s-bff",
"http://thecolbertreport.cc.com/videos/qzor72/the-word---monkey-butter",
"http://thecolbertreport.cc.com/videos/ncmucg/difference-makers---steve-pelkey",
"http://thecolbertreport.cc.com/videos/facpb9/christopher-noxon",
"http://thecolbertreport.cc.com/videos/9y1lrr/star-jones"
],
"guest": "Christopher Noxon"
},
{
"date": "2006-07-10",
"videos": [
"http://thecolbertreport.cc.com/videos/lp1b85/intro---7-10-06",
"http://thecolbertreport.cc.com/videos/fweavv/world-cup-co-champions",
"http://thecolbertreport.cc.com/videos/gud4ld/the-word---silver-foxes",
"http://thecolbertreport.cc.com/videos/ul4u7x/stephen-s-sound-advice---avoiding-wildfires",
"http://thecolbertreport.cc.com/videos/hfxzg3/amy-sedaris",
"http://thecolbertreport.cc.com/videos/izyjak/wilford-brimley-calls---mexico"
],
"guest": "Amy Sedaris"
},
{
"date": "2006-07-11",
"videos": [
"http://thecolbertreport.cc.com/videos/2clwx9/intro---7-11-06",
"http://thecolbertreport.cc.com/videos/iqeepf/coddling-our-kids",
"http://thecolbertreport.cc.com/videos/d006ym/the-word---psychopharmaparenting",
"http://thecolbertreport.cc.com/videos/0go470/stephen-r-a-p-s----talkin--to-kids",
"http://thecolbertreport.cc.com/videos/wpkhsp/tony-hawk",
"http://thecolbertreport.cc.com/videos/0eibi7/stephen-colbert-s-world-of-colbertcraft"
],
"guest": "Tony Hawk"
},
{
"date": "2006-07-12",
"videos": [
"http://thecolbertreport.cc.com/videos/ov83sj/exclusive---better-know-a-district---washington-s-2nd---rick-larsen",
"http://thecolbertreport.cc.com/videos/xl7bdt/intro---7-12-06",
"http://thecolbertreport.cc.com/videos/t0dd3g/massachusetts---gaysrael",
"http://thecolbertreport.cc.com/videos/pey6is/the-word---the-america-conventions",
"http://thecolbertreport.cc.com/videos/67j2yk/better-know-a-district---washington-s-2nd---rick-larsen",
"http://thecolbertreport.cc.com/videos/pabesh/mort-zuckerman",
"http://thecolbertreport.cc.com/videos/c4tuhx/sign-off---space-open"
],
"guest": "Mort Zuckerman"
},
{
"date": "2006-07-13",
"videos": [
"http://thecolbertreport.cc.com/videos/rlgq2q/intro---7-13-06",
"http://thecolbertreport.cc.com/videos/d3xq4i/tv-s-new-low",
"http://thecolbertreport.cc.com/videos/d45lww/the-word---inquisition",
"http://thecolbertreport.cc.com/videos/mu9fov/threatdown---gay-clones",
"http://thecolbertreport.cc.com/videos/42xxhd/ron-suskind"
],
"guest": "Ron Suskind"
},
{
"date": "2006-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/q6xn0v/intro---7-17-06",
"http://thecolbertreport.cc.com/videos/8g7ft7/microphone-on",
"http://thecolbertreport.cc.com/videos/9s23g8/one-american-dollar",
"http://thecolbertreport.cc.com/videos/ne3cif/the-word---t---a",
"http://thecolbertreport.cc.com/videos/mn3izi/tip-wag---arizona",
"http://thecolbertreport.cc.com/videos/udm6or/lee-silver",
"http://thecolbertreport.cc.com/videos/yz4kpe/sign-off---lemons"
],
"guest": "Lee Silver"
},
{
"date": "2006-07-18",
"videos": [
"http://thecolbertreport.cc.com/videos/6nca03/intro---7-18-06",
"http://thecolbertreport.cc.com/videos/zipmr4/column-width",
"http://thecolbertreport.cc.com/videos/r9fvrq/wwiii",
"http://thecolbertreport.cc.com/videos/y08094/the-word---solidarity",
"http://thecolbertreport.cc.com/videos/dz7igl/stephen-colbert-s-problems-without-solutions---bears",
"http://thecolbertreport.cc.com/videos/j9c7t7/dhani-jones",
"http://thecolbertreport.cc.com/videos/eaenq6/try-at-goodbye"
],
"guest": "Dhani Jones"
},
{
"date": "2006-07-19",
"videos": [
"http://thecolbertreport.cc.com/videos/2v2a4w/intro---7-19-06",
"http://thecolbertreport.cc.com/videos/wzyudz/veto-virginity",
"http://thecolbertreport.cc.com/videos/vmqv4k/oprah-and-gayle",
"http://thecolbertreport.cc.com/videos/zjmkqr/the-word---r-e-s-p-e-c-t",
"http://thecolbertreport.cc.com/videos/yluk0n/the-convenientest-truth",
"http://thecolbertreport.cc.com/videos/xndme2/joe-scarborough",
"http://thecolbertreport.cc.com/videos/3os5ld/sign-off---buck-o-neil"
],
"guest": "Joe Scarborough"
},
{
"date": "2006-07-20",
"videos": [
"http://thecolbertreport.cc.com/videos/vx02e0/exclusive---better-know-a-district---florida-s-19th---robert-wexler",
"http://thecolbertreport.cc.com/videos/e2w8gi/intro---7-20-06",
"http://thecolbertreport.cc.com/videos/bpcz93/search-for-a-new-black-friend---friend-exchange-rate",
"http://thecolbertreport.cc.com/videos/flwcdv/julian-bond",
"http://thecolbertreport.cc.com/videos/8oaiw2/better-know-a-district---florida-s-19th---robert-wexler",
"http://thecolbertreport.cc.com/videos/naagf7/tom-brokaw",
"http://thecolbertreport.cc.com/videos/8yx1of/one-regret"
],
"guest": "Tom Brokaw"
},
{
"date": "2006-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/8l2dhx/intro---7-24-06",
"http://thecolbertreport.cc.com/videos/b9z8jn/celebrating-america-s-kick-assedness",
"http://thecolbertreport.cc.com/videos/mchynh/war---",
"http://thecolbertreport.cc.com/videos/qpue58/the-word---moral-minority",
"http://thecolbertreport.cc.com/videos/zo2o8b/threatdown---camp",
"http://thecolbertreport.cc.com/videos/0xazqv/howell-raines",
"http://thecolbertreport.cc.com/videos/530hq6/sign-off---proud"
],
"guest": "Howell Raines"
},
{
"date": "2006-07-25",
"videos": [
"http://thecolbertreport.cc.com/videos/3bdqam/intro---7-25-06",
"http://thecolbertreport.cc.com/videos/qik373/all-red-states",
"http://thecolbertreport.cc.com/videos/mdzpjk/morning-shows",
"http://thecolbertreport.cc.com/videos/e4fmv9/the-word---opposite-day",
"http://thecolbertreport.cc.com/videos/bqr3op/formidable-opponent---stem-cell-research",
"http://thecolbertreport.cc.com/videos/6xp57g/william-donohue",
"http://thecolbertreport.cc.com/videos/wfh0qw/sign-off---food-for-thought"
],
"guest": "William Donohue"
},
{
"date": "2006-07-26",
"videos": [
"http://thecolbertreport.cc.com/videos/sz2q6w/intro---7-26-06",
"http://thecolbertreport.cc.com/videos/a62j0l/stephen-s-family-tree",
"http://thecolbertreport.cc.com/videos/nxih1e/rescue-stephen-jr-",
"http://thecolbertreport.cc.com/videos/b9kj0d/the-word---democrazy",
"http://thecolbertreport.cc.com/videos/2wr9gw/stephen-s-sound-advice---blackouts",
"http://thecolbertreport.cc.com/videos/ym3t0d/neal-katyal",
"http://thecolbertreport.cc.com/videos/9nk4r7/sign-off---super-hero-stamps"
],
"guest": "Neal Katyal"
},
{
"date": "2006-07-27",
"videos": [
"http://thecolbertreport.cc.com/videos/bgxe8v/exclusive---better-know-a-district---district-of-columbia---eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/jdsi7h/intro---7-27-06",
"http://thecolbertreport.cc.com/videos/2pti2w/floyd-landis--balls",
"http://thecolbertreport.cc.com/videos/0qi0dm/the-word---secretary-general-bolton",
"http://thecolbertreport.cc.com/videos/6quypd/better-know-a-district---district-of-columbia---eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/a2w76v/joe-quesada"
],
"guest": "Joe Quesada"
},
{
"date": "2006-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/2k66vv/intro---7-31-06",
"http://thecolbertreport.cc.com/videos/ipm2dm/book-club",
"http://thecolbertreport.cc.com/videos/3jl3pu/bicycle-theft",
"http://thecolbertreport.cc.com/videos/z1aahs/the-word---wikiality",
"http://thecolbertreport.cc.com/videos/zqod1f/tip-wag---lance-bass",
"http://thecolbertreport.cc.com/videos/6tak7c/ned-lamont"
],
"guest": "Ned Lamont"
},
{
"date": "2006-08-01",
"videos": [
"http://thecolbertreport.cc.com/videos/b1r2b5/intro---8-1-06",
"http://thecolbertreport.cc.com/videos/advrej/courting-joe-lieberman",
"http://thecolbertreport.cc.com/videos/n4ao8r/cuba-libre",
"http://thecolbertreport.cc.com/videos/uqnkmr/the-word---uncool",
"http://thecolbertreport.cc.com/videos/kxcfet/balls-for-kidz---carnivals",
"http://thecolbertreport.cc.com/videos/pcfi97/peter-beinart",
"http://thecolbertreport.cc.com/videos/wm5ib9/sign-off---energy"
],
"guest": "Peter Beinart"
},
{
"date": "2006-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/7ofk8i/intro---8-2-06",
"http://thecolbertreport.cc.com/videos/1jctl5/chair-for-joe-lieberman",
"http://thecolbertreport.cc.com/videos/tc2zff/on-notice---how-the-on-notice-board-is-made",
"http://thecolbertreport.cc.com/videos/9f950b/the-word---single-serving",
"http://thecolbertreport.cc.com/videos/1gkx3r/no-joe-lieberman",
"http://thecolbertreport.cc.com/videos/m7siat/linda-hirshman",
"http://thecolbertreport.cc.com/videos/kx6zql/sign-off---cocoa-puffs"
],
"guest": "Linda Hirshman"
},
{
"date": "2006-08-03",
"videos": [
"http://thecolbertreport.cc.com/videos/dij1sw/war--what-it-s-good-for---intro",
"http://thecolbertreport.cc.com/videos/gdp73x/war--what-it-s-good-for---russ-lieber",
"http://thecolbertreport.cc.com/videos/xzhg3v/meet-an-ally---palau",
"http://thecolbertreport.cc.com/videos/o6s4zb/paul-hackett",
"http://thecolbertreport.cc.com/videos/cujsej/war--what-it-s-good-for---the-eternal-flame"
],
"guest": "Paul Hackett"
},
{
"date": "2006-08-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ggdajm/intro---8-8-06",
"http://thecolbertreport.cc.com/videos/oafdpt/lieberman-no-show",
"http://thecolbertreport.cc.com/videos/kend9g/press-room-renovations",
"http://thecolbertreport.cc.com/videos/cru76e/the-word---ten-hut-",
"http://thecolbertreport.cc.com/videos/ywy5cq/tek-jansen---operation--heart-of-the-phoenix---dead-or-alive",
"http://thecolbertreport.cc.com/videos/y3ycer/bill-rhoden",
"http://thecolbertreport.cc.com/videos/h498ah/sign-off---toss-to-jon"
],
"guest": "Bill Rhoden"
},
{
"date": "2006-08-09",
"videos": [
"http://thecolbertreport.cc.com/videos/8ku3ic/intro---8-9-06",
"http://thecolbertreport.cc.com/videos/m3m7kz/lieberman-loses",
"http://thecolbertreport.cc.com/videos/coxidl/delay-and-jesus",
"http://thecolbertreport.cc.com/videos/9jopn4/the-word---pencils-down",
"http://thecolbertreport.cc.com/videos/hpijh0/tip-wag---hungarian-bridge",
"http://thecolbertreport.cc.com/videos/p3g7eb/alexandra-robbins"
],
"guest": "Alexandra Robbins"
},
{
"date": "2006-08-10",
"videos": [
"http://thecolbertreport.cc.com/videos/75wf4h/exclusive---better-know-a-district---california-s-6th---lynn-woolsey-pt--1",
"http://thecolbertreport.cc.com/videos/m276r1/exclusive---better-know-a-district---california-s-6th---lynn-woolsey-pt--2",
"http://thecolbertreport.cc.com/videos/8ku3ic/intro---8-9-06",
"http://thecolbertreport.cc.com/videos/m3m7kz/lieberman-loses",
"http://thecolbertreport.cc.com/videos/coxidl/delay-and-jesus",
"http://thecolbertreport.cc.com/videos/9jopn4/the-word---pencils-down",
"http://thecolbertreport.cc.com/videos/hpijh0/tip-wag---hungarian-bridge",
"http://thecolbertreport.cc.com/videos/p3g7eb/alexandra-robbins"
],
"guest": "Eli Pariser"
},
{
"date": "2006-08-10",
"videos": [
"http://thecolbertreport.cc.com/videos/qehfxb/intro---8-10-06",
"http://thecolbertreport.cc.com/videos/6kvez0/liquids-on-planes",
"http://thecolbertreport.cc.com/videos/b2svxe/the-word---cappuccino",
"http://thecolbertreport.cc.com/videos/fyj6zj/better-know-a-district---california-s-6th---lynn-woolsey",
"http://thecolbertreport.cc.com/videos/d573ty/eli-pariser",
"http://thecolbertreport.cc.com/videos/hjpfzb/sign-off---remedy-for-insomnia"
],
"guest": "Eli Pariser"
},
{
"date": "2006-08-14",
"videos": [
"http://thecolbertreport.cc.com/videos/voo1ci/intro---8-14-06",
"http://thecolbertreport.cc.com/videos/8c9998/peaceland",
"http://thecolbertreport.cc.com/videos/mjxd75/french-fries",
"http://thecolbertreport.cc.com/videos/bghbjx/jon-s-apology",
"http://thecolbertreport.cc.com/videos/ozm5pk/stephen-s-sound-advice---protecting-your-online-identity",
"http://thecolbertreport.cc.com/videos/u393jw/ramesh-ponnuru",
"http://thecolbertreport.cc.com/videos/2b5c2u/sign-off---e-mail-password"
],
"guest": "Ramesh Ponnuru"
},
{
"date": "2006-08-15",
"videos": [
"http://thecolbertreport.cc.com/videos/s8rzc5/intro---8-15-06",
"http://thecolbertreport.cc.com/videos/95fbpq/sharing-the-spotlight-with-ahmadinejad",
"http://thecolbertreport.cc.com/videos/6qb0k5/the-word---dumb-ocracy",
"http://thecolbertreport.cc.com/videos/2evzvd/hungarian-bridge-progress-report",
"http://thecolbertreport.cc.com/videos/mjhnvj/all-you-need-to-know---proper-condom-use",
"http://thecolbertreport.cc.com/videos/jdgp1k/david-gergen"
],
"guest": "David Gergen"
},
{
"date": "2006-08-16",
"videos": [
"http://thecolbertreport.cc.com/videos/5nmn6o/intro---8-16-06",
"http://thecolbertreport.cc.com/videos/ic96lx/alan-schlesinger",
"http://thecolbertreport.cc.com/videos/lsglfu/the-word---el-comandante",
"http://thecolbertreport.cc.com/videos/gb4665/let-s-make-this-happen",
"http://thecolbertreport.cc.com/videos/2ap7v2/was-it-really-that-bad----cold-war",
"http://thecolbertreport.cc.com/videos/5uanam/morgan-spurlock",
"http://thecolbertreport.cc.com/videos/9nqss3/sign-off---historic-hoax"
],
"guest": "Morgan Spurlock"
},
{
"date": "2006-08-17",
"videos": [
"http://thecolbertreport.cc.com/videos/b66unq/intro---8-17-06",
"http://thecolbertreport.cc.com/videos/xzzu7h/continuity",
"http://thecolbertreport.cc.com/videos/75yefr/neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/kc21ru/better-know-a-district---california-s-31st",
"http://thecolbertreport.cc.com/videos/8n3z7e/better-know-a-district---california-s-31st---javier-becerra",
"http://thecolbertreport.cc.com/videos/nsqwib/neil-young"
],
"guest": "Neil Young"
},
{
"date": "2006-08-21",
"videos": [
"http://thecolbertreport.cc.com/videos/uz7rxo/intro---8-21-06",
"http://thecolbertreport.cc.com/videos/vzigy3/green-screen-challenge---the-announcement",
"http://thecolbertreport.cc.com/videos/u468bk/atheists-in-foxholes",
"http://thecolbertreport.cc.com/videos/pqlyj1/the-word---side-effects",
"http://thecolbertreport.cc.com/videos/euqtan/threatdown---drivers-eat",
"http://thecolbertreport.cc.com/videos/btgfsr/geoffrey-nunberg",
"http://thecolbertreport.cc.com/videos/6p8hy2/sign-off---pants-off"
],
"guest": "Geoffrey Nunberg"
},
{
"date": "2006-08-22",
"videos": [
"http://thecolbertreport.cc.com/videos/h5huhm/intro---8-22-06",
"http://thecolbertreport.cc.com/videos/xr6owy/cheating-death---fields-medal",
"http://thecolbertreport.cc.com/videos/p4wf5t/the-word---99-problems",
"http://thecolbertreport.cc.com/videos/8t1wv1/stephen-colbert-salutes-hungary",
"http://thecolbertreport.cc.com/videos/6iv4i1/paul-krugman"
],
"guest": "Paul Krugman"
},
{
"date": "2006-08-23",
"videos": [
"http://thecolbertreport.cc.com/videos/rsqkbw/american-pop-culture--it-s-crumbelievable----intro",
"http://thecolbertreport.cc.com/videos/85w92g/american-pop-culture--it-s-crumbelievable----pop-culture-icons",
"http://thecolbertreport.cc.com/videos/l7z3b3/damian-kulash",
"http://thecolbertreport.cc.com/videos/19r90f/american-pop-culture--it-s-crumbelievable----cable-tv-vs--the-american-family",
"http://thecolbertreport.cc.com/videos/9h0pam/gideon-yago",
"http://thecolbertreport.cc.com/videos/l29lto/american-pop-culture--it-s-crumbelievable----stephen-steps-up"
],
"guest": "Gideon Yago"
},
{
"date": "2006-08-24",
"videos": [
"http://thecolbertreport.cc.com/videos/86h1lx/intro---8-24-06",
"http://thecolbertreport.cc.com/videos/j3gjfh/national-peach-month",
"http://thecolbertreport.cc.com/videos/8avj2z/fart-jokes",
"http://thecolbertreport.cc.com/videos/ejrivu/the-word---bad-boys",
"http://thecolbertreport.cc.com/videos/sui137/30-days-with-the-colbert-report",
"http://thecolbertreport.cc.com/videos/dw0hc5/janna-levin",
"http://thecolbertreport.cc.com/videos/8v6ak5/green-screen-challenge---socialized-medicine"
],
"guest": "Janna Levin"
},
{
"date": "2006-09-11",
"videos": [
"http://thecolbertreport.cc.com/videos/e2o0vm/intro---9-11-06",
"http://thecolbertreport.cc.com/videos/ryb1sd/manilow-s-emmy",
"http://thecolbertreport.cc.com/videos/vnwrl5/the-word---shall",
"http://thecolbertreport.cc.com/videos/epkjf1/the-path-to-9-11",
"http://thecolbertreport.cc.com/videos/dpqisf/martin-short",
"http://thecolbertreport.cc.com/videos/0giino/sign-off---lullaby-clap"
],
"guest": "Martin Short"
},
{
"date": "2006-09-12",
"videos": [
"http://thecolbertreport.cc.com/videos/zj5aco/exclusive---better-know-a-challenger---new-jersey-s-3rd---richard-sexton",
"http://thecolbertreport.cc.com/videos/2vdm17/intro---9-12-06",
"http://thecolbertreport.cc.com/videos/fuhxnz/green-screen-challenge---entry",
"http://thecolbertreport.cc.com/videos/464nde/the-word---missed-opportunity",
"http://thecolbertreport.cc.com/videos/03wv59/better-know-a-challenger---new-jersey-s-3rd---richard-sexton",
"http://thecolbertreport.cc.com/videos/uyjgfx/toby-keith",
"http://thecolbertreport.cc.com/videos/df7axm/sign-off---special-episode"
],
"guest": "Toby Keith"
},
{
"date": "2006-09-13",
"videos": [
"http://thecolbertreport.cc.com/videos/9h47r2/intro---9-13-06",
"http://thecolbertreport.cc.com/videos/a7pf2u/the-colmandos",
"http://thecolbertreport.cc.com/videos/fftk8t/the-word---caveat-emptor",
"http://thecolbertreport.cc.com/videos/yr3sze/formidable-opponent---iraq-withdrawal",
"http://thecolbertreport.cc.com/videos/io94jl/ken-jennings",
"http://thecolbertreport.cc.com/videos/m6mk95/sign-off---cigarettes"
],
"guest": "Ken Jennings"
},
{
"date": "2006-09-14",
"videos": [
"http://thecolbertreport.cc.com/videos/3i56pi/intro---9-14-06",
"http://thecolbertreport.cc.com/videos/m82cj5/sexy-photo",
"http://thecolbertreport.cc.com/videos/39njye/george-allen",
"http://thecolbertreport.cc.com/videos/dmk6s2/hungarian-bridge---andras-simonyi",
"http://thecolbertreport.cc.com/videos/ogtff2/tip-wag---nasa",
"http://thecolbertreport.cc.com/videos/6xq5fv/bill-simmons",
"http://thecolbertreport.cc.com/videos/czqyfe/sign-off---get-on-it--nation",
"http://thecolbertreport.cc.com/videos/g844xc/bridge-contest"
],
"guest": "Bill Simmons"
},
{
"date": "2006-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/wteen9/intro---9-18-06",
"http://thecolbertreport.cc.com/videos/51grfw/whitney-houston",
"http://thecolbertreport.cc.com/videos/82m3g9/the-word---wiper-fluid",
"http://thecolbertreport.cc.com/videos/cyd2um/tek-jansen---operation--destiny-s-underbelly--entrapped-",
"http://thecolbertreport.cc.com/videos/r7b7p1/will-power",
"http://thecolbertreport.cc.com/videos/j44oq1/sign-off---bust"
],
"guest": "Will Power"
},
{
"date": "2006-09-19",
"videos": [
"http://thecolbertreport.cc.com/videos/spzrjp/intro---9-19-06",
"http://thecolbertreport.cc.com/videos/dbmjaj/u-n--week",
"http://thecolbertreport.cc.com/videos/5v40iy/the-word---tribalism",
"http://thecolbertreport.cc.com/videos/qloab5/threatdown---toby-keith",
"http://thecolbertreport.cc.com/videos/kf8re4/frank-rich",
"http://thecolbertreport.cc.com/videos/ezwrh0/sign-off---fantasy-colbert-report-league"
],
"guest": "Frank Rich"
},
{
"date": "2006-09-20",
"videos": [
"http://thecolbertreport.cc.com/videos/lj5z86/green-screen-challenge---the-challenge-continues",
"http://thecolbertreport.cc.com/videos/o1qorx/who-s-not-honoring-me-now----the-macarthur-foundation",
"http://thecolbertreport.cc.com/videos/pz60rq/green-screen-challenge---typical-democrats",
"http://thecolbertreport.cc.com/videos/vkr39r/stephen-s-sound-advice---high-school",
"http://thecolbertreport.cc.com/videos/fn9d5q/james-carville",
"http://thecolbertreport.cc.com/videos/g7hl0x/the-word---lose"
],
"guest": "James Carville"
},
{
"date": "2006-09-21",
"videos": [
"http://thecolbertreport.cc.com/videos/yujezq/intro---9-21-06",
"http://thecolbertreport.cc.com/videos/tvrtdg/days-of-repentance-hotline",
"http://thecolbertreport.cc.com/videos/kxvydq/better-know-a-challenger---new-jersey-s-5th---paul-aronsohn",
"http://thecolbertreport.cc.com/videos/u1txo4/daniel-ellsberg",
"http://thecolbertreport.cc.com/videos/42tk7e/sign-off---pentagon-papers",
"http://thecolbertreport.cc.com/videos/yxzh84/daniel-golden"
],
"guest": "Daniel Ellsberg"
},
{
"date": "2006-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/ubu45l/intro---9-25-06",
"http://thecolbertreport.cc.com/videos/918nqn/heritage",
"http://thecolbertreport.cc.com/videos/s08yij/buy-this-book",
"http://thecolbertreport.cc.com/videos/1tds5k/the-word---opposition-party",
"http://thecolbertreport.cc.com/videos/az74i4/green-screen-challenge---goodbye--darth-maul-",
"http://thecolbertreport.cc.com/videos/te8evq/fun-in-the-sun",
"http://thecolbertreport.cc.com/videos/c88j0x/arianna-huffington"
],
"guest": "Arianna Huffington"
},
{
"date": "2006-09-26",
"videos": [
"http://thecolbertreport.cc.com/videos/13qtu2/intro---9-26-06",
"http://thecolbertreport.cc.com/videos/76ov53/frank-rich-calls-in",
"http://thecolbertreport.cc.com/videos/navjpx/the-word---good-morning",
"http://thecolbertreport.cc.com/videos/22kzkk/four-horsemen-of-the-a-pop-calypse---justin-timberlake",
"http://thecolbertreport.cc.com/videos/kertmr/ted-danson",
"http://thecolbertreport.cc.com/videos/en1nzg/alpha-dog-of-the-week---tom-selleck"
],
"guest": "Ted Danson"
},
{
"date": "2006-09-27",
"videos": [
"http://thecolbertreport.cc.com/videos/dkn6is/intro---9-27-06",
"http://thecolbertreport.cc.com/videos/w75za8/oprah-and-friends",
"http://thecolbertreport.cc.com/videos/2zj0db/mort-zuckerman-dials-the-atone-phone",
"http://thecolbertreport.cc.com/videos/wq2mkf/the-word---iraq",
"http://thecolbertreport.cc.com/videos/p20mpr/tip-wag---george-clooney",
"http://thecolbertreport.cc.com/videos/g1anyj/lowell-bergman",
"http://thecolbertreport.cc.com/videos/8v25i1/sign-off---world-of-colbertcraft"
],
"guest": "Lowell Bergman"
},
{
"date": "2006-09-28",
"videos": [
"http://thecolbertreport.cc.com/videos/b0od22/intro---9-28-06",
"http://thecolbertreport.cc.com/videos/mechk8/green-screen-challenge---ipod---colbert",
"http://thecolbertreport.cc.com/videos/jl58qd/blitzkrieg-on-grinchitude---santa-claus--in",
"http://thecolbertreport.cc.com/videos/a23i2j/jon-stewart-calls-in",
"http://thecolbertreport.cc.com/videos/kby4hb/un-american-news---spain",
"http://thecolbertreport.cc.com/videos/c2vyau/steve-wozniak"
],
"guest": "Steve Wozniak"
},
{
"date": "2006-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/vaflyc/intro---10-2-06",
"http://thecolbertreport.cc.com/videos/ak0wmf/mark-foley",
"http://thecolbertreport.cc.com/videos/clzwmu/the-word---copycat",
"http://thecolbertreport.cc.com/videos/0f7zu5/threatdown---saudi-arabia",
"http://thecolbertreport.cc.com/videos/6cuxj4/michael-lewis",
"http://thecolbertreport.cc.com/videos/gwcer9/sign-off---actual-apologies"
],
"guest": "Michael Lewis"
},
{
"date": "2006-10-03",
"videos": [
"http://thecolbertreport.cc.com/videos/fkksjm/intro---10-3-06",
"http://thecolbertreport.cc.com/videos/85po0w/drunk-dialing",
"http://thecolbertreport.cc.com/videos/hnt52c/lucifer",
"http://thecolbertreport.cc.com/videos/ap05bd/the-word---experience",
"http://thecolbertreport.cc.com/videos/oojn49/steagle-colbeagle-the-eagle---mascot",
"http://thecolbertreport.cc.com/videos/xqpdbq/andy-stern",
"http://thecolbertreport.cc.com/videos/tbnr4f/sign-off---retire-the-jersey"
],
"guest": "Andy Stern"
},
{
"date": "2006-10-04",
"videos": [
"http://thecolbertreport.cc.com/videos/pi53om/intro---10-4-06",
"http://thecolbertreport.cc.com/videos/t3hp8a/mark-foley-the-rino",
"http://thecolbertreport.cc.com/videos/2n2oat/the-word---must-not-see-tv",
"http://thecolbertreport.cc.com/videos/536mbt/nobel-prize-sweep",
"http://thecolbertreport.cc.com/videos/ga8yja/green-screen-challenge---d-d",
"http://thecolbertreport.cc.com/videos/ps5fh4/byron-dorgan",
"http://thecolbertreport.cc.com/videos/vbbgif/-20-million-victory-party"
],
"guest": "Byron Dorgan"
},
{
"date": "2006-10-05",
"videos": [
"http://thecolbertreport.cc.com/videos/r5fn7m/intro---10-5-06",
"http://thecolbertreport.cc.com/videos/t7lg5x/handling-sex-scandals",
"http://thecolbertreport.cc.com/videos/2pcxy7/behavioral-profiling",
"http://thecolbertreport.cc.com/videos/6qs8dt/maz-jobrani",
"http://thecolbertreport.cc.com/videos/8vhk9f/better-know-a-district---florida-s-16th---mark-foley",
"http://thecolbertreport.cc.com/videos/cg4ud6/amy-goodman",
"http://thecolbertreport.cc.com/videos/mex37x/starbucks-price-hike"
],
"guest": "Amy Goodman"
},
{
"date": "2006-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/uz4y5r/intro---10-9-06",
"http://thecolbertreport.cc.com/videos/vcdu14/stephen-greets-kim-jong-il",
"http://thecolbertreport.cc.com/videos/94jsyv/the-word---safety",
"http://thecolbertreport.cc.com/videos/oqybt6/sport-report---saginaw-spirit-3-0-with-steagle-colbeagle",
"http://thecolbertreport.cc.com/videos/sxcbbt/randy-newman"
],
"guest": "Randy Newman"
},
{
"date": "2006-10-10",
"videos": [
"http://thecolbertreport.cc.com/videos/7x9ixq/a-salute-to-the-american-lady",
"http://thecolbertreport.cc.com/videos/2jugk2/stephen-r-a-p-s----gender-issues",
"http://thecolbertreport.cc.com/videos/tab5oc/jane-fonda-and-gloria-steinem",
"http://thecolbertreport.cc.com/videos/vglnl3/ariel-levy",
"http://thecolbertreport.cc.com/videos/6ooly1/sign-off---mrs--colbert"
],
"guest": "Ariel Levy"
},
{
"date": "2006-10-11",
"videos": [
"http://thecolbertreport.cc.com/videos/m063rn/intro---10-11-06",
"http://thecolbertreport.cc.com/videos/bmktr8/shout-out----from-baghdad-to-the-report",
"http://thecolbertreport.cc.com/videos/lbop8f/stephen-cashes-in",
"http://thecolbertreport.cc.com/videos/kpo74v/green-screen-challenge---the-final-cut",
"http://thecolbertreport.cc.com/videos/fxyspp/green-screen-challenge---the-finalists",
"http://thecolbertreport.cc.com/videos/n67d6e/green-screen-challenge---the-winner",
"http://thecolbertreport.cc.com/videos/pkbxv2/tek-jansen---space-station-theta-zeus-aquarius",
"http://thecolbertreport.cc.com/videos/8hq3dq/lightsaber-duel",
"http://thecolbertreport.cc.com/videos/nkr8wo/green-screen---george-lucas"
],
"guest": "Andrew Sullivan"
},
{
"date": "2006-10-12",
"videos": [
"http://thecolbertreport.cc.com/videos/d5jz3y/exclusive---better-know-a-challenger---new-jersey-s-4th---carol-gay",
"http://thecolbertreport.cc.com/videos/yw8t41/intro---10-12-06",
"http://thecolbertreport.cc.com/videos/dikrto/congratulatory-mail",
"http://thecolbertreport.cc.com/videos/9dfgke/north-korean-weapons-test-scare",
"http://thecolbertreport.cc.com/videos/htaz1s/gay-republicans---andrew-sullivan",
"http://thecolbertreport.cc.com/videos/gtnan5/better-know-a-challenger---new-jersey-s-4th---carol-gay",
"http://thecolbertreport.cc.com/videos/f57spg/brian-schweitzer",
"http://thecolbertreport.cc.com/videos/o1sfrf/sign-off---revved-up"
],
"guest": "Larry Miller"
},
{
"date": "2006-10-16",
"videos": [
"http://thecolbertreport.cc.com/videos/plp18s/intro---10-16-06",
"http://thecolbertreport.cc.com/videos/q81oyv/bush-impersonator-impersonator",
"http://thecolbertreport.cc.com/videos/3yuat5/cbgb-s",
"http://thecolbertreport.cc.com/videos/7i1kaz/the-word---russian-dolls",
"http://thecolbertreport.cc.com/videos/rxjbs7/tip-wag---midterm-elections-edition",
"http://thecolbertreport.cc.com/videos/2he8tk/barry-scheck",
"http://thecolbertreport.cc.com/videos/xuvjmp/the-wave"
],
"guest": "Barry Scheck"
},
{
"date": "2006-10-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ae5ru6/intro---10-17-06",
"http://thecolbertreport.cc.com/videos/fo3bt3/one-year-anniversary",
"http://thecolbertreport.cc.com/videos/r8tksi/descending-screen",
"http://thecolbertreport.cc.com/videos/18nq18/the-word---irreconcilable-differences",
"http://thecolbertreport.cc.com/videos/hlfrbf/anniversary-cake",
"http://thecolbertreport.cc.com/videos/is87vo/judge-tubbs",
"http://thecolbertreport.cc.com/videos/7fe2ut/richard-dawkins",
"http://thecolbertreport.cc.com/videos/g41j5d/second-year-portrait"
],
"guest": "Richard Dawkins"
},
{
"date": "2006-10-18",
"videos": [
"http://thecolbertreport.cc.com/videos/nm42tm/intro---10-18-06",
"http://thecolbertreport.cc.com/videos/szo4co/elephant-vasectomies",
"http://thecolbertreport.cc.com/videos/bl7nra/the-word---sherlock",
"http://thecolbertreport.cc.com/videos/jpgqk0/jeopardy",
"http://thecolbertreport.cc.com/videos/wu6d7x/sport-report---smack-talk",
"http://thecolbertreport.cc.com/videos/0usw0u/david-kuo",
"http://thecolbertreport.cc.com/videos/pun0an/santorum-s-iraqi-lord-of-the-rings"
],
"guest": "Deepak Chopra"
},
{
"date": "2006-10-19",
"videos": [
"http://thecolbertreport.cc.com/videos/63h5y0/exclusive---better-know-a-challenger---new-york-s-19th---john-hall",
"http://thecolbertreport.cc.com/videos/simwwd/intro---10-19-06",
"http://thecolbertreport.cc.com/videos/zzoxmj/ebay-portrait-bid",
"http://thecolbertreport.cc.com/videos/55o9xl/jim-gilchrist",
"http://thecolbertreport.cc.com/videos/eh02b8/better-know-a-challenger---new-york-s-19th---john-hall",
"http://thecolbertreport.cc.com/videos/484q7z/peter-agre"
],
"guest": "Matthew Dowd"
},
{
"date": "2006-10-30",
"videos": [
"http://thecolbertreport.cc.com/videos/xsr78j/intro---10-30-06",
"http://thecolbertreport.cc.com/videos/501yrw/get-ready-for-barry",
"http://thecolbertreport.cc.com/videos/fokcta/stay-the-course",
"http://thecolbertreport.cc.com/videos/2ffwy9/the-word---shameless",
"http://thecolbertreport.cc.com/videos/3644s2/threatdown---greatdown",
"http://thecolbertreport.cc.com/videos/h5ly2o/barry-manilow"
],
"guest": "Barry Manilow"
},
{
"date": "2006-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/vll3lh/intro---10-31-06",
"http://thecolbertreport.cc.com/videos/ixb36k/costumes-for-the-girls",
"http://thecolbertreport.cc.com/videos/qrw2en/the-word---thanks--gays-",
"http://thecolbertreport.cc.com/videos/ya17xq/portrait-auction",
"http://thecolbertreport.cc.com/videos/crxtpi/welcome-to-the-house-of-horrors---nancy-pelosi",
"http://thecolbertreport.cc.com/videos/2g6dhj/tim-robbins",
"http://thecolbertreport.cc.com/videos/9z7u1s/freak-show---log-cabin-republican"
],
"guest": "Tim Robbins"
},
{
"date": "2006-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/fio9x5/exclusive---better-know-a-challenger---california-s-30th---david-nelson-jones",
"http://thecolbertreport.cc.com/videos/ngeqml/intro---11-1-06",
"http://thecolbertreport.cc.com/videos/07l6jg/john-kerry",
"http://thecolbertreport.cc.com/videos/5a62pu/the-word---rip-off",
"http://thecolbertreport.cc.com/videos/j449s5/better-know-a-challenger---california-s-30th---david-nelson-jones",
"http://thecolbertreport.cc.com/videos/80bjyk/penn-jillette",
"http://thecolbertreport.cc.com/videos/7w23zw/big-in--06"
],
"guest": "Penn Jillette"
},
{
"date": "2006-11-02",
"videos": [
"http://thecolbertreport.cc.com/videos/c1jp7z/intro---11-2-06",
"http://thecolbertreport.cc.com/videos/ryl8xd/a-historidocufictiomentary-of-george-allen",
"http://thecolbertreport.cc.com/videos/ypv3hz/p-k--winsome---black-republican",
"http://thecolbertreport.cc.com/videos/e8pbai/sport-report---the-spirit-shop",
"http://thecolbertreport.cc.com/videos/o5x0ja/chad-walldorf--portrait-winner",
"http://thecolbertreport.cc.com/videos/vchsrw/ron-reagan"
],
"guest": "Ron Reagan Jr."
},
{
"date": "2006-11-06",
"videos": [
"http://thecolbertreport.cc.com/videos/5l9ww2/intro---11-6-06",
"http://thecolbertreport.cc.com/videos/3x1o1e/saddam-s-hanging",
"http://thecolbertreport.cc.com/videos/mfycn0/vote-your-conscience",
"http://thecolbertreport.cc.com/videos/xjsetj/the-word---happy-ending",
"http://thecolbertreport.cc.com/videos/yu4stw/ted-haggard-s-media-field-day",
"http://thecolbertreport.cc.com/videos/qtoavw/what-to-expect-when-you-re-electing",
"http://thecolbertreport.cc.com/videos/de4hy0/mark-halperin",
"http://thecolbertreport.cc.com/videos/iuqlez/absentee-voting"
],
"guest": "Mark Halperin"
},
{
"date": "2006-11-07",
"videos": [
"http://thecolbertreport.cc.com/videos/rdhken/midterm-midtacular---beatty---bening-confirmation-call",
"http://thecolbertreport.cc.com/videos/vmt5dv/better-know-a-district---midterm-midtacular",
"http://thecolbertreport.cc.com/videos/42n9bh/midterm-midtacular---update-from-the-daily-show",
"http://thecolbertreport.cc.com/videos/gmknl3/midterm-midtacular---democrat-majority",
"http://thecolbertreport.cc.com/videos/1qhm06/stephen-s-final-thoughts",
"http://thecolbertreport.cc.com/videos/3fzd37/robert-wexler-and-eleanor-holmes-norton"
],
"guest": "Election Night Live Show"
},
{
"date": "2006-11-08",
"videos": [
"http://thecolbertreport.cc.com/videos/veyf2a/intro---11-8-06",
"http://thecolbertreport.cc.com/videos/0085n8/the-word---sigh",
"http://thecolbertreport.cc.com/videos/8tjdnz/better-know-a-district---new-york-s-19th---john-hall",
"http://thecolbertreport.cc.com/videos/n1c32a/tek-jansen---theme-song",
"http://thecolbertreport.cc.com/videos/vzb4w6/jeff-greenfield",
"http://thecolbertreport.cc.com/videos/3yplp6/special-memories"
],
"guest": "Jeff Greenfield"
},
{
"date": "2006-11-09",
"videos": [
"http://thecolbertreport.cc.com/videos/vsle8s/intro---11-9-06",
"http://thecolbertreport.cc.com/videos/ec6t9w/shout-out----michael-rehm",
"http://thecolbertreport.cc.com/videos/0osdbo/the-word---putin--08",
"http://thecolbertreport.cc.com/videos/ro28cv/p-k--winsome---a-journey-home",
"http://thecolbertreport.cc.com/videos/sff21j/dean-kamen",
"http://thecolbertreport.cc.com/videos/y6jo9b/sign-off---buy-american"
],
"guest": "Dean Kamen"
},
{
"date": "2006-11-13",
"videos": [
"http://thecolbertreport.cc.com/videos/xhi69f/intro---11-13-06",
"http://thecolbertreport.cc.com/videos/tq9pyg/mccain-s-depression",
"http://thecolbertreport.cc.com/videos/wze0m8/the-word---back-off--old-man",
"http://thecolbertreport.cc.com/videos/3l0etr/tip-wag---quitters-edition",
"http://thecolbertreport.cc.com/videos/v04ko8/dan-rather",
"http://thecolbertreport.cc.com/videos/39thdv/alpha-dog-of-the-week---ronald-reagan"
],
"guest": "Dan Rather"
},
{
"date": "2006-11-14",
"videos": [
"http://thecolbertreport.cc.com/videos/2xysq8/intro---10-14-06",
"http://thecolbertreport.cc.com/videos/41uzjx/lesbian-roles",
"http://thecolbertreport.cc.com/videos/njn4f1/stephen-jr--in-canada",
"http://thecolbertreport.cc.com/videos/x9bnw7/the-word---expecting",
"http://thecolbertreport.cc.com/videos/mx7sjh/vote-for-gail-jingle",
"http://thecolbertreport.cc.com/videos/xokq2b/jeff-swartz",
"http://thecolbertreport.cc.com/videos/cnxqlb/kid-activity-corner---nancy-pelosi-hand-turkeys"
],
"guest": "Jeff Swartz"
},
{
"date": "2006-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/9sc11a/exclusive---better-know-a-founder---thomas-jefferson",
"http://thecolbertreport.cc.com/videos/2xysq8/intro---10-14-06",
"http://thecolbertreport.cc.com/videos/41uzjx/lesbian-roles",
"http://thecolbertreport.cc.com/videos/njn4f1/stephen-jr--in-canada",
"http://thecolbertreport.cc.com/videos/x9bnw7/the-word---expecting",
"http://thecolbertreport.cc.com/videos/mx7sjh/vote-for-gail-jingle",
"http://thecolbertreport.cc.com/videos/xokq2b/jeff-swartz",
"http://thecolbertreport.cc.com/videos/cnxqlb/kid-activity-corner---nancy-pelosi-hand-turkeys"
],
"guest": "Al Franken, Dr. Michael Novacek"
},
{
"date": "2006-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/zmp3r0/intro---11-15-06",
"http://thecolbertreport.cc.com/videos/kl1xl0/rush-limbaugh-s-comments",
"http://thecolbertreport.cc.com/videos/w5bgh2/democrats--victory-dance---al-franken",
"http://thecolbertreport.cc.com/videos/47a505/better-know-a-founder---thomas-jefferson",
"http://thecolbertreport.cc.com/videos/cnf5lf/mike-novacek"
],
"guest": "Al Franken, Dr. Michael Novacek"
},
{
"date": "2006-11-16",
"videos": [
"http://thecolbertreport.cc.com/videos/hstabl/intro---11-16-06",
"http://thecolbertreport.cc.com/videos/zyzp0g/minority-whip",
"http://thecolbertreport.cc.com/videos/euzyuf/sexiest-man-alive",
"http://thecolbertreport.cc.com/videos/olggdr/the-word---play-ball-",
"http://thecolbertreport.cc.com/videos/oplysq/movies-that-are-destroying-america---xmas",
"http://thecolbertreport.cc.com/videos/3il1eo/richard-linklater",
"http://thecolbertreport.cc.com/videos/s716ap/sign-off---strawberry"
],
"guest": "Richard Linklater"
},
{
"date": "2006-11-27",
"videos": [
"http://thecolbertreport.cc.com/videos/1xjoh6/intro---11-27-06",
"http://thecolbertreport.cc.com/videos/z4h5jm/putin--08",
"http://thecolbertreport.cc.com/videos/k3p09y/tivo-cleaning",
"http://thecolbertreport.cc.com/videos/dg34l1/the-word---jacksquat",
"http://thecolbertreport.cc.com/videos/ckqxms/threatdown---100-hoops",
"http://thecolbertreport.cc.com/videos/lqdkhe/jim-lehrer",
"http://thecolbertreport.cc.com/videos/y3zgee/sign-off---love"
],
"guest": "Jim Lehrer"
},
{
"date": "2006-11-28",
"videos": [
"http://thecolbertreport.cc.com/videos/0tspod/intro---11-28-06",
"http://thecolbertreport.cc.com/videos/47xxe1/who-s-honoring-me-now----gq",
"http://thecolbertreport.cc.com/videos/voj40k/the-word---ecu-menace",
"http://thecolbertreport.cc.com/videos/fenw0v/alabama-miracle---helen-keller-museum",
"http://thecolbertreport.cc.com/videos/xi41md/harry-shearer",
"http://thecolbertreport.cc.com/videos/iate4s/sign-off---exceptional-audience"
],
"guest": "Harry Shearer"
},
{
"date": "2006-11-29",
"videos": [
"http://thecolbertreport.cc.com/videos/mr063e/intro---11-29-06",
"http://thecolbertreport.cc.com/videos/wanzdw/who-s-riding-my-coattails-now----jeopardy",
"http://thecolbertreport.cc.com/videos/bp43w6/the-word---killing-two-birds",
"http://thecolbertreport.cc.com/videos/49jjmd/alabama-miracle---the-stephen-colbert-museum---gift-shop--grand-opening",
"http://thecolbertreport.cc.com/videos/8rjs2g/nora-ephron"
],
"guest": "Nora Ephron"
},
{
"date": "2006-11-30",
"videos": [
"http://thecolbertreport.cc.com/videos/wzpzqs/intro---11-30-06",
"http://thecolbertreport.cc.com/videos/4c2tdv/vilsack-attack",
"http://thecolbertreport.cc.com/videos/z88s3n/p-k--winsome---if-p-k--winsome-did-it",
"http://thecolbertreport.cc.com/videos/0inrmr/colbert-nation-merchandise",
"http://thecolbertreport.cc.com/videos/jotybg/alabama-miracle---the-morning-after",
"http://thecolbertreport.cc.com/videos/hv1lim/mike-lupica",
"http://thecolbertreport.cc.com/videos/k1wdp2/sign-off---wall-notch"
],
"guest": "Mike Lupica"
},
{
"date": "2006-12-04",
"videos": [
"http://thecolbertreport.cc.com/videos/9s5cs9/intro---12-4-06",
"http://thecolbertreport.cc.com/videos/ozd0a8/sherman-wedding",
"http://thecolbertreport.cc.com/videos/sjup2k/the-word---american-orthodox",
"http://thecolbertreport.cc.com/videos/shtpb9/tip-wag---christmas",
"http://thecolbertreport.cc.com/videos/tc5d1m/will-wright",
"http://thecolbertreport.cc.com/videos/xpx8ua/sign-off---extra-special-comment---tie-stain"
],
"guest": "Will Wright"
},
{
"date": "2006-12-05",
"videos": [
"http://thecolbertreport.cc.com/videos/z40k91/intro---12-5-06",
"http://thecolbertreport.cc.com/videos/6ixmt6/-return--to-the-moon",
"http://thecolbertreport.cc.com/videos/mz0h4p/robert-gates--confirmation",
"http://thecolbertreport.cc.com/videos/msrwcg/the-word---honest-injun",
"http://thecolbertreport.cc.com/videos/3odbkp/sport-report---coach-mancini",
"http://thecolbertreport.cc.com/videos/tjdbeu/sign-off---number-one-source",
"http://thecolbertreport.cc.com/videos/c1sa92/steven-levitt"
],
"guest": "Steven D. Leavitt"
},
{
"date": "2006-12-06",
"videos": [
"http://thecolbertreport.cc.com/videos/fe08hq/intro---12-6-06",
"http://thecolbertreport.cc.com/videos/oamjbp/life-size-nativity",
"http://thecolbertreport.cc.com/videos/ikcmp0/mary-cheney",
"http://thecolbertreport.cc.com/videos/4fr9o9/the-word---words",
"http://thecolbertreport.cc.com/videos/76wnkt/tek-jansen---tek-the-halls",
"http://thecolbertreport.cc.com/videos/0wqkww/john-sexton",
"http://thecolbertreport.cc.com/videos/8suoui/sign-off---cardboard-box"
],
"guest": "John Sexton"
},
{
"date": "2006-12-07",
"videos": [
"http://thecolbertreport.cc.com/videos/k9wcbv/intro---12-7-06",
"http://thecolbertreport.cc.com/videos/ebabt9/david-gregory",
"http://thecolbertreport.cc.com/videos/kvccyn/the-word---case-closed",
"http://thecolbertreport.cc.com/videos/tk750r/elizabeth-de-la-vega",
"http://thecolbertreport.cc.com/videos/dntxcy/green-screen-challenge---counter-challenge",
"http://thecolbertreport.cc.com/videos/4koanp/alpha-dog-of-the-week---john-bolton",
"http://thecolbertreport.cc.com/videos/dqyz7h/francis-collins",
"http://thecolbertreport.cc.com/videos/rqe98q/sign-off---tgit"
],
"guest": "Dr. Francis S. Collins"
},
{
"date": "2006-12-11",
"videos": [
"http://thecolbertreport.cc.com/videos/ri4vbo/intro---12-11-06",
"http://thecolbertreport.cc.com/videos/t0abnh/defending-rosie",
"http://thecolbertreport.cc.com/videos/uea9ov/jack-kingston",
"http://thecolbertreport.cc.com/videos/k0a3hu/the-white-christmas-album",
"http://thecolbertreport.cc.com/videos/2cea2e/threatdown---christmas-style",
"http://thecolbertreport.cc.com/videos/bqpkoy/peter-singer",
"http://thecolbertreport.cc.com/videos/5alg6c/got-your-back"
],
"guest": "Dr. Peter Singer"
},
{
"date": "2006-12-12",
"videos": [
"http://thecolbertreport.cc.com/videos/35u0ts/intro---12-12-06",
"http://thecolbertreport.cc.com/videos/kn0mlp/augusto-pinochet-s-coup",
"http://thecolbertreport.cc.com/videos/dctycd/shout-out----beef-hammer-flag",
"http://thecolbertreport.cc.com/videos/1o4xvk/the-word---casualty-of-war",
"http://thecolbertreport.cc.com/videos/e1504w/who-s-honoring-me-now----merriam-webster-s-word-of-the-year",
"http://thecolbertreport.cc.com/videos/xd9itr/better-know-a-district---new-members-of-congress-at-the-kennedy-school",
"http://thecolbertreport.cc.com/videos/j01zz1/dan-savage",
"http://thecolbertreport.cc.com/videos/s3gs7u/sign-off---post-show-taco-bell-chalupa-chow-down"
],
"guest": "Dan Savage"
},
{
"date": "2006-12-13",
"videos": [
"http://thecolbertreport.cc.com/videos/6ohkja/intro---12-13-06",
"http://thecolbertreport.cc.com/videos/yl018s/stephen-jr--s-christmas-miracle",
"http://thecolbertreport.cc.com/videos/suc40d/the-word---it-s-a-small-world",
"http://thecolbertreport.cc.com/videos/5uk9gs/replenishing-the-eggnog-supply",
"http://thecolbertreport.cc.com/videos/d0ml1u/sea-tac-s-christmas-trees-restored",
"http://thecolbertreport.cc.com/videos/x1f8dg/doris-kearns-goodwin",
"http://thecolbertreport.cc.com/videos/0kcywr/charge-me-twice-for-stephen"
],
"guest": "Doris Kearns Goodwin"
},
{
"date": "2006-12-14",
"videos": [
"http://thecolbertreport.cc.com/videos/lwojc9/intro---12-14-06",
"http://thecolbertreport.cc.com/videos/3moulc/finger-strengthening",
"http://thecolbertreport.cc.com/videos/5dvej7/the-american-people-are-to-blame",
"http://thecolbertreport.cc.com/videos/60ds73/the-word---clarity",
"http://thecolbertreport.cc.com/videos/klp05i/blood-in-the-water---bruce-tinsley-s-dui",
"http://thecolbertreport.cc.com/videos/wauy3f/caesar-honeybee-or-tyrone-hunnibi-",
"http://thecolbertreport.cc.com/videos/yaoen5/daniel-pinchbeck",
"http://thecolbertreport.cc.com/videos/ua9gte/letter-to-representative-jack-kingston"
],
"guest": "Daniel Pinchbeck"
},
{
"date": "2006-12-18",
"videos": [
"http://thecolbertreport.cc.com/videos/t66x66/intro---12-18-06",
"http://thecolbertreport.cc.com/videos/j56gn9/diy-cold-medicine",
"http://thecolbertreport.cc.com/videos/ndrsqu/profiles-in-balls",
"http://thecolbertreport.cc.com/videos/mv0dai/the-word---the-draft",
"http://thecolbertreport.cc.com/videos/c4vji3/tip-wag---art-edition",
"http://thecolbertreport.cc.com/videos/nnpc32/jack-welch",
"http://thecolbertreport.cc.com/videos/yy82av/the-jingle-terns"
],
"guest": "Jack Welch"
},
{
"date": "2006-12-19",
"videos": [
"http://thecolbertreport.cc.com/videos/an4q7j/intro---12-19-06",
"http://thecolbertreport.cc.com/videos/q9o6sw/person-of-the-year",
"http://thecolbertreport.cc.com/videos/qh5kz9/stephen-goes-to-harvard",
"http://thecolbertreport.cc.com/videos/v81egv/deepak-chopra",
"http://thecolbertreport.cc.com/videos/3fhkpv/face-off-preview",
"http://thecolbertreport.cc.com/videos/kza2d8/the-word---tit-for-tat"
],
"guest": "Deepak Chopra"
},
{
"date": "2006-12-20",
"videos": [
"http://thecolbertreport.cc.com/videos/ouau0r/intro---12-20-06",
"http://thecolbertreport.cc.com/videos/8t5vas/rock-and-awe--countdown-to-guitarmageddon",
"http://thecolbertreport.cc.com/videos/lyahfg/shreddown",
"http://thecolbertreport.cc.com/videos/iocz1g/chris-funk",
"http://thecolbertreport.cc.com/videos/4hpbzt/peter-frampton",
"http://thecolbertreport.cc.com/videos/m75mj9/shreddown---the-judgment"
],
"guest": "Howard Zinn"
}
],
"2007": [
{
"date": "2007-01-08",
"videos": [
"http://thecolbertreport.cc.com/videos/35rb23/intro---1-8-07",
"http://thecolbertreport.cc.com/videos/liauyt/the-gallotastic-executacular---hangin--with-mr--hussein",
"http://thecolbertreport.cc.com/videos/2eciiy/the-word---facts",
"http://thecolbertreport.cc.com/videos/vfxu06/who-s-attacking-me-now----lake-superior-state-university",
"http://thecolbertreport.cc.com/videos/ya0sji/who-s-honoring-me-now----gay-com",
"http://thecolbertreport.cc.com/videos/uuhxlg/stephen-s-sound-advice---surviving-the-winter-blues",
"http://thecolbertreport.cc.com/videos/duytly/ethan-nadelmann"
],
"guest": "Ethan Nadelmann"
},
{
"date": "2007-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/oxq1cl/not-a-sex-scandal",
"http://thecolbertreport.cc.com/videos/rsuyoo/intro---1-9-07",
"http://thecolbertreport.cc.com/videos/a9e13e/the-word---texas-hold--em",
"http://thecolbertreport.cc.com/videos/bmmv86/ohio-state-loses",
"http://thecolbertreport.cc.com/videos/1yhdmp/we-the-mediator---celebrity-feuds",
"http://thecolbertreport.cc.com/videos/ezqjm4/jim-cramer",
"http://thecolbertreport.cc.com/videos/q6rkb3/sign-off---farewell--james-brown"
],
"guest": "Jim Cramer"
},
{
"date": "2007-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/b3d5l1/intro---1-10-07",
"http://thecolbertreport.cc.com/videos/j5htgu/president-s-speech",
"http://thecolbertreport.cc.com/videos/crgbvq/invasion-of-the-country-snatchers",
"http://thecolbertreport.cc.com/videos/ie5gtu/the-word---worry",
"http://thecolbertreport.cc.com/videos/048s3c/tek-jansen---hounds-of-hell--ragtime-billy-peaches",
"http://thecolbertreport.cc.com/videos/ku9y06/david-kamp",
"http://thecolbertreport.cc.com/videos/9nuye7/sign-off---thawing-meat"
],
"guest": "David Kamp"
},
{
"date": "2007-01-11",
"videos": [
"http://thecolbertreport.cc.com/videos/21xsg9/intro---1-11-07",
"http://thecolbertreport.cc.com/videos/nhwjcd/what-number-is-stephen-thinking-of----doubled-up",
"http://thecolbertreport.cc.com/videos/7v6i3c/ken-roth",
"http://thecolbertreport.cc.com/videos/jxfsrm/tip-wag---science-and-technology",
"http://thecolbertreport.cc.com/videos/fxnp1o/judy-woodruff"
],
"guest": "Judy Woodruff"
},
{
"date": "2007-01-15",
"videos": [
"http://thecolbertreport.cc.com/videos/tpjoll/intro---1-15-07",
"http://thecolbertreport.cc.com/videos/bemyqb/inspired-by-dr--king",
"http://thecolbertreport.cc.com/videos/ni7g5j/a-man-s-touch",
"http://thecolbertreport.cc.com/videos/xb55y0/the-word---victory-",
"http://thecolbertreport.cc.com/videos/eamlaf/bears---balls---gas",
"http://thecolbertreport.cc.com/videos/o7xhwp/alex-kuczynski"
],
"guest": "Alex Kuczynski"
},
{
"date": "2007-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/795pdp/intro---1-16-07",
"http://thecolbertreport.cc.com/videos/ycpx4s/squeaky-chair",
"http://thecolbertreport.cc.com/videos/r7kinv/pesos-for-pizza",
"http://thecolbertreport.cc.com/videos/hwlhus/the-word---symbolic",
"http://thecolbertreport.cc.com/videos/6q6sy0/sport-report---bend-it-like-beckham",
"http://thecolbertreport.cc.com/videos/2tdkm8/dinesh-d-souza"
],
"guest": "Dinesh D'Souza"
},
{
"date": "2007-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ufcy26/intro---1-17-07",
"http://thecolbertreport.cc.com/videos/8amkmh/200th-episode",
"http://thecolbertreport.cc.com/videos/wjuko4/lynn-swann",
"http://thecolbertreport.cc.com/videos/xv8tlv/better-know-a-district---washington-s-3rd---brian-baird",
"http://thecolbertreport.cc.com/videos/1qdsbp/richard-clarke"
],
"guest": "Richard Clarke"
},
{
"date": "2007-01-18",
"videos": [
"http://thecolbertreport.cc.com/videos/z0tcp1/intro---1-18-07",
"http://thecolbertreport.cc.com/videos/kyc2cd/the-advent-of-o-reilly",
"http://thecolbertreport.cc.com/videos/qtrfgo/the-word---go-it-alone",
"http://thecolbertreport.cc.com/videos/dre6df/we-the-mediator---trump-v--o-donnell",
"http://thecolbertreport.cc.com/videos/9seimt/bill-o-reilly",
"http://thecolbertreport.cc.com/videos/cuouel/o-reilly-s-microwave"
],
"guest": "Bill O'Reilly"
},
{
"date": "2007-01-22",
"videos": [
"http://thecolbertreport.cc.com/videos/9vl9tx/intro---1-22-07",
"http://thecolbertreport.cc.com/videos/1t56vq/the-bears",
"http://thecolbertreport.cc.com/videos/itbxtv/who-s-riding-my-coattails-now----terence-koh",
"http://thecolbertreport.cc.com/videos/mfzk22/the-word---exact-words",
"http://thecolbertreport.cc.com/videos/opisk9/balls-for-kidz---gambling",
"http://thecolbertreport.cc.com/videos/rnd3lf/tom-schaller",
"http://thecolbertreport.cc.com/videos/6mgw6m/sign-off---zeppelin-reunion"
],
"guest": "Tom Schaller"
},
{
"date": "2007-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/xjsnlx/intro---1-23-07",
"http://thecolbertreport.cc.com/videos/ebff8o/pre-tape",
"http://thecolbertreport.cc.com/videos/vm00zm/lieber-vs--lieber",
"http://thecolbertreport.cc.com/videos/jv328p/threatdown---the-weather-channel",
"http://thecolbertreport.cc.com/videos/y849ls/michael-steele",
"http://thecolbertreport.cc.com/videos/xxwpqf/wednesday-today"
],
"guest": "Michael Steele"
},
{
"date": "2007-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/goh39c/intro---1-24-07",
"http://thecolbertreport.cc.com/videos/gzqy8i/state-of-the-union---cheney-wins",
"http://thecolbertreport.cc.com/videos/e17mq9/the-word---great-news",
"http://thecolbertreport.cc.com/videos/3525mn/better-know-a-district---pennsylvania-s-4th---jason-altmire",
"http://thecolbertreport.cc.com/videos/r5j10b/lou-dobbs"
],
"guest": "Lou Dobbs"
},
{
"date": "2007-01-25",
"videos": [
"http://thecolbertreport.cc.com/videos/n139mj/intro---1-25-07",
"http://thecolbertreport.cc.com/videos/7z0x1m/right-away-",
"http://thecolbertreport.cc.com/videos/5rmbin/the-word---smafu",
"http://thecolbertreport.cc.com/videos/hkzk11/sport-report---more-with-coach-mancini",
"http://thecolbertreport.cc.com/videos/tufln6/mike-wallace"
],
"guest": "Mike Wallace"
},
{
"date": "2007-01-29",
"videos": [
"http://thecolbertreport.cc.com/videos/o0maxx/intro---1-29-07",
"http://thecolbertreport.cc.com/videos/1m6mdm/new-york-grieves",
"http://thecolbertreport.cc.com/videos/z0b9vz/stephen-colbert-day",
"http://thecolbertreport.cc.com/videos/6p6df7/the-word---wikilobbying",
"http://thecolbertreport.cc.com/videos/11js13/tip-wag---tom-cruise",
"http://thecolbertreport.cc.com/videos/zqi973/barry-lando"
],
"guest": "Barry M. Lando"
},
{
"date": "2007-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/np3o3k/intro---1-30-07",
"http://thecolbertreport.cc.com/videos/j1sd5a/new-military-weapon",
"http://thecolbertreport.cc.com/videos/cv6q8o/david-leonhardt",
"http://thecolbertreport.cc.com/videos/ttzs6x/caviar-omelets-for-the-troops",
"http://thecolbertreport.cc.com/videos/bsbad5/judge--jury---executioner---adultery",
"http://thecolbertreport.cc.com/videos/eyhp38/donna-shalala",
"http://thecolbertreport.cc.com/videos/dwv24s/sign-off---microwave-gift-to-o-reilly"
],
"guest": "Donna Shalala"
},
{
"date": "2007-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/84e6zh/exclusive---better-know-a-district---new-york-s-6th---gregory-meeks",
"http://thecolbertreport.cc.com/videos/4mp2yh/intro---1-31-07",
"http://thecolbertreport.cc.com/videos/v1la3q/global-warming",
"http://thecolbertreport.cc.com/videos/3emlxq/on-notice---jane-fonda-fantasies",
"http://thecolbertreport.cc.com/videos/qg7l5c/the-word---black-sheep",
"http://thecolbertreport.cc.com/videos/4lodkc/better-know-a-district---new-york-s-6th---gregory-meeks",
"http://thecolbertreport.cc.com/videos/npjb41/jed-babbin"
],
"guest": "Jed Babbin"
},
{
"date": "2007-02-01",
"videos": [
"http://thecolbertreport.cc.com/videos/89lmed/intro---2-1-07",
"http://thecolbertreport.cc.com/videos/mzq0ue/cartoon-terrorism",
"http://thecolbertreport.cc.com/videos/492fjx/ending-racism",
"http://thecolbertreport.cc.com/videos/rbb68f/the-word---we-shall-overcome",
"http://thecolbertreport.cc.com/videos/2m3ntu/movies-that-are-destroying-america---oscars-edition",
"http://thecolbertreport.cc.com/videos/s2k3ll/chuck-schumer",
"http://thecolbertreport.cc.com/videos/b1j62r/the-most-poetic-f--king-thing-i-ve-ever-heard"
],
"guest": "Sen. Chuck Schumer"
},
{
"date": "2007-02-05",
"videos": [
"http://thecolbertreport.cc.com/videos/qonzal/intro---2-5-07",
"http://thecolbertreport.cc.com/videos/raqy45/peyton-manseed",
"http://thecolbertreport.cc.com/videos/1ppbxw/save-stephen-jr-",
"http://thecolbertreport.cc.com/videos/pkx5sp/the-word---second-opinion",
"http://thecolbertreport.cc.com/videos/cu6q1h/threatdown---giant-mexican-babies",
"http://thecolbertreport.cc.com/videos/qj7ov5/wendy-kopp"
],
"guest": "Wendy Kopp"
},
{
"date": "2007-02-06",
"videos": [
"http://thecolbertreport.cc.com/videos/irg0ck/exclusive---better-know-a-district---ohio-s-18th---zack-space-pt--1",
"http://thecolbertreport.cc.com/videos/7vpqnl/exclusive---better-know-a-district---ohio-s-18th---zack-space-pt--2",
"http://thecolbertreport.cc.com/videos/w05aan/intro---2-6-07",
"http://thecolbertreport.cc.com/videos/rirgzz/pray-for-stephen",
"http://thecolbertreport.cc.com/videos/ronvu0/the-word---making-a-killing",
"http://thecolbertreport.cc.com/videos/sh2kz6/better-know-a-district---ohio-s-18th---zack-space",
"http://thecolbertreport.cc.com/videos/vnbq6e/charles-leduff"
],
"guest": "Charlie LeDuff"
},
{
"date": "2007-02-07",
"videos": [
"http://thecolbertreport.cc.com/videos/lh3p6z/intro---2-7-07",
"http://thecolbertreport.cc.com/videos/skowle/the-san-francisco-treat",
"http://thecolbertreport.cc.com/videos/hx3kkt/california-values-watch",
"http://thecolbertreport.cc.com/videos/fykjnf/the-word---silence",
"http://thecolbertreport.cc.com/videos/pp2kiz/tek-jansen---from-the-future",
"http://thecolbertreport.cc.com/videos/n36pgb/steven-pinker"
],
"guest": "Steven Pinker"
},
{
"date": "2007-02-08",
"videos": [
"http://thecolbertreport.cc.com/videos/5l6ygo/intro---2-8-07",
"http://thecolbertreport.cc.com/videos/btxrus/space-madness",
"http://thecolbertreport.cc.com/videos/q5bcg9/stephen-for-president---a-sign",
"http://thecolbertreport.cc.com/videos/12d71h/debra-dickerson",
"http://thecolbertreport.cc.com/videos/ls3y3l/was-it-really-that-bad----salem-witch-trials",
"http://thecolbertreport.cc.com/videos/m5tx4f/chris-hedges"
],
"guest": "Chris Hedges"
},
{
"date": "2007-02-12",
"videos": [
"http://thecolbertreport.cc.com/videos/sudz5h/intro---2-12-07",
"http://thecolbertreport.cc.com/videos/cvs0b4/the-word---inappropriate",
"http://thecolbertreport.cc.com/videos/wetex5/tip-wag---john-howard",
"http://thecolbertreport.cc.com/videos/ovmu6y/michael-oppenheimer",
"http://thecolbertreport.cc.com/videos/gbc95s/alpha-dog-of-the-week---amitabh-bachchan"
],
"guest": "Michael Oppenheimer"
},
{
"date": "2007-02-13",
"videos": [
"http://thecolbertreport.cc.com/videos/7zlyvc/the-word---apocalypse-mao--murdered-by-the-orient-s-success---frenemy",
"http://thecolbertreport.cc.com/videos/dh1nxa/apocalypse-mao--murdered-by-the-orient-s-success---take-the-pulse",
"http://thecolbertreport.cc.com/videos/cbgmhg/sheryl-wudunn",
"http://thecolbertreport.cc.com/videos/rewkbj/apocalypse-mao--murdered-by-the-orient-s-success---eight-child-policy"
],
"guest": "Sheryl WuDunn"
},
{
"date": "2007-02-14",
"videos": [
"http://thecolbertreport.cc.com/videos/0unos7/catching-up-with-china",
"http://thecolbertreport.cc.com/videos/sv6om5/safe-sex-for-senior-citizens",
"http://thecolbertreport.cc.com/videos/qngp8d/the-word---bad-medicine",
"http://thecolbertreport.cc.com/videos/e7leqz/stephen-protects-valentine-s-day",
"http://thecolbertreport.cc.com/videos/npsgvg/sport-report---westminster-kennel-club-dog-show",
"http://thecolbertreport.cc.com/videos/tv0pg5/lance-armstrong",
"http://thecolbertreport.cc.com/videos/4zrnjn/intro---2-14-07"
],
"guest": "Lance Armstrong"
},
{
"date": "2007-02-15",
"videos": [
"http://thecolbertreport.cc.com/videos/bemh6r/intro---2-15-07",
"http://thecolbertreport.cc.com/videos/5h0hc1/the-365-most-influential-cultural-figures-of-2007---j-j--abrams",
"http://thecolbertreport.cc.com/videos/dv94hn/helen-thomas-s-chair",
"http://thecolbertreport.cc.com/videos/xsukru/the-365-most-influential-cultural-figures-of-2007---candice-bergen",
"http://thecolbertreport.cc.com/videos/gxjtk4/better-know-a-district---arkansas--2nd---vic-snyder",
"http://thecolbertreport.cc.com/videos/htsqly/shashi-tharoor"
],
"guest": "Shashi Tharoor"
},
{
"date": "2007-02-26",
"videos": [
"http://thecolbertreport.cc.com/videos/7kzllg/intro---2-26-07",
"http://thecolbertreport.cc.com/videos/6q3fey/the-word---success",
"http://thecolbertreport.cc.com/videos/liy97p/stephen-s-sound-advice---avoiding-humiliation-on-the-campaign-trail",
"http://thecolbertreport.cc.com/videos/rj64v2/zev-chafets",
"http://thecolbertreport.cc.com/videos/lto66u/sign-off---the-stupidest-person-in-the-world"
],
"guest": "Zev Chafets"
},
{
"date": "2007-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/m6llmb/intro---2-27-07",
"http://thecolbertreport.cc.com/videos/4q8yqr/gore-s-garbage",
"http://thecolbertreport.cc.com/videos/08vl33/the-word---recoil",
"http://thecolbertreport.cc.com/videos/kyuvud/dead-to-me---raptors",
"http://thecolbertreport.cc.com/videos/a5eovz/tip-wag---bilk",
"http://thecolbertreport.cc.com/videos/xtu2o9/craig-venter"
],
"guest": "Dr. Craig Venter"
},
{
"date": "2007-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/k64d0x/intro---2-28-07",
"http://thecolbertreport.cc.com/videos/94efgl/david-geffen-the-intern-",
"http://thecolbertreport.cc.com/videos/ax1yhn/obama-vs--colbert",
"http://thecolbertreport.cc.com/videos/2j1fug/profiles-in-quitters---tom-vilsack",
"http://thecolbertreport.cc.com/videos/2w1ttr/problems-without-solutions--stay-at-home-dads",
"http://thecolbertreport.cc.com/videos/rjcwpq/nina-jablonski"
],
"guest": "Nina Jablonski"
},
{
"date": "2007-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/uvhlbh/intro---3-1-07",
"http://thecolbertreport.cc.com/videos/dnoicn/jesus--1-",
"http://thecolbertreport.cc.com/videos/09pfnw/the-word---bury-the-lead",
"http://thecolbertreport.cc.com/videos/xp8ghf/better-know-a-district---tennessee-s-9th---steve-cohen",
"http://thecolbertreport.cc.com/videos/hdb72u/larry-king",
"http://thecolbertreport.cc.com/videos/din9ey/sign-off---all-the-time"
],
"guest": "Larry King"
},
{
"date": "2007-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/s5zpws/intro---3-5-07",
"http://thecolbertreport.cc.com/videos/f0veng/stop-the-war-in-congress",
"http://thecolbertreport.cc.com/videos/9rmkm6/ben-and-jerry---introducing-americone-dream",
"http://thecolbertreport.cc.com/videos/erco0p/bears---balls---bees",
"http://thecolbertreport.cc.com/videos/w9i285/mara-vanderslice",
"http://thecolbertreport.cc.com/videos/u5x46t/sign-off---you-get-a-pint-"
],
"guest": "Mara Vanderslice, Ben and Jerry"
},
{
"date": "2007-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/jokvk3/intro---3-6-07",
"http://thecolbertreport.cc.com/videos/987dug/stephen-wins-the-lottery",
"http://thecolbertreport.cc.com/videos/5xpqn0/libby-verdict",
"http://thecolbertreport.cc.com/videos/yjwisn/the-word---wwjd",
"http://thecolbertreport.cc.com/videos/ryt5zt/threatdown---cheney-s-clot",
"http://thecolbertreport.cc.com/videos/d9k0w9/mark-frauenfelder"
],
"guest": "Mark Frauenfelder"
},
{
"date": "2007-03-07",
"videos": [
"http://thecolbertreport.cc.com/videos/t3l2qk/intro---3-7-07",
"http://thecolbertreport.cc.com/videos/o5rj01/mega-millions",
"http://thecolbertreport.cc.com/videos/f4wilr/the-word---don-t",
"http://thecolbertreport.cc.com/videos/mw47n3/easter-under-attack---bunny",
"http://thecolbertreport.cc.com/videos/k8n6ln/michael-spector",
"http://thecolbertreport.cc.com/videos/eu60l7/sign-off---colbert-savings-time"
],
"guest": "Michael Specter"
},
{
"date": "2007-03-08",
"videos": [
"http://thecolbertreport.cc.com/videos/hdanpb/exclusive---better-know-a-district---kentucky-s-3rd---john-yarmuth-pt--1",
"http://thecolbertreport.cc.com/videos/1fsr4r/exclusive---better-know-a-district---kentucky-s-3rd---john-yarmuth-pt--2",
"http://thecolbertreport.cc.com/videos/v9pxbp/intro---3-8-07",
"http://thecolbertreport.cc.com/videos/fkezkh/jesus-libby",
"http://thecolbertreport.cc.com/videos/kf01z4/the-word---comic-justice",
"http://thecolbertreport.cc.com/videos/gfi7dr/better-know-a-district---kentucky-s-3rd---john-yarmuth",
"http://thecolbertreport.cc.com/videos/na2cwe/ted-koppel"
],
"guest": "Ted Koppel"
},
{
"date": "2007-03-12",
"videos": [
"http://thecolbertreport.cc.com/videos/eoubiy/intro---3-12-07",
"http://thecolbertreport.cc.com/videos/cxle7m/newt-gingrich-s-extramarital-affair",
"http://thecolbertreport.cc.com/videos/qs3d07/the-word---home-field-advantage",
"http://thecolbertreport.cc.com/videos/rp8fy7/tip-wag---u-s--mint",
"http://thecolbertreport.cc.com/videos/0z68wk/nicholas-kristof",
"http://thecolbertreport.cc.com/videos/paedah/sign-off---captain-america-shield"
],
"guest": "Nicholas D. Kristof"
},
{
"date": "2007-03-13",
"videos": [
"http://thecolbertreport.cc.com/videos/3gv9du/intro---3-13-07",
"http://thecolbertreport.cc.com/videos/n1695w/time-travel",
"http://thecolbertreport.cc.com/videos/o93g04/willie-nelson-s-cobbler",
"http://thecolbertreport.cc.com/videos/aln9gt/donald-shields",
"http://thecolbertreport.cc.com/videos/nebseq/four-horsemen-of-the-a-pop-calypse---300",
"http://thecolbertreport.cc.com/videos/pajwaw/michael-eric-dyson",
"http://thecolbertreport.cc.com/videos/goeagu/the-word---goodnight"
],
"guest": "Michael Eric Dyson"
},
{
"date": "2007-03-14",
"videos": [
"http://thecolbertreport.cc.com/videos/gjg322/intro---3-14-07",
"http://thecolbertreport.cc.com/videos/mi3odp/when-ancestors-attack---barack-obama",
"http://thecolbertreport.cc.com/videos/jdieqt/the-word---high-fidelity",
"http://thecolbertreport.cc.com/videos/6t5ydk/rocky-mountain-high",
"http://thecolbertreport.cc.com/videos/xy5mon/sport-report---ncaa",
"http://thecolbertreport.cc.com/videos/3w6h8k/ed-viesturs",
"http://thecolbertreport.cc.com/videos/x40idi/sign-off---united-we-lick"
],
"guest": "Ed Viesturs"
},
{
"date": "2007-03-15",
"videos": [
"http://thecolbertreport.cc.com/videos/3yjwcu/exclusive---better-know-a-district---illinois--17th---phil-hare-pt--1",
"http://thecolbertreport.cc.com/videos/l2j89r/exclusive---better-know-a-district---illinois--17th---phil-hare-pt--2",
"http://thecolbertreport.cc.com/videos/gjg322/intro---3-14-07",
"http://thecolbertreport.cc.com/videos/mi3odp/when-ancestors-attack---barack-obama",
"http://thecolbertreport.cc.com/videos/jdieqt/the-word---high-fidelity",
"http://thecolbertreport.cc.com/videos/6t5ydk/rocky-mountain-high",
"http://thecolbertreport.cc.com/videos/xy5mon/sport-report---ncaa",
"http://thecolbertreport.cc.com/videos/3w6h8k/ed-viesturs",
"http://thecolbertreport.cc.com/videos/x40idi/sign-off---united-we-lick"
],
"guest": "Ayaan Hirsi Ali"
},
{
"date": "2007-03-15",
"videos": [
"http://thecolbertreport.cc.com/videos/in8gsh/intro---3-15-07",
"http://thecolbertreport.cc.com/videos/ojcmho/st--patrick-s-day",
"http://thecolbertreport.cc.com/videos/9wsh6f/better-know-a-district---illinois--17th---phil-hare",
"http://thecolbertreport.cc.com/videos/pvxlng/ayaan-hirsi-ali",
"http://thecolbertreport.cc.com/videos/nfjx5l/sign-off---candy"
],
"guest": "Ayaan Hirsi Ali"
},
{
"date": "2007-03-19",
"videos": [
"http://thecolbertreport.cc.com/videos/akdm39/intro---3-19-07",
"http://thecolbertreport.cc.com/videos/zfhuml/emanuel-attacks-stephen",
"http://thecolbertreport.cc.com/videos/ichd6m/the-word---pound-of-flesh",
"http://thecolbertreport.cc.com/videos/ovsoy3/willie-nelson-tomorrow",
"http://thecolbertreport.cc.com/videos/i34oa7/threatdown---seniors",
"http://thecolbertreport.cc.com/videos/nby1fe/jerome-groopman",
"http://thecolbertreport.cc.com/videos/woj3kf/alpha-dog-of-the-week---pennies"
],
"guest": "Jerome Groopman"
},
{
"date": "2007-03-20",
"videos": [
"http://thecolbertreport.cc.com/videos/nepea4/intro---3-20-07",
"http://thecolbertreport.cc.com/videos/p3nkju/willie-recall",
"http://thecolbertreport.cc.com/videos/8w2rhi/the-word---supernatural",
"http://thecolbertreport.cc.com/videos/4fyygp/threatdown---polar-bear-cub",
"http://thecolbertreport.cc.com/videos/rn79kl/stephen-colbert-day---honor",
"http://thecolbertreport.cc.com/videos/fxdmt0/willie-nelson"
],
"guest": "Willie Nelson"
},
{
"date": "2007-03-21",
"videos": [
"http://thecolbertreport.cc.com/videos/b4r6li/intro---3-21-07",
"http://thecolbertreport.cc.com/videos/r7dj9j/stephen-s-stoned-friend",
"http://thecolbertreport.cc.com/videos/wyig4v/impeach-bush",
"http://thecolbertreport.cc.com/videos/js464k/the-word---sex",
"http://thecolbertreport.cc.com/videos/6b13mn/better-know-a-district---new-york-s-22nd---maurice-hinchey",
"http://thecolbertreport.cc.com/videos/4jygnv/benjamin-barber",
"http://thecolbertreport.cc.com/videos/psro3f/sign-off---goodnights"
],
"guest": "Benjamin Barber"
},
{
"date": "2007-03-22",
"videos": [
"http://thecolbertreport.cc.com/videos/rf90w7/intro---3-22-07",
"http://thecolbertreport.cc.com/videos/yic3o0/infomosexual-graphics",
"http://thecolbertreport.cc.com/videos/ez9npn/eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/xgjo8q/face-reading-expert",
"http://thecolbertreport.cc.com/videos/pd3hdf/sport-report---ncaa-final-four",
"http://thecolbertreport.cc.com/videos/i2wwym/katie-couric",
"http://thecolbertreport.cc.com/videos/k6m8na/sign-off---future"
],
"guest": "Katie Couric"
},
{
"date": "2007-03-26",
"videos": [
"http://thecolbertreport.cc.com/videos/k1iiew/intro---3-26-07",
"http://thecolbertreport.cc.com/videos/t9n8i2/mummy",
"http://thecolbertreport.cc.com/videos/t7x0xg/torture-gonzales",
"http://thecolbertreport.cc.com/videos/hc58hq/for-your-editing-pleasure",
"http://thecolbertreport.cc.com/videos/r6ez6r/stephen-colbert-day",
"http://thecolbertreport.cc.com/videos/a19udk/john-perry-barlow",
"http://thecolbertreport.cc.com/videos/dc5qfy/sign-off---photo-op"
],
"guest": "John Perry Barlow"
},
{
"date": "2007-03-27",
"videos": [
"http://thecolbertreport.cc.com/videos/9hzwxa/intro---3-2707",
"http://thecolbertreport.cc.com/videos/ct77qc/sean-penn-unleashes-on-president-bush",
"http://thecolbertreport.cc.com/videos/y05sqg/madeleine-albright",
"http://thecolbertreport.cc.com/videos/ac6sto/tip-wag---drug-dealers",
"http://thecolbertreport.cc.com/videos/z3a4ow/james-fallows"
],
"guest": "Madeleine Albright, James Fallows"
},
{
"date": "2007-03-28",
"videos": [
"http://thecolbertreport.cc.com/videos/c3lbed/intro---3-28-07",
"http://thecolbertreport.cc.com/videos/8b58j1/dancing-with-the-stars",
"http://thecolbertreport.cc.com/videos/eoe8d4/claim-to-the-arctic",
"http://thecolbertreport.cc.com/videos/e6rbbg/the-word---monkey-business",
"http://thecolbertreport.cc.com/videos/7t7l7y/the-axis-of-evil-of-the-week",
"http://thecolbertreport.cc.com/videos/oval1w/jabari-asim",
"http://thecolbertreport.cc.com/videos/tffkup/sign-off---going-to-bed-angry"
],
"guest": "Jabari Asim"
},
{
"date": "2007-03-29",
"videos": [
"http://thecolbertreport.cc.com/videos/82ki4g/intro---3-29-07",
"http://thecolbertreport.cc.com/videos/yp03mv/equal-rights",
"http://thecolbertreport.cc.com/videos/bwtu8b/strolling-in-baghdad",
"http://thecolbertreport.cc.com/videos/m1iokb/the-word---lemon-raid",
"http://thecolbertreport.cc.com/videos/rmylpg/alpha-dog-of-the-week---toby",
"http://thecolbertreport.cc.com/videos/dune0v/nightgown-novel-model",
"http://thecolbertreport.cc.com/videos/gp6vcm/clive-james",
"http://thecolbertreport.cc.com/videos/cnmwu7/sign-off---it-s-been-real"
],
"guest": "Clive James"
},
{
"date": "2007-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/2secqi/intro---4-9-07",
"http://thecolbertreport.cc.com/videos/c2ss4c/end-of-lent",
"http://thecolbertreport.cc.com/videos/jdh0qr/colin-beavan",
"http://thecolbertreport.cc.com/videos/p1vkhv/ethnic-slurs",
"http://thecolbertreport.cc.com/videos/uyodpo/formula-401k",
"http://thecolbertreport.cc.com/videos/d7vjve/katrina-vanden-heuvel",
"http://thecolbertreport.cc.com/videos/vx3kr4/sign-off---goodnight--ladies"
],
"guest": "Colin Beavan, Katrina vanden Heuvel"
},
{
"date": "2007-04-10",
"videos": [
"http://thecolbertreport.cc.com/videos/gqey9e/intro---4-10-07",
"http://thecolbertreport.cc.com/videos/t52s2y/stiff-upper-lip",
"http://thecolbertreport.cc.com/videos/7xhdfc/the-word---hip-replacement",
"http://thecolbertreport.cc.com/videos/a6j19l/stephen-s-racial-slurs",
"http://thecolbertreport.cc.com/videos/mmtey6/bears---balls---home",
"http://thecolbertreport.cc.com/videos/niryzs/jeannette-walls",
"http://thecolbertreport.cc.com/videos/tjfkfk/the-apology"
],
"guest": "Jeannette Walls"
},
{
"date": "2007-04-11",
"videos": [
"http://thecolbertreport.cc.com/videos/ikived/intro---4-11-07",
"http://thecolbertreport.cc.com/videos/rndpay/the-great-turtle-race",
"http://thecolbertreport.cc.com/videos/o57n2d/the-word---season-pass",
"http://thecolbertreport.cc.com/videos/y3z7pz/anna-nicole-s-baby-daddy",
"http://thecolbertreport.cc.com/videos/qk7xuu/sport-report---spirit-loses",
"http://thecolbertreport.cc.com/videos/6ombuy/vali-nasr",
"http://thecolbertreport.cc.com/videos/py0zro/sign-off---not-literally"
],
"guest": "Vali Nasr"
},
{
"date": "2007-04-12",
"videos": [
"http://thecolbertreport.cc.com/videos/tvo9j1/intro---4-12-07",
"http://thecolbertreport.cc.com/videos/44wpo2/the-pope-and-iraq",
"http://thecolbertreport.cc.com/videos/i2w6da/the-word---body-armor",
"http://thecolbertreport.cc.com/videos/rp5qr3/a-girl-for-stephen-jr-",
"http://thecolbertreport.cc.com/videos/szc2kp/dr--richard-land",
"http://thecolbertreport.cc.com/videos/z4a9cf/sign-off---french-canadian-viewers"
],
"guest": "Dr. Richard Land"
},
{
"date": "2007-04-16",
"videos": [
"http://thecolbertreport.cc.com/videos/opgo7c/intro---4-16-07",
"http://thecolbertreport.cc.com/videos/ow68vg/mope-retraction",
"http://thecolbertreport.cc.com/videos/ndyxmi/the-metaphor-off-is-on",
"http://thecolbertreport.cc.com/videos/fiwckw/the-word---clean-slate",
"http://thecolbertreport.cc.com/videos/vsf7vy/paulina-likes-stephen",
"http://thecolbertreport.cc.com/videos/le9tdo/alpha-dog-of-the-week---paul-wolfowitz",
"http://thecolbertreport.cc.com/videos/yq2yld/sign-off---fondest-memories",
"http://thecolbertreport.cc.com/videos/1dnqiw/john-kerry"
],
"guest": "Sen. John Kerry"
},
{
"date": "2007-04-17",
"videos": [
"http://thecolbertreport.cc.com/videos/35u6vo/metaphor-off-training",
"http://thecolbertreport.cc.com/videos/ctnp41/turtle-race-update",
"http://thecolbertreport.cc.com/videos/k0gjix/the-word---plan-b",
"http://thecolbertreport.cc.com/videos/1ca1nf/tip-wag---fake-sperm",
"http://thecolbertreport.cc.com/videos/ofyxod/elaine-pagels",
"http://thecolbertreport.cc.com/videos/ka39h6/sign-off---stephen-s-taxes",
"http://thecolbertreport.cc.com/videos/28ne1f/intro---4-17-07"
],
"guest": "Elaine Pagels"
},
{
"date": "2007-04-18",
"videos": [
"http://thecolbertreport.cc.com/videos/xjlfa3/intro---4-18-07",
"http://thecolbertreport.cc.com/videos/z7yfgh/who-s-not-honoring-me-now----pulitzer",
"http://thecolbertreport.cc.com/videos/y8uyv4/the-word---branding",
"http://thecolbertreport.cc.com/videos/d5i37n/national-library-week---frank-mccourt",
"http://thecolbertreport.cc.com/videos/hr8hfi/milk---hormones",
"http://thecolbertreport.cc.com/videos/edyu8c/national-library-week---sebastian-junger",
"http://thecolbertreport.cc.com/videos/ebje1q/national-library-week---david-remnick",
"http://thecolbertreport.cc.com/videos/33tv9j/paulina-porizkova",
"http://thecolbertreport.cc.com/videos/tn0cbn/sign-off---upcoming-metaphor-off"
],
"guest": "William Cohen"
},
{
"date": "2007-04-19",
"videos": [
"http://thecolbertreport.cc.com/videos/wh0xf2/intro---4-19-07",
"http://thecolbertreport.cc.com/videos/luoh3l/god-s-pet-chimp",
"http://thecolbertreport.cc.com/videos/goj3np/the-word----400-haircut",
"http://thecolbertreport.cc.com/videos/tv447i/sean-penn",
"http://thecolbertreport.cc.com/videos/iowvf0/meta-free-phor-all--shall-i-nail-thee-to-a-summer-s-day-",
"http://thecolbertreport.cc.com/videos/nzuytf/hyperbole-off"
],
"guest": "Gov. Mike Huckabee"
},
{
"date": "2007-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/e9s3wp/intro---4-23-07",
"http://thecolbertreport.cc.com/videos/tuitvp/gonzales-forgot",
"http://thecolbertreport.cc.com/videos/xgp7gj/stephanie-s-winning-",
"http://thecolbertreport.cc.com/videos/bsgdkg/mike-huckabee---running-mate-bid",
"http://thecolbertreport.cc.com/videos/mksggb/threatdown---myspace",
"http://thecolbertreport.cc.com/videos/25567u/russell-simmons",
"http://thecolbertreport.cc.com/videos/75z88c/colbert-nation-online-discussion-group"
],
"guest": "Russell Simmons"
},
{
"date": "2007-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/6edbk9/intro---4-24-07",
"http://thecolbertreport.cc.com/videos/9lfdmb/bye-bye-to-boris",
"http://thecolbertreport.cc.com/videos/zf1m9m/d-c--voting-rights---eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/zebgor/the-word---act-globally",
"http://thecolbertreport.cc.com/videos/o4vs3o/60--good-news",
"http://thecolbertreport.cc.com/videos/63paz7/alpha-dog-of-the-week---uncle-ben",
"http://thecolbertreport.cc.com/videos/i6gv9q/dr--andrew-weil",
"http://thecolbertreport.cc.com/videos/858p8x/sign-off---captain-lead"
],
"guest": "Dr. Andrew Weil"
},
{
"date": "2007-04-25",
"videos": [
"http://thecolbertreport.cc.com/videos/939oo7/intro---4-25-07",
"http://thecolbertreport.cc.com/videos/9cksb2/dead-to-me---long-war",
"http://thecolbertreport.cc.com/videos/uixydp/the-word---sacrifice",
"http://thecolbertreport.cc.com/videos/xlgsnw/new-issue-of-gq",
"http://thecolbertreport.cc.com/videos/vsu32z/four-horsemen-of-the-a-pop-calypse---prayer",
"http://thecolbertreport.cc.com/videos/877wu4/david-walker",
"http://thecolbertreport.cc.com/videos/dqbrsh/sign-off---promises"
],
"guest": "David Walker"
},
{
"date": "2007-04-26",
"videos": [
"http://thecolbertreport.cc.com/videos/uxgeoh/exclusive---better-know-a-protectorate---guam---madeleine-bordallo-pt--1",
"http://thecolbertreport.cc.com/videos/nfu1lw/exclusive---better-know-a-protectorate---guam---madeleine-bordallo-pt--2",
"http://thecolbertreport.cc.com/videos/tioqro/intro---4-26-07",
"http://thecolbertreport.cc.com/videos/ph7bwx/stephanie-lost",
"http://thecolbertreport.cc.com/videos/nn2tor/the-word---mending-wall",
"http://thecolbertreport.cc.com/videos/7ibt5q/better-know-a-protectorate---guam---madeleine-bordallo",
"http://thecolbertreport.cc.com/videos/wax9na/tom-wolfe",
"http://thecolbertreport.cc.com/videos/4y1aqm/sign-off---yuri-kuklachev"
],
"guest": "Tom Wolfe"
},
{
"date": "2007-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/qiwo3g/intro---4-30-07",
"http://thecolbertreport.cc.com/videos/hpmi3p/first-democratic-debate-for--08",
"http://thecolbertreport.cc.com/videos/lv3s81/neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/o5hsha/tip-wag---shrek",
"http://thecolbertreport.cc.com/videos/iwnuxq/bill-bradley"
],
"guest": "Bill Bradley"
},
{
"date": "2007-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/qd26kv/intro---5-1-07",
"http://thecolbertreport.cc.com/videos/scarky/mitt-s-favorite-book",
"http://thecolbertreport.cc.com/videos/oh320q/npr-correction",
"http://thecolbertreport.cc.com/videos/q45jin/the-word---who-cares-",
"http://thecolbertreport.cc.com/videos/cgfptc/stephen-s-horse",
"http://thecolbertreport.cc.com/videos/m9pls7/malcolm-gladwell",
"http://thecolbertreport.cc.com/videos/zj4aga/sign-off---lutefisk"
],
"guest": "Malcolm Gladwell"
},
{
"date": "2007-05-02",
"videos": [
"http://thecolbertreport.cc.com/videos/zxhw8e/intro---5-2-07",
"http://thecolbertreport.cc.com/videos/vvfvju/hr-1591",
"http://thecolbertreport.cc.com/videos/a3d8vy/the-word---better-safe-than-sorry",
"http://thecolbertreport.cc.com/videos/oo27ij/mike-gravel",
"http://thecolbertreport.cc.com/videos/u82od0/gina-kolata"
],
"guest": "Gina Kolata"
},
{
"date": "2007-05-03",
"videos": [
"http://thecolbertreport.cc.com/videos/33wl1k/exclusive---better-know-a-district---virginia-s-11th---tom-davis",
"http://thecolbertreport.cc.com/videos/42iy2c/intro---5-3-07",
"http://thecolbertreport.cc.com/videos/wsiuq8/battle-of-the-surfaces",
"http://thecolbertreport.cc.com/videos/0wtt0d/the-word---the-unquisition",
"http://thecolbertreport.cc.com/videos/2iymfl/better-know-a-district---virginia-s-11th---tom-davis",
"http://thecolbertreport.cc.com/videos/6azbk5/conn-iggulden",
"http://thecolbertreport.cc.com/videos/dblp9v/sign-off---impatiens"
],
"guest": "Conn Iggulden"
},
{
"date": "2007-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/re08sm/intro---5-7-07",
"http://thecolbertreport.cc.com/videos/5ra6xp/bonjour--mon-frere",
"http://thecolbertreport.cc.com/videos/o0gs8q/republican-debate---diversity",
"http://thecolbertreport.cc.com/videos/ojz8he/the-word---the-intolerant",
"http://thecolbertreport.cc.com/videos/x5zaaj/cheating-death---vaxadrin",
"http://thecolbertreport.cc.com/videos/1i1xa2/richard-preston"
],
"guest": "Richard Preston"
},
{
"date": "2007-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ah3swk/intro---5-8-07",
"http://thecolbertreport.cc.com/videos/4vb9ha/shout-out----uss-rhode-island",
"http://thecolbertreport.cc.com/videos/v2jrqr/the-word---rendered-moot",
"http://thecolbertreport.cc.com/videos/bkd3bl/threatdown---oprah",
"http://thecolbertreport.cc.com/videos/296em4/nassim-nicholas-taleb"
],
"guest": "Nassim Nicholas Taleb"
},
{
"date": "2007-05-09",
"videos": [
"http://thecolbertreport.cc.com/videos/bbia54/intro---5-9-07",
"http://thecolbertreport.cc.com/videos/hs4hrn/mother-s-day",
"http://thecolbertreport.cc.com/videos/01nwrp/formal-request",
"http://thecolbertreport.cc.com/videos/ijt89t/salman-rushdie",
"http://thecolbertreport.cc.com/videos/y81ejs/kiss-the-host",
"http://thecolbertreport.cc.com/videos/4mwns0/thompson-fuss",
"http://thecolbertreport.cc.com/videos/8ixf7m/jane-fonda",
"http://thecolbertreport.cc.com/videos/bhwtjj/sign-off---bedtime-recipe"
],
"guest": "Salman Rushdie, Jane Fonda"
},
{
"date": "2007-05-10",
"videos": [
"http://thecolbertreport.cc.com/videos/h5fw40/intro---5-10-07",
"http://thecolbertreport.cc.com/videos/5mohm3/the-word---illusion",
"http://thecolbertreport.cc.com/videos/6mm58j/hometown-hero-town---naperville--il",
"http://thecolbertreport.cc.com/videos/1yenb5/the-in-box---doctor-colbert",
"http://thecolbertreport.cc.com/videos/ya8jd7/jann-wenner",
"http://thecolbertreport.cc.com/videos/tbehsa/sign-off---time-capsule",
"http://thecolbertreport.cc.com/videos/59lqle/he-s-singing-in-korean"
],
"guest": "Jann Wenner"
},
{
"date": "2007-05-14",
"videos": [
"http://thecolbertreport.cc.com/videos/q3z8ca/intro---5-14-07",
"http://thecolbertreport.cc.com/videos/2wmvq0/ferrari-list",
"http://thecolbertreport.cc.com/videos/ji8vnp/the-word---supporting-role",
"http://thecolbertreport.cc.com/videos/62strl/tip-wag---mitt-romney",
"http://thecolbertreport.cc.com/videos/324045/william-langewiesche",
"http://thecolbertreport.cc.com/videos/70la8y/stealing-lincoln-s-body"
],
"guest": "William Langewiesche"
},
{
"date": "2007-05-15",
"videos": [
"http://thecolbertreport.cc.com/videos/458uob/intro---5-15-07",
"http://thecolbertreport.cc.com/videos/0oyxpf/mcnulty-guilty",
"http://thecolbertreport.cc.com/videos/c0yfoq/pasadena--india",
"http://thecolbertreport.cc.com/videos/lda912/the-word---heated-debate",
"http://thecolbertreport.cc.com/videos/7heoq8/bonus-wag---bush-graphic",
"http://thecolbertreport.cc.com/videos/yqaslk/alpha-dog-of-the-week---michael-wiley",
"http://thecolbertreport.cc.com/videos/q5o3oe/walter-isaacson",
"http://thecolbertreport.cc.com/videos/3mglju/r-i-p--ted-maiman"
],
"guest": "Walter Isaacson"
},
{
"date": "2007-05-16",
"videos": [
"http://thecolbertreport.cc.com/videos/l9r090/intro---5-16-07",
"http://thecolbertreport.cc.com/videos/9nd4g1/second-republican-debate",
"http://thecolbertreport.cc.com/videos/lqz6xp/the-word---level-playing-field",
"http://thecolbertreport.cc.com/videos/vb25tk/formidable-opponent---peanuts",
"http://thecolbertreport.cc.com/videos/vd7dcd/howard-dean",
"http://thecolbertreport.cc.com/videos/west8f/sign-off---name-of-city-here"
],
"guest": "Howard Dean"
},
{
"date": "2007-05-17",
"videos": [
"http://thecolbertreport.cc.com/videos/j0njxq/intro---5-17-07",
"http://thecolbertreport.cc.com/videos/xbgufk/the-hammer-is-here-",
"http://thecolbertreport.cc.com/videos/g57yti/baby-gun-permit",
"http://thecolbertreport.cc.com/videos/wqfqxb/tom-delay",
"http://thecolbertreport.cc.com/videos/nfhqh3/randy-kearse",
"http://thecolbertreport.cc.com/videos/vz0202/sign-off---rafters"
],
"guest": "Randy Kearse, Rep. Tom DeLay"
},
{
"date": "2007-05-21",
"videos": [
"http://thecolbertreport.cc.com/videos/43r84a/intro---5-21-07",
"http://thecolbertreport.cc.com/videos/j7bshe/god-loves-a-big-screen-tv",
"http://thecolbertreport.cc.com/videos/s5odvt/presidential-fraternity",
"http://thecolbertreport.cc.com/videos/w89fii/the-word---his-way",
"http://thecolbertreport.cc.com/videos/zg6n7b/cheating-death---internal-decapitation",
"http://thecolbertreport.cc.com/videos/zhetqf/jared-diamond"
],
"guest": "Jared Diamond"
},
{
"date": "2007-05-22",
"videos": [
"http://thecolbertreport.cc.com/videos/vn2u9p/intro---5-22-07",
"http://thecolbertreport.cc.com/videos/pp3dmv/popularity-contest",
"http://thecolbertreport.cc.com/videos/szr9pb/barack-s-a-liar",
"http://thecolbertreport.cc.com/videos/4wuift/the-word---party-of-change",
"http://thecolbertreport.cc.com/videos/7bglee/threatdown---environmentalists",
"http://thecolbertreport.cc.com/videos/661huh/john-amaechi",
"http://thecolbertreport.cc.com/videos/ivskf6/sign-off---lesson-forgotten"
],
"guest": "John Amaechi"
},
{
"date": "2007-05-23",
"videos": [
"http://thecolbertreport.cc.com/videos/pwwndq/intro---5-23-07",
"http://thecolbertreport.cc.com/videos/ac7obb/bush-is-back-",
"http://thecolbertreport.cc.com/videos/2t0qn4/illegal-immigration---bay-buchanan",
"http://thecolbertreport.cc.com/videos/m6d100/threatdown---pellicano-",
"http://thecolbertreport.cc.com/videos/0v2e97/bob-deans",
"http://thecolbertreport.cc.com/videos/1kaqcp/sign-off---hi-def"
],
"guest": "Bay Buchanan, Bob Deans"
},
{
"date": "2007-05-24",
"videos": [
"http://thecolbertreport.cc.com/videos/fc4ao7/intro---5-24-07",
"http://thecolbertreport.cc.com/videos/ihom0u/fleet-week",
"http://thecolbertreport.cc.com/videos/5d38de/big-loud-flag",
"http://thecolbertreport.cc.com/videos/oxz2g4/up-in-smoke",
"http://thecolbertreport.cc.com/videos/brpu8j/better-know-a-district---arizona-s-7th---raul-grijalva",
"http://thecolbertreport.cc.com/videos/vylxk3/jimmy-wales",
"http://thecolbertreport.cc.com/videos/xj2s00/speaking-fee"
],
"guest": "Jimmy Wales"
},
{
"date": "2007-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/38wiug/intro---6-4-07",
"http://thecolbertreport.cc.com/videos/oujnzk/uneventful-vacation",
"http://thecolbertreport.cc.com/videos/5475j4/democratic-presidential-debate---venue",
"http://thecolbertreport.cc.com/videos/3bhuju/jan-schakowsky",
"http://thecolbertreport.cc.com/videos/svome1/better-know-a-district---illinois--9th---jan-schakowsky",
"http://thecolbertreport.cc.com/videos/o9kyh0/leon-botstein",
"http://thecolbertreport.cc.com/videos/kaun5v/sign-off---mardi-gras-mask"
],
"guest": "Rep. Jan Schakowsky, Leon Botstein"
},
{
"date": "2007-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/7sdcg5/intro---6-5-07",
"http://thecolbertreport.cc.com/videos/cvm31h/you-ve-been-scootered-",
"http://thecolbertreport.cc.com/videos/j3ieeu/yahoo-korea---rain",
"http://thecolbertreport.cc.com/videos/8226p8/the-word---mission-control",
"http://thecolbertreport.cc.com/videos/n0lk8c/the-god-machine-",
"http://thecolbertreport.cc.com/videos/l7y8g1/when-animals-attack-our-morals---flamingos",
"http://thecolbertreport.cc.com/videos/rsex2i/jessica-valenti"
],
"guest": "Jessica Valenti"
},
{
"date": "2007-06-06",
"videos": [
"http://thecolbertreport.cc.com/videos/jorp7o/intro---6-6-07",
"http://thecolbertreport.cc.com/videos/h69756/sinner-edwards",
"http://thecolbertreport.cc.com/videos/5mthf9/the-word---airogance",
"http://thecolbertreport.cc.com/videos/cujedg/tip-wag---deep-purple",
"http://thecolbertreport.cc.com/videos/ngt9bf/carl-bernstein",
"http://thecolbertreport.cc.com/videos/xd82es/craziest-f--king-thing-i-ve-ever-heard---octopi"
],
"guest": "Carl Bernstein"
},
{
"date": "2007-06-07",
"videos": [
"http://thecolbertreport.cc.com/videos/b0xqmj/intro---6-7-07",
"http://thecolbertreport.cc.com/videos/w1jmjp/pope-jump",
"http://thecolbertreport.cc.com/videos/ovs97y/the-word---rodham",
"http://thecolbertreport.cc.com/videos/tl388o/better-know-a-district---washington-s-9th---adam-smith",
"http://thecolbertreport.cc.com/videos/ty2mfm/cullen-murphy",
"http://thecolbertreport.cc.com/videos/sitbn5/sign-off---vomitorium"
],
"guest": "Cullen Murphy"
},
{
"date": "2007-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/1yiwr5/intro---6-11-07",
"http://thecolbertreport.cc.com/videos/dufa3e/commencement-speeches",
"http://thecolbertreport.cc.com/videos/2k0q1b/the-word---easy-a",
"http://thecolbertreport.cc.com/videos/kd0cks/revenge-on-knox-college",
"http://thecolbertreport.cc.com/videos/qrkfud/albania-greets-president-bush",
"http://thecolbertreport.cc.com/videos/zpjdcg/michael-gershon"
],
"guest": "Dr. Michael D. Gershon"
},
{
"date": "2007-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/b08r7k/intro---6-12-07",
"http://thecolbertreport.cc.com/videos/8dqxf0/bush-s-missing-watch",
"http://thecolbertreport.cc.com/videos/sse01t/mr--dyachenko--tear-down-this-wall",
"http://thecolbertreport.cc.com/videos/lhl8km/tommy-chong--commentator",
"http://thecolbertreport.cc.com/videos/ey1hjm/mr--dyachenko--tear-down-this-watermelon",
"http://thecolbertreport.cc.com/videos/2krcmy/colbert-platinum---butler-shortage",
"http://thecolbertreport.cc.com/videos/gdyajn/josh-wolf",
"http://thecolbertreport.cc.com/videos/r2b64h/mr--dyachenko--tear-me-off-a-piece-of-this-cake"
],
"guest": "Josh Wolf"
},
{
"date": "2007-06-13",
"videos": [
"http://thecolbertreport.cc.com/videos/onm1u4/intro---6-13-07",
"http://thecolbertreport.cc.com/videos/fytk75/ruined-anniversary",
"http://thecolbertreport.cc.com/videos/6nklj9/freezing-cold-case-files--otzi",
"http://thecolbertreport.cc.com/videos/tnydpx/the-word---pathophysiology",
"http://thecolbertreport.cc.com/videos/2bu2sn/threatdown---robots",
"http://thecolbertreport.cc.com/videos/o2ywub/ron-paul",
"http://thecolbertreport.cc.com/videos/cakp5s/sign-off---crispy-deliciousness"
],
"guest": "Rep. Ron Paul"
},
{
"date": "2007-06-14",
"videos": [
"http://thecolbertreport.cc.com/videos/oa9gd7/intro---6-14-07",
"http://thecolbertreport.cc.com/videos/6uc0h1/fred-thompson-on-fire",
"http://thecolbertreport.cc.com/videos/g52jco/stephen-benjamin",
"http://thecolbertreport.cc.com/videos/0agktt/bears---balls---summer-vacation-edition",
"http://thecolbertreport.cc.com/videos/a0p792/daniel-b--smith",
"http://thecolbertreport.cc.com/videos/llk3nk/sign-off---the-land-of-nod"
],
"guest": "Daniel B. Smith"
},
{
"date": "2007-06-18",
"videos": [
"http://thecolbertreport.cc.com/videos/rwup1e/intro---6-18-07",
"http://thecolbertreport.cc.com/videos/k3t99j/papal-encounter",
"http://thecolbertreport.cc.com/videos/rbx9fh/the-price-is-right",
"http://thecolbertreport.cc.com/videos/w0pe9q/the-word---mcconaughey",
"http://thecolbertreport.cc.com/videos/yfclcj/stephen-on-itunes",
"http://thecolbertreport.cc.com/videos/7jalja/tip-wag---arnold-schwarzenegger",
"http://thecolbertreport.cc.com/videos/ozfwje/toby-keith"
],
"guest": "Toby Keith"
},
{
"date": "2007-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/ndbsf6/intro---6-19-07",
"http://thecolbertreport.cc.com/videos/qxyadz/secret-clapton-concert",
"http://thecolbertreport.cc.com/videos/0y4kih/marybeth-garrigan",
"http://thecolbertreport.cc.com/videos/mzxikb/countdown-to-armageddon",
"http://thecolbertreport.cc.com/videos/ij3mgr/alpha-dog-of-the-week---robert-bork",
"http://thecolbertreport.cc.com/videos/u1dk1e/anne-marie-slaughter",
"http://thecolbertreport.cc.com/videos/kxk02d/sign-off---manifesto"
],
"guest": "Harriet the Eagle with handler, Anne-Marie Slaughter"
},
{
"date": "2007-06-20",
"videos": [
"http://thecolbertreport.cc.com/videos/jbdbyq/intro---6-20-07",
"http://thecolbertreport.cc.com/videos/beccdu/bloomberg-for-president",
"http://thecolbertreport.cc.com/videos/xe5j30/the-word---justice",
"http://thecolbertreport.cc.com/videos/4yziuf/cheating-death---colgate",
"http://thecolbertreport.cc.com/videos/7m9bgr/will-schwalbe",
"http://thecolbertreport.cc.com/videos/glo9c6/sign-off---job-well-done"
],
"guest": "Will Schwalbe"
},
{
"date": "2007-06-21",
"videos": [
"http://thecolbertreport.cc.com/videos/um7qsm/intro---6-21-07",
"http://thecolbertreport.cc.com/videos/psamg7/ron-paul-s-colbert-bump",
"http://thecolbertreport.cc.com/videos/38xzef/difference-makers---tim-donnelly",
"http://thecolbertreport.cc.com/videos/2oyfu8/vincent-bugliosi",
"http://thecolbertreport.cc.com/videos/dlqbr6/sign-off---goodbye-to-mr--wizard",
"http://thecolbertreport.cc.com/videos/35278z/the-word---porking"
],
"guest": "Vincent Bugliosi"
},
{
"date": "2007-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/wvrrio/intro---6-25-07",
"http://thecolbertreport.cc.com/videos/xvrdq7/the-freegans",
"http://thecolbertreport.cc.com/videos/dqezp0/the-word---fourth-branch",
"http://thecolbertreport.cc.com/videos/oldt6o/threatdown---coral-reefs",
"http://thecolbertreport.cc.com/videos/mhjtgw/tom-hayden",
"http://thecolbertreport.cc.com/videos/5zivhy/sign-off---contract"
],
"guest": "Tom Hayden"
},
{
"date": "2007-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/2dxfpk/intro---6-26-07",
"http://thecolbertreport.cc.com/videos/id2z8d/christmas-in-june",
"http://thecolbertreport.cc.com/videos/eelu64/tony-blair-s-conversion",
"http://thecolbertreport.cc.com/videos/tpff57/the-word---elsewhere",
"http://thecolbertreport.cc.com/videos/0t819z/christmas-presents",
"http://thecolbertreport.cc.com/videos/5awnum/alpha-dog-of-the-week---fred-thompson",
"http://thecolbertreport.cc.com/videos/1uvv46/david-france",
"http://thecolbertreport.cc.com/videos/96ew1f/sign-off---visions-of-sugarplums"
],
"guest": "David France"
},
{
"date": "2007-06-27",
"videos": [
"http://thecolbertreport.cc.com/videos/47zhcv/intro---6-27-07",
"http://thecolbertreport.cc.com/videos/y34h2c/give-stephen-an-iphone",
"http://thecolbertreport.cc.com/videos/wepdgq/tom-blanton",
"http://thecolbertreport.cc.com/videos/f6in26/four-horsemen-of-the-a-pop-calypse---shaq",
"http://thecolbertreport.cc.com/videos/msuhoe/daniel-gilbert"
],
"guest": "Tom Blanton, Daniel Gilbert"
},
{
"date": "2007-06-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ftc2tr/intro---6-28-07",
"http://thecolbertreport.cc.com/videos/2o9nj2/spot-the-difference",
"http://thecolbertreport.cc.com/videos/kb8br0/civil-unrest-in-iran",
"http://thecolbertreport.cc.com/videos/0lfyqf/the-word---profiles-in-timing",
"http://thecolbertreport.cc.com/videos/owh6vd/colbert-platinum---luxury-car-wrecks",
"http://thecolbertreport.cc.com/videos/f9y6wb/doug-bailey",
"http://thecolbertreport.cc.com/videos/oxeeoj/sign-off---going-on-vacation"
],
"guest": "Doug Bailey"
},
{
"date": "2007-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/rsv8g9/intro---7-16-07",
"http://thecolbertreport.cc.com/videos/bwablo/tunneling-to-free-scooter-libby",
"http://thecolbertreport.cc.com/videos/lnroz7/richard-florida",
"http://thecolbertreport.cc.com/videos/scrz03/difference-makers---johnna-mink",
"http://thecolbertreport.cc.com/videos/r0qxf5/ben-nelson",
"http://thecolbertreport.cc.com/videos/zabqma/sign-off---take-five"
],
"guest": "Richard Florida, Sen. Ben Nelson"
},
{
"date": "2007-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/cliw91/intro---7-17-07",
"http://thecolbertreport.cc.com/videos/zl176l/all-night-senate-session",
"http://thecolbertreport.cc.com/videos/depupc/the-word---victimcrite",
"http://thecolbertreport.cc.com/videos/hdn59k/1-428-minutes-to-go",
"http://thecolbertreport.cc.com/videos/gafa5t/tip-wag---michael-chertoff-s-gut-o-meter",
"http://thecolbertreport.cc.com/videos/ev6dp9/mark-moffett",
"http://thecolbertreport.cc.com/videos/1jb3qq/threatdown---500-threat-marathon"
],
"guest": "Mark Moffett"
},
{
"date": "2007-07-18",
"videos": [
"http://thecolbertreport.cc.com/videos/uf8wpk/intro---7-18-07",
"http://thecolbertreport.cc.com/videos/gn1bt7/2007-filibustacular",
"http://thecolbertreport.cc.com/videos/hqa77b/the-word---smiley-face",
"http://thecolbertreport.cc.com/videos/ysfdjx/pope-goes-green",
"http://thecolbertreport.cc.com/videos/artj1e/alpha-dog-of-the-week---david-beckham",
"http://thecolbertreport.cc.com/videos/ga3vsc/john-mellencamp"
],
"guest": "John Mellencamp"
},
{
"date": "2007-07-19",
"videos": [
"http://thecolbertreport.cc.com/videos/19mw0q/intro---7-19-07",
"http://thecolbertreport.cc.com/videos/1esv0i/republican-candidates--suffering",
"http://thecolbertreport.cc.com/videos/a9zoea/michael-moore",
"http://thecolbertreport.cc.com/videos/bn2nox/march-to-enslavement---stephen-gets-an-iphone",
"http://thecolbertreport.cc.com/videos/9p0lhk/frank-sulloway",
"http://thecolbertreport.cc.com/videos/qhp9z3/sign-off---length-of-the-show-contest"
],
"guest": "Frank Sulloway"
},
{
"date": "2007-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/nc8xh3/intro---7-23-07",
"http://thecolbertreport.cc.com/videos/fkxqbr/stephen-s-fountain-of-youth",
"http://thecolbertreport.cc.com/videos/4rqgp5/the-word---premium-package",
"http://thecolbertreport.cc.com/videos/l0ig1p/colbert-platinum---private-submarines",
"http://thecolbertreport.cc.com/videos/6e6gd1/simon-schama",
"http://thecolbertreport.cc.com/videos/vfxa7p/sign-off---just-about-out-of-time"
],
"guest": "Simon Schama"
},
{
"date": "2007-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/15l5ov/intro---7-24-07",
"http://thecolbertreport.cc.com/videos/d9v0fp/bush-s-butt",
"http://thecolbertreport.cc.com/videos/nvdygh/the-word---modest-porpoisal",
"http://thecolbertreport.cc.com/videos/e5420t/movies-that-are-destroying-america--chuck-and-larry",
"http://thecolbertreport.cc.com/videos/yqgj2h/anthony-romero",
"http://thecolbertreport.cc.com/videos/alsjeo/joining-the-illuminati"
],
"guest": "Anthony D. Romero"
},
{
"date": "2007-07-25",
"videos": [
"http://thecolbertreport.cc.com/videos/shyero/intro---7-25-07",
"http://thecolbertreport.cc.com/videos/4md3eg/daily-kos",
"http://thecolbertreport.cc.com/videos/ikcdyi/the-word---no-regrets",
"http://thecolbertreport.cc.com/videos/bdjzxb/thompson-campaign",
"http://thecolbertreport.cc.com/videos/bc0mf3/hometown-hero-town---bryce-canyon-city",
"http://thecolbertreport.cc.com/videos/2f2r58/charles-kaiser"
],
"guest": "Charles Kaiser"
},
{
"date": "2007-07-26",
"videos": [
"http://thecolbertreport.cc.com/videos/wth3ve/intro---7-26-07",
"http://thecolbertreport.cc.com/videos/3or3gc/how-did-stephen-break-his-wrist-",
"http://thecolbertreport.cc.com/videos/if6h6s/industrial-hemp---medical-marijuana---aaron-houston",
"http://thecolbertreport.cc.com/videos/8p2na8/advice-to-the-gods---nepalese-pre-teen-goddesses",
"http://thecolbertreport.cc.com/videos/kcb6kk/bob-shrum"
],
"guest": "Robert Shrum"
},
{
"date": "2007-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/8m5y0f/intro---7-30-07",
"http://thecolbertreport.cc.com/videos/tyo2os/wrist-violence---glorification",
"http://thecolbertreport.cc.com/videos/9e0vz0/pollution-immigration",
"http://thecolbertreport.cc.com/videos/brdooe/the-word---solidarity",
"http://thecolbertreport.cc.com/videos/ii5xvp/threatdown---scottish-surgeons",
"http://thecolbertreport.cc.com/videos/o55kxd/evan-osnos"
],
"guest": "Evan Osnos"
},
{
"date": "2007-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/01xv20/intro---7-31-07",
"http://thecolbertreport.cc.com/videos/bgyn76/wrist-violence-epidemic",
"http://thecolbertreport.cc.com/videos/aryder/smokin--pole---arc--who-goes-there-",
"http://thecolbertreport.cc.com/videos/tg3umi/the-word---special-prosecutor",
"http://thecolbertreport.cc.com/videos/egvqvt/rupert-murdoch-purchases-the-wall-street-journal",
"http://thecolbertreport.cc.com/videos/i9cr44/sport-report---barry-bonds",
"http://thecolbertreport.cc.com/videos/3tom79/kathleen-kennedy-townsend"
],
"guest": "Kathleen Kennedy Townsend"
},
{
"date": "2007-08-01",
"videos": [
"http://thecolbertreport.cc.com/videos/jtpqex/intro---8-1-07",
"http://thecolbertreport.cc.com/videos/b8kbe8/dr--jerry-vizzone",
"http://thecolbertreport.cc.com/videos/zd2nvn/the-word---college-credit",
"http://thecolbertreport.cc.com/videos/nlqwhc/when-animals-attack-our-morals---hollywood-pigeons",
"http://thecolbertreport.cc.com/videos/agisiu/michael-beschloss",
"http://thecolbertreport.cc.com/videos/a0yv9l/30-minute-anniversary"
],
"guest": "Michael Beschloss"
},
{
"date": "2007-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/qjky5n/farewell-ingmar-bergman",
"http://thecolbertreport.cc.com/videos/jtpqex/intro---8-1-07",
"http://thecolbertreport.cc.com/videos/b8kbe8/dr--jerry-vizzone",
"http://thecolbertreport.cc.com/videos/zd2nvn/the-word---college-credit",
"http://thecolbertreport.cc.com/videos/nlqwhc/when-animals-attack-our-morals---hollywood-pigeons",
"http://thecolbertreport.cc.com/videos/agisiu/michael-beschloss",
"http://thecolbertreport.cc.com/videos/a0yv9l/30-minute-anniversary"
],
"guest": "Michael J. Behe"
},
{
"date": "2007-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/tqb1ek/intro---8-2-07",
"http://thecolbertreport.cc.com/videos/4fa4lg/superhighway",
"http://thecolbertreport.cc.com/videos/sg9xg3/rick-macarthur",
"http://thecolbertreport.cc.com/videos/vc3b3c/thighmasters-for-the-troops",
"http://thecolbertreport.cc.com/videos/ptvqa7/sport-report---barry-smash",
"http://thecolbertreport.cc.com/videos/z81ulz/michael-behe"
],
"guest": "Michael J. Behe"
},
{
"date": "2007-08-07",
"videos": [
"http://thecolbertreport.cc.com/videos/7r677j/intro---8-7-07",
"http://thecolbertreport.cc.com/videos/4kw9z4/yearly-kos-convention",
"http://thecolbertreport.cc.com/videos/f3w2rh/the-word---the-dark-side",
"http://thecolbertreport.cc.com/videos/zwnri3/better-know-a-protectorate---american-samoa---eni-faleomavaega",
"http://thecolbertreport.cc.com/videos/d21xmf/ian-bogost",
"http://thecolbertreport.cc.com/videos/kzlukl/sign-off---colbert-commonsensicals"
],
"guest": "Ian Bogost"
},
{
"date": "2007-08-08",
"videos": [
"http://thecolbertreport.cc.com/videos/4f7upv/intro---8-8-07",
"http://thecolbertreport.cc.com/videos/oxms8d/wrist-watch---fighting-back",
"http://thecolbertreport.cc.com/videos/jtqjr6/jim-cramer",
"http://thecolbertreport.cc.com/videos/nveh3o/bears---balls---bootlegging",
"http://thecolbertreport.cc.com/videos/7zavlx/tina-brown"
],
"guest": "Jim Cramer, Tina Brown"
},
{
"date": "2007-08-09",
"videos": [
"http://thecolbertreport.cc.com/videos/hutdl7/intro---8-9-07",
"http://thecolbertreport.cc.com/videos/3abho5/the-word---clarity",
"http://thecolbertreport.cc.com/videos/qp6xha/tip-wag---bloomberg",
"http://thecolbertreport.cc.com/videos/h9y997/judd-apatow",
"http://thecolbertreport.cc.com/videos/161mvg/sign-off---toenails"
],
"guest": "Judd Apatow"
},
{
"date": "2007-08-13",
"videos": [
"http://thecolbertreport.cc.com/videos/1833p0/intro---8-13-07",
"http://thecolbertreport.cc.com/videos/gavjew/rove-resigns",
"http://thecolbertreport.cc.com/videos/qu995y/the-word---white-guy",
"http://thecolbertreport.cc.com/videos/bruhc9/threatdown---bats",
"http://thecolbertreport.cc.com/videos/fk3k31/michael-jacobson",
"http://thecolbertreport.cc.com/videos/dnjitq/sign-off---americone-dream"
],
"guest": "Michael Jacobson"
},
{
"date": "2007-08-14",
"videos": [
"http://thecolbertreport.cc.com/videos/0imzs4/dna--could-it-happen-to-you----jackknife",
"http://thecolbertreport.cc.com/videos/n35y17/jerry-miller",
"http://thecolbertreport.cc.com/videos/5o7ie1/dr--spencer-wells",
"http://thecolbertreport.cc.com/videos/x03vyw/dna--could-it-happen-to-you----incrimination"
],
"guest": "Jerry Miller, Spencer Wells"
},
{
"date": "2007-08-15",
"videos": [
"http://thecolbertreport.cc.com/videos/6o4ihx/intro---8-15-07",
"http://thecolbertreport.cc.com/videos/rv9k9s/jewish-colbert-ancestry",
"http://thecolbertreport.cc.com/videos/3zlayh/markos-moulitsas",
"http://thecolbertreport.cc.com/videos/6mvd9x/monkey-on-the-lam---oliver",
"http://thecolbertreport.cc.com/videos/zp4iw7/the-word---potential",
"http://thecolbertreport.cc.com/videos/734nxn/michael-wallis",
"http://thecolbertreport.cc.com/videos/z4d4y4/sign-off---doctor-s-orders"
],
"guest": "Michael Wallis"
},
{
"date": "2007-08-16",
"videos": [
"http://thecolbertreport.cc.com/videos/ns0g26/intro---8-16-07",
"http://thecolbertreport.cc.com/videos/14jprr/colbert-branson-trainwreck",
"http://thecolbertreport.cc.com/videos/kgguey/mike-huckabee",
"http://thecolbertreport.cc.com/videos/fnrvrc/cheating-death---gene-therapy",
"http://thecolbertreport.cc.com/videos/u8nc37/andrew-keen"
],
"guest": "Andrew Keen"
},
{
"date": "2007-08-20",
"videos": [
"http://thecolbertreport.cc.com/videos/tfnhsy/intro---8-20-07",
"http://thecolbertreport.cc.com/videos/xo98yh/wriststrong-bracelets",
"http://thecolbertreport.cc.com/videos/us6itk/the-word---made-in-iraq",
"http://thecolbertreport.cc.com/videos/9a8i9h/nailed--em---northern-border",
"http://thecolbertreport.cc.com/videos/o9ho2y/nathan-sawaya"
],
"guest": "Nathan Sawaya"
},
{
"date": "2007-08-21",
"videos": [
"http://thecolbertreport.cc.com/videos/2gjr3w/intro---8-21-07",
"http://thecolbertreport.cc.com/videos/bcfeni/smokin--pole---global-warming",
"http://thecolbertreport.cc.com/videos/7gfsui/the-word---self-determination",
"http://thecolbertreport.cc.com/videos/v4twhy/formidable-opponent---terrorism",
"http://thecolbertreport.cc.com/videos/4o129i/michael-shermer"
],
"guest": "Michael Shermer"
},
{
"date": "2007-08-22",
"videos": [
"http://thecolbertreport.cc.com/videos/v8cwuz/intro---8-22-07",
"http://thecolbertreport.cc.com/videos/k7oqos/foreshadowing",
"http://thecolbertreport.cc.com/videos/9snnh5/the-word---november-surprise",
"http://thecolbertreport.cc.com/videos/ymi1da/where-in-the-world-is-matt-lauer-s-wriststrong-bracelet-",
"http://thecolbertreport.cc.com/videos/r18bn4/colbert-platinum---san-tropez",
"http://thecolbertreport.cc.com/videos/xxwsh0/richard-branson",
"http://thecolbertreport.cc.com/videos/eb410v/doused"
],
"guest": "Richard Branson"
},
{
"date": "2007-08-23",
"videos": [
"http://thecolbertreport.cc.com/videos/w3z5w0/intro---8-23-07",
"http://thecolbertreport.cc.com/videos/uc4umy/cheney-s-pre-emptive-strike",
"http://thecolbertreport.cc.com/videos/en1mx1/thomas-ricks",
"http://thecolbertreport.cc.com/videos/xjgukn/fractured-freedom",
"http://thecolbertreport.cc.com/videos/0arcqm/wrist-cast-signatories",
"http://thecolbertreport.cc.com/videos/3xfbbo/free-at-last",
"http://thecolbertreport.cc.com/videos/qta5f5/the-auction-begins-"
],
"guest": "Thomas Ricks"
},
{
"date": "2007-09-10",
"videos": [
"http://thecolbertreport.cc.com/videos/844a7k/intro---9-10-07",
"http://thecolbertreport.cc.com/videos/vdvpmz/kicking-the-habit",
"http://thecolbertreport.cc.com/videos/p14g3t/the-word---honor-bound",
"http://thecolbertreport.cc.com/videos/2qi5qf/cast-auction",
"http://thecolbertreport.cc.com/videos/u1yamr/bjorn-lomborg"
],
"guest": "Bjorn Lomborg"
},
{
"date": "2007-09-11",
"videos": [
"http://thecolbertreport.cc.com/videos/hy8je4/intro---9-11-07",
"http://thecolbertreport.cc.com/videos/3l7k3j/general-betray-us",
"http://thecolbertreport.cc.com/videos/5yaj4x/indecision-2008--don-t-f--k-this-up-america---the-kickoff",
"http://thecolbertreport.cc.com/videos/mjzhz2/the-word---southsourcing",
"http://thecolbertreport.cc.com/videos/5z4esb/katie-bruggeman---exclusive",
"http://thecolbertreport.cc.com/videos/o07u14/garrison-keillor"
],
"guest": "Garrison Keillor"
},
{
"date": "2007-09-12",
"videos": [
"http://thecolbertreport.cc.com/videos/h5njj1/intro---9-12-07",
"http://thecolbertreport.cc.com/videos/8lpy3i/1-888-mops-key",
"http://thecolbertreport.cc.com/videos/7hc8lx/the-word---re-run",
"http://thecolbertreport.cc.com/videos/r6x2pm/michael-bloomberg",
"http://thecolbertreport.cc.com/videos/3rano7/tek-jansen---beginning-s-first-dawn--episode-one",
"http://thecolbertreport.cc.com/videos/n46uq9/joel-klein",
"http://thecolbertreport.cc.com/videos/pc4v8w/klein-s-penance"
],
"guest": "Joel Klein"
},
{
"date": "2007-09-13",
"videos": [
"http://thecolbertreport.cc.com/videos/tduyob/intro---9-13-07",
"http://thecolbertreport.cc.com/videos/rvio16/the-emmys",
"http://thecolbertreport.cc.com/videos/g1gps7/father-james-martin",
"http://thecolbertreport.cc.com/videos/9unkmu/wriststrong",
"http://thecolbertreport.cc.com/videos/5c8kig/ed-begley-jr-",
"http://thecolbertreport.cc.com/videos/9mwknn/stephen-for-president---answering-the-call"
],
"guest": "Ed Begley Jr."
},
{
"date": "2007-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/tr81w4/intro---9-18-07",
"http://thecolbertreport.cc.com/videos/6l9i7j/the-word---let-my-people-go",
"http://thecolbertreport.cc.com/videos/6we8r4/difference-makers---nitro-girl",
"http://thecolbertreport.cc.com/videos/jx6a68/susan-sarandon"
],
"guest": "Susan Sarandon"
},
{
"date": "2007-09-19",
"videos": [
"http://thecolbertreport.cc.com/videos/lv4fuw/intro---9-19-07",
"http://thecolbertreport.cc.com/videos/zeoen2/ed-asner-dials-the-atone-phone",
"http://thecolbertreport.cc.com/videos/0aau1u/the-word---solitarity",
"http://thecolbertreport.cc.com/videos/7ooxuh/colbert-platinum---green-edition",
"http://thecolbertreport.cc.com/videos/nnhbey/naomi-wolf"
],
"guest": "Naomi Wolf"
},
{
"date": "2007-09-20",
"videos": [
"http://thecolbertreport.cc.com/videos/fojlm8/intro---9-20-07",
"http://thecolbertreport.cc.com/videos/0ek76n/rabbi-fish",
"http://thecolbertreport.cc.com/videos/2h18lo/blistering-rebuttal",
"http://thecolbertreport.cc.com/videos/z6i9oa/the-word---market-forces",
"http://thecolbertreport.cc.com/videos/b5qfpk/threatdown---us",
"http://thecolbertreport.cc.com/videos/wthvm9/jeffrey-toobin",
"http://thecolbertreport.cc.com/videos/1pktzf/craziest-f--king-thing-i-ve-ever-heard---mayo-kitchen"
],
"guest": "Jeffrey Toobin"
},
{
"date": "2007-09-24",
"videos": [
"http://thecolbertreport.cc.com/videos/tgxkym/intro---9-24-07",
"http://thecolbertreport.cc.com/videos/kwfydk/the-word---na-na-na-na-na-na",
"http://thecolbertreport.cc.com/videos/zztck4/alpha-dog-of-the-week---honniball",
"http://thecolbertreport.cc.com/videos/l00qbc/the-metric-system",
"http://thecolbertreport.cc.com/videos/pkz7i5/thomas-l--friedman",
"http://thecolbertreport.cc.com/videos/emtni3/sign-off---stephen-accepts-your-apologies"
],
"guest": "Thomas Friedman"
},
{
"date": "2007-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/yrize5/intro---9-25-07",
"http://thecolbertreport.cc.com/videos/cminr7/no-nuclear-iran",
"http://thecolbertreport.cc.com/videos/2g01er/indecision-2008--don-t-f--k-this-up-america---giuliani",
"http://thecolbertreport.cc.com/videos/bjhu7f/k--david-harrison",
"http://thecolbertreport.cc.com/videos/b5cc0e/tip-wag---muslim-hipsters",
"http://thecolbertreport.cc.com/videos/5ny4ja/john-grisham"
],
"guest": "John Grisham"
},
{
"date": "2007-09-26",
"videos": [
"http://thecolbertreport.cc.com/videos/ups73z/intro---9-26-07",
"http://thecolbertreport.cc.com/videos/rn3hke/forgiving-bennett",
"http://thecolbertreport.cc.com/videos/agyblq/canadian-dollar",
"http://thecolbertreport.cc.com/videos/nj93xu/the-word---a-word-from-our-sponsors",
"http://thecolbertreport.cc.com/videos/0iswbv/sam-waterston",
"http://thecolbertreport.cc.com/videos/79m504/tony-bennett"
],
"guest": "Tony Bennett"
},
{
"date": "2007-09-27",
"videos": [
"http://thecolbertreport.cc.com/videos/i67egh/intro---9-27-07",
"http://thecolbertreport.cc.com/videos/o502gv/king-tut",
"http://thecolbertreport.cc.com/videos/mhmga5/democratic-presidential-debate---the-clintons",
"http://thecolbertreport.cc.com/videos/th2rny/the-word---early-immunization",
"http://thecolbertreport.cc.com/videos/ev9qqd/david-schwartz",
"http://thecolbertreport.cc.com/videos/q0vng8/sign-off---bear-in-the-woods"
],
"guest": "David Schwartz"
},
{
"date": "2007-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/4vmpg2/intro---10-1-07",
"http://thecolbertreport.cc.com/videos/s3koea/on-notice---dennis-kucinich",
"http://thecolbertreport.cc.com/videos/e5dl9b/the-word---evitable",
"http://thecolbertreport.cc.com/videos/7s7h6l/cheating-death---sleep",
"http://thecolbertreport.cc.com/videos/5wkeol/charlie-savage",
"http://thecolbertreport.cc.com/videos/g86mf6/sign-off---all-night-date"
],
"guest": "Charlie Savage"
},
{
"date": "2007-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/5ycsxc/intro---10-2-07",
"http://thecolbertreport.cc.com/videos/ws1a9l/end-of-the-universe",
"http://thecolbertreport.cc.com/videos/boxkhr/the-real-showdown",
"http://thecolbertreport.cc.com/videos/f1ovth/the-word---troops-out-now",
"http://thecolbertreport.cc.com/videos/berne3/nailed--em---cyberrorists",
"http://thecolbertreport.cc.com/videos/non4mf/john-mearsheimer",
"http://thecolbertreport.cc.com/videos/yxngw7/what-number-is-stephen-thinking-of----between-one-and-ten"
],
"guest": "John Mearsheimer"
},
{
"date": "2007-10-03",
"videos": [
"http://thecolbertreport.cc.com/videos/77zwpl/intro---10-3-07",
"http://thecolbertreport.cc.com/videos/rsugzz/krugman-correction",
"http://thecolbertreport.cc.com/videos/ujxs1h/gay-roundup---dan-savage",
"http://thecolbertreport.cc.com/videos/ttvyxm/alpha-dog-of-the-week---president-bush",
"http://thecolbertreport.cc.com/videos/bohex1/monkey-on-the-lam---missouri",
"http://thecolbertreport.cc.com/videos/1scf3a/jim-lovell"
],
"guest": "Jim Lovell"
},
{
"date": "2007-10-04",
"videos": [
"http://thecolbertreport.cc.com/videos/6takag/intro---10-4-07",
"http://thecolbertreport.cc.com/videos/9ie5cp/fred-thompson-s-lackluster-candidacy",
"http://thecolbertreport.cc.com/videos/t9j9vd/the-word---catastrophe",
"http://thecolbertreport.cc.com/videos/ze1fvk/threatdown---science-and-technology-edition",
"http://thecolbertreport.cc.com/videos/i58e8l/john-kao",
"http://thecolbertreport.cc.com/videos/jy5aw2/an--i-am-america--and-so-can-you----success-story"
],
"guest": "John Kao"
},
{
"date": "2007-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/zjbyqa/intro---10-8-07",
"http://thecolbertreport.cc.com/videos/pw4m4c/doggie-co-author",
"http://thecolbertreport.cc.com/videos/xkdwvy/the-word---medium-matters",
"http://thecolbertreport.cc.com/videos/56gzq7/balls-for-kidz---schip",
"http://thecolbertreport.cc.com/videos/og377e/george-saunders",
"http://thecolbertreport.cc.com/videos/p6057q/sign-off---i-am-america--and-so-can-you---day"
],
"guest": "George Saunders"
},
{
"date": "2007-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/q3jijk/intro---10-9-07",
"http://thecolbertreport.cc.com/videos/plzp6y/i-am-america-on-sale-now-",
"http://thecolbertreport.cc.com/videos/ubbze1/new-reagan-coin",
"http://thecolbertreport.cc.com/videos/597azm/the-word---mighty-duck",
"http://thecolbertreport.cc.com/videos/1znjlb/obama-s-lapel",
"http://thecolbertreport.cc.com/videos/x1wzb3/the-stephen-colbert-interview",
"http://thecolbertreport.cc.com/videos/r0xdzt/sign-off---lead-free-ink"
],
"guest": "Stephen Colbert"
},
{
"date": "2007-10-10",
"videos": [
"http://thecolbertreport.cc.com/videos/vsm7hv/intro---10-10-07",
"http://thecolbertreport.cc.com/videos/4ht7gm/dead-to-me---pocketmaster",
"http://thecolbertreport.cc.com/videos/79ara8/the-word---americon-dream",
"http://thecolbertreport.cc.com/videos/dzvdm0/tip-wag---bruce-springsteen",
"http://thecolbertreport.cc.com/videos/97z30b/wesley-clark"
],
"guest": "Gen. Wesley Clark"
},
{
"date": "2007-10-11",
"videos": [
"http://thecolbertreport.cc.com/videos/sprkvb/intro---10-11-07",
"http://thecolbertreport.cc.com/videos/a27soa/black-haired-guy-who-isn-t-steve-doocy",
"http://thecolbertreport.cc.com/videos/o6xiyi/frank-gaffney",
"http://thecolbertreport.cc.com/videos/zipx3v/colbert-platinum---kidz-edition",
"http://thecolbertreport.cc.com/videos/zv1po1/chris-jordan"
],
"guest": "Chris Jordan"
},
{
"date": "2007-10-15",
"videos": [
"http://thecolbertreport.cc.com/videos/56sadv/intro---10-15-07",
"http://thecolbertreport.cc.com/videos/9esznw/who-s-honoring-me-now----marie-claire",
"http://thecolbertreport.cc.com/videos/oogvcb/the-word---enviro-medal-disaster",
"http://thecolbertreport.cc.com/videos/cmpb1d/kucinich-s-pockets",
"http://thecolbertreport.cc.com/videos/biff8k/paul-glastris"
],
"guest": "Dennis Kucinich, Paul Glastris"
},
{
"date": "2007-10-16",
"videos": [
"http://thecolbertreport.cc.com/videos/6k009y/intro---10-16-07",
"http://thecolbertreport.cc.com/videos/0pl61p/planet-in-peril",
"http://thecolbertreport.cc.com/videos/f97ynd/indecision-2008--don-t-f--k-this-up-america---presidential-bid",
"http://thecolbertreport.cc.com/videos/9phoww/jeff-greenfield",
"http://thecolbertreport.cc.com/videos/9j5u2v/bob-drogin"
],
"guest": "Bob Drogin, Jeff Greenfield"
},
{
"date": "2007-10-17",
"videos": [
"http://thecolbertreport.cc.com/videos/e6jgx6/intro---10-17-07",
"http://thecolbertreport.cc.com/videos/el4ceo/the-big-news",
"http://thecolbertreport.cc.com/videos/ps9172/hail-to-the-cheese---filing-papers",
"http://thecolbertreport.cc.com/videos/duz61o/threatdown---anniversary",
"http://thecolbertreport.cc.com/videos/dvoers/garry-kasparov",
"http://thecolbertreport.cc.com/videos/e0223g/sign-off---revenge-is-sweet"
],
"guest": "Garry Kasparov"
},
{
"date": "2007-10-18",
"videos": [
"http://thecolbertreport.cc.com/videos/i4a6fg/intro---10-18-07",
"http://thecolbertreport.cc.com/videos/z3kzwl/pumpkin-shortage",
"http://thecolbertreport.cc.com/videos/6o9coa/global-scrunching---anderson-cooper",
"http://thecolbertreport.cc.com/videos/p1wo65/hail-to-the-cheese---campaign-coverage-finance",
"http://thecolbertreport.cc.com/videos/rcmqef/craig-newmark",
"http://thecolbertreport.cc.com/videos/i2rw4t/sign-off---portrait-unveiled"
],
"guest": "Craig Newmark, Anderson Cooper"
},
{
"date": "2007-10-29",
"videos": [
"http://thecolbertreport.cc.com/videos/3xfeo5/intro---10-29-07",
"http://thecolbertreport.cc.com/videos/oqlp6f/the-last-infographic",
"http://thecolbertreport.cc.com/videos/2hfe9b/hail-to-the-cheese---branded-killings",
"http://thecolbertreport.cc.com/videos/wli1tg/the-word---absinthetinence",
"http://thecolbertreport.cc.com/videos/49my1v/tip-wag---sleep-deprivation",
"http://thecolbertreport.cc.com/videos/pmtsjp/richard-berman",
"http://thecolbertreport.cc.com/videos/1yeaa0/sign-off---rocktober"
],
"guest": "Richard Berman"
},
{
"date": "2007-10-30",
"videos": [
"http://thecolbertreport.cc.com/videos/6130g5/intro---10-30-07",
"http://thecolbertreport.cc.com/videos/f3dddn/massie-ritsch",
"http://thecolbertreport.cc.com/videos/rrhz2o/earth-attacks---georgia-drought",
"http://thecolbertreport.cc.com/videos/czdur4/j--craig-venter"
],
"guest": "Massie Ritsch, Craig Venter"
},
{
"date": "2007-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/fjrl1d/intro---10-31-07",
"http://thecolbertreport.cc.com/videos/iwuly8/hallo-weening",
"http://thecolbertreport.cc.com/videos/lshob0/democra-see--democra-do---elections",
"http://thecolbertreport.cc.com/videos/pcplr6/the-word---job-description",
"http://thecolbertreport.cc.com/videos/hpr411/obama-s-grit-off-challenge",
"http://thecolbertreport.cc.com/videos/s7cadq/monkey-on-the-lam---lobster-edition",
"http://thecolbertreport.cc.com/videos/4uxxf3/lawrence-wilkerson"
],
"guest": "Col. Lawrence Wilkerson"
},
{
"date": "2007-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/we8h5v/intro---11-1-07",
"http://thecolbertreport.cc.com/videos/dzscg7/hail-to-the-cheese---ballot-issues",
"http://thecolbertreport.cc.com/videos/9d4e78/hail-to-the-cheese---democratic-executive-council",
"http://thecolbertreport.cc.com/videos/tcxqui/walter-kirn",
"http://thecolbertreport.cc.com/videos/zymn63/hail-to-the-cheese---donors-choose"
],
"guest": "Walter Kirn"
}
],
"2008": [
{
"date": "2008-01-07",
"videos": [
"http://thecolbertreport.cc.com/videos/3q3gby/intro---1-7-08",
"http://thecolbertreport.cc.com/videos/cva2to/applause",
"http://thecolbertreport.cc.com/videos/mdmdd0/nothing-in-the-prompters",
"http://thecolbertreport.cc.com/videos/lp7qsd/2008-election",
"http://thecolbertreport.cc.com/videos/ku5oni/the-word--------",
"http://thecolbertreport.cc.com/videos/mbip8q/democratic-change---andrew-sullivan",
"http://thecolbertreport.cc.com/videos/v60qiq/richard-freeman",
"http://thecolbertreport.cc.com/videos/ckwp47/first-wrap-up"
],
"guest": "Andrew Sullivan, Richard Freeman"
},
{
"date": "2008-01-08",
"videos": [
"http://thecolbertreport.cc.com/videos/8ws9bh/self-driving-car",
"http://thecolbertreport.cc.com/videos/2785cy/bush-absolutely-optimistic",
"http://thecolbertreport.cc.com/videos/2hhoxp/meteorite-market",
"http://thecolbertreport.cc.com/videos/ljxmh2/chris-beam",
"http://thecolbertreport.cc.com/videos/tl8ofm/gary-rosen",
"http://thecolbertreport.cc.com/videos/m7kpci/note-to-strikers"
],
"guest": "Chris Beam, Gary Rosen"
},
{
"date": "2008-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/33bwbo/she-won-",
"http://thecolbertreport.cc.com/videos/fu1w6p/new-hampshire-wrap-up",
"http://thecolbertreport.cc.com/videos/weeodm/mike-huckabee",
"http://thecolbertreport.cc.com/videos/d0g8tk/matt-taibbi",
"http://thecolbertreport.cc.com/videos/je02b9/studio-on-fire"
],
"guest": "Gov. Mike Huckabee, Matt Taibbi"
},
{
"date": "2008-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/613lgd/un-american-news---primaries",
"http://thecolbertreport.cc.com/videos/s269t4/norman-ornstein",
"http://thecolbertreport.cc.com/videos/y7lisr/national-treasure-pt--1",
"http://thecolbertreport.cc.com/videos/x10j2p/muhammad-yunus",
"http://thecolbertreport.cc.com/videos/ypiss3/to-the-writers"
],
"guest": "Norman Ornstein, Muhammad Yunus"
},
{
"date": "2008-01-14",
"videos": [
"http://thecolbertreport.cc.com/videos/pm5v1p/papa-bear-takes-note",
"http://thecolbertreport.cc.com/videos/1vwzy6/around-the-world-in-11-6-seconds---lo-mein",
"http://thecolbertreport.cc.com/videos/7k6fkq/indecision-2008--don-t-f--k-this-up-america---trustworthy-manner",
"http://thecolbertreport.cc.com/videos/dytre7/national-treasure-pt--2",
"http://thecolbertreport.cc.com/videos/xgsf42/neil-shubin",
"http://thecolbertreport.cc.com/videos/tmke9w/digesting-lo-mein"
],
"guest": "Neil Shubin"
},
{
"date": "2008-01-15",
"videos": [
"http://thecolbertreport.cc.com/videos/4wimo2/who-s-riding-my-coattails-now----vince-vaughn",
"http://thecolbertreport.cc.com/videos/hrzpve/peter-hopkins",
"http://thecolbertreport.cc.com/videos/1m3t4h/national-treasure-pt--3",
"http://thecolbertreport.cc.com/videos/b0e6w3/jared-cohen",
"http://thecolbertreport.cc.com/videos/4f2fw9/parting-shot"
],
"guest": "Peter Hopkins, Jared Cohen"
},
{
"date": "2008-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/6mjra2/primary-update",
"http://thecolbertreport.cc.com/videos/ng3cbb/political-roulette-pt--1",
"http://thecolbertreport.cc.com/videos/v0glj4/back-off-mike-huckabee",
"http://thecolbertreport.cc.com/videos/zlpayq/deborah-tannen"
],
"guest": "Deborah Tannen"
},
{
"date": "2008-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/0tl5ul/push-polling",
"http://thecolbertreport.cc.com/videos/phko2g/political-roulette-pt--2",
"http://thecolbertreport.cc.com/videos/xj86rv/lou-dobbs",
"http://thecolbertreport.cc.com/videos/ykpl7i/david-levy"
],
"guest": "Lou Dobbs, David Levy"
},
{
"date": "2008-01-21",
"videos": [
"http://thecolbertreport.cc.com/videos/3xkco0/nevada-caucus",
"http://thecolbertreport.cc.com/videos/qznknb/huckabee-s-message",
"http://thecolbertreport.cc.com/videos/i2josd/allan-sloan",
"http://thecolbertreport.cc.com/videos/wjtmux/better-know-a-governor---mark-sanford",
"http://thecolbertreport.cc.com/videos/ia8xzl/eric-weiner"
],
"guest": "Allan Sloan, Eric Weiner"
},
{
"date": "2008-01-22",
"videos": [
"http://thecolbertreport.cc.com/videos/8q1hh4/dow-drop",
"http://thecolbertreport.cc.com/videos/7cp97e/malcolm-gladwell",
"http://thecolbertreport.cc.com/videos/xw3v9i/andrew-young",
"http://thecolbertreport.cc.com/videos/5tvl4o/let-my-people-go"
],
"guest": "Malcolm Gladwell, Andrew Young"
},
{
"date": "2008-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/1vjtzq/fred-thompson-out",
"http://thecolbertreport.cc.com/videos/1fbgf9/sport-report---tom-brady-s-injury",
"http://thecolbertreport.cc.com/videos/08lghg/big-check",
"http://thecolbertreport.cc.com/videos/wmftq8/jeb-corliss",
"http://thecolbertreport.cc.com/videos/rp759h/andrew-mclean"
],
"guest": "Marie Wood, Jeb Corliss, Andrew McLean"
},
{
"date": "2008-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/7uwyyh/rudy-in-florida",
"http://thecolbertreport.cc.com/videos/xoh710/clinton-s-hero",
"http://thecolbertreport.cc.com/videos/swzg9r/debra-dickerson",
"http://thecolbertreport.cc.com/videos/0wz55a/south-carolina-debate",
"http://thecolbertreport.cc.com/videos/bpcnyw/charles-nesson"
],
"guest": "Debra Dickerson, Charles Nesson"
},
{
"date": "2008-01-28",
"videos": [
"http://thecolbertreport.cc.com/videos/na6amv/obama-just-like-jfk",
"http://thecolbertreport.cc.com/videos/zvtkxx/gordon-b--hinckley-died",
"http://thecolbertreport.cc.com/videos/07hrs5/marjane-satrapi",
"http://thecolbertreport.cc.com/videos/wrdlsf/south-carolina---what-could-have-been-",
"http://thecolbertreport.cc.com/videos/l1477t/rick-warren"
],
"guest": "Marjane Satrapi, Rick Warren"
},
{
"date": "2008-01-29",
"videos": [
"http://thecolbertreport.cc.com/videos/aeooxe/googley-eyed-clams",
"http://thecolbertreport.cc.com/videos/laposi/joe-quesada",
"http://thecolbertreport.cc.com/videos/xw6ugs/french-clam",
"http://thecolbertreport.cc.com/videos/38i4eg/alex-ross"
],
"guest": "Joe Quesada, Alex Ross"
},
{
"date": "2008-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/akx9de/exclusive---better-know-a-district---south-carolina-s-4th---bob-inglis",
"http://thecolbertreport.cc.com/videos/t6sflk/florida-primary",
"http://thecolbertreport.cc.com/videos/vb4t2x/carl-hiaasen",
"http://thecolbertreport.cc.com/videos/n87g1n/better-know-a-district---south-carolina-s-4th---bob-inglis",
"http://thecolbertreport.cc.com/videos/m4iax5/frans-de-waal"
],
"guest": "Carl Hiaasen, Frans de Waal"
},
{
"date": "2008-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/z0raub/timetables",
"http://thecolbertreport.cc.com/videos/8l0ndt/ron-paul-sounds-alarm",
"http://thecolbertreport.cc.com/videos/2lwxda/tim-harford",
"http://thecolbertreport.cc.com/videos/0d4uq9/people-who-are-destroying-america---pick-up-trucks",
"http://thecolbertreport.cc.com/videos/kgrty6/andrew-napolitano"
],
"guest": "Tim Harford, Andrew Napolitano"
},
{
"date": "2008-02-04",
"videos": [
"http://thecolbertreport.cc.com/videos/pwg4p2/conan-and-jon",
"http://thecolbertreport.cc.com/videos/y5zzyu/tony-campolo",
"http://thecolbertreport.cc.com/videos/tmuhtk/jacob-weisberg",
"http://thecolbertreport.cc.com/videos/7r0nt2/post-show-ass-kicking"
],
"guest": "Tony Campolo, Jacob Weisberg"
},
{
"date": "2008-02-05",
"videos": [
"http://thecolbertreport.cc.com/videos/yvxknz/happy-super-tuesday-",
"http://thecolbertreport.cc.com/videos/nqwcui/hillary-is-a-target",
"http://thecolbertreport.cc.com/videos/xonm3y/angelo-falcon",
"http://thecolbertreport.cc.com/videos/xq9nc4/mukasey-on-torture",
"http://thecolbertreport.cc.com/videos/gjwjsl/bob-dole"
],
"guest": "Angelo Falcon, Bob Dole"
},
{
"date": "2008-02-06",
"videos": [
"http://thecolbertreport.cc.com/videos/j3dp2u/late-night-fight",
"http://thecolbertreport.cc.com/videos/gqstf6/clap-clap-point-point",
"http://thecolbertreport.cc.com/videos/yxx0w5/richard-brookhiser",
"http://thecolbertreport.cc.com/videos/ammxmv/better-know-a-lobby---human-rights-campaign-pt--1",
"http://thecolbertreport.cc.com/videos/nhkpwj/tad-devine"
],
"guest": "Tad Devine"
},
{
"date": "2008-02-07",
"videos": [
"http://thecolbertreport.cc.com/videos/ctzo98/stephen-s-ethnic-minute",
"http://thecolbertreport.cc.com/videos/v43el0/huckabee-s-still-in",
"http://thecolbertreport.cc.com/videos/negp2q/better-know-a-lobby---human-rights-campaign-pt--2",
"http://thecolbertreport.cc.com/videos/oxf63b/mark-moffett"
],
"guest": "Mark Moffett"
},
{
"date": "2008-02-11",
"videos": [
"http://thecolbertreport.cc.com/videos/bs8egm/obama-wins-a-grammy",
"http://thecolbertreport.cc.com/videos/lnkbna/goodbye-mitt",
"http://thecolbertreport.cc.com/videos/myptag/aubrey-de-grey",
"http://thecolbertreport.cc.com/videos/in3tg3/portrait-check-in",
"http://thecolbertreport.cc.com/videos/8sjpoa/philip-zimbardo"
],
"guest": "Aubrey de Grey, Philip Zimbardo"
},
{
"date": "2008-02-12",
"videos": [
"http://thecolbertreport.cc.com/videos/gucgvs/huckabee-s-obligation",
"http://thecolbertreport.cc.com/videos/6g98j7/eliot-spitzer",
"http://thecolbertreport.cc.com/videos/udbv19/eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/ekpicq/lisa-randall"
],
"guest": "Gov. Eliot Spitzer, Eleanor Holmes Norton, Lisa Randall"
},
{
"date": "2008-02-13",
"videos": [
"http://thecolbertreport.cc.com/videos/r9rjo5/intro---2-13-08",
"http://thecolbertreport.cc.com/videos/mvp1nc/the-writers-return-",
"http://thecolbertreport.cc.com/videos/n3dwin/david-gracer",
"http://thecolbertreport.cc.com/videos/aebxex/neil-de-grasse-tyson",
"http://thecolbertreport.cc.com/videos/n39iqt/richard-thompson-ford"
],
"guest": "David Gracer, Richard Thompson Ford"
},
{
"date": "2008-02-14",
"videos": [
"http://thecolbertreport.cc.com/videos/5hf18t/intro---2-14-08",
"http://thecolbertreport.cc.com/videos/qg63hg/who-s-riding-my-coattails-now----oliver-pocher",
"http://thecolbertreport.cc.com/videos/slbgcr/clemens-hearing",
"http://thecolbertreport.cc.com/videos/0i3hg8/john-feinstein",
"http://thecolbertreport.cc.com/videos/dmxs6z/people-who-are-destroying-america---happy-meal",
"http://thecolbertreport.cc.com/videos/hxt6mo/leonard-nimoy"
],
"guest": "John Feinstein, Leonard Nimoy"
},
{
"date": "2008-02-26",
"videos": [
"http://thecolbertreport.cc.com/videos/t6xzxc/intro---2-26-08",
"http://thecolbertreport.cc.com/videos/cexk3g/obama-s-photo",
"http://thecolbertreport.cc.com/videos/x6h69l/the-word---good-bad-journalism",
"http://thecolbertreport.cc.com/videos/4s0owa/henry-louis-gates-jr-"
],
"guest": "Henry Louis Gates Jr."
},
{
"date": "2008-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/3uzan2/exclusive---guitar-heroes",
"http://thecolbertreport.cc.com/videos/spigs3/intro---2-27-08",
"http://thecolbertreport.cc.com/videos/fb142a/mccain-rally",
"http://thecolbertreport.cc.com/videos/717g03/threatdown---air-colbert",
"http://thecolbertreport.cc.com/videos/ni7mzt/tony-snow"
],
"guest": "Tony Snow"
},
{
"date": "2008-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/upjayy/the-music-man",
"http://thecolbertreport.cc.com/videos/80mnx9/intro---2-28-08",
"http://thecolbertreport.cc.com/videos/wq9qga/russian-billboard",
"http://thecolbertreport.cc.com/videos/c64r8o/cold-war-update",
"http://thecolbertreport.cc.com/videos/zrhp7w/richard-brookhiser",
"http://thecolbertreport.cc.com/videos/n7g9t0/ingrid-newkirk",
"http://thecolbertreport.cc.com/videos/zsj0rq/sign-off---shoe-phone"
],
"guest": "Richard Brookhiser, Ingrid Newkirk"
},
{
"date": "2008-03-03",
"videos": [
"http://thecolbertreport.cc.com/videos/laopsy/intro---3-3-08",
"http://thecolbertreport.cc.com/videos/1gyoec/the-coveted-colbert-bump",
"http://thecolbertreport.cc.com/videos/do24ht/das-booty---hitler-s-gold-pt--1",
"http://thecolbertreport.cc.com/videos/dvfqt3/maestro-lorin-maazel",
"http://thecolbertreport.cc.com/videos/8llta1/shashi-tharoor",
"http://thecolbertreport.cc.com/videos/beqjns/leap-day"
],
"guest": "Lorin Maazel, Shashi Tharoor"
},
{
"date": "2008-03-04",
"videos": [
"http://thecolbertreport.cc.com/videos/1d4djp/intro---3-4-08",
"http://thecolbertreport.cc.com/videos/509s01/william-donohue",
"http://thecolbertreport.cc.com/videos/myyov6/howard-dean",
"http://thecolbertreport.cc.com/videos/wvt9ny/nailed--em---graffiti-punk",
"http://thecolbertreport.cc.com/videos/86yukf/jennifer-8--lee",
"http://thecolbertreport.cc.com/videos/10okbb/to-howard-dean",
"http://thecolbertreport.cc.com/videos/q08fbb/the-word---experience"
],
"guest": "William Donohue, Howard Dean, Jennifer 8. Lee"
},
{
"date": "2008-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/9o2e4d/intro---3-5-08",
"http://thecolbertreport.cc.com/videos/d60bre/farewell-brett-favre",
"http://thecolbertreport.cc.com/videos/q038rv/hucka-bye",
"http://thecolbertreport.cc.com/videos/6296yb/robert-reich",
"http://thecolbertreport.cc.com/videos/lrlzri/difference-makers---free-implants",
"http://thecolbertreport.cc.com/videos/z6yixf/gregory-rodriguez",
"http://thecolbertreport.cc.com/videos/p6i1w8/r-i-p--gary-gygax"
],
"guest": "Robert Reich, Gregory Rodriguez"
},
{
"date": "2008-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/zoimd4/intro---3-6-08",
"http://thecolbertreport.cc.com/videos/m9ob1y/hot-dog-with-the-president",
"http://thecolbertreport.cc.com/videos/i9idne/the-word---at---treason",
"http://thecolbertreport.cc.com/videos/0ih0ea/cheating-death---surgery",
"http://thecolbertreport.cc.com/videos/cv6bwa/john-legend"
],
"guest": "John Legend"
},
{
"date": "2008-03-10",
"videos": [
"http://thecolbertreport.cc.com/videos/mahtb2/intro---3-10-08",
"http://thecolbertreport.cc.com/videos/3a9bum/whores-",
"http://thecolbertreport.cc.com/videos/8p3t8b/the-word---size-matters",
"http://thecolbertreport.cc.com/videos/fdo5yd/the--72-democrats",
"http://thecolbertreport.cc.com/videos/7m46n6/george-mcgovern"
],
"guest": "George McGovern"
},
{
"date": "2008-03-11",
"videos": [
"http://thecolbertreport.cc.com/videos/3ybl08/intro---3-11-08",
"http://thecolbertreport.cc.com/videos/me89dy/spitzer-greeting-cards",
"http://thecolbertreport.cc.com/videos/twuo43/the-word---mr--right-now",
"http://thecolbertreport.cc.com/videos/f7ltv5/colbert-platinum---liechtenstein",
"http://thecolbertreport.cc.com/videos/gcwzrr/geraldo-rivera",
"http://thecolbertreport.cc.com/videos/8h6jvx/sign-off---show-s-over--america"
],
"guest": "Geraldo Rivera"
},
{
"date": "2008-03-12",
"videos": [
"http://thecolbertreport.cc.com/videos/tvzv05/intro---3-12-08",
"http://thecolbertreport.cc.com/videos/ntzxtt/spitzer-sandwich",
"http://thecolbertreport.cc.com/videos/ippftn/smokin--pole---alaska",
"http://thecolbertreport.cc.com/videos/50a47x/better-know-a-lobby---drug-policy-alliance",
"http://thecolbertreport.cc.com/videos/nouiem/howard-kurtz"
],
"guest": "Howard Kurtz"
},
{
"date": "2008-03-13",
"videos": [
"http://thecolbertreport.cc.com/videos/gpd5cu/intro---3-13-08",
"http://thecolbertreport.cc.com/videos/k8bsjv/airborne-lawsuit",
"http://thecolbertreport.cc.com/videos/d51tqz/democralypse-now---ferraro",
"http://thecolbertreport.cc.com/videos/tvjvip/hussein-ibish",
"http://thecolbertreport.cc.com/videos/oe7yd2/difference-makers---doug-jackson",
"http://thecolbertreport.cc.com/videos/mzut29/sudhir-venkatesh"
],
"guest": "Hussein Ibish, Sudhir Venkatesh"
},
{
"date": "2008-03-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ck2j7u/exclusive---spitzer",
"http://thecolbertreport.cc.com/videos/8zfc9q/intro---3-17-08",
"http://thecolbertreport.cc.com/videos/v28dea/stephen-in-philly",
"http://thecolbertreport.cc.com/videos/rxdrv8/the-word---the-audacity-of-hopelessness",
"http://thecolbertreport.cc.com/videos/tw4jo4/people-who-are-destroying-america---st--patrick-s-day",
"http://thecolbertreport.cc.com/videos/5j8sg4/samantha-power"
],
"guest": "Samantha Power"
},
{
"date": "2008-03-18",
"videos": [
"http://thecolbertreport.cc.com/videos/vgwiie/intro---3-18-08",
"http://thecolbertreport.cc.com/videos/wsz08m/yes-we-can-",
"http://thecolbertreport.cc.com/videos/xtwx8p/spicy-sweet-coverage",
"http://thecolbertreport.cc.com/videos/mogf73/das-booty---hitler-s-gold-pt--2",
"http://thecolbertreport.cc.com/videos/5boih5/carole-king"
],
"guest": "Carole King"
},
{
"date": "2008-03-19",
"videos": [
"http://thecolbertreport.cc.com/videos/hcafrk/intro---3-19-08",
"http://thecolbertreport.cc.com/videos/hrjm1z/patterson-affair",
"http://thecolbertreport.cc.com/videos/scqdwy/the-word---the-gospel-of-john",
"http://thecolbertreport.cc.com/videos/y6aybj/pennsylvania-primary",
"http://thecolbertreport.cc.com/videos/037ygf/tip-wag---afghanistan",
"http://thecolbertreport.cc.com/videos/vk922m/dee-dee-myers"
],
"guest": "Dee Dee Myers"
},
{
"date": "2008-03-20",
"videos": [
"http://thecolbertreport.cc.com/videos/vq76dq/watershift-down--getting-the-sea-monkey-off-america-s-aqua-back",
"http://thecolbertreport.cc.com/videos/wkdrt1/aqua-colbert",
"http://thecolbertreport.cc.com/videos/l1sl1c/water-is-life",
"http://thecolbertreport.cc.com/videos/3mtvfm/dean-kamen",
"http://thecolbertreport.cc.com/videos/4y9sds/setting-water-on-fire"
],
"guest": "Dean Kamen"
},
{
"date": "2008-03-31",
"videos": [
"http://thecolbertreport.cc.com/videos/f3rbbv/intro---3-31-08",
"http://thecolbertreport.cc.com/videos/aqkiox/opening-day",
"http://thecolbertreport.cc.com/videos/0fo1qd/bowling-in-pa",
"http://thecolbertreport.cc.com/videos/2ii77j/eric-alterman",
"http://thecolbertreport.cc.com/videos/b149k1/tek-jansen---beginning-s-first-dawn--episode-one-revisited",
"http://thecolbertreport.cc.com/videos/3p6caw/michael-reynolds"
],
"guest": "Eric Alterman, Michael Reynolds"
},
{
"date": "2008-04-01",
"videos": [
"http://thecolbertreport.cc.com/videos/ayieu5/intro---4-1-08",
"http://thecolbertreport.cc.com/videos/irlo9m/portrait-update",
"http://thecolbertreport.cc.com/videos/inwuqm/the-word---pick-sicks",
"http://thecolbertreport.cc.com/videos/fpyy9k/bears---balls---rat-rakes",
"http://thecolbertreport.cc.com/videos/700kdb/van-jones",
"http://thecolbertreport.cc.com/videos/lrepiq/portrait-displayed"
],
"guest": "Van Jones"
},
{
"date": "2008-04-02",
"videos": [
"http://thecolbertreport.cc.com/videos/46s8py/intro---4-2-08",
"http://thecolbertreport.cc.com/videos/sbidx5/stephen-wins-a-peabody",
"http://thecolbertreport.cc.com/videos/3fc86e/threatdown---nipples",
"http://thecolbertreport.cc.com/videos/n3f5qh/r-e-m-"
],
"guest": "R.E.M."
},
{
"date": "2008-04-03",
"videos": [
"http://thecolbertreport.cc.com/videos/aj43z8/intro---4-3-08",
"http://thecolbertreport.cc.com/videos/tyapiy/peabody-credit",
"http://thecolbertreport.cc.com/videos/xwlefp/the-word---let-the-games-begin",
"http://thecolbertreport.cc.com/videos/gx1oov/tek-jansen---beginning-s-first-dawn--episode-two",
"http://thecolbertreport.cc.com/videos/dm9a7h/clay-shirky",
"http://thecolbertreport.cc.com/videos/jsqez9/tek-jansen---you-are-the-best"
],
"guest": "Clay Shirky"
},
{
"date": "2008-04-07",
"videos": [
"http://thecolbertreport.cc.com/videos/7lye0f/intro---4-7-08",
"http://thecolbertreport.cc.com/videos/we6e20/r-i-p--charlton-heston",
"http://thecolbertreport.cc.com/videos/xh2gv1/trevor-paglen",
"http://thecolbertreport.cc.com/videos/3xlgs3/democralypse-now---3am",
"http://thecolbertreport.cc.com/videos/82gipv/jesse-ventura"
],
"guest": "Trevor Paglen, Jesse Ventura"
},
{
"date": "2008-04-08",
"videos": [
"http://thecolbertreport.cc.com/videos/54jfl6/intro---4-8-08",
"http://thecolbertreport.cc.com/videos/yme30m/pope-coming-to-nyc",
"http://thecolbertreport.cc.com/videos/g0ke6u/children-s-drawings",
"http://thecolbertreport.cc.com/videos/0dimmt/wilford-brimley-calls---donation",
"http://thecolbertreport.cc.com/videos/elawer/madeleine-albright"
],
"guest": "Madeleine Albright"
},
{
"date": "2008-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/bdme3x/intro---4-9-08",
"http://thecolbertreport.cc.com/videos/iekisu/olympic-torch",
"http://thecolbertreport.cc.com/videos/ypse7c/the-word---starter-country",
"http://thecolbertreport.cc.com/videos/jycq7p/cheating-death---sexual-health",
"http://thecolbertreport.cc.com/videos/nlvpn4/jeff-gore"
],
"guest": "Jeff Gore"
},
{
"date": "2008-04-10",
"videos": [
"http://thecolbertreport.cc.com/videos/zsmonm/intro---4-10-08",
"http://thecolbertreport.cc.com/videos/6sdfwa/petraeus-hearings",
"http://thecolbertreport.cc.com/videos/x8pxwi/more-drawings-from-kids",
"http://thecolbertreport.cc.com/videos/z2z65o/the-word---black-and-white",
"http://thecolbertreport.cc.com/videos/v1k50e/tip-wag---rain",
"http://thecolbertreport.cc.com/videos/torkh7/robin-wright"
],
"guest": "Robin Wright"
},
{
"date": "2008-04-14",
"videos": [
"http://thecolbertreport.cc.com/videos/qfrdo9/from-philadelphia",
"http://thecolbertreport.cc.com/videos/5phute/pennsylvania-primary-history",
"http://thecolbertreport.cc.com/videos/1b60fj/chris-matthews"
],
"guest": "Chris Matthews"
},
{
"date": "2008-04-15",
"videos": [
"http://thecolbertreport.cc.com/videos/oj9blc/intro---4-15-08",
"http://thecolbertreport.cc.com/videos/3aqwqx/nice-roomba",
"http://thecolbertreport.cc.com/videos/ad5qga/the-word---tradition",
"http://thecolbertreport.cc.com/videos/7unrts/independence-park",
"http://thecolbertreport.cc.com/videos/upl7xe/michelle-obama"
],
"guest": "Michelle Obama, The Roots"
},
{
"date": "2008-04-16",
"videos": [
"http://thecolbertreport.cc.com/videos/h0lfw9/intro---4-16-08",
"http://thecolbertreport.cc.com/videos/pi51oz/jackie-o--amendment",
"http://thecolbertreport.cc.com/videos/9z3000/democralypse-now---the-boss",
"http://thecolbertreport.cc.com/videos/9zm7cy/national-constitution-center",
"http://thecolbertreport.cc.com/videos/51r39w/ed-rendell",
"http://thecolbertreport.cc.com/videos/1bzrgk/benjamin-franklin-s-news"
],
"guest": "Philadelphia Eagles Cheerleaders, Gov. Ed Rendell"
},
{
"date": "2008-04-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ky7oxg/benjamin-franklin-s-latest-invention",
"http://thecolbertreport.cc.com/videos/uzusr0/hillary-clinton-takes-on-technical-difficulties",
"http://thecolbertreport.cc.com/videos/1i62sd/clinton-vs--obama-philadelphia-debate-review",
"http://thecolbertreport.cc.com/videos/ew5t9y/patrick-murphy",
"http://thecolbertreport.cc.com/videos/x3zme5/the-ed-words---valued-voter",
"http://thecolbertreport.cc.com/videos/ol0nn3/on-notice---barack-obama-against-distractions"
],
"guest": "Hillary Clinton, John Edwards, Barack Obama"
},
{
"date": "2008-04-21",
"videos": [
"http://thecolbertreport.cc.com/videos/i6ihlp/intro---4-21-08",
"http://thecolbertreport.cc.com/videos/foffke/philly-loves-colbert-nation",
"http://thecolbertreport.cc.com/videos/5jm58y/global-food-shortage",
"http://thecolbertreport.cc.com/videos/ehgxth/father-james-martin",
"http://thecolbertreport.cc.com/videos/oo6wpp/bernie-sanders",
"http://thecolbertreport.cc.com/videos/e7gpah/farewell-to-bobby"
],
"guest": "Fr. James Martin, Sen. Bernie Sanders"
},
{
"date": "2008-04-22",
"videos": [
"http://thecolbertreport.cc.com/videos/ah79bq/intro---4-22-08",
"http://thecolbertreport.cc.com/videos/tp640v/earth-is-awesome",
"http://thecolbertreport.cc.com/videos/uyxyc7/obama-copycattery",
"http://thecolbertreport.cc.com/videos/a2ha6c/indecision-cheesesteaks",
"http://thecolbertreport.cc.com/videos/0nsiap/better-know-a-district---pennsylvania-s-7th---joe-sestak",
"http://thecolbertreport.cc.com/videos/5427ng/susan-jacoby",
"http://thecolbertreport.cc.com/videos/l34czb/exclusive---better-know-a-district---pennsylvania-s-7th---joe-sestak"
],
"guest": "Susan Jacoby"
},
{
"date": "2008-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/lxpsri/intro---4-23-08",
"http://thecolbertreport.cc.com/videos/6wperh/rain-rivalry-challenge",
"http://thecolbertreport.cc.com/videos/hpr26d/the-word---iraq-the-vote",
"http://thecolbertreport.cc.com/videos/fqo64s/colbert-platinum---cat-pooped-coffee",
"http://thecolbertreport.cc.com/videos/5azl7m/mitch-albom",
"http://thecolbertreport.cc.com/videos/qdf6zq/the-lost-o-reilly-tapes-pt--1"
],
"guest": "Mitch Albom"
},
{
"date": "2008-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/6kux9r/intro---4-24-08",
"http://thecolbertreport.cc.com/videos/a1qle2/petraeus--promotion",
"http://thecolbertreport.cc.com/videos/uddwea/threatdown---juicing-bulls",
"http://thecolbertreport.cc.com/videos/e3l9yt/difference-makers---bumbot",
"http://thecolbertreport.cc.com/videos/lr9uai/maria-shriver"
],
"guest": "Maria Shriver"
},
{
"date": "2008-04-28",
"videos": [
"http://thecolbertreport.cc.com/videos/3fwic4/intro---4-28-08",
"http://thecolbertreport.cc.com/videos/244o0l/miley-cyrus-photo-shoot",
"http://thecolbertreport.cc.com/videos/9v4qwg/electability",
"http://thecolbertreport.cc.com/videos/ejbmnx/the-word---kernel-of-truth",
"http://thecolbertreport.cc.com/videos/3osshb/sport-report---timbersports",
"http://thecolbertreport.cc.com/videos/222rjo/feist"
],
"guest": "Feist"
},
{
"date": "2008-04-29",
"videos": [
"http://thecolbertreport.cc.com/videos/a1muh6/intro---4-29-08",
"http://thecolbertreport.cc.com/videos/vc3sa7/obama-breaks-with-wright",
"http://thecolbertreport.cc.com/videos/uk74h6/mccain-s-superstitions",
"http://thecolbertreport.cc.com/videos/ry65tk/the-word---separation-of-church---plate",
"http://thecolbertreport.cc.com/videos/cy9dmw/tip-wag---barbie",
"http://thecolbertreport.cc.com/videos/s3buaq/anne-lamott"
],
"guest": "Anne Lamott"
},
{
"date": "2008-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/byoxj1/intro---4-30-08",
"http://thecolbertreport.cc.com/videos/xju86c/salinger-watch",
"http://thecolbertreport.cc.com/videos/1rdkem/donna-brazile-on-the-democratic-campaign",
"http://thecolbertreport.cc.com/videos/4ngs9u/better-know-a-protectorate---guam---madeleine-bordallo-update",
"http://thecolbertreport.cc.com/videos/vjk2cd/noah-feldman"
],
"guest": "Donna Brazile, Noah Feldman"
},
{
"date": "2008-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/1zd3gn/intro---5-01-08",
"http://thecolbertreport.cc.com/videos/clfbo3/jenna-bush-wedding",
"http://thecolbertreport.cc.com/videos/sctmlw/trailers-destroying-america---summer-movie-edition",
"http://thecolbertreport.cc.com/videos/aka0f3/formidable-opponent---electability",
"http://thecolbertreport.cc.com/videos/zck6ux/james-howard-kunstler"
],
"guest": "James Kunstler"
},
{
"date": "2008-05-05",
"videos": [
"http://thecolbertreport.cc.com/videos/nhsr7z/intro---5-05-08",
"http://thecolbertreport.cc.com/videos/wtbn4l/time-s-2008-top-100-most-influential",
"http://thecolbertreport.cc.com/videos/x20ttg/the-word---free-gas-",
"http://thecolbertreport.cc.com/videos/oov14y/speed-racer",
"http://thecolbertreport.cc.com/videos/91hddq/alpha-dog-of-the-week---911-operator",
"http://thecolbertreport.cc.com/videos/2uj60r/carl-hiaasen",
"http://thecolbertreport.cc.com/videos/k44vbf/rain-dance-off"
],
"guest": "Carl Hiaasen"
},
{
"date": "2008-05-06",
"videos": [
"http://thecolbertreport.cc.com/videos/e38w0k/intro---5-06-08",
"http://thecolbertreport.cc.com/videos/e3fb1q/sexy-voice-study",
"http://thecolbertreport.cc.com/videos/qy6hoq/the-word---collateral-friendage",
"http://thecolbertreport.cc.com/videos/byyq8n/stephen-s-sound-advice---karl-s-advice",
"http://thecolbertreport.cc.com/videos/y777b4/nathan-gunn"
],
"guest": "Nathan Gunn"
},
{
"date": "2008-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/fk83lx/intro---5-07-08",
"http://thecolbertreport.cc.com/videos/20qjta/stephen-colbert-s-shockettes",
"http://thecolbertreport.cc.com/videos/su4v1v/terrorist-nelson-mandela",
"http://thecolbertreport.cc.com/videos/07p71k/hasan-elahi",
"http://thecolbertreport.cc.com/videos/bc4u9e/democralypse-now---justin-myers",
"http://thecolbertreport.cc.com/videos/av0o9p/george-johnson"
],
"guest": "Hasan Elahi, George Johnson"
},
{
"date": "2008-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ey98z2/exclusive---stephen-vs--rain",
"http://thecolbertreport.cc.com/videos/6wn8i5/garrett-reisman",
"http://thecolbertreport.cc.com/videos/qnk6x8/gas-dollar",
"http://thecolbertreport.cc.com/videos/txq3hp/arianna-huffington",
"http://thecolbertreport.cc.com/videos/uafvva/r-i-p--albert-hoffman"
],
"guest": "Arianna Huffington"
},
{
"date": "2008-05-12",
"videos": [
"http://thecolbertreport.cc.com/videos/da4u0g/intro---5-12-08",
"http://thecolbertreport.cc.com/videos/tj7sih/big-russ",
"http://thecolbertreport.cc.com/videos/kdeptj/cold-war-update---russia",
"http://thecolbertreport.cc.com/videos/k7k3ke/threatdown---cute-bears",
"http://thecolbertreport.cc.com/videos/3i279j/dr--mehmet-oz"
],
"guest": "Dr. Mehmet Oz"
},
{
"date": "2008-05-13",
"videos": [
"http://thecolbertreport.cc.com/videos/oycul0/exclusive---better-know-a-lobby---brady-campaign-to-prevent-gun-violence",
"http://thecolbertreport.cc.com/videos/1siped/intro---5-13-08",
"http://thecolbertreport.cc.com/videos/mpq03a/hillary-drop-out",
"http://thecolbertreport.cc.com/videos/qxr59r/bill-o-reilly-inside-edition",
"http://thecolbertreport.cc.com/videos/np2mes/better-know-a-lobby---brady-campaign-to-prevent-gun-violence",
"http://thecolbertreport.cc.com/videos/24b8xh/jennifer-hooper-mccarty"
],
"guest": "Jennifer Hooper McCarty"
},
{
"date": "2008-05-14",
"videos": [
"http://thecolbertreport.cc.com/videos/suewpq/intro---5-14-08",
"http://thecolbertreport.cc.com/videos/fygt2g/edwards-supports-obama",
"http://thecolbertreport.cc.com/videos/ry9ff3/who-s-not-honoring-me-now----science",
"http://thecolbertreport.cc.com/videos/xnkjrq/the-word---declaration-of-warming",
"http://thecolbertreport.cc.com/videos/gxghyw/laura-dern",
"http://thecolbertreport.cc.com/videos/4tldfc/grover-norquist",
"http://thecolbertreport.cc.com/videos/zujfq0/the-show-comes-to-an-end"
],
"guest": "Laura Dern, Grover Norquist"
},
{
"date": "2008-05-15",
"videos": [
"http://thecolbertreport.cc.com/videos/nkmoxa/intro---5-15-08",
"http://thecolbertreport.cc.com/videos/ekfqs4/american-craft-beer-week",
"http://thecolbertreport.cc.com/videos/wy0c00/edwards-endorses-obama",
"http://thecolbertreport.cc.com/videos/scm34l/the-word---jail-sweet-jail",
"http://thecolbertreport.cc.com/videos/ak0o7t/bears---balls---dollar-stores",
"http://thecolbertreport.cc.com/videos/rarvxz/andrei-cherny"
],
"guest": "Andrei Cherny"
},
{
"date": "2008-05-27",
"videos": [
"http://thecolbertreport.cc.com/videos/v79z0o/intro---5-27-08",
"http://thecolbertreport.cc.com/videos/k0kiom/fleet-week",
"http://thecolbertreport.cc.com/videos/xuhumb/mccain-s-preachers",
"http://thecolbertreport.cc.com/videos/dxmleo/tony-perkins",
"http://thecolbertreport.cc.com/videos/o5c67w/brian-greene"
],
"guest": "Tony Perkins, Brian Greene"
},
{
"date": "2008-05-28",
"videos": [
"http://thecolbertreport.cc.com/videos/tuxwuw/intro---5-28-08",
"http://thecolbertreport.cc.com/videos/euhkkf/microbe-beat-",
"http://thecolbertreport.cc.com/videos/z1nl4c/the-word---brushback-pitch",
"http://thecolbertreport.cc.com/videos/jhmlmk/cheating-death---liquid-launch",
"http://thecolbertreport.cc.com/videos/ngaz1d/claire-mccaskill"
],
"guest": "Sen. Claire McCaskill"
},
{
"date": "2008-05-29",
"videos": [
"http://thecolbertreport.cc.com/videos/6wfa6q/intro---5-29-08",
"http://thecolbertreport.cc.com/videos/79u1cf/shout-out----broken-space-toilet",
"http://thecolbertreport.cc.com/videos/6735i1/democralypse-now---florida-and-michigan",
"http://thecolbertreport.cc.com/videos/ug78n1/tad-devine",
"http://thecolbertreport.cc.com/videos/lhma93/tip-wag---monetary-discrimination",
"http://thecolbertreport.cc.com/videos/3qprbm/david-sirota",
"http://thecolbertreport.cc.com/videos/g0kftc/sneak-preview"
],
"guest": "Tad Devine, David Sirota"
},
{
"date": "2008-06-02",
"videos": [
"http://thecolbertreport.cc.com/videos/hrlfp0/intro---6-02-08",
"http://thecolbertreport.cc.com/videos/dvmsby/obama-s-church",
"http://thecolbertreport.cc.com/videos/38jpc2/fire-at-universal",
"http://thecolbertreport.cc.com/videos/jlvsj6/the-word---media-culpa",
"http://thecolbertreport.cc.com/videos/8cygn0/colbert-platinum---private-jets",
"http://thecolbertreport.cc.com/videos/p0u6f8/jon-paskowitz",
"http://thecolbertreport.cc.com/videos/piym7c/final-thought"
],
"guest": "Jon Paskowitz"
},
{
"date": "2008-06-03",
"videos": [
"http://thecolbertreport.cc.com/videos/4vr7xb/intro---6-03-08",
"http://thecolbertreport.cc.com/videos/o005k6/democratic-primaries-over",
"http://thecolbertreport.cc.com/videos/viwun3/the-word---unhealthy-competition",
"http://thecolbertreport.cc.com/videos/po30h9/stephen-s-sound-advice---summer-jobs",
"http://thecolbertreport.cc.com/videos/xhigi4/george-will"
],
"guest": "George Will"
},
{
"date": "2008-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/0w2khv/intro---6-04-08",
"http://thecolbertreport.cc.com/videos/hfq15q/john-mccain-s-green-screen-challenge",
"http://thecolbertreport.cc.com/videos/wsbc0i/libertarian-party---bob-barr",
"http://thecolbertreport.cc.com/videos/sn90ui/salman-rushdie",
"http://thecolbertreport.cc.com/videos/uji4o5/the-lost-o-reilly-tapes-pt--2"
],
"guest": "Rep. Bob Barr, Salman Rushdie"
},
{
"date": "2008-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/yv02dd/intro---6-05-08",
"http://thecolbertreport.cc.com/videos/n90wjr/the-andromeda-strain",
"http://thecolbertreport.cc.com/videos/ugt12v/the-word---oh--the-places-you-ll-stay",
"http://thecolbertreport.cc.com/videos/6nrkel/sport-report---mike-forrester",
"http://thecolbertreport.cc.com/videos/ibt0j9/pat-buchanan"
],
"guest": "Pat Buchanan"
},
{
"date": "2008-06-09",
"videos": [
"http://thecolbertreport.cc.com/videos/qowh4f/intro---6-09-08",
"http://thecolbertreport.cc.com/videos/icuy8o/democralypse-now---hillary-concedes",
"http://thecolbertreport.cc.com/videos/numnri/the-word---if-at-first-you-don-t-secede",
"http://thecolbertreport.cc.com/videos/vlab0d/threatdown---secret-negro-presidents",
"http://thecolbertreport.cc.com/videos/gv27al/philip-weiss"
],
"guest": "Phil Weiss"
},
{
"date": "2008-06-10",
"videos": [
"http://thecolbertreport.cc.com/videos/705tqw/intro---6-10-08",
"http://thecolbertreport.cc.com/videos/cbjixz/new-giant-iphone",
"http://thecolbertreport.cc.com/videos/w5you4/tickling-the-rocks",
"http://thecolbertreport.cc.com/videos/skw5sl/the-elitist-menace-among-us",
"http://thecolbertreport.cc.com/videos/qhpj5f/smokin--pole---canada-s-hockey-theme",
"http://thecolbertreport.cc.com/videos/9bdggo/alan-rabinowitz"
],
"guest": "Alan Rabinowitz"
},
{
"date": "2008-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/373j1n/intro---6-11-08",
"http://thecolbertreport.cc.com/videos/gbgmuk/israel-s-new-bird",
"http://thecolbertreport.cc.com/videos/twddgu/the-word---u-s--airweighs",
"http://thecolbertreport.cc.com/videos/pp8c40/un-american-news---u-s--election-edition",
"http://thecolbertreport.cc.com/videos/zudzs0/david-hajdu",
"http://thecolbertreport.cc.com/videos/idly59/memorized-script"
],
"guest": "David Hajdu"
},
{
"date": "2008-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/mpfrre/intro---6-12-08",
"http://thecolbertreport.cc.com/videos/nsgvgc/stephen-colbert-s-make-mccain-exciting-challenge-",
"http://thecolbertreport.cc.com/videos/86su5q/winona-laduke",
"http://thecolbertreport.cc.com/videos/qrbimj/we-the-mediator",
"http://thecolbertreport.cc.com/videos/t6nh85/dickson-despommier"
],
"guest": "Winona LaDuke, Dixon Despommier"
},
{
"date": "2008-06-16",
"videos": [
"http://thecolbertreport.cc.com/videos/vnwwom/intro---6-16-08",
"http://thecolbertreport.cc.com/videos/6vk2ye/tim-russert-tribute",
"http://thecolbertreport.cc.com/videos/mpqoje/the-word---ploy-cott",
"http://thecolbertreport.cc.com/videos/cqvvlk/the-enemy-within---wizard-teachers",
"http://thecolbertreport.cc.com/videos/8xg385/kenneth-miller"
],
"guest": "Kenneth R. Miller"
},
{
"date": "2008-06-17",
"videos": [
"http://thecolbertreport.cc.com/videos/jfofbj/intro---6-17-08",
"http://thecolbertreport.cc.com/videos/kwlu8o/peabody-award",
"http://thecolbertreport.cc.com/videos/tapfcu/neal-katyal",
"http://thecolbertreport.cc.com/videos/fuhy6f/sport-report---timbersports-championship",
"http://thecolbertreport.cc.com/videos/vcz3hv/jonathan-zittrain",
"http://thecolbertreport.cc.com/videos/ci1ljt/peabody-on-mantel"
],
"guest": "Neal Katyal, Jonathan Zittrain"
},
{
"date": "2008-06-18",
"videos": [
"http://thecolbertreport.cc.com/videos/b2ddmd/intro---6-18-08",
"http://thecolbertreport.cc.com/videos/prx5o1/the-new-smurfs-movie",
"http://thecolbertreport.cc.com/videos/ciovvr/the-word---lexicon-artist",
"http://thecolbertreport.cc.com/videos/vtx5qc/barack-obama-s-church-search---dr--uma-mysorekar",
"http://thecolbertreport.cc.com/videos/ir7gne/junot-diaz"
],
"guest": "Dr. Uma Mysorekar, Junot Diaz"
},
{
"date": "2008-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/d6b6nb/intro---6-19-08",
"http://thecolbertreport.cc.com/videos/6sj17e/shout-out---peabody-awards",
"http://thecolbertreport.cc.com/videos/mr1053/sean-hannity-loves-america",
"http://thecolbertreport.cc.com/videos/zcd35g/cookie-monster",
"http://thecolbertreport.cc.com/videos/aytt4h/make-mccain-exciting-challenge---the-secret-of-mccain-s-brain",
"http://thecolbertreport.cc.com/videos/m7daav/bishop-n-t--wright",
"http://thecolbertreport.cc.com/videos/der3el/stephen-s-missing-peabody"
],
"guest": "Bishop N.T. Wright"
},
{
"date": "2008-06-23",
"videos": [
"http://thecolbertreport.cc.com/videos/ua8qbe/intro---6-23-08",
"http://thecolbertreport.cc.com/videos/a4nt5i/wriststrong-anniversary",
"http://thecolbertreport.cc.com/videos/kj72hq/the-word---black-and-white",
"http://thecolbertreport.cc.com/videos/vlidof/tip-wag---barack-obama",
"http://thecolbertreport.cc.com/videos/ymze92/barbara-ehrenreich",
"http://thecolbertreport.cc.com/videos/1f40by/sign-off---time-for-stephen-to-watch"
],
"guest": "Barbara Ehrenreich"
},
{
"date": "2008-06-24",
"videos": [
"http://thecolbertreport.cc.com/videos/mhd7wr/intro---6-24-08",
"http://thecolbertreport.cc.com/videos/n11h6w/hollywood-face-violence",
"http://thecolbertreport.cc.com/videos/ov4362/oil-crisis",
"http://thecolbertreport.cc.com/videos/hxtoyj/the-word---bleep",
"http://thecolbertreport.cc.com/videos/f5yznc/dr--jason-bond",
"http://thecolbertreport.cc.com/videos/ilejmp/will-smith"
],
"guest": "Jason Bond, Will Smith"
},
{
"date": "2008-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/mdtg3q/intro---6-25-08",
"http://thecolbertreport.cc.com/videos/q0qc77/paul-goldberger",
"http://thecolbertreport.cc.com/videos/ajsxzq/judge--jury---executioner---whales",
"http://thecolbertreport.cc.com/videos/zucjth/neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/2r47v6/stephen-s-gun"
],
"guest": "Paul Goldberger, Neil deGrasse Tyson"
},
{
"date": "2008-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/gvc60t/intro---6-26-08",
"http://thecolbertreport.cc.com/videos/038ej3/stephen-and-sweetness",
"http://thecolbertreport.cc.com/videos/txteih/the-tank-is-half-full---criminals",
"http://thecolbertreport.cc.com/videos/hdan1z/difference-makers---steve-pelkey",
"http://thecolbertreport.cc.com/videos/6vucxh/robert-wexler",
"http://thecolbertreport.cc.com/videos/s7cul5/stephen-packs-for-his-trip"
],
"guest": "Rep. Robert Wexler"
},
{
"date": "2008-07-14",
"videos": [
"http://thecolbertreport.cc.com/videos/a4vl00/intro---7-14-08",
"http://thecolbertreport.cc.com/videos/t1ic5h/belgians-buy-budweiser",
"http://thecolbertreport.cc.com/videos/e8zxmm/the-word---priceless",
"http://thecolbertreport.cc.com/videos/6fnysv/barack-obama-s-church-search---lama-surya-das",
"http://thecolbertreport.cc.com/videos/iuafl5/daniel-c--esty",
"http://thecolbertreport.cc.com/videos/zeelo6/one-last-sip"
],
"guest": "Lama Surya Das, Daniel C. Esty"
},
{
"date": "2008-07-15",
"videos": [
"http://thecolbertreport.cc.com/videos/btd58c/intro---7-15-08",
"http://thecolbertreport.cc.com/videos/iojfbw/the-new-yorker-cover",
"http://thecolbertreport.cc.com/videos/4r3fs4/julia-e--sweig",
"http://thecolbertreport.cc.com/videos/slbivd/difference-makers---donald-trump",
"http://thecolbertreport.cc.com/videos/w3v1ei/jason-riley"
],
"guest": "Julia E. Sweig, Jason Riley"
},
{
"date": "2008-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/apzepe/intro---7-16-08",
"http://thecolbertreport.cc.com/videos/nxgrjc/rush-is-here",
"http://thecolbertreport.cc.com/videos/u9v0kj/the-word---placebo",
"http://thecolbertreport.cc.com/videos/r6ylvr/alpha-dog-of-the-week---george-w--bush"
],
"guest": "Rush"
},
{
"date": "2008-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/fv156w/intro---7-17-08",
"http://thecolbertreport.cc.com/videos/hy6e1y/ofec",
"http://thecolbertreport.cc.com/videos/fdazma/tip-wag---9-11-billboard",
"http://thecolbertreport.cc.com/videos/75y9kg/green-screen-challenge---bill-o-reilly-rant",
"http://thecolbertreport.cc.com/videos/ti6y23/elizabeth-edwards",
"http://thecolbertreport.cc.com/videos/2i4pii/esquire-cover"
],
"guest": "Elizabeth Edwards"
},
{
"date": "2008-07-21",
"videos": [
"http://thecolbertreport.cc.com/videos/ypasrv/exclusive---better-know-a-lobby---sierra-club",
"http://thecolbertreport.cc.com/videos/298hev/intro---7-21-08",
"http://thecolbertreport.cc.com/videos/2uxo91/barack-obama-s-elitist-summer-abroad",
"http://thecolbertreport.cc.com/videos/ytt7lh/better-know-a-lobby---sierra-club",
"http://thecolbertreport.cc.com/videos/7zt9o1/jim-webb"
],
"guest": "Sen. Jim Webb"
},
{
"date": "2008-07-22",
"videos": [
"http://thecolbertreport.cc.com/videos/isgn6o/intro---7-22-08",
"http://thecolbertreport.cc.com/videos/5us80y/obama-s-trip",
"http://thecolbertreport.cc.com/videos/twxrmk/the-word---fight-to-the-furnish",
"http://thecolbertreport.cc.com/videos/g536lz/elton-john-s-new-ice-cream",
"http://thecolbertreport.cc.com/videos/dqvjy7/south-carolina-is-so-gay",
"http://thecolbertreport.cc.com/videos/ypbiy1/margaret-spellings"
],
"guest": "Margaret Spellings"
},
{
"date": "2008-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/ephzov/intro---7-23-08",
"http://thecolbertreport.cc.com/videos/008wql/starbucks-closings",
"http://thecolbertreport.cc.com/videos/ckerul/the-word---join-the-european-union",
"http://thecolbertreport.cc.com/videos/p099m0/colorofchange-org-petition",
"http://thecolbertreport.cc.com/videos/ef4747/nas-pt--1"
],
"guest": "Nas"
},
{
"date": "2008-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/9e4ipx/intro---7-24-08",
"http://thecolbertreport.cc.com/videos/mzk1jw/john-mccain-s-sausage-party",
"http://thecolbertreport.cc.com/videos/y6db2n/laurie-goodstein",
"http://thecolbertreport.cc.com/videos/oyh9ck/threatdown---greek-courts",
"http://thecolbertreport.cc.com/videos/qkxsxv/garrett-reisman",
"http://thecolbertreport.cc.com/videos/my4p2n/decoder-rings"
],
"guest": "Laurie Goodstein, Garrett Reisman"
},
{
"date": "2008-07-28",
"videos": [
"http://thecolbertreport.cc.com/videos/5mv6ij/intro---7-28-08",
"http://thecolbertreport.cc.com/videos/ahi7x5/obama-returns",
"http://thecolbertreport.cc.com/videos/n5o1z2/heroic-refusal-to-discuss-robert-novak",
"http://thecolbertreport.cc.com/videos/wksh33/trigger-happy---d-c--v--heller",
"http://thecolbertreport.cc.com/videos/2fxv2r/toby-keith"
],
"guest": "Toby Keith"
},
{
"date": "2008-07-29",
"videos": [
"http://thecolbertreport.cc.com/videos/8y4ush/intro---7-29-08",
"http://thecolbertreport.cc.com/videos/ft9iza/mccain-s-mustache",
"http://thecolbertreport.cc.com/videos/je97nz/the-word---honest-belief",
"http://thecolbertreport.cc.com/videos/079fu3/better-know-a-district---new-york-s-14th---carolyn-maloney",
"http://thecolbertreport.cc.com/videos/4pok23/eric-roston"
],
"guest": "Eric Roston"
},
{
"date": "2008-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/aej937/intro---7-30-08",
"http://thecolbertreport.cc.com/videos/0igq3j/fat-cat",
"http://thecolbertreport.cc.com/videos/z8lld1/the-word---save-ferris",
"http://thecolbertreport.cc.com/videos/77hd54/spiders-for-stephen-",
"http://thecolbertreport.cc.com/videos/9riu8g/canton-apology",
"http://thecolbertreport.cc.com/videos/paplnu/crosby--stills---nash-pt--1"
],
"guest": "Crosby, Stills & Nash"
},
{
"date": "2008-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/2yeaq8/intro---7-31-08",
"http://thecolbertreport.cc.com/videos/cy7kpu/starbucks-cuts-jobs",
"http://thecolbertreport.cc.com/videos/evgv9c/brendan-koerner",
"http://thecolbertreport.cc.com/videos/3pi9ch/cheating-death---swimming-safety",
"http://thecolbertreport.cc.com/videos/k8sku2/buzz-aldrin",
"http://thecolbertreport.cc.com/videos/xrkpup/thanks-to-the-guests"
],
"guest": "Brendan I. Koerner, Buzz Aldrin"
},
{
"date": "2008-08-04",
"videos": [
"http://thecolbertreport.cc.com/videos/y56p3h/intro---8-4-08",
"http://thecolbertreport.cc.com/videos/j7c1ly/democrats--five-week-recess",
"http://thecolbertreport.cc.com/videos/n4qhgk/the-word---we-the-people",
"http://thecolbertreport.cc.com/videos/gjy6co/ryan-seacrest-s-shark-attack",
"http://thecolbertreport.cc.com/videos/j0iwzv/lucas-conley"
],
"guest": "Lucas Conley, The Apples in Stereo"
},
{
"date": "2008-08-05",
"videos": [
"http://thecolbertreport.cc.com/videos/0b9ndt/intro---8-5-08",
"http://thecolbertreport.cc.com/videos/a60qui/starbucks-promotion",
"http://thecolbertreport.cc.com/videos/ts3set/obama-s-energy-plan---tire-gauges",
"http://thecolbertreport.cc.com/videos/c8orpt/the-word---divided-we-win",
"http://thecolbertreport.cc.com/videos/u7dbu9/canton--kansas-apology",
"http://thecolbertreport.cc.com/videos/sw0u58/david-carr",
"http://thecolbertreport.cc.com/videos/zghj54/obsessive-compulsive-checklist"
],
"guest": "David Carr"
},
{
"date": "2008-08-06",
"videos": [
"http://thecolbertreport.cc.com/videos/j12mau/intro---8-6-08",
"http://thecolbertreport.cc.com/videos/ad4cbz/ignorance-history-month",
"http://thecolbertreport.cc.com/videos/v2zmtk/spida-of-love---jason-bond",
"http://thecolbertreport.cc.com/videos/luli3g/colbert-platinum---the-dribble-down-effect",
"http://thecolbertreport.cc.com/videos/3pe5h3/kevin-costner",
"http://thecolbertreport.cc.com/videos/ot8cw0/spanish-audio"
],
"guest": "Jason Bond, Kevin Costner"
},
{
"date": "2008-08-07",
"videos": [
"http://thecolbertreport.cc.com/videos/bxoz3a/intro---8-7-08",
"http://thecolbertreport.cc.com/videos/e6qhsv/osama-bin-laden-s-driver-guilty",
"http://thecolbertreport.cc.com/videos/f3opxi/sport-report---devin-gordon",
"http://thecolbertreport.cc.com/videos/6u4m61/tip-wag---exxon-s-record-profits",
"http://thecolbertreport.cc.com/videos/dmymte/thomas-frank",
"http://thecolbertreport.cc.com/videos/iwrdpe/reading-newsweek"
],
"guest": "Devin Gordon, Thomas Frank"
},
{
"date": "2008-08-11",
"videos": [
"http://thecolbertreport.cc.com/videos/jk0e27/intro---8-11-08",
"http://thecolbertreport.cc.com/videos/riwpa4/esteban-loves-jorge-ramos",
"http://thecolbertreport.cc.com/videos/bfwvvn/the-word---catharsis",
"http://thecolbertreport.cc.com/videos/txv0gu/nailed--em---medical-marijuana",
"http://thecolbertreport.cc.com/videos/8j40t0/jorge-ramos",
"http://thecolbertreport.cc.com/videos/b7houz/stephen-wants-snacks"
],
"guest": "Jorge Ramos"
},
{
"date": "2008-08-12",
"videos": [
"http://thecolbertreport.cc.com/videos/kt49i5/intro---8-12-08",
"http://thecolbertreport.cc.com/videos/zgupdj/unsubstantiated-rumors",
"http://thecolbertreport.cc.com/videos/6d57uu/olympic-opening-ceremony",
"http://thecolbertreport.cc.com/videos/5njkui/joey-cheek",
"http://thecolbertreport.cc.com/videos/jhg2wn/canton--south-dakota-apology",
"http://thecolbertreport.cc.com/videos/bv3152/jane-mayer",
"http://thecolbertreport.cc.com/videos/dwnfyl/reading-the-national-enquirer"
],
"guest": "Joey Cheek, Jane Mayer"
},
{
"date": "2008-08-13",
"videos": [
"http://thecolbertreport.cc.com/videos/o7nbb7/intro---8-13-08",
"http://thecolbertreport.cc.com/videos/zewvls/stephen-s-world-record",
"http://thecolbertreport.cc.com/videos/3ae93q/john-mccain-steals-from-wikipedia",
"http://thecolbertreport.cc.com/videos/htzkd9/the-word---blame-monica-goodling",
"http://thecolbertreport.cc.com/videos/1clyqz/formidable-opponent---offshore-drilling",
"http://thecolbertreport.cc.com/videos/yplzsy/dick-meyer",
"http://thecolbertreport.cc.com/videos/x9tyb8/goodbye-from-wprg"
],
"guest": "Dick Meyer"
},
{
"date": "2008-08-14",
"videos": [
"http://thecolbertreport.cc.com/videos/481cqy/intro---8-14-08",
"http://thecolbertreport.cc.com/videos/0gs1a9/jeopardy-shout-out",
"http://thecolbertreport.cc.com/videos/s99fxp/threatdown---killer-iphones",
"http://thecolbertreport.cc.com/videos/9x55ta/the-1952-helsinki-games---the-reindeer-roars",
"http://thecolbertreport.cc.com/videos/ebnqyp/bing-west",
"http://thecolbertreport.cc.com/videos/h0yxjt/gold-medals"
],
"guest": "Bing West"
},
{
"date": "2008-08-26",
"videos": [
"http://thecolbertreport.cc.com/videos/r6ivli/intro---8-26-08",
"http://thecolbertreport.cc.com/videos/zpxtn2/burning-man-festival-confusion",
"http://thecolbertreport.cc.com/videos/ez5jp1/michelle-obama-s-speech",
"http://thecolbertreport.cc.com/videos/tojy8p/anniversary-pandering",
"http://thecolbertreport.cc.com/videos/ax1v4e/bob-barr",
"http://thecolbertreport.cc.com/videos/f120f5/scott-mcclellan",
"http://thecolbertreport.cc.com/videos/twqqkj/up-next"
],
"guest": "Rep. Bob Barr, Scott McClellan"
},
{
"date": "2008-08-27",
"videos": [
"http://thecolbertreport.cc.com/videos/mb4pgm/intro---8-27-08",
"http://thecolbertreport.cc.com/videos/63yvi3/live-from-dynasty",
"http://thecolbertreport.cc.com/videos/xfzios/hillary-clinton-supports-barack-obama",
"http://thecolbertreport.cc.com/videos/m1mag5/repo-man",
"http://thecolbertreport.cc.com/videos/402muh/mike-huckabee",
"http://thecolbertreport.cc.com/videos/llvqjv/stephanie-tubbs-jones-tribute"
],
"guest": "Gov. Mike Huckabee"
},
{
"date": "2008-08-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ua1ppo/intro---8-28-08",
"http://thecolbertreport.cc.com/videos/9lke5e/high-altitude-brownies",
"http://thecolbertreport.cc.com/videos/53s26i/the-word---acid-flashback",
"http://thecolbertreport.cc.com/videos/kmna3f/dnc-formal-roll-call",
"http://thecolbertreport.cc.com/videos/eifqog/richard-brookhiser",
"http://thecolbertreport.cc.com/videos/c42fhd/stephen-s-brownies"
],
"guest": "Rick Brookhiser"
},
{
"date": "2008-08-29",
"videos": [
"http://thecolbertreport.cc.com/videos/7p5vgn/intro---8-29-08",
"http://thecolbertreport.cc.com/videos/ctsiz5/sarah-palin-for-vp",
"http://thecolbertreport.cc.com/videos/9os3w0/better-know-a-lobby---secular-coalition-for-america",
"http://thecolbertreport.cc.com/videos/rufbl6/john-mcwhorter",
"http://thecolbertreport.cc.com/videos/bzvjxb/revenge-of-the-styrofoam-cups"
],
"guest": "John McWhorter"
},
{
"date": "2008-09-02",
"videos": [
"http://thecolbertreport.cc.com/videos/hp450x/intro---9-2-08",
"http://thecolbertreport.cc.com/videos/8tw46w/stephen-from-four-years-ago",
"http://thecolbertreport.cc.com/videos/rf8uos/the-word---that-s-the-ticket",
"http://thecolbertreport.cc.com/videos/gmnlx9/green-screen-challenge---last-shot",
"http://thecolbertreport.cc.com/videos/f81p33/laura-d-andrea-tyson",
"http://thecolbertreport.cc.com/videos/xhysj6/blowing-your-mind"
],
"guest": "Laura D'Andrea Tyson"
},
{
"date": "2008-09-03",
"videos": [
"http://thecolbertreport.cc.com/videos/gujtwh/intro---9-3-08",
"http://thecolbertreport.cc.com/videos/kepht9/stephen-is-in-new-orleans",
"http://thecolbertreport.cc.com/videos/sbatmc/rnc-tuesday",
"http://thecolbertreport.cc.com/videos/awnw4i/susan-eisenhower-endorses-obama",
"http://thecolbertreport.cc.com/videos/4cdiam/john-mccain--her-story",
"http://thecolbertreport.cc.com/videos/x8u7qp/doris-kearns-goodwin",
"http://thecolbertreport.cc.com/videos/rk1eeg/who-wants-beads-"
],
"guest": "Doris Kearns Goodwin"
},
{
"date": "2008-09-04",
"videos": [
"http://thecolbertreport.cc.com/videos/nvj1zq/intro---9-4-08",
"http://thecolbertreport.cc.com/videos/1cwp12/stuck-in-atlanta-airport",
"http://thecolbertreport.cc.com/videos/kyo8u3/adam-brickley",
"http://thecolbertreport.cc.com/videos/c6ux4z/tip-wag---rnc-edition",
"http://thecolbertreport.cc.com/videos/yywrwl/ron-paul",
"http://thecolbertreport.cc.com/videos/kwoupb/flight-out-of-atlanta"
],
"guest": "Adam Brickley, Ron Paul"
},
{
"date": "2008-09-05",
"videos": [
"http://thecolbertreport.cc.com/videos/pg1oxm/intro---9-5-08",
"http://thecolbertreport.cc.com/videos/2rjlbj/stephen-missed-the-convention",
"http://thecolbertreport.cc.com/videos/njb4bu/green-screen-challenge---john-mccain-s-acceptance-speech",
"http://thecolbertreport.cc.com/videos/zk7gig/better-know-a-district---georgia-s-8th---lynn-westmoreland-update",
"http://thecolbertreport.cc.com/videos/xeizbt/david-paterson",
"http://thecolbertreport.cc.com/videos/u3k61y/green-screen-challenge---go-nuts"
],
"guest": "Gov. David Paterson"
},
{
"date": "2008-09-15",
"videos": [
"http://thecolbertreport.cc.com/videos/jshk87/exclusive---charlene--i-m-right-behind-you----rock-band-2",
"http://thecolbertreport.cc.com/videos/jfwpwo/intro---9-15-08",
"http://thecolbertreport.cc.com/videos/7yzozt/colbert-shopping-network",
"http://thecolbertreport.cc.com/videos/f9h01l/the-word---how-dare-you-",
"http://thecolbertreport.cc.com/videos/r0u91k/colbert-platinum---supermodel-statue",
"http://thecolbertreport.cc.com/videos/ihx562/peter-j--gomes",
"http://thecolbertreport.cc.com/videos/4ebszq/another-episode"
],
"guest": "Rev. Peter J. Gomes"
},
{
"date": "2008-09-16",
"videos": [
"http://thecolbertreport.cc.com/videos/urn1ti/intro---9-16-08",
"http://thecolbertreport.cc.com/videos/k0bsca/financial-advice-from-gorlock",
"http://thecolbertreport.cc.com/videos/mkpl4k/tyson-slocum",
"http://thecolbertreport.cc.com/videos/75xh2f/threatdown---icebergs-",
"http://thecolbertreport.cc.com/videos/3tm40j/rick-reilly",
"http://thecolbertreport.cc.com/videos/vnf5o3/thirty-minutes"
],
"guest": "Tyson Slocum, Rick Reilly"
},
{
"date": "2008-09-17",
"videos": [
"http://thecolbertreport.cc.com/videos/4l5nqm/intro---9-17-08",
"http://thecolbertreport.cc.com/videos/y012iz/mccain-attacks-obama",
"http://thecolbertreport.cc.com/videos/kyb0cu/the-word---powerless",
"http://thecolbertreport.cc.com/videos/n6eo9j/country-first",
"http://thecolbertreport.cc.com/videos/uwjjvf/bob-lutz",
"http://thecolbertreport.cc.com/videos/3odd8c/stephen---the-colberts--music-video"
],
"guest": "Bob Lutz"
},
{
"date": "2008-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/crbm2j/intro---9-18-08",
"http://thecolbertreport.cc.com/videos/1jklj8/stephen-wants-an-emmy",
"http://thecolbertreport.cc.com/videos/j1rb59/smokin--pole---american-arctic-expert",
"http://thecolbertreport.cc.com/videos/jgr23t/richard-garriott-takes-stephen-to-space",
"http://thecolbertreport.cc.com/videos/r2z9cm/maria-bartiromo",
"http://thecolbertreport.cc.com/videos/f0iah5/off-to-the-emmys"
],
"guest": "Maria Bartiromo"
},
{
"date": "2008-09-23",
"videos": [
"http://thecolbertreport.cc.com/videos/s3o9jz/intro---9-23-08",
"http://thecolbertreport.cc.com/videos/ikji5j/stephen-loses-to-don-rickles",
"http://thecolbertreport.cc.com/videos/vj8wko/the-word---ohmygodsocietyiscollapsing---",
"http://thecolbertreport.cc.com/videos/bna75w/peter-grosz-insults",
"http://thecolbertreport.cc.com/videos/iscpss/john-mccain-s-theme-song",
"http://thecolbertreport.cc.com/videos/8uwmb0/jackson-browne"
],
"guest": "Jackson Browne"
},
{
"date": "2008-09-24",
"videos": [
"http://thecolbertreport.cc.com/videos/5k16zp/intro---9-24-08",
"http://thecolbertreport.cc.com/videos/zxun4o/stephen-suspends-the-show",
"http://thecolbertreport.cc.com/videos/y03i0s/joe-nocera",
"http://thecolbertreport.cc.com/videos/ug1eaa/alpha-dog-of-the-week---bill-bennett",
"http://thecolbertreport.cc.com/videos/m77ip1/cornel-west",
"http://thecolbertreport.cc.com/videos/5lq5u2/colbertnation-com"
],
"guest": "Joe Nocera, Cornel West"
},
{
"date": "2008-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/c2lklm/intro---9-25-08",
"http://thecolbertreport.cc.com/videos/n6lmpg/stephen-settles-the-debate---fdr-vs--tr",
"http://thecolbertreport.cc.com/videos/k6o1ga/now-s-presidential-endorsement---kim-gandy",
"http://thecolbertreport.cc.com/videos/bqde8h/nicholas-carr",
"http://thecolbertreport.cc.com/videos/c44c8h/one-more-thing"
],
"guest": "Nicholas Carr"
},
{
"date": "2008-09-29",
"videos": [
"http://thecolbertreport.cc.com/videos/1c54hn/intro---9-29-08",
"http://thecolbertreport.cc.com/videos/05f4cg/the-first-debate-winner",
"http://thecolbertreport.cc.com/videos/bweuwc/the-word---ye-of-little-faith",
"http://thecolbertreport.cc.com/videos/cgij7r/cheating-death---car-bacteria",
"http://thecolbertreport.cc.com/videos/vp621m/paul-begala",
"http://thecolbertreport.cc.com/videos/gpa8yw/good-night"
],
"guest": "Paul Begala"
},
{
"date": "2008-09-30",
"videos": [
"http://thecolbertreport.cc.com/videos/y8hkhe/intro---9-30-08",
"http://thecolbertreport.cc.com/videos/9st6mt/partisanship-kills-the-bailout",
"http://thecolbertreport.cc.com/videos/f9oh9q/prescott-oil-loves-the-earth",
"http://thecolbertreport.cc.com/videos/d0zdru/tip-wag---wall-street-jagoffs",
"http://thecolbertreport.cc.com/videos/j67wur/out-of-time"
],
"guest": "James Taylor"
},
{
"date": "2008-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/t7tnvd/exclusive---nas-plays-rock-band",
"http://thecolbertreport.cc.com/videos/y8hkhe/intro---9-30-08",
"http://thecolbertreport.cc.com/videos/9st6mt/partisanship-kills-the-bailout",
"http://thecolbertreport.cc.com/videos/f9oh9q/prescott-oil-loves-the-earth",
"http://thecolbertreport.cc.com/videos/d0zdru/tip-wag---wall-street-jagoffs",
"http://thecolbertreport.cc.com/videos/j67wur/out-of-time"
],
"guest": "Dave Levin"
},
{
"date": "2008-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/eqbu4l/intro---10-01-08",
"http://thecolbertreport.cc.com/videos/ovyu4c/campbell-s-soup-stock",
"http://thecolbertreport.cc.com/videos/bhfa94/the-word---future-perfect",
"http://thecolbertreport.cc.com/videos/86s1x0/colbert-teen-talk---voter-abstinence",
"http://thecolbertreport.cc.com/videos/1v6olb/dave-levin",
"http://thecolbertreport.cc.com/videos/e5ngk1/you-snooze--you-lose"
],
"guest": "Dave Levin"
},
{
"date": "2008-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/zc7pti/intro---10-02-08",
"http://thecolbertreport.cc.com/videos/jwi5c6/stephen-shoots-an-audience-member",
"http://thecolbertreport.cc.com/videos/nkfn9g/shakespearean-candidates---stephen-greenblatt",
"http://thecolbertreport.cc.com/videos/9cm5sl/formidable-opponent---business-syphilis",
"http://thecolbertreport.cc.com/videos/kvfh5w/naomi-klein",
"http://thecolbertreport.cc.com/videos/xsttzx/that-s-all-she-wrote"
],
"guest": "Stephen Greenblatt, Naomi Klein"
},
{
"date": "2008-10-06",
"videos": [
"http://thecolbertreport.cc.com/videos/xxiviw/intro---10-6-08",
"http://thecolbertreport.cc.com/videos/1hb3kb/oj-simpson-guilty",
"http://thecolbertreport.cc.com/videos/qlbk95/the-word---maverick-without-a-cause",
"http://thecolbertreport.cc.com/videos/qnwvgs/un-american-news---financial-edition",
"http://thecolbertreport.cc.com/videos/tn9q1r/jim-cramer",
"http://thecolbertreport.cc.com/videos/gpjjik/life-drawing-lesson"
],
"guest": "Jim Cramer"
},
{
"date": "2008-10-07",
"videos": [
"http://thecolbertreport.cc.com/videos/lr7n1e/intro---10-7-08",
"http://thecolbertreport.cc.com/videos/ehcjcu/stephen-s-town-hall",
"http://thecolbertreport.cc.com/videos/yulr8u/threatdown---zombies",
"http://thecolbertreport.cc.com/videos/e56sfz/the-red-lending-menace",
"http://thecolbertreport.cc.com/videos/xoy3ny/nate-silver",
"http://thecolbertreport.cc.com/videos/0t800l/phone-book"
],
"guest": "Nate Silver"
},
{
"date": "2008-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/wnllod/intro---10-08-08",
"http://thecolbertreport.cc.com/videos/rb63v8/town-hall-fashion-apology",
"http://thecolbertreport.cc.com/videos/pmvhoi/the-second-presidential-debate",
"http://thecolbertreport.cc.com/videos/r8hb9t/atone-phone---gilbert-gottfried",
"http://thecolbertreport.cc.com/videos/7943ea/joe-scarborough",
"http://thecolbertreport.cc.com/videos/02dsh7/stephen-s-post-show-routine"
],
"guest": "Joe Scarborough"
},
{
"date": "2008-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/cbxmlr/intro---10-09-08",
"http://thecolbertreport.cc.com/videos/l3uq93/dismayed-stockbroker-photos",
"http://thecolbertreport.cc.com/videos/pqsng6/campaign-personal-attacks---david-gergen",
"http://thecolbertreport.cc.com/videos/f6283x/who-s-not-honoring-me-now----nepal",
"http://thecolbertreport.cc.com/videos/ge3feb/oliver-stone",
"http://thecolbertreport.cc.com/videos/w87c40/bad-news"
],
"guest": "David Gergen, Oliver Stone"
},
{
"date": "2008-10-13",
"videos": [
"http://thecolbertreport.cc.com/videos/5c0f2m/intro---10-13-08",
"http://thecolbertreport.cc.com/videos/fnytnd/mccain-crossword-clue",
"http://thecolbertreport.cc.com/videos/1jl5yn/the-computer-menace---bethany-mclean",
"http://thecolbertreport.cc.com/videos/1goeih/bears---balls---salt-based-economy",
"http://thecolbertreport.cc.com/videos/gyyaxy/kathleen-parker",
"http://thecolbertreport.cc.com/videos/6y4q65/happy-birthday"
],
"guest": "Bethany McLean, Kathleen Parker"
},
{
"date": "2008-10-14",
"videos": [
"http://thecolbertreport.cc.com/videos/n5hrc3/intro---10-14-08",
"http://thecolbertreport.cc.com/videos/7pd7zc/paul-krugman-s-nobel-prize",
"http://thecolbertreport.cc.com/videos/r0q5ve/the-word---p-o-w-",
"http://thecolbertreport.cc.com/videos/pfbd0x/tip-wag---palin-s-newsweek-cover",
"http://thecolbertreport.cc.com/videos/usq8wp/joseph-stiglitz",
"http://thecolbertreport.cc.com/videos/lvn4rk/good-night"
],
"guest": "Joseph Stiglitz"
},
{
"date": "2008-10-15",
"videos": [
"http://thecolbertreport.cc.com/videos/zwbmit/intro---10-15-08",
"http://thecolbertreport.cc.com/videos/9308mk/kfc-snacker",
"http://thecolbertreport.cc.com/videos/l7yb6p/the-word---freaky-three-way-calling",
"http://thecolbertreport.cc.com/videos/4e7lhp/sport-report---lame-sports-edition",
"http://thecolbertreport.cc.com/videos/38m5c1/tina-brown",
"http://thecolbertreport.cc.com/videos/8g4g6k/chest-tivo"
],
"guest": "Tina Brown"
},
{
"date": "2008-10-16",
"videos": [
"http://thecolbertreport.cc.com/videos/wiiett/intro---10-16-08",
"http://thecolbertreport.cc.com/videos/clx1g3/the-final-debate",
"http://thecolbertreport.cc.com/videos/irar1b/portrait-accepted---brent-glass",
"http://thecolbertreport.cc.com/videos/vhpq80/robert-greenwald",
"http://thecolbertreport.cc.com/videos/dtl1jb/a-new-portrait"
],
"guest": "Brent Glass, Robert Greenwald"
},
{
"date": "2008-10-20",
"videos": [
"http://thecolbertreport.cc.com/videos/icr62o/intro---10-20-08",
"http://thecolbertreport.cc.com/videos/hztig3/colin-powell-endorses-barack-obama",
"http://thecolbertreport.cc.com/videos/m2bwgq/fareed-zakaria",
"http://thecolbertreport.cc.com/videos/f1sjmz/colbert-aluminum---paris",
"http://thecolbertreport.cc.com/videos/ihme7b/wynton-marsalis",
"http://thecolbertreport.cc.com/videos/1zx8mm/good-night"
],
"guest": "Fareed Zakaria, Wynton Marsalis"
},
{
"date": "2008-10-21",
"videos": [
"http://thecolbertreport.cc.com/videos/ipzwmk/intro---10-21-08",
"http://thecolbertreport.cc.com/videos/1q0lgd/stephen-jr--campaigns-for-mccain",
"http://thecolbertreport.cc.com/videos/6mt8jf/the-word---fantasyland",
"http://thecolbertreport.cc.com/videos/yf6nbq/battle-of-the-gods",
"http://thecolbertreport.cc.com/videos/ajdj8y/atone-phone---the-pony-down",
"http://thecolbertreport.cc.com/videos/2f3tuj/michael-farris",
"http://thecolbertreport.cc.com/videos/gsnyc0/another-one-tomorrow"
],
"guest": "Michael Farris"
},
{
"date": "2008-10-22",
"videos": [
"http://thecolbertreport.cc.com/videos/zfo3j9/intro---10-22-08",
"http://thecolbertreport.cc.com/videos/bnfehb/mccain-loves-the-middle-class",
"http://thecolbertreport.cc.com/videos/2fhvot/too-much-political-knowledge",
"http://thecolbertreport.cc.com/videos/l9sa9k/movies-that-are-destroying-america---quantum-of-solace",
"http://thecolbertreport.cc.com/videos/bfif72/david-frum",
"http://thecolbertreport.cc.com/videos/zijniy/thanks-to-cedric-the-entertainer"
],
"guest": "David Frum"
},
{
"date": "2008-10-23",
"videos": [
"http://thecolbertreport.cc.com/videos/4fsdf9/intro---10-23-08",
"http://thecolbertreport.cc.com/videos/mxdemq/the-palins-in-people-magazine",
"http://thecolbertreport.cc.com/videos/9r8mtw/threatdown---who-s-nailin--paylin",
"http://thecolbertreport.cc.com/videos/d9d59e/difference-makers---the-national-hummer-club",
"http://thecolbertreport.cc.com/videos/vu40sp/jonathan-alter",
"http://thecolbertreport.cc.com/videos/4q4n65/a-short-goodbye"
],
"guest": "Jonathan Alter"
},
{
"date": "2008-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/59kvnn/intro---10-27-08",
"http://thecolbertreport.cc.com/videos/o5x5iu/mccain-guarantees-victory",
"http://thecolbertreport.cc.com/videos/05r6nq/the-word---it-s-alive-",
"http://thecolbertreport.cc.com/videos/7g8kx1/alpha-dog-of-the-week---mark-ciptak",
"http://thecolbertreport.cc.com/videos/fnuvdv/yo-yo-ma"
],
"guest": "Yo-Yo Ma"
},
{
"date": "2008-10-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ghj64m/intro---10-28-08",
"http://thecolbertreport.cc.com/videos/xk09yu/ted-stevens-is-found-guilty",
"http://thecolbertreport.cc.com/videos/7j217q/obama-the-socialist",
"http://thecolbertreport.cc.com/videos/bxzmkn/socialist-candidate-for-president---brian-moore",
"http://thecolbertreport.cc.com/videos/wz2u1e/canton--ohio",
"http://thecolbertreport.cc.com/videos/ytg04i/sherman-alexie",
"http://thecolbertreport.cc.com/videos/jz4m1g/tickets-to-canada"
],
"guest": "Brian Moore, Sherman Alexie"
},
{
"date": "2008-10-29",
"videos": [
"http://thecolbertreport.cc.com/videos/ix1wn7/intro---10-29-08",
"http://thecolbertreport.cc.com/videos/ks5pt8/john-mccain-s-big-prank",
"http://thecolbertreport.cc.com/videos/7qwbk4/the-word---i-endorse-barack-obama",
"http://thecolbertreport.cc.com/videos/k5qv33/was-it-really-that-bad----the-great-depression",
"http://thecolbertreport.cc.com/videos/cxwcsb/david-simon",
"http://thecolbertreport.cc.com/videos/prhqai/colbert-completists"
],
"guest": "David Simon"
},
{
"date": "2008-10-30",
"videos": [
"http://thecolbertreport.cc.com/videos/9sqk1r/intro---10-30-08",
"http://thecolbertreport.cc.com/videos/b7m8ic/obama-infomercial",
"http://thecolbertreport.cc.com/videos/7mbhhk/tip-wag---apple-computers",
"http://thecolbertreport.cc.com/videos/tiopht/the-dacolbert-code---the-election",
"http://thecolbertreport.cc.com/videos/ugfx1s/wilco-interview"
],
"guest": "Wilco"
},
{
"date": "2008-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/gc439u/intro---11-03-08",
"http://thecolbertreport.cc.com/videos/jtvn9v/2008-campaign-winners-and-losers",
"http://thecolbertreport.cc.com/videos/q31c3b/charlie-cook",
"http://thecolbertreport.cc.com/videos/syw57q/how-to-be-a-maverick",
"http://thecolbertreport.cc.com/videos/3lix4b/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/5snsio/election-eve-prayer"
],
"guest": "Charlie Cook, Andrew Sullivan"
},
{
"date": "2008-11-05",
"videos": [
"http://thecolbertreport.cc.com/videos/deihkn/intro---11-05-08",
"http://thecolbertreport.cc.com/videos/ek3v6r/president-obama",
"http://thecolbertreport.cc.com/videos/p698of/the-word---change",
"http://thecolbertreport.cc.com/videos/b3gurg/threatdown---black-presidents",
"http://thecolbertreport.cc.com/videos/1bpyxl/andrew-young",
"http://thecolbertreport.cc.com/videos/wmwkia/note-to-gorlock"
],
"guest": "Ambassador Andrew Young"
},
{
"date": "2008-11-06",
"videos": [
"http://thecolbertreport.cc.com/videos/jvmllx/intro---11-06-08",
"http://thecolbertreport.cc.com/videos/8cjwkf/obama-s-spider-battle",
"http://thecolbertreport.cc.com/videos/91wunt/un-american-news---obama-edition",
"http://thecolbertreport.cc.com/videos/aedolr/fallback-position---peter-earnest-pt--1",
"http://thecolbertreport.cc.com/videos/tp44lf/rachel-maddow"
],
"guest": "Rachel Maddow"
},
{
"date": "2008-11-11",
"videos": [
"http://thecolbertreport.cc.com/videos/3vbqce/intro---11-11-08",
"http://thecolbertreport.cc.com/videos/t0o0ln/the-obamas-meet-the-bushes",
"http://thecolbertreport.cc.com/videos/cf9i7o/proposition-8-protests---dan-savage",
"http://thecolbertreport.cc.com/videos/a4htau/fallback-position---peter-earnest-pt--2",
"http://thecolbertreport.cc.com/videos/97cxi9/kevin-johnson",
"http://thecolbertreport.cc.com/videos/knwq1k/gay-black-violence"
],
"guest": "Dan Savage, Kevin Johnson"
},
{
"date": "2008-11-12",
"videos": [
"http://thecolbertreport.cc.com/videos/jxnavl/intro---11-12-08",
"http://thecolbertreport.cc.com/videos/hs06sa/formula-4ou1",
"http://thecolbertreport.cc.com/videos/jdc5wl/the-word---pity-party",
"http://thecolbertreport.cc.com/videos/vq5z69/cheating-death---women-s-health",
"http://thecolbertreport.cc.com/videos/h8pdku/bob-woodward",
"http://thecolbertreport.cc.com/videos/yj3fvl/good-night"
],
"guest": "Bob Woodward"
},
{
"date": "2008-11-13",
"videos": [
"http://thecolbertreport.cc.com/videos/iy78xf/intro---11-13-08",
"http://thecolbertreport.cc.com/videos/ws4itq/imaginary-gay-black-warfare",
"http://thecolbertreport.cc.com/videos/54gy81/tip-wag---marvel-comics",
"http://thecolbertreport.cc.com/videos/9so57k/rahm-emanuel-s-finger",
"http://thecolbertreport.cc.com/videos/84locu/stephen-moore",
"http://thecolbertreport.cc.com/videos/kwiam8/obama-spider-man-comic-bribe"
],
"guest": "Stephen Moore"
},
{
"date": "2008-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/edyiaw/intro---11-17-08",
"http://thecolbertreport.cc.com/videos/vfh1d7/stephen-s-gma-appearance",
"http://thecolbertreport.cc.com/videos/tyr5yf/barack-obama-is-hiring",
"http://thecolbertreport.cc.com/videos/xubttj/obama-s-cabinet---tom-brokaw",
"http://thecolbertreport.cc.com/videos/okezd5/soup-war",
"http://thecolbertreport.cc.com/videos/lu8hmu/malcolm-gladwell",
"http://thecolbertreport.cc.com/videos/f67l6s/stephen-drinks-soup"
],
"guest": "Tom Brokaw, Malcolm Gladwell"
},
{
"date": "2008-11-18",
"videos": [
"http://thecolbertreport.cc.com/videos/cpar3w/intro---11-18-08",
"http://thecolbertreport.cc.com/videos/gpyfhe/joe-lieberman-learns-his-fate",
"http://thecolbertreport.cc.com/videos/tda4m3/the-word---love-lost",
"http://thecolbertreport.cc.com/videos/rfqomg/stephen-s-vetting-process---cliff-sloan-pt--1"
],
"guest": "Paul Simon"
},
{
"date": "2008-11-19",
"videos": [
"http://thecolbertreport.cc.com/videos/a4gbi9/intro---11-19-08",
"http://thecolbertreport.cc.com/videos/3ebcnc/the-word---mad-men",
"http://thecolbertreport.cc.com/videos/hjm6c3/stephen-s-vetting-process---cliff-sloan-pt--2",
"http://thecolbertreport.cc.com/videos/p1vjk5/michael-lewis",
"http://thecolbertreport.cc.com/videos/5n2dbq/tearful-apology"
],
"guest": "Michael Lewis"
},
{
"date": "2008-11-20",
"videos": [
"http://thecolbertreport.cc.com/videos/cbvik4/intro---11-20-08",
"http://thecolbertreport.cc.com/videos/ag7dg1/racism-is-over---cory-booker",
"http://thecolbertreport.cc.com/videos/2frm4q/metunes---chinese-democracy",
"http://thecolbertreport.cc.com/videos/c48nk9/thomas-friedman",
"http://thecolbertreport.cc.com/videos/bd8wju/christmas-special-dvd-warning"
],
"guest": "Cory Booker, Thomas L. Friedman"
},
{
"date": "2008-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/rpma6e/intro---12-01-08",
"http://thecolbertreport.cc.com/videos/tq2nxp/operation-humble-kanye",
"http://thecolbertreport.cc.com/videos/qarmhd/war-in-afghanistan",
"http://thecolbertreport.cc.com/videos/rven6i/khaled-hosseini",
"http://thecolbertreport.cc.com/videos/36dgrv/tip-wag---all-wag-christmas-edition",
"http://thecolbertreport.cc.com/videos/7058uf/roland-fryer",
"http://thecolbertreport.cc.com/videos/n1in3i/good-night"
],
"guest": "Khaled Hosseini, Roland Fryer"
},
{
"date": "2008-12-02",
"videos": [
"http://thecolbertreport.cc.com/videos/cj7hhg/intro---12-02-08",
"http://thecolbertreport.cc.com/videos/qvwoip/operation-humble-kanye---buy-stephen-s-album",
"http://thecolbertreport.cc.com/videos/ztjt9g/the-word---a-man-named-plaxico",
"http://thecolbertreport.cc.com/videos/fic3d1/colbert-platinum---christmas-edition",
"http://thecolbertreport.cc.com/videos/bshkcz/jeffrey-goldberg",
"http://thecolbertreport.cc.com/videos/utntlq/buy-stephen-s-boots-on-ebay"
],
"guest": "Jeffrey Goldberg"
},
{
"date": "2008-12-03",
"videos": [
"http://thecolbertreport.cc.com/videos/il4wbl/intro---12-03-08",
"http://thecolbertreport.cc.com/videos/owefww/nasa-spider-escapes",
"http://thecolbertreport.cc.com/videos/z33t4w/the-word---barack-handed-compliment",
"http://thecolbertreport.cc.com/videos/mcfi82/nailed--em---radical-knitting",
"http://thecolbertreport.cc.com/videos/2karre/barbara-walters",
"http://thecolbertreport.cc.com/videos/r6ufyo/the-end--not-the-beginning"
],
"guest": "Barbara Walters"
},
{
"date": "2008-12-04",
"videos": [
"http://thecolbertreport.cc.com/videos/d118oe/intro---12-04-08",
"http://thecolbertreport.cc.com/videos/2fjry6/operation-humble-kanye---stephen-beats-kanye",
"http://thecolbertreport.cc.com/videos/2d2zn0/pakistani-threat---bob-graham",
"http://thecolbertreport.cc.com/videos/d5jif7/movies-that-are-destroying-america---holiday-movie-edition",
"http://thecolbertreport.cc.com/videos/n7jvhg/nicholas-wade",
"http://thecolbertreport.cc.com/videos/sugr09/returning-monday"
],
"guest": "Sen. Bob Graham, Nicholas Wade"
},
{
"date": "2008-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/7u2bhk/intro---12-08-08",
"http://thecolbertreport.cc.com/videos/ao9vg7/bush-kisses-streisand",
"http://thecolbertreport.cc.com/videos/gctknh/the-word---season-of-giving",
"http://thecolbertreport.cc.com/videos/6153k5/barry---the-stump",
"http://thecolbertreport.cc.com/videos/hpitea/geoffrey-canada",
"http://thecolbertreport.cc.com/videos/0r2h5l/stephen-on-conan"
],
"guest": "Geoffrey Canada"
},
{
"date": "2008-12-09",
"videos": [
"http://thecolbertreport.cc.com/videos/4g9cia/intro---12-09-08",
"http://thecolbertreport.cc.com/videos/onbk9a/rod-blagojevich-is-arrested",
"http://thecolbertreport.cc.com/videos/600m6s/nixmas-tree-trimming---kevin-bacon",
"http://thecolbertreport.cc.com/videos/yflimf/tek-jansen---beginning-s-first-dawn--episode-two-revisited",
"http://thecolbertreport.cc.com/videos/srrck8/charlie-kaufman",
"http://thecolbertreport.cc.com/videos/zkndmq/nixon-angel"
],
"guest": "Kevin Bacon, Charlie Kaufman"
},
{
"date": "2008-12-10",
"videos": [
"http://thecolbertreport.cc.com/videos/u8ghsg/intro---12-10-08",
"http://thecolbertreport.cc.com/videos/f9io4y/rod-blagojevich-s-birthday",
"http://thecolbertreport.cc.com/videos/imth2d/threatdown---happiness",
"http://thecolbertreport.cc.com/videos/jnn2lb/on-notice---forgiveness",
"http://thecolbertreport.cc.com/videos/i1wzcc/richard-haass",
"http://thecolbertreport.cc.com/videos/uw87dl/good-night"
],
"guest": "Richard Haass"
},
{
"date": "2008-12-11",
"videos": [
"http://thecolbertreport.cc.com/videos/y3mqae/intro---12-11-08",
"http://thecolbertreport.cc.com/videos/djirpd/michael-phelps",
"http://thecolbertreport.cc.com/videos/j11gba/stephen-eats-ghost-ribs",
"http://thecolbertreport.cc.com/videos/zc9rq9/the-ghost-of-stage-manager-bobby",
"http://thecolbertreport.cc.com/videos/1756ia/the-word---the-unbearable-lightness-of-supreme-being"
],
"guest": "Michael Phelps"
}
],
"2009": [
{
"date": "2009-01-05",
"videos": [
"http://thecolbertreport.cc.com/videos/9k2tbm/intro---1-05-09",
"http://thecolbertreport.cc.com/videos/za98w3/colbert-and-colmes---roland-burris-appointment",
"http://thecolbertreport.cc.com/videos/hq4p9o/tek-jansen---beginning-s-first-dawn--episode-three",
"http://thecolbertreport.cc.com/videos/nrlhy0/john-king",
"http://thecolbertreport.cc.com/videos/5hoaoz/colbert-and-colmes---colmes-gets-fired"
],
"guest": "Riley Crane"
},
{
"date": "2009-01-06",
"videos": [
"http://thecolbertreport.cc.com/videos/sn2rhf/ponzi-schemes",
"http://thecolbertreport.cc.com/videos/k6j6as/hiding-gold---david-leonhardt",
"http://thecolbertreport.cc.com/videos/4zhwch/better-know-a-district---utah-s-3rd---jason-chaffetz",
"http://thecolbertreport.cc.com/videos/g9ppzt/matt-miller",
"http://thecolbertreport.cc.com/videos/yys5yk/thank-you--stephen"
],
"guest": "Capt. Charles Moore"
},
{
"date": "2009-01-07",
"videos": [
"http://thecolbertreport.cc.com/videos/z8rm3b/intro---01-07-09",
"http://thecolbertreport.cc.com/videos/92yx1q/che-stadium",
"http://thecolbertreport.cc.com/videos/d1e1eu/dr--gupta-s-penis-pyramid",
"http://thecolbertreport.cc.com/videos/nqulkz/the-word---statute-of-liberty",
"http://thecolbertreport.cc.com/videos/amgd80/tip-wag---cocaine-honey",
"http://thecolbertreport.cc.com/videos/yau33c/benicio-del-toro"
],
"guest": "James Fowler"
},
{
"date": "2009-01-08",
"videos": [
"http://thecolbertreport.cc.com/videos/88kvmz/intro---01-08-09",
"http://thecolbertreport.cc.com/videos/wcgnr1/new-york-times-abandons-dignity",
"http://thecolbertreport.cc.com/videos/926dzf/yahweh-or-no-way---roland-burris",
"http://thecolbertreport.cc.com/videos/fk4a9c/leg-wrestling-rematch",
"http://thecolbertreport.cc.com/videos/gteixg/a-really-good-book",
"http://thecolbertreport.cc.com/videos/6428p8/pro-commie-epic"
],
"guest": "Lawrence Lessig"
},
{
"date": "2009-01-12",
"videos": [
"http://thecolbertreport.cc.com/videos/kni4vi/intro---01-12-09",
"http://thecolbertreport.cc.com/videos/9c4f03/bush-s-last-press-conference",
"http://thecolbertreport.cc.com/videos/bwmns5/the-word---sweet-smell-of-success",
"http://thecolbertreport.cc.com/videos/0o1xwh/stephen-jr--on-christmas-eve",
"http://thecolbertreport.cc.com/videos/dkx1ya/anthony-romero",
"http://thecolbertreport.cc.com/videos/by8gkb/a-lot-more-to-say"
],
"guest": "Anthony Romero"
},
{
"date": "2009-01-13",
"videos": [
"http://thecolbertreport.cc.com/videos/32ytiz/intro---01-13-09",
"http://thecolbertreport.cc.com/videos/fmzudp/bush-presidency-aged-us",
"http://thecolbertreport.cc.com/videos/9et79a/cold-war-update---cuba",
"http://thecolbertreport.cc.com/videos/m3x3ok/on-notice---limey-squirrel-eaters",
"http://thecolbertreport.cc.com/videos/k1og3a/niall-ferguson",
"http://thecolbertreport.cc.com/videos/5px40o/that-s-all-the-time-we-have"
],
"guest": "Niall Ferguson"
},
{
"date": "2009-01-14",
"videos": [
"http://thecolbertreport.cc.com/videos/oyml2f/intro---01-14-09",
"http://thecolbertreport.cc.com/videos/34mj4v/the-last-bush-effigy",
"http://thecolbertreport.cc.com/videos/y0f472/p-k--winsome---obama-collectibles",
"http://thecolbertreport.cc.com/videos/ur3zl1/little-victories---america-s-galaxy-is-big",
"http://thecolbertreport.cc.com/videos/gizrjk/alan-khazei",
"http://thecolbertreport.cc.com/videos/9hlcm3/commemorative-plates"
],
"guest": "Alan Khazei"
},
{
"date": "2009-01-15",
"videos": [
"http://thecolbertreport.cc.com/videos/q7vz1i/intro---01-15-09",
"http://thecolbertreport.cc.com/videos/95lbi6/bush-and-the-press",
"http://thecolbertreport.cc.com/videos/sy3mow/bush-s-romance-with-the-media---david-gregory",
"http://thecolbertreport.cc.com/videos/7iuuwa/tip-wag---monkey-on-the-lam",
"http://thecolbertreport.cc.com/videos/ux2atw/shepard-fairey",
"http://thecolbertreport.cc.com/videos/wfge8o/spay-and-neuter-your-pets"
],
"guest": "David Gregory, Shepard Fairey"
},
{
"date": "2009-01-19",
"videos": [
"http://thecolbertreport.cc.com/videos/r1uwlh/intro---01-19-09",
"http://thecolbertreport.cc.com/videos/ul1a7j/mlk-day-mascot",
"http://thecolbertreport.cc.com/videos/lypf68/the-word---sacrifice",
"http://thecolbertreport.cc.com/videos/ydvpvb/frank-rich",
"http://thecolbertreport.cc.com/videos/52s3oy/boiling-frog-metaphor"
],
"guest": "Frank Rich"
},
{
"date": "2009-01-20",
"videos": [
"http://thecolbertreport.cc.com/videos/ymrs37/stephen-s-inauguration-breakdown",
"http://thecolbertreport.cc.com/videos/301bds/p-k--winsome---inauguration-merchandise",
"http://thecolbertreport.cc.com/videos/9hjhcy/stephen-s-sound-advice---how-to-be-like-lincoln",
"http://thecolbertreport.cc.com/videos/mmoodw/jabari-asim",
"http://thecolbertreport.cc.com/videos/kai9la/stephen-realizes-he-s-black"
],
"guest": "Jabari Asim"
},
{
"date": "2009-01-21",
"videos": [
"http://thecolbertreport.cc.com/videos/dl8i2q/intro---01-21-09",
"http://thecolbertreport.cc.com/videos/l2d6st/president-yo-yo-ma",
"http://thecolbertreport.cc.com/videos/axsw46/election-2012---chuck-todd",
"http://thecolbertreport.cc.com/videos/xkmfex/stephen-s-remix-challenge",
"http://thecolbertreport.cc.com/videos/8l6srp/elizabeth-alexander",
"http://thecolbertreport.cc.com/videos/a3p8mj/good-night"
],
"guest": "Elizabeth Alexander"
},
{
"date": "2009-01-22",
"videos": [
"http://thecolbertreport.cc.com/videos/0zgr4t/intro---01-22-09",
"http://thecolbertreport.cc.com/videos/t6meak/near-president-obama",
"http://thecolbertreport.cc.com/videos/mtzrkq/un-american-news---president-obama-edition",
"http://thecolbertreport.cc.com/videos/689o7m/better-know-a-lobby---naacp",
"http://thecolbertreport.cc.com/videos/8awmoy/jon-meacham",
"http://thecolbertreport.cc.com/videos/ili9if/refreshing-sierra-mist"
],
"guest": "Jon Meacham"
},
{
"date": "2009-01-26",
"videos": [
"http://thecolbertreport.cc.com/videos/7nxt06/intro---01-26-09",
"http://thecolbertreport.cc.com/videos/4oz085/stephen-s-secret-prison",
"http://thecolbertreport.cc.com/videos/cw8n8j/obama-s-new-science-policy---chris-mooney",
"http://thecolbertreport.cc.com/videos/yxtpn8/tip-wag---john-yarmuth-s-holiday-card",
"http://thecolbertreport.cc.com/videos/uj76wp/ed-young",
"http://thecolbertreport.cc.com/videos/49ccbt/1-877-sean-930"
],
"guest": "Chris Mooney, Ed Young"
},
{
"date": "2009-01-27",
"videos": [
"http://thecolbertreport.cc.com/videos/rwx1ie/intro---01-27-09",
"http://thecolbertreport.cc.com/videos/8ws8hw/al-arabiya-kidnaps-obama",
"http://thecolbertreport.cc.com/videos/ei15xx/cheating-death---lung-health",
"http://thecolbertreport.cc.com/videos/yzw1s5/bill-o-reilly-doesn-t-report-rumors",
"http://thecolbertreport.cc.com/videos/7ljyqd/philippe-petit",
"http://thecolbertreport.cc.com/videos/qx6mra/omar-returns"
],
"guest": "Philippe Petit"
},
{
"date": "2009-01-28",
"videos": [
"http://thecolbertreport.cc.com/videos/mrairj/exclusive---better-know-a-beatle---paul-mccartney",
"http://thecolbertreport.cc.com/videos/qfnuqn/intro---01-28-09",
"http://thecolbertreport.cc.com/videos/4c854b/countdown-to-atomic-disaster---the-wing-ageddon",
"http://thecolbertreport.cc.com/videos/m2fb3c/denis-dutton",
"http://thecolbertreport.cc.com/videos/x3yxrz/call-1-877-sean-930"
],
"guest": "Paul McCartney, Denis Dutton"
},
{
"date": "2009-01-29",
"videos": [
"http://thecolbertreport.cc.com/videos/s0jwx0/intro---01-29-09",
"http://thecolbertreport.cc.com/videos/7k3noc/rod-blagojevich-is-impeached",
"http://thecolbertreport.cc.com/videos/05hiht/the-word---the-audacity-of-nope",
"http://thecolbertreport.cc.com/videos/ra6q6v/sport-report---chicken-wing-spokesman-richard-lobb",
"http://thecolbertreport.cc.com/videos/n7s40p/john-podesta",
"http://thecolbertreport.cc.com/videos/t92qhf/goodnight-illinois-gov--patrick-quinn"
],
"guest": "John Podesta"
},
{
"date": "2009-02-02",
"videos": [
"http://thecolbertreport.cc.com/videos/2e9hx6/intro---02-02-09",
"http://thecolbertreport.cc.com/videos/qx0vt7/the-lilly-ledbetter-fair-pay-act",
"http://thecolbertreport.cc.com/videos/3n4xx4/it-could-be-worse---iceland",
"http://thecolbertreport.cc.com/videos/9kc6le/nailed--em---amtrak-photographer",
"http://thecolbertreport.cc.com/videos/1tdafu/dan-zaccagnino",
"http://thecolbertreport.cc.com/videos/z0ddpw/so-long--farewell"
],
"guest": "Dan Zaccagnino"
},
{
"date": "2009-02-03",
"videos": [
"http://thecolbertreport.cc.com/videos/5d9tuo/intro---02-03-09",
"http://thecolbertreport.cc.com/videos/cfzmri/tom-daschle-steps-down",
"http://thecolbertreport.cc.com/videos/b8o45v/the-word---army-of-one",
"http://thecolbertreport.cc.com/videos/eo7n2c/colbert-platinum---ass-covering-edition",
"http://thecolbertreport.cc.com/videos/lr21yl/henry-louis-gates--jr-",
"http://thecolbertreport.cc.com/videos/fz6ra7/all-the-show-we-have-time-for"
],
"guest": "Henry Louis Gates Jr."
},
{
"date": "2009-02-04",
"videos": [
"http://thecolbertreport.cc.com/videos/hm493e/intro---02-04-09",
"http://thecolbertreport.cc.com/videos/7z1jvo/stephen-verbally-thrashes-steve-martin",
"http://thecolbertreport.cc.com/videos/1t7nor/yahweh-or-no-way---the-super-bowl",
"http://thecolbertreport.cc.com/videos/vtzs6d/who-s-not-honoring-me-now----the-newberry-awards",
"http://thecolbertreport.cc.com/videos/7z3biy/tell-your-friends"
],
"guest": "Steve Martin"
},
{
"date": "2009-02-05",
"videos": [
"http://thecolbertreport.cc.com/videos/oqo6m1/intro---02-05-09",
"http://thecolbertreport.cc.com/videos/hkvbbb/stelephant-colbert-the-elephant-seal",
"http://thecolbertreport.cc.com/videos/7v0jg2/economic-stimulus-debate",
"http://thecolbertreport.cc.com/videos/9xbuuq/economic-stimulus-bill---james-surowiecki",
"http://thecolbertreport.cc.com/videos/e378n6/alpha-dog-of-the-week---boy-scouts-of-america",
"http://thecolbertreport.cc.com/videos/avti1a/jonah-lehrer",
"http://thecolbertreport.cc.com/videos/qj4lmo/keep-your-friends-close"
],
"guest": "James Surowiecki, Jonah Lehrer"
},
{
"date": "2009-02-09",
"videos": [
"http://thecolbertreport.cc.com/videos/vp4fvu/intro---02-09-09",
"http://thecolbertreport.cc.com/videos/it28fw/the-new-word-czar",
"http://thecolbertreport.cc.com/videos/13lrs0/threatdown---gay-divorce",
"http://thecolbertreport.cc.com/videos/hr5hvl/al-gore-steals-stephen-s-grammy"
],
"guest": "TV on the Radio"
},
{
"date": "2009-02-10",
"videos": [
"http://thecolbertreport.cc.com/videos/fv48bo/intro---02-10-09",
"http://thecolbertreport.cc.com/videos/mj9pcq/the-visa-black-card",
"http://thecolbertreport.cc.com/videos/l6kty8/the-word---loyal-opposition",
"http://thecolbertreport.cc.com/videos/nj38bb/shout-out---honey--counterterrorism---an-old-guard-flag",
"http://thecolbertreport.cc.com/videos/9w33a7/robert-ballard",
"http://thecolbertreport.cc.com/videos/gissod/you-look-like-stephen"
],
"guest": "Robert Ballard"
},
{
"date": "2009-02-11",
"videos": [
"http://thecolbertreport.cc.com/videos/smxfup/intro---02-11-09",
"http://thecolbertreport.cc.com/videos/l5ealo/westminster-dog-show-snub---formula-40-woof",
"http://thecolbertreport.cc.com/videos/jxgbb9/dc-voting-rights-act---eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/wfrwar/truth-from-the-gut",
"http://thecolbertreport.cc.com/videos/42vhyq/steven-pinker",
"http://thecolbertreport.cc.com/videos/tpb22v/good-night----except-for-the-west-coast"
],
"guest": "Eleanor Holmes Norton, Steven Pinker"
},
{
"date": "2009-02-12",
"videos": [
"http://thecolbertreport.cc.com/videos/m1tx5d/exclusive---stephen-s-sexiest-moments",
"http://thecolbertreport.cc.com/videos/f0688o/obama-poster-debate---david-ross-and-ed-colbert",
"http://thecolbertreport.cc.com/videos/vgbtpp/the-dacolbert-code---oscar-predictions",
"http://thecolbertreport.cc.com/videos/tbf4y6/adam-gopnik",
"http://thecolbertreport.cc.com/videos/okmu84/goodbye--conan-o-brien"
],
"guest": "David Ross, Ed Colbert, Adam Gopnik"
},
{
"date": "2009-02-23",
"videos": [
"http://thecolbertreport.cc.com/videos/9ynh43/intro---02-23-09",
"http://thecolbertreport.cc.com/videos/xlgfrl/stephen-s-prayer-day",
"http://thecolbertreport.cc.com/videos/legx6j/stephen-s-moral-dimension",
"http://thecolbertreport.cc.com/videos/om9959/helen-fisher"
],
"guest": "Father James Martin, Helen Fisher"
},
{
"date": "2009-02-24",
"videos": [
"http://thecolbertreport.cc.com/videos/mngx54/mardi-gras-celebrations",
"http://thecolbertreport.cc.com/videos/9jcm4g/1997-flashback",
"http://thecolbertreport.cc.com/videos/pljjhc/nailed--em---buffet-crime",
"http://thecolbertreport.cc.com/videos/n75sz3/cliff-sloan",
"http://thecolbertreport.cc.com/videos/yg82dj/happy-mardi-gras",
"http://thecolbertreport.cc.com/videos/823sva/turning-to-religion---jim-martin",
"http://thecolbertreport.cc.com/videos/gks8m8/breaded-fish-sticks"
],
"guest": "Cliff Sloan"
},
{
"date": "2009-02-25",
"videos": [
"http://thecolbertreport.cc.com/videos/4v3vka/intro---02-25-09",
"http://thecolbertreport.cc.com/videos/fbot0q/obama-s-congressional-address---jindal-s-response",
"http://thecolbertreport.cc.com/videos/o1f5mr/tip-wag---gorilla-crabs-and-gandhi-s-shoes",
"http://thecolbertreport.cc.com/videos/jyyb0h/john-fetterman",
"http://thecolbertreport.cc.com/videos/10ufmk/bears---balls---company-bailouts"
],
"guest": "John Fetterman"
},
{
"date": "2009-02-26",
"videos": [
"http://thecolbertreport.cc.com/videos/lvfhs2/intro---02-26-09",
"http://thecolbertreport.cc.com/videos/1q3zjs/claire-mccaskill-s-twittering",
"http://thecolbertreport.cc.com/videos/5j9jjo/conservative-rap-battle---stephen-challenges-michael-steele",
"http://thecolbertreport.cc.com/videos/831wm1/kris-kristofferson",
"http://thecolbertreport.cc.com/videos/lh0vwj/the-word---ablacknophobia",
"http://thecolbertreport.cc.com/videos/um02qq/analog-tv"
],
"guest": "Kris Kristofferson"
},
{
"date": "2009-03-02",
"videos": [
"http://thecolbertreport.cc.com/videos/tfciz3/conservative-rap-battle---michael-steele-gets-served",
"http://thecolbertreport.cc.com/videos/xtntgt/snow-in-the-studio",
"http://thecolbertreport.cc.com/videos/52t6yh/p-k--winsome---defective-obama-collectibles",
"http://thecolbertreport.cc.com/videos/j78ngs/david-byrne"
],
"guest": "David Byrne"
},
{
"date": "2009-03-03",
"videos": [
"http://thecolbertreport.cc.com/videos/qs5iv1/beer-pong-herpes-outbreak",
"http://thecolbertreport.cc.com/videos/0c92nb/guns-for-roses",
"http://thecolbertreport.cc.com/videos/l9p0ah/space-module--colbert---name-nasa-s-node-3-after-stephen",
"http://thecolbertreport.cc.com/videos/oayyzq/mark-bittman",
"http://thecolbertreport.cc.com/videos/tfciz3/conservative-rap-battle---michael-steele-gets-served"
],
"guest": "Mark Bittman"
},
{
"date": "2009-03-04",
"videos": [
"http://thecolbertreport.cc.com/videos/n8kt9r/intro---03-04-09",
"http://thecolbertreport.cc.com/videos/kob10w/space-module--colbert---scientology-s-new-galactic-overlord",
"http://thecolbertreport.cc.com/videos/9opkqc/doom-bunker---jack-jacobs-and-stephen-moore",
"http://thecolbertreport.cc.com/videos/sx98t6/carl-wilson",
"http://thecolbertreport.cc.com/videos/239tij/goodnight",
"http://thecolbertreport.cc.com/videos/1kkbbd/intro---03-03-09",
"http://thecolbertreport.cc.com/videos/00d1sm/the-word---share-the-wealth",
"http://thecolbertreport.cc.com/videos/nhjls5/the-murderer-was-derek"
],
"guest": "Carl Wilson"
},
{
"date": "2009-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/ej854l/intro---03-05-09",
"http://thecolbertreport.cc.com/videos/w194ds/obama-s-swing-set",
"http://thecolbertreport.cc.com/videos/a7l1re/tip-wag---rush-limbaugh",
"http://thecolbertreport.cc.com/videos/n8dlml/steven-johnson",
"http://thecolbertreport.cc.com/videos/nfx4fy/leave-you-wanting-more",
"http://thecolbertreport.cc.com/videos/1y41q9/doom-bunker---glenn-beck-s--war-room-"
],
"guest": "Steven Johnson"
},
{
"date": "2009-03-09",
"videos": [
"http://thecolbertreport.cc.com/videos/itgd4m/intro---03-09-09",
"http://thecolbertreport.cc.com/videos/4bvnlr/new-baby-abraham-carter-grosz",
"http://thecolbertreport.cc.com/videos/z9c9ak/better-know-a-district---wyoming-s-at-large---cynthia-lummis",
"http://thecolbertreport.cc.com/videos/54ad8f/lisa-hannigan"
],
"guest": "Lisa Hannigan"
},
{
"date": "2009-03-10",
"videos": [
"http://thecolbertreport.cc.com/videos/1h7cfe/intro---03-10-09",
"http://thecolbertreport.cc.com/videos/i1w6au/conservative-rap-battle---droppin--science-on-michael-steele",
"http://thecolbertreport.cc.com/videos/858jnr/coffee-induced-hallucinations",
"http://thecolbertreport.cc.com/videos/ogsw1c/jay-keasling",
"http://thecolbertreport.cc.com/videos/ovf9hb/sick-three-way",
"http://thecolbertreport.cc.com/videos/mtwuig/exclusive---better-know-a-district---wyoming-s-at-large---cynthia-lummis",
"http://thecolbertreport.cc.com/videos/psylhz/the-word---locked-and-loathed",
"http://thecolbertreport.cc.com/videos/dw94ms/sleep-tight--abraham"
],
"guest": "William Gerstenmaier, Dr. Jay Keasling"
},
{
"date": "2009-03-11",
"videos": [
"http://thecolbertreport.cc.com/videos/sa3out/intro---03-11-09",
"http://thecolbertreport.cc.com/videos/4sbc36/earmarks-abuse-ends-tomorrow",
"http://thecolbertreport.cc.com/videos/7bt4s0/cheating-death---legal--sweat---pre-natal-health",
"http://thecolbertreport.cc.com/videos/rovggj/howard-fineman",
"http://thecolbertreport.cc.com/videos/vpswgr/stephen-s-encore",
"http://thecolbertreport.cc.com/videos/m6st31/space-module--colbert---william-gerstenmaier"
],
"guest": "Howard Fineman"
},
{
"date": "2009-03-12",
"videos": [
"http://thecolbertreport.cc.com/videos/xum4x8/intro---03-12-09",
"http://thecolbertreport.cc.com/videos/uvfw3m/mahmoud-s-non-consensual-endorsement-deal",
"http://thecolbertreport.cc.com/videos/p4j2xc/craziest-f--king-thing-i-ve-ever-heard---barreleye-fish",
"http://thecolbertreport.cc.com/videos/8nmnda/peter-singer",
"http://thecolbertreport.cc.com/videos/8tqo3i/goodnight",
"http://thecolbertreport.cc.com/videos/xjpl01/the-word---rand-illusion"
],
"guest": "Simon Johnson, Peter Singer"
},
{
"date": "2009-03-16",
"videos": [
"http://thecolbertreport.cc.com/videos/8zwa7x/intro---03-16-09",
"http://thecolbertreport.cc.com/videos/yz9sik/stephen-s-angry-mob-will-crush-aig",
"http://thecolbertreport.cc.com/videos/pe3tou/better-know-a-governor---mark-sanford-update",
"http://thecolbertreport.cc.com/videos/ck0fd5/neil-gaiman",
"http://thecolbertreport.cc.com/videos/qxrsxr/stephen-wants-to-hug-you"
],
"guest": "Jonathan Chait, Neil Gaiman"
},
{
"date": "2009-03-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ogmrdd/intro---03-17-09",
"http://thecolbertreport.cc.com/videos/v1zxe6/shout-out---the-colbert-report-overseas",
"http://thecolbertreport.cc.com/videos/bsv6p7/world-of-nahlej---shmeat",
"http://thecolbertreport.cc.com/videos/7byrkj/david-grann",
"http://thecolbertreport.cc.com/videos/zrpt32/persian-gulf-countdown-clock",
"http://thecolbertreport.cc.com/videos/59sfdt/the-new-deal---jonathan-chait"
],
"guest": "David Grann"
},
{
"date": "2009-03-18",
"videos": [
"http://thecolbertreport.cc.com/videos/u70zrc/intro---03-18-09",
"http://thecolbertreport.cc.com/videos/an5849/predator-x-discovery",
"http://thecolbertreport.cc.com/videos/fnlgez/tip-wag---mississippi--talk-shows---syfy",
"http://thecolbertreport.cc.com/videos/5hu17z/juan-cole",
"http://thecolbertreport.cc.com/videos/bokh2r/sam-s-club-time",
"http://thecolbertreport.cc.com/videos/3i8x9a/colbert-aluminum---cigar-nubs--faux-poor---blixseth"
],
"guest": "Juan Cole"
},
{
"date": "2009-03-19",
"videos": [
"http://thecolbertreport.cc.com/videos/ntnm0v/intro---03-19-09",
"http://thecolbertreport.cc.com/videos/tkjk8k/bill-posey-alligator-rumors",
"http://thecolbertreport.cc.com/videos/oi2fxr/when-animals-attack-our-morals---chimps--lizards---spiders",
"http://thecolbertreport.cc.com/videos/m9oys8/john-mccardell",
"http://thecolbertreport.cc.com/videos/f189zq/space-module--colbert---vote-now",
"http://thecolbertreport.cc.com/videos/wa8cs2/the-word---keeping-our-heads"
],
"guest": "John McCardell"
},
{
"date": "2009-03-30",
"videos": [
"http://thecolbertreport.cc.com/videos/hta8xf/intro---03-30-09",
"http://thecolbertreport.cc.com/videos/04agpr/violence-in-mexico",
"http://thecolbertreport.cc.com/videos/ttpqpq/me-time---emily-yoffe-on-narcissistic-personality-disorder",
"http://thecolbertreport.cc.com/videos/y6yflv/space-module--colbert---democracy-in-orbit",
"http://thecolbertreport.cc.com/videos/yz8bqz/derrick-pitts"
],
"guest": "Derrick Pitts"
},
{
"date": "2009-03-31",
"videos": [
"http://thecolbertreport.cc.com/videos/prw3dp/intro---03-31-09",
"http://thecolbertreport.cc.com/videos/ga9h1c/obama-s-epic-dog-quest",
"http://thecolbertreport.cc.com/videos/19bdth/better-know-a-lobby---newspaper-association-of-america",
"http://thecolbertreport.cc.com/videos/fkt6tu/david-plotz",
"http://thecolbertreport.cc.com/videos/ch71k9/sudoku-answers",
"http://thecolbertreport.cc.com/videos/7l6w83/me-time---american-narcissism",
"http://thecolbertreport.cc.com/videos/k0knxh/30-minute-applause"
],
"guest": "David Plotz"
},
{
"date": "2009-04-01",
"videos": [
"http://thecolbertreport.cc.com/videos/du0pk9/intro---04-01-09",
"http://thecolbertreport.cc.com/videos/1o1nya/french-worker-protests",
"http://thecolbertreport.cc.com/videos/5t3340/cheating-death---sperm-sale---colonoscopies",
"http://thecolbertreport.cc.com/videos/wol3qg/dambisa-moyo",
"http://thecolbertreport.cc.com/videos/vof9z5/hide-and-seek",
"http://thecolbertreport.cc.com/videos/jt0f3j/the-10-31-project"
],
"guest": "Dambisa Moyo"
},
{
"date": "2009-04-02",
"videos": [
"http://thecolbertreport.cc.com/videos/scsjxw/intro---04-02-09",
"http://thecolbertreport.cc.com/videos/78s5oz/cheney-s-secret-assassination-squad",
"http://thecolbertreport.cc.com/videos/mkb4ls/merriam-webster-s-word-s-worth",
"http://thecolbertreport.cc.com/videos/4qhn4o/biz-stone",
"http://thecolbertreport.cc.com/videos/5uxqom/let-your-gps-be-your-guide",
"http://thecolbertreport.cc.com/videos/idkq46/the-word---fine-line"
],
"guest": "Biz Stone"
},
{
"date": "2009-04-06",
"videos": [
"http://thecolbertreport.cc.com/videos/d5ju1a/colbert-s-easter-parade",
"http://thecolbertreport.cc.com/videos/v1ybgk/intro---04-06-09",
"http://thecolbertreport.cc.com/videos/f3bajc/body-loss",
"http://thecolbertreport.cc.com/videos/y3ocaq/space-module--colbert---urine-recycling-room",
"http://thecolbertreport.cc.com/videos/2zq8u0/rich-lowry",
"http://thecolbertreport.cc.com/videos/k9vxpy/make-lemonade"
],
"guest": "Tom Brokaw, Rich Lowry"
},
{
"date": "2009-04-07",
"videos": [
"http://thecolbertreport.cc.com/videos/168lgg/intro---04-07-09",
"http://thecolbertreport.cc.com/videos/9kk3jy/queen-noor-s-royal-treatment",
"http://thecolbertreport.cc.com/videos/6uykwu/better-know-a-district---new-york-s-25th---dan-maffei",
"http://thecolbertreport.cc.com/videos/31tszu/queen-noor",
"http://thecolbertreport.cc.com/videos/pqumra/hiccup-free",
"http://thecolbertreport.cc.com/videos/njp3xz/un-american-news---rest-of-the-world",
"http://thecolbertreport.cc.com/videos/u5yf3y/obama-s-european-trip---tom-brokaw"
],
"guest": "Queen Noor"
},
{
"date": "2009-04-08",
"videos": [
"http://thecolbertreport.cc.com/videos/f1gjz4/intro---04-08-09",
"http://thecolbertreport.cc.com/videos/lyeuyj/birkat-hachama---stephen-frees-his-jews",
"http://thecolbertreport.cc.com/videos/10cwvc/alpha-dog-of-the-week---ted-stevens",
"http://thecolbertreport.cc.com/videos/eknw52/phil-bronstein",
"http://thecolbertreport.cc.com/videos/jmb43t/electronic-edition",
"http://thecolbertreport.cc.com/videos/7jw15b/the-word---morally-bankrupt"
],
"guest": "Phil Bronstein"
},
{
"date": "2009-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/ly7fhn/workers--comp-temptation",
"http://thecolbertreport.cc.com/videos/1adwqk/threatdown---robert-gates--dog-seders---obama",
"http://thecolbertreport.cc.com/videos/lywaay/bart-ehrman",
"http://thecolbertreport.cc.com/videos/vd2m1k/stephen-s-severed-head",
"http://thecolbertreport.cc.com/videos/4wgqsm/where-and-when-is-stephen-going-to-the-persian-gulf----bahrain"
],
"guest": "Bart Ehrman"
},
{
"date": "2009-04-14",
"videos": [
"http://thecolbertreport.cc.com/videos/uvnlz3/intro---04-14-09",
"http://thecolbertreport.cc.com/videos/1tgxfo/clarence-thomas--new-job",
"http://thecolbertreport.cc.com/videos/bz4xly/space-module--colbert---sunita-williams",
"http://thecolbertreport.cc.com/videos/gxfl4g/susie-orbach",
"http://thecolbertreport.cc.com/videos/5m2sci/goodnight--helen"
],
"guest": "Sunita L. Williams, Susie Orbach"
},
{
"date": "2009-04-15",
"videos": [
"http://thecolbertreport.cc.com/videos/2t8bkw/intro---04-15-09",
"http://thecolbertreport.cc.com/videos/whfbdu/obama-denies-habeas-corpus",
"http://thecolbertreport.cc.com/videos/xkxq0s/better-know-a-district---illinois--18th---aaron-schock",
"http://thecolbertreport.cc.com/videos/0ca7u5/jim-lehrer",
"http://thecolbertreport.cc.com/videos/g6fu2q/homework-assignment",
"http://thecolbertreport.cc.com/videos/5rzknc/the-word---have-your-cake-and-eat-it--too"
],
"guest": "Jim Lehrer"
},
{
"date": "2009-04-16",
"videos": [
"http://thecolbertreport.cc.com/videos/t8chps/intro---04-16-09",
"http://thecolbertreport.cc.com/videos/abfalc/teabagging-protests",
"http://thecolbertreport.cc.com/videos/npq9t7/indian-elections---kanishk-tharoor",
"http://thecolbertreport.cc.com/videos/btde8y/douglas-kmiec",
"http://thecolbertreport.cc.com/videos/gu6q0n/goodnight-salute",
"http://thecolbertreport.cc.com/videos/a8qba2/tax-atax"
],
"guest": "Kanishk Tharoor, Doug Kmiec"
},
{
"date": "2009-04-20",
"videos": [
"http://thecolbertreport.cc.com/videos/b06wzj/intro---04-20-09",
"http://thecolbertreport.cc.com/videos/3g58oe/castro-death-wish-list",
"http://thecolbertreport.cc.com/videos/pzg5id/maersk-alabama---ken-quinn",
"http://thecolbertreport.cc.com/videos/b1hfbd/tip-wag---texas-secession---maca",
"http://thecolbertreport.cc.com/videos/qi09sh/joe-arpaio"
],
"guest": "Ken Quinn, Sheriff Joe Arpaio"
},
{
"date": "2009-04-21",
"videos": [
"http://thecolbertreport.cc.com/videos/fll3xv/intro---04-21-09",
"http://thecolbertreport.cc.com/videos/mnalwu/george-will-s-demon-denim",
"http://thecolbertreport.cc.com/videos/hezs49/who-s-riding-my-coattails-now----blown-away-by-the-usa",
"http://thecolbertreport.cc.com/videos/7lqvgy/mike-krzyzewski",
"http://thecolbertreport.cc.com/videos/4dj3xs/special-dvd-commentary",
"http://thecolbertreport.cc.com/videos/g9ilpe/anger-s-aweigh",
"http://thecolbertreport.cc.com/videos/h6pabb/stephen-s-only-regrets"
],
"guest": "Coach Mike Kryzewski"
},
{
"date": "2009-04-22",
"videos": [
"http://thecolbertreport.cc.com/videos/licvuz/intro---04-22-09",
"http://thecolbertreport.cc.com/videos/g6q0sp/-the-price-is-right--goes-green",
"http://thecolbertreport.cc.com/videos/7ax5b6/where-and-when-is-stephen-going-to-the-persian-gulf----qatar",
"http://thecolbertreport.cc.com/videos/ui31iq/ira-glass",
"http://thecolbertreport.cc.com/videos/77b5v5/never-go-to-bed-angry",
"http://thecolbertreport.cc.com/videos/zbqudz/the-word---stressed-position"
],
"guest": "Ira Glass"
},
{
"date": "2009-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/gj1jdr/intro---04-23-09",
"http://thecolbertreport.cc.com/videos/16z7m7/america-does-not-swear-on-camera",
"http://thecolbertreport.cc.com/videos/dbshcz/illegitimate-grandson-of-an-alligator",
"http://thecolbertreport.cc.com/videos/2tn51j/elizabeth-bintliff",
"http://thecolbertreport.cc.com/videos/ylolny/goodnight--daisy",
"http://thecolbertreport.cc.com/videos/g1doyw/summit-of-all-fears"
],
"guest": "Elizabeth Bintliff"
},
{
"date": "2009-04-27",
"videos": [
"http://thecolbertreport.cc.com/videos/ak2bbq/intro---04-27-09",
"http://thecolbertreport.cc.com/videos/u3yqqg/days-of-swine-and-doses",
"http://thecolbertreport.cc.com/videos/ioe7hh/craziest-f--king-thing-i-ve-ever-heard---fir-tree-lung",
"http://thecolbertreport.cc.com/videos/6ywn6l/a-rare-correction---stephen-eats-an-ewok",
"http://thecolbertreport.cc.com/videos/jlx2r1/the-decemberists"
],
"guest": "The Decemberists"
},
{
"date": "2009-04-28",
"videos": [
"http://thecolbertreport.cc.com/videos/5phyy1/intro---04-28-09",
"http://thecolbertreport.cc.com/videos/pwdiki/arlen-specter-contracts-donkey-flu",
"http://thecolbertreport.cc.com/videos/14mfow/foreign-reporting---richard-engel",
"http://thecolbertreport.cc.com/videos/u40xb8/daniel-gross",
"http://thecolbertreport.cc.com/videos/l8q5cp/shout-out---kids-edition"
],
"guest": "Richard Engel, Daniel Gross"
},
{
"date": "2009-04-29",
"videos": [
"http://thecolbertreport.cc.com/videos/we8zzj/intro---04-29-09",
"http://thecolbertreport.cc.com/videos/0gktuh/ahmadinejad-steals-obama-s-slogan",
"http://thecolbertreport.cc.com/videos/ou4xko/enemy-swine--a-pigcalypse-now",
"http://thecolbertreport.cc.com/videos/i5hw2i/david-kessler",
"http://thecolbertreport.cc.com/videos/seesef/feet-teeth",
"http://thecolbertreport.cc.com/videos/5kllsr/where-and-when-is-stephen-going-to-the-persian-gulf----correspondents",
"http://thecolbertreport.cc.com/videos/ewzt0z/no-animals-were-harmed"
],
"guest": "David Kessler"
},
{
"date": "2009-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/4ncl78/intro---04-30-09",
"http://thecolbertreport.cc.com/videos/hr47fj/president-obama---the-first-14-mondays",
"http://thecolbertreport.cc.com/videos/zhiu9l/ethan-nadelmann",
"http://thecolbertreport.cc.com/videos/1e83az/the-after-show",
"http://thecolbertreport.cc.com/videos/dnh80p/i-s-on-edjukashun---textbooks--americorps---strip-search"
],
"guest": "Jonathan Alter, Ethan Nadelman"
},
{
"date": "2009-05-04",
"videos": [
"http://thecolbertreport.cc.com/videos/ithaxo/code-word---empathy",
"http://thecolbertreport.cc.com/videos/e4d421/the-prescott-group-bailout",
"http://thecolbertreport.cc.com/videos/57pcxy/j-j--abrams",
"http://thecolbertreport.cc.com/videos/3q06z6/sign-off---colbert-nation-home"
],
"guest": "J.J. Abrams"
},
{
"date": "2009-05-05",
"videos": [
"http://thecolbertreport.cc.com/videos/1yb1cp/intro---05-05-09",
"http://thecolbertreport.cc.com/videos/daeu0o/cinco-de-mayo-precautions",
"http://thecolbertreport.cc.com/videos/73g8ui/the-word---captain-kangaroo-court",
"http://thecolbertreport.cc.com/videos/sye42t/paul-rieckhoff",
"http://thecolbertreport.cc.com/videos/xul98m/sign-off---iteam",
"http://thecolbertreport.cc.com/videos/0a05it/movies-that-are-destroying-america---summer-movie-edition"
],
"guest": "Cliff Sloan, Paul Rieckhoff"
},
{
"date": "2009-05-06",
"videos": [
"http://thecolbertreport.cc.com/videos/4aqttz/intro---05-06-09",
"http://thecolbertreport.cc.com/videos/k97z53/colbert-branson-duel",
"http://thecolbertreport.cc.com/videos/4h8qcx/where-and-when-is-stephen-going-to-the-persian-gulf----saudi-arabia",
"http://thecolbertreport.cc.com/videos/q7lfqg/laurie-garrett",
"http://thecolbertreport.cc.com/videos/2y8ihh/hug-your-television",
"http://thecolbertreport.cc.com/videos/mekuw6/picking-a-new-supreme-court-justice---cliff-sloan"
],
"guest": "Laurie Garrett"
},
{
"date": "2009-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/nqr22g/intro---05-07-09",
"http://thecolbertreport.cc.com/videos/40ivqy/sean-hannity-s-liberty-tree",
"http://thecolbertreport.cc.com/videos/ednx54/smokin--pole---the-fight-for-arctic-riches--inuit-nation",
"http://thecolbertreport.cc.com/videos/as8qiu/mitchell-joachim",
"http://thecolbertreport.cc.com/videos/4bas9p/spay-and-neuter-your-pets",
"http://thecolbertreport.cc.com/videos/686y3f/tip-wag---forced-smoking---grizzly-best-man"
],
"guest": "Mitchell Joachim"
},
{
"date": "2009-05-11",
"videos": [
"http://thecolbertreport.cc.com/videos/imn21t/intro---05-11-09",
"http://thecolbertreport.cc.com/videos/cctfpl/stephen-s-fancy-feast",
"http://thecolbertreport.cc.com/videos/bwc8x1/credit-card-industry-regulation---tamara-draut",
"http://thecolbertreport.cc.com/videos/cguksk/alpha-dog-of-the-week---erik-slye",
"http://thecolbertreport.cc.com/videos/3ttm11/jeff-daniels"
],
"guest": "Tamara Draut"
},
{
"date": "2009-05-12",
"videos": [
"http://thecolbertreport.cc.com/videos/wr98c1/intro---05-12-09",
"http://thecolbertreport.cc.com/videos/zy5zj6/howard-s-end",
"http://thecolbertreport.cc.com/videos/n89zl7/cuba-us-trade-relations---julia-sweig",
"http://thecolbertreport.cc.com/videos/hs7gtm/stephen-s-sound-advice---how-to-re-brand-the-gop",
"http://thecolbertreport.cc.com/videos/a0bgn9/ron-howard",
"http://thecolbertreport.cc.com/videos/6fx090/credit-check",
"http://thecolbertreport.cc.com/videos/lzvish/sign-off---unicorn-dealership"
],
"guest": "Ron Howard"
},
{
"date": "2009-05-13",
"videos": [
"http://thecolbertreport.cc.com/videos/yvcq61/intro---05-13-09",
"http://thecolbertreport.cc.com/videos/g3716f/robert-gibbs-hates-ringing-cell-phones",
"http://thecolbertreport.cc.com/videos/hp9jyy/colbert-platinum----1-000-dishes",
"http://thecolbertreport.cc.com/videos/eon7i2/michael-pollan",
"http://thecolbertreport.cc.com/videos/0it13s/stephen-colbert-is-awesome",
"http://thecolbertreport.cc.com/videos/5715dt/our-plan-in-havana",
"http://thecolbertreport.cc.com/videos/g7s21x/you-are-a-dummy"
],
"guest": "Michael Pollan"
},
{
"date": "2009-05-14",
"videos": [
"http://thecolbertreport.cc.com/videos/ph1m2t/intro---05-14-09",
"http://thecolbertreport.cc.com/videos/priitm/caveman-porn-stash",
"http://thecolbertreport.cc.com/videos/phfour/donorschoose-org-donations",
"http://thecolbertreport.cc.com/videos/m82ydm/yusuf",
"http://thecolbertreport.cc.com/videos/vyychn/stephen-s-coke-party-protest"
],
"guest": "Yusuf"
},
{
"date": "2009-05-18",
"videos": [
"http://thecolbertreport.cc.com/videos/hopfi8/intro---05-18-09",
"http://thecolbertreport.cc.com/videos/gc17yz/welcome-to-the-real-world--obama",
"http://thecolbertreport.cc.com/videos/oh4xki/threatdown---charity--casual-jesus---robot-teachers",
"http://thecolbertreport.cc.com/videos/phv8h6/meghan-mccain",
"http://thecolbertreport.cc.com/videos/h4dfgj/sign-off---internal-clock"
],
"guest": "Meghan McCain"
},
{
"date": "2009-05-19",
"videos": [
"http://thecolbertreport.cc.com/videos/k69zx1/intro---05-19-09",
"http://thecolbertreport.cc.com/videos/um8x6x/rumsfeld-s-cover-letter-bible-quotes",
"http://thecolbertreport.cc.com/videos/9w54d6/difference-makers---stephen-keith",
"http://thecolbertreport.cc.com/videos/tn9xuo/walter-kirn",
"http://thecolbertreport.cc.com/videos/l2dw5z/stephen-s-show",
"http://thecolbertreport.cc.com/videos/y5v5ns/the-word---tough-cell"
],
"guest": "Walter Kirn"
},
{
"date": "2009-05-20",
"videos": [
"http://thecolbertreport.cc.com/videos/zq89uw/intro---05-20-09",
"http://thecolbertreport.cc.com/videos/b9eth2/extra--extra--bleed-all-about-it-",
"http://thecolbertreport.cc.com/videos/e5f1sd/donorschoose-org-classroom-projects",
"http://thecolbertreport.cc.com/videos/u2rpts/seth-shostak",
"http://thecolbertreport.cc.com/videos/m63aac/goodnight",
"http://thecolbertreport.cc.com/videos/i401ml/the-word---i-know-you-are-but-what-am-i-"
],
"guest": "Seth Shostak"
},
{
"date": "2009-05-21",
"videos": [
"http://thecolbertreport.cc.com/videos/sll291/intro---05-21-09",
"http://thecolbertreport.cc.com/videos/hck7te/47-million-year-old-fossil",
"http://thecolbertreport.cc.com/videos/4kzrbn/formidable-opponent---pragmatism-or-idealism",
"http://thecolbertreport.cc.com/videos/ait1y2/green-day",
"http://thecolbertreport.cc.com/videos/iuaf6k/she-said--cia-said---bob-graham"
],
"guest": "Green Day"
},
{
"date": "2009-06-01",
"videos": [
"http://thecolbertreport.cc.com/videos/kbuqbk/intro---06-01-09",
"http://thecolbertreport.cc.com/videos/ckumab/guns-in-national-parks",
"http://thecolbertreport.cc.com/videos/ezeifx/sonia-sotomayor-s-nomination---jeffrey-toobin",
"http://thecolbertreport.cc.com/videos/2p70rc/where-and-when-is-stephen-going-to-the-persian-gulf----united-arab-emirates",
"http://thecolbertreport.cc.com/videos/4suoo4/byron-dorgan"
],
"guest": "Jeffrey Toobin, Sen. Byron Dorgan"
},
{
"date": "2009-06-02",
"videos": [
"http://thecolbertreport.cc.com/videos/poyt56/intro---06-02-09",
"http://thecolbertreport.cc.com/videos/xahwo7/saudi-arabia-press-restrictions",
"http://thecolbertreport.cc.com/videos/m4ur7f/jim-moran-vs--viagra",
"http://thecolbertreport.cc.com/videos/bpwglm/katty-kay",
"http://thecolbertreport.cc.com/videos/860dm5/best-audience-of-the-night",
"http://thecolbertreport.cc.com/videos/ch9xnn/supreme-court-press",
"http://thecolbertreport.cc.com/videos/t28i3d/dance-for-stephen"
],
"guest": "Katty Kay"
},
{
"date": "2009-06-03",
"videos": [
"http://thecolbertreport.cc.com/videos/lte593/intro---06-03-09",
"http://thecolbertreport.cc.com/videos/1azzsn/we-have-a-death-star-",
"http://thecolbertreport.cc.com/videos/in49m6/tip-wag---4th-of-july--craig-t--nelson---gm",
"http://thecolbertreport.cc.com/videos/ughago/eric-schlosser",
"http://thecolbertreport.cc.com/videos/fw7nrm/sign-off----the-hollow-men-",
"http://thecolbertreport.cc.com/videos/rfeepg/cheating-death---cheerios--soda-paralysis---oprah-s-crazy-talk"
],
"guest": "Eric Schlosser"
},
{
"date": "2009-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/rpkl6b/intro---06-04-09",
"http://thecolbertreport.cc.com/videos/oqx005/wikipedia-bans-scientologists",
"http://thecolbertreport.cc.com/videos/anuhnx/craziest-f--king-thing-i-ve-ever-heard---external-lungs",
"http://thecolbertreport.cc.com/videos/obi6e0/dag-soderberg",
"http://thecolbertreport.cc.com/videos/u226dl/the-word---i-do--you-don-t"
],
"guest": "Dag Soderberg, David Byrne"
},
{
"date": "2009-06-08",
"videos": [
"http://thecolbertreport.cc.com/videos/gbu94e/operation-iraqi-stephen---mysterious-trip",
"http://thecolbertreport.cc.com/videos/wy7a2l/operation-iraqi-stephen---john-mccain",
"http://thecolbertreport.cc.com/videos/n4g2vg/stephen-strong---army-of-me---basic-training-pt--1",
"http://thecolbertreport.cc.com/videos/c4z5y3/obama-orders-stephen-s-haircut---ray-odierno",
"http://thecolbertreport.cc.com/videos/m6uaot/sign-off---new-haircut"
],
"guest": "Stephen broadcasts from Iraq, Gen. Ray Odierno"
},
{
"date": "2009-06-09",
"videos": [
"http://thecolbertreport.cc.com/videos/xuowp6/operation-iraqi-stephen---s-h-",
"http://thecolbertreport.cc.com/videos/nlvzz2/operation-iraqi-stephen---bill-clinton---amp-energy",
"http://thecolbertreport.cc.com/videos/8querl/formidable-opponent---don-t-ask--don-t-tell",
"http://thecolbertreport.cc.com/videos/xjmvnq/tareq-salha---robin-balcom",
"http://thecolbertreport.cc.com/videos/bdo17v/sign-off---hi--stephen-s-mom",
"http://thecolbertreport.cc.com/videos/clgan9/the-word---why-are-you-here-"
],
"guest": "Stephen broadcasts from Iraq (1)"
},
{
"date": "2009-06-10",
"videos": [
"http://thecolbertreport.cc.com/videos/3avxyi/operation-iraqi-stephen---stephen-s-spider-hole",
"http://thecolbertreport.cc.com/videos/cyrxgp/admiral-crunch",
"http://thecolbertreport.cc.com/videos/xfobul/lt--gen--charles-h--jacoby-jr-",
"http://thecolbertreport.cc.com/videos/jk0yi6/sign-off---head-rub",
"http://thecolbertreport.cc.com/videos/nlng6v/operation-iraqi-stephen---tom-hanks-care-package",
"http://thecolbertreport.cc.com/videos/xbtx2g/stephen-strong---army-of-me---basic-training-pt--2"
],
"guest": "Stephen broadcasts from Iraq (2)"
},
{
"date": "2009-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/x1yyko/stephen-gets-his-hair-cut",
"http://thecolbertreport.cc.com/videos/ithwrz/operation-iraqi-stephen---golf-club---george-w--bush-s-greeting",
"http://thecolbertreport.cc.com/videos/9p7eto/operation-iraqi-stephen---fallback-position---air-force-thunderbirds",
"http://thecolbertreport.cc.com/videos/hqcfyh/operation-iraqi-stephen---frank-a--grippe",
"http://thecolbertreport.cc.com/videos/aa7w7z/operation-iraqi-stephen---sign-off---honey--i-m-coming-home",
"http://thecolbertreport.cc.com/videos/74tfzb/better-know-a-cradle-of-civilization---barham-saleh"
],
"guest": "Stephen broadcasts from Iraq (3)"
},
{
"date": "2009-06-15",
"videos": [
"http://thecolbertreport.cc.com/videos/7zoy4v/intro---06-15-09",
"http://thecolbertreport.cc.com/videos/ycfoc7/warm-memories-of-iraq",
"http://thecolbertreport.cc.com/videos/cgcvlh/car-shout---gm---chrysler",
"http://thecolbertreport.cc.com/videos/px4jql/austan-goolsbee",
"http://thecolbertreport.cc.com/videos/22hank/sign-off---driving-for-the-last-10-minutes"
],
"guest": "Austan Goolsbee"
},
{
"date": "2009-06-16",
"videos": [
"http://thecolbertreport.cc.com/videos/6kwzzi/intro---06-16-09",
"http://thecolbertreport.cc.com/videos/e51xox/croatia-s-biggest-jeans-world-record",
"http://thecolbertreport.cc.com/videos/86p43v/teh-runoff---karim-sadjadpour",
"http://thecolbertreport.cc.com/videos/guirtz/balls-for-kidz---carnivals-encore",
"http://thecolbertreport.cc.com/videos/8g3agb/jim-rogers",
"http://thecolbertreport.cc.com/videos/1bur1p/stephen-s-sound-advice---how-to-be-a-totalitarian-nutjob"
],
"guest": "Karim Sadjadpour, Jim Rogers"
},
{
"date": "2009-06-17",
"videos": [
"http://thecolbertreport.cc.com/videos/vz7xis/intro---06-17-09",
"http://thecolbertreport.cc.com/videos/y8n8bj/stephen-s-positive-obama-coverage",
"http://thecolbertreport.cc.com/videos/v8qfms/the-word---bohemian-grove",
"http://thecolbertreport.cc.com/videos/fgc5qj/alpha-dog-of-the-week---silvio-berlusconi",
"http://thecolbertreport.cc.com/videos/6wqhd0/joshua-micah-marshall",
"http://thecolbertreport.cc.com/videos/1jvq35/teh-runoff",
"http://thecolbertreport.cc.com/videos/31otgs/goodnight"
],
"guest": "Joshua Micah Marshall"
},
{
"date": "2009-06-18",
"videos": [
"http://thecolbertreport.cc.com/videos/ewcaj5/intro---06-18-09",
"http://thecolbertreport.cc.com/videos/0qwej8/murder-in-the-white-house---jeff-goldblum",
"http://thecolbertreport.cc.com/videos/nmpsnk/bears---balls---tobacco--project-natal---graveyard-bids",
"http://thecolbertreport.cc.com/videos/e8rev9/paul-muldoon",
"http://thecolbertreport.cc.com/videos/dvld1q/sign-off---law---order-preview",
"http://thecolbertreport.cc.com/videos/e8h8e5/murder-in-the-white-house---fly-widow-interview",
"http://thecolbertreport.cc.com/videos/e72lp2/sign-off---aloha--idaho"
],
"guest": "Paul Muldoon"
},
{
"date": "2009-06-22",
"videos": [
"http://thecolbertreport.cc.com/videos/je4uya/intro---06-22-09",
"http://thecolbertreport.cc.com/videos/91fk6r/zicam-recall",
"http://thecolbertreport.cc.com/videos/h9527k/the-enemy-within---cane-fu",
"http://thecolbertreport.cc.com/videos/he9dc0/simon-schama",
"http://thecolbertreport.cc.com/videos/k4vrsb/sign-off---stephen-suffers--too"
],
"guest": "Simon Schama"
},
{
"date": "2009-06-23",
"videos": [
"http://thecolbertreport.cc.com/videos/wovkbp/barack-obama-s-response-to-iran",
"http://thecolbertreport.cc.com/videos/yaknra/america-s-health-plan-demic",
"http://thecolbertreport.cc.com/videos/xc1sqp/governor-alert---the-search-for-mark-sanford",
"http://thecolbertreport.cc.com/videos/fmv6yq/david-kilcullen",
"http://thecolbertreport.cc.com/videos/i99yp3/the-smell-of-freedom---jeff-goldblum"
],
"guest": "Howard Dean, David Kilcullen"
},
{
"date": "2009-06-24",
"videos": [
"http://thecolbertreport.cc.com/videos/rhiizu/intro---06-24-09",
"http://thecolbertreport.cc.com/videos/5xejpe/mark-sanford-does-something-interesting",
"http://thecolbertreport.cc.com/videos/neths8/matthew-crawford",
"http://thecolbertreport.cc.com/videos/i50dum/sign-off---random-gps-coordinate-lottery",
"http://thecolbertreport.cc.com/videos/jkobj5/america-s-health-plan-demic---howard-dean",
"http://thecolbertreport.cc.com/videos/411cqv/sign-off---goodnight"
],
"guest": "Matthew Crawford"
},
{
"date": "2009-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/j1tx3a/intro---06-25-09",
"http://thecolbertreport.cc.com/videos/g71yl5/gay-demon-on-the-loose",
"http://thecolbertreport.cc.com/videos/5gki1y/commonsense-health-care-reform-infomercial",
"http://thecolbertreport.cc.com/videos/ohjhjq/jim-fouratt",
"http://thecolbertreport.cc.com/videos/l3h2eg/sign-off---one-breath",
"http://thecolbertreport.cc.com/videos/nw0bxn/sport-report---soccer--tennis---brett-favre"
],
"guest": "Jim Fouratt"
},
{
"date": "2009-06-29",
"videos": [
"http://thecolbertreport.cc.com/videos/ehxpq9/jeff-goldblum-will-be-missed",
"http://thecolbertreport.cc.com/videos/di8fs8/michael-jackson-s-media-attention",
"http://thecolbertreport.cc.com/videos/8ouc6a/the-word---noncensus",
"http://thecolbertreport.cc.com/videos/4zr9io/neil-degrasse-tyson"
],
"guest": "Neil DeGrasse Tyson"
},
{
"date": "2009-06-30",
"videos": [
"http://thecolbertreport.cc.com/videos/klvpw6/intro---06-30-09",
"http://thecolbertreport.cc.com/videos/hy9hl7/al-franken-finally-declared-senator",
"http://thecolbertreport.cc.com/videos/hzd5cg/4th-of-july-under-attack",
"http://thecolbertreport.cc.com/videos/jzev8y/is-it-time-to-care-about-soccer-",
"http://thecolbertreport.cc.com/videos/knfvfz/is-it-time-to-care-about-soccer----alexi-lalas",
"http://thecolbertreport.cc.com/videos/8x5ezx/kevin-mattson",
"http://thecolbertreport.cc.com/videos/ehxpq9/jeff-goldblum-will-be-missed"
],
"guest": "Alexi Lalas, Kevin Mattson"
},
{
"date": "2009-07-01",
"videos": [
"http://thecolbertreport.cc.com/videos/umpd2x/intro---07-01-09",
"http://thecolbertreport.cc.com/videos/opbzv4/the-second-coming-of-ronald-reagan",
"http://thecolbertreport.cc.com/videos/6wo5t4/the-clinton-curse",
"http://thecolbertreport.cc.com/videos/heqh3g/judge--jury---executioner---firefighters--gold-waste---strip-search",
"http://thecolbertreport.cc.com/videos/r9zau8/nicholas-kristof",
"http://thecolbertreport.cc.com/videos/sldptb/sign-off---farewell--david-souter"
],
"guest": "Nicholas Kristof"
},
{
"date": "2009-07-02",
"videos": [
"http://thecolbertreport.cc.com/videos/f4016f/intro---07-02-09",
"http://thecolbertreport.cc.com/videos/mc9la4/cnn-finds-bubbles-the-chimp",
"http://thecolbertreport.cc.com/videos/n31uuy/re-report---lost-treasures-of-babylon",
"http://thecolbertreport.cc.com/videos/v5trw8/ed-viesturs",
"http://thecolbertreport.cc.com/videos/zc3q4z/sign-off---see-you-at-the-bar",
"http://thecolbertreport.cc.com/videos/sedae1/tip-wag---cynthia-davis---fox-news",
"http://thecolbertreport.cc.com/videos/wyj1b1/sign-off---get-your-illegal-fireworks"
],
"guest": "Ed Viesturs"
},
{
"date": "2009-07-13",
"videos": [
"http://thecolbertreport.cc.com/videos/4zm73s/intro---07-13-09",
"http://thecolbertreport.cc.com/videos/m8x1rr/va-backlog---paul-rieckhoff",
"http://thecolbertreport.cc.com/videos/qvijip/paul-krugman",
"http://thecolbertreport.cc.com/videos/2wjc98/goodnight"
],
"guest": "Paul Rieckhoff, Paul Krugman"
},
{
"date": "2009-07-14",
"videos": [
"http://thecolbertreport.cc.com/videos/w7y41r/intro---07-14-09",
"http://thecolbertreport.cc.com/videos/17wwbv/raise-high-the-rage-beams",
"http://thecolbertreport.cc.com/videos/o7y2te/leymah-gbowee",
"http://thecolbertreport.cc.com/videos/9nhp7n/sign-off---the-pitcher-in-the-oat",
"http://thecolbertreport.cc.com/videos/55a0ws/remembering-remembering-michael-jackson",
"http://thecolbertreport.cc.com/videos/bfjyjy/stephen-s-sound-advice---how-to-bork-a-nominee"
],
"guest": "Leymah Gbowee"
},
{
"date": "2009-07-15",
"videos": [
"http://thecolbertreport.cc.com/videos/38zw9a/intro---07-15-09",
"http://thecolbertreport.cc.com/videos/7avxb3/stephen-wants-to-be-the-worst-person-in-the-world",
"http://thecolbertreport.cc.com/videos/yhsbjx/difference-makers---doug-jackson",
"http://thecolbertreport.cc.com/videos/jkayfy/douglas-rushkoff",
"http://thecolbertreport.cc.com/videos/1ikoxj/sign-off---no-man-is-a-failure",
"http://thecolbertreport.cc.com/videos/9vyt62/senator-wences-questions-sonia-sotomayor",
"http://thecolbertreport.cc.com/videos/jb4xw4/the-word---guns--credit--and-corn"
],
"guest": "Douglas Rushkoff"
},
{
"date": "2009-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/n291gl/intro---07-16-09",
"http://thecolbertreport.cc.com/videos/7pmbq4/the-memy-awards",
"http://thecolbertreport.cc.com/videos/3ahlmo/cheating-death---diabetes-dogs--chocolate-milk---swearing-in-pain",
"http://thecolbertreport.cc.com/videos/7hp904/edmund-andrews",
"http://thecolbertreport.cc.com/videos/1wc2dn/sign-off---stephen-wins",
"http://thecolbertreport.cc.com/videos/cqz0pq/tip-wag---assassination-squads--biblical-history---gay-penguins"
],
"guest": "Edmund Andrews"
},
{
"date": "2009-07-20",
"videos": [
"http://thecolbertreport.cc.com/videos/z5a6bx/walter-cronkite-remembered",
"http://thecolbertreport.cc.com/videos/0a6zq6/reverse-racism",
"http://thecolbertreport.cc.com/videos/wqv2b7/sport-report---jessica-simpson--olympic-brothel---bud-light",
"http://thecolbertreport.cc.com/videos/bowvin/bob-park",
"http://thecolbertreport.cc.com/videos/x2ppm1/sign-off---goodnight"
],
"guest": "Geoffrey Canada, Bob Park"
},
{
"date": "2009-07-21",
"videos": [
"http://thecolbertreport.cc.com/videos/78h601/intro---07-21-09",
"http://thecolbertreport.cc.com/videos/1egi6s/40th-anniversary-of-the-moon-landing",
"http://thecolbertreport.cc.com/videos/puckfx/better-know-a-lobby---acorn",
"http://thecolbertreport.cc.com/videos/gwtxoo/aaron-carroll",
"http://thecolbertreport.cc.com/videos/o84f1o/sign-off---stephen-s-chip",
"http://thecolbertreport.cc.com/videos/hmh0yy/reverse-racism---geoffrey-canada"
],
"guest": "Dr. Aaron Carroll"
},
{
"date": "2009-07-22",
"videos": [
"http://thecolbertreport.cc.com/videos/j9y28p/intro---07-22-09",
"http://thecolbertreport.cc.com/videos/43yfk6/the-longest-solar-eclipse-of-the-century",
"http://thecolbertreport.cc.com/videos/8st941/sniper-trifle---matthew-waxman",
"http://thecolbertreport.cc.com/videos/gda2z2/pope-wrist-watch",
"http://thecolbertreport.cc.com/videos/hlljrv/chris-anderson",
"http://thecolbertreport.cc.com/videos/tzs7et/the-word---a-perfect-world"
],
"guest": "Matthew Waxman, Chris Anderson"
},
{
"date": "2009-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/abmeny/health-care-reform-is-the-matrix",
"http://thecolbertreport.cc.com/videos/al2ar6/health-care-hell-scare---die-agnosis--mur-dr",
"http://thecolbertreport.cc.com/videos/lb7ei8/sign-off---tivo",
"http://thecolbertreport.cc.com/videos/l3lw8t/sniper-trifle",
"http://thecolbertreport.cc.com/videos/1y6s8z/sign-off---goodnight"
],
"guest": "Zev Chafets"
},
{
"date": "2009-07-27",
"videos": [
"http://thecolbertreport.cc.com/videos/g64g5i/intro---07-27-09",
"http://thecolbertreport.cc.com/videos/bx3wyo/sarah-palin-will-be-missed",
"http://thecolbertreport.cc.com/videos/5mjokj/nailed--em---library-crime",
"http://thecolbertreport.cc.com/videos/c4hocz/movits-"
],
"guest": "Movits"
},
{
"date": "2009-07-28",
"videos": [
"http://thecolbertreport.cc.com/videos/nwsa83/president-obama-s-teachable-moment",
"http://thecolbertreport.cc.com/videos/574gc1/womb-raiders---the-fight-for-the-truth-behind-obama-s-birth",
"http://thecolbertreport.cc.com/videos/wg36jw/arianna-huffington",
"http://thecolbertreport.cc.com/videos/aayh4c/sign-off---devil-s-tricks",
"http://thecolbertreport.cc.com/videos/g64g5i/intro---07-27-09"
],
"guest": "Arianna Huffington"
},
{
"date": "2009-07-29",
"videos": [
"http://thecolbertreport.cc.com/videos/n0hvmj/intro---07-29-09",
"http://thecolbertreport.cc.com/videos/em0er2/frank-the-roommate",
"http://thecolbertreport.cc.com/videos/hw67wd/sport-report---tour-de-france---robotic-baseball",
"http://thecolbertreport.cc.com/videos/2dvjk4/kevin-baker",
"http://thecolbertreport.cc.com/videos/h00qyf/sign-off---watch-without-blinking",
"http://thecolbertreport.cc.com/videos/zafhtu/womb-raiders---orly-taitz"
],
"guest": "Kevin Baker"
},
{
"date": "2009-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/jdw6pa/intro---07-30-09",
"http://thecolbertreport.cc.com/videos/uq6k19/white-house-beer-summit",
"http://thecolbertreport.cc.com/videos/fmie7p/tip-wag---man-words---movits-",
"http://thecolbertreport.cc.com/videos/g75n20/kathryn-bigelow",
"http://thecolbertreport.cc.com/videos/2mqpw1/sign-off---taco-bell-spokesdog",
"http://thecolbertreport.cc.com/videos/10c870/the-word---he-who-smelt-it--dealt-it"
],
"guest": "Kathryn Bigelow"
},
{
"date": "2009-08-03",
"videos": [
"http://thecolbertreport.cc.com/videos/6tkw9s/intro---08-03-09",
"http://thecolbertreport.cc.com/videos/g2s68c/dominic-philip-s-book-habit",
"http://thecolbertreport.cc.com/videos/kc14p7/nailed--em---war-on-birth-control",
"http://thecolbertreport.cc.com/videos/yre45i/tony-zinni",
"http://thecolbertreport.cc.com/videos/vv0gs6/sign-off---goodnight"
],
"guest": "Gen. Tony Zinni"
},
{
"date": "2009-08-04",
"videos": [
"http://thecolbertreport.cc.com/videos/2qha08/merry-barackmas",
"http://thecolbertreport.cc.com/videos/wyon84/the-word---hippie-replacement",
"http://thecolbertreport.cc.com/videos/m1d4yt/kurt-andersen",
"http://thecolbertreport.cc.com/videos/e8glog/sign-off---love-makes-the-world-go-round",
"http://thecolbertreport.cc.com/videos/lqp674/bears---balls---how-to-pay-for-health-care"
],
"guest": "Kurt Andersen"
},
{
"date": "2009-08-05",
"videos": [
"http://thecolbertreport.cc.com/videos/dozbxd/bill-clinton-s-personal-appearance",
"http://thecolbertreport.cc.com/videos/pedumk/2010-midterms---joe-sestak",
"http://thecolbertreport.cc.com/videos/8s2cpt/kris-kobach",
"http://thecolbertreport.cc.com/videos/5f7tro/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/7wxgsg/colbert-bump-cocktail---david-wondrich"
],
"guest": "Kris Kobach"
},
{
"date": "2009-08-06",
"videos": [
"http://thecolbertreport.cc.com/videos/vesroc/intro---08-06-09",
"http://thecolbertreport.cc.com/videos/7qrkub/back-to-school-with-jeremih",
"http://thecolbertreport.cc.com/videos/04qijm/movies-that-are-destroying-america---summer",
"http://thecolbertreport.cc.com/videos/zar0yt/meryl-streep",
"http://thecolbertreport.cc.com/videos/diktol/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/updeyd/human-week"
],
"guest": "Meryl Streep"
},
{
"date": "2009-08-10",
"videos": [
"http://thecolbertreport.cc.com/videos/gaywhl/intro---08-10-09",
"http://thecolbertreport.cc.com/videos/0aiuqk/death-panels",
"http://thecolbertreport.cc.com/videos/1d8uxl/better-know-a-district---maine-s-1st---chellie-pingree",
"http://thecolbertreport.cc.com/videos/klodac/barbara-boxer",
"http://thecolbertreport.cc.com/videos/9r0u01/sign-off---encore"
],
"guest": "Sen. Barbara Boxer"
},
{
"date": "2009-08-11",
"videos": [
"http://thecolbertreport.cc.com/videos/1qhrzu/intro---08-11-09",
"http://thecolbertreport.cc.com/videos/tq0ixs/stephen-s-driving-tips-via-twitter-service",
"http://thecolbertreport.cc.com/videos/kc7xgf/alpha-dog-of-the-week---betty-lichtenstein",
"http://thecolbertreport.cc.com/videos/0ivmu5/jonathan-cohn",
"http://thecolbertreport.cc.com/videos/9pu9xl/sign-off---prevent-forest-fires",
"http://thecolbertreport.cc.com/videos/dra60l/cold-war-update---cuba---topless-putin"
],
"guest": "Jonathan Cohn"
},
{
"date": "2009-08-12",
"videos": [
"http://thecolbertreport.cc.com/videos/9g2evg/intro---08-12-09",
"http://thecolbertreport.cc.com/videos/cypmfk/americans-sacrifice-their-ipods",
"http://thecolbertreport.cc.com/videos/5esjcx/formidable-opponent---health-care---burger-king",
"http://thecolbertreport.cc.com/videos/53n2qf/mark-johnson",
"http://thecolbertreport.cc.com/videos/j153gh/yes-we-afghan---james-carville"
],
"guest": "Mark Johnson"
},
{
"date": "2009-08-13",
"videos": [
"http://thecolbertreport.cc.com/videos/3rk7mk/intro---08-13-09",
"http://thecolbertreport.cc.com/videos/d9wypw/sheila-jackson-lee-takes-a-phone-call",
"http://thecolbertreport.cc.com/videos/1fblyv/cheating-death---blue-m-ms--vitamin-d---hormones",
"http://thecolbertreport.cc.com/videos/pfw8xc/mark-devlin",
"http://thecolbertreport.cc.com/videos/xagarl/sign-off---stephen-s-online-information",
"http://thecolbertreport.cc.com/videos/8bsp4q/who-s-not-honoring-me-now----obama--nra---teen-choice-awards"
],
"guest": "Mark Devlin"
},
{
"date": "2009-08-17",
"videos": [
"http://thecolbertreport.cc.com/videos/eu8yuk/intro---08-17-09",
"http://thecolbertreport.cc.com/videos/54nh4d/obama-publishes-health-care-op-ed",
"http://thecolbertreport.cc.com/videos/xe1vuk/even-better-er-know-a-district---colorado-s-2nd---jared-polis",
"http://thecolbertreport.cc.com/videos/p4m942/bill-mckibben",
"http://thecolbertreport.cc.com/videos/rasuqa/sign-off---goodnight"
],
"guest": "Bill McKibben"
},
{
"date": "2009-08-18",
"videos": [
"http://thecolbertreport.cc.com/videos/wagj66/intro---08-18-09",
"http://thecolbertreport.cc.com/videos/wu0pjh/hamid-karzai-endorsement",
"http://thecolbertreport.cc.com/videos/z3d9c9/tip-wag---german-campaign--russian-dogs---flying-rabbis",
"http://thecolbertreport.cc.com/videos/xjhfzn/robert-wright",
"http://thecolbertreport.cc.com/videos/nw5bk3/sign-off--shofar",
"http://thecolbertreport.cc.com/videos/79rlpw/the-word---must-be-tv"
],
"guest": "Robert Wright"
},
{
"date": "2009-08-19",
"videos": [
"http://thecolbertreport.cc.com/videos/eu5hos/barney-frank-refuses-to-talk-to-a-dining-room-table",
"http://thecolbertreport.cc.com/videos/f6lol5/sugar-shortage---marion-nestle",
"http://thecolbertreport.cc.com/videos/ckefur/ang-lee",
"http://thecolbertreport.cc.com/videos/qwyqmu/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/jrwpha/the-word---arch-enemies"
],
"guest": "Ang Lee"
},
{
"date": "2009-08-20",
"videos": [
"http://thecolbertreport.cc.com/videos/om1fcy/intro---08-20-09",
"http://thecolbertreport.cc.com/videos/bgxuqk/france-bans-elephants",
"http://thecolbertreport.cc.com/videos/ho2y6d/stephen-s-sound-advice---how-to-make-babies",
"http://thecolbertreport.cc.com/videos/3muzmh/chris-matthews",
"http://thecolbertreport.cc.com/videos/gv0u6s/sign-off---vacation-begins",
"http://thecolbertreport.cc.com/videos/k1zrq2/colbert-platinum---urbane-nomads--gigayacht---michael-jackson-diamond"
],
"guest": "Chris Matthews"
},
{
"date": "2009-09-14",
"videos": [
"http://thecolbertreport.cc.com/videos/dq2vzv/intro---09-14-09",
"http://thecolbertreport.cc.com/videos/npiiku/conservatives-are-back",
"http://thecolbertreport.cc.com/videos/ehltxr/kanye-west-interrupts-taylor-swift-at-the-vmas",
"http://thecolbertreport.cc.com/videos/ljbubg/cory-booker",
"http://thecolbertreport.cc.com/videos/4kq9de/sign-off---goodnight"
],
"guest": "Cory Booker"
},
{
"date": "2009-09-15",
"videos": [
"http://thecolbertreport.cc.com/videos/drgqxg/world-record-for-mexican-insults",
"http://thecolbertreport.cc.com/videos/c9v1s6/the-word---let-freedom-ka-ching",
"http://thecolbertreport.cc.com/videos/qm9oq3/christiane-amanpour",
"http://thecolbertreport.cc.com/videos/tcjp92/stephen-loses-world-record-to-lou-dobbs",
"http://thecolbertreport.cc.com/videos/hen1ip/better-know-a-lobby---health-care-for-america-now"
],
"guest": "Christiane Amanpour"
},
{
"date": "2009-09-16",
"videos": [
"http://thecolbertreport.cc.com/videos/ch7xyz/intro---09-16-09",
"http://thecolbertreport.cc.com/videos/dp3jiw/body-worlds-plans-cadaver-sex-exhibit",
"http://thecolbertreport.cc.com/videos/p1ugzo/figgy-moonpowder",
"http://thecolbertreport.cc.com/videos/1642tt/wayne-coyne",
"http://thecolbertreport.cc.com/videos/pafbhp/citizens-united-v--federal-election-commission---jeffrey-toobin"
],
"guest": "The Flaming Lips"
},
{
"date": "2009-09-17",
"videos": [
"http://thecolbertreport.cc.com/videos/oclyoo/goat-lab",
"http://thecolbertreport.cc.com/videos/5psdx6/goat-lab---jon-ronson",
"http://thecolbertreport.cc.com/videos/3zmd8j/frank-bruni",
"http://thecolbertreport.cc.com/videos/xl4dp2/i-s-on-edjukashun---muslim-textbooks---tony-danza"
],
"guest": "Frank Bruni"
},
{
"date": "2009-09-22",
"videos": [
"http://thecolbertreport.cc.com/videos/fscepw/intro---09-22-09",
"http://thecolbertreport.cc.com/videos/brwe58/atone-phone---emmy-awards",
"http://thecolbertreport.cc.com/videos/h3pbsv/atone-phone---jon-stewart-calls-to-apologize",
"http://thecolbertreport.cc.com/videos/oqiy0y/shai-agassi",
"http://thecolbertreport.cc.com/videos/zxvw0a/sign-off---shofar-goodnight"
],
"guest": "Shai Agassi"
},
{
"date": "2009-09-23",
"videos": [
"http://thecolbertreport.cc.com/videos/epco4o/lunatic-dictator-accommodations",
"http://thecolbertreport.cc.com/videos/xtts8p/capitalism-s-enemy---michael-moore",
"http://thecolbertreport.cc.com/videos/hwx2pv/aj-jacobs",
"http://thecolbertreport.cc.com/videos/8ch7no/sign-off---thank-you-for-joining-us",
"http://thecolbertreport.cc.com/videos/npdo9z/tip-wag---guns-on-amtrak--fake-lesbians---battleship-audition"
],
"guest": "Michael Moore, A.J. Jacobs"
},
{
"date": "2009-09-24",
"videos": [
"http://thecolbertreport.cc.com/videos/92d7p3/intro---09-24-09",
"http://thecolbertreport.cc.com/videos/srdbkv/atone-phone---larry-king-calls",
"http://thecolbertreport.cc.com/videos/f4xrhk/easter-under-attack---peeps-display",
"http://thecolbertreport.cc.com/videos/xqer72/ken-burns",
"http://thecolbertreport.cc.com/videos/cqqzqe/sign-off---automated-desk",
"http://thecolbertreport.cc.com/videos/rh4p4f/tom-delay-dances-with-the-stars"
],
"guest": "Ken Burns"
},
{
"date": "2009-09-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ph4cw3/atone-phone---last-day-of-apologies",
"http://thecolbertreport.cc.com/videos/89wc6t/do--dump-or-marry",
"http://thecolbertreport.cc.com/videos/r9at2m/sheryl-wudunn",
"http://thecolbertreport.cc.com/videos/wsefin/sign-off---goodnight--conan"
],
"guest": "Sheryl WuDunn"
},
{
"date": "2009-09-29",
"videos": [
"http://thecolbertreport.cc.com/videos/8qd7gf/intro---09-29-09",
"http://thecolbertreport.cc.com/videos/4bcajc/spider-pope",
"http://thecolbertreport.cc.com/videos/22jcm5/cheating-death---snus---placebo-effect",
"http://thecolbertreport.cc.com/videos/03ei16/matt-latimer",
"http://thecolbertreport.cc.com/videos/7bmnxg/sign-off---richard-dawkins-will-be-here-tomorrow",
"http://thecolbertreport.cc.com/videos/ph4cw3/atone-phone---last-day-of-apologies"
],
"guest": "Matt Latimer"
},
{
"date": "2009-09-30",
"videos": [
"http://thecolbertreport.cc.com/videos/6bhu7e/intro---09-30-09",
"http://thecolbertreport.cc.com/videos/rrbojv/send-your-medical-bills-to-max-baucus",
"http://thecolbertreport.cc.com/videos/m2yjay/a-pace-odyssey",
"http://thecolbertreport.cc.com/videos/jhrv69/richard-dawkins",
"http://thecolbertreport.cc.com/videos/t5u4g8/sign-off---goodnight--grammy",
"http://thecolbertreport.cc.com/videos/kf4xf5/the-word---out-of-the-closet"
],
"guest": "Richard Dawkins"
},
{
"date": "2009-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/wlav1v/najibullah-zazi-threatens-beauty-supplies",
"http://thecolbertreport.cc.com/videos/6dv0jz/2016-olympics-in-chicago---george-wendt",
"http://thecolbertreport.cc.com/videos/zxuz0a/francis-collins",
"http://thecolbertreport.cc.com/videos/q9o9qv/sign-off---new-slang",
"http://thecolbertreport.cc.com/videos/91s6ka/threatdown---environmentalists--kang-lee---mountain-pine-beetles"
],
"guest": "George Wendt, Dr. Francis Collins"
},
{
"date": "2009-10-05",
"videos": [
"http://thecolbertreport.cc.com/videos/733czp/intro---10-05-09",
"http://thecolbertreport.cc.com/videos/7yi77e/americans-for-prosperity-cheer-chicago-s-failure",
"http://thecolbertreport.cc.com/videos/k8e7bl/eating-the-distance---the-brad-sciullo-story-pt--2",
"http://thecolbertreport.cc.com/videos/wfl2if/arne-duncan",
"http://thecolbertreport.cc.com/videos/d1uxmt/sign-off---goodnight"
],
"guest": "Arne Duncan"
},
{
"date": "2009-10-06",
"videos": [
"http://thecolbertreport.cc.com/videos/lomf6q/new-swine-flu-vaccine-drops",
"http://thecolbertreport.cc.com/videos/7060r2/the-road-ahead-in-afghanistan---lara-logan",
"http://thecolbertreport.cc.com/videos/yz886x/john-darnielle",
"http://thecolbertreport.cc.com/videos/58l1kv/the-word---learning-is-fundamental"
],
"guest": "Lara Logan, the Mountain Goats"
},
{
"date": "2009-10-07",
"videos": [
"http://thecolbertreport.cc.com/videos/kt8d60/intro---10-07-09",
"http://thecolbertreport.cc.com/videos/p6tyac/human-sacrifice-channel",
"http://thecolbertreport.cc.com/videos/i1e7h0/craziest-f--king-thing-i-ve-ever-heard---eye-tooth",
"http://thecolbertreport.cc.com/videos/59gyno/alison-gopnik",
"http://thecolbertreport.cc.com/videos/9ergzb/sign-off---jasper-t--jowls",
"http://thecolbertreport.cc.com/videos/qm22ls/formula-401--a-star-is-born"
],
"guest": "Alison Gopnik"
},
{
"date": "2009-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ac6rq4/intro---10-08-09",
"http://thecolbertreport.cc.com/videos/u1v1j7/kevin-the-iranian-intern",
"http://thecolbertreport.cc.com/videos/jigfye/sport-report---rush-limbaugh---ted-williams--frozen-head",
"http://thecolbertreport.cc.com/videos/ih4ouf/colin-beavan",
"http://thecolbertreport.cc.com/videos/7t5ve1/sign-off---buddy-system",
"http://thecolbertreport.cc.com/videos/81wvda/tip-wag---conservapedia--louvre---honda-unicycle"
],
"guest": "Colin Beavan"
},
{
"date": "2009-10-12",
"videos": [
"http://thecolbertreport.cc.com/videos/6s4gb6/intro---10-12-09",
"http://thecolbertreport.cc.com/videos/xiuiwd/happy-columbus-day",
"http://thecolbertreport.cc.com/videos/vnmcv0/fallback-position---james-blake",
"http://thecolbertreport.cc.com/videos/2ko3eq/sanjay-gupta",
"http://thecolbertreport.cc.com/videos/izp5gd/sign-off---thanks-to-the-guests"
],
"guest": "Shashi Tharoor, Dr. Sanjay Gupta"
},
{
"date": "2009-10-13",
"videos": [
"http://thecolbertreport.cc.com/videos/g87deh/intro---10-13-09",
"http://thecolbertreport.cc.com/videos/4cco61/jermaine-maine-tweets-miley-cyrus-facts",
"http://thecolbertreport.cc.com/videos/7jpek6/the-born-supremacy---david-javerbaum",
"http://thecolbertreport.cc.com/videos/s52xb5/sylvia-earle",
"http://thecolbertreport.cc.com/videos/obxlza/sign-off---gmail",
"http://thecolbertreport.cc.com/videos/l4n6tb/war-of-peace---shashi-tharoor"
],
"guest": "David Javerbaum, Sylvia Earle"
},
{
"date": "2009-10-14",
"videos": [
"http://thecolbertreport.cc.com/videos/g6skj6/pat-roberts-warns-against-health-care-box-canyon",
"http://thecolbertreport.cc.com/videos/3copn0/the-obesity-epidemic---amy-farrell",
"http://thecolbertreport.cc.com/videos/ljym9p/the-rza",
"http://thecolbertreport.cc.com/videos/wijvgm/sign-off---should-have-put-a-ring-on-it",
"http://thecolbertreport.cc.com/videos/m5y3ox/the-word---symbol-minded"
],
"guest": "Amy Farrell, The RZA"
},
{
"date": "2009-10-15",
"videos": [
"http://thecolbertreport.cc.com/videos/0bzt4y/intro---10-15-09",
"http://thecolbertreport.cc.com/videos/0a133r/the-money-shot",
"http://thecolbertreport.cc.com/videos/8xmsj4/the-mayo-lution-will-not-be-televised",
"http://thecolbertreport.cc.com/videos/7s45sd/jerry-mitchell",
"http://thecolbertreport.cc.com/videos/sgqznj/sign-off---stephen-unveils-a-new-portrait",
"http://thecolbertreport.cc.com/videos/ubn9ao/yahweh-or-no-way---legislation-prayers---fake-shroud-of-turin"
],
"guest": "Jerry Mitchell"
},
{
"date": "2009-10-26",
"videos": [
"http://thecolbertreport.cc.com/videos/4srpg9/george-will-s-long-tie",
"http://thecolbertreport.cc.com/videos/gy6tin/the-word---don-t-ask-don-t-tell",
"http://thecolbertreport.cc.com/videos/xhz2mw/cornel-west",
"http://thecolbertreport.cc.com/videos/2onypd/sign-off---don-t-move"
],
"guest": "Cornel West"
},
{
"date": "2009-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/l98jof/intro---10-27-09",
"http://thecolbertreport.cc.com/videos/3f3ssx/george-w--bush-s-motivational-speech",
"http://thecolbertreport.cc.com/videos/wtcyjy/colbert-platinum---harvard-billionaires---red-diamond-suv",
"http://thecolbertreport.cc.com/videos/8c9hx0/gail-collins",
"http://thecolbertreport.cc.com/videos/plvf84/sign-off---goodnight-",
"http://thecolbertreport.cc.com/videos/liq1p2/job-recommendation-from-stephen-colbert",
"http://thecolbertreport.cc.com/videos/dtlk2w/stephen-s-sound-advice---how-to-get-a-job"
],
"guest": "Randall Balmer, Gail Collins"
},
{
"date": "2009-10-28",
"videos": [
"http://thecolbertreport.cc.com/videos/zspzvk/intro---10-28-09",
"http://thecolbertreport.cc.com/videos/qvcosm/joe-lieberman-is-a-true-independent",
"http://thecolbertreport.cc.com/videos/1r96o8/big-bang-theory",
"http://thecolbertreport.cc.com/videos/3r9su2/brian-cox",
"http://thecolbertreport.cc.com/videos/bzrvnc/sign-off---future-stephen",
"http://thecolbertreport.cc.com/videos/1va17m/holy-water-under-the-bridge---randall-balmer"
],
"guest": "Brian Cox"
},
{
"date": "2009-10-29",
"videos": [
"http://thecolbertreport.cc.com/videos/bbj9sz/intro---10-29-09",
"http://thecolbertreport.cc.com/videos/yl6xd1/usa-today-slams-dirigibles",
"http://thecolbertreport.cc.com/videos/al6ssq/threatdown---halloween-edition",
"http://thecolbertreport.cc.com/videos/ku01px/bill-simmons",
"http://thecolbertreport.cc.com/videos/xalyef/sign-off---thanks-to-bill-simmons---rosanne-cash",
"http://thecolbertreport.cc.com/videos/w56skk/the-word---you-genics"
],
"guest": "Rosanne Cash, Bill Simmons"
},
{
"date": "2009-11-02",
"videos": [
"http://thecolbertreport.cc.com/videos/vfdy5q/intro---11-02-09",
"http://thecolbertreport.cc.com/videos/uke17x/used-karzai",
"http://thecolbertreport.cc.com/videos/uxgb9s/alpha-dog-of-the-week---arnold-schwarzenegger",
"http://thecolbertreport.cc.com/videos/t62cji/nicholas-thompson",
"http://thecolbertreport.cc.com/videos/7g9pgn/sign-off---donate-to-the-u-s--speedskating-team"
],
"guest": "Nicholas Thompson"
},
{
"date": "2009-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/hlio3b/intro---11-03-09",
"http://thecolbertreport.cc.com/videos/zbi6j6/canadian-hackers-sabotage-colbert-nation",
"http://thecolbertreport.cc.com/videos/olb2ep/nailed--em---mormon-church-trespassing",
"http://thecolbertreport.cc.com/videos/qdk21v/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/sqdke8/sign-off---they-call-me-mister-fry",
"http://thecolbertreport.cc.com/videos/b7il1x/sport-report---nyc-marathon---olympic-speedskating"
],
"guest": "Andrew Sullivan"
},
{
"date": "2009-11-04",
"videos": [
"http://thecolbertreport.cc.com/videos/wm06ja/intro---11-04-09",
"http://thecolbertreport.cc.com/videos/hzm3ur/-09-off-year-semi-presidential-electferendum",
"http://thecolbertreport.cc.com/videos/src597/formidable-opponent---global-warming-with-al-gore",
"http://thecolbertreport.cc.com/videos/lkkq9m/harold-evans",
"http://thecolbertreport.cc.com/videos/64ucdo/sign-off---poison-gas",
"http://thecolbertreport.cc.com/videos/ol1mvi/the-word---the-green-mile"
],
"guest": "Harold Evans"
},
{
"date": "2009-11-05",
"videos": [
"http://thecolbertreport.cc.com/videos/ymrkt5/intro---11-05-09",
"http://thecolbertreport.cc.com/videos/i7dq6q/guy-fawkers",
"http://thecolbertreport.cc.com/videos/6vac7m/cheating-death---swine-flu-scam-detector---vaxaconda",
"http://thecolbertreport.cc.com/videos/cj1lqu/william-bratton",
"http://thecolbertreport.cc.com/videos/6e51a0/sign-off---donate-to-u-s--speedskating",
"http://thecolbertreport.cc.com/videos/hnu3dh/tip-wag---rush-limbaugh---us-weekly"
],
"guest": "Joey Cheek, Chief William Bratton"
},
{
"date": "2009-11-09",
"videos": [
"http://thecolbertreport.cc.com/videos/p4del4/intro---11-09-09",
"http://thecolbertreport.cc.com/videos/zhrahz/trouble--coverage",
"http://thecolbertreport.cc.com/videos/uaeaom/u-s--speedskating-team-takes-gold",
"http://thecolbertreport.cc.com/videos/62flai/thomas-campbell",
"http://thecolbertreport.cc.com/videos/5hgk8f/sign-off---goodnight"
],
"guest": "Thomas Campbell"
},
{
"date": "2009-11-10",
"videos": [
"http://thecolbertreport.cc.com/videos/nwm4io/intro---11-10-09",
"http://thecolbertreport.cc.com/videos/bpec5m/barney-frank-is-not-a-great-outdoorsman",
"http://thecolbertreport.cc.com/videos/476wty/maria-shriver",
"http://thecolbertreport.cc.com/videos/rl73xb/sign-off---you-can-t-take-it-with-you",
"http://thecolbertreport.cc.com/videos/ocuoqq/exclusive---better-know-a-district---delaware-s-at-large---mike-castle",
"http://thecolbertreport.cc.com/videos/i4pgl0/better-know-a-district---delaware-s-at-large---mike-castle"
],
"guest": "Maria Shriver"
},
{
"date": "2009-11-11",
"videos": [
"http://thecolbertreport.cc.com/videos/8m4icj/intro---11-11-09",
"http://thecolbertreport.cc.com/videos/d3hhgz/goldman-sachs-does-god-s-work",
"http://thecolbertreport.cc.com/videos/1al5v4/tip-wag---san-francisco-chronicle---george-clinton",
"http://thecolbertreport.cc.com/videos/p4wqld/christopher-caldwell",
"http://thecolbertreport.cc.com/videos/xp7fig/sign-off---stephen-s-fight-with-christopher-caldwell",
"http://thecolbertreport.cc.com/videos/2vmljd/iraniversary---karim-sadjadpour"
],
"guest": "Christopher Caldwell"
},
{
"date": "2009-11-12",
"videos": [
"http://thecolbertreport.cc.com/videos/lbfhkm/intro---11-12-09",
"http://thecolbertreport.cc.com/videos/cnw6wz/miracle-whip-buys-ad-space",
"http://thecolbertreport.cc.com/videos/ips2v8/the-word---the-money-shot",
"http://thecolbertreport.cc.com/videos/2k90o4/sport-report---cricket-scandal---letter-writing-campaign",
"http://thecolbertreport.cc.com/videos/1yilwm/woody-harrelson",
"http://thecolbertreport.cc.com/videos/l85kiv/grover-the-hill"
],
"guest": "Woody Harrelson"
},
{
"date": "2009-11-16",
"videos": [
"http://thecolbertreport.cc.com/videos/t5pqdy/intro---11-16-09",
"http://thecolbertreport.cc.com/videos/8ggl86/obama-bows-to-japanese-emperor",
"http://thecolbertreport.cc.com/videos/xgze85/alpha-dog-of-the-week---joe-perry",
"http://thecolbertreport.cc.com/videos/6einjp/paul-goldberger",
"http://thecolbertreport.cc.com/videos/i42i9t/sign-off---good-morning--burma"
],
"guest": "Paul Goldberger"
},
{
"date": "2009-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/im99fb/intro---11-17-09",
"http://thecolbertreport.cc.com/videos/z1cr8v/kid-gloves---marc-kielburger",
"http://thecolbertreport.cc.com/videos/ij8d04/malcolm-gladwell",
"http://thecolbertreport.cc.com/videos/w71om6/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/mwjf6e/the-word---skeletons-in-the-closet"
],
"guest": "Malcolm Gladwell"
},
{
"date": "2009-11-18",
"videos": [
"http://thecolbertreport.cc.com/videos/24jack/intro---11-18-09",
"http://thecolbertreport.cc.com/videos/odu5xx/eggo-waffles-shortage-alert",
"http://thecolbertreport.cc.com/videos/cuhtda/threatdown---quetzalcoatl--santa-claus---canadian-groin-kickers",
"http://thecolbertreport.cc.com/videos/ah5dzo/norah-jones",
"http://thecolbertreport.cc.com/videos/1vm4fs/exclusive---better-know-a-district---california-s-12th---jackie-speier-pt--1",
"http://thecolbertreport.cc.com/videos/udd9qu/exclusive---better-know-a-district---california-s-12th---jackie-speier-pt--2",
"http://thecolbertreport.cc.com/videos/p8c7xo/better-know-a-district---california-s-12th---jackie-speier"
],
"guest": "Norah Jones"
},
{
"date": "2009-11-19",
"videos": [
"http://thecolbertreport.cc.com/videos/6iz54h/stephen-shakes-his-moneymaker",
"http://thecolbertreport.cc.com/videos/4tmz49/celebrating-the-ak-47---john-pike",
"http://thecolbertreport.cc.com/videos/zy3jiq/sign-off---thanks--elvis-costello",
"http://thecolbertreport.cc.com/videos/tf53hs/the-word---grand-old-pity-party"
],
"guest": "John Pike, Elvis Costello"
},
{
"date": "2009-11-30",
"videos": [
"http://thecolbertreport.cc.com/videos/x90ton/intro---11-30-09",
"http://thecolbertreport.cc.com/videos/qljewq/amateur-hour-at-the-white-house",
"http://thecolbertreport.cc.com/videos/ahhfo9/better-know-a-lobby---ploughshares-fund",
"http://thecolbertreport.cc.com/videos/ec0x55/cevin-soling",
"http://thecolbertreport.cc.com/videos/53k9co/sign-off---goodnight"
],
"guest": "Dan Esty, Cevin Soling"
},
{
"date": "2009-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/jvjn7h/intro---12-01-09",
"http://thecolbertreport.cc.com/videos/fj2x2m/u-s--army-chain-of-command",
"http://thecolbertreport.cc.com/videos/zwjey6/gold--frankincense-and-mars---guy-consolmagno",
"http://thecolbertreport.cc.com/videos/s6mur0/sherman-alexie",
"http://thecolbertreport.cc.com/videos/km8wtf/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/bohr52/something-is-melting-in-denmark---dan-esty"
],
"guest": "Guy Consolmagno, Sherman Alexie"
},
{
"date": "2009-12-02",
"videos": [
"http://thecolbertreport.cc.com/videos/lstmf1/intro---12-02-09",
"http://thecolbertreport.cc.com/videos/yvq647/deployment-figures",
"http://thecolbertreport.cc.com/videos/et6ksb/craig-watkins",
"http://thecolbertreport.cc.com/videos/cyylc0/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/ndi826/better-know-a-made-up-district---connecticut-s-42nd"
],
"guest": "Craig Watkins"
},
{
"date": "2009-12-03",
"videos": [
"http://thecolbertreport.cc.com/videos/qrqaja/formidable-opponent---gary-the-tennis-coach",
"http://thecolbertreport.cc.com/videos/q8vv0p/intro---12-03-09",
"http://thecolbertreport.cc.com/videos/knxrx6/tiger-s-tale",
"http://thecolbertreport.cc.com/videos/hw80nv/skate-expectations---skeleton-team-tryouts---zach-lund",
"http://thecolbertreport.cc.com/videos/heye88/janet-napolitano",
"http://thecolbertreport.cc.com/videos/dy9y1l/sign-off---welcome-sean-julien",
"http://thecolbertreport.cc.com/videos/qx8k9b/cheating-death---r-j--reynolds--genzyme---bionic-bottom"
],
"guest": "Sec. Janet Napolitano"
},
{
"date": "2009-12-07",
"videos": [
"http://thecolbertreport.cc.com/videos/opl0gz/intro---12-07-09",
"http://thecolbertreport.cc.com/videos/l9wksx/who-s-attacking-me-now----g--edward-deseve",
"http://thecolbertreport.cc.com/videos/t0b3f4/craziest-f--king-thing-i-ve-ever-heard---tongue-eating-parasite",
"http://thecolbertreport.cc.com/videos/pgp8y2/bill-t--jones"
],
"guest": "Bill T. Jones, a performance by the cast of \"Fela\""
},
{
"date": "2009-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/7a6f7k/intro---12-08-09",
"http://thecolbertreport.cc.com/videos/0y3uce/how-far-good-parents-will-go",
"http://thecolbertreport.cc.com/videos/gcu1ou/fed-s-dead---bernie-sanders",
"http://thecolbertreport.cc.com/videos/9o2lyz/andy-schlafly",
"http://thecolbertreport.cc.com/videos/2v1vhb/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/w4zn3p/tip-wag---jonas-brothers--fox-news---japanese-burger-king"
],
"guest": "Sen. Bernie Sanders, Andy Schlafly"
},
{
"date": "2009-12-09",
"videos": [
"http://thecolbertreport.cc.com/videos/fdjwxb/intro---12-09-09",
"http://thecolbertreport.cc.com/videos/ckek7p/monkey-threatdown---holes---banana-too-high",
"http://thecolbertreport.cc.com/videos/h3kb0s/the-blitzkrieg-on-grinchitude---hallmark---krampus",
"http://thecolbertreport.cc.com/videos/is6uvv/matt-taibbi",
"http://thecolbertreport.cc.com/videos/mlp3y1/sign-off---goodnight-with-krampus",
"http://thecolbertreport.cc.com/videos/2l8p98/fed-s-dead"
],
"guest": "Matt Taibbi"
},
{
"date": "2009-12-10",
"videos": [
"http://thecolbertreport.cc.com/videos/03g0d5/obama-s-nobel-prize-speech---afghandyland",
"http://thecolbertreport.cc.com/videos/zivscx/skate-expectations---bobsled-team-tryouts",
"http://thecolbertreport.cc.com/videos/hjnxot/lara-logan",
"http://thecolbertreport.cc.com/videos/y74r8f/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/2jc7dn/the-word---grand-old-purity"
],
"guest": "Lara Logan"
},
{
"date": "2009-12-14",
"videos": [
"http://thecolbertreport.cc.com/videos/efg3d5/intro---12-14-09",
"http://thecolbertreport.cc.com/videos/9wxgc9/president-obama---the-colbert-interview",
"http://thecolbertreport.cc.com/videos/t1tsns/stephen-challenges-shani-davis---katherine-reutter",
"http://thecolbertreport.cc.com/videos/vt4qtf/snoop-dogg"
],
"guest": "Katherine Reutter, Snoop Dogg"
},
{
"date": "2009-12-15",
"videos": [
"http://thecolbertreport.cc.com/videos/x6ydfv/intro---12-15-09",
"http://thecolbertreport.cc.com/videos/3plx6x/for-he-s-a-jowly-good-fellow",
"http://thecolbertreport.cc.com/videos/10vyk2/the-blitzkrieg-on-grinchitude---treesus---christ-mas-tree",
"http://thecolbertreport.cc.com/videos/i16cci/alicia-keys",
"http://thecolbertreport.cc.com/videos/qn15hk/stephen-challenges-shani-davis",
"http://thecolbertreport.cc.com/videos/u5g55p/exclusive---extended-interview-with-barack-obama"
],
"guest": "Alicia Keys"
},
{
"date": "2009-12-16",
"videos": [
"http://thecolbertreport.cc.com/videos/ozgmuy/accenture-drops-tiger-woods",
"http://thecolbertreport.cc.com/videos/4jdam2/the-word---spyvate-sector",
"http://thecolbertreport.cc.com/videos/bjlb37/tom-brokaw",
"http://thecolbertreport.cc.com/videos/q9eqq1/sign-off---goodbye--2009",
"http://thecolbertreport.cc.com/videos/ufq6qh/prescott-financial---gold--women---sheep"
],
"guest": "Tom Brokaw"
}
],
"2010": [
{
"date": "2010-01-04",
"videos": [
"http://thecolbertreport.cc.com/videos/a6c63f/intro---goodbye--old-set",
"http://thecolbertreport.cc.com/videos/qr3067/high-definition-upgrade",
"http://thecolbertreport.cc.com/videos/ca8z2z/genitalia-bomb-threat",
"http://thecolbertreport.cc.com/videos/hospuh/skate-expectations---curling-team-tryouts",
"http://thecolbertreport.cc.com/videos/bqki32/skate-expectations---curling-team-tryouts---colbert-vs--shuster",
"http://thecolbertreport.cc.com/videos/ytow3n/sign-off---thanks-for-the-new-set"
],
"guest": "Erick Erickson"
},
{
"date": "2010-01-05",
"videos": [
"http://thecolbertreport.cc.com/videos/l0fai0/intro---01-05-10",
"http://thecolbertreport.cc.com/videos/qomtkk/high-definition-advertising",
"http://thecolbertreport.cc.com/videos/ywy8j4/night-of-terror---the-crapification-of-the-american-pant-scape",
"http://thecolbertreport.cc.com/videos/s2n141/the-word---ideal-or-no-deal",
"http://thecolbertreport.cc.com/videos/t3fpvm/better-know-an-enemy---yemen",
"http://thecolbertreport.cc.com/videos/r8x6ag/riley-crane",
"http://thecolbertreport.cc.com/videos/doe1xo/sign-off---stephen-draws-woodstock"
],
"guest": "Riley Crane"
},
{
"date": "2010-01-06",
"videos": [
"http://thecolbertreport.cc.com/videos/rewr4u/intro---01-06-10",
"http://thecolbertreport.cc.com/videos/u584e6/a-message-to-standard-definition-cable-providers",
"http://thecolbertreport.cc.com/videos/g2gimh/drag-me-to-health---ezra-klein---linda-douglass",
"http://thecolbertreport.cc.com/videos/h3mxst/alpha-dog-of-the-week---domino-s-pizza",
"http://thecolbertreport.cc.com/videos/4cd9bx/charles-moore",
"http://thecolbertreport.cc.com/videos/elm4s5/sign-off---not-stephen-s-show"
],
"guest": "Capt. Charles Moore"
},
{
"date": "2010-01-07",
"videos": [
"http://thecolbertreport.cc.com/videos/uo3v4r/intro---01-07-10",
"http://thecolbertreport.cc.com/videos/f2zb2u/failure-to-connect-the-dots",
"http://thecolbertreport.cc.com/videos/z3kdhi/fatal-subtraction---barry-scheck",
"http://thecolbertreport.cc.com/videos/wi0ong/tip-wag---burj-dubai--avatar---transgender-appointees",
"http://thecolbertreport.cc.com/videos/c3suh9/james-fowler",
"http://thecolbertreport.cc.com/videos/tso1cs/sign-off---goodnight"
],
"guest": "Barry Scheck, James Fowler"
},
{
"date": "2010-01-11",
"videos": [
"http://thecolbertreport.cc.com/videos/xptxw6/harry-reid-s-racial-praise",
"http://thecolbertreport.cc.com/videos/3s1wqs/move-your-money---eugene-jarecki",
"http://thecolbertreport.cc.com/videos/y47i8f/colbert-platinum---estate-tax---skull-ballot-box",
"http://thecolbertreport.cc.com/videos/4q61kj/morgan-freeman",
"http://thecolbertreport.cc.com/videos/8e60wq/sign-off---stephen-will-be-right-back"
],
"guest": "Eugene Jarecki, Morgan Freeman"
},
{
"date": "2010-01-12",
"videos": [
"http://thecolbertreport.cc.com/videos/qjn9bh/intro---01-12-10",
"http://thecolbertreport.cc.com/videos/7qig8p/roxxxy-the-sex-robot",
"http://thecolbertreport.cc.com/videos/8ln9tv/cheating-death---alzheimer-s--jet-lag---female-libido",
"http://thecolbertreport.cc.com/videos/7jfkm7/raj-patel"
],
"guest": "Raj Patel"
},
{
"date": "2010-01-13",
"videos": [
"http://thecolbertreport.cc.com/videos/w3lt72/intro---01-13-10",
"http://thecolbertreport.cc.com/videos/34mknq/game-change-gossip",
"http://thecolbertreport.cc.com/videos/kwpeqs/sport-report---gilbert-arenas---mark-mcgwire",
"http://thecolbertreport.cc.com/videos/t39jgx/movies-that-are-destroying-america---avatar-edition",
"http://thecolbertreport.cc.com/videos/1xyrig/john-heilemann",
"http://thecolbertreport.cc.com/videos/erf677/sign-off---mark-mcgwire-action-figure"
],
"guest": "John Heilemann"
},
{
"date": "2010-01-14",
"videos": [
"http://thecolbertreport.cc.com/videos/t151qr/intro---01-14-10",
"http://thecolbertreport.cc.com/videos/dbcboq/watercressgate",
"http://thecolbertreport.cc.com/videos/et1vio/the-word---honor-bound",
"http://thecolbertreport.cc.com/videos/7owg19/haiti-disaster-relief-donations---kathleen-sebelius",
"http://thecolbertreport.cc.com/videos/gqd029/kathleen-sebelius",
"http://thecolbertreport.cc.com/videos/afqd2o/sign-off---text-for-haiti-disaster-relief"
],
"guest": "Kathleen Sebelius"
},
{
"date": "2010-01-18",
"videos": [
"http://thecolbertreport.cc.com/videos/i2h2wa/intro---01-18-10",
"http://thecolbertreport.cc.com/videos/uqolbx/massachusetts-special-election",
"http://thecolbertreport.cc.com/videos/6s93dq/coal-comfort---margaret-palmer",
"http://thecolbertreport.cc.com/videos/2kgg0x/own-a-piece-of-histor-me---original-interview-table",
"http://thecolbertreport.cc.com/videos/r6fzoi/emily-pilloton",
"http://thecolbertreport.cc.com/videos/47fs6h/sign-off---home-barbershop-quartet-game"
],
"guest": "Dr. Margaret Palmer, Emily Pilloton"
},
{
"date": "2010-01-19",
"videos": [
"http://thecolbertreport.cc.com/videos/w2qqgl/intro---01-19-10",
"http://thecolbertreport.cc.com/videos/9t5rlw/onward-christian-soldiers",
"http://thecolbertreport.cc.com/videos/eseeb0/skate-expectations---speedskating-team-training",
"http://thecolbertreport.cc.com/videos/nw0obk/skate-expectations---speedskating-team-training---tucker-fredricks",
"http://thecolbertreport.cc.com/videos/wljw31/stephen-bosworth",
"http://thecolbertreport.cc.com/videos/5zz1m5/sign-off---teleprompter-in-italics"
],
"guest": "Amb. Stephen Bosworth"
},
{
"date": "2010-01-20",
"videos": [
"http://thecolbertreport.cc.com/videos/oarl2s/intro---01-20-10",
"http://thecolbertreport.cc.com/videos/9fshqm/boston-dream-guy",
"http://thecolbertreport.cc.com/videos/h7cxuq/skate-expectations---speedskating-race",
"http://thecolbertreport.cc.com/videos/r0fs08/skate-expectations---speedskating-team-training---colbert-vs--davis",
"http://thecolbertreport.cc.com/videos/9qoq3s/dick-ebersol",
"http://thecolbertreport.cc.com/videos/ekjbd1/sign-off---original-interview-table-auction"
],
"guest": "Dick Ebersol"
},
{
"date": "2010-01-21",
"videos": [
"http://thecolbertreport.cc.com/videos/dhnvbi/intro---01-21-10",
"http://thecolbertreport.cc.com/videos/a891l1/own-a-piece-of-histor-me---legendary-interview-table",
"http://thecolbertreport.cc.com/videos/3t1wu4/taliban-public-relations",
"http://thecolbertreport.cc.com/videos/61faxb/the-word---two-faced",
"http://thecolbertreport.cc.com/videos/fqdy69/threatdown---airport-security-edition",
"http://thecolbertreport.cc.com/videos/nchr4z/john-farmer",
"http://thecolbertreport.cc.com/videos/ngpu7c/sign-off---raise-money-for-haiti-relief"
],
"guest": "John Farmer"
},
{
"date": "2010-01-25",
"videos": [
"http://thecolbertreport.cc.com/videos/ucog8c/intro---01-25-10",
"http://thecolbertreport.cc.com/videos/2i26ye/obama-gets-called-for-jury-duty",
"http://thecolbertreport.cc.com/videos/iyaiyz/the-word---manifest-density",
"http://thecolbertreport.cc.com/videos/fgn6yx/alpha-dog-of-the-week---harold-ford-jr-",
"http://thecolbertreport.cc.com/videos/y99wku/kati-marton",
"http://thecolbertreport.cc.com/videos/6u56ui/sign-off---50th-anniversary-of-bubble-wrap"
],
"guest": "Kati Marton"
},
{
"date": "2010-01-26",
"videos": [
"http://thecolbertreport.cc.com/videos/8ukd1u/andre-bauer-is-not-against-animals",
"http://thecolbertreport.cc.com/videos/1qu3mj/democrats-must-fight-back---paul-begala",
"http://thecolbertreport.cc.com/videos/4cv6sy/tip-wag---creigh-deeds---scarebear-trail-companion",
"http://thecolbertreport.cc.com/videos/t59ksv/mika-brzezinski",
"http://thecolbertreport.cc.com/videos/oz7mss/own-a-piece-of-histor-me---original-c-shaped-anchor-desk"
],
"guest": "Paul Begala, Mika Brzezinski"
},
{
"date": "2010-01-27",
"videos": [
"http://thecolbertreport.cc.com/videos/5wqyfx/intro---01-27-10",
"http://thecolbertreport.cc.com/videos/69904a/hamid-karzai-s-fashionable-hat",
"http://thecolbertreport.cc.com/videos/99bavp/the-word---prece-don-t",
"http://thecolbertreport.cc.com/videos/9hb7jh/fox-news-puts-james-o-keefe-into-context",
"http://thecolbertreport.cc.com/videos/suw63r/arthur-benjamin",
"http://thecolbertreport.cc.com/videos/iljqkj/sign-off---give-stephen-an-ipad"
],
"guest": "Arthur Benjamin"
},
{
"date": "2010-01-28",
"videos": [
"http://thecolbertreport.cc.com/videos/pg6y12/stephen-s-state-of-the-union-speech",
"http://thecolbertreport.cc.com/videos/lnaqfo/david-gergen",
"http://thecolbertreport.cc.com/videos/jsxv0a/sport-report---all-white-basketball---jana-rawlinson",
"http://thecolbertreport.cc.com/videos/xebsoq/sign-off---bid-on-stephen-s-c-shaped-desk"
],
"guest": "David Gergen"
},
{
"date": "2010-02-01",
"videos": [
"http://thecolbertreport.cc.com/videos/pg94s5/the-word---siren-song",
"http://thecolbertreport.cc.com/videos/2n1vl2/sport-report---nicole-detling-miller---jessica-smith",
"http://thecolbertreport.cc.com/videos/k0hjb1/harold-ford-jr-",
"http://thecolbertreport.cc.com/videos/biwfer/sign-off---u-s-a-"
],
"guest": "Nicole Detling Miller, Jessica Smith, Harold Ford Jr."
},
{
"date": "2010-02-02",
"videos": [
"http://thecolbertreport.cc.com/videos/u6k7x8/intro---02-02-10",
"http://thecolbertreport.cc.com/videos/idx9j1/the-word---cognoscor-ergo-sum",
"http://thecolbertreport.cc.com/videos/2ffk5q/bananafish-tale---henry-allen",
"http://thecolbertreport.cc.com/videos/0xtws0/eliot-spitzer",
"http://thecolbertreport.cc.com/videos/wfnsyt/sign-off---kentucky-fried-regret"
],
"guest": "Eliot Spitzer"
},
{
"date": "2010-02-03",
"videos": [
"http://thecolbertreport.cc.com/videos/pmvmz3/intro---02-03-10",
"http://thecolbertreport.cc.com/videos/4nj8ql/be-almost-all-that-you-can-be",
"http://thecolbertreport.cc.com/videos/5iocp5/job-man-caravan",
"http://thecolbertreport.cc.com/videos/sysu7h/job-man-caravan---peter-cove",
"http://thecolbertreport.cc.com/videos/t6rlnb/john-durant",
"http://thecolbertreport.cc.com/videos/s0494z/sign-off---office-pool"
],
"guest": "Peter Cove, John Durant"
},
{
"date": "2010-02-04",
"videos": [
"http://thecolbertreport.cc.com/videos/zn4dgm/intro---02-04-10",
"http://thecolbertreport.cc.com/videos/qkvdcs/hermaphrodites-can-t-be-gay",
"http://thecolbertreport.cc.com/videos/qqtebr/tip-wag---waterboarding---canada-s-history",
"http://thecolbertreport.cc.com/videos/6a6j6j/formidable-opponent---khalid-sheikh-mohammed-s-trial",
"http://thecolbertreport.cc.com/videos/sm98y8/henry-louis-gates--jr-",
"http://thecolbertreport.cc.com/videos/bsgq92/own-a-piece-of-histor-me---fireplace-portrait"
],
"guest": "Henry Louis Gates"
},
{
"date": "2010-02-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ek3awf/exclusive---skate-expectations---bobsled-team-tryouts-pt--1",
"http://thecolbertreport.cc.com/videos/52kgrq/office-super-bowl-ad-pool",
"http://thecolbertreport.cc.com/videos/2idiz7/the-word---faux--n--tell",
"http://thecolbertreport.cc.com/videos/mtoffp/sarah-palin-uses-a-hand-o-prompter",
"http://thecolbertreport.cc.com/videos/xdafq2/jonathan-safran-foer",
"http://thecolbertreport.cc.com/videos/r5okcx/sign-off---goodnight"
],
"guest": "Jonathan Safran Foer"
},
{
"date": "2010-02-09",
"videos": [
"http://thecolbertreport.cc.com/videos/msydxm/exclusive---skate-expectations---bobsled-team-tryouts-pt--2",
"http://thecolbertreport.cc.com/videos/s5t5z4/celebrate-black-history-month-with-heineken",
"http://thecolbertreport.cc.com/videos/nwoc1b/corporate-free-speech---chris-dodd",
"http://thecolbertreport.cc.com/videos/884juj/alpha-dog-of-the-week---markus-bestin",
"http://thecolbertreport.cc.com/videos/uao9dj/george-stephanopoulos",
"http://thecolbertreport.cc.com/videos/zcybb6/sign-off---it-s-lonely-at-the-top"
],
"guest": "George Stephanopoulos"
},
{
"date": "2010-02-10",
"videos": [
"http://thecolbertreport.cc.com/videos/ka4dxt/exclusive---skate-expectations---bobsled-team-tryouts-pt--3",
"http://thecolbertreport.cc.com/videos/l0cv8x/intro---02-10-10",
"http://thecolbertreport.cc.com/videos/br6hwk/we-re-off-to-see-the-blizzard",
"http://thecolbertreport.cc.com/videos/cu5mso/better-know-a-district---illinois--5th",
"http://thecolbertreport.cc.com/videos/3752v8/better-know-a-district---illinois--5th---mike-quigley",
"http://thecolbertreport.cc.com/videos/34z9mm/claire-danes",
"http://thecolbertreport.cc.com/videos/f2whru/sign-off---goodnight"
],
"guest": "Claire Danes"
},
{
"date": "2010-02-11",
"videos": [
"http://thecolbertreport.cc.com/videos/eyfb9f/exclusive---skate-expectations---curling-team-tryouts-pt--1",
"http://thecolbertreport.cc.com/videos/65cpdn/iran-begins-enriching-uranian",
"http://thecolbertreport.cc.com/videos/n5w4fs/the-word---political-suicide",
"http://thecolbertreport.cc.com/videos/li6roe/sport-report---global-snow-drive---al-michaels",
"http://thecolbertreport.cc.com/videos/s9qfmt/david-ross",
"http://thecolbertreport.cc.com/videos/qbth0f/sign-off---see-you-in-vancouver"
],
"guest": "Al Michaels, David Ross"
},
{
"date": "2010-02-22",
"videos": [
"http://thecolbertreport.cc.com/videos/jvyagn/exclusive---skate-expectations---speedskating-team-training-pt--1",
"http://thecolbertreport.cc.com/videos/rbcb67/intro---02-22-10",
"http://thecolbertreport.cc.com/videos/racwcb/vancouverage-2010---ed-colbert",
"http://thecolbertreport.cc.com/videos/tzovg4/better-know-a-riding---vancouver-s-south",
"http://thecolbertreport.cc.com/videos/5l4d9t/better-know-a-riding---vancouver-s-south---ujjal-dosanjh",
"http://thecolbertreport.cc.com/videos/gg3l88/shaun-white",
"http://thecolbertreport.cc.com/videos/iohppn/sign-off---you-are-not-americans"
],
"guest": "Shaun White"
},
{
"date": "2010-02-23",
"videos": [
"http://thecolbertreport.cc.com/videos/iar6l3/exclusive---skate-expectations---speedskating-team-training-pt--2",
"http://thecolbertreport.cc.com/videos/us6yyq/america-s-olympic-wins---lindsey-vonn",
"http://thecolbertreport.cc.com/videos/1ftd3s/olympic-international-houses",
"http://thecolbertreport.cc.com/videos/yd5amw/bob-costas",
"http://thecolbertreport.cc.com/videos/4vx1ll/sign-off---bob-costas-rides-the-moose"
],
"guest": "Lindsey Vonn, Bob Costas"
},
{
"date": "2010-02-24",
"videos": [
"http://thecolbertreport.cc.com/videos/j11loy/exclusive---better-know-a-riding---vancouver-s-south---ujjal-dosanjh-pt--1",
"http://thecolbertreport.cc.com/videos/eom1sq/exclusive---better-know-a-riding---vancouver-s-south---ujjal-dosanjh-pt--2",
"http://thecolbertreport.cc.com/videos/8olwnj/exclusive---better-know-a-riding---vancouver-s-south---ujjal-dosanjh-pt--3",
"http://thecolbertreport.cc.com/videos/l0ax8q/exclusive---skate-expectations---speedskating-team-training-pt--3",
"http://thecolbertreport.cc.com/videos/php8ta/cold-war-update---olympic-edition",
"http://thecolbertreport.cc.com/videos/mrk7jd/freud-rage---the-iceman-counseleth",
"http://thecolbertreport.cc.com/videos/7u3h32/ryan-st--onge---jeret-peterson",
"http://thecolbertreport.cc.com/videos/ampazf/sign-off---as-they-say-in-canada"
],
"guest": "Scott Hamilton, Jeret Peterson, Ryan St. Onge"
},
{
"date": "2010-02-25",
"videos": [
"http://thecolbertreport.cc.com/videos/i93x4n/exclusive---skate-expectations---speedskating-team-training-pt--4",
"http://thecolbertreport.cc.com/videos/e7hgxz/intro---02-25-10",
"http://thecolbertreport.cc.com/videos/jy3odd/stephen-distracts-bob-costas",
"http://thecolbertreport.cc.com/videos/zoz0j2/freud-rage---the-iceman-counseleth---shani-davis",
"http://thecolbertreport.cc.com/videos/iactcg/off-notice---canadian-iceholes",
"http://thecolbertreport.cc.com/videos/j2htnd/seth-wescott",
"http://thecolbertreport.cc.com/videos/2pub5y/sign-off---thank-you--everyone"
],
"guest": "Shani Davis, Seth Wescott"
},
{
"date": "2010-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/r61kzy/intro---stephen-wins-the-olympics",
"http://thecolbertreport.cc.com/videos/z9bfu8/president-obama-mentions-stephen",
"http://thecolbertreport.cc.com/videos/4nmlgo/health-care-marriage-counseling",
"http://thecolbertreport.cc.com/videos/6qwf52/olympics-wrap-up---michael-buble",
"http://thecolbertreport.cc.com/videos/ncbadn/don-cheadle",
"http://thecolbertreport.cc.com/videos/zbx22j/sign-off---goodnight"
],
"guest": "Don Cheadle"
},
{
"date": "2010-03-02",
"videos": [
"http://thecolbertreport.cc.com/videos/mevtpj/intro---03-02-10",
"http://thecolbertreport.cc.com/videos/wa48j7/president-obama-s-first-physical",
"http://thecolbertreport.cc.com/videos/u1ymnx/the-word---kid-owe",
"http://thecolbertreport.cc.com/videos/odsatp/colbert-platinum---necker-nymph---lexus-lfa",
"http://thecolbertreport.cc.com/videos/cc44qu/david-brooks",
"http://thecolbertreport.cc.com/videos/ci6g0d/sign-off---goose-that-lays-the-golden-egg"
],
"guest": "David Brooks"
},
{
"date": "2010-03-03",
"videos": [
"http://thecolbertreport.cc.com/videos/srp7ci/jim-bunning-ends-filibuster",
"http://thecolbertreport.cc.com/videos/37u7lc/greece-s-economic-downfall---scheherazade-rehman",
"http://thecolbertreport.cc.com/videos/elhxu1/tip-wag---american-academy-of-pediatrics---starbucks",
"http://thecolbertreport.cc.com/videos/m631tw/garry-wills",
"http://thecolbertreport.cc.com/videos/d3nhmb/sign-off---goodnight"
],
"guest": "Scheherazade Rehman, Garry Wills"
},
{
"date": "2010-03-04",
"videos": [
"http://thecolbertreport.cc.com/videos/lfv3jf/health-care-magic",
"http://thecolbertreport.cc.com/videos/cgobmb/iraqracy",
"http://thecolbertreport.cc.com/videos/qdumax/tip-wag---james-o-keefe---sean-hannity",
"http://thecolbertreport.cc.com/videos/vy9si5/barry-schwartz",
"http://thecolbertreport.cc.com/videos/r3uuup/sign-off---see-you-later--alligator"
],
"guest": "Barry Schwartz"
},
{
"date": "2010-03-08",
"videos": [
"http://thecolbertreport.cc.com/videos/1919hp/exclusive---olympic-international-houses-pt--2",
"http://thecolbertreport.cc.com/videos/zqfavl/action-center---health-care-bill---ezra-klein",
"http://thecolbertreport.cc.com/videos/1nrjt6/tom-hanks-pt--1",
"http://thecolbertreport.cc.com/videos/49pae4/tom-hanks-pt--2",
"http://thecolbertreport.cc.com/videos/60qghm/sign-off---one-thought",
"http://thecolbertreport.cc.com/videos/xdowah/exclusive---olympic-international-houses-pt--1"
],
"guest": "Tom Hanks"
},
{
"date": "2010-03-09",
"videos": [
"http://thecolbertreport.cc.com/videos/6zrwd6/consumer-alert---pringles",
"http://thecolbertreport.cc.com/videos/rokdab/the-word---define---conquer",
"http://thecolbertreport.cc.com/videos/b670fj/tip-wag---joe-lieberman--the-pope---sharks",
"http://thecolbertreport.cc.com/videos/evq830/annie-leonard",
"http://thecolbertreport.cc.com/videos/887xl8/sign-off---goodnight"
],
"guest": "Annie Leonard"
},
{
"date": "2010-03-10",
"videos": [
"http://thecolbertreport.cc.com/videos/rj79bv/intro---03-10-10",
"http://thecolbertreport.cc.com/videos/ij37tl/non-sexual-groping",
"http://thecolbertreport.cc.com/videos/94dkr8/health-care-vote-information-nerve-center---charlie-cook",
"http://thecolbertreport.cc.com/videos/9m4kr7/survival-seed-bank",
"http://thecolbertreport.cc.com/videos/ski7ov/sean-carroll",
"http://thecolbertreport.cc.com/videos/4k81na/sign-off---the-colbert-repoll"
],
"guest": "Sean Carroll"
},
{
"date": "2010-03-11",
"videos": [
"http://thecolbertreport.cc.com/videos/nce2ba/karl-rove-s-new-book",
"http://thecolbertreport.cc.com/videos/8tmwv8/the-colbert-repoll---scott-rasmussen",
"http://thecolbertreport.cc.com/videos/8r95fc/monkey-on-the-lam---florida",
"http://thecolbertreport.cc.com/videos/c8f0b1/david-aaronovitch",
"http://thecolbertreport.cc.com/videos/96nihd/sign-off---thanks--karl-rove"
],
"guest": "David Aaronovitch"
},
{
"date": "2010-03-15",
"videos": [
"http://thecolbertreport.cc.com/videos/mz0yt2/intro---03-15-10",
"http://thecolbertreport.cc.com/videos/hut7vd/daylight-savings-time",
"http://thecolbertreport.cc.com/videos/cfbe28/the-word---afghanistan",
"http://thecolbertreport.cc.com/videos/402t35/i-can-t-believe-it-s-not-buddha---raj-patel",
"http://thecolbertreport.cc.com/videos/rf3mus/robert-baer",
"http://thecolbertreport.cc.com/videos/mdf427/sign-off---goodnight-with-balloon"
],
"guest": "Robert Baer"
},
{
"date": "2010-03-16",
"videos": [
"http://thecolbertreport.cc.com/videos/fmjopd/intro---03-16-10",
"http://thecolbertreport.cc.com/videos/jz5m0e/barack-joe-bama",
"http://thecolbertreport.cc.com/videos/wuyjzf/i-s-on-edjukashun---texas-school-board",
"http://thecolbertreport.cc.com/videos/wl96gx/thought-for-food---donna-simpson--le-whif---cat-litter",
"http://thecolbertreport.cc.com/videos/4h8104/rebecca-skloot",
"http://thecolbertreport.cc.com/videos/r6jed2/sign-off---remember-to-wear-green"
],
"guest": "Rebecca Skloot"
},
{
"date": "2010-03-17",
"videos": [
"http://thecolbertreport.cc.com/videos/86ybsq/ireland-s-shamrock-shortage",
"http://thecolbertreport.cc.com/videos/wpflq2/sport-report---vasectomies--chess-boxing---golf",
"http://thecolbertreport.cc.com/videos/m84hav/united-states-census-2010",
"http://thecolbertreport.cc.com/videos/wqbtkw/nell-irvin-painter",
"http://thecolbertreport.cc.com/videos/vvqhqa/sign-off---goodnight"
],
"guest": "Nell Irvin Painter"
},
{
"date": "2010-03-18",
"videos": [
"http://thecolbertreport.cc.com/videos/9cthmz/middle-eastern-dogs",
"http://thecolbertreport.cc.com/videos/oymi80/glenn-beck-attacks-social-justice---james-martin",
"http://thecolbertreport.cc.com/videos/70uuap/cheating-death---clenched-fingers---pill-reminder",
"http://thecolbertreport.cc.com/videos/42czdy/mary-matalin",
"http://thecolbertreport.cc.com/videos/xqfew6/sign-off---goodnight"
],
"guest": "Mary Matalin"
},
{
"date": "2010-03-29",
"videos": [
"http://thecolbertreport.cc.com/videos/uolmzb/passover-dinner-with-elijah",
"http://thecolbertreport.cc.com/videos/ua8bnx/geriatric-breeding-program",
"http://thecolbertreport.cc.com/videos/ixrazk/the-word---napoleon-blown-apart",
"http://thecolbertreport.cc.com/videos/m8ik8j/passover-commercialism",
"http://thecolbertreport.cc.com/videos/yksbdg/claire-mccaskill",
"http://thecolbertreport.cc.com/videos/s0mkwg/sign-off---friedrich-schiller"
],
"guest": "Sen. Claire McCaskill"
},
{
"date": "2010-03-30",
"videos": [
"http://thecolbertreport.cc.com/videos/13gooh/intro---03-30-10",
"http://thecolbertreport.cc.com/videos/fbk80n/ricky-martin-is-gay",
"http://thecolbertreport.cc.com/videos/fvq7gv/the-word---forgive-and-forget",
"http://thecolbertreport.cc.com/videos/dx0lyr/thought-for-food---corn-diapers--fatty-foods---jamie-oliver",
"http://thecolbertreport.cc.com/videos/51a308/simon-johnson",
"http://thecolbertreport.cc.com/videos/c9ef0m/sign-off---pringles---whipped-cream"
],
"guest": "Simon Johnson"
},
{
"date": "2010-03-31",
"videos": [
"http://thecolbertreport.cc.com/videos/xyd8rc/intro---03-31-10",
"http://thecolbertreport.cc.com/videos/phkk0m/who-s-not-honoring-me-now----peabody-awards",
"http://thecolbertreport.cc.com/videos/mnvsrm/tip-wag---hutaree-militia---abc",
"http://thecolbertreport.cc.com/videos/p9l3um/easter-under-attack---peeps-display-update",
"http://thecolbertreport.cc.com/videos/wj35p0/craig-mullaney",
"http://thecolbertreport.cc.com/videos/bnjl9e/sign-off---finger-pointing-award"
],
"guest": "Craig Mullaney"
},
{
"date": "2010-04-01",
"videos": [
"http://thecolbertreport.cc.com/videos/cej48a/intro---04-01-10",
"http://thecolbertreport.cc.com/videos/iymjih/stephen-gets-a-free-ipad",
"http://thecolbertreport.cc.com/videos/2nbqob/elephant-graveyard---david-frum",
"http://thecolbertreport.cc.com/videos/d9x5mh/jell-o-tampering",
"http://thecolbertreport.cc.com/videos/3z9wwh/judith-shulevitz",
"http://thecolbertreport.cc.com/videos/vjehbr/sign-off---goodnight-with-an-ipad"
],
"guest": "David Frum, Judith Shulevitz"
},
{
"date": "2010-04-05",
"videos": [
"http://thecolbertreport.cc.com/videos/5ehjj8/intro---04-05-10",
"http://thecolbertreport.cc.com/videos/9ef1ri/stephen-converts-to-3d",
"http://thecolbertreport.cc.com/videos/xo27p1/the-word---bait-and-snitch",
"http://thecolbertreport.cc.com/videos/rp7kua/threatdown---fox--the-obamas---time-traveling-brandy-thieves",
"http://thecolbertreport.cc.com/videos/672vju/dean-kamen",
"http://thecolbertreport.cc.com/videos/zv5abl/sign-off---goodnight-in-3d"
],
"guest": "Dean Kamen"
},
{
"date": "2010-04-06",
"videos": [
"http://thecolbertreport.cc.com/videos/l4nkoq/science-catfight---joe-bastardi-vs--brenda-ekwurzel",
"http://thecolbertreport.cc.com/videos/506dri/scrabble-allows-proper-names",
"http://thecolbertreport.cc.com/videos/hovkbz/al-sharpton",
"http://thecolbertreport.cc.com/videos/z3ifg9/sign-off---goodnight"
],
"guest": "Joe Bastardi, Brenda Ekwurzel, Rev. Al Sharpton"
},
{
"date": "2010-04-07",
"videos": [
"http://thecolbertreport.cc.com/videos/b1trvk/tiki-barber-cheats-on-his-wife",
"http://thecolbertreport.cc.com/videos/ov8dk6/tip-wag---hello-kitty-wine---pig-s-blood-filters",
"http://thecolbertreport.cc.com/videos/ds7vyt/nailed--em---fentimans-victorian-lemonade",
"http://thecolbertreport.cc.com/videos/23bsc5/david-simon",
"http://thecolbertreport.cc.com/videos/c3sk5b/sign-off---hello-kitty-wine---cigarettes"
],
"guest": "David Simon"
},
{
"date": "2010-04-08",
"videos": [
"http://thecolbertreport.cc.com/videos/x3hnt4/intro---04-08-10",
"http://thecolbertreport.cc.com/videos/p89oku/tiger-s-nike-commercial",
"http://thecolbertreport.cc.com/videos/06i9x0/the-word---affirmative-inaction",
"http://thecolbertreport.cc.com/videos/as4xr9/the-final-final-frontier",
"http://thecolbertreport.cc.com/videos/kkc8ee/neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/54hsqy/sign-off---no-man-is-a-failure"
],
"guest": "Neil DeGrasse Tyson"
},
{
"date": "2010-04-12",
"videos": [
"http://thecolbertreport.cc.com/videos/5mdm7i/exclusive---julian-assange-extended-interview",
"http://thecolbertreport.cc.com/videos/vxvlp9/unpaid-internship-crackdown",
"http://thecolbertreport.cc.com/videos/ag970g/justice-stevens-replacement---jeffrey-toobin",
"http://thecolbertreport.cc.com/videos/3a0o7p/wikileaks-military-video",
"http://thecolbertreport.cc.com/videos/q1yz2t/julian-assange",
"http://thecolbertreport.cc.com/videos/abcefn/sign-off---goodnight"
],
"guest": "Jeffrey Toobin, Julian Assange"
},
{
"date": "2010-04-13",
"videos": [
"http://thecolbertreport.cc.com/videos/z1lfjo/dow-hits-11-000",
"http://thecolbertreport.cc.com/videos/fzwwcp/the-word---the-lost-cause",
"http://thecolbertreport.cc.com/videos/l0qwni/thought-for-food---mentally-ill-advertisers---german-cupcakes",
"http://thecolbertreport.cc.com/videos/aab36z/jon-mooallem",
"http://thecolbertreport.cc.com/videos/qrdpob/sign-off---cupcake-chicken-sandwich"
],
"guest": "Jon Mooallem"
},
{
"date": "2010-04-14",
"videos": [
"http://thecolbertreport.cc.com/videos/i50gi7/president-obama-bows-again",
"http://thecolbertreport.cc.com/videos/xhpjb5/sunday-morning-fact-checking---jake-tapper---bill-adair",
"http://thecolbertreport.cc.com/videos/f941v8/ryanair-charges-for-toilets",
"http://thecolbertreport.cc.com/videos/ohefue/david-shields",
"http://thecolbertreport.cc.com/videos/igm53s/sign-off---china-s-central-finance-ministry"
],
"guest": "David Shields"
},
{
"date": "2010-04-15",
"videos": [
"http://thecolbertreport.cc.com/videos/eskkbc/intro---04-15-10",
"http://thecolbertreport.cc.com/videos/1fannu/stephen-saves-the-space-program",
"http://thecolbertreport.cc.com/videos/1ymc3v/tip-wag---forbes---hipsters",
"http://thecolbertreport.cc.com/videos/5gztgb/formula-01-liquid-genetic-material",
"http://thecolbertreport.cc.com/videos/q2q4mc/aimee-mullins",
"http://thecolbertreport.cc.com/videos/t03669/sign-off---tax-deadline"
],
"guest": "Aimee Mullins"
},
{
"date": "2010-04-19",
"videos": [
"http://thecolbertreport.cc.com/videos/o36u2p/marilyn-monroe-s-x-rays",
"http://thecolbertreport.cc.com/videos/55ox6j/goldman-sachs--fraud-case---andrew-ross-sorkin",
"http://thecolbertreport.cc.com/videos/cyx4fw/volcano-eyjafjallajokull",
"http://thecolbertreport.cc.com/videos/ca04kl/george-will",
"http://thecolbertreport.cc.com/videos/8di6ao/sign-off---too-big-to-fail"
],
"guest": "Andrew Ross Sorkin, George Will"
},
{
"date": "2010-04-20",
"videos": [
"http://thecolbertreport.cc.com/videos/5kfqlg/intro---04-20-10",
"http://thecolbertreport.cc.com/videos/q0xdhc/robotic-voice-simulator---foreign-accent-syndrome",
"http://thecolbertreport.cc.com/videos/f5imzl/p-k--winsome---tea-party-consulting",
"http://thecolbertreport.cc.com/videos/2o8c1s/stephen-refuses-to-celebrate-4-20",
"http://thecolbertreport.cc.com/videos/n3iff5/jeffrey-katzenberg",
"http://thecolbertreport.cc.com/videos/kuy0dk/sign-off---as-they-say-in-japan"
],
"guest": "Jeffrey Katzenberg"
},
{
"date": "2010-04-21",
"videos": [
"http://thecolbertreport.cc.com/videos/6z2omj/the-new--100-bill",
"http://thecolbertreport.cc.com/videos/2nsr1s/the-word---no-problemo",
"http://thecolbertreport.cc.com/videos/mqfg58/nailed--em---drive-through-rapping",
"http://thecolbertreport.cc.com/videos/0teg38/craig-robinson",
"http://thecolbertreport.cc.com/videos/2tayao/sign-off---donate-to-john-legend-s-charity"
],
"guest": "Craig Robinson"
},
{
"date": "2010-04-22",
"videos": [
"http://thecolbertreport.cc.com/videos/62j0m5/newspapers-celebrate-earth-day",
"http://thecolbertreport.cc.com/videos/tqucn8/the-word---straight-to-video",
"http://thecolbertreport.cc.com/videos/g660yb/bonus-word---defamation-of-independents",
"http://thecolbertreport.cc.com/videos/0le7r3/gorillaz",
"http://thecolbertreport.cc.com/videos/s79r6n/sign-off---this-is-a-fun-job"
],
"guest": "Gorillaz"
},
{
"date": "2010-04-26",
"videos": [
"http://thecolbertreport.cc.com/videos/i6lszt/intro---04-26-10",
"http://thecolbertreport.cc.com/videos/exfe65/boobquake-day-causes-earthquake",
"http://thecolbertreport.cc.com/videos/ddudkb/the-word---docu-drama",
"http://thecolbertreport.cc.com/videos/4qgs1h/indecision-2010---midterm-elections---sue-lowden",
"http://thecolbertreport.cc.com/videos/j7hi89/sharon-jones"
],
"guest": "Sharon Jones and the Dap-Kings"
},
{
"date": "2010-04-27",
"videos": [
"http://thecolbertreport.cc.com/videos/5m4fi7/intro---04-27-10",
"http://thecolbertreport.cc.com/videos/7b23mk/the-real-lloyd-blankfein",
"http://thecolbertreport.cc.com/videos/ais5bh/stephen-hawking-is-such-an-a-hole---encountering-aliens",
"http://thecolbertreport.cc.com/videos/rjye16/conn-iggulden",
"http://thecolbertreport.cc.com/videos/68bzkf/sign-off---six-flags-discount-tickets"
],
"guest": "Conn Iggulden"
},
{
"date": "2010-04-28",
"videos": [
"http://thecolbertreport.cc.com/videos/g493lv/intro---04-28-10",
"http://thecolbertreport.cc.com/videos/uzkxfc/gulf-of-mexico-oil-spill",
"http://thecolbertreport.cc.com/videos/tzdwrb/cheating-death---tobacco-mints--breast-milk---hallucinogens",
"http://thecolbertreport.cc.com/videos/ke79c8/difference-makers---robert-ekas",
"http://thecolbertreport.cc.com/videos/pj9ppq/gregg-easterbrook",
"http://thecolbertreport.cc.com/videos/1tu0hz/sign-off---chief-wandering-meadow-s-headdress"
],
"guest": "Gregg Easterbrook"
},
{
"date": "2010-04-29",
"videos": [
"http://thecolbertreport.cc.com/videos/qu7aln/intro---rube-goldberg-machine",
"http://thecolbertreport.cc.com/videos/dima6g/wind-farm---oil-spill",
"http://thecolbertreport.cc.com/videos/u1djps/california-s-proposition-14---abel-maldonado",
"http://thecolbertreport.cc.com/videos/yqd68y/tip-wag---scientists---kfc",
"http://thecolbertreport.cc.com/videos/byd88g/ok-go"
],
"guest": "Abel Maldonado, OK Go"
},
{
"date": "2010-05-03",
"videos": [
"http://thecolbertreport.cc.com/videos/caaib9/times-square-terrorism",
"http://thecolbertreport.cc.com/videos/i2zwg4/fda-salt-regulation---lori-roman---michael-jacobson",
"http://thecolbertreport.cc.com/videos/bfve2i/bp-s-undersea-dome",
"http://thecolbertreport.cc.com/videos/6yc052/elizabeth-warren",
"http://thecolbertreport.cc.com/videos/jj9r4k/sign-off---lady-liberty-souvenirs"
],
"guest": "Elizabeth Warren"
},
{
"date": "2010-05-04",
"videos": [
"http://thecolbertreport.cc.com/videos/dula0l/intro---05-04-10",
"http://thecolbertreport.cc.com/videos/zfi7tc/boom--doesn-t-go-the-dynamite",
"http://thecolbertreport.cc.com/videos/dvwpph/the-word---flight-risk",
"http://thecolbertreport.cc.com/videos/xyjhb7/stephen-hawking-is-such-an-a-hole---time-travel",
"http://thecolbertreport.cc.com/videos/j2pf36/mark-moffett",
"http://thecolbertreport.cc.com/videos/d97fmn/sign-off---michael-j--fox-gets-locked-in"
],
"guest": "Michael J. Fox, Mark W. Moffett"
},
{
"date": "2010-05-05",
"videos": [
"http://thecolbertreport.cc.com/videos/nlh1ly/intro---05-05-10",
"http://thecolbertreport.cc.com/videos/2nfnz7/nashville-flood-wakeboarder",
"http://thecolbertreport.cc.com/videos/bw8v97/the-enemy-within---backyard-clothesline",
"http://thecolbertreport.cc.com/videos/2p2tqn/alpha-dog-of-the-week---george-rekers",
"http://thecolbertreport.cc.com/videos/pnjs6i/dave-isay",
"http://thecolbertreport.cc.com/videos/xufsxi/sign-off---dancing-with-julian"
],
"guest": "David Isay"
},
{
"date": "2010-05-06",
"videos": [
"http://thecolbertreport.cc.com/videos/pvx1hb/white-people-prayer-gap",
"http://thecolbertreport.cc.com/videos/97ikxz/british-election-couverage---andrew-sullivan",
"http://thecolbertreport.cc.com/videos/8a0q0r/movies-that-are-destroying-america---2010-summer-movie-edition",
"http://thecolbertreport.cc.com/videos/xo7hie/stewart-brand",
"http://thecolbertreport.cc.com/videos/0txjlv/sign-off---the-usa-today"
],
"guest": "Stewart Brand"
},
{
"date": "2010-05-10",
"videos": [
"http://thecolbertreport.cc.com/videos/8bpcly/intro---05-10-10",
"http://thecolbertreport.cc.com/videos/0m67h9/house-returns-the-favor",
"http://thecolbertreport.cc.com/videos/pxkemd/greece-wither-soon---scheherazade-rehman",
"http://thecolbertreport.cc.com/videos/oejc0z/oil-containment-solution-randomizer",
"http://thecolbertreport.cc.com/videos/6ikft9/gary-johnson",
"http://thecolbertreport.cc.com/videos/xeq5yb/sign-off---goodnight"
],
"guest": "Gov. Gary Johnson"
},
{
"date": "2010-05-11",
"videos": [
"http://thecolbertreport.cc.com/videos/n8gkaf/intro---05-11-10",
"http://thecolbertreport.cc.com/videos/pcdm2a/consumer-alert---best-friends-charm-bracelets",
"http://thecolbertreport.cc.com/videos/1227nt/kagan-worship---dahlia-lithwick",
"http://thecolbertreport.cc.com/videos/rp68kf/australian-sperm-shortage",
"http://thecolbertreport.cc.com/videos/d04me7/hampton-sides",
"http://thecolbertreport.cc.com/videos/qv4b2o/sign-off---wriststrong-arm"
],
"guest": "Hampton Sides"
},
{
"date": "2010-05-12",
"videos": [
"http://thecolbertreport.cc.com/videos/nyl5ye/intro---05-12-10",
"http://thecolbertreport.cc.com/videos/rxu3ed/controlled-burn-of-a-natural-gas",
"http://thecolbertreport.cc.com/videos/zf5e7d/threatdown---military-food-police--jazz-robots---pretty-girls",
"http://thecolbertreport.cc.com/videos/0mg8t8/stephen-s-sound-advice---how-to-ace-the-sats",
"http://thecolbertreport.cc.com/videos/jynvz7/deepak-chopra",
"http://thecolbertreport.cc.com/videos/0mpxm3/sign-off---fire-extinguisher-shooting"
],
"guest": "Deepak Chopra"
},
{
"date": "2010-05-13",
"videos": [
"http://thecolbertreport.cc.com/videos/uic1xz/intro---05-13-10",
"http://thecolbertreport.cc.com/videos/mp7sng/confirming-elena",
"http://thecolbertreport.cc.com/videos/o1qad4/the-hold-steady",
"http://thecolbertreport.cc.com/videos/ugcamu/sign-off---time-traveling-brandy-thief"
],
"guest": "The Hold Steady"
},
{
"date": "2010-06-01",
"videos": [
"http://thecolbertreport.cc.com/videos/1heoo5/intro---6-1-10",
"http://thecolbertreport.cc.com/videos/395e6g/vodka-eyeballing",
"http://thecolbertreport.cc.com/videos/6f9c47/up-brit-creek",
"http://thecolbertreport.cc.com/videos/p943d0/failure-to-launch---atlantis-crew",
"http://thecolbertreport.cc.com/videos/ngl48j/ayaan-hirsi-ali",
"http://thecolbertreport.cc.com/videos/jygylj/sign-off---water-eyeballing"
],
"guest": "Ayaan Hirsi Ali"
},
{
"date": "2010-06-02",
"videos": [
"http://thecolbertreport.cc.com/videos/6707v3/intro---6-2-10",
"http://thecolbertreport.cc.com/videos/gqwbeo/japan-s-special-election---kazuo-myazaki",
"http://thecolbertreport.cc.com/videos/qrxaw1/tip-wag---foxconn--charles-taylor---naomi-campbell",
"http://thecolbertreport.cc.com/videos/4dk71f/craziest-f--ing-thing-i-ve-ever-heard---gored-bullfighter",
"http://thecolbertreport.cc.com/videos/dvcqzb/lisa-miller",
"http://thecolbertreport.cc.com/videos/a4ztpz/sign-off---parting-gifts-for-kazuo-myazaki"
],
"guest": "Lisa Miller"
},
{
"date": "2010-06-03",
"videos": [
"http://thecolbertreport.cc.com/videos/d81bvl/intro---6-3-10",
"http://thecolbertreport.cc.com/videos/iy7vo7/crude---unusual",
"http://thecolbertreport.cc.com/videos/44gj25/who-s-watching-the-watchdog----liam-mccormack",
"http://thecolbertreport.cc.com/videos/p34tly/who-s-riding-my-coattails-now----ipad-suit-pocket",
"http://thecolbertreport.cc.com/videos/fo5d9i/vampire-weekend"
],
"guest": "Vampire Weekend"
},
{
"date": "2010-06-07",
"videos": [
"http://thecolbertreport.cc.com/videos/r4arov/intro---6-7-10",
"http://thecolbertreport.cc.com/videos/y0xgng/charity-begins-at-11-30",
"http://thecolbertreport.cc.com/videos/lc7nxu/oil-s-well-that-never-ends",
"http://thecolbertreport.cc.com/videos/c2l6b4/oil-spill-rage---james-carville",
"http://thecolbertreport.cc.com/videos/30w6f5/jonathan-alter",
"http://thecolbertreport.cc.com/videos/ow5rnp/sign-off---gulf-of-america-fund"
],
"guest": "James Carville, Jonathan Alter"
},
{
"date": "2010-06-08",
"videos": [
"http://thecolbertreport.cc.com/videos/uj5obr/obama-s-whoomp--there-it-is-controversy",
"http://thecolbertreport.cc.com/videos/yj9oop/the-word---p-r--mageddon",
"http://thecolbertreport.cc.com/videos/n3e887/mark-frauenfelder",
"http://thecolbertreport.cc.com/videos/r1zjxy/sign-off---the-most-useless-machine"
],
"guest": "Mark Frauenfelder"
},
{
"date": "2010-06-09",
"videos": [
"http://thecolbertreport.cc.com/videos/ou7te0/helen-thomas-s-reputation",
"http://thecolbertreport.cc.com/videos/0eesk5/formidable-opponent---michael-oren",
"http://thecolbertreport.cc.com/videos/41cjs4/shout-out---7th-eaccs",
"http://thecolbertreport.cc.com/videos/12z179/sam-nunn",
"http://thecolbertreport.cc.com/videos/hv8uj4/sign-off---50-hamburgers"
],
"guest": "Amb. Michael Oren, Sen. Sam Nunn"
},
{
"date": "2010-06-10",
"videos": [
"http://thecolbertreport.cc.com/videos/6iz8ha/bp-stock-sinks",
"http://thecolbertreport.cc.com/videos/e46kh9/sport-report---soccer-debate---marc-fisher---mark-starr",
"http://thecolbertreport.cc.com/videos/9rht3y/simulated-mars-mission",
"http://thecolbertreport.cc.com/videos/19ikyl/alan-bean",
"http://thecolbertreport.cc.com/videos/gewg17/sign-off---chocolate-syrup"
],
"guest": "Alan Bean"
},
{
"date": "2010-06-14",
"videos": [
"http://thecolbertreport.cc.com/videos/7xsbh3/intro---6-14-10",
"http://thecolbertreport.cc.com/videos/vlk9h9/america-s-strained-relationship-with-england",
"http://thecolbertreport.cc.com/videos/xhnftx/smokin--pole---the-quest-for-arctic-riches--canada---china",
"http://thecolbertreport.cc.com/videos/b6bfik/who-s-not-honoring-me-now----tonys---mtv-movie-awards",
"http://thecolbertreport.cc.com/videos/bd9ero/stephen-prothero",
"http://thecolbertreport.cc.com/videos/t2lbqh/sign-off---the-new-oxford-american-dictionary"
],
"guest": "Stephen Prothero"
},
{
"date": "2010-06-15",
"videos": [
"http://thecolbertreport.cc.com/videos/ue0g9m/intro---6-15-10",
"http://thecolbertreport.cc.com/videos/w6pwpk/testoster-ruin---hanna-rosin",
"http://thecolbertreport.cc.com/videos/o42e2u/tip-wag---marshall-islands---disney-world-fate",
"http://thecolbertreport.cc.com/videos/zkoqn2/carl-safina",
"http://thecolbertreport.cc.com/videos/vr28jt/sign-off---hot-boxers"
],
"guest": "Dr. Carl Safina"
},
{
"date": "2010-06-16",
"videos": [
"http://thecolbertreport.cc.com/videos/vtw6mw/intro---6-16-10",
"http://thecolbertreport.cc.com/videos/atwjd4/obama-s-bp-oil-spill-speech",
"http://thecolbertreport.cc.com/videos/fq1qpx/the-word----tay-the-cour-e",
"http://thecolbertreport.cc.com/videos/0occfp/brevity-is-the-soul-of-twit",
"http://thecolbertreport.cc.com/videos/ak28k2/devo"
],
"guest": "Devo"
},
{
"date": "2010-06-17",
"videos": [
"http://thecolbertreport.cc.com/videos/zp0vlt/exclusive---who-s-watching-the-watchdog-pt--1",
"http://thecolbertreport.cc.com/videos/mgk9uw/exclusive---who-s-watching-the-watchdog-pt--2",
"http://thecolbertreport.cc.com/videos/lmlfss/obama-s-simplified-bp-oil-spill-speech",
"http://thecolbertreport.cc.com/videos/r0x7kl/south-carolina-s-4th-district-primary---bob-inglis",
"http://thecolbertreport.cc.com/videos/pw3z5k/colbert-platinum---summer-travel-edition",
"http://thecolbertreport.cc.com/videos/psfs9q/david-mamet",
"http://thecolbertreport.cc.com/videos/t0bf7h/sign-off---retweet-for-the-gulf-of-america-fund"
],
"guest": "David Mamet"
},
{
"date": "2010-06-21",
"videos": [
"http://thecolbertreport.cc.com/videos/3xh3zp/us-ties-with-slovenia",
"http://thecolbertreport.cc.com/videos/tsbncg/fallback-position---astronaut-pt--1",
"http://thecolbertreport.cc.com/videos/lw3o9e/joe-barton-s-misconstrued-misconstruction",
"http://thecolbertreport.cc.com/videos/6rxgjl/wes-moore",
"http://thecolbertreport.cc.com/videos/xr56ob/sign-off---spare-cursed-monkey-s-paw"
],
"guest": "Wes Moore"
},
{
"date": "2010-06-22",
"videos": [
"http://thecolbertreport.cc.com/videos/f7v2qo/who-s-riding-my-coattails-now----ipad-suit-pocket",
"http://thecolbertreport.cc.com/videos/mt3j86/stanley-mcchrystal-talks-to-rolling-stone",
"http://thecolbertreport.cc.com/videos/dry79y/fallback-position---astronaut-pt--2",
"http://thecolbertreport.cc.com/videos/eyzb5g/usa-board-of-ophthalmological-freedom",
"http://thecolbertreport.cc.com/videos/ej23e4/gloria-steinem",
"http://thecolbertreport.cc.com/videos/jewfph/sign-off---goodnight"
],
"guest": "Gloria Steinem"
},
{
"date": "2010-06-23",
"videos": [
"http://thecolbertreport.cc.com/videos/h4yffi/intro---6-23-10",
"http://thecolbertreport.cc.com/videos/wcoc11/us-defeats-algeria",
"http://thecolbertreport.cc.com/videos/licobk/yahweh-or-no-way---the-blues-brothers---glenn-beck",
"http://thecolbertreport.cc.com/videos/3dk57p/prophet-glenn-beck---father-guido-sarducci",
"http://thecolbertreport.cc.com/videos/quds8l/tim-westergren",
"http://thecolbertreport.cc.com/videos/p3f9t8/sign-off---tomorrow-s-fallback-position"
],
"guest": "Tim Westergren"
},
{
"date": "2010-06-24",
"videos": [
"http://thecolbertreport.cc.com/videos/k3vali/intro---6-24-10",
"http://thecolbertreport.cc.com/videos/i8ohf4/put-the-cursed-monkey-paw-down",
"http://thecolbertreport.cc.com/videos/5m2oyq/the-word---weapon-of-mass-construction",
"http://thecolbertreport.cc.com/videos/6ppo8y/fallback-position---astronaut-pt--3",
"http://thecolbertreport.cc.com/videos/3td47y/michael-specter",
"http://thecolbertreport.cc.com/videos/86kjse/sign-off---general-s-cap"
],
"guest": "Michael Specter"
},
{
"date": "2010-06-28",
"videos": [
"http://thecolbertreport.cc.com/videos/cchudg/robert-c--byrd-dies-at-92",
"http://thecolbertreport.cc.com/videos/t7kbm8/rolling-stone-article-on-mcchrystal---michael-hastings",
"http://thecolbertreport.cc.com/videos/nxs1np/doomsday-bunkers",
"http://thecolbertreport.cc.com/videos/kpz62f/john-waters",
"http://thecolbertreport.cc.com/videos/q1un38/sign-off---goodnight"
],
"guest": "Michael Hastings, John Waters"
},
{
"date": "2010-06-29",
"videos": [
"http://thecolbertreport.cc.com/videos/8w7w4q/intro---6-29-10",
"http://thecolbertreport.cc.com/videos/5i29xg/supreme-court-justice-sweetness",
"http://thecolbertreport.cc.com/videos/gxmj8l/basketcase---stephie-s-knicks-hoop-de-doo-pt--1",
"http://thecolbertreport.cc.com/videos/cxtlq7/lube-job",
"http://thecolbertreport.cc.com/videos/t7eba8/julian-castro",
"http://thecolbertreport.cc.com/videos/6s4ag9/sign-off---sweetness"
],
"guest": "Mayor Julian Castro"
},
{
"date": "2010-06-30",
"videos": [
"http://thecolbertreport.cc.com/videos/4nay3b/mysteries-of-the-ancient-unknown---king-tut-s-penis-pt--1",
"http://thecolbertreport.cc.com/videos/200t0y/cold-war-update---north-korea---russian-spies",
"http://thecolbertreport.cc.com/videos/85xlkw/nicholas-carr",
"http://thecolbertreport.cc.com/videos/zz75v5/sign-off---goodnight"
],
"guest": "Nicholas Carr"
},
{
"date": "2010-07-01",
"videos": [
"http://thecolbertreport.cc.com/videos/qkh2oy/intro---7-1-10",
"http://thecolbertreport.cc.com/videos/p1rz8m/al-qaeda-starts-inspire-magazine",
"http://thecolbertreport.cc.com/videos/ytd0xh/threatdown---dawn--actual-food---texas-gop",
"http://thecolbertreport.cc.com/videos/zgf08n/tangelo-american-john-boehner",
"http://thecolbertreport.cc.com/videos/7p27ga/manny-howard",
"http://thecolbertreport.cc.com/videos/lruog2/sign-off---obsessive-compulsive-disorder"
],
"guest": "Manny Howard"
},
{
"date": "2010-07-05",
"videos": [
"http://thecolbertreport.cc.com/videos/88l8y3/stephen-is-sick",
"http://thecolbertreport.cc.com/videos/yw04k6/electronic-frontier-foundation---cindy-cohn",
"http://thecolbertreport.cc.com/videos/2vgxvc/unemployment-benefits---paul-krugman",
"http://thecolbertreport.cc.com/videos/tod2oy/michio-kaku",
"http://thecolbertreport.cc.com/videos/59nr33/sign-off---the-hot-zone"
],
"guest": "Paul Krugman, Dr. Michio Kaku"
},
{
"date": "2010-07-06",
"videos": [
"http://thecolbertreport.cc.com/videos/jogb92/intro---7-6-10",
"http://thecolbertreport.cc.com/videos/vh6d9y/latest-soap-opera-news",
"http://thecolbertreport.cc.com/videos/v4t63q/the-word---the-white-stuff",
"http://thecolbertreport.cc.com/videos/52xc1z/i-s-on-edjukashun---loyola--texas-textbooks---wal-mart",
"http://thecolbertreport.cc.com/videos/44dhom/garret-keizer",
"http://thecolbertreport.cc.com/videos/p9lstk/sign-off---goodnight"
],
"guest": "Garret Keizer"
},
{
"date": "2010-07-07",
"videos": [
"http://thecolbertreport.cc.com/videos/yx0x8s/the-carell-corral",
"http://thecolbertreport.cc.com/videos/u8pmv7/the-economist-photoshops-obama-s-picture",
"http://thecolbertreport.cc.com/videos/2vaaww/thought-for-food---kentucky-tuna---grilled-cheese-burger-melt",
"http://thecolbertreport.cc.com/videos/7ctnwz/formula-401--beauty-from-my-beast",
"http://thecolbertreport.cc.com/videos/s7mibo/steve-carell",
"http://thecolbertreport.cc.com/videos/ytvd7r/sign-off---2010-sexy-spermatozoa-calendar"
],
"guest": "Steve Carell"
},
{
"date": "2010-07-08",
"videos": [
"http://thecolbertreport.cc.com/videos/381yrb/intro---7-8-10",
"http://thecolbertreport.cc.com/videos/x5lln0/modest-con-2010",
"http://thecolbertreport.cc.com/videos/zjdl0i/automatics-for-the-people---ilya-shapiro---jackie-hilly",
"http://thecolbertreport.cc.com/videos/eieifn/emergency-thought-for-food---candwich-setback",
"http://thecolbertreport.cc.com/videos/nlmfgk/arturo-rodriguez",
"http://thecolbertreport.cc.com/videos/oc0gsm/sign-off---go-get-a-tan"
],
"guest": "Arturo Rodriguez"
},
{
"date": "2010-07-26",
"videos": [
"http://thecolbertreport.cc.com/videos/xsaeav/intro---7-26-10",
"http://thecolbertreport.cc.com/videos/snrn4u/stephen-s-eco-vacation",
"http://thecolbertreport.cc.com/videos/qqashr/racial-pro-firing",
"http://thecolbertreport.cc.com/videos/1axxh8/nailed--em---polka-piracy",
"http://thecolbertreport.cc.com/videos/u5kfga/hephzibah-anderson",
"http://thecolbertreport.cc.com/videos/rcl3ml/sign-off---bud-light-lime"
],
"guest": "Hephzibah Anderson"
},
{
"date": "2010-07-27",
"videos": [
"http://thecolbertreport.cc.com/videos/aiaw4g/intro---7-27-10",
"http://thecolbertreport.cc.com/videos/56iw57/bp-s-live-hayward-cam",
"http://thecolbertreport.cc.com/videos/m571z2/that-s-the-way-i-leak-it---tom-blanton",
"http://thecolbertreport.cc.com/videos/431v9v/tip-wag---baby-gap--dick-cheney---plants",
"http://thecolbertreport.cc.com/videos/2afxlp/kevin-kline",
"http://thecolbertreport.cc.com/videos/y6qd20/sign-off---goodnight"
],
"guest": "Thomas S. Blanton, Kevin Kline"
},
{
"date": "2010-07-28",
"videos": [
"http://thecolbertreport.cc.com/videos/it4pai/obama-blows-off-the-boy-scouts",
"http://thecolbertreport.cc.com/videos/ce9wme/the-word---ownership-society",
"http://thecolbertreport.cc.com/videos/k9y4mw/republican-gubernatorial-primary-battle-watch--010---tennessee",
"http://thecolbertreport.cc.com/videos/hjiro1/elon-musk",
"http://thecolbertreport.cc.com/videos/fl5n9q/sign-off---bit-of-advice"
],
"guest": "Elon Musk"
},
{
"date": "2010-07-29",
"videos": [
"http://thecolbertreport.cc.com/videos/cjuayn/intro---7-29-10",
"http://thecolbertreport.cc.com/videos/dzk032/the-oil-is-missing",
"http://thecolbertreport.cc.com/videos/i9hga3/thought-for-food---cereal--foot-long-cheeseburger---ecobot-iii",
"http://thecolbertreport.cc.com/videos/jt67k1/apology-box",
"http://thecolbertreport.cc.com/videos/sdjfj9/andy-cohen",
"http://thecolbertreport.cc.com/videos/6hqby7/sign-off---cocktails"
],
"guest": "Andy Cohen"
},
{
"date": "2010-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/07zpy3/intro---8-2-10",
"http://thecolbertreport.cc.com/videos/o9k8cr/stephen-might-be-gay",
"http://thecolbertreport.cc.com/videos/wx3505/sport-report---london-olympics---illegal-bullfighting",
"http://thecolbertreport.cc.com/videos/3dwyx0/alpha-dog-of-the-week---david-h--brooks",
"http://thecolbertreport.cc.com/videos/ln5q1u/jimmy-cliff"
],
"guest": "Jimmy Cliff"
},
{
"date": "2010-08-03",
"videos": [
"http://thecolbertreport.cc.com/videos/s8t2k9/brett-favre-retires-again",
"http://thecolbertreport.cc.com/videos/noj1lw/consumer-protection-agency---barney-frank",
"http://thecolbertreport.cc.com/videos/jrpte4/republican-gubernatorial-primary-battle-watch--010---basil-marceaux-com",
"http://thecolbertreport.cc.com/videos/a5r0r5/laura-ingraham",
"http://thecolbertreport.cc.com/videos/9838f3/sign-off---credit-card-agreement"
],
"guest": "Laura Ingraham"
},
{
"date": "2010-08-04",
"videos": [
"http://thecolbertreport.cc.com/videos/eirad0/basil-marceaux-com---obama-s-birthday",
"http://thecolbertreport.cc.com/videos/4mbc26/p-k--winsome---black-viewer-ratings",
"http://thecolbertreport.cc.com/videos/vhx4eu/threat-standdown---monkey-terrorism",
"http://thecolbertreport.cc.com/videos/t5nlmh/michael-posner",
"http://thecolbertreport.cc.com/videos/gc9gia/sign-off---nielsen-mandela"
],
"guest": "Michael Posner"
},
{
"date": "2010-08-05",
"videos": [
"http://thecolbertreport.cc.com/videos/tsl05q/intro---8-5-10",
"http://thecolbertreport.cc.com/videos/1qu0ts/how-to-ruin-same-sex-marriages",
"http://thecolbertreport.cc.com/videos/gw1rft/pope-s-baseball-cap---catholictv",
"http://thecolbertreport.cc.com/videos/bdzvwl/savion-glover",
"http://thecolbertreport.cc.com/videos/our78a/sign-off---tap-dancing"
],
"guest": "Savion Glover"
},
{
"date": "2010-08-10",
"videos": [
"http://thecolbertreport.cc.com/videos/cfbxpk/intro---8-10-10",
"http://thecolbertreport.cc.com/videos/40r2zf/honoring-martin-luther-king",
"http://thecolbertreport.cc.com/videos/jbgt2s/citizenship-down---akhil-amar",
"http://thecolbertreport.cc.com/videos/v2az23/alpha-dog-of-the-week---steven-slater",
"http://thecolbertreport.cc.com/videos/uhmewn/dylan-ratigan",
"http://thecolbertreport.cc.com/videos/p3wgd1/sign-off---goodnight"
],
"guest": "Dylan Ratigan"
},
{
"date": "2010-08-11",
"videos": [
"http://thecolbertreport.cc.com/videos/jwpn0p/moral-compass-5000-action-center",
"http://thecolbertreport.cc.com/videos/tpcehb/david-finkel",
"http://thecolbertreport.cc.com/videos/j0nge7/sign-off---goodnight"
],
"guest": "David Finkel"
},
{
"date": "2010-08-12",
"videos": [
"http://thecolbertreport.cc.com/videos/ibivj9/intro---8-12-10",
"http://thecolbertreport.cc.com/videos/t6cmn9/happy-ramadan",
"http://thecolbertreport.cc.com/videos/tavgu2/the-word---weapon-of-mass-construction",
"http://thecolbertreport.cc.com/videos/obv2rl/senior-moment",
"http://thecolbertreport.cc.com/videos/lx17lm/chuck-close",
"http://thecolbertreport.cc.com/videos/h6dwnn/sign-off---chuck-close-books"
],
"guest": "Chuck Close"
},
{
"date": "2010-08-16",
"videos": [
"http://thecolbertreport.cc.com/videos/q61axv/growing-intelligence-community---richard-clarke",
"http://thecolbertreport.cc.com/videos/yh08ag/invasion-of-the-country-snatchers",
"http://thecolbertreport.cc.com/videos/gr3fyt/john-fetterman",
"http://thecolbertreport.cc.com/videos/6ksdhb/sign-off---starbucks-latte"
],
"guest": "Richard Clarke, John Fetterman"
},
{
"date": "2010-08-17",
"videos": [
"http://thecolbertreport.cc.com/videos/dlrtyi/intro---8-17-10",
"http://thecolbertreport.cc.com/videos/c3sn86/newsweek-ranks-the-world-s-best-countries",
"http://thecolbertreport.cc.com/videos/2hdefm/better-know-a-lobby---american-meat-institute",
"http://thecolbertreport.cc.com/videos/tno3pg/fox-news-and-republican-party-make-it-official",
"http://thecolbertreport.cc.com/videos/2kzgs4/barry-levine",
"http://thecolbertreport.cc.com/videos/xsqp9j/sign-off---newsweek"
],
"guest": "Barry Levine"
},
{
"date": "2010-08-18",
"videos": [
"http://thecolbertreport.cc.com/videos/vby4js/intro---8-18-10",
"http://thecolbertreport.cc.com/videos/50c2du/brett-favre-returns-to-football",
"http://thecolbertreport.cc.com/videos/08wn77/the-word---borderline-personality",
"http://thecolbertreport.cc.com/videos/l06vi1/don-t-shoot-the-schlessinger",
"http://thecolbertreport.cc.com/videos/389e2m/thomas-french",
"http://thecolbertreport.cc.com/videos/b2scuj/sign-off---sharpened-broom-handle"
],
"guest": "Thomas French"
},
{
"date": "2010-08-19",
"videos": [
"http://thecolbertreport.cc.com/videos/x0zwn9/intro---8-19-10",
"http://thecolbertreport.cc.com/videos/m4f5im/the-word---what-if-you-threw-a-peace-and-nobody-came-",
"http://thecolbertreport.cc.com/videos/2rjk08/all-s-well-that-ends-oil-well---michael-blum",
"http://thecolbertreport.cc.com/videos/c2uztk/jon-krakauer",
"http://thecolbertreport.cc.com/videos/g9w04r/sign-off---goodnight"
],
"guest": "Jon Krakauer"
},
{
"date": "2010-08-23",
"videos": [
"http://thecolbertreport.cc.com/videos/zn0m8s/stephen-wins-an-emmy",
"http://thecolbertreport.cc.com/videos/xa3l6x/the-word---losing-his-religion",
"http://thecolbertreport.cc.com/videos/8vazj8/aqua-threatdown---oyster-sluts--japanese-hackers---israeli-regulators",
"http://thecolbertreport.cc.com/videos/jjg6uf/leslie-kean",
"http://thecolbertreport.cc.com/videos/gbrydj/sign-off---balloon"
],
"guest": "Leslie Kean"
},
{
"date": "2010-08-24",
"videos": [
"http://thecolbertreport.cc.com/videos/8v2r6r/intro---8-24-10",
"http://thecolbertreport.cc.com/videos/ay7pky/terror-bunker-5200",
"http://thecolbertreport.cc.com/videos/rxmuip/the-word---control-self-delete",
"http://thecolbertreport.cc.com/videos/7azwuj/mahmoody-blues",
"http://thecolbertreport.cc.com/videos/vly30s/jeffrey-goldberg",
"http://thecolbertreport.cc.com/videos/p0468k/sign-off---sanitized-goodnight"
],
"guest": "Jeffrey Goldberg"
},
{
"date": "2010-08-25",
"videos": [
"http://thecolbertreport.cc.com/videos/ckwof5/john-mccain-s-victorious-defeat",
"http://thecolbertreport.cc.com/videos/bn16zn/stephen-colbert-university---andrew-hacker",
"http://thecolbertreport.cc.com/videos/nmp9j3/mysteries-of-the-ancient-unknown---king-tut-s-penis-pt--2",
"http://thecolbertreport.cc.com/videos/boejnl/heidi-cullen",
"http://thecolbertreport.cc.com/videos/8mv6il/sign-off---calculator"
],
"guest": "Andrew Hacker, Heidi Cullen"
},
{
"date": "2010-08-26",
"videos": [
"http://thecolbertreport.cc.com/videos/8g8jfw/intro---8-26-10",
"http://thecolbertreport.cc.com/videos/cg8fb2/fox-news-job-opening",
"http://thecolbertreport.cc.com/videos/3k8c17/glenn-livid",
"http://thecolbertreport.cc.com/videos/ozbh2e/you-mosque-be-kidding",
"http://thecolbertreport.cc.com/videos/idhto6/richard-engel",
"http://thecolbertreport.cc.com/videos/054o86/sign-off---speaking-fee"
],
"guest": "Richard Engel"
},
{
"date": "2010-09-07",
"videos": [
"http://thecolbertreport.cc.com/videos/99y0f6/intro---9-7-10",
"http://thecolbertreport.cc.com/videos/xvxdbg/geese-witherspoon",
"http://thecolbertreport.cc.com/videos/os39h8/better-know-a-district---delaware-s-at-large---mike-castle-update",
"http://thecolbertreport.cc.com/videos/ylp5nt/anthony-romero",
"http://thecolbertreport.cc.com/videos/olfody/sign-off---welcome-home-show"
],
"guest": "Anthony Romero"
},
{
"date": "2010-09-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ynyu8x/intro---9-8-10",
"http://thecolbertreport.cc.com/videos/kmgrcb/been-there--won-that---joe-biden---yogi-berra",
"http://thecolbertreport.cc.com/videos/l21o2y/been-there--won-that---ray-odierno",
"http://thecolbertreport.cc.com/videos/dp7uzb/joe-biden",
"http://thecolbertreport.cc.com/videos/r1r2jw/sign-off---thanks-to-the-returning-troops"
],
"guest": "Vice President Joe Biden, Gen. Raymond Odierno"
},
{
"date": "2010-09-09",
"videos": [
"http://thecolbertreport.cc.com/videos/txd70l/been-there--won-that---jim-webb",
"http://thecolbertreport.cc.com/videos/tvmzxz/been-there--won-that---david-petraeus",
"http://thecolbertreport.cc.com/videos/9543jt/brent-cummings---josh-bleill"
],
"guest": "Sen. Jim Webb, Lt. Col. Brent Cummings, John Legend"
},
{
"date": "2010-09-13",
"videos": [
"http://thecolbertreport.cc.com/videos/4q0lgz/intro---9-13-10",
"http://thecolbertreport.cc.com/videos/1x4nj0/microwave-programming",
"http://thecolbertreport.cc.com/videos/wzt5ev/bears---balls---american-apparel---chocolatey",
"http://thecolbertreport.cc.com/videos/nwwxfb/stop-sending-live-animals",
"http://thecolbertreport.cc.com/videos/hr5uxa/lisa-birnbach",
"http://thecolbertreport.cc.com/videos/w7kfgs/sign-off---goodnight"
],
"guest": "Lisa Birnbach"
},
{
"date": "2010-09-14",
"videos": [
"http://thecolbertreport.cc.com/videos/zipkzm/intro---9-14-10",
"http://thecolbertreport.cc.com/videos/pet2x5/peta-criticizes-joe-biden",
"http://thecolbertreport.cc.com/videos/7cbxuw/the-word---mutually-assured-coercion",
"http://thecolbertreport.cc.com/videos/oh49ge/luther-campbell-opposes-ground-zero-mosque",
"http://thecolbertreport.cc.com/videos/yevohc/sean-wilentz",
"http://thecolbertreport.cc.com/videos/fugenz/sign-off---goodnight"
],
"guest": "Sean Wilentz"
},
{
"date": "2010-09-15",
"videos": [
"http://thecolbertreport.cc.com/videos/0hpaxs/intro---9-15-10",
"http://thecolbertreport.cc.com/videos/f8g0cq/libertea",
"http://thecolbertreport.cc.com/videos/7v15m5/atone-phone---joan-rivers-calls",
"http://thecolbertreport.cc.com/videos/n9nk9d/saul-griffith",
"http://thecolbertreport.cc.com/videos/mjozqh/sign-off---world-changing-announcement"
],
"guest": "Saul Griffith"
},
{
"date": "2010-09-16",
"videos": [
"http://thecolbertreport.cc.com/videos/uj8r4c/march-to-keep-fear-alive-announcement",
"http://thecolbertreport.cc.com/videos/5klha6/threatdown---bedbugs---environmentalists---jerome-goddard",
"http://thecolbertreport.cc.com/videos/pck634/lawrence-o-donnell",
"http://thecolbertreport.cc.com/videos/h5yz8n/sign-off---march-to-keep-fear-alive"
],
"guest": "Lawrence O'Donnell"
},
{
"date": "2010-09-20",
"videos": [
"http://thecolbertreport.cc.com/videos/cahpkw/intro---9-20-10",
"http://thecolbertreport.cc.com/videos/1fmwjo/christine-o-donnell-witch-test",
"http://thecolbertreport.cc.com/videos/diatjd/tip-wag---chilean-miners--portland-press-herald---isa-blyth",
"http://thecolbertreport.cc.com/videos/a4y4ey/march-to-keep-fear-alive-media-coverage",
"http://thecolbertreport.cc.com/videos/b65ofd/pavement"
],
"guest": "Pavement"
},
{
"date": "2010-09-21",
"videos": [
"http://thecolbertreport.cc.com/videos/yi7cbo/intro---9-21-10",
"http://thecolbertreport.cc.com/videos/t99up5/in-poor-taste---mark-shriver",
"http://thecolbertreport.cc.com/videos/2vrsvg/colbertslist",
"http://thecolbertreport.cc.com/videos/tnb3an/eric-schmidt",
"http://thecolbertreport.cc.com/videos/kecowj/sign-off---sign-up-for-the-march-to-keep-fear-alive"
],
"guest": "Eric Schmidt"
},
{
"date": "2010-09-22",
"videos": [
"http://thecolbertreport.cc.com/videos/q8xj8c/intro---9-22-10",
"http://thecolbertreport.cc.com/videos/gcap67/the-christine-o-donnell-clip-predictor-3000",
"http://thecolbertreport.cc.com/videos/xq0472/the-word---the-more-you-no",
"http://thecolbertreport.cc.com/videos/xr7q4y/fallback-position---migrant-worker-pt--1",
"http://thecolbertreport.cc.com/videos/kgnwdf/guillermo-del-toro",
"http://thecolbertreport.cc.com/videos/lnpblj/sign-off---stephen-won-t-forgive-you"
],
"guest": "Guillermo Del Toro"
},
{
"date": "2010-09-23",
"videos": [
"http://thecolbertreport.cc.com/videos/e9ulyf/intro---9-23-10",
"http://thecolbertreport.cc.com/videos/puxqvp/fallback-position---migrant-worker-pt--2",
"http://thecolbertreport.cc.com/videos/imp10g/sanchez-bump",
"http://thecolbertreport.cc.com/videos/937jzh/oscar-goodman",
"http://thecolbertreport.cc.com/videos/hitep1/sign-off---american-history-lesson"
],
"guest": "Oscar Goodman"
},
{
"date": "2010-09-27",
"videos": [
"http://thecolbertreport.cc.com/videos/esvw5v/intro---9-27-10",
"http://thecolbertreport.cc.com/videos/aychpz/corn-packer-apology",
"http://thecolbertreport.cc.com/videos/nc19il/the-delawert-report",
"http://thecolbertreport.cc.com/videos/pcae92/the-word---army-of-mum",
"http://thecolbertreport.cc.com/videos/kby55r/yahweh-or-no-way---ihop---antonio-federici-ad",
"http://thecolbertreport.cc.com/videos/y2afey/ken-burns",
"http://thecolbertreport.cc.com/videos/g2pys1/sign-off---goodnight"
],
"guest": "Ken Burns"
},
{
"date": "2010-09-28",
"videos": [
"http://thecolbertreport.cc.com/videos/s437p7/intro---9-28-10",
"http://thecolbertreport.cc.com/videos/gspyir/left-behind---paul-begala",
"http://thecolbertreport.cc.com/videos/57ib6e/terror-a-new-one",
"http://thecolbertreport.cc.com/videos/ut4vp1/ross-douthat",
"http://thecolbertreport.cc.com/videos/0pm7c2/sign-off---democratic-grave"
],
"guest": "Paul Begala, Ross Douthat"
},
{
"date": "2010-09-29",
"videos": [
"http://thecolbertreport.cc.com/videos/umvy3w/march-to-keep-fear-alive-insanity-bus",
"http://thecolbertreport.cc.com/videos/kup6co/the-word---original-spin",
"http://thecolbertreport.cc.com/videos/z1c69t/threatdown---record-breaking-gays--koalas---purell",
"http://thecolbertreport.cc.com/videos/q56zhc/steven-rattner",
"http://thecolbertreport.cc.com/videos/kn5pkq/sign-off---sign-up-for-the-march-to-keep-fear-alive"
],
"guest": "Steve Rattner"
},
{
"date": "2010-09-30",
"videos": [
"http://thecolbertreport.cc.com/videos/umgd4n/intro---9-30-10",
"http://thecolbertreport.cc.com/videos/xic7q8/president-obama-endorses-the-rally-to-restore-sanity",
"http://thecolbertreport.cc.com/videos/xd5pkh/droid-rage",
"http://thecolbertreport.cc.com/videos/w8i263/stat-of-the-union",
"http://thecolbertreport.cc.com/videos/h7gmgz/aaron-sorkin",
"http://thecolbertreport.cc.com/videos/7zrc6h/sign-off---march-to-keep-fear-alive-costumes"
],
"guest": "Aaron Sorkin"
},
{
"date": "2010-10-04",
"videos": [
"http://thecolbertreport.cc.com/videos/vwiap8/intro---10-4-10",
"http://thecolbertreport.cc.com/videos/h7fctl/we-world-war-won-it",
"http://thecolbertreport.cc.com/videos/k8t4ao/the-word---it-s-a-small-minded-world",
"http://thecolbertreport.cc.com/videos/nbdcz5/tip-wag---tea-party-coloring-book---calm-legislation",
"http://thecolbertreport.cc.com/videos/pl2b2g/eugene-robinson",
"http://thecolbertreport.cc.com/videos/3w0ogs/sign-off---matching-donor"
],
"guest": "Eugene Robinson"
},
{
"date": "2010-10-05",
"videos": [
"http://thecolbertreport.cc.com/videos/72j4yn/intro---10-5-10",
"http://thecolbertreport.cc.com/videos/9xty22/american-sexual-habits",
"http://thecolbertreport.cc.com/videos/0xyglo/gang-busters---john-burnett",
"http://thecolbertreport.cc.com/videos/e4gleb/langur-monkey-security",
"http://thecolbertreport.cc.com/videos/98qo87/leon-botstein",
"http://thecolbertreport.cc.com/videos/gi2fk6/sign-off---goodnight"
],
"guest": "Leon Botstein"
},
{
"date": "2010-10-06",
"videos": [
"http://thecolbertreport.cc.com/videos/pg4r1d/intro---10-6-10",
"http://thecolbertreport.cc.com/videos/gu3bg9/tiny-triumphs---environmentalist-ear-pollution",
"http://thecolbertreport.cc.com/videos/rex0nc/rawesome-foods-raid",
"http://thecolbertreport.cc.com/videos/6krvaq/mavis-staples---jeff-tweedy",
"http://thecolbertreport.cc.com/videos/01gaiu/sign-off---you-are-not-alone"
],
"guest": "Mavis Staples & Jeff Tweedy"
},
{
"date": "2010-10-07",
"videos": [
"http://thecolbertreport.cc.com/videos/sy1j26/indecision-2010---revenge-of-the-fallen---fearstock-com",
"http://thecolbertreport.cc.com/videos/5qjigz/proposition-19---joseph-califano---gary-johnson",
"http://thecolbertreport.cc.com/videos/rzuziw/donorschoose-org-fear-drawings",
"http://thecolbertreport.cc.com/videos/077dy4/davis-guggenheim",
"http://thecolbertreport.cc.com/videos/th4oe4/sign-off---don-t-go-to-donorschoose-com"
],
"guest": "Davis Guggenheim"
},
{
"date": "2010-10-11",
"videos": [
"http://thecolbertreport.cc.com/videos/mnxgqn/intro---10-11-10",
"http://thecolbertreport.cc.com/videos/2buyr8/rich-iott-wears-a-nazi-uniform",
"http://thecolbertreport.cc.com/videos/f1n1ah/threatdown---muslim-edition",
"http://thecolbertreport.cc.com/videos/6x3w7h/formula-4-your-eyes-only",
"http://thecolbertreport.cc.com/videos/l23gil/robert-reich",
"http://thecolbertreport.cc.com/videos/6314hj/sign-off---stephen-needs-a-place-to-hold-his-march"
],
"guest": "Robert Reich"
},
{
"date": "2010-10-12",
"videos": [
"http://thecolbertreport.cc.com/videos/ksbkyk/intro---10-12-10",
"http://thecolbertreport.cc.com/videos/que3dz/101-year-old-woman-becomes-a-u-s--citizen",
"http://thecolbertreport.cc.com/videos/xpawsw/tip-wag---peabody-public-schools--andy-rooney---ground-zero-mosque-design",
"http://thecolbertreport.cc.com/videos/o656bc/merch-to-keep-fear-alive",
"http://thecolbertreport.cc.com/videos/bncunr/brendan-steinhauser",
"http://thecolbertreport.cc.com/videos/4i1iy2/sign-off---apple-filled-with-razor-blades"
],
"guest": "Brendan Steinhauser"
},
{
"date": "2010-10-13",
"videos": [
"http://thecolbertreport.cc.com/videos/nkf1gw/intro---10-13-10",
"http://thecolbertreport.cc.com/videos/40azz5/america-helps-rescue-chilean-miners",
"http://thecolbertreport.cc.com/videos/fg5dcw/sport-report---steroids--commonwealth-games---brett-favre-s-sexting",
"http://thecolbertreport.cc.com/videos/nq3g54/tax-shelter-skelter",
"http://thecolbertreport.cc.com/videos/ip94pd/austan-goolsbee",
"http://thecolbertreport.cc.com/videos/7n0fzv/sign-off---tic-tac-toe-with-austan-goolsbee"
],
"guest": "Austan Goolsbee"
},
{
"date": "2010-10-14",
"videos": [
"http://thecolbertreport.cc.com/videos/ke3ug4/transitive-property-of-christine-o-donnell",
"http://thecolbertreport.cc.com/videos/jvi6id/people-who-are-destroying-america---landscaping-goats",
"http://thecolbertreport.cc.com/videos/8kgt7i/rally-to-restore-sanity-and-or-fear-chinatown-bus-tickets",
"http://thecolbertreport.cc.com/videos/wc2nwv/bill-bryson",
"http://thecolbertreport.cc.com/videos/ns0u0b/sign-off---oprah-is-wonderful"
],
"guest": "Bill Bryson"
},
{
"date": "2010-10-25",
"videos": [
"http://thecolbertreport.cc.com/videos/ou6z90/indecision-2010---revenge-of-the-fallen---sean-bielat---ken-buck",
"http://thecolbertreport.cc.com/videos/t96zw6/the-word---midterm-erection",
"http://thecolbertreport.cc.com/videos/r3cpem/who-s-honoring-me-now----colbert-nation-five-years-of-excellence-award",
"http://thecolbertreport.cc.com/videos/tx8w6w/nicholas-negroponte",
"http://thecolbertreport.cc.com/videos/hjbcjo/sign-off---fifth-anniversary-portrait"
],
"guest": "Nicholas Negroponte"
},
{
"date": "2010-10-26",
"videos": [
"http://thecolbertreport.cc.com/videos/vtn4dg/intro---10-26-10",
"http://thecolbertreport.cc.com/videos/upm6ow/stephen-appears-in-the-new-york-times-crossword-puzzle",
"http://thecolbertreport.cc.com/videos/rh943m/the-word---invisible-inc-",
"http://thecolbertreport.cc.com/videos/57deny/food-insurance-insurance",
"http://thecolbertreport.cc.com/videos/9dol4n/garry-wills",
"http://thecolbertreport.cc.com/videos/ifnetg/sign-off---stream-elvis-costello-s-national-ransom"
],
"guest": "Gary Wills"
},
{
"date": "2010-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/qjfe6u/exclusive---have-you-seen-the-ghost-of-jon-",
"http://thecolbertreport.cc.com/videos/iyha0d/intro---10-27-10",
"http://thecolbertreport.cc.com/videos/a393lf/rand-paul-supporter-stomps-on-liberal-activist-s-head",
"http://thecolbertreport.cc.com/videos/ah47vl/indecision-2010---revenge-of-the-fallen---tom-perriello",
"http://thecolbertreport.cc.com/videos/k3z37d/snooki-halloween-costume---spooky-rally-song",
"http://thecolbertreport.cc.com/videos/tmruw9/apolo-ohno",
"http://thecolbertreport.cc.com/videos/g0i5r2/sign-off---2010-election-map-from-denny-s"
],
"guest": "Rep. Tom Perriello, Apolo Anton Ohno"
},
{
"date": "2010-10-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ea746g/the-mcrib-is-back",
"http://thecolbertreport.cc.com/videos/y2nj3n/fear-for-all-pt--1",
"http://thecolbertreport.cc.com/videos/ttx9jf/fear-for-all-pt--2",
"http://thecolbertreport.cc.com/videos/el1mv0/maira-kalman",
"http://thecolbertreport.cc.com/videos/p6c0ah/sign-off---see-you-at-the-rally"
],
"guest": "Maira Kalman"
},
{
"date": "2010-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/4or1uk/intro---11-1-10",
"http://thecolbertreport.cc.com/videos/pjth2k/a-fond-look-back-at-the-rally",
"http://thecolbertreport.cc.com/videos/6y87u2/midterm-senate-races---nevada--alaska---delaware",
"http://thecolbertreport.cc.com/videos/ghbjcp/hispanic-and-gay-voters-should-stay-at-home",
"http://thecolbertreport.cc.com/videos/r4udbe/jonathan-alter",
"http://thecolbertreport.cc.com/videos/h06l8n/sign-off---don-t-forget-to-vote"
],
"guest": "Jonathan Alter"
},
{
"date": "2010-11-02",
"videos": [
"http://thecolbertreport.cc.com/videos/q6wjad/indecision-2010---intro---11-2-10",
"http://thecolbertreport.cc.com/videos/5y5ul8/indecision-2010---gop-takes-house",
"http://thecolbertreport.cc.com/videos/yubkdk/indecision-2010---david-frum",
"http://thecolbertreport.cc.com/videos/ii11zs/indecision-2010---katrina-vanden-heuvel",
"http://thecolbertreport.cc.com/videos/fpxe9g/indecision-2010---sign-off---election-to-end-all-elections"
],
"guest": "Katrina vanden Heuvel, David Frum"
},
{
"date": "2010-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/npkdbl/intro---11-3-10",
"http://thecolbertreport.cc.com/videos/dnol9b/we-hardly-better-knew-ye",
"http://thecolbertreport.cc.com/videos/tsa7r8/stephen-colbert-gives-you-props",
"http://thecolbertreport.cc.com/videos/g1n60y/doris-kearns-goodwin",
"http://thecolbertreport.cc.com/videos/0ciqy7/sign-off---smiley-face-balloon"
],
"guest": "Doris Kearns Goodwin"
},
{
"date": "2010-11-04",
"videos": [
"http://thecolbertreport.cc.com/videos/ze4pgk/intro---11-4-10",
"http://thecolbertreport.cc.com/videos/jssup2/spider-man-is-alaska-s-write-in-candidate",
"http://thecolbertreport.cc.com/videos/59l5bf/tip-wag---tsa--bert---dogs",
"http://thecolbertreport.cc.com/videos/px319n/elvis-costello"
],
"guest": "Elvis Costello"
},
{
"date": "2010-11-08",
"videos": [
"http://thecolbertreport.cc.com/videos/bf24qu/one-hour-in-the-future",
"http://thecolbertreport.cc.com/videos/odml1w/the-word---nothingness",
"http://thecolbertreport.cc.com/videos/450kbl/president-obama-s-expensive-trip-to-india",
"http://thecolbertreport.cc.com/videos/itfuo6/reza-aslan",
"http://thecolbertreport.cc.com/videos/flh0gj/sign-off---battleship"
],
"guest": "Reza Aslan"
},
{
"date": "2010-11-09",
"videos": [
"http://thecolbertreport.cc.com/videos/ndicnt/decision-points",
"http://thecolbertreport.cc.com/videos/t6dluv/house-oversight-committee-hearings---abbe-lowell",
"http://thecolbertreport.cc.com/videos/2tsnui/craziest-f--king-thing-i-ve-ever-heard---crab-vending-machines",
"http://thecolbertreport.cc.com/videos/thu56b/cee-lo-green"
],
"guest": "Cee-Lo Green"
},
{
"date": "2010-11-10",
"videos": [
"http://thecolbertreport.cc.com/videos/r8nn6k/michelle-obama-s-embarrassing-handshake",
"http://thecolbertreport.cc.com/videos/h0bv7g/america-s-job-loss---beri-fox",
"http://thecolbertreport.cc.com/videos/qra7vl/statue-of-jesus",
"http://thecolbertreport.cc.com/videos/0cxark/martha-stewart",
"http://thecolbertreport.cc.com/videos/gd9t0s/sign-off---saltine-hors-d-oeuvres"
],
"guest": "Martha Stewart"
},
{
"date": "2010-11-11",
"videos": [
"http://thecolbertreport.cc.com/videos/vavqn0/colbert-platinum---kanye-west---million-dollar-advent-calendar-segment",
"http://thecolbertreport.cc.com/videos/6py8bn/intro---11-11-10",
"http://thecolbertreport.cc.com/videos/6obewf/stephen-absorbs-gene-shalit-s-opinions",
"http://thecolbertreport.cc.com/videos/pigos8/colbert-platinum---kanye-west---million-dollar-advent-calendar",
"http://thecolbertreport.cc.com/videos/8zchd5/stephen-trademarks-dated-catchphrases",
"http://thecolbertreport.cc.com/videos/opi39p/quincy-jones",
"http://thecolbertreport.cc.com/videos/dlv5sb/sign-off---if-it-walks-like-a-duck"
],
"guest": "Quincy Jones"
},
{
"date": "2010-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/zwpnzb/finding-mr--goodwrench",
"http://thecolbertreport.cc.com/videos/dzeed3/tsa-full-body-scanners---jeffrey-goldberg",
"http://thecolbertreport.cc.com/videos/yi115x/garfield-and-president-obama-s-veterans-day-controversies",
"http://thecolbertreport.cc.com/videos/zgerlg/david-stern",
"http://thecolbertreport.cc.com/videos/f5nt0v/sign-off---garfield-loves-veterans"
],
"guest": "David Stern"
},
{
"date": "2010-11-16",
"videos": [
"http://thecolbertreport.cc.com/videos/a6jx8i/intro---11-16-10",
"http://thecolbertreport.cc.com/videos/r1nlt4/prince-william-proposes-to-kate-middleton",
"http://thecolbertreport.cc.com/videos/6x0tmp/thought-for-food---c-zurrrre--medal-of-hunger-winner---cheesercize",
"http://thecolbertreport.cc.com/videos/5n8eoi/stephen-colbert-s-report",
"http://thecolbertreport.cc.com/videos/brwtip/john-legend"
],
"guest": "John Legend"
},
{
"date": "2010-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/13lnab/intro---11-17-10",
"http://thecolbertreport.cc.com/videos/bzhpi2/charlie-rangel--you-got-mailed",
"http://thecolbertreport.cc.com/videos/izlih7/old-people-in-space",
"http://thecolbertreport.cc.com/videos/rhup4k/chair-apparent",
"http://thecolbertreport.cc.com/videos/x10udl/ian-frazier",
"http://thecolbertreport.cc.com/videos/iu8jdu/synchronize-watches-to-colbert-time"
],
"guest": "Ian Frazier"
},
{
"date": "2010-11-18",
"videos": [
"http://thecolbertreport.cc.com/videos/rip59b/stephen-pardons-joseph-gobbles",
"http://thecolbertreport.cc.com/videos/6dqu0c/tip-wag---pope-benedict-xvi--trick-play---joseph-gobbles",
"http://thecolbertreport.cc.com/videos/fbks4j/joseph-gobbles-shoots-jay-the-intern",
"http://thecolbertreport.cc.com/videos/9ldbp0/salvatore-giunta",
"http://thecolbertreport.cc.com/videos/92wwov/sign-off---happy-thanksgiving"
],
"guest": "Staff Sgt. Salvatore Giunta"
},
{
"date": "2010-11-29",
"videos": [
"http://thecolbertreport.cc.com/videos/fyh8jk/intro---11-29-10",
"http://thecolbertreport.cc.com/videos/5liwl3/black-friday-interpretation",
"http://thecolbertreport.cc.com/videos/qhebrf/better-business-hero",
"http://thecolbertreport.cc.com/videos/1fhpey/dan-savage",
"http://thecolbertreport.cc.com/videos/nilxac/sign-off---goodnight"
],
"guest": "Dan Savage"
},
{
"date": "2010-11-30",
"videos": [
"http://thecolbertreport.cc.com/videos/0th7i0/god-drops-steve-johnson-s-football-pass",
"http://thecolbertreport.cc.com/videos/rd3bzl/wikileaks-document-dump---james-rubin",
"http://thecolbertreport.cc.com/videos/t2kayc/soap-opera-product-placement",
"http://thecolbertreport.cc.com/videos/5qjkay/tom-vilsack",
"http://thecolbertreport.cc.com/videos/ovt98b/sign-off---chex-mix-product-placement"
],
"guest": "Tom Vilsack"
},
{
"date": "2010-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/373wri/return-of-the-estate-tax",
"http://thecolbertreport.cc.com/videos/hml13u/lame-duck-congress---jake-tapper",
"http://thecolbertreport.cc.com/videos/df8z4y/cheating-death---calming-meat-goggles---the-ithrone",
"http://thecolbertreport.cc.com/videos/hbifbv/michelle-rhee",
"http://thecolbertreport.cc.com/videos/5oq9dq/sign-off---up-on-the-lingo"
],
"guest": "Michelle Rhee"
},
{
"date": "2010-12-02",
"videos": [
"http://thecolbertreport.cc.com/videos/d067b7/intro---12-2-10",
"http://thecolbertreport.cc.com/videos/y4fa8v/john-thune-looks-presidential",
"http://thecolbertreport.cc.com/videos/vaqkqk/the-word---the-great-white-wail",
"http://thecolbertreport.cc.com/videos/efh5u1/the-blitzkrieg-on-grinchitude---atheist-billboard---capitol-christmas-tree",
"http://thecolbertreport.cc.com/videos/trmu6j/david-stockman",
"http://thecolbertreport.cc.com/videos/v9n94y/sign-off---chinese-finger-trap"
],
"guest": "David Stockman"
},
{
"date": "2010-12-06",
"videos": [
"http://thecolbertreport.cc.com/videos/exzvsm/cosmo-is-available-in-mongolia",
"http://thecolbertreport.cc.com/videos/bwubcy/the-word---unrequited-gov",
"http://thecolbertreport.cc.com/videos/eoidl7/mysteries-of-the-ancient-unknown---the-pursuit-of-the-pharaoh-s-phallus-pt--1",
"http://thecolbertreport.cc.com/videos/wdodc8/garry-trudeau",
"http://thecolbertreport.cc.com/videos/gktluk/sign-off---goodnight"
],
"guest": "Garry Trudeau"
},
{
"date": "2010-12-07",
"videos": [
"http://thecolbertreport.cc.com/videos/ishllr/extension-of-the-bush-tax-cuts",
"http://thecolbertreport.cc.com/videos/n0u86v/mysteries-of-the-ancient-unknown---the-pursuit-of-the-pharaoh-s-phallus-pt--2",
"http://thecolbertreport.cc.com/videos/ya6qw9/poll-to-repeal-don-t-ask--don-t-tell",
"http://thecolbertreport.cc.com/videos/gf8r28/david-eisenhower---julie-nixon-eisenhower",
"http://thecolbertreport.cc.com/videos/99syt9/sign-off---goodnight"
],
"guest": "Julie Nixon Eisenhower & David Eisenhower"
},
{
"date": "2010-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/f6likw/exclusive---steve-martin-extended-segment",
"http://thecolbertreport.cc.com/videos/kml8x8/tip-wag---art-edition---brent-glass",
"http://thecolbertreport.cc.com/videos/2akwcg/steve-martin-pt--1",
"http://thecolbertreport.cc.com/videos/yqcbtk/steve-martin-pt--2",
"http://thecolbertreport.cc.com/videos/ct0ud7/sign-off---steve-martin-mask"
],
"guest": "Steve Martin"
},
{
"date": "2010-12-09",
"videos": [
"http://thecolbertreport.cc.com/videos/znivka/israel-shark-conspiracy",
"http://thecolbertreport.cc.com/videos/fi19uy/international-manhunt-for-julian-assange---daniel-ellsberg",
"http://thecolbertreport.cc.com/videos/fk2pnu/art-stephen-up-challenge---william-wegman",
"http://thecolbertreport.cc.com/videos/1akto9/julie-taymor",
"http://thecolbertreport.cc.com/videos/hcd55s/sign-off---christmas-party"
],
"guest": "Julie Taymor"
},
{
"date": "2010-12-13",
"videos": [
"http://thecolbertreport.cc.com/videos/f2kl6o/intro---12-13-10",
"http://thecolbertreport.cc.com/videos/eolk50/found-goldman-sachs-mastercard",
"http://thecolbertreport.cc.com/videos/c1yv8b/the-word---swift-payment",
"http://thecolbertreport.cc.com/videos/btsd4o/blitzkrieg-on-grinchitude---gretchen-carlson---christian-nation-christ-mas-tree",
"http://thecolbertreport.cc.com/videos/rufuhr/patti-smith",
"http://thecolbertreport.cc.com/videos/t0590z/sign-off---remembering-richard-holbrooke"
],
"guest": "Patti Smith"
},
{
"date": "2010-12-14",
"videos": [
"http://thecolbertreport.cc.com/videos/ycermm/goldman-sachs-lawyers-want-buckley-t--ratchford-s-card-back",
"http://thecolbertreport.cc.com/videos/rsdutw/prop-8-challenge---david-boies",
"http://thecolbertreport.cc.com/videos/4tx5ks/stephen-wins-twitter---biz-stone",
"http://thecolbertreport.cc.com/videos/ouqrnm/stephen-sondheim",
"http://thecolbertreport.cc.com/videos/ajg2h0/sign-off---closing-credits"
],
"guest": "David Boies, Stephen Sondheim"
},
{
"date": "2010-12-15",
"videos": [
"http://thecolbertreport.cc.com/videos/9gi4ae/intro---12-15-10",
"http://thecolbertreport.cc.com/videos/67nfxh/scanner-defying-pancakes",
"http://thecolbertreport.cc.com/videos/fv3gl9/world-war-3-0---omar-wasow",
"http://thecolbertreport.cc.com/videos/rr8wvk/tiny-triumphs---lethal-drug-shortage",
"http://thecolbertreport.cc.com/videos/e05lny/laird-hamilton",
"http://thecolbertreport.cc.com/videos/nv267b/sign-off---winter-fashion-tip"
],
"guest": "Omar Wasow, Laird Hamilton"
},
{
"date": "2010-12-16",
"videos": [
"http://thecolbertreport.cc.com/videos/cb861t/christmas-holy-week",
"http://thecolbertreport.cc.com/videos/m38gcf/jesus-is-a-liberal-democrat",
"http://thecolbertreport.cc.com/videos/tvxon5/amy-sedaris",
"http://thecolbertreport.cc.com/videos/zejxdk/paul-simon"
],
"guest": "Amy Sedaris, Paul Simon"
}
],
"2011": [
{
"date": "2011-01-03",
"videos": [
"http://thecolbertreport.cc.com/videos/a5rzlq/intro---1-3-11",
"http://thecolbertreport.cc.com/videos/pgayak/snowpocalypse-2010",
"http://thecolbertreport.cc.com/videos/7b084t/tip-wag---susan-g--komen-foundation---spider-man-musical",
"http://thecolbertreport.cc.com/videos/44ybv8/the-enemy-within---caboodle-ranch",
"http://thecolbertreport.cc.com/videos/vopb2f/ed-rendell",
"http://thecolbertreport.cc.com/videos/bvg4tu/sign-off---home-improvement-tip"
],
"guest": "Sen. Bernie Sanders"
},
{
"date": "2011-01-04",
"videos": [
"http://thecolbertreport.cc.com/videos/40y983/intro---1-4-11",
"http://thecolbertreport.cc.com/videos/tq4xo3/native-american-overlords",
"http://thecolbertreport.cc.com/videos/kafccc/gold-faithful",
"http://thecolbertreport.cc.com/videos/0ds0c9/gold-faithful---ron-paul---david-leonhardt",
"http://thecolbertreport.cc.com/videos/leatvt/geoffrey-canada",
"http://thecolbertreport.cc.com/videos/h983ts/sign-off---12-dutchmen-answer"
],
"guest": "John Heilemann"
},
{
"date": "2011-01-05",
"videos": [
"http://thecolbertreport.cc.com/videos/upvgg0/intro---1-5-11",
"http://thecolbertreport.cc.com/videos/ttqn4k/huckleberry-finn-censorship",
"http://thecolbertreport.cc.com/videos/4c01zx/what-s-a-reince-priebus-",
"http://thecolbertreport.cc.com/videos/d2586v/yellowline-international--inc-",
"http://thecolbertreport.cc.com/videos/1yfs5a/atul-gawande",
"http://thecolbertreport.cc.com/videos/ta25ww/sign-off---dark-side-of-the-moon"
],
"guest": "Steve Case"
},
{
"date": "2011-01-06",
"videos": [
"http://thecolbertreport.cc.com/videos/gfffz6/shout-out-to-arby-s",
"http://thecolbertreport.cc.com/videos/g7dtso/john-boehner-s-large-gavel",
"http://thecolbertreport.cc.com/videos/t27er5/cheating-death---placebo-effect--immortality---wild-lynx",
"http://thecolbertreport.cc.com/videos/n6wqjn/bill-o-reilly-proves-god-s-existence---neil-degrasse-tyson",
"http://thecolbertreport.cc.com/videos/i48v1q/ronald-depinho",
"http://thecolbertreport.cc.com/videos/x8bqqt/sign-off---boris-the-lynx"
],
"guest": "Dr. Ronald DePinho"
},
{
"date": "2011-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/qi5a0o/intro---1-10-11",
"http://thecolbertreport.cc.com/videos/xl3r2n/pundits-lay-blame-for-senseless-arizona-attack",
"http://thecolbertreport.cc.com/videos/6s01yh/bull-sessions",
"http://thecolbertreport.cc.com/videos/cng4n9/difference-makers---galactic-edition-pt--1",
"http://thecolbertreport.cc.com/videos/oelxfx/difference-makers---galactic-edition-pt--2",
"http://thecolbertreport.cc.com/videos/gk32r8/fen-montaigne",
"http://thecolbertreport.cc.com/videos/oslcyl/sign-off---goodnight"
],
"guest": "Fen Montaigne"
},
{
"date": "2011-01-11",
"videos": [
"http://thecolbertreport.cc.com/videos/97pzie/intro---1-11-11",
"http://thecolbertreport.cc.com/videos/q63emf/snowstorm-preparation",
"http://thecolbertreport.cc.com/videos/rbg8gh/metunes---grammy-vote---dan-auerbach--patrick-carney---ezra-koenig",
"http://thecolbertreport.cc.com/videos/oqami3/lithuania-perfume",
"http://thecolbertreport.cc.com/videos/mqh8rb/chris-hughes",
"http://thecolbertreport.cc.com/videos/8re8oa/sign-off---pringles"
],
"guest": "Chris Hughes"
},
{
"date": "2011-01-12",
"videos": [
"http://thecolbertreport.cc.com/videos/1aza8n/50-cent-makes-money-on-twitter",
"http://thecolbertreport.cc.com/videos/b4mxvn/the-word---life--liberty-and-the-pursuit-of-angriness",
"http://thecolbertreport.cc.com/videos/56kjjw/bernard-henri-levy-pt--1",
"http://thecolbertreport.cc.com/videos/cmxyxs/bernard-henri-levy-pt--2",
"http://thecolbertreport.cc.com/videos/splrfl/sign-off---goodnight"
],
"guest": "Bernard-Henri Levy"
},
{
"date": "2011-01-13",
"videos": [
"http://thecolbertreport.cc.com/videos/h5qwzv/hitler-s-inspiring-tucson-memorial-speech",
"http://thecolbertreport.cc.com/videos/nhx7bu/thought-for-food---fruit-pouch--doritos-ad---super-big-gulp",
"http://thecolbertreport.cc.com/videos/wdqdqn/israeli-vulture-spy",
"http://thecolbertreport.cc.com/videos/xczq8w/kevin-spacey",
"http://thecolbertreport.cc.com/videos/iyyhr8/sign-off---new-york-post"
],
"guest": "Kevin Spacey"
},
{
"date": "2011-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/iuhos5/intro---1-17-11",
"http://thecolbertreport.cc.com/videos/ztaz7m/martin-luther-king-jr--day-sales",
"http://thecolbertreport.cc.com/videos/9ycstf/the-word---run-for-your-life",
"http://thecolbertreport.cc.com/videos/ib4cpu/art-stephen-up-challenge---wade-hampton",
"http://thecolbertreport.cc.com/videos/kd5rmr/sherry-turkle",
"http://thecolbertreport.cc.com/videos/tj76rr/sign-off---new-york-post"
],
"guest": "Sherry Turkle"
},
{
"date": "2011-01-18",
"videos": [
"http://thecolbertreport.cc.com/videos/fi5nk7/intro---1-18-11",
"http://thecolbertreport.cc.com/videos/y6lk8z/mika-brzezinski-experiences-palin-fatigue",
"http://thecolbertreport.cc.com/videos/1zj4bl/the-word---disintegration",
"http://thecolbertreport.cc.com/videos/l4vdiw/coma-cozy",
"http://thecolbertreport.cc.com/videos/zeukt7/cornel-west",
"http://thecolbertreport.cc.com/videos/njlf77/sign-off---coma-cozy"
],
"guest": "Cornel West"
},
{
"date": "2011-01-19",
"videos": [
"http://thecolbertreport.cc.com/videos/4e1xmn/intro---1-19-11",
"http://thecolbertreport.cc.com/videos/0s8rfq/black-tie-dinner-for-hu-jintao",
"http://thecolbertreport.cc.com/videos/nujiex/tip-wag---four-loko---horoscopes",
"http://thecolbertreport.cc.com/videos/vb8d7c/shout-out---preston-pysh",
"http://thecolbertreport.cc.com/videos/czmy3b/ron-reagan",
"http://thecolbertreport.cc.com/videos/0ycmn7/sign-off---i-eat-america--and-so-can-you---recall"
],
"guest": "Ron Reagan Jr."
},
{
"date": "2011-01-20",
"videos": [
"http://thecolbertreport.cc.com/videos/091ydv/rush-limbaugh-speaks-chinese",
"http://thecolbertreport.cc.com/videos/bq6mnl/state-budget-shortfalls---christine-todd-whitman",
"http://thecolbertreport.cc.com/videos/c8u4qm/50th-anniversary-of-jfk-s-inaugural-address",
"http://thecolbertreport.cc.com/videos/6pfgfg/chris-matthews",
"http://thecolbertreport.cc.com/videos/jjup5d/sign-off---donald-pellview"
],
"guest": "Chris Matthews"
},
{
"date": "2011-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/z2h5xs/intro---1-24-11",
"http://thecolbertreport.cc.com/videos/ry0uh0/stephen-rejects-keith-olbermann-s-power",
"http://thecolbertreport.cc.com/videos/e7bfej/the-word---coverage-of-denial",
"http://thecolbertreport.cc.com/videos/mjnoqk/art-stephen-up-challenge---banksy",
"http://thecolbertreport.cc.com/videos/rsyf0v/charlie-rose",
"http://thecolbertreport.cc.com/videos/v0sh08/sign-off---keith-olbermug"
],
"guest": "Charlie Rose"
},
{
"date": "2011-01-25",
"videos": [
"http://thecolbertreport.cc.com/videos/1mhey7/intro---1-25-11",
"http://thecolbertreport.cc.com/videos/d21szi/the--battle-hymn-of-the-tiger-mother--controversy",
"http://thecolbertreport.cc.com/videos/5198pt/threatdown---radical-muslim-snacks--flying-robot-drones---coked-up-vacuums",
"http://thecolbertreport.cc.com/videos/ooebba/nazi-ometer",
"http://thecolbertreport.cc.com/videos/2lr90o/amy-chua",
"http://thecolbertreport.cc.com/videos/71c1bx/sign-off---stephen-welcomes-cody-price"
],
"guest": "Amy Chua"
},
{
"date": "2011-01-26",
"videos": [
"http://thecolbertreport.cc.com/videos/99necf/anonymous-insider-author-speculation",
"http://thecolbertreport.cc.com/videos/d2sy94/obama-s-state-of-the-union-address---michael-waldman",
"http://thecolbertreport.cc.com/videos/za0351/mr--smith-goes-to-the-state-legislature--then-later-possibly-washington---curtis-oda",
"http://thecolbertreport.cc.com/videos/wja66h/christine-yvette-lewis",
"http://thecolbertreport.cc.com/videos/7znx6n/sign-off---man-handler---fork-phone"
],
"guest": "Michael Waldman, Christine Yvette Lewis"
},
{
"date": "2011-01-27",
"videos": [
"http://thecolbertreport.cc.com/videos/fllqqg/intro---1-27-11",
"http://thecolbertreport.cc.com/videos/959fok/candyquake",
"http://thecolbertreport.cc.com/videos/bhf8jv/time-traveling-porn---daryl-bem",
"http://thecolbertreport.cc.com/videos/uffqf8/gordita-supreme-court",
"http://thecolbertreport.cc.com/videos/zgxlja/brian-greene",
"http://thecolbertreport.cc.com/videos/nkbrns/sign-off---goodnight"
],
"guest": "Dr. Daryl Bem, Brian Greene"
},
{
"date": "2011-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/2wwddt/intro---1-31-11",
"http://thecolbertreport.cc.com/videos/uv1y3k/mubarak--mu-problems",
"http://thecolbertreport.cc.com/videos/w70tw3/mubarak--mu-problems---samer-shehata",
"http://thecolbertreport.cc.com/videos/35ink0/paul-offit",
"http://thecolbertreport.cc.com/videos/ccilnn/sign-off---kim-jong-bear"
],
"guest": "Samer Shehata, Dr. Paul Offit"
},
{
"date": "2011-02-01",
"videos": [
"http://thecolbertreport.cc.com/videos/wk9d57/hosni-mubarak-will-not-run-again",
"http://thecolbertreport.cc.com/videos/ie8q6j/thought-for-food---nestle-corporation",
"http://thecolbertreport.cc.com/videos/2ucxw7/thought-for-food---wyngz---wal-mart",
"http://thecolbertreport.cc.com/videos/odeko3/wal-mart-collaborates-with-obama-administration---leslie-dach",
"http://thecolbertreport.cc.com/videos/4shxg7/michael-lewis",
"http://thecolbertreport.cc.com/videos/s7oggh/sign-off---digiorno-pizza---boneless-wyngz"
],
"guest": "Leslie Dach, Michael Lewis"
},
{
"date": "2011-02-02",
"videos": [
"http://thecolbertreport.cc.com/videos/zdhdko/intro---2-2-11",
"http://thecolbertreport.cc.com/videos/ct2jwf/bing-gets-served",
"http://thecolbertreport.cc.com/videos/a4bw27/cairo-turns-into-the-jersey-shore",
"http://thecolbertreport.cc.com/videos/q27618/crisis-in-egypt",
"http://thecolbertreport.cc.com/videos/yjimo0/tip-wag---british-superman---big-flats-beer",
"http://thecolbertreport.cc.com/videos/dme3nu/sean-dorrance-kelly",
"http://thecolbertreport.cc.com/videos/n2upjg/sign-off---christiane-aman-purr---big-flats-beer"
],
"guest": "Sean Kelly"
},
{
"date": "2011-02-03",
"videos": [
"http://thecolbertreport.cc.com/videos/nn8o94/intro---2-3-11",
"http://thecolbertreport.cc.com/videos/lo20rh/crisis-in-egypt---anderson-cooper---bill-o-reilly",
"http://thecolbertreport.cc.com/videos/vuogyk/sport-report---super-bowl-edition",
"http://thecolbertreport.cc.com/videos/91t3tp/affirmative-reaction",
"http://thecolbertreport.cc.com/videos/i5rwqs/jane-mcgonigal",
"http://thecolbertreport.cc.com/videos/hffd6m/sign-off---newest-member-of-the-colbert-nation"
],
"guest": "Jane McGonigal"
},
{
"date": "2011-02-14",
"videos": [
"http://thecolbertreport.cc.com/videos/kruhy0/intro---2-14-11",
"http://thecolbertreport.cc.com/videos/4drnjr/mysteries-of-the-ancient-unknown---egyptian-coincidence",
"http://thecolbertreport.cc.com/videos/gv0hvh/the-enemy-within---toddler-edition",
"http://thecolbertreport.cc.com/videos/qtecuk/james-murphy-of-lcd-soundsystem",
"http://thecolbertreport.cc.com/videos/4qawhf/sign-off---scoops-of-americone-dream"
],
"guest": "LCD Soundsystem"
},
{
"date": "2011-02-15",
"videos": [
"http://thecolbertreport.cc.com/videos/ynf8rd/intro---2-15-11",
"http://thecolbertreport.cc.com/videos/sjuyr9/italian-bunga-bunga-parties---egyptian-democracy",
"http://thecolbertreport.cc.com/videos/ara6q6/egyptian-democracy---christiane-amanpour",
"http://thecolbertreport.cc.com/videos/n9a7wj/mr--smith-goes-to-the-state-legislature--then-later-possibly-washington---ron-gould",
"http://thecolbertreport.cc.com/videos/uobmig/david-albright",
"http://thecolbertreport.cc.com/videos/95itm9/sign-off---christiane-aman-purr-s-safari-suit"
],
"guest": "Christiane Amanpour, David Albright"
},
{
"date": "2011-02-16",
"videos": [
"http://thecolbertreport.cc.com/videos/bbqm6g/intro---2-16-11",
"http://thecolbertreport.cc.com/videos/bojft9/republican-voters-doubt-obama-s-american-citizenship",
"http://thecolbertreport.cc.com/videos/uk8a3q/tip-wag---colbuffington-re-post--repo-games---whale-fail",
"http://thecolbertreport.cc.com/videos/8r9j45/murdoch-he-wrote",
"http://thecolbertreport.cc.com/videos/re8ih2/eric-foner",
"http://thecolbertreport.cc.com/videos/i84xxd/sign-off---general-butterbean"
],
"guest": "Eric Foner"
},
{
"date": "2011-02-17",
"videos": [
"http://thecolbertreport.cc.com/videos/62enfw/the-huffington-post-posts-about-the-colbuffington-re-post",
"http://thecolbertreport.cc.com/videos/yjsn8n/clarence-thomas-s-financial-disclosure-controversy",
"http://thecolbertreport.cc.com/videos/tvwda6/project-magazine-cover-boy",
"http://thecolbertreport.cc.com/videos/sjlg3t/jeffrey-leonard",
"http://thecolbertreport.cc.com/videos/m0qkxm/sign-off---project-magazine-cover"
],
"guest": "Jeffrey Leonard"
},
{
"date": "2011-02-21",
"videos": [
"http://thecolbertreport.cc.com/videos/86hqgf/turmoil-in-the-middle-east---turmoil-in-the-middle-west",
"http://thecolbertreport.cc.com/videos/lp0v0e/cheating-death---ablibalify---bing-bongavax",
"http://thecolbertreport.cc.com/videos/fwkicl/rick-santorum-internet-search",
"http://thecolbertreport.cc.com/videos/8du0y6/eugene-jarecki",
"http://thecolbertreport.cc.com/videos/58iq33/sign-off---goodnight"
],
"guest": "Eugene Jarecki"
},
{
"date": "2011-02-22",
"videos": [
"http://thecolbertreport.cc.com/videos/bqnw4a/intro---2-22-11",
"http://thecolbertreport.cc.com/videos/bm2a1j/a-less-perfect-union",
"http://thecolbertreport.cc.com/videos/usnwve/a-less-perfect-union---randi-weingarten",
"http://thecolbertreport.cc.com/videos/f6avpd/wisco-inferno---jon-erpenbach",
"http://thecolbertreport.cc.com/videos/p92sec/bing-west",
"http://thecolbertreport.cc.com/videos/2kp9tj/sign-off---democrat-call"
],
"guest": "Randi Weingarten, Bing West"
},
{
"date": "2011-02-23",
"videos": [
"http://thecolbertreport.cc.com/videos/pd1kio/intro---2-23-11",
"http://thecolbertreport.cc.com/videos/883h13/usa-today-infographic-sells-out",
"http://thecolbertreport.cc.com/videos/fn2n7y/bust-in-show",
"http://thecolbertreport.cc.com/videos/tnaq8e/nailed--em---mark-burdett",
"http://thecolbertreport.cc.com/videos/iap6wk/stephanie-coontz",
"http://thecolbertreport.cc.com/videos/uyxtz0/sign-off---rebroadcasts"
],
"guest": "Stephanie Coontz"
},
{
"date": "2011-02-24",
"videos": [
"http://thecolbertreport.cc.com/videos/7a9kp1/era-of-american-dental-exceptionalism-is-over",
"http://thecolbertreport.cc.com/videos/xjtazd/corporate-hacker-tries-to-take-down-wikileaks",
"http://thecolbertreport.cc.com/videos/8jruu4/corporate-hacker-tries-to-take-down-wikileaks---glenn-greenwald",
"http://thecolbertreport.cc.com/videos/tyiacl/republicans-flirt-with-presidential-candidacy",
"http://thecolbertreport.cc.com/videos/hxtqey/mike-huckabee",
"http://thecolbertreport.cc.com/videos/6ahql2/sign-off---elephant-beat"
],
"guest": "Glenn Greenwald, Mike Huckabee"
},
{
"date": "2011-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/8jxxuv/intro---2-28-11",
"http://thecolbertreport.cc.com/videos/8fpe6c/anonymous-hacks-the-colbert-report",
"http://thecolbertreport.cc.com/videos/ohhby5/tip-wag---joe-reed---levi-s-ex-girlfriend-jeans",
"http://thecolbertreport.cc.com/videos/lrah7j/art-stephen-up-challenge---phillips-de-pury-auction",
"http://thecolbertreport.cc.com/videos/4oq5za/michael-scheuer",
"http://thecolbertreport.cc.com/videos/qg45nm/sign-off---tomorrow-s-goodnight-preview"
],
"guest": "Michael Scheuer"
},
{
"date": "2011-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/dbc523/intro---3-1-11",
"http://thecolbertreport.cc.com/videos/hl74h7/muammar-al-gaddafi-competes-with-charlie-sheen",
"http://thecolbertreport.cc.com/videos/ce6ez1/the-word---new-country-for-old-men",
"http://thecolbertreport.cc.com/videos/6zdcls/senior-moment---geriatric-porn",
"http://thecolbertreport.cc.com/videos/zxzpiz/evan-osnos",
"http://thecolbertreport.cc.com/videos/b6gm2j/sign-off---welcome-zachary-paul-dahm"
],
"guest": "Evan Osnos"
},
{
"date": "2011-03-02",
"videos": [
"http://thecolbertreport.cc.com/videos/44fqvj/intro---3-2-11",
"http://thecolbertreport.cc.com/videos/jh2tli/wisconsin-prank-call-bill",
"http://thecolbertreport.cc.com/videos/i9x3xr/the-word---economic-boom",
"http://thecolbertreport.cc.com/videos/uz0ktw/eulogy-spot",
"http://thecolbertreport.cc.com/videos/7lrvtf/harry-connick-jr-",
"http://thecolbertreport.cc.com/videos/ninj2e/sign-off---demise-of-the-white-pages"
],
"guest": "Harry Connick Jr."
},
{
"date": "2011-03-03",
"videos": [
"http://thecolbertreport.cc.com/videos/nb3zpi/fox-news-suspends-contributors",
"http://thecolbertreport.cc.com/videos/7vwzpc/ice-cream-fight-with-jimmy-fallon",
"http://thecolbertreport.cc.com/videos/4oi0dh/ice-cream-hallucination-with-jimmy-fallon",
"http://thecolbertreport.cc.com/videos/zxu7kb/mark-moffett",
"http://thecolbertreport.cc.com/videos/2x8ter/sign-off---late-night-snack"
],
"guest": "Mark W. Moffett"
},
{
"date": "2011-03-07",
"videos": [
"http://thecolbertreport.cc.com/videos/432mwn/intro---3-7-11",
"http://thecolbertreport.cc.com/videos/dmu7rh/stephen-wants-an-ipad-2",
"http://thecolbertreport.cc.com/videos/zql2lp/on-notice---mike-huckabee",
"http://thecolbertreport.cc.com/videos/mrhaui/america-s-next-gop-model",
"http://thecolbertreport.cc.com/videos/ux0w7b/joshua-foer",
"http://thecolbertreport.cc.com/videos/un3kdu/art-stephen-up-challenge---bid-on-stephen-s-portrait"
],
"guest": "Joshua Foer"
},
{
"date": "2011-03-08",
"videos": [
"http://thecolbertreport.cc.com/videos/2s9pic/happy-mardi-gras---international-women-s-day",
"http://thecolbertreport.cc.com/videos/29cv4a/light-bulb-ban",
"http://thecolbertreport.cc.com/videos/yuo5to/light-bulb-ban---dale-bryk",
"http://thecolbertreport.cc.com/videos/2nv2ie/charlie-sheen---fake-rahm-emanuel-on-twitter",
"http://thecolbertreport.cc.com/videos/dqh7vp/dan-sinker",
"http://thecolbertreport.cc.com/videos/wjd0wx/sign-off---welcome-zoe-simone-sanchez"
],
"guest": "Dan Sinker"
},
{
"date": "2011-03-09",
"videos": [
"http://thecolbertreport.cc.com/videos/oivxm4/intro---3-9-11",
"http://thecolbertreport.cc.com/videos/durtx6/stephen-gives-up-catholicism-for-lent",
"http://thecolbertreport.cc.com/videos/c3zm6w/bench-press",
"http://thecolbertreport.cc.com/videos/qi1r7y/bench-press---anthony-weiner",
"http://thecolbertreport.cc.com/videos/mbmsxi/david-brooks",
"http://thecolbertreport.cc.com/videos/bh348l/sign-off---jewish-stephen"
],
"guest": "David Brooks"
},
{
"date": "2011-03-10",
"videos": [
"http://thecolbertreport.cc.com/videos/au4itm/intro---3-10-11",
"http://thecolbertreport.cc.com/videos/w8nzdj/newt-gingrich-wants-to-screw-america",
"http://thecolbertreport.cc.com/videos/hagj8b/colbert-pac-ad",
"http://thecolbertreport.cc.com/videos/k698u1/peter-king-understands-violent-radicalism",
"http://thecolbertreport.cc.com/videos/84jg83/reza-aslan",
"http://thecolbertreport.cc.com/videos/x9iaae/sign-off---enjoy-the-moment"
],
"guest": "Reza Aslan"
},
{
"date": "2011-03-21",
"videos": [
"http://thecolbertreport.cc.com/videos/tkzzdn/intro---3-21-11",
"http://thecolbertreport.cc.com/videos/btot11/crisis-in-the-middle-everywhere---japan---libya",
"http://thecolbertreport.cc.com/videos/kvj8rv/raging-art-on---art-1",
"http://thecolbertreport.cc.com/videos/9m4lpg/sign-off---dueling-banjos"
],
"guest": "Steve Martin and the Steep Canyon Rangers"
},
{
"date": "2011-03-22",
"videos": [
"http://thecolbertreport.cc.com/videos/67fxmc/intro---3-22-11",
"http://thecolbertreport.cc.com/videos/4k1vs5/californians-respond-to-japanese-disaster",
"http://thecolbertreport.cc.com/videos/tadiop/raging-art-on---art-2",
"http://thecolbertreport.cc.com/videos/7fv2d8/crisis-in-the-middle-everywhere---cnn-and-fox-news-fight-in-libya",
"http://thecolbertreport.cc.com/videos/iky4d9/ayman-mohyeldin",
"http://thecolbertreport.cc.com/videos/f8fwxt/sign-off---goodnight"
],
"guest": "Ayman Mohyeldin"
},
{
"date": "2011-03-23",
"videos": [
"http://thecolbertreport.cc.com/videos/m2qxvd/top-news-stories-all-at-once",
"http://thecolbertreport.cc.com/videos/3rhe0w/raging-art-on---art-3",
"http://thecolbertreport.cc.com/videos/3ccbj2/the-word---over-reactor",
"http://thecolbertreport.cc.com/videos/wd1pjd/nathan-myhrvold",
"http://thecolbertreport.cc.com/videos/l5f2yi/sign-off---pistachio-ice-cream"
],
"guest": "Nathan Myhrvold"
},
{
"date": "2011-03-24",
"videos": [
"http://thecolbertreport.cc.com/videos/awwa6r/intro---3-24-11",
"http://thecolbertreport.cc.com/videos/o0idw2/bears---balls---misery-edition",
"http://thecolbertreport.cc.com/videos/pst3ox/eat--pray-to-eat---laurie-garrett",
"http://thecolbertreport.cc.com/videos/strtop/channeled-rage",
"http://thecolbertreport.cc.com/videos/rfce7l/jody-williams",
"http://thecolbertreport.cc.com/videos/3z7nhm/sign-off---john-oliver-s-new-york-stand-up-show"
],
"guest": "Jody Williams"
},
{
"date": "2011-03-28",
"videos": [
"http://thecolbertreport.cc.com/videos/2u3wdk/intro---3-28-11",
"http://thecolbertreport.cc.com/videos/vou6it/shout-out-to-cece-lederer",
"http://thecolbertreport.cc.com/videos/xeu06g/chaos-in-chaonada",
"http://thecolbertreport.cc.com/videos/s3xgtv/tip-wag---cigarette-tax--abortion-waiting-period---bargain-travelers",
"http://thecolbertreport.cc.com/videos/c06ht5/maine-squeeze",
"http://thecolbertreport.cc.com/videos/2p412b/michael-moore",
"http://thecolbertreport.cc.com/videos/lplrhl/sign-off---movits--streams--out-of-my-head-"
],
"guest": "Michael Moore"
},
{
"date": "2011-03-29",
"videos": [
"http://thecolbertreport.cc.com/videos/xysvku/intro---3-29-11",
"http://thecolbertreport.cc.com/videos/wtajtw/turd-sandwich-in-libya",
"http://thecolbertreport.cc.com/videos/fkwv1e/yahweh-or-no-way---christianity-is-fattening",
"http://thecolbertreport.cc.com/videos/oa9b4m/stephen-s-next-religion---stephen-prothero",
"http://thecolbertreport.cc.com/videos/730dpm/jimmy-fallon-promises-a-performance-by-stephen",
"http://thecolbertreport.cc.com/videos/7m3guo/anthony-fauci",
"http://thecolbertreport.cc.com/videos/ms1yr8/sign-off---do-not-help-jimmy-fallon"
],
"guest": "Dr. Anthony Fauci"
},
{
"date": "2011-03-30",
"videos": [
"http://thecolbertreport.cc.com/videos/6nwkpk/exclusive---reporter-gets-nailed-by-san-francisco-cop",
"http://thecolbertreport.cc.com/videos/xysvku/intro---3-29-11",
"http://thecolbertreport.cc.com/videos/wtajtw/turd-sandwich-in-libya",
"http://thecolbertreport.cc.com/videos/fkwv1e/yahweh-or-no-way---christianity-is-fattening",
"http://thecolbertreport.cc.com/videos/oa9b4m/stephen-s-next-religion---stephen-prothero",
"http://thecolbertreport.cc.com/videos/730dpm/jimmy-fallon-promises-a-performance-by-stephen",
"http://thecolbertreport.cc.com/videos/7m3guo/anthony-fauci",
"http://thecolbertreport.cc.com/videos/ms1yr8/sign-off---do-not-help-jimmy-fallon"
],
"guest": "Tim Shriver"
},
{
"date": "2011-03-30",
"videos": [
"http://thecolbertreport.cc.com/videos/zxtidm/james-o-keefe-asks-for-donations",
"http://thecolbertreport.cc.com/videos/8stgre/colbert-pac",
"http://thecolbertreport.cc.com/videos/dtl1ew/colbert-pac---trevor-potter",
"http://thecolbertreport.cc.com/videos/i3lpcq/stephen-practices-rebecca-black-s--friday-",
"http://thecolbertreport.cc.com/videos/wug1p5/tim-shriver",
"http://thecolbertreport.cc.com/videos/dwx5m0/sign-off---goodnight"
],
"guest": "Tim Shriver"
},
{
"date": "2011-03-31",
"videos": [
"http://thecolbertreport.cc.com/videos/a6ko78/intro---3-31-11",
"http://thecolbertreport.cc.com/videos/oth30j/congressional-budget-menorah",
"http://thecolbertreport.cc.com/videos/j56fvd/madison-as-hell",
"http://thecolbertreport.cc.com/videos/o6su04/piers-gibbon",
"http://thecolbertreport.cc.com/videos/gq7wfn/sign-off---congressional-budget-menorah-fire"
],
"guest": "Piers Gibbon"
},
{
"date": "2011-04-04",
"videos": [
"http://thecolbertreport.cc.com/videos/nknyci/government-shutdown-menorah",
"http://thecolbertreport.cc.com/videos/8fsxhp/stephen-shows-off-the-ipad-2",
"http://thecolbertreport.cc.com/videos/953smc/the-word---that-new-smell-smell",
"http://thecolbertreport.cc.com/videos/zr09m5/the-glennpocalypse",
"http://thecolbertreport.cc.com/videos/j7j5ds/andrew-chaikin",
"http://thecolbertreport.cc.com/videos/9h7n61/sign-off---inescapables"
],
"guest": "Andrew Chaikin"
},
{
"date": "2011-04-05",
"videos": [
"http://thecolbertreport.cc.com/videos/x139me/tim-pawlenty-appeals-to-youth-vote",
"http://thecolbertreport.cc.com/videos/dq1pyh/renaissance-nemesis---frank-jameso",
"http://thecolbertreport.cc.com/videos/zw8gjf/james-franco-pt--1",
"http://thecolbertreport.cc.com/videos/91jml7/james-franco-pt--2",
"http://thecolbertreport.cc.com/videos/upimil/sign-off---frank-jameso"
],
"guest": "James Franco"
},
{
"date": "2011-04-06",
"videos": [
"http://thecolbertreport.cc.com/videos/1fi1u8/wisconsin-supreme-court-race",
"http://thecolbertreport.cc.com/videos/vu85n8/my-fair-colbert---hugo-vickers-pt--1",
"http://thecolbertreport.cc.com/videos/53yz6p/wd-40-1",
"http://thecolbertreport.cc.com/videos/q5s3lh/sir-david-tang",
"http://thecolbertreport.cc.com/videos/oqhpiw/sign-off---wd-40-1-cleaner"
],
"guest": "Sir David Tang"
},
{
"date": "2011-04-07",
"videos": [
"http://thecolbertreport.cc.com/videos/x9mvny/exclusive---my-fair-colbert---charming-prince-philip",
"http://thecolbertreport.cc.com/videos/ruv6gp/exclusive---my-fair-colbert---ghost-of-an-irishman",
"http://thecolbertreport.cc.com/videos/k0xu9f/intro---4-7-11",
"http://thecolbertreport.cc.com/videos/a3oo5c/the-koran-s-best-day-ever",
"http://thecolbertreport.cc.com/videos/uepxed/my-fair-colbert---hugo-vickers-pt--2",
"http://thecolbertreport.cc.com/videos/4zz0jd/my-fair-colbert---hugo-vickers-pt--3",
"http://thecolbertreport.cc.com/videos/hv2afg/jeff-greenfield",
"http://thecolbertreport.cc.com/videos/b9aslx/sign-off---goodnight"
],
"guest": "Jeff Greenfield"
},
{
"date": "2011-04-11",
"videos": [
"http://thecolbertreport.cc.com/videos/5p5wwd/countdown-to-government-shutdown",
"http://thecolbertreport.cc.com/videos/wueypc/pap-smears-at-walgreens",
"http://thecolbertreport.cc.com/videos/5o6455/thought-for-food---chocolate-air--denny-s---bacon-cologne",
"http://thecolbertreport.cc.com/videos/5ej465/jamie-hyneman---adam-savage",
"http://thecolbertreport.cc.com/videos/sse1uc/sign-off---champagne-flute-of-lead-paint"
],
"guest": "Jamie Hyneman & Adam Savage"
},
{
"date": "2011-04-12",
"videos": [
"http://thecolbertreport.cc.com/videos/hvb9sp/intro---4-12-11",
"http://thecolbertreport.cc.com/videos/ez4az7/jon-kyl-tweets-not-intended-to-be-factual-statements",
"http://thecolbertreport.cc.com/videos/xcin15/mitt-happens",
"http://thecolbertreport.cc.com/videos/l039ce/mitt-happens---rick-brookhiser",
"http://thecolbertreport.cc.com/videos/pqpkrr/threat-level--rainbow",
"http://thecolbertreport.cc.com/videos/2gpjkk/ray-kurzweil",
"http://thecolbertreport.cc.com/videos/ry2cgl/sign-off---goodnight"
],
"guest": "Ray Kurzweil"
},
{
"date": "2011-04-13",
"videos": [
"http://thecolbertreport.cc.com/videos/tjsqfs/tim-pawlenty-declares-candidacy-before-he-s-ready",
"http://thecolbertreport.cc.com/videos/ha4gop/the-word---buy-and-cellulite",
"http://thecolbertreport.cc.com/videos/jc9fbz/the-enemy-within---unicyclists",
"http://thecolbertreport.cc.com/videos/nm38xu/morgan-spurlock",
"http://thecolbertreport.cc.com/videos/l1ikyh/sign-off---doritos-suit"
],
"guest": "Morgan Spurlock"
},
{
"date": "2011-04-14",
"videos": [
"http://thecolbertreport.cc.com/videos/fziyvf/obama-needs-charts-and-graphs",
"http://thecolbertreport.cc.com/videos/pfzzi1/viacom-ruins-stephen-s-pac-dream",
"http://thecolbertreport.cc.com/videos/yzb7q2/colbert-super-pac---trevor-potter",
"http://thecolbertreport.cc.com/videos/k099cq/easter-under-attack---egg-edition",
"http://thecolbertreport.cc.com/videos/iybrlk/caroline-kennedy",
"http://thecolbertreport.cc.com/videos/rjwyn0/sign-off---ipad"
],
"guest": "Caroline Kennedy"
},
{
"date": "2011-04-25",
"videos": [
"http://thecolbertreport.cc.com/videos/00rg0h/catholic-bender",
"http://thecolbertreport.cc.com/videos/tml3zz/obama-s-tax-return---road-to-the-trump-house",
"http://thecolbertreport.cc.com/videos/e943tp/cheating-death---vaxa-international--lap-band-surgery---restless-leg-syndrome",
"http://thecolbertreport.cc.com/videos/nxhrou/ron-paul",
"http://thecolbertreport.cc.com/videos/8813vl/sign-off---vacsa-not-masturbating"
],
"guest": "Rep. Ron Paul"
},
{
"date": "2011-04-26",
"videos": [
"http://thecolbertreport.cc.com/videos/hl20qf/intro---4-26-11",
"http://thecolbertreport.cc.com/videos/zv4zje/mitt-romney-s--peacetime--gaffe",
"http://thecolbertreport.cc.com/videos/rmltni/charles-manson-believes-in-global-warming",
"http://thecolbertreport.cc.com/videos/i3gdyb/a-c--grayling",
"http://thecolbertreport.cc.com/videos/qxdqyc/sign-off---taser"
],
"guest": "A.C. Grayling"
},
{
"date": "2011-04-27",
"videos": [
"http://thecolbertreport.cc.com/videos/d9mieg/intro---4-27-11",
"http://thecolbertreport.cc.com/videos/cnt2qq/america-needs-to-see-obama-s-report-cards",
"http://thecolbertreport.cc.com/videos/vog079/tip-wag---faa--casio-watches---postal-service",
"http://thecolbertreport.cc.com/videos/qu6i2l/anderson-cooper-goes-on-the-absurd-u-chart",
"http://thecolbertreport.cc.com/videos/okt7ac/ice-t",
"http://thecolbertreport.cc.com/videos/bi5bau/sign-off---goodnight-in-spanish"
],
"guest": "Ice-T"
},
{
"date": "2011-04-28",
"videos": [
"http://thecolbertreport.cc.com/videos/xcnvxf/intro---4-28-11",
"http://thecolbertreport.cc.com/videos/6ei496/stephen-waits-for-his-royal-wedding-invitation-in-london",
"http://thecolbertreport.cc.com/videos/8ureil/progressives-united---russ-feingold",
"http://thecolbertreport.cc.com/videos/dfmioz/homeland-security-eliminates-color-coded-terror-alert-system",
"http://thecolbertreport.cc.com/videos/r7zj9a/wade-graham",
"http://thecolbertreport.cc.com/videos/tsom8o/sign-off---off-to-the-royal-wedding"
],
"guest": "Wade Graham"
},
{
"date": "2011-05-02",
"videos": [
"http://thecolbertreport.cc.com/videos/792my5/intro---5-2-11",
"http://thecolbertreport.cc.com/videos/6kw3l1/long-awaited--we-got-bin-laden--party",
"http://thecolbertreport.cc.com/videos/501cxj/carefree-pre-9-11-world",
"http://thecolbertreport.cc.com/videos/w147rj/relations-with-pakistan---richard-haass",
"http://thecolbertreport.cc.com/videos/x03tm5/francis-fukuyama",
"http://thecolbertreport.cc.com/videos/s3o1z2/sign-off---obama-s-timer-runs-out"
],
"guest": "Francis Fukuyama"
},
{
"date": "2011-05-03",
"videos": [
"http://thecolbertreport.cc.com/videos/v58m27/intro---5-3-11",
"http://thecolbertreport.cc.com/videos/h9f07a/osama-bin-laden-is-still-dead",
"http://thecolbertreport.cc.com/videos/5n9zp7/obama-takes-credit-for-bin-laden-s-assassination",
"http://thecolbertreport.cc.com/videos/h1wdo9/journalistic-grintegrity",
"http://thecolbertreport.cc.com/videos/u2r1n6/rex-ryan",
"http://thecolbertreport.cc.com/videos/ukrfvl/sign-off---special-kiss"
],
"guest": "Rex Ryan"
},
{
"date": "2011-05-04",
"videos": [
"http://thecolbertreport.cc.com/videos/edkk4q/intro---5-4-11",
"http://thecolbertreport.cc.com/videos/ndiuxr/terrorists--they-re-just-like-us-",
"http://thecolbertreport.cc.com/videos/kbkvj6/stephen-searches-for-shared-bathroom-key",
"http://thecolbertreport.cc.com/videos/kt1w5q/movies-that-are-destroying-america---saving-america-edition",
"http://thecolbertreport.cc.com/videos/50b5cb/amy-farrell",
"http://thecolbertreport.cc.com/videos/jcmie8/sign-off---goodnight"
],
"guest": "Amy Farrell"
},
{
"date": "2011-05-05",
"videos": [
"http://thecolbertreport.cc.com/videos/lbrn85/stephen-confesses-to-a-distracted-media",
"http://thecolbertreport.cc.com/videos/avpz0y/threatdown---superman--madden-nfl-12----glee-",
"http://thecolbertreport.cc.com/videos/g2bhyr/inaugural-republican-presidential-debate---donald-trump-s-wisdom",
"http://thecolbertreport.cc.com/videos/4neb1g/bill-james",
"http://thecolbertreport.cc.com/videos/k2or8w/sign-off---dennis-kucinich-heat-vision"
],
"guest": "Bill James"
},
{
"date": "2011-05-09",
"videos": [
"http://thecolbertreport.cc.com/videos/dkbe7y/intro---5-9-11",
"http://thecolbertreport.cc.com/videos/6rdbxz/hasidic-newspaper-removes-hillary-clinton",
"http://thecolbertreport.cc.com/videos/mqyr6k/herman-cain-wins-the-first-republican-presidential-debate",
"http://thecolbertreport.cc.com/videos/38grqn/the-word---autocratic-for-the-people",
"http://thecolbertreport.cc.com/videos/d8bi6b/lupe-fiasco",
"http://thecolbertreport.cc.com/videos/vonv0r/sign-off---lupe-fiasco-s--lasers-"
],
"guest": "Lupe Fiasco"
},
{
"date": "2011-05-10",
"videos": [
"http://thecolbertreport.cc.com/videos/r02fac/newt-gingrich---donald-trump-announce-future-announcements",
"http://thecolbertreport.cc.com/videos/w3lgcs/yahweh-or-no-way---thor---apocalypse-billboard",
"http://thecolbertreport.cc.com/videos/zu0ju2/difference-makers---donald-trump",
"http://thecolbertreport.cc.com/videos/i4gyok/geoffrey-rush",
"http://thecolbertreport.cc.com/videos/wmfolw/sign-off---a-rare-correction"
],
"guest": "Geoffrey Rush"
},
{
"date": "2011-05-11",
"videos": [
"http://thecolbertreport.cc.com/videos/g0js2x/intro---5-11-11",
"http://thecolbertreport.cc.com/videos/txo75b/herman-cain-claims-the-colbert-bump",
"http://thecolbertreport.cc.com/videos/1ssaiz/corp-constituency",
"http://thecolbertreport.cc.com/videos/nfv0i1/corp-constituency---trevor-potter",
"http://thecolbertreport.cc.com/videos/rqvi06/award-to-the-wise",
"http://thecolbertreport.cc.com/videos/sjt27k/eric-greitens",
"http://thecolbertreport.cc.com/videos/q3siyv/sign-off---press-hat"
],
"guest": "Eric Greitens"
},
{
"date": "2011-05-12",
"videos": [
"http://thecolbertreport.cc.com/videos/mp7mrs/intro---5-12-11",
"http://thecolbertreport.cc.com/videos/zz94qv/obama-s-latino-panderfest",
"http://thecolbertreport.cc.com/videos/vkp4tr/terror--a-new-one",
"http://thecolbertreport.cc.com/videos/9o0mt6/terror--a-new-one---lawrence-wright",
"http://thecolbertreport.cc.com/videos/dqvz13/if-at-first-you-don-t-secede",
"http://thecolbertreport.cc.com/videos/yx5grt/john-bradshaw",
"http://thecolbertreport.cc.com/videos/sw8fy6/sign-off---stephen-s-super-pac-needs-support"
],
"guest": "John Bradshaw"
},
{
"date": "2011-05-16",
"videos": [
"http://thecolbertreport.cc.com/videos/9xaxr4/mike-huckabee---donald-trump-drop-out",
"http://thecolbertreport.cc.com/videos/duon08/fig-newton-gingrich-2012",
"http://thecolbertreport.cc.com/videos/epwg6t/stephen-files-super-pac-request",
"http://thecolbertreport.cc.com/videos/g3ep11/alison-klayman",
"http://thecolbertreport.cc.com/videos/4r7evh/sign-off---goodnight"
],
"guest": "Alison Klayman"
},
{
"date": "2011-05-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ip5tv7/intro---5-17-11",
"http://thecolbertreport.cc.com/videos/1ugsri/world-s-oldest-panda-dies",
"http://thecolbertreport.cc.com/videos/l4p5dq/the-word---enhanced-rejustification",
"http://thecolbertreport.cc.com/videos/pg06l0/arnold-schwarzenegger-s-sex-scandal",
"http://thecolbertreport.cc.com/videos/58filp/amy-kremer",
"http://thecolbertreport.cc.com/videos/no1rv9/sign-off---goodnight"
],
"guest": "Amy Kremer"
},
{
"date": "2011-05-18",
"videos": [
"http://thecolbertreport.cc.com/videos/faf2no/exclusive---austan-goolsbee-extended-interview-pt--1",
"http://thecolbertreport.cc.com/videos/6pf58s/exclusive---austan-goolsbee-extended-interview-pt--2",
"http://thecolbertreport.cc.com/videos/bdi4g4/exclusive---austan-goolsbee-extended-interview-pt--3",
"http://thecolbertreport.cc.com/videos/6khcvr/intro---5-18-11",
"http://thecolbertreport.cc.com/videos/55ye8a/osama-bin-laden-s-replacement",
"http://thecolbertreport.cc.com/videos/tohq6g/tip-wag---ohio-legislature---facebook",
"http://thecolbertreport.cc.com/videos/2cxcrh/breaking-newt",
"http://thecolbertreport.cc.com/videos/vvu071/austan-goolsbee",
"http://thecolbertreport.cc.com/videos/sklv51/sign-off---long-austan-goolsbee-interview"
],
"guest": "Austan Goolsbee"
},
{
"date": "2011-05-19",
"videos": [
"http://thecolbertreport.cc.com/videos/7qmvog/john-lithgow-performs-gingrich-press-release",
"http://thecolbertreport.cc.com/videos/pb82sf/better-know-a-district---illinois--18th---aaron-schock-update",
"http://thecolbertreport.cc.com/videos/3gd1zf/clergy-matic-ecclesi-action-center-3-16",
"http://thecolbertreport.cc.com/videos/5ec3r8/kareem-abdul-jabbar",
"http://thecolbertreport.cc.com/videos/p12tcc/sign-off---history-of-life-on-earth"
],
"guest": "Kareem Abdul-Jabbar"
},
{
"date": "2011-05-31",
"videos": [
"http://thecolbertreport.cc.com/videos/gn9ut5/intro---5-31-11",
"http://thecolbertreport.cc.com/videos/xxn340/charleston-to-bermuda-yacht-race",
"http://thecolbertreport.cc.com/videos/fgthom/sarah-palin-s-bus-tour",
"http://thecolbertreport.cc.com/videos/bmwaxh/fec-questions---trevor-potter",
"http://thecolbertreport.cc.com/videos/7bl2ga/invisible-judgment",
"http://thecolbertreport.cc.com/videos/ox3on4/james-stewart",
"http://thecolbertreport.cc.com/videos/vn091b/sign-off---goodnight"
],
"guest": "James B. Stewart"
},
{
"date": "2011-06-01",
"videos": [
"http://thecolbertreport.cc.com/videos/nos79v/intro---6-1-11",
"http://thecolbertreport.cc.com/videos/mqb30h/sarah-palin-visits-the-times-square-applebee-s",
"http://thecolbertreport.cc.com/videos/ul70kx/meat-tweet",
"http://thecolbertreport.cc.com/videos/jph6sv/harmful-cell-phones",
"http://thecolbertreport.cc.com/videos/beqc1p/who-s-riding-my-coattails-now----jimmy-fallon",
"http://thecolbertreport.cc.com/videos/5a4ke7/robert-f--kennedy-jr-",
"http://thecolbertreport.cc.com/videos/3enqpr/sign-off---iphone"
],
"guest": "Robert Kennedy Jr."
},
{
"date": "2011-06-02",
"videos": [
"http://thecolbertreport.cc.com/videos/7o4l3r/intro---6-2-11",
"http://thecolbertreport.cc.com/videos/rqi6dy/dancing-on-the-ceiling",
"http://thecolbertreport.cc.com/videos/1db84y/anthony-weiner-addresses-twitter-scandal",
"http://thecolbertreport.cc.com/videos/qhexu1/tip-wag---osama-bin-laden---hugh-hefner",
"http://thecolbertreport.cc.com/videos/8t7m7k/salman-khan",
"http://thecolbertreport.cc.com/videos/rqa2ar/sign-off---goodnight"
],
"guest": "Salman Khan"
},
{
"date": "2011-06-06",
"videos": [
"http://thecolbertreport.cc.com/videos/bwqzbu/anthony-weiner-s-emergency-press-conference",
"http://thecolbertreport.cc.com/videos/uvi91o/paul-revere-s-famous-ride",
"http://thecolbertreport.cc.com/videos/x424g2/stephen-s-twitter-scandal",
"http://thecolbertreport.cc.com/videos/qyadrw/obama-administration-replaces-food-pyramid",
"http://thecolbertreport.cc.com/videos/fdolcv/werner-herzog",
"http://thecolbertreport.cc.com/videos/ed6qec/stephen-s-midnight-ride"
],
"guest": "Werner Herzog"
},
{
"date": "2011-06-07",
"videos": [
"http://thecolbertreport.cc.com/videos/suzxde/scott-pelley-s-first-cbs-broadcast",
"http://thecolbertreport.cc.com/videos/1w9fvc/the-word---hear-no-evil",
"http://thecolbertreport.cc.com/videos/fvvawg/sugar-ray-leonard",
"http://thecolbertreport.cc.com/videos/b4ot0e/apologies-to-shimshamistan"
],
"guest": "Sugar Ray Leonard"
},
{
"date": "2011-06-08",
"videos": [
"http://thecolbertreport.cc.com/videos/fq1085/herman-cain-wants-small-bills",
"http://thecolbertreport.cc.com/videos/bmggoz/better-know-a-district---california-s-10th---john-garamendi",
"http://thecolbertreport.cc.com/videos/ycdgvg/weiner-captures-manscaping-vote",
"http://thecolbertreport.cc.com/videos/yvz8wj/bre-pettis",
"http://thecolbertreport.cc.com/videos/ao2r17/sign-off---makerbot-head"
],
"guest": "Bre Pettis"
},
{
"date": "2011-06-09",
"videos": [
"http://thecolbertreport.cc.com/videos/tz9edm/shaquille-o-neal-retires",
"http://thecolbertreport.cc.com/videos/umrvml/mitt-romney-leads-in-fox-news-poll",
"http://thecolbertreport.cc.com/videos/qgxogp/the-word---the-business-end",
"http://thecolbertreport.cc.com/videos/oneftb/andrew-breitbart-reveals-weiner-photo",
"http://thecolbertreport.cc.com/videos/5f3kap/tom-ridge",
"http://thecolbertreport.cc.com/videos/vvj5q2/sign-off---goodnight"
],
"guest": "Tom Ridge"
},
{
"date": "2011-06-13",
"videos": [
"http://thecolbertreport.cc.com/videos/0zzkov/anthony-weiner-gym-photos",
"http://thecolbertreport.cc.com/videos/vgcql3/sport-report---miami-heat--fifa---freestyle-canoe-dancing",
"http://thecolbertreport.cc.com/videos/vyyl7z/henry-kissinger-pt--1",
"http://thecolbertreport.cc.com/videos/2j87li/henry-kissinger-pt--2",
"http://thecolbertreport.cc.com/videos/w5b5l1/sign-off---goodnight"
],
"guest": "Henry Kissinger"
},
{
"date": "2011-06-14",
"videos": [
"http://thecolbertreport.cc.com/videos/lokk6e/intro---6-14-11",
"http://thecolbertreport.cc.com/videos/egh1n7/elephants-in-the-room",
"http://thecolbertreport.cc.com/videos/ykt712/close-sesame",
"http://thecolbertreport.cc.com/videos/s6kp16/janny-scott",
"http://thecolbertreport.cc.com/videos/j0gylk/sign-off---marshmallows"
],
"guest": "Janny Scott"
},
{
"date": "2011-06-15",
"videos": [
"http://thecolbertreport.cc.com/videos/d8iaxd/intro---6-15-11",
"http://thecolbertreport.cc.com/videos/zj00ia/iran-bans-necklaces-and-shorts",
"http://thecolbertreport.cc.com/videos/xbt4w9/kindergarten-gop",
"http://thecolbertreport.cc.com/videos/ynp682/the-word---shock-the-vote",
"http://thecolbertreport.cc.com/videos/46tlsv/senior-moment---pot-smoking-seniors",
"http://thecolbertreport.cc.com/videos/5h6ee5/keith-olbermann",
"http://thecolbertreport.cc.com/videos/5rh3rg/sign-off---stephen-wears-shorts"
],
"guest": "Keith Olbermann"
},
{
"date": "2011-06-20",
"videos": [
"http://thecolbertreport.cc.com/videos/2374v3/intro---6-20-11",
"http://thecolbertreport.cc.com/videos/q7b70y/stephest-colbchella--011---rock-you-like-a-thirst-icane",
"http://thecolbertreport.cc.com/videos/y7lr8u/threatdown---moo-shu-man-milk--centenarians---robo-slackers",
"http://thecolbertreport.cc.com/videos/gds7n9/justin-vernon",
"http://thecolbertreport.cc.com/videos/su735n/sign-off---bon-iver-bonus-song"
],
"guest": "Bon Iver"
},
{
"date": "2011-06-21",
"videos": [
"http://thecolbertreport.cc.com/videos/3o3le7/generic-republican-presidential-nominee",
"http://thecolbertreport.cc.com/videos/ct0au7/stephest-colbchella--011---stephen-revives-his-music-career",
"http://thecolbertreport.cc.com/videos/v43nph/2011--a-rock-odyssey-featuring-jack-white-pt--1",
"http://thecolbertreport.cc.com/videos/7e8ifi/florence-welch",
"http://thecolbertreport.cc.com/videos/ei7r0b/sign-off---talib-kweli-tomorrow"
],
"guest": "Florence and the Machine"
},
{
"date": "2011-06-22",
"videos": [
"http://thecolbertreport.cc.com/videos/f5h9ob/george-w--bush-helps-break-a-world-record",
"http://thecolbertreport.cc.com/videos/ozlnky/2011--a-rock-odyssey-featuring-jack-white-pt--2",
"http://thecolbertreport.cc.com/videos/u3bmmq/the-word---the-defining-moment",
"http://thecolbertreport.cc.com/videos/c7shlp/talib-kweli"
],
"guest": "Talib Kweli"
},
{
"date": "2011-06-23",
"videos": [
"http://thecolbertreport.cc.com/videos/ihqt34/exclusive---2011--a-rock-odyssey-featuring-jack-white---catholic-throwdown",
"http://thecolbertreport.cc.com/videos/zbc2ok/stephest-colbchella--011---stephen-announces-his-hit-song",
"http://thecolbertreport.cc.com/videos/1if3ir/nation-building-in-america",
"http://thecolbertreport.cc.com/videos/4evhq9/2011--a-rock-odyssey-featuring-jack-white-pt--3",
"http://thecolbertreport.cc.com/videos/39or3g/jack-white"
],
"guest": "The Black Belles"
},
{
"date": "2011-06-27",
"videos": [
"http://thecolbertreport.cc.com/videos/8tiso3/intro---6-27-11",
"http://thecolbertreport.cc.com/videos/zz1v27/tip-wag---scented-razors---rick-scott-s-approval-rating",
"http://thecolbertreport.cc.com/videos/7e3kfb/stephen---jonathan-alter-at-gaillard-auditorium",
"http://thecolbertreport.cc.com/videos/npgonl/good-point-other-point---ted-nugent-vs--millennials",
"http://thecolbertreport.cc.com/videos/89vjk7/grover-norquist",
"http://thecolbertreport.cc.com/videos/fe2wnr/sign-off---scented-box-cutter"
],
"guest": "Grover Norquist"
},
{
"date": "2011-06-28",
"videos": [
"http://thecolbertreport.cc.com/videos/gs5b2y/intro---6-28-11",
"http://thecolbertreport.cc.com/videos/im5by3/michele-bachmann-compares-herself-to-john-wayne",
"http://thecolbertreport.cc.com/videos/b2dez1/the-word---too-big-to-nail",
"http://thecolbertreport.cc.com/videos/eztgrx/advertising-to-monkeys",
"http://thecolbertreport.cc.com/videos/jfztdi/alexandra-pelosi",
"http://thecolbertreport.cc.com/videos/1it2j9/sign-off---teleprompter-eulogy"
],
"guest": "Alexandra Pelosi"
},
{
"date": "2011-06-29",
"videos": [
"http://thecolbertreport.cc.com/videos/e7dlbc/intro---6-29-11",
"http://thecolbertreport.cc.com/videos/s3xttd/4th-of-july-under-attack---fireworks-cancelled",
"http://thecolbertreport.cc.com/videos/7gul1z/colbert-super-pac---irresponsible-advertising",
"http://thecolbertreport.cc.com/videos/kco7lo/colbert-super-pac---trevor-potter-preps-stephen-for-his-fec-hearing",
"http://thecolbertreport.cc.com/videos/o7wrgl/hometown-hero-town---lexington--ky",
"http://thecolbertreport.cc.com/videos/zc23xv/gary-sinise",
"http://thecolbertreport.cc.com/videos/80a7v2/sign-off---see-you-at-the-fec"
],
"guest": "Gary Sinise"
},
{
"date": "2011-06-30",
"videos": [
"http://thecolbertreport.cc.com/videos/3yk8uf/intro---6-30-11",
"http://thecolbertreport.cc.com/videos/gffis7/colbert-super-pac---i-can-haz-super-pac-",
"http://thecolbertreport.cc.com/videos/uf525x/colbert-super-pac---stephen-addresses-colbert-super-nation",
"http://thecolbertreport.cc.com/videos/owodco/formidable-opponent---pakistan",
"http://thecolbertreport.cc.com/videos/807lhi/timothy-garton-ash",
"http://thecolbertreport.cc.com/videos/b2dqnd/sign-off---super-pac-donations"
],
"guest": "Timothy Garton Ash"
},
{
"date": "2011-07-11",
"videos": [
"http://thecolbertreport.cc.com/videos/t8xnmj/intro---7-11-11",
"http://thecolbertreport.cc.com/videos/sgqex9/colbert-super-pac---pushing-the-limits",
"http://thecolbertreport.cc.com/videos/m3svek/anti-frack-attacks",
"http://thecolbertreport.cc.com/videos/2h3oe2/tip-wag---conservative-john-lennon---unfunny-germany",
"http://thecolbertreport.cc.com/videos/z2r2b0/michael-shermer",
"http://thecolbertreport.cc.com/videos/g47pr3/sign-off---super-pac-fundraising-goal"
],
"guest": "Michael Shermer"
},
{
"date": "2011-07-12",
"videos": [
"http://thecolbertreport.cc.com/videos/20gpt7/herman-cain-train",
"http://thecolbertreport.cc.com/videos/7aive1/the-family-leader-s-controversial-pledge",
"http://thecolbertreport.cc.com/videos/7sobpk/heterosexual-accountability-buddy",
"http://thecolbertreport.cc.com/videos/vw4tol/dan-savage",
"http://thecolbertreport.cc.com/videos/nkuukl/sign-off---fixing-the-boiler"
],
"guest": "Dan Savage"
},
{
"date": "2011-07-13",
"videos": [
"http://thecolbertreport.cc.com/videos/smsyco/intro---7-13-11",
"http://thecolbertreport.cc.com/videos/70lgql/flagworth-2012",
"http://thecolbertreport.cc.com/videos/7gb5kn/republicans-choose-none-of-the-above",
"http://thecolbertreport.cc.com/videos/palj9t/obama-calls-the-republican-bluff",
"http://thecolbertreport.cc.com/videos/5ulzg5/david-mccullough",
"http://thecolbertreport.cc.com/videos/7xngpa/sign-off---pen-toss"
],
"guest": "David McCullough"
},
{
"date": "2011-07-14",
"videos": [
"http://thecolbertreport.cc.com/videos/h2i0g7/intro---7-14-11",
"http://thecolbertreport.cc.com/videos/8oisqi/carmageddon",
"http://thecolbertreport.cc.com/videos/uqj8qb/may-the-best-stephen-colbert-win",
"http://thecolbertreport.cc.com/videos/a29405/murdoch-s-media-empire-might-go-down-the-toilet",
"http://thecolbertreport.cc.com/videos/1o1flh/improvised-expressive-devices",
"http://thecolbertreport.cc.com/videos/82ovjs/jose-antonio-vargas",
"http://thecolbertreport.cc.com/videos/9nwz4n/sign-off---goodnight"
],
"guest": "Jose Antonio Vargas"
},
{
"date": "2011-07-18",
"videos": [
"http://thecolbertreport.cc.com/videos/ureory/intro---7-18-11",
"http://thecolbertreport.cc.com/videos/ybue54/epic-blockbuster",
"http://thecolbertreport.cc.com/videos/7t9e81/colbert-super-pac---cash-crawl",
"http://thecolbertreport.cc.com/videos/73lwqj/colbert-super-pac---campaign-finance",
"http://thecolbertreport.cc.com/videos/9q309t/blood-in-the-water---rupert-murdoch-s-news-of-the-world-scandal",
"http://thecolbertreport.cc.com/videos/36812w/john-prendergast",
"http://thecolbertreport.cc.com/videos/d8rt51/sign-off---prerecorded-episodes"
],
"guest": "John Prendergast"
},
{
"date": "2011-07-19",
"videos": [
"http://thecolbertreport.cc.com/videos/bcunwj/newt-s-white-whale",
"http://thecolbertreport.cc.com/videos/nhl043/god-calls-rick-perry",
"http://thecolbertreport.cc.com/videos/6cdpui/debt-ceiling-deadline-conspiracy",
"http://thecolbertreport.cc.com/videos/maophz/david-carr",
"http://thecolbertreport.cc.com/videos/50pek1/sign-off---goodnight"
],
"guest": "David Carr"
},
{
"date": "2011-07-20",
"videos": [
"http://thecolbertreport.cc.com/videos/pmh9y8/humanized-by-pie",
"http://thecolbertreport.cc.com/videos/ozixqy/voter-id-laws",
"http://thecolbertreport.cc.com/videos/2i29ww/congressional-partisan-rancor",
"http://thecolbertreport.cc.com/videos/2p2ijk/michael-sandel",
"http://thecolbertreport.cc.com/videos/tia7kd/sign-off---reading"
],
"guest": "Michael Sandel"
},
{
"date": "2011-07-21",
"videos": [
"http://thecolbertreport.cc.com/videos/egjics/intro---7-21-11",
"http://thecolbertreport.cc.com/videos/l3rcr1/death-of-america-s-space-program",
"http://thecolbertreport.cc.com/videos/vntv81/i-s-on-edjukashun---gay-history---disney-english",
"http://thecolbertreport.cc.com/videos/6yym31/nbc--no-butt-coverage",
"http://thecolbertreport.cc.com/videos/9catel/david-eagleman",
"http://thecolbertreport.cc.com/videos/nn8qoh/sign-off---space-robot"
],
"guest": "David Eagleman"
},
{
"date": "2011-07-25",
"videos": [
"http://thecolbertreport.cc.com/videos/l0wxhe/y2-gay",
"http://thecolbertreport.cc.com/videos/fbd6kf/norwegian-muslish-gunman-s-islam-esque-atrocity",
"http://thecolbertreport.cc.com/videos/wznkdz/vaginal-puppeteering-vs--d--k-scrub",
"http://thecolbertreport.cc.com/videos/z4gfkc/brian-cox",
"http://thecolbertreport.cc.com/videos/9q5n38/sign-off---the-thinker"
],
"guest": "Brian Cox"
},
{
"date": "2011-07-26",
"videos": [
"http://thecolbertreport.cc.com/videos/bzl0xh/intro---7-26-11",
"http://thecolbertreport.cc.com/videos/umjv5s/herman-cain-cancels-on-stephen",
"http://thecolbertreport.cc.com/videos/zq2rpw/-poor--in-america",
"http://thecolbertreport.cc.com/videos/j2gcnk/-poor--in-america---peter-edelman",
"http://thecolbertreport.cc.com/videos/a4awyb/america-s-bucket-list",
"http://thecolbertreport.cc.com/videos/azl59v/brooke-gladstone",
"http://thecolbertreport.cc.com/videos/ly4qfz/sign-off---america-s-bucket-list"
],
"guest": "Brooke Gladstone"
},
{
"date": "2011-07-27",
"videos": [
"http://thecolbertreport.cc.com/videos/zq1omv/nissan-s--leaf-wave--deadline",
"http://thecolbertreport.cc.com/videos/x50fvb/difference-makers---patrick-rodgers",
"http://thecolbertreport.cc.com/videos/3o44r7/helium-runs-out",
"http://thecolbertreport.cc.com/videos/omkngv/missy-cummings",
"http://thecolbertreport.cc.com/videos/y4zc9o/sign-off---surveillance-drone-crash"
],
"guest": "Mary \"Missy\" Cummings"
},
{
"date": "2011-07-28",
"videos": [
"http://thecolbertreport.cc.com/videos/8c1oeo/the-republican-ring-of-power",
"http://thecolbertreport.cc.com/videos/yzmsiz/colbert-super-pac---for-the-children",
"http://thecolbertreport.cc.com/videos/e4r2vc/colbert-super-pac---matthew-dowd---ham-rove",
"http://thecolbertreport.cc.com/videos/z6f8m4/buddy-roemer-pt--1",
"http://thecolbertreport.cc.com/videos/n4ldiq/buddy-roemer-pt--2",
"http://thecolbertreport.cc.com/videos/tzpdu5/sign-off---cone-of-silence"
],
"guest": "Buddy Roemer"
},
{
"date": "2011-08-01",
"videos": [
"http://thecolbertreport.cc.com/videos/aqw9op/intro---8-1-11",
"http://thecolbertreport.cc.com/videos/lrz1ud/-three-billy-goats-gruff--budget-negotiations",
"http://thecolbertreport.cc.com/videos/mgkqu6/the-word---with-great-power-comes-no-responsibility",
"http://thecolbertreport.cc.com/videos/6v3oa3/from-ashes-to-bullets",
"http://thecolbertreport.cc.com/videos/mqbxt0/tony-hsieh",
"http://thecolbertreport.cc.com/videos/sqd53z/sign-off---sneakers"
],
"guest": "Tony Hsieh"
},
{
"date": "2011-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/xaqx6o/intro---8-2-11",
"http://thecolbertreport.cc.com/videos/j862uf/newt-gingrich-s-twitter-scandal",
"http://thecolbertreport.cc.com/videos/pzfcj1/america-s-credit-grating",
"http://thecolbertreport.cc.com/videos/y1xqdj/america-s-credit-grating---david-leonhardt",
"http://thecolbertreport.cc.com/videos/gg2p1r/baby-teeth-economy",
"http://thecolbertreport.cc.com/videos/id20x6/al-hunt",
"http://thecolbertreport.cc.com/videos/h26uru/sign-off---goodnight"
],
"guest": "Al Hunt"
},
{
"date": "2011-08-03",
"videos": [
"http://thecolbertreport.cc.com/videos/br7gdf/intro---8-3-11",
"http://thecolbertreport.cc.com/videos/3i1326/multiracial-spider-man",
"http://thecolbertreport.cc.com/videos/f3w320/threatdown---fake-states--sharia-weather---monopoly",
"http://thecolbertreport.cc.com/videos/cvc16w/women-s-health-nazi-plan",
"http://thecolbertreport.cc.com/videos/6x0m3y/robert-wittman",
"http://thecolbertreport.cc.com/videos/utsxoh/sign-off---official-flag-updater"
],
"guest": "Robert Wittman"
},
{
"date": "2011-08-04",
"videos": [
"http://thecolbertreport.cc.com/videos/t3bxny/intro---8-4-11",
"http://thecolbertreport.cc.com/videos/8tx5s2/barack-obama-s-50th-birthday",
"http://thecolbertreport.cc.com/videos/7ahjkr/colbert-super-pac---the-heroes-respond",
"http://thecolbertreport.cc.com/videos/ma6ejy/wisconsin-s-recall-election---americans-for-prosperity-s-absentee-ballot-typos",
"http://thecolbertreport.cc.com/videos/8q9pe2/sport-report---baseball-s-lowest-records---mlb-s-twitter-feed",
"http://thecolbertreport.cc.com/videos/d8704f/anthony-bourdain",
"http://thecolbertreport.cc.com/videos/afj5qe/sign-off---goodnight"
],
"guest": "Anthony Bourdain"
},
{
"date": "2011-08-08",
"videos": [
"http://thecolbertreport.cc.com/videos/smerqo/america-s-credit-downgrade",
"http://thecolbertreport.cc.com/videos/y7x3es/colbert-super-pac---rick-perry-for-president",
"http://thecolbertreport.cc.com/videos/lu1v74/doomsday-bargain-bunkers",
"http://thecolbertreport.cc.com/videos/wkairk/nassir-ghaemi",
"http://thecolbertreport.cc.com/videos/4zkkn5/sign-off---stephen-sniffs-a-marker"
],
"guest": "Nassir Ghaemi"
},
{
"date": "2011-08-09",
"videos": [
"http://thecolbertreport.cc.com/videos/tufpnm/intro---8-9-11",
"http://thecolbertreport.cc.com/videos/pxptx8/heatsteria",
"http://thecolbertreport.cc.com/videos/rtqznl/the-word---head-in-the-cloud",
"http://thecolbertreport.cc.com/videos/gj6vb5/ric-ocasek"
],
"guest": "The Cars"
},
{
"date": "2011-08-10",
"videos": [
"http://thecolbertreport.cc.com/videos/mjvryb/intro---8-10-11",
"http://thecolbertreport.cc.com/videos/1jlwac/hooker-drawer-market",
"http://thecolbertreport.cc.com/videos/cw4el2/yahweh-or-no-way---mormons---god-s-poll-numbers",
"http://thecolbertreport.cc.com/videos/uulxb3/god-s-job-performance---jim-martin",
"http://thecolbertreport.cc.com/videos/15zleh/colbert-super-pac---campaign-donation-addiction",
"http://thecolbertreport.cc.com/videos/zxka8u/elliot-ackerman",
"http://thecolbertreport.cc.com/videos/mvgmwy/sign-off---e-mailing-colbert-nation"
],
"guest": "Elliott Ackerman"
},
{
"date": "2011-08-11",
"videos": [
"http://thecolbertreport.cc.com/videos/pi19ix/super-pac-ad---behind-the-green-corn",
"http://thecolbertreport.cc.com/videos/x1aodj/super-pac-ad---episode-iv--a-new-hope",
"http://thecolbertreport.cc.com/videos/etbj36/romney-2012----corporations-are-people-",
"http://thecolbertreport.cc.com/videos/90ptp7/colbert-super-pac---rick-parry-with-an--a--for-america",
"http://thecolbertreport.cc.com/videos/swbu9s/colbert-super-pac---confused-by-rick-parry-with-an--a--for-america",
"http://thecolbertreport.cc.com/videos/yu257u/gloria-steinem",
"http://thecolbertreport.cc.com/videos/7x3ryp/sign-off---stephen-s-emmy-award"
],
"guest": "Gloria Steinem"
},
{
"date": "2011-08-15",
"videos": [
"http://thecolbertreport.cc.com/videos/40fotx/exclusive---susan-rice-extended-interview-pt--1",
"http://thecolbertreport.cc.com/videos/vvlrva/exclusive---susan-rice-extended-interview-pt--2",
"http://thecolbertreport.cc.com/videos/lqjncy/susan-rice-extended-interview-pt--3",
"http://thecolbertreport.cc.com/videos/0yyo1z/colbert-super-pac---stephen-apologizes-to-woi-in-des-moines",
"http://thecolbertreport.cc.com/videos/dzchwi/colbert-super-pac---iowa-straw-poll-results",
"http://thecolbertreport.cc.com/videos/dkh4ps/susan-rice-pt--1",
"http://thecolbertreport.cc.com/videos/nla0b4/susan-rice-pt--2",
"http://thecolbertreport.cc.com/videos/1rtsq5/sign-off---full-susan-rice-interview-online"
],
"guest": "Amb. Susan Rice"
},
{
"date": "2011-08-16",
"videos": [
"http://thecolbertreport.cc.com/videos/i0nwuy/exclusive---space-shuttle-atlantis-crew---extended-interview-pt--1",
"http://thecolbertreport.cc.com/videos/8gjrx4/exclusive---space-shuttle-atlantis-crew---extended-interview-pt--2",
"http://thecolbertreport.cc.com/videos/rmrfc3/the-etymology-of--obamacare-",
"http://thecolbertreport.cc.com/videos/cjfda6/colbert-super-pac---persuadulux-6000",
"http://thecolbertreport.cc.com/videos/m00z1i/colbert-super-pac---frank-luntz-commits-to-the-pac",
"http://thecolbertreport.cc.com/videos/a8v2gy/nasa-s-greatest-moments-montage",
"http://thecolbertreport.cc.com/videos/nnfhdg/chris-ferguson--doug-hurley--rex-walheim---sandy-magnus",
"http://thecolbertreport.cc.com/videos/h83o7v/sign-off---stephen-s-launch-pad-nut"
],
"guest": "STS-135 astronauts"
},
{
"date": "2011-08-17",
"videos": [
"http://thecolbertreport.cc.com/videos/brmz0s/exclusive---jeff-bridges-for-summer-s-eve",
"http://thecolbertreport.cc.com/videos/1cvtnm/intro---8-17-11",
"http://thecolbertreport.cc.com/videos/yk47i3/colbert-super-pac---rick-perry-s-treasurer",
"http://thecolbertreport.cc.com/videos/uiim37/tip-wag---evangelical-scientists---rick-santorum",
"http://thecolbertreport.cc.com/videos/4km5oi/jeff-bridges",
"http://thecolbertreport.cc.com/videos/1bb0sg/sign-off---jeff-bridges--album-cover"
],
"guest": "Jeff Bridges"
},
{
"date": "2011-08-18",
"videos": [
"http://thecolbertreport.cc.com/videos/237rh7/intro---8-18-11",
"http://thecolbertreport.cc.com/videos/oqd808/russia-s-james-bonds-vs--america-s-barack-obama",
"http://thecolbertreport.cc.com/videos/j31bbb/colbert-super-pac---parry-with-an-a-gate----day-6---we-may-have-did-it-",
"http://thecolbertreport.cc.com/videos/94c0x7/colbert-super-pac---parry-with-an-a-gate----day-6---woi-in-des-moines-reports",
"http://thecolbertreport.cc.com/videos/ger41z/anderson-cooper-s-kryptonite",
"http://thecolbertreport.cc.com/videos/1yhudu/kevin-mitnick",
"http://thecolbertreport.cc.com/videos/5r0lwc/sign-off---woi-in-des-moines"
],
"guest": "Kevin Mitnick"
},
{
"date": "2011-09-06",
"videos": [
"http://thecolbertreport.cc.com/videos/s3kv9p/michele-bachmann-s-natural-disaster-metaphor",
"http://thecolbertreport.cc.com/videos/fk34r7/the-word---happy-endings",
"http://thecolbertreport.cc.com/videos/ovw3t4/cheating-death---placebocisers---vaxamalgam",
"http://thecolbertreport.cc.com/videos/1cua0e/tim-pawlenty",
"http://thecolbertreport.cc.com/videos/d2roue/sign-off---placebocisers"
],
"guest": "Gov. Tim Pawlenty"
},
{
"date": "2011-09-07",
"videos": [
"http://thecolbertreport.cc.com/videos/1iqy2m/intro---9-7-11",
"http://thecolbertreport.cc.com/videos/nw0vtw/this-weak-in-national-secowardty",
"http://thecolbertreport.cc.com/videos/dhg1or/martin-luther-king-jr--memorial-paraphrase",
"http://thecolbertreport.cc.com/videos/796niz/parry-with-an-a-gate----day-26---update",
"http://thecolbertreport.cc.com/videos/h8ndj7/robin-wright",
"http://thecolbertreport.cc.com/videos/we0bnb/sign-off---stephen-uses-his-ipad"
],
"guest": "Robin B. Wright"
},
{
"date": "2011-09-08",
"videos": [
"http://thecolbertreport.cc.com/videos/6ut02o/republican-presidential-debate-media-coverage",
"http://thecolbertreport.cc.com/videos/0yghln/rick-perry-presents",
"http://thecolbertreport.cc.com/videos/pf00vn/barack-obama-s-jobs-speech",
"http://thecolbertreport.cc.com/videos/5x0a3c/tom-brokaw",
"http://thecolbertreport.cc.com/videos/lwsx3m/sign-off---old-milwaukee-beer"
],
"guest": "Tom Brokaw"
},
{
"date": "2011-09-12",
"videos": [
"http://thecolbertreport.cc.com/videos/3ooncl/tea-party-face-off-preview",
"http://thecolbertreport.cc.com/videos/4ig8mh/stephen-reports-on-an-old-fashioned-hero",
"http://thecolbertreport.cc.com/videos/eicjwv/shopping-griefportunities",
"http://thecolbertreport.cc.com/videos/sxy47f/diane-sawyer",
"http://thecolbertreport.cc.com/videos/g2jfq9/sign-off---stephen-s-mug"
],
"guest": "Diane Sawyer"
},
{
"date": "2011-09-13",
"videos": [
"http://thecolbertreport.cc.com/videos/bgo24q/intro---9-13-11",
"http://thecolbertreport.cc.com/videos/6jpgl3/cnn-tea-party-republican-debate",
"http://thecolbertreport.cc.com/videos/swyrcg/barack-obama-s-american-jobs-act",
"http://thecolbertreport.cc.com/videos/q1hw3n/barack-obama-s-american-jobs-act---paul-krugman",
"http://thecolbertreport.cc.com/videos/t7gpb8/ron-paul-2012",
"http://thecolbertreport.cc.com/videos/2cr39e/al-gore",
"http://thecolbertreport.cc.com/videos/e1gewo/sign-off----stephen-colbert-"
],
"guest": "Al Gore"
},
{
"date": "2011-09-14",
"videos": [
"http://thecolbertreport.cc.com/videos/thyhg7/jobs-bill-clipgate",
"http://thecolbertreport.cc.com/videos/gvt0ij/return-to-sender",
"http://thecolbertreport.cc.com/videos/3h08e2/return-to-sender---phil-rubio",
"http://thecolbertreport.cc.com/videos/gz48mn/rick-perry-s-hpv-vaccine-mandate",
"http://thecolbertreport.cc.com/videos/dx27ks/michael-moore",
"http://thecolbertreport.cc.com/videos/3rxw2x/sign-off---goodnight"
],
"guest": "Michael Moore"
},
{
"date": "2011-09-15",
"videos": [
"http://thecolbertreport.cc.com/videos/jgxmci/intro---9-15-11",
"http://thecolbertreport.cc.com/videos/rte3k7/take-a-billion--leave-a-billion",
"http://thecolbertreport.cc.com/videos/15vhbi/the-other-american-jobs-act",
"http://thecolbertreport.cc.com/videos/rje3k2/jimmy-fallon---stephen-reminisce",
"http://thecolbertreport.cc.com/videos/h90n13/fema-s-waffle-house-index",
"http://thecolbertreport.cc.com/videos/b406bd/david-copperfield",
"http://thecolbertreport.cc.com/videos/7m5lpn/sign-off---stephen-s-magic-trick"
],
"guest": "David Copperfield"
},
{
"date": "2011-09-20",
"videos": [
"http://thecolbertreport.cc.com/videos/tpoc1g/the-63rd-emmy-awards",
"http://thecolbertreport.cc.com/videos/whouap/barack-obama-unveils-the--buffett-rule-",
"http://thecolbertreport.cc.com/videos/pyq49u/the-word---death-and-taxes",
"http://thecolbertreport.cc.com/videos/3q875w/the-gayest-penetration",
"http://thecolbertreport.cc.com/videos/xnvm51/jeffrey-kluger",
"http://thecolbertreport.cc.com/videos/t0vjb4/sign-off---colbert-nation-s-newest-members"
],
"guest": "Jeffrey Kluger"
},
{
"date": "2011-09-21",
"videos": [
"http://thecolbertreport.cc.com/videos/hc8ova/intro---9-21-11",
"http://thecolbertreport.cc.com/videos/negwpt/coming-soon---hour-long-radiohead-special",
"http://thecolbertreport.cc.com/videos/kyxdz3/european-union-collapse---war-fueled-recovery",
"http://thecolbertreport.cc.com/videos/t51ow7/european-union-collapse---war-fueled-recovery---chrystia-freeland",
"http://thecolbertreport.cc.com/videos/wvyk91/wall-street-under-siege",
"http://thecolbertreport.cc.com/videos/z0celp/daniel-yergin",
"http://thecolbertreport.cc.com/videos/y9o1cm/sign-off---cigar"
],
"guest": "Daniel Yergin"
},
{
"date": "2011-09-22",
"videos": [
"http://thecolbertreport.cc.com/videos/9dc7h4/defunct-satellite-hurtles-toward-earth",
"http://thecolbertreport.cc.com/videos/szcqls/tip-wag---marine-corps---department-of-homeland-security",
"http://thecolbertreport.cc.com/videos/6uyhy5/obama-s-u-n--gaffes---rick-perry-s-support-for-israel",
"http://thecolbertreport.cc.com/videos/ncny69/jeremy-ben-ami",
"http://thecolbertreport.cc.com/videos/akoxfi/sign-off---the-beloved-dog-lives-on"
],
"guest": "Jeremy Ben-Ami"
},
{
"date": "2011-09-26",
"videos": [
"http://thecolbertreport.cc.com/videos/1w32i4/intro---9-26-11",
"http://thecolbertreport.cc.com/videos/p9c0ds/dr-pepper-presents-stephen-colbert-s-rocktember-with-radiohead",
"http://thecolbertreport.cc.com/videos/u4qbft/the-word---i-think--therefore-i-brand",
"http://thecolbertreport.cc.com/videos/grlcgn/radiohead",
"http://thecolbertreport.cc.com/videos/xqeu3w/ignoring-global-warming",
"http://thecolbertreport.cc.com/videos/wwvu7o/ignoring-global-warming---thom-yorke---ed-o-brien"
],
"guest": "Radiohead"
},
{
"date": "2011-09-27",
"videos": [
"http://thecolbertreport.cc.com/videos/9qb4vy/stephen---melinda-gates-foundation---donorschoose-org",
"http://thecolbertreport.cc.com/videos/tsm4sg/rick-perry-s-debate-gaffe---arizona-s-primary-date",
"http://thecolbertreport.cc.com/videos/5mvmay/sport-report---nascar-s-green-initiatives---nfl-pat-downs",
"http://thecolbertreport.cc.com/videos/ptxagr/melinda-gates",
"http://thecolbertreport.cc.com/videos/zlthc8/sign-off---beer-from-the-beerkenstocks"
],
"guest": "Melinda Gates"
},
{
"date": "2011-09-28",
"videos": [
"http://thecolbertreport.cc.com/videos/3qibl4/intro---9-28-11",
"http://thecolbertreport.cc.com/videos/udzuyb/george-clooney-s-villa-parties",
"http://thecolbertreport.cc.com/videos/tbuq71/the-word---labor-chains",
"http://thecolbertreport.cc.com/videos/3qmkez/atone-phone---john-lithgow-calls",
"http://thecolbertreport.cc.com/videos/ndmtp9/ken-burns",
"http://thecolbertreport.cc.com/videos/osmia6/sign-off---reading---shofar-playing"
],
"guest": "Ken Burns"
},
{
"date": "2011-09-29",
"videos": [
"http://thecolbertreport.cc.com/videos/0agwtq/mark-cuban-dances",
"http://thecolbertreport.cc.com/videos/ivvzeu/colbert-super-pac---ham-rove-s-secrets",
"http://thecolbertreport.cc.com/videos/3yzu4u/colbert-super-pac---trevor-potter---stephen-s-shell-corporation",
"http://thecolbertreport.cc.com/videos/ujyuht/colbert-super-pac-shh----the-donating-game",
"http://thecolbertreport.cc.com/videos/qiwg3k/mark-cuban",
"http://thecolbertreport.cc.com/videos/8ekdsc/sign-off---last-heroe--crawl"
],
"guest": "Mark Cuban"
},
{
"date": "2011-10-03",
"videos": [
"http://thecolbertreport.cc.com/videos/fehwjq/rick-perry-s-questionably-named-hunting-camp",
"http://thecolbertreport.cc.com/videos/m272fc/supreme-courting-season",
"http://thecolbertreport.cc.com/videos/v2njjc/supreme-courting-season---jeffrey-toobin",
"http://thecolbertreport.cc.com/videos/25ffk2/threatdown---bears-in-rehab--bear-terminators---sanctimonious-enviro-bears",
"http://thecolbertreport.cc.com/videos/wmazj5/jerome-groopman",
"http://thecolbertreport.cc.com/videos/kp6658/sign-off---stephen-s-water-bottle"
],
"guest": "Jerome Groopman"
},
{
"date": "2011-10-04",
"videos": [
"http://thecolbertreport.cc.com/videos/wy82eg/intro---10-4-11",
"http://thecolbertreport.cc.com/videos/3wq74s/chris-christie-2012",
"http://thecolbertreport.cc.com/videos/3dpzet/chris-christie-2012---rick-davis",
"http://thecolbertreport.cc.com/videos/cwuy2m/bocephus-s-eternal-question",
"http://thecolbertreport.cc.com/videos/xhc68w/john-lithgow",
"http://thecolbertreport.cc.com/videos/n16lxn/sign-off---formula-401-rumors"
],
"guest": "John Lithgow"
},
{
"date": "2011-10-05",
"videos": [
"http://thecolbertreport.cc.com/videos/0vn7mh/intro---10-5-11",
"http://thecolbertreport.cc.com/videos/xnxfq5/herman-cain-2012",
"http://thecolbertreport.cc.com/videos/dbbjic/herman-cain-2012---gay-choice",
"http://thecolbertreport.cc.com/videos/6kkk93/tip-wag---mexico-city-marriage-licenses---modern-warfare-3-s-xp-promotion",
"http://thecolbertreport.cc.com/videos/ifegp7/talib-kweli---yasiin-bey--a-k-a--mos-def-",
"http://thecolbertreport.cc.com/videos/7edjef/sign-off---iphone-goodnight"
],
"guest": "Mos Def & Talib Kweli"
},
{
"date": "2011-10-06",
"videos": [
"http://thecolbertreport.cc.com/videos/0qyxlz/colbert-super-pac-ad---foul-balls",
"http://thecolbertreport.cc.com/videos/fri8e1/intro---10-6-11",
"http://thecolbertreport.cc.com/videos/z103m6/sarah-palin-s-sad-news",
"http://thecolbertreport.cc.com/videos/yarfv2/colbert-super-pac-shh----apology-to-ham-rove",
"http://thecolbertreport.cc.com/videos/fottda/tribute-to-steve-jobs",
"http://thecolbertreport.cc.com/videos/98xl59/jason-amerine",
"http://thecolbertreport.cc.com/videos/oy1k9u/sign-off---goodnight"
],
"guest": "Jason Amerine"
},
{
"date": "2011-10-17",
"videos": [
"http://thecolbertreport.cc.com/videos/nng5h7/exclusive---harry-belafonte-extended-interview",
"http://thecolbertreport.cc.com/videos/gj3y6l/occupy-wall-street-spreads",
"http://thecolbertreport.cc.com/videos/z27tp0/the-word---look-out-for-the-little-guy",
"http://thecolbertreport.cc.com/videos/6vl2zq/sport-report---nba-lockout---colbert-super-pac-ad",
"http://thecolbertreport.cc.com/videos/01fxlb/harry-belafonte",
"http://thecolbertreport.cc.com/videos/s0qu24/sign-off---goodnight"
],
"guest": "Harry Belafonte"
},
{
"date": "2011-10-18",
"videos": [
"http://thecolbertreport.cc.com/videos/h40j2n/talking-iphone-4s",
"http://thecolbertreport.cc.com/videos/ta7e7u/herman-cain-s-electrified-fence",
"http://thecolbertreport.cc.com/videos/cbwqbb/thought-for-food---school-potato-guidelines---fast-food-stamps",
"http://thecolbertreport.cc.com/videos/3h8h2l/steven-pinker",
"http://thecolbertreport.cc.com/videos/9c1bsf/sign-off---sixth-anniversary-portrait"
],
"guest": "Steven Pinker"
},
{
"date": "2011-10-19",
"videos": [
"http://thecolbertreport.cc.com/videos/iirczx/intro---10-19-11",
"http://thecolbertreport.cc.com/videos/gghhza/herman-cain-canes-the-unemployed",
"http://thecolbertreport.cc.com/videos/ubi151/job-killing-epa",
"http://thecolbertreport.cc.com/videos/zi48pt/job-killing-epa---carol-browner",
"http://thecolbertreport.cc.com/videos/f49qpp/rush-limbaugh-s-l-r-a--research",
"http://thecolbertreport.cc.com/videos/fztuzs/ali-soufan",
"http://thecolbertreport.cc.com/videos/kodm5a/sign-off---laptop-music"
],
"guest": "Ali Soufan"
},
{
"date": "2011-10-20",
"videos": [
"http://thecolbertreport.cc.com/videos/n73wq4/intro---10-20-11",
"http://thecolbertreport.cc.com/videos/5p2a33/goodbye--muammar-al-gaddafi",
"http://thecolbertreport.cc.com/videos/5xgc3k/tip-wag---tea-party-nation-pledge---spirit-airlines--ad-revenue",
"http://thecolbertreport.cc.com/videos/ql433h/bill-o-reilly-s--pinheads---patriots-",
"http://thecolbertreport.cc.com/videos/qw2pao/chris-martin"
],
"guest": "Coldplay"
},
{
"date": "2011-10-24",
"videos": [
"http://thecolbertreport.cc.com/videos/x027jm/exclusive---colbert-super-pac---frank-luntz---stephen-knows-his-classic-rock",
"http://thecolbertreport.cc.com/videos/f8t1zf/america-s-top-mormons---jon-huntsman",
"http://thecolbertreport.cc.com/videos/45wqla/colbert-super-pac----corporations-are-people-",
"http://thecolbertreport.cc.com/videos/6s8sdq/colbert-super-pac----corporations-are-people----frank-luntz",
"http://thecolbertreport.cc.com/videos/5jjhhv/colbert-super-pac----corporations-are-people----frank-luntz-s-focus-group",
"http://thecolbertreport.cc.com/videos/541ucf/jon-huntsman",
"http://thecolbertreport.cc.com/videos/53t2yg/sign-off---goodnight"
],
"guest": "Jon Huntsman"
},
{
"date": "2011-10-25",
"videos": [
"http://thecolbertreport.cc.com/videos/s25oo4/intro---10-25-11",
"http://thecolbertreport.cc.com/videos/darfes/steve-jobs--biography",
"http://thecolbertreport.cc.com/videos/3uz7qn/herman-cain-s-campaign-ad",
"http://thecolbertreport.cc.com/videos/n2dzu0/flogging-the-americone-dream",
"http://thecolbertreport.cc.com/videos/wsqtx0/susan-saladoff",
"http://thecolbertreport.cc.com/videos/89ebii/sign-off---enjoying-americone-dream"
],
"guest": "Susan Saladoff"
},
{
"date": "2011-10-26",
"videos": [
"http://thecolbertreport.cc.com/videos/lj5z4k/colbert-super-pac-ad---ball-gag",
"http://thecolbertreport.cc.com/videos/xlwljf/exclusive---hey--remember-this--alabama-",
"http://thecolbertreport.cc.com/videos/fa0w0c/intro---10-26-11",
"http://thecolbertreport.cc.com/videos/zwe40u/whales-aren-t-people",
"http://thecolbertreport.cc.com/videos/7rtf6k/alabama-s-migrant-workers",
"http://thecolbertreport.cc.com/videos/dcq3ky/war-on-halloween---costume-swapping---jesus-ween",
"http://thecolbertreport.cc.com/videos/sqeewv/taylor-branch",
"http://thecolbertreport.cc.com/videos/6twlww/sign-off---don-t-buy-these-books"
],
"guest": "Taylor Branch"
},
{
"date": "2011-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/hfaq0j/intro---10-27-11",
"http://thecolbertreport.cc.com/videos/gmesd4/shockupy-wall-street-fad",
"http://thecolbertreport.cc.com/videos/xhn542/sport-report---nfl-fines---colbert-super-pac-s-second-nba-lockout-ad",
"http://thecolbertreport.cc.com/videos/s2ax4o/toby-keith"
],
"guest": "Toby Keith"
},
{
"date": "2011-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/l7lj84/sexy-costume-discrimination",
"http://thecolbertreport.cc.com/videos/0svkvx/colbert-super-pac---occupy-wall-street-co-optportunity",
"http://thecolbertreport.cc.com/videos/d4hmi3/colbert-super-pac---stephen-colbert-occupies-occupy-wall-street-pt--1",
"http://thecolbertreport.cc.com/videos/4tqlz9/tip-wag---gun-freedom---healthcare-bartering",
"http://thecolbertreport.cc.com/videos/n0jrmj/neil-macgregor",
"http://thecolbertreport.cc.com/videos/tyvfoe/sign-off---goodnight"
],
"guest": "Neil MacGregor"
},
{
"date": "2011-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/9346zn/intro---11-1-11",
"http://thecolbertreport.cc.com/videos/ysh9bq/herman-cain-under-attack",
"http://thecolbertreport.cc.com/videos/hqjgoz/colbert-super-pac---stephen-colbert-occupies-occupy-wall-street-pt--2",
"http://thecolbertreport.cc.com/videos/yo2avl/yo-yo-ma--stuart-duncan--edgar-meyer---chris-thile",
"http://thecolbertreport.cc.com/videos/pez22q/sign-off---goodnight"
],
"guest": "Yo-Yo Ma"
},
{
"date": "2011-11-02",
"videos": [
"http://thecolbertreport.cc.com/videos/394xx1/intro---11-2-11",
"http://thecolbertreport.cc.com/videos/n3ifbc/herman-cain-s-international-affairs",
"http://thecolbertreport.cc.com/videos/icx1x6/the-word---bite-the-hand-that-feeds-you",
"http://thecolbertreport.cc.com/videos/6dlo6v/muffingate",
"http://thecolbertreport.cc.com/videos/6jv4ha/michael-pollan",
"http://thecolbertreport.cc.com/videos/c8yk04/sign-off---white-castle---beer"
],
"guest": "Michael Pollan"
},
{
"date": "2011-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/db8sp6/intro---11-3-11",
"http://thecolbertreport.cc.com/videos/tvwydl/ghost-sex",
"http://thecolbertreport.cc.com/videos/gxg7x0/european-investment-prospectus",
"http://thecolbertreport.cc.com/videos/2nhcbh/colbert-super-pac---herman-cain-s-fundraising---rush-limbaugh-s-stereotypes",
"http://thecolbertreport.cc.com/videos/rwwdgv/nathan-wolfe",
"http://thecolbertreport.cc.com/videos/g7b66l/sign-off---purell"
],
"guest": "Nathan Wolfe"
},
{
"date": "2011-11-07",
"videos": [
"http://thecolbertreport.cc.com/videos/px6doe/colbert-super-pac---issue-ads",
"http://thecolbertreport.cc.com/videos/otywae/colbert-super-pac---issue-ads---trevor-potter",
"http://thecolbertreport.cc.com/videos/6nuhjw/blood-in-the-water---larry-taylor-s-anti-semitic-slur",
"http://thecolbertreport.cc.com/videos/xisem8/niall-ferguson",
"http://thecolbertreport.cc.com/videos/e9gc1y/sign-off---goodnight"
],
"guest": "Niall Ferguson"
},
{
"date": "2011-11-08",
"videos": [
"http://thecolbertreport.cc.com/videos/m4n0nh/herman-cain-won-t-be-stopped",
"http://thecolbertreport.cc.com/videos/yk540u/colbert-platinum---wealth-under-siege",
"http://thecolbertreport.cc.com/videos/3krrxg/the-blitzkrieg-on-grinchitude---fired-santa-claus---colbert-super-pac-christmas",
"http://thecolbertreport.cc.com/videos/s4sqap/seth-meyers",
"http://thecolbertreport.cc.com/videos/fz9les/sign-off---custom-escape-yacht"
],
"guest": "Seth Meyers"
},
{
"date": "2011-11-09",
"videos": [
"http://thecolbertreport.cc.com/videos/qc00ca/intro---11-9-11",
"http://thecolbertreport.cc.com/videos/gs7ppt/herman-cain-s-democrat-conspiracy",
"http://thecolbertreport.cc.com/videos/e94bhi/the-word---bully-pulpit",
"http://thecolbertreport.cc.com/videos/v1f4n3/americone-dream-of-the-future",
"http://thecolbertreport.cc.com/videos/3k5pcf/james-martin",
"http://thecolbertreport.cc.com/videos/9mrd4k/sign-off---feeding-jimmy-fallon-s-portrait"
],
"guest": "Father Jim Martin"
},
{
"date": "2011-11-10",
"videos": [
"http://thecolbertreport.cc.com/videos/qfc9xd/shock---aussie",
"http://thecolbertreport.cc.com/videos/pg0q9t/rick-perry-s-sorry--oops",
"http://thecolbertreport.cc.com/videos/g1tcu5/occupy-u-c--berkeley",
"http://thecolbertreport.cc.com/videos/4vt0hx/brian-eno"
],
"guest": "Brian Eno"
},
{
"date": "2011-11-14",
"videos": [
"http://thecolbertreport.cc.com/videos/ufww4s/intro---11-14-11",
"http://thecolbertreport.cc.com/videos/3zodum/cbs-snubs-michele-bachmann",
"http://thecolbertreport.cc.com/videos/5vb30b/keystone-xl-oil-pipeline---bill-mckibben",
"http://thecolbertreport.cc.com/videos/hu2y6t/vodka-tampons",
"http://thecolbertreport.cc.com/videos/uoo5c0/thomas-thwaites",
"http://thecolbertreport.cc.com/videos/9x16t1/sign-off---leaf-blower"
],
"guest": "Thomas Thwaites"
},
{
"date": "2011-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/c73ioe/occupy-wall-street-decamped",
"http://thecolbertreport.cc.com/videos/qzjgvi/difference-makers---jimmy-justice",
"http://thecolbertreport.cc.com/videos/ufsd5o/bears---balls---celebrity-relics---gooooooold-",
"http://thecolbertreport.cc.com/videos/f1tu06/elijah-wood",
"http://thecolbertreport.cc.com/videos/0vuu1j/sign-off---one-ring"
],
"guest": "Elijah Wood"
},
{
"date": "2011-11-16",
"videos": [
"http://thecolbertreport.cc.com/videos/znljdd/intro---11-16-11",
"http://thecolbertreport.cc.com/videos/ukaw6z/newt-gingrich-s-greek-cruise",
"http://thecolbertreport.cc.com/videos/6dwdiy/tip-wag---pin-ups-for-ron-paul--movie-torture-tactics---offensive-merchandise",
"http://thecolbertreport.cc.com/videos/z9qeks/elderly-occupier-pepper-sprayed",
"http://thecolbertreport.cc.com/videos/94gywl/chris-matthews",
"http://thecolbertreport.cc.com/videos/aekw8v/colbert-report-bedtime-stories---dragon---wizard"
],
"guest": "Chris Matthews"
},
{
"date": "2011-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/hnwps8/intro---11-17-11",
"http://thecolbertreport.cc.com/videos/41apq9/people-magazine-s-sexiest-man-alive-2011",
"http://thecolbertreport.cc.com/videos/wdsxo5/the-word---the-1-",
"http://thecolbertreport.cc.com/videos/h76098/thought-for-food---pushy-pops",
"http://thecolbertreport.cc.com/videos/y88hzi/susan-orlean",
"http://thecolbertreport.cc.com/videos/8d1q2a/sign-off---shout-out-to-the-black-belles"
],
"guest": "Susan Orlean"
},
{
"date": "2011-11-28",
"videos": [
"http://thecolbertreport.cc.com/videos/no4xhk/intro---11-28-11",
"http://thecolbertreport.cc.com/videos/58ikdq/violent-black-friday",
"http://thecolbertreport.cc.com/videos/h84vbf/tip-wag---barack-obama-s-omission--mitt-romney-s-ad---lululemon-s-tagline",
"http://thecolbertreport.cc.com/videos/qggo98/stephen-colbert-s-mereporters",
"http://thecolbertreport.cc.com/videos/ut1g77/siddhartha-mukherjee",
"http://thecolbertreport.cc.com/videos/np8x21/sign-off---macbook"
],
"guest": "Siddhartha Mukherjee"
},
{
"date": "2011-11-29",
"videos": [
"http://thecolbertreport.cc.com/videos/92ekqe/intro---11-29-11",
"http://thecolbertreport.cc.com/videos/fafzt9/he-said--she-said--she-said--she-said--she-said--she-was-paid-not-to-say",
"http://thecolbertreport.cc.com/videos/r8p3nn/yahweh-or-no-way---altered-catholic-mass--papal-seat-belt---offensive-vodka-ad",
"http://thecolbertreport.cc.com/videos/4dohxr/tinariwen-with-kyp-malone---tunde-adebimpe",
"http://thecolbertreport.cc.com/videos/9nbfru/sign-off---tinariwen--album"
],
"guest": "Tinariwen"
},
{
"date": "2011-11-30",
"videos": [
"http://thecolbertreport.cc.com/videos/fc3loc/newt-gingrich-denies-lobbying",
"http://thecolbertreport.cc.com/videos/akure9/barney-frank-s-retirement",
"http://thecolbertreport.cc.com/videos/d0x6zg/better-know-a-district---massachusetts--4th---barney-frank-update",
"http://thecolbertreport.cc.com/videos/j1oeb0/conservative-siri",
"http://thecolbertreport.cc.com/videos/okgz78/stephen-sondheim",
"http://thecolbertreport.cc.com/videos/ga76kd/sign-off---goodnight"
],
"guest": "Stephen Sondheim"
},
{
"date": "2011-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/eclhxy/in-herman-cain-s-defense",
"http://thecolbertreport.cc.com/videos/70sj7m/stop-online-piracy-act",
"http://thecolbertreport.cc.com/videos/nmrgz9/stop-online-piracy-act---danny-goldberg---jonathan-zittrain",
"http://thecolbertreport.cc.com/videos/pzi69s/mitt-romney-gets-testy",
"http://thecolbertreport.cc.com/videos/pmypbg/richard-branson",
"http://thecolbertreport.cc.com/videos/rhwqc7/sign-off---fire-extinguishing-powder"
],
"guest": "Richard Branson"
},
{
"date": "2011-12-05",
"videos": [
"http://thecolbertreport.cc.com/videos/yy5x27/2011-kennedy-center-honors",
"http://thecolbertreport.cc.com/videos/xn3r3g/mysteries-of-the-ancient-unknown---2012-end-of-times",
"http://thecolbertreport.cc.com/videos/f2zdhx/herman-cain-drops-out",
"http://thecolbertreport.cc.com/videos/dt8216/jimmie-johnson",
"http://thecolbertreport.cc.com/videos/0ewfq6/sign-off---slow-motion-race-replay"
],
"guest": "Jimmie Johnson"
},
{
"date": "2011-12-06",
"videos": [
"http://thecolbertreport.cc.com/videos/1o3huj/american-drone-in-iran",
"http://thecolbertreport.cc.com/videos/fcu2h2/donald-s-trumptacular---stephen-s-south-carolina-serious--classy-republican-debate",
"http://thecolbertreport.cc.com/videos/dphj6u/the-black-keys",
"http://thecolbertreport.cc.com/videos/4t05a5/sign-off---glenn-eichler-s-graphic-novel"
],
"guest": "The Black Keys"
},
{
"date": "2011-12-07",
"videos": [
"http://thecolbertreport.cc.com/videos/5kfnqe/stephen-colbert-s-south-carolina-serious--classy-republican-debate---save-the-date",
"http://thecolbertreport.cc.com/videos/h7qfup/colbert-super-pac---stephen-s-south-carolina-referendum",
"http://thecolbertreport.cc.com/videos/6dds1t/colbert-super-pac---stephen-s-south-carolina-referendum---dick-harpootlian",
"http://thecolbertreport.cc.com/videos/c66w64/jon-huntsman-sr--s-ad-buy",
"http://thecolbertreport.cc.com/videos/pueyvf/david-hallberg"
],
"guest": "David Hallberg"
},
{
"date": "2011-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/08g4y6/intro---12-8-11",
"http://thecolbertreport.cc.com/videos/sd4lua/michigan-s-snow-cone-machines",
"http://thecolbertreport.cc.com/videos/lbdchz/cheating-death---chicken-pox-lollipops---fecal-transplants",
"http://thecolbertreport.cc.com/videos/3d10i3/rick-perry-s-pro-christmas-ad",
"http://thecolbertreport.cc.com/videos/ovws10/jack-abramoff",
"http://thecolbertreport.cc.com/videos/gt2hau/sign-off---goodnight"
],
"guest": "Jack Abramoff"
},
{
"date": "2011-12-12",
"videos": [
"http://thecolbertreport.cc.com/videos/iu3gnx/intro---12-12-11",
"http://thecolbertreport.cc.com/videos/52a05g/christmas-cram",
"http://thecolbertreport.cc.com/videos/zuufyt/tip-wag---liberal-dictionary---newt-gingrich-alert",
"http://thecolbertreport.cc.com/videos/qv9fb0/norway-s-butter-shortage",
"http://thecolbertreport.cc.com/videos/kx2u80/samuel-l--jackson",
"http://thecolbertreport.cc.com/videos/v6sdfa/sign-off---merry-christmas"
],
"guest": "Samuel L. Jackson"
},
{
"date": "2011-12-13",
"videos": [
"http://thecolbertreport.cc.com/videos/rwb03h/intro---12-13-11",
"http://thecolbertreport.cc.com/videos/7zgxss/trump-s-cancellation---stephen-s-south-carolina-serious--classy-re-announcement",
"http://thecolbertreport.cc.com/videos/frhjj0/the-word---let-them-buy-cake",
"http://thecolbertreport.cc.com/videos/flxy99/anderson-cooper-s-phallus-party-accusation",
"http://thecolbertreport.cc.com/videos/sn7cpj/mark-whitaker",
"http://thecolbertreport.cc.com/videos/eswjdg/sign-off---goodnight"
],
"guest": "Mark Whitaker"
},
{
"date": "2011-12-14",
"videos": [
"http://thecolbertreport.cc.com/videos/18wgz1/stephen-colbert-s-south-carolina-serious--classy-debate---nat-geo-wild-s-response",
"http://thecolbertreport.cc.com/videos/khf3hx/christine-o-donnell-s-endorsement",
"http://thecolbertreport.cc.com/videos/vg9vdy/stephen-colbert-s-big-gay-roundup---military-bestiality---homosexual-penguins",
"http://thecolbertreport.cc.com/videos/qvom30/tv-hat",
"http://thecolbertreport.cc.com/videos/lqslc3/ray-odierno"
],
"guest": "Gen. Raymond Odierno"
},
{
"date": "2011-12-15",
"videos": [
"http://thecolbertreport.cc.com/videos/8900sr/stephen-colbert-s-south-carolina-serious--classy-republican-debate---network-battle",
"http://thecolbertreport.cc.com/videos/dwccb9/the-blitzkrieg-on-grinchitude---department-store-cutbacks---gun-filled-christmas",
"http://thecolbertreport.cc.com/videos/9ugow2/fox-news--mitt-romney-photo-flub",
"http://thecolbertreport.cc.com/videos/iqj0p8/daniel-craig",
"http://thecolbertreport.cc.com/videos/tri39n/2011-goodbye"
],
"guest": "Daniel Craig"
}
],
"2012": [
{
"date": "2012-01-03",
"videos": [
"http://thecolbertreport.cc.com/videos/9u9qx6/iowa-caucus-2012",
"http://thecolbertreport.cc.com/videos/yx6r23/iowa-caucus---caucus-goer-s-choice",
"http://thecolbertreport.cc.com/videos/5mqn59/iowa-caucus---megyn-shelly-s-prediction",
"http://thecolbertreport.cc.com/videos/qx2w8n/kim-jong-il---in-memoriam",
"http://thecolbertreport.cc.com/videos/ioguwl/bernie-sanders",
"http://thecolbertreport.cc.com/videos/4ob0g2/sign-off---megyn-shelly"
],
"guest": "Sen. Bernie Sanders"
},
{
"date": "2012-01-04",
"videos": [
"http://thecolbertreport.cc.com/videos/s8am6m/iowa-caucus---mitt-romney-s-victory-speech---rick-santorum-s-coup",
"http://thecolbertreport.cc.com/videos/m762nz/iowa-caucus---not-mitt-romney-s-super-pac",
"http://thecolbertreport.cc.com/videos/x195wh/iowa-caucus---cable-news-coverage",
"http://thecolbertreport.cc.com/videos/61k2nf/iowa-caucus---woi-in-des-moines-reports",
"http://thecolbertreport.cc.com/videos/1ja4vs/john-heilemann",
"http://thecolbertreport.cc.com/videos/xyq4st/sign-off---erin-burnett-pong"
],
"guest": "John Heilemann"
},
{
"date": "2012-01-05",
"videos": [
"http://thecolbertreport.cc.com/videos/8t37qs/intro---1-5-12",
"http://thecolbertreport.cc.com/videos/js72my/fun-rick-santorum",
"http://thecolbertreport.cc.com/videos/5xw4yi/the-word---catch-2012",
"http://thecolbertreport.cc.com/videos/sjbolu/god-s-message-to-pat-robertson",
"http://thecolbertreport.cc.com/videos/lgtesz/steve-case",
"http://thecolbertreport.cc.com/videos/o6dbzj/sign-off---mayan-headwear---sacrificial-chicken"
],
"guest": "Steve Case"
},
{
"date": "2012-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/y3wl1i/intro---1-9-12",
"http://thecolbertreport.cc.com/videos/3m6txc/new-hampshire-gop-debates",
"http://thecolbertreport.cc.com/videos/l08ywe/new-hampshire-gop-debates---moderate-extremes",
"http://thecolbertreport.cc.com/videos/75c0w9/rick-santorum-on-gay-parents---bla-people",
"http://thecolbertreport.cc.com/videos/e3zsob/melissa-harris-perry",
"http://thecolbertreport.cc.com/videos/j2sskk/sign-off---jack-daniels"
],
"guest": "Neil Shubin"
},
{
"date": "2012-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/9llvcg/new-hampshire-primary---mitt-romney-s-gaffe",
"http://thecolbertreport.cc.com/videos/m98f4t/tip-wag---irresponsible-dead-people---insensitive-papa-john-s",
"http://thecolbertreport.cc.com/videos/wwvi39/malice-in-blunderland",
"http://thecolbertreport.cc.com/videos/fqk2fh/bill-moyers",
"http://thecolbertreport.cc.com/videos/wdmkv8/sign-off---turntable"
],
"guest": "Ben Gibbard"
},
{
"date": "2012-01-11",
"videos": [
"http://thecolbertreport.cc.com/videos/bxzp6z/intro---1-11-12",
"http://thecolbertreport.cc.com/videos/f8j0ng/commitment-to-mitt-romney",
"http://thecolbertreport.cc.com/videos/7t7ct3/south-carolina-s-fresh-face",
"http://thecolbertreport.cc.com/videos/73ux63/stephen-colbert-s-end-of-the-world-of-the-week---phobos-grunt",
"http://thecolbertreport.cc.com/videos/wx04iy/george-stephanopoulos",
"http://thecolbertreport.cc.com/videos/vjhrm3/sign-off---decision-of-a-lifetime"
],
"guest": "George Stephanopoulos"
},
{
"date": "2012-01-12",
"videos": [
"http://thecolbertreport.cc.com/videos/hrwtsb/colbert-super-pac---coordination-problem",
"http://thecolbertreport.cc.com/videos/av6bvx/colbert-super-pac---coordination-resolution-with-jon-stewart",
"http://thecolbertreport.cc.com/videos/5otlsk/mike-d-s-hip-hop-semantics",
"http://thecolbertreport.cc.com/videos/ui35sv/mike-allen",
"http://thecolbertreport.cc.com/videos/mnp9up/sign-off---ipad-ebook"
],
"guest": "Mike Allen"
},
{
"date": "2012-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/dyktip/colbert-super-pac-ad---not-abel",
"http://thecolbertreport.cc.com/videos/lec1ln/intro---1-16-12",
"http://thecolbertreport.cc.com/videos/ke9tkw/jon-huntsman-out--rick-santorum-in",
"http://thecolbertreport.cc.com/videos/buf78z/colbert-super-pac---mitt-romney-attack-ad",
"http://thecolbertreport.cc.com/videos/uh4wcy/the-word---raise-cain",
"http://thecolbertreport.cc.com/videos/cgtb89/scott-douglas",
"http://thecolbertreport.cc.com/videos/td091t/sign-off----this-is-herman-cain--"
],
"guest": "Rev. Scott Douglas"
},
{
"date": "2012-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/knvkbe/colbert-super-pac-ad---double-negative",
"http://thecolbertreport.cc.com/videos/fe4nep/intro---1-17-12",
"http://thecolbertreport.cc.com/videos/ufvy9m/colbert-super-pac---gop-attack-ads---herman-cain-ad",
"http://thecolbertreport.cc.com/videos/qil57h/yahweh-or-no-way---online-christian-dating---seven-days-of-sex",
"http://thecolbertreport.cc.com/videos/0alvjc/jennifer-granholm",
"http://thecolbertreport.cc.com/videos/mbnjnn/sign-off---vote-for-herman-cain"
],
"guest": "Jennifer Granholm"
},
{
"date": "2012-01-18",
"videos": [
"http://thecolbertreport.cc.com/videos/bpbhtr/colbert-super-pac-ad---modern-stage-combat",
"http://thecolbertreport.cc.com/videos/2f7upq/intro---1-18-12",
"http://thecolbertreport.cc.com/videos/q6xocp/newt-gingrich-s-performance---mitt-romney-s-tax-returns",
"http://thecolbertreport.cc.com/videos/fx3xum/stephen-s-approval-rating",
"http://thecolbertreport.cc.com/videos/zvmmfs/colbert-super-pac---civility-ad---stephen-s-south-carolina-rally",
"http://thecolbertreport.cc.com/videos/orzoc4/sopa---pipa",
"http://thecolbertreport.cc.com/videos/i8qam3/david-frum",
"http://thecolbertreport.cc.com/videos/3mfkme/sign-off---south-carolina-rally-with-herman-cain"
],
"guest": "David Frum"
},
{
"date": "2012-01-19",
"videos": [
"http://thecolbertreport.cc.com/videos/pebyno/troubled-gop-waters---stephen-under-attack",
"http://thecolbertreport.cc.com/videos/7qvxgu/colbert-super-pac---john-paul-stevens",
"http://thecolbertreport.cc.com/videos/k3pbui/carrie-rebora-barratt",
"http://thecolbertreport.cc.com/videos/nno4x3/sign-off---flight-to-charleston--sc"
],
"guest": "Carrie Rebora Barratt"
},
{
"date": "2012-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/kachyg/intro---1-23-12",
"http://thecolbertreport.cc.com/videos/iql42n/newt-gingrich-s-south-carolina-kill",
"http://thecolbertreport.cc.com/videos/50z46i/herman-cain-s-bittersweet-south-carolina-victory",
"http://thecolbertreport.cc.com/videos/e3y9nd/rock-me-like-a-herman-cain-south-cain-olina-primary-rally---cain-elot-revisited",
"http://thecolbertreport.cc.com/videos/vim94y/bruce-bueno-de-mesquita",
"http://thecolbertreport.cc.com/videos/gu52h0/sign-off---sniffing-a-marker"
],
"guest": "Bruce Bueno De Mesquita"
},
{
"date": "2012-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/n2rnnr/exclusive---rock-me-like-a-herman-cain-south-cain-olina-primary-rally-pt--1",
"http://thecolbertreport.cc.com/videos/jc76hc/exclusive---rock-me-like-a-herman-cain-south-cain-olina-primary-rally-pt--2",
"http://thecolbertreport.cc.com/videos/jog4lt/intro---1-24-12",
"http://thecolbertreport.cc.com/videos/q3ro37/colbert-super-pac---hostage-crisis---day-2",
"http://thecolbertreport.cc.com/videos/zop8mz/18th-gop-debate",
"http://thecolbertreport.cc.com/videos/gzi3ec/grim-colberty-tales-with-maurice-sendak-pt--1",
"http://thecolbertreport.cc.com/videos/kg7hw1/rick-santorum-s-senior-pandering",
"http://thecolbertreport.cc.com/videos/381zai/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/14903e/sign-off---reading--bumble-ardy-"
],
"guest": "Andrew Sullivan"
},
{
"date": "2012-01-25",
"videos": [
"http://thecolbertreport.cc.com/videos/9f0foj/2012-state-of-the-union-address---gop-rebuttals",
"http://thecolbertreport.cc.com/videos/2uwi0i/grim-colberty-tales-with-maurice-sendak-pt--2",
"http://thecolbertreport.cc.com/videos/3un4zv/un-american-news---china-edition",
"http://thecolbertreport.cc.com/videos/kwuhk6/terry-gross",
"http://thecolbertreport.cc.com/videos/r2j6o1/sign-off---colonel-tuxedo-s-cat-food"
],
"guest": "Terry Gross"
},
{
"date": "2012-01-26",
"videos": [
"http://thecolbertreport.cc.com/videos/05qh1w/colbert-super-pac---hostage-crisis---day-4",
"http://thecolbertreport.cc.com/videos/5gcr8j/mitt-romney---newt-gingrich-in-florida",
"http://thecolbertreport.cc.com/videos/pudtpb/sean-hannity-s--the-great-american-panel-",
"http://thecolbertreport.cc.com/videos/y191mp/the-great-available-panel",
"http://thecolbertreport.cc.com/videos/sg6jkh/drew-barrymore",
"http://thecolbertreport.cc.com/videos/kk56ka/sign-off---football-throwing"
],
"guest": "Drew Barrymore"
},
{
"date": "2012-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/rcm539/colbert-super-pac---the-great-chase",
"http://thecolbertreport.cc.com/videos/1ws9v2/colbert-super-pac---return-of-the-pac",
"http://thecolbertreport.cc.com/videos/n3pkmh/threatdown---barack-obama--fundamentalist-flippers---coked-up-diplomats",
"http://thecolbertreport.cc.com/videos/tlfrhi/gop---the-hispanic-vote",
"http://thecolbertreport.cc.com/videos/amck6x/laurence-tribe",
"http://thecolbertreport.cc.com/videos/v9f5m2/sign-off---shouting-goodnight"
],
"guest": "Laurence H. Tribe"
},
{
"date": "2012-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/62pas5/intro---1-31-12",
"http://thecolbertreport.cc.com/videos/f44hch/newt-gingrich-s-supporters",
"http://thecolbertreport.cc.com/videos/udnnzi/the-word---american-history-x-d",
"http://thecolbertreport.cc.com/videos/qs311n/bjork",
"http://thecolbertreport.cc.com/videos/u7u9lh/sign-off----biophilia-"
],
"guest": "Bjork"
},
{
"date": "2012-02-01",
"videos": [
"http://thecolbertreport.cc.com/videos/yk5cpe/intro---2-1-12",
"http://thecolbertreport.cc.com/videos/o3p6c2/black-history-celebration-moment",
"http://thecolbertreport.cc.com/videos/3nohh2/mitt-romney-s-florida-victory",
"http://thecolbertreport.cc.com/videos/uswa0x/colbert-super-pac---americone-dream-super-pack",
"http://thecolbertreport.cc.com/videos/kqctrf/ameena-matthews",
"http://thecolbertreport.cc.com/videos/5m98im/sign-off---americone-dream-super-pack"
],
"guest": "Ameena Matthews"
},
{
"date": "2012-02-02",
"videos": [
"http://thecolbertreport.cc.com/videos/4dia59/intro---2-2-12",
"http://thecolbertreport.cc.com/videos/uu5zmj/the-meaning-of-groundhog-day",
"http://thecolbertreport.cc.com/videos/bwbr2v/america-s-biggest-super-pac-donors",
"http://thecolbertreport.cc.com/videos/lh3kq3/colbert-super-pac---thank-you",
"http://thecolbertreport.cc.com/videos/04ottd/survivor-sues-newt-gingrich---dave-bickler",
"http://thecolbertreport.cc.com/videos/a7r0zs/christiane-amanpour",
"http://thecolbertreport.cc.com/videos/uzu0lz/sign-off---goodnight"
],
"guest": "Christiane Amanpour"
},
{
"date": "2012-02-13",
"videos": [
"http://thecolbertreport.cc.com/videos/hhq4en/intro---2-13-12",
"http://thecolbertreport.cc.com/videos/2kynbu/linsanity-",
"http://thecolbertreport.cc.com/videos/hgxqxc/people-who-are-destroying-america---sawstop",
"http://thecolbertreport.cc.com/videos/ju995r/stephen-colbert-s-free-americone-dream-day",
"http://thecolbertreport.cc.com/videos/eks7za/bill-mckibben",
"http://thecolbertreport.cc.com/videos/k6qadu/sign-off---colbert-nation-newborn"
],
"guest": "Bill McKibben"
},
{
"date": "2012-02-14",
"videos": [
"http://thecolbertreport.cc.com/videos/u5h2yo/intro---2-14-12",
"http://thecolbertreport.cc.com/videos/3rk6lv/westminster-kennel-club-dog-show-2012",
"http://thecolbertreport.cc.com/videos/jx9ojl/contraception-crusade",
"http://thecolbertreport.cc.com/videos/lyzukj/tip-wag---gay-building-marriage---transportation-safety-board-cell-phone-ban",
"http://thecolbertreport.cc.com/videos/ej01p5/william-broad",
"http://thecolbertreport.cc.com/videos/mhuyjx/sign-off---stephen-s-friend-lou-dog"
],
"guest": "William Broad"
},
{
"date": "2012-02-20",
"videos": [
"http://thecolbertreport.cc.com/videos/f1ta15/intro---2-20-12",
"http://thecolbertreport.cc.com/videos/7ghzcu/mitt-romney---donald-trump-in-michigan",
"http://thecolbertreport.cc.com/videos/lydem1/rick-santorum-s-energy-war-alarm",
"http://thecolbertreport.cc.com/videos/tqad40/ann-patchett",
"http://thecolbertreport.cc.com/videos/qgsly5/sign-off---caught-looking"
],
"guest": "Ann Patchett"
},
{
"date": "2012-02-21",
"videos": [
"http://thecolbertreport.cc.com/videos/vdtnp9/intro---2-21-12",
"http://thecolbertreport.cc.com/videos/dgnc7d/douchebag-showdown",
"http://thecolbertreport.cc.com/videos/mnahgd/colbert-super-pac---nancy-pelosi-s-ad---barack-obama-s-super-pac",
"http://thecolbertreport.cc.com/videos/s0vtdx/robert-kagan",
"http://thecolbertreport.cc.com/videos/x36uyb/sign-off---dark-lord-of-the-sith"
],
"guest": "Robert Kagan"
},
{
"date": "2012-02-22",
"videos": [
"http://thecolbertreport.cc.com/videos/n05gam/intro---2-22-12",
"http://thecolbertreport.cc.com/videos/krghr1/stephen-s-lenten-sacrifice",
"http://thecolbertreport.cc.com/videos/dv9iqc/the-word---surrender-to-a-buyer-power",
"http://thecolbertreport.cc.com/videos/w2qw1t/better-know-a-district---california-s-8th",
"http://thecolbertreport.cc.com/videos/d6raxz/nancy-pelosi",
"http://thecolbertreport.cc.com/videos/9mdx7s/sign-off---conquistador-sacrifice"
],
"guest": "Rep. Nancy Pelosi"
},
{
"date": "2012-02-23",
"videos": [
"http://thecolbertreport.cc.com/videos/g3b2me/arizona-gop-debate",
"http://thecolbertreport.cc.com/videos/6wnf2j/posthumous-mormon-baptism",
"http://thecolbertreport.cc.com/videos/zzgfft/wheat-thins-sponsortunity",
"http://thecolbertreport.cc.com/videos/jshg47/placido-domingo"
],
"guest": "Placido Domingo"
},
{
"date": "2012-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/6llqzw/mitt-romney-s---rick-santorum-s-michigan-campaigns",
"http://thecolbertreport.cc.com/videos/45yrtw/peggielene-bartels",
"http://thecolbertreport.cc.com/videos/xr2dmf/sign-off---goodnight"
],
"guest": "Peggielene Bartels"
},
{
"date": "2012-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/l484x8/intro---2-28-12",
"http://thecolbertreport.cc.com/videos/b44eo3/the-colbert-report-s-1000th-show",
"http://thecolbertreport.cc.com/videos/hsyhov/rising-oil-prices---john-kilduff",
"http://thecolbertreport.cc.com/videos/gqa08a/mr--smith-goes-to-the-state-legislature--then-later-possibly-washington---bob-morris---kyle-jones",
"http://thecolbertreport.cc.com/videos/0xatad/ross-eisenbrey",
"http://thecolbertreport.cc.com/videos/8ebxgr/stephen-s-1000th-ticket"
],
"guest": "Ross Eisenbrey"
},
{
"date": "2012-02-29",
"videos": [
"http://thecolbertreport.cc.com/videos/ueosv6/intro---2-29-12",
"http://thecolbertreport.cc.com/videos/y0ejfo/countdown-to-loving-mitt",
"http://thecolbertreport.cc.com/videos/3dllp7/the-word---change-we-can-believe-in",
"http://thecolbertreport.cc.com/videos/3adb3i/tip-wag---kansas--male-birth-control-pill---new-york-s-babyccino",
"http://thecolbertreport.cc.com/videos/puth71/william-shatner",
"http://thecolbertreport.cc.com/videos/dhcxcx/sign-off---goodnight"
],
"guest": "William Shatner"
},
{
"date": "2012-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/ueosv6/intro---2-29-12",
"http://thecolbertreport.cc.com/videos/y0ejfo/countdown-to-loving-mitt",
"http://thecolbertreport.cc.com/videos/3dllp7/the-word---change-we-can-believe-in",
"http://thecolbertreport.cc.com/videos/3adb3i/tip-wag---kansas--male-birth-control-pill---new-york-s-babyccino",
"http://thecolbertreport.cc.com/videos/puth71/william-shatner",
"http://thecolbertreport.cc.com/videos/dhcxcx/sign-off---goodnight"
],
"guest": "Claire Danes"
},
{
"date": "2012-03-01",
"videos": [
"http://thecolbertreport.cc.com/videos/eolisf/countdown-to-loving-mitt---jeb-bush",
"http://thecolbertreport.cc.com/videos/bf1ekb/people-who-are-destroying-america---teachers",
"http://thecolbertreport.cc.com/videos/ncu1ti/mysteries-of-the-ancient-unknown---yo-mama-jokes",
"http://thecolbertreport.cc.com/videos/tw0ear/claire-danes",
"http://thecolbertreport.cc.com/videos/4gz8ak/sign-off---jeb-bush-s-portrait"
],
"guest": "Claire Danes"
},
{
"date": "2012-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/xceapv/countdown-to-loving-mitt---super-tuesday",
"http://thecolbertreport.cc.com/videos/29dn96/rush-limbaugh-apologizes-to-sandra-fluke",
"http://thecolbertreport.cc.com/videos/pww7ru/sport-report---pete-weber--danica-patrick---the-new-orleans-saints",
"http://thecolbertreport.cc.com/videos/nwk5lf/audra-mcdonald"
],
"guest": "Audra McDonald"
},
{
"date": "2012-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/4yvx5w/super-tuesday-party--putin-s-win---india-s-state-assembly",
"http://thecolbertreport.cc.com/videos/nzr8wl/the-word---due-or-die",
"http://thecolbertreport.cc.com/videos/rxyz0z/thought-for-food---responsible-snacking---second-breakfast",
"http://thecolbertreport.cc.com/videos/h24vfx/jonathan-safran-foer",
"http://thecolbertreport.cc.com/videos/em4ksp/sign-off---good-catch"
],
"guest": "Jonathan Safran Foer"
},
{
"date": "2012-03-07",
"videos": [
"http://thecolbertreport.cc.com/videos/i93vkc/intro---3-7-12",
"http://thecolbertreport.cc.com/videos/3df60s/higgs-boson-humor",
"http://thecolbertreport.cc.com/videos/y5rjly/countdown-to-loving-mitt---super-tuesday-results",
"http://thecolbertreport.cc.com/videos/7v4ikl/cyber-republican-convention",
"http://thecolbertreport.cc.com/videos/ciyqhs/iranian-irony-threat",
"http://thecolbertreport.cc.com/videos/060vqq/willem-dafoe",
"http://thecolbertreport.cc.com/videos/c0qp1t/sign-off---goodnight"
],
"guest": "Willem Dafoe"
},
{
"date": "2012-03-08",
"videos": [
"http://thecolbertreport.cc.com/videos/3nl0qx/eric-bolling-s-secret-gas-prices-plan",
"http://thecolbertreport.cc.com/videos/fig5ri/herman-cain-s-avant-garde-pac-ad"
],
"guest": "Don Fleming, Elvis Costello, Emmylou Harris"
},
{
"date": "2012-03-12",
"videos": [
"http://thecolbertreport.cc.com/videos/c4fdt8/daylight-savings-socialism",
"http://thecolbertreport.cc.com/videos/2v3qmo/republicans--southern-strategy",
"http://thecolbertreport.cc.com/videos/lo9wk9/republicans--southern-strategy---dave--mudcat--saunders",
"http://thecolbertreport.cc.com/videos/16w3vh/cheating-death---bacon-cure-for-nosebleeds---sound-wave-sterility",
"http://thecolbertreport.cc.com/videos/nmtsxp/katherine-boo",
"http://thecolbertreport.cc.com/videos/owkzk2/sign-off---goodnight-with-a-smile"
],
"guest": "Katherine Boo"
},
{
"date": "2012-03-13",
"videos": [
"http://thecolbertreport.cc.com/videos/bz7jdm/who-s-not-honoring-me-now----seattle-s-pop-conference",
"http://thecolbertreport.cc.com/videos/qn0q26/threatdown---stoned-pat-robertson--muslim-american-reality-tv---pampered-bears",
"http://thecolbertreport.cc.com/videos/h98570/republican-southern-primary---simplified-speeches",
"http://thecolbertreport.cc.com/videos/msz5qh/andrew-bird"
],
"guest": "Andrew Bird"
},
{
"date": "2012-03-14",
"videos": [
"http://thecolbertreport.cc.com/videos/m77cwc/greg-smith-s-goldman-sachs-op-ed",
"http://thecolbertreport.cc.com/videos/rwxeui/republican-southern-primary---rick-santorum-against-teleprompters",
"http://thecolbertreport.cc.com/videos/yeczkv/republican-southern-primary---kermit-the-frog",
"http://thecolbertreport.cc.com/videos/7n8gsd/monkey-on-the-lam---alabama",
"http://thecolbertreport.cc.com/videos/zkum1o/mark-mckinnon",
"http://thecolbertreport.cc.com/videos/d8t6uu/sign-off---goodnight"
],
"guest": "Mark McKinnon"
},
{
"date": "2012-03-15",
"videos": [
"http://thecolbertreport.cc.com/videos/eq8308/airport-security-for-senior-citizens",
"http://thecolbertreport.cc.com/videos/zjy3q9/rush-limbaugh-loses-more-sponsors",
"http://thecolbertreport.cc.com/videos/krx9gw/rick-santorum-visits-puerto-rico-and-speaks-from-his-heart",
"http://thecolbertreport.cc.com/videos/vh5p5b/ireland-s-imported-sperm---ethnically-accurate-headgear",
"http://thecolbertreport.cc.com/videos/8o29gb/dexter-filkins",
"http://thecolbertreport.cc.com/videos/e66q9g/sign-off---goodnight"
],
"guest": "Dexter Filkins"
},
{
"date": "2012-03-26",
"videos": [
"http://thecolbertreport.cc.com/videos/no5p1a/exclusive---david-page-extended-interview",
"http://thecolbertreport.cc.com/videos/a8lnqt/intro---3-26-12",
"http://thecolbertreport.cc.com/videos/3ejcul/stephen-s-spring-break",
"http://thecolbertreport.cc.com/videos/008ndt/the-word---dressed-to-kill",
"http://thecolbertreport.cc.com/videos/7faawr/mitt-romney-etch-a-sketch-comparison",
"http://thecolbertreport.cc.com/videos/rc1xqe/david-page",
"http://thecolbertreport.cc.com/videos/20xgt7/sign-off---goodnight"
],
"guest": "Dr. David Page"
},
{
"date": "2012-03-27",
"videos": [
"http://thecolbertreport.cc.com/videos/rk3w4e/intro---3-27-12",
"http://thecolbertreport.cc.com/videos/cua8o6/barack-obama-gun-control-conspiracy",
"http://thecolbertreport.cc.com/videos/ykhpki/tip-wag---anti-prejudice-drug---dick-cheney-s-heart",
"http://thecolbertreport.cc.com/videos/53yh09/thought-for-food---tacocopter",
"http://thecolbertreport.cc.com/videos/ghn5jt/charles-murray",
"http://thecolbertreport.cc.com/videos/y9plha/sign-off---goodnight"
],
"guest": "Charles Murray"
},
{
"date": "2012-03-28",
"videos": [
"http://thecolbertreport.cc.com/videos/lg7nrp/the-supreme-court-weighs-in-on-obamacare",
"http://thecolbertreport.cc.com/videos/svf90k/the-supreme-court-weighs-in-on-obamacare---emily-bazelon",
"http://thecolbertreport.cc.com/videos/tnvz1z/the-conservative-teen",
"http://thecolbertreport.cc.com/videos/bmkpwj/mark-ruffalo",
"http://thecolbertreport.cc.com/videos/jjebsm/sign-off---goodnight-snack"
],
"guest": "Mark Ruffalo"
},
{
"date": "2012-03-29",
"videos": [
"http://thecolbertreport.cc.com/videos/7erwuh/stephen-offers-colbert-super-pac-super-fun-pack",
"http://thecolbertreport.cc.com/videos/9bgxui/intro---3-29-12",
"http://thecolbertreport.cc.com/videos/nuvo4m/the-mega-millions-lottery",
"http://thecolbertreport.cc.com/videos/7qagdx/colbert-super-pac---texan-supporters---super-fun-pack",
"http://thecolbertreport.cc.com/videos/2m6prp/mitt-romney-tells-a-funny-story",
"http://thecolbertreport.cc.com/videos/7dpy0t/peter-beinart",
"http://thecolbertreport.cc.com/videos/r5oifs/sign-off---colbert-super-pac-super-fun-pack"
],
"guest": "Peter Beinart"
},
{
"date": "2012-04-02",
"videos": [
"http://thecolbertreport.cc.com/videos/8f8tya/intro---4-2-12",
"http://thecolbertreport.cc.com/videos/1nq1ce/colbert-super-pac---super-fun-pack-treasure-hunt",
"http://thecolbertreport.cc.com/videos/1bsxs9/the-beefstate-governors",
"http://thecolbertreport.cc.com/videos/fmif88/yahweh-or-no-way---christian-card-counters--pope-benedict-on-marxism---pope-cologne",
"http://thecolbertreport.cc.com/videos/5yl006/gary-johnson",
"http://thecolbertreport.cc.com/videos/77h3h1/sign-off---goodnight"
],
"guest": "Gov. Gary Johnson"
},
{
"date": "2012-04-03",
"videos": [
"http://thecolbertreport.cc.com/videos/33j3ar/lftb-colbology",
"http://thecolbertreport.cc.com/videos/z52jo4/colbert-super-pac---super-fun-pack-not-legal-advice---certificate-of-presidenthood",
"http://thecolbertreport.cc.com/videos/v3p6ss/colbert-super-pac-shh----501c4-disclosure",
"http://thecolbertreport.cc.com/videos/ag45p1/colbert-super-pac-shh----501c4-disclosure---trevor-potter",
"http://thecolbertreport.cc.com/videos/y4berw/rick-santorum-speaks-from-his-heart---california-colleges",
"http://thecolbertreport.cc.com/videos/1b9vpb/nikki-haley",
"http://thecolbertreport.cc.com/videos/asl5su/sign-off---helmeted-ham-rove"
],
"guest": "Gov. Nikki Haley"
},
{
"date": "2012-04-04",
"videos": [
"http://thecolbertreport.cc.com/videos/2ihe55/intro---4-4-12",
"http://thecolbertreport.cc.com/videos/6y1ct4/peabody-award-for-colbert-super-pac",
"http://thecolbertreport.cc.com/videos/4io3p9/settling-for-mitt-romney",
"http://thecolbertreport.cc.com/videos/x8e4ps/colbert-super-pac---republicans---the-latino-vote",
"http://thecolbertreport.cc.com/videos/6ml3sk/wilford-brimley-calls---quaker-oats-makeover",
"http://thecolbertreport.cc.com/videos/plj4a3/robert-ballard",
"http://thecolbertreport.cc.com/videos/qyyf0b/sign-off---second-peabody-award"
],
"guest": "Robert D. Ballard"
},
{
"date": "2012-04-05",
"videos": [
"http://thecolbertreport.cc.com/videos/om9vmg/bad-news-about-good-unemployment-news",
"http://thecolbertreport.cc.com/videos/lnmh56/colbert-s-very-wanted---manatee-mailbox",
"http://thecolbertreport.cc.com/videos/0u9fik/dirt-bike-badass-in-the-lincoln-tunnel",
"http://thecolbertreport.cc.com/videos/ji5xxu/anne-rice",
"http://thecolbertreport.cc.com/videos/si0xcn/sign-off---lincoln-tunnel"
],
"guest": "Anne Rice"
},
{
"date": "2012-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/8ziziz/easter-under-attack---bunny-vs--bilby",
"http://thecolbertreport.cc.com/videos/oyaen8/searching-for-mr--right---mitt-romney---iowa-s-steve-king",
"http://thecolbertreport.cc.com/videos/csp74m/stephen-colbert-s-shame-spiral---senior-citizen-gymnasts",
"http://thecolbertreport.cc.com/videos/kruk2j/bob-lutz",
"http://thecolbertreport.cc.com/videos/9wc34u/sign-off---remembering-mike-wallace"
],
"guest": "Bob Lutz"
},
{
"date": "2012-04-10",
"videos": [
"http://thecolbertreport.cc.com/videos/2n6qw1/intro---4-10-12",
"http://thecolbertreport.cc.com/videos/82ub2z/rick-santorum-leaves-presidential-race",
"http://thecolbertreport.cc.com/videos/qu7492/i-got-the-tweets-like-grassley",
"http://thecolbertreport.cc.com/videos/3la5nh/tip-wag---coal-industry-crackdown---box-spring-bunker",
"http://thecolbertreport.cc.com/videos/mfxyfn/stephen-colbert-s-lady-heroes---glen-grothman",
"http://thecolbertreport.cc.com/videos/o4ah40/richard-hersh",
"http://thecolbertreport.cc.com/videos/es5mrc/sign-off---goodnight"
],
"guest": "Richard Hersh"
},
{
"date": "2012-04-11",
"videos": [
"http://thecolbertreport.cc.com/videos/3ygjj0/amped-up-for-michelle-obama",
"http://thecolbertreport.cc.com/videos/bc3gqm/the-word---whuh-how-",
"http://thecolbertreport.cc.com/videos/ingur1/employing-a-veteran---sergeant-bryan-escobedo",
"http://thecolbertreport.cc.com/videos/f8r4k5/michelle-obama-pt--1",
"http://thecolbertreport.cc.com/videos/v3wlgc/michelle-obama-pt--2",
"http://thecolbertreport.cc.com/videos/u0cci1/sign-off---goodnight"
],
"guest": "Michelle Obama"
},
{
"date": "2012-04-12",
"videos": [
"http://thecolbertreport.cc.com/videos/pzrkzg/intro---4-12-12",
"http://thecolbertreport.cc.com/videos/m5gmsh/the-other-war-on-women",
"http://thecolbertreport.cc.com/videos/v73czf/stephen-colbert-s-end-of-the-world-of-the-week---survivalist-singles---tsunami-food",
"http://thecolbertreport.cc.com/videos/s55d89/cold-war-update---alleged-congressional-communists",
"http://thecolbertreport.cc.com/videos/x9epzo/james-cameron",
"http://thecolbertreport.cc.com/videos/avonwu/sign-off---goodnight"
],
"guest": "James Cameron"
},
{
"date": "2012-04-16",
"videos": [
"http://thecolbertreport.cc.com/videos/z2fjas/a-beautiful-war-for-women-segment",
"http://thecolbertreport.cc.com/videos/2ixpov/secret-service-sex-scandal",
"http://thecolbertreport.cc.com/videos/ilt6wv/a-beautiful-war-for-women",
"http://thecolbertreport.cc.com/videos/44j8wl/newt-gingrich---gun-rights",
"http://thecolbertreport.cc.com/videos/ru5vnr/bonnie-raitt"
],
"guest": "Bonnie Raitt"
},
{
"date": "2012-04-17",
"videos": [
"http://thecolbertreport.cc.com/videos/wpng4g/intro---4-17-12",
"http://thecolbertreport.cc.com/videos/gxlf9b/mitt-romney-s-dinner-table-pranks",
"http://thecolbertreport.cc.com/videos/sfsf06/thought-for-food---bug-food-coloring--hot-dog-stuffed-crust---drugged-poultry",
"http://thecolbertreport.cc.com/videos/vklngm/gsa-spending-scandal",
"http://thecolbertreport.cc.com/videos/6fhp9q/jonah-lehrer",
"http://thecolbertreport.cc.com/videos/culsks/sign-off---goodnight"
],
"guest": "Jonah Lehrer"
},
{
"date": "2012-04-18",
"videos": [
"http://thecolbertreport.cc.com/videos/q3i7x8/intro---4-18-12",
"http://thecolbertreport.cc.com/videos/ddq41n/searching-for-mr--right---mitt-romney---ohio-s-rob-portman",
"http://thecolbertreport.cc.com/videos/er0kn7/the-word---gateway-hug",
"http://thecolbertreport.cc.com/videos/vw1qdm/stephen-colbert-s-end-of-the-world-of-the-week---doomsday-preppers",
"http://thecolbertreport.cc.com/videos/xzzk73/arianna-huffington",
"http://thecolbertreport.cc.com/videos/tttdob/sign-off---goodnight-kiss"
],
"guest": "Arianna Huffington"
},
{
"date": "2012-04-19",
"videos": [
"http://thecolbertreport.cc.com/videos/hrfl05/intro---4-19-12",
"http://thecolbertreport.cc.com/videos/a9n2pr/stephen-s-4-20-message",
"http://thecolbertreport.cc.com/videos/zdgaqc/alpha-dog-of-the-week---cory-booker",
"http://thecolbertreport.cc.com/videos/nb2ksl/the-enemy-within---bologna-border-bust",
"http://thecolbertreport.cc.com/videos/uio9bo/time-s-2012-top-100-most-influential",
"http://thecolbertreport.cc.com/videos/h2p67e/tavis-smiley---cornel-west",
"http://thecolbertreport.cc.com/videos/g291q8/sign-off---time-s-top-100"
],
"guest": "Tavis Smiley & Cornel West"
},
{
"date": "2012-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/4wypj5/intro---4-23-12",
"http://thecolbertreport.cc.com/videos/m8blpo/steve-doocy-s-silver-spoon-subtext-reporting",
"http://thecolbertreport.cc.com/videos/2gwl1y/tip-wag--pheromone-parties---arizona-s--pre-life--laws",
"http://thecolbertreport.cc.com/videos/v2y3wl/mitt-romney-s-picnic-gaffe",
"http://thecolbertreport.cc.com/videos/14wyxm/don-mcleroy",
"http://thecolbertreport.cc.com/videos/l9d2q6/sign-off---goodnight"
],
"guest": "Don McLeroy"
},
{
"date": "2012-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/ly3so2/super-tuesday-ii--election-boogaloo---death-match-in-hellaware",
"http://thecolbertreport.cc.com/videos/xmivrq/-i-am-a-pole--and-so-can-you---",
"http://thecolbertreport.cc.com/videos/i4eh7r/canada-s-currency-coup",
"http://thecolbertreport.cc.com/videos/ycnifi/magnus-carlsen",
"http://thecolbertreport.cc.com/videos/cfkek7/sign-off---ipad"
],
"guest": "Magnus Carlsen"
},
{
"date": "2012-04-25",
"videos": [
"http://thecolbertreport.cc.com/videos/et0kro/intro---4-25-12",
"http://thecolbertreport.cc.com/videos/or4jr5/nasa-retires-discovery---drops-spacebook",
"http://thecolbertreport.cc.com/videos/6xkuod/the-word---united-we-can-t-stand-them",
"http://thecolbertreport.cc.com/videos/gi36k3/cheating-death---crash-diet-feeding-tubes---scrotum-gel-injections",
"http://thecolbertreport.cc.com/videos/88pieq/michael-sandel",
"http://thecolbertreport.cc.com/videos/wduflz/sign-off---goodnight"
],
"guest": "Michael Sandel"
},
{
"date": "2012-04-26",
"videos": [
"http://thecolbertreport.cc.com/videos/xrzvpm/intro---4-26-12",
"http://thecolbertreport.cc.com/videos/9rs6oa/barack-obama-s-slow-jam-backlash",
"http://thecolbertreport.cc.com/videos/2w9amu/colbert-super-pac---super-fun-pack-1st-treasure-hunt-clue",
"http://thecolbertreport.cc.com/videos/1ytfce/jack-white",
"http://thecolbertreport.cc.com/videos/kymj2z/sign-off---montclair-film-festival"
],
"guest": "Jack White"
},
{
"date": "2012-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/l8r5un/intro---4-30-12",
"http://thecolbertreport.cc.com/videos/u2x3gk/delicate-advice-for-chen-guangcheng",
"http://thecolbertreport.cc.com/videos/g6gv3q/the-word---don-t-ask--don-t-show---tell",
"http://thecolbertreport.cc.com/videos/z2rpip/concealing-weapons-in-style",
"http://thecolbertreport.cc.com/videos/csg3jo/diane-keaton",
"http://thecolbertreport.cc.com/videos/tly3vi/sign-off---stephen-s-fashionable-firearm"
],
"guest": "Diane Keaton"
},
{
"date": "2012-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/8gt820/intro---5-1-12",
"http://thecolbertreport.cc.com/videos/pktymf/barack-obama---the-anniversary-of-bin-laden-s-assassination",
"http://thecolbertreport.cc.com/videos/0zj7f4/paul-ryan-s-christian-budget-cuts",
"http://thecolbertreport.cc.com/videos/7af7jl/paul-ryan-s-christian-budget-cuts---thomas-reese",
"http://thecolbertreport.cc.com/videos/cpb2np/carne-ross",
"http://thecolbertreport.cc.com/videos/a9ioqx/sign-off---goodnight"
],
"guest": "Carne Ross"
},
{
"date": "2012-05-02",
"videos": [
"http://thecolbertreport.cc.com/videos/jciyto/intro---5-2-12",
"http://thecolbertreport.cc.com/videos/n232ru/richard-branson-shaped-ice-cubes",
"http://thecolbertreport.cc.com/videos/goj2h9/the-word---debt-panels",
"http://thecolbertreport.cc.com/videos/sv3iag/kermit-the-frog-s-german-tv-offense---hans-beinholtz",
"http://thecolbertreport.cc.com/videos/luw0ia/jonathan-haidt",
"http://thecolbertreport.cc.com/videos/k7vmo6/sign-off---stephen-colbert-s-6000k-norway-norwalkathon"
],
"guest": "Jonathan Haidt"
},
{
"date": "2012-05-03",
"videos": [
"http://thecolbertreport.cc.com/videos/msaxn6/newt-gingrich---mitt-romney-alliance-analogies",
"http://thecolbertreport.cc.com/videos/eki0dc/colbert-super-pac---in-search-of-mr--larose",
"http://thecolbertreport.cc.com/videos/2v2ixr/who-s-honoring-me-now----national-space-society---buzz-aldrin",
"http://thecolbertreport.cc.com/videos/z3ac6o/lena-dunham",
"http://thecolbertreport.cc.com/videos/1iw8uv/sign-off---2012-space-pioneer-award-for-mass-media"
],
"guest": "Lena Dunham"
},
{
"date": "2012-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/1jhhu2/uncensored---maurice-sendak-tribute----i-am-a-pole--and-so-can-you----release",
"http://thecolbertreport.cc.com/videos/feswk7/intro---5-7-12",
"http://thecolbertreport.cc.com/videos/d6nh6o/hand-disinfectant-drunk-teens",
"http://thecolbertreport.cc.com/videos/d69ur0/joe-biden-s-same-sex-marriage-gaffe",
"http://thecolbertreport.cc.com/videos/fplvtb/-pussy-hound--with-eric-mccormack",
"http://thecolbertreport.cc.com/videos/jrnml0/threatdown---newscasting-bears",
"http://thecolbertreport.cc.com/videos/u65qci/andy-cohen",
"http://thecolbertreport.cc.com/videos/xh5269/sign-off---sound-effects-box"
],
"guest": "Andy Cohen"
},
{
"date": "2012-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/p05t1b/colbert-super-pac-shh----corporate-campaign-players---super-secret--spooky-pacs-",
"http://thecolbertreport.cc.com/videos/b2tfg8/anonymous-attack-ads---claire-mccaskill",
"http://thecolbertreport.cc.com/videos/ad10bn/michelle-alexander",
"http://thecolbertreport.cc.com/videos/dsprai/sign-off----i-am-a-pole--and-so-can-you---"
],
"guest": "Michelle Alexander"
},
{
"date": "2012-05-09",
"videos": [
"http://thecolbertreport.cc.com/videos/v1k3ci/mexico-s-debate-playmate",
"http://thecolbertreport.cc.com/videos/b6tiga/barack-obama-vs--north-carolina-on-gay-marriage",
"http://thecolbertreport.cc.com/videos/t3omhb/jon-mcnaughton-s--nation-under-socialism--artwork",
"http://thecolbertreport.cc.com/videos/o2c49w/anna-wintour",
"http://thecolbertreport.cc.com/videos/bogip6/sign-off----i-am-a-pole--and-so-can-you----audiobook"
],
"guest": "Anna Wintour"
},
{
"date": "2012-05-10",
"videos": [
"http://thecolbertreport.cc.com/videos/6cwgo2/intro---5-10-12",
"http://thecolbertreport.cc.com/videos/7lnqh4/mother-s-day-shout-out",
"http://thecolbertreport.cc.com/videos/n27g4x/barack-obama-s-gay-blasphemy",
"http://thecolbertreport.cc.com/videos/b9m4e5/threatdown---interdimensional-black-people--gay-strokes---manipulative-sicko-monkeys",
"http://thecolbertreport.cc.com/videos/ytlc6i/wisconsin-s-fake-democrats",
"http://thecolbertreport.cc.com/videos/v6gyoh/francis-collins",
"http://thecolbertreport.cc.com/videos/vbl44w/sign-off---two-weeks-off---dry-roasted-peanuts"
],
"guest": "Dr. Francis Collins"
},
{
"date": "2012-05-29",
"videos": [
"http://thecolbertreport.cc.com/videos/hx8ph7/intro---5-29-12",
"http://thecolbertreport.cc.com/videos/cpgg7x/who-s-honoring-me-now----peabody-awards---maxim-s-hot-100",
"http://thecolbertreport.cc.com/videos/oo0mhd/donald-trump-s-creative-truth---mitt-romney-s-poll-numbers",
"http://thecolbertreport.cc.com/videos/cw4fxf/un-american-news---egypt-s-presidential-elections",
"http://thecolbertreport.cc.com/videos/32y78g/charlize-theron",
"http://thecolbertreport.cc.com/videos/gr0i67/sign-off---goodnight"
],
"guest": "Charlize Theron"
},
{
"date": "2012-05-30",
"videos": [
"http://thecolbertreport.cc.com/videos/u7h1f8/intro---5-30-12",
"http://thecolbertreport.cc.com/videos/kydmtj/mexico-s-drug---potato-chip-wars",
"http://thecolbertreport.cc.com/videos/s73hgy/robert-mugabe-s-u-n--tourism-tribute",
"http://thecolbertreport.cc.com/videos/dfm2k1/alan-alda",
"http://thecolbertreport.cc.com/videos/b6lw83/sign-off---stephen-s-matchbox"
],
"guest": "Alan Alda"
},
{
"date": "2012-05-31",
"videos": [
"http://thecolbertreport.cc.com/videos/y3bfh6/buy-best-selling--i-am-a-pole--and-so-can-you---",
"http://thecolbertreport.cc.com/videos/sib2qy/barack-obama-s-righteous-drone-strikes",
"http://thecolbertreport.cc.com/videos/s3t2y6/the-word---two-birds-with-one-drone",
"http://thecolbertreport.cc.com/videos/pufh72/michael-bloomberg-s-super-sized-soda-scheme",
"http://thecolbertreport.cc.com/videos/pz3adl/jack-hitt",
"http://thecolbertreport.cc.com/videos/e9e1b2/sign-off---welcome-baby-gwinn-"
],
"guest": "Jack Hitt"
},
{
"date": "2012-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/nhsal8/juvenile-speeches-from-congress---president-sparkle-talk",
"http://thecolbertreport.cc.com/videos/w6itwj/the-word---sink-or-swim",
"http://thecolbertreport.cc.com/videos/r7x6me/better-know-a-district---represent-o-map-6000---georgia-s-5th",
"http://thecolbertreport.cc.com/videos/cx6fmy/john-lewis",
"http://thecolbertreport.cc.com/videos/5u46bt/sign-off---goodnight"
],
"guest": "Rep. John Lewis"
},
{
"date": "2012-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/lg5ugg/intro---6-5-12",
"http://thecolbertreport.cc.com/videos/xt64qc/cdc-zombie-apocalypse-statement",
"http://thecolbertreport.cc.com/videos/w4utag/tip-wag---japanese-diet-goggles--u-s--sperm-exports---taxidermied-toys",
"http://thecolbertreport.cc.com/videos/kkce78/self-marriage-problems",
"http://thecolbertreport.cc.com/videos/90ifev/jill-biden",
"http://thecolbertreport.cc.com/videos/hhgz9k/sign-off---goodnight"
],
"guest": "Jill Biden"
},
{
"date": "2012-06-06",
"videos": [
"http://thecolbertreport.cc.com/videos/ta5d10/transit-of-venus---mars-reality-show-pitch",
"http://thecolbertreport.cc.com/videos/y1zpiy/wisconsin-s-recall-results",
"http://thecolbertreport.cc.com/videos/0vve8r/difference-makers---larry-johnson",
"http://thecolbertreport.cc.com/videos/pqv8yf/neil-patrick-harris",
"http://thecolbertreport.cc.com/videos/1n5kn0/sign-off---ray-bradbury-tribute"
],
"guest": "Neil Patrick Harris"
},
{
"date": "2012-06-07",
"videos": [
"http://thecolbertreport.cc.com/videos/2l9h7f/intro---6-7-12",
"http://thecolbertreport.cc.com/videos/n107py/corruption-on-pakistan-s--sesame-street-",
"http://thecolbertreport.cc.com/videos/5zzgas/the-new-york-times--hit-job-on-mitt-romney",
"http://thecolbertreport.cc.com/videos/mlqu18/a-teacup-pig---partisan-politics",
"http://thecolbertreport.cc.com/videos/gfpnqx/regina-spektor",
"http://thecolbertreport.cc.com/videos/8x9qre/colbert-super-pac---super-fun-pack-treasure-hunt-clue"
],
"guest": "Regina Spektor"
},
{
"date": "2012-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/8zxgdh/neil-degrasse-tyson-on--prometheus--gaffe",
"http://thecolbertreport.cc.com/videos/4dkvt6/radical-feminist-nuns",
"http://thecolbertreport.cc.com/videos/u1f5qa/radical-feminist-nuns---simone-campbell",
"http://thecolbertreport.cc.com/videos/beuiqq/-banana-bunker--tutorial",
"http://thecolbertreport.cc.com/videos/0lbz7s/martin-sheen",
"http://thecolbertreport.cc.com/videos/h1jqol/sign-off---wooden-ruler"
],
"guest": "Martin Sheen"
},
{
"date": "2012-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/syl8av/intro---6-12-12",
"http://thecolbertreport.cc.com/videos/4p817x/mitt-romney-s-blue-collar-equestrian-pastime",
"http://thecolbertreport.cc.com/videos/nu56lh/barack-obama-s-anti-terror-leaks",
"http://thecolbertreport.cc.com/videos/dfjz7v/barack-obama-s-jobs-gaffe---mitt-romney-s-courageous-comeback",
"http://thecolbertreport.cc.com/videos/e4m68b/operation-artificial-swedener",
"http://thecolbertreport.cc.com/videos/eici19/will-allen",
"http://thecolbertreport.cc.com/videos/uaovz2/sign-off---stephen-s-equestrian-display"
],
"guest": "Will Allen"
},
{
"date": "2012-06-13",
"videos": [
"http://thecolbertreport.cc.com/videos/f93cwg/high-wire-walk-over-niagara-falls",
"http://thecolbertreport.cc.com/videos/e61ypw/the-word---free-lunch",
"http://thecolbertreport.cc.com/videos/clm6h7/the-enemy-within---apes-armed-with-ipads",
"http://thecolbertreport.cc.com/videos/0nbwzv/gregg-allman",
"http://thecolbertreport.cc.com/videos/0bcb4l/sign-off---goodnight"
],
"guest": "Gregg Allman"
},
{
"date": "2012-06-14",
"videos": [
"http://thecolbertreport.cc.com/videos/wdhef3/marijuana-legalization-as-election-hot-button-issue",
"http://thecolbertreport.cc.com/videos/zy2va1/super-pac-super-cash---24-hour-political-ad-channels",
"http://thecolbertreport.cc.com/videos/a5uuwa/cheating-death---penis-curvature-cures---single-women-sleep-aids",
"http://thecolbertreport.cc.com/videos/jylspq/steve-coll",
"http://thecolbertreport.cc.com/videos/nw9c2r/sign-off---bon-voyage--peter-gwinn"
],
"guest": "Steve Coll"
},
{
"date": "2012-06-18",
"videos": [
"http://thecolbertreport.cc.com/videos/34ngb2/intro---6-18-12",
"http://thecolbertreport.cc.com/videos/c3nu3d/barack-obama-s-immigration-policy-change",
"http://thecolbertreport.cc.com/videos/z9bjae/press-interruption-at-barack-obama-s-immigration-address",
"http://thecolbertreport.cc.com/videos/f3coxy/operation-artificial-swedener---sweden-s-response",
"http://thecolbertreport.cc.com/videos/x4uwku/paul-krugman",
"http://thecolbertreport.cc.com/videos/fdw0ht/sign-off---goodnight"
],
"guest": "Paul Krugman"
},
{
"date": "2012-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/0r91gj/john-kerry-as-mitt-romney-in-debate-prep",
"http://thecolbertreport.cc.com/videos/zxypkl/mitt-romney-s-champion-horse---dressage-tribute",
"http://thecolbertreport.cc.com/videos/ugscr4/unscooped-dog-poop-crimes",
"http://thecolbertreport.cc.com/videos/xdevam/olivia-wilde",
"http://thecolbertreport.cc.com/videos/kada0a/sign-off---stephen-s-dressage-dance"
],
"guest": "Olivia Wilde"
},
{
"date": "2012-06-20",
"videos": [
"http://thecolbertreport.cc.com/videos/6q5qvo/intro---6-20-12",
"http://thecolbertreport.cc.com/videos/w6vibi/asian-immigration-threat",
"http://thecolbertreport.cc.com/videos/95tn0n/unraveling-the-operation-fast---furious-scandal",
"http://thecolbertreport.cc.com/videos/b65og2/joe-the-plumber-s-controversial-gun-control-ad",
"http://thecolbertreport.cc.com/videos/4h0l60/thought-for-food---doritos-tacos---flavorlopes",
"http://thecolbertreport.cc.com/videos/lwb6am/daniel-klaidman",
"http://thecolbertreport.cc.com/videos/31ptzz/sign-off---goodnight"
],
"guest": "Daniel Klaidman"
},
{
"date": "2012-06-21",
"videos": [
"http://thecolbertreport.cc.com/videos/7r29kf/egypt-s-presidential-election---hosni-mubarak-s-health",
"http://thecolbertreport.cc.com/videos/zdprqc/threatdown---sicko-penguins--stoner-babies---terrorist-furniture",
"http://thecolbertreport.cc.com/videos/5yjil8/operation-artificial-swedener---c-mon-sweden--take-a-chance-on-stephen",
"http://thecolbertreport.cc.com/videos/e6ik9l/lawrence-krauss",
"http://thecolbertreport.cc.com/videos/e8ivor/sign-off----a-universe-from-nothing-"
],
"guest": "Lawrence Krauss"
},
{
"date": "2012-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/ylc1ta/intro---6-25-12",
"http://thecolbertreport.cc.com/videos/cbsvdk/colbert-news-alert---obamacare-supreme-court-ruling",
"http://thecolbertreport.cc.com/videos/wn3vzl/colbert-news-alert---obamacare-supreme-court-ruling---richard-mourdock-s-responses",
"http://thecolbertreport.cc.com/videos/1nhpf3/the-word---silver-maligning",
"http://thecolbertreport.cc.com/videos/0u5f3i/i-s-on-edjukashun---study-drugs",
"http://thecolbertreport.cc.com/videos/2q2di6/frank-deford",
"http://thecolbertreport.cc.com/videos/wri423/sign-off---five-finger-fillet"
],
"guest": "Frank Deford"
},
{
"date": "2012-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/ifbnsf/intro---6-26-12",
"http://thecolbertreport.cc.com/videos/8wlx7c/supreme-court-ruling-on-arizona-immigration-policy",
"http://thecolbertreport.cc.com/videos/06bwvh/tip-wag---pixar-s-gay-agenda--america-s-obesity---adidas-shackle-sneakers",
"http://thecolbertreport.cc.com/videos/ohfzqq/dish-network-s-autohop-service",
"http://thecolbertreport.cc.com/videos/r8iy26/richard-ford",
"http://thecolbertreport.cc.com/videos/ybvbi1/sign-off---goodnight"
],
"guest": "Richard Ford"
},
{
"date": "2012-06-27",
"videos": [
"http://thecolbertreport.cc.com/videos/g8onr9/colbert-super-pac-treasure-hunt-solution",
"http://thecolbertreport.cc.com/videos/gl54n8/mitt-romney-s-victory-retreat---democrats--convention-deficit",
"http://thecolbertreport.cc.com/videos/t2x64z/national-geographic-poll-on-alien-invasion-management",
"http://thecolbertreport.cc.com/videos/td6pu4/blood-in-the-water---mike-turzai-s-voter-id-remarks",
"http://thecolbertreport.cc.com/videos/5em8r3/rainbow-stuffed-gay-pride-oreo",
"http://thecolbertreport.cc.com/videos/aj465n/melinda-gates",
"http://thecolbertreport.cc.com/videos/bxvxkj/sign-off---oreo-cookie-plate"
],
"guest": "Melinda Gates"
},
{
"date": "2012-06-28",
"videos": [
"http://thecolbertreport.cc.com/videos/coii6k/cable-news-gaffe-on-obamacare-supreme-court-ruling",
"http://thecolbertreport.cc.com/videos/p7wwtp/john-roberts--obamacare-swing-vote",
"http://thecolbertreport.cc.com/videos/n5b9bc/obamacare---the-broccoli-argument",
"http://thecolbertreport.cc.com/videos/xqmuun/obamacare---the-broccoli-argument---emily-bazelon",
"http://thecolbertreport.cc.com/videos/843q05/aaron-sorkin",
"http://thecolbertreport.cc.com/videos/hdpyh9/colbert-super-pac---super-fun-pack-treasure-finder"
],
"guest": "Aaron Sorkin"
},
{
"date": "2012-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/rkamql/intro---7-16-12",
"http://thecolbertreport.cc.com/videos/nw0ci8/tomkat-s-divorce---anderson-cooper-s-sexual-orientation",
"http://thecolbertreport.cc.com/videos/xmrkal/mitt-romney-s-retroactive-retirement-from-bain-capital",
"http://thecolbertreport.cc.com/videos/hs3epw/thought-for-food---caffeine-edition---funeral-home-starbucks---car-coffee-makers",
"http://thecolbertreport.cc.com/videos/gxb8p4/anne-marie-slaughter",
"http://thecolbertreport.cc.com/videos/nj5kky/sign-off---smiles-or-whatever"
],
"guest": "Anne-Marie Slaughter"
},
{
"date": "2012-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/5r1yvx/nevada-s--none-of-the-above--is-fearsome-foe-for-gop",
"http://thecolbertreport.cc.com/videos/577ry9/the-word---on-the-straight---narrow-minded",
"http://thecolbertreport.cc.com/videos/xrrg9u/who-s-honoring-me-now----philadelphia-s-rosenbach-museum-and-library",
"http://thecolbertreport.cc.com/videos/8qe1km/nas"
],
"guest": "Nas"
},
{
"date": "2012-07-18",
"videos": [
"http://thecolbertreport.cc.com/videos/xiottz/intro---7-18-12",
"http://thecolbertreport.cc.com/videos/jhpgom/-struggling--waiters---waitresses-at-mitt-romney-s-fundraiser",
"http://thecolbertreport.cc.com/videos/40x15i/tip-wag---christian-tablet-computer---rock-paper-scissors-robot",
"http://thecolbertreport.cc.com/videos/5qgquz/stephen-colbert-s-metunes---def-leppard-s--forgeries--of-old-hits",
"http://thecolbertreport.cc.com/videos/67w2nh/annise-parker",
"http://thecolbertreport.cc.com/videos/2wz88p/sign-off---goodnight"
],
"guest": "Mayor Annise D. Parker"
},
{
"date": "2012-07-19",
"videos": [
"http://thecolbertreport.cc.com/videos/h8wtk8/fred-willard-arrested-for-lewd-conduct",
"http://thecolbertreport.cc.com/videos/64cfhk/libor-interest-rate-scandal",
"http://thecolbertreport.cc.com/videos/7dpxne/libor-interest-rate-scandal---dave-leonhardt",
"http://thecolbertreport.cc.com/videos/uknspr/canada-s-economic-growth-despite-melting-currency",
"http://thecolbertreport.cc.com/videos/xfd2bp/lisa-jackson",
"http://thecolbertreport.cc.com/videos/iw4bs9/sign-off---goodnight"
],
"guest": "Lisa Jackson"
},
{
"date": "2012-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/imdi3o/intro---7-23-12",
"http://thecolbertreport.cc.com/videos/0xmom4/interview-no-show--mike-tyson",
"http://thecolbertreport.cc.com/videos/v7f1z0/shepard-smith-s-personal-reporting-style",
"http://thecolbertreport.cc.com/videos/p2oill/partisan-speculation-over-colorado-shooter",
"http://thecolbertreport.cc.com/videos/3cxwny/vikram-gandhi",
"http://thecolbertreport.cc.com/videos/rwkf73/sign-off---goodnight"
],
"guest": "Vikram Gandhi"
},
{
"date": "2012-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/knsr5h/intro---7-24-12",
"http://thecolbertreport.cc.com/videos/h74nmb/hamster-study-links-late-night-tv-with-depression",
"http://thecolbertreport.cc.com/videos/zxif76/u-s--agriculture---drought-disaster",
"http://thecolbertreport.cc.com/videos/x2crx4/u-s--agriculture---drought-disaster---bruce-babcock",
"http://thecolbertreport.cc.com/videos/bov9or/james-fallows",
"http://thecolbertreport.cc.com/videos/lpy9h0/sign-off---goodnight"
],
"guest": "James Fallows"
},
{
"date": "2012-07-25",
"videos": [
"http://thecolbertreport.cc.com/videos/0mcg76/mitt-romney-s-anglo-saxon-connection",
"http://thecolbertreport.cc.com/videos/w5w9pn/mitt-romney-vs--barack-obama-on-small-business-owners",
"http://thecolbertreport.cc.com/videos/x14yw9/the-word---1-man-show",
"http://thecolbertreport.cc.com/videos/f7r40e/bibles-swapped-for--fifty-shades-of-grey-",
"http://thecolbertreport.cc.com/videos/4414pc/dan-gross",
"http://thecolbertreport.cc.com/videos/e1brl1/sign-off---goodnight"
],
"guest": "Dan Gross"
},
{
"date": "2012-07-26",
"videos": [
"http://thecolbertreport.cc.com/videos/vqlxb2/intro---7-26-12",
"http://thecolbertreport.cc.com/videos/4fk2ow/sport-report---stephen-colbefrajilympic-expealacoverage-",
"http://thecolbertreport.cc.com/videos/kycpil/mitt-romney-s-london-olympics-blunder",
"http://thecolbertreport.cc.com/videos/lra5ae/chick-fil-a-s-anti-gay-marriage-announcement",
"http://thecolbertreport.cc.com/videos/4nngh8/peter-westmacott",
"http://thecolbertreport.cc.com/videos/ccwpvt/sign-off---colbert-nation-twins"
],
"guest": "Amb. Peter Westmacott"
},
{
"date": "2012-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/70ka18/mitt-romney-s-disinterest-in-dressage",
"http://thecolbertreport.cc.com/videos/lav3uh/stephen-s-dressage-training-pt--1",
"http://thecolbertreport.cc.com/videos/zdpacy/tony-robbins--signature-firewalk",
"http://thecolbertreport.cc.com/videos/554xm8/joan-rivers",
"http://thecolbertreport.cc.com/videos/d69lls/sign-off----i-hate-everyone----starting-with-me-"
],
"guest": "Joan Rivers"
},
{
"date": "2012-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/d1pkf4/intro---7-31-12",
"http://thecolbertreport.cc.com/videos/sbevip/rick-gorka-s-press-outburst-in-poland",
"http://thecolbertreport.cc.com/videos/8qmv9k/rafalca-s-impact-on-mitt-romney-s-vp-pick",
"http://thecolbertreport.cc.com/videos/f5vsty/stephen-s-dressage-training-pt--2",
"http://thecolbertreport.cc.com/videos/lfsrga/stephest-colbchella--012---rocktaugustfest",
"http://thecolbertreport.cc.com/videos/p9ejfs/jeff-koons",
"http://thecolbertreport.cc.com/videos/e0ikf9/sign-off---goodnight"
],
"guest": "Jeff Koons"
},
{
"date": "2012-08-01",
"videos": [
"http://thecolbertreport.cc.com/videos/fjidln/obama-administration-s-birth-control-mandate",
"http://thecolbertreport.cc.com/videos/llkyw5/the--fiscal-cliff--conundrum---grover-norquist-s-tax-pledge",
"http://thecolbertreport.cc.com/videos/u1lf6f/sport-report---stephen-colbefrajilympic-expealacoverage----gymnastics---swimming",
"http://thecolbertreport.cc.com/videos/gayfdj/john-grunsfeld",
"http://thecolbertreport.cc.com/videos/gwa2y4/sign-off---totem"
],
"guest": "John Grunsfeld"
},
{
"date": "2012-08-02",
"videos": [
"http://thecolbertreport.cc.com/videos/x1we2u/exclusive---better-know-a-district---missouri-s-3rd-or-1st---russ-carnahan",
"http://thecolbertreport.cc.com/videos/3wx6bt/rafalca-s-first-day-of-dressage",
"http://thecolbertreport.cc.com/videos/ql0bqa/nancy-pelosi-s-bkad-pact---the-disclose-act-filibuster",
"http://thecolbertreport.cc.com/videos/tdj576/better-know-a-district---missouri-s-3rd-or-1st---russ-carnahan",
"http://thecolbertreport.cc.com/videos/t85slm/thought-for-food---usda-meatless-mondays---plant-communication-research",
"http://thecolbertreport.cc.com/videos/fyzakp/chris-hayes",
"http://thecolbertreport.cc.com/videos/m1idm3/sign-off---carrot-nibble"
],
"guest": "Chris Hayes"
},
{
"date": "2012-08-06",
"videos": [
"http://thecolbertreport.cc.com/videos/kz6vda/intro---8-6-12",
"http://thecolbertreport.cc.com/videos/h9qt0r/mars-rover-landing",
"http://thecolbertreport.cc.com/videos/w2s6c0/chick-fil-a-appreciation-day",
"http://thecolbertreport.cc.com/videos/x7yc4w/pete-seeger",
"http://thecolbertreport.cc.com/videos/aj407y/sign-off----pete-seeger--in-his-own-words-"
],
"guest": "Pete Seeger"
},
{
"date": "2012-08-07",
"videos": [
"http://thecolbertreport.cc.com/videos/1vt8t5/sport-report---stephen-colbefrajilympic-expealacoverage----soft-anti-americanism",
"http://thecolbertreport.cc.com/videos/k4260i/mitt-romney-s-protective-press-pool---running-mate-clues",
"http://thecolbertreport.cc.com/videos/q82dz5/steve-king-s-dogfighting-defense",
"http://thecolbertreport.cc.com/videos/nlroaz/mark-shriver",
"http://thecolbertreport.cc.com/videos/jx7y7x/sign-off---goodnight"
],
"guest": "Mark Shriver"
},
{
"date": "2012-08-08",
"videos": [
"http://thecolbertreport.cc.com/videos/23mkh8/intro---8-8-12",
"http://thecolbertreport.cc.com/videos/4fqxvr/obamacare---pizza-costs",
"http://thecolbertreport.cc.com/videos/h3tu8s/cheating-death---sensor-enabled-pills---facelift-bungee-cords",
"http://thecolbertreport.cc.com/videos/zgmish/liza-mundy",
"http://thecolbertreport.cc.com/videos/d5p8ok/sign-off---vacsa-strap"
],
"guest": "Liza Mundy"
},
{
"date": "2012-08-09",
"videos": [
"http://thecolbertreport.cc.com/videos/8gpwtc/anti-muslim-attack-on-hillary-clinton-aide",
"http://thecolbertreport.cc.com/videos/sr618c/better-know-a-district---minnesota-s-5th---keith-ellison",
"http://thecolbertreport.cc.com/videos/zzeqj6/who-s-honoring-me-now----psychonomic-bulletin---review",
"http://thecolbertreport.cc.com/videos/i891sf/woody-harrelson",
"http://thecolbertreport.cc.com/videos/nynu71/sign-off---goodnight"
],
"guest": "Woody Harrelson"
},
{
"date": "2012-08-13",
"videos": [
"http://thecolbertreport.cc.com/videos/d4650t/stephest-colbchella--012---welcome-to-rocktaugustfest",
"http://thecolbertreport.cc.com/videos/6jv3cb/mitt-romney-s-bold-running-mate-pick",
"http://thecolbertreport.cc.com/videos/wk9zh3/stephest-colbchella--012---fun-",
"http://thecolbertreport.cc.com/videos/r9jxwl/sign-off---stephest-colbchella--012---t-mobile-goodnight"
],
"guest": "Fun."
},
{
"date": "2012-08-14",
"videos": [
"http://thecolbertreport.cc.com/videos/9sxdgp/stephest-colbchella--012---rocktaugustfest-night-two",
"http://thecolbertreport.cc.com/videos/ovgwtm/mitt-romney-s---paul-ryan-s-foreign-policy-credentials",
"http://thecolbertreport.cc.com/videos/ajslu2/-stars-earn-stripes--reality-series",
"http://thecolbertreport.cc.com/videos/4uk1xx/stephest-colbchella--012---grizzly-bear",
"http://thecolbertreport.cc.com/videos/1eoihc/sign-off---stephest-colbchella--012---t-mobile-goodnight-auditions"
],
"guest": "Grizzly Bear"
},
{
"date": "2012-08-15",
"videos": [
"http://thecolbertreport.cc.com/videos/jus7dh/exclusive---stephest-colbchella--012---concert-setup-timelapse",
"http://thecolbertreport.cc.com/videos/lkqb8i/stephest-colbchella--012---rocktaugustfest-night-three",
"http://thecolbertreport.cc.com/videos/iwgkv9/fierce-five-interns",
"http://thecolbertreport.cc.com/videos/tzk5xz/stephest-colbchella--012---intrepid-sea--air---space-museum",
"http://thecolbertreport.cc.com/videos/buxzdm/stephest-colbchella--012---santigold",
"http://thecolbertreport.cc.com/videos/891lvk/sign-off---stephest-colbchella--012---t-mobile-goodnight-with-grandmaster-flash"
],
"guest": "The U.S. Women's Olympic Gymnastics team, Santigold"
},
{
"date": "2012-08-16",
"videos": [
"http://thecolbertreport.cc.com/videos/bx6qnh/stephest-colbchella--012---rocktaugustfest-night-four",
"http://thecolbertreport.cc.com/videos/tgqk3o/mitt-romney---paul-ryan---the-dynam-ish-duo",
"http://thecolbertreport.cc.com/videos/ymbqe6/17th-amendment-under-attack",
"http://thecolbertreport.cc.com/videos/x5cie8/stephest-colbchella--012---wayne-coyne",
"http://thecolbertreport.cc.com/videos/ez1hov/sign-off---stephest-colbchella--012---t-mobile-goodnight-in-a-bubble"
],
"guest": "The Flaming Lips"
},
{
"date": "2012-08-28",
"videos": [
"http://thecolbertreport.cc.com/videos/z0q2d6/hurricane-isaac-at-gop-convention",
"http://thecolbertreport.cc.com/videos/2a1lg4/colbert-super-pac---hurricane-isaac---stephen-s-money-convention",
"http://thecolbertreport.cc.com/videos/kcyg86/todd-akin-s-abortion-gaffe",
"http://thecolbertreport.cc.com/videos/2f1kwv/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/qomrph/sign-off---goodnight"
],
"guest": "Andrew Sullivan"
},
{
"date": "2012-08-29",
"videos": [
"http://thecolbertreport.cc.com/videos/ane28t/america-strikes-back---episode-ii---return-of-the-america-strikes-back--again",
"http://thecolbertreport.cc.com/videos/std0vn/the-mitt-romney-story",
"http://thecolbertreport.cc.com/videos/3teieb/the-mitt-romney-story---ann-romney-s-gop-convention-speech",
"http://thecolbertreport.cc.com/videos/w1ej3a/mitt-romney-s-role-model",
"http://thecolbertreport.cc.com/videos/n7yuw7/ayn-rand---paul-ryan",
"http://thecolbertreport.cc.com/videos/v0fegj/jennifer-burns",
"http://thecolbertreport.cc.com/videos/gxzmx3/sign-off---goodnight"
],
"guest": "Jennifer Burns"
},
{
"date": "2012-08-30",
"videos": [
"http://thecolbertreport.cc.com/videos/0pjdyn/america-strikes-back---episode-iii---the-phantom-money",
"http://thecolbertreport.cc.com/videos/7543m5/the-gop-convention---mitt-romney-s-minority-appeal",
"http://thecolbertreport.cc.com/videos/vo7txi/paul-ryan-s-misleading-gop-convention-speech",
"http://thecolbertreport.cc.com/videos/ghjrfh/jon-huntsman-pt--1",
"http://thecolbertreport.cc.com/videos/93jjo7/jon-huntsman-pt--2",
"http://thecolbertreport.cc.com/videos/vi4rti/sign-off---goodnight"
],
"guest": "Jon Huntsman"
},
{
"date": "2012-08-31",
"videos": [
"http://thecolbertreport.cc.com/videos/x9yoif/america-strikes-back---episode-iv---a-new-ish-hope",
"http://thecolbertreport.cc.com/videos/9czru3/mitt-romney-s--solid--gop-convention-speech",
"http://thecolbertreport.cc.com/videos/spqhue/the-gop-convention-s-mystery-speaker",
"http://thecolbertreport.cc.com/videos/qrijg7/the-gop-convention-s-mystery-speaker---clint-eastwood-s-chair",
"http://thecolbertreport.cc.com/videos/cx5s7v/neil-armstrong-tribute",
"http://thecolbertreport.cc.com/videos/n0qmbf/james-carville",
"http://thecolbertreport.cc.com/videos/2cv31s/sign-off---goodnight"
],
"guest": "James Carville"
},
{
"date": "2012-09-04",
"videos": [
"http://thecolbertreport.cc.com/videos/r83jxh/exclusive---better-know-a-district---new-york-s-9th---yvette-clarke",
"http://thecolbertreport.cc.com/videos/mxucyy/the-2012-people-s-party-congress-of-charlotte",
"http://thecolbertreport.cc.com/videos/bg56qn/better-know-a-district---new-york-s-9th---yvette-clarke",
"http://thecolbertreport.cc.com/videos/cy97ce/paul-ryan-s-marathon-time-gaffe",
"http://thecolbertreport.cc.com/videos/stj7xj/reihan-salam",
"http://thecolbertreport.cc.com/videos/awwi1z/sign-off---goodnight"
],
"guest": "Reihan Salam"
},
{
"date": "2012-09-05",
"videos": [
"http://thecolbertreport.cc.com/videos/4axjsp/the-2012-people-s-party-congress-of-charlotte---sound-system",
"http://thecolbertreport.cc.com/videos/lnxbm7/the-2012-people-s-party-congress-of-charlotte---michelle-obama---tammy-duckworth",
"http://thecolbertreport.cc.com/videos/zp0jy0/the-2012-people-s-party-congress-of-charlotte---michelle-obama-s-speech-tweets",
"http://thecolbertreport.cc.com/videos/75ubcv/sport-report---nfl-referee-lockout",
"http://thecolbertreport.cc.com/videos/fjhhan/michael-grunwald",
"http://thecolbertreport.cc.com/videos/05j0ux/sign-off---goodnight"
],
"guest": "Michael Grunwald"
},
{
"date": "2012-09-06",
"videos": [
"http://thecolbertreport.cc.com/videos/vf84g8/the-2012-people-s-party-congress-of-charlotte---avoiding-water-gate--day-1",
"http://thecolbertreport.cc.com/videos/qfodha/the-2012-people-s-party-congress-of-charlotte---bill-clinton---hill-poll",
"http://thecolbertreport.cc.com/videos/p7kw6y/the-2012-people-s-party-congress-of-charlotte---god---jerusalem",
"http://thecolbertreport.cc.com/videos/epwrup/bill-richardson",
"http://thecolbertreport.cc.com/videos/8ivg8l/sign-off---taco-plate"
],
"guest": "Bill Richardson"
},
{
"date": "2012-09-07",
"videos": [
"http://thecolbertreport.cc.com/videos/9wdqkq/the-2012-people-s-party-congress-of-charlotte---youth-vote",
"http://thecolbertreport.cc.com/videos/cr72mv/the-2012-people-s-party-congress-of-charlotte---tom-brokaw---barack-obama",
"http://thecolbertreport.cc.com/videos/l9ys9b/rnc-convention-vs--dnc-convention",
"http://thecolbertreport.cc.com/videos/6oqr0u/the-2012-people-s-party-congress-of-charlotte---colbert-bump",
"http://thecolbertreport.cc.com/videos/oq50sl/ed-rendell",
"http://thecolbertreport.cc.com/videos/fbd0do/sign-off---goodnight"
],
"guest": "Ed Rendell"
},
{
"date": "2012-09-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ohliey/intro---9-17-12",
"http://thecolbertreport.cc.com/videos/q2ib3a/values-voter-summit-gaffe",
"http://thecolbertreport.cc.com/videos/kelspo/mitt-romney-s-libya-comments",
"http://thecolbertreport.cc.com/videos/liknzb/atone-phone---ira-glass-calls",
"http://thecolbertreport.cc.com/videos/454q6n/drew-faust",
"http://thecolbertreport.cc.com/videos/lh4d2v/sign-off---shofar"
],
"guest": "Drew Faust"
},
{
"date": "2012-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/v7w7w3/intro---9-18-12",
"http://thecolbertreport.cc.com/videos/53lqfp/logo-makeover-for-usa-today",
"http://thecolbertreport.cc.com/videos/dsvsbf/mitt-romney-s-secret-video",
"http://thecolbertreport.cc.com/videos/m021ol/tip-wag---apple-samsung-lawsuit---tabloid-clash",
"http://thecolbertreport.cc.com/videos/ni1t1w/jeffrey-toobin",
"http://thecolbertreport.cc.com/videos/qteu69/sign-off---shrimp-toss"
],
"guest": "Jeffrey Toobin"
},
{
"date": "2012-09-19",
"videos": [
"http://thecolbertreport.cc.com/videos/8pu5um/intro---9-19-12",
"http://thecolbertreport.cc.com/videos/yf80jg/mitt-romney-s---barack-obama-s-secret-videos",
"http://thecolbertreport.cc.com/videos/rdsd7t/the-word---ask-not",
"http://thecolbertreport.cc.com/videos/4yfsux/wife-of-jesus",
"http://thecolbertreport.cc.com/videos/3vyhzj/itzhak-perlman"
],
"guest": "Itzhak Perlman"
},
{
"date": "2012-09-20",
"videos": [
"http://thecolbertreport.cc.com/videos/8f3t3h/vladimir-putin-s-crane-flight",
"http://thecolbertreport.cc.com/videos/asy3gz/mitt-romney-s-hispanic-outreach",
"http://thecolbertreport.cc.com/videos/3f13ot/mitt-romney-s-hispanic-outreach---esteban-colberto",
"http://thecolbertreport.cc.com/videos/2ufg9n/alpha-dog-of-the-week---cecilia-gimenez",
"http://thecolbertreport.cc.com/videos/nxad9d/errol-morris",
"http://thecolbertreport.cc.com/videos/sbgok9/sign-off---ask-o-matic"
],
"guest": "Errol Morris"
},
{
"date": "2012-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/kke43t/intro---9-25-12",
"http://thecolbertreport.cc.com/videos/ahsdxc/mitt-romney-s-airplane-window-gaffe",
"http://thecolbertreport.cc.com/videos/495xja/national-journal-poll",
"http://thecolbertreport.cc.com/videos/9vebvz/-rolling-calamity--campaign----america-again--preview",
"http://thecolbertreport.cc.com/videos/vk8jsq/sport-report---nfl-referee-lockout---replacement-refs---ratings",
"http://thecolbertreport.cc.com/videos/1my2a8/claressa-shields",
"http://thecolbertreport.cc.com/videos/n6n3t7/sign-off----america-again-"
],
"guest": "Claressa Shields"
},
{
"date": "2012-09-26",
"videos": [
"http://thecolbertreport.cc.com/videos/dfrukr/intro---9-26-12",
"http://thecolbertreport.cc.com/videos/diooyo/yom-kippur---aporkalypse",
"http://thecolbertreport.cc.com/videos/pnhcq0/obama-s-ottoman-empire",
"http://thecolbertreport.cc.com/videos/kzi40s/40-days-to-save-america",
"http://thecolbertreport.cc.com/videos/lsl385/jim-holt",
"http://thecolbertreport.cc.com/videos/jwctvx/sign-off---turkish-delight"
],
"guest": "Jim Holt"
},
{
"date": "2012-09-27",
"videos": [
"http://thecolbertreport.cc.com/videos/373l0t/-america-again--re-becoming-the-greatness-we-never-weren-t-",
"http://thecolbertreport.cc.com/videos/s9359o/mitt-romney-s-sliding-poll-numbers",
"http://thecolbertreport.cc.com/videos/zpnkfm/-skewed--presidential-polls",
"http://thecolbertreport.cc.com/videos/7tmsil/vince-gilligan-pt--1",
"http://thecolbertreport.cc.com/videos/e6j3e4/vince-gilligan-pt--2",
"http://thecolbertreport.cc.com/videos/xrnkns/sign-off----america-again-"
],
"guest": "Vince Gilligan"
},
{
"date": "2012-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/21ytsa/mitt-romney-s-tax-plan-math",
"http://thecolbertreport.cc.com/videos/v5694x/the-word---supply-chained",
"http://thecolbertreport.cc.com/videos/h64sbo/mahmoud-ahmadinejad-s-un-entourage",
"http://thecolbertreport.cc.com/videos/k9q5kh/ben-folds-five"
],
"guest": "Ben Folds Five"
},
{
"date": "2012-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/5ujlwr/intro---10-2-12",
"http://thecolbertreport.cc.com/videos/yeek7a/-america-again--release",
"http://thecolbertreport.cc.com/videos/cy7c9f/pulpit-freedom-sunday",
"http://thecolbertreport.cc.com/videos/x5r0se/pulpit-freedom-sunday---jim-garlow",
"http://thecolbertreport.cc.com/videos/oe7wh2/debate-hype---mitt-s-strategy",
"http://thecolbertreport.cc.com/videos/78yg26/jorge-ramos",
"http://thecolbertreport.cc.com/videos/dictxb/sign-off----america-again--release"
],
"guest": "Jorge Ramos"
},
{
"date": "2012-10-03",
"videos": [
"http://thecolbertreport.cc.com/videos/ef28hc/intro---10-3-12",
"http://thecolbertreport.cc.com/videos/05md2w/presidential-debates---mitt-romney-s-re-introduction",
"http://thecolbertreport.cc.com/videos/2cmp66/george-will-s-political-post-racial-journalism",
"http://thecolbertreport.cc.com/videos/idoutl/cheating-death---low-t",
"http://thecolbertreport.cc.com/videos/nw3yhm/kenny-rogers",
"http://thecolbertreport.cc.com/videos/rt3hz7/sign-off---banana-phone"
],
"guest": "Kenny Rogers"
},
{
"date": "2012-10-04",
"videos": [
"http://thecolbertreport.cc.com/videos/5uncqq/obama-s-debate-apathy---pbs",
"http://thecolbertreport.cc.com/videos/cl08kb/chris-matthews-s-impotent-rage",
"http://thecolbertreport.cc.com/videos/inrj8y/mitt-s-socialist-rhetoric---body-language",
"http://thecolbertreport.cc.com/videos/mw7xqx/mitt-s--etch-a-sketch--behavior",
"http://thecolbertreport.cc.com/videos/nvjrik/voter-fraud-alert---halloween---pennsylvania",
"http://thecolbertreport.cc.com/videos/fkt99i/george-church",
"http://thecolbertreport.cc.com/videos/8vqy9e/sign-off---rabbit-food"
],
"guest": "Dr. George Church"
},
{
"date": "2012-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ohtrd9/intro---10-8-12",
"http://thecolbertreport.cc.com/videos/53brnc/unemployment-below-eight-percent",
"http://thecolbertreport.cc.com/videos/uey9b0/the-word---it-s-not-easy-having-green",
"http://thecolbertreport.cc.com/videos/s8mn29/koch-brothers---orc-senate-candidate",
"http://thecolbertreport.cc.com/videos/43khod/mark-kelly",
"http://thecolbertreport.cc.com/videos/sq2eio/sign-off---welcome-baby-brumm-"
],
"guest": "Mark Kelly"
},
{
"date": "2012-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/htdpl2/intro---10-9-12",
"http://thecolbertreport.cc.com/videos/69kfag/president-obama-s-obsessiveness-plea",
"http://thecolbertreport.cc.com/videos/0g0ihq/smokin--pole---the-quest-for-arctic-riches---china---russia",
"http://thecolbertreport.cc.com/videos/fu9mpp/mitt-romney-s-vague--long-winded-foreign-threats",
"http://thecolbertreport.cc.com/videos/fgftvy/morrissey"
],
"guest": "Morrissey"
},
{
"date": "2012-10-10",
"videos": [
"http://thecolbertreport.cc.com/videos/4jb3d3/intro---10-10-12",
"http://thecolbertreport.cc.com/videos/ejqp1v/beverage-based-polling---pizza-toppings-town-hall",
"http://thecolbertreport.cc.com/videos/jur0u9/the-word---meducation",
"http://thecolbertreport.cc.com/videos/t1y0rc/threatdown---apple-fan-bears--drunk-cars---bears",
"http://thecolbertreport.cc.com/videos/plccwf/naomi-wolf",
"http://thecolbertreport.cc.com/videos/od1her/sign-off----vagina--a-new-biography-"
],
"guest": "Naomi Wolf"
},
{
"date": "2012-10-11",
"videos": [
"http://thecolbertreport.cc.com/videos/6smkkc/intro---10-11-12",
"http://thecolbertreport.cc.com/videos/kiyawb/the-vice-presidential-debate",
"http://thecolbertreport.cc.com/videos/s190yi/this-changes-everything---obama-s-martian-gayness",
"http://thecolbertreport.cc.com/videos/2ksunf/formidable-opponent---mitt-romney",
"http://thecolbertreport.cc.com/videos/xhdwfk/chrystia-freeland",
"http://thecolbertreport.cc.com/videos/zr1go5/sign-off---goodnight"
],
"guest": "Chrystia Freeland"
},
{
"date": "2012-10-15",
"videos": [
"http://thecolbertreport.cc.com/videos/fuzsdf/intro---10-15-12",
"http://thecolbertreport.cc.com/videos/0bmyur/supersonic-space-jump",
"http://thecolbertreport.cc.com/videos/iudpa7/tip-wag---norway---american-family-association",
"http://thecolbertreport.cc.com/videos/0q2emr/monkey-on-the-lam---florida---monkey-on-the-gram",
"http://thecolbertreport.cc.com/videos/zj6xib/evan-thomas",
"http://thecolbertreport.cc.com/videos/n0kt18/sign-off---goodnight"
],
"guest": "Evan Thomas"
},
{
"date": "2012-10-16",
"videos": [
"http://thecolbertreport.cc.com/videos/keo9r0/the-wealth-edge----cool--debate-technology",
"http://thecolbertreport.cc.com/videos/4aqbh6/affirmative-action-supreme-court-case",
"http://thecolbertreport.cc.com/videos/y46z6y/affirmative-action-supreme-court-case---emily-bazelon",
"http://thecolbertreport.cc.com/videos/4uld4g/paul-ryan-s-phony-campaign-photo",
"http://thecolbertreport.cc.com/videos/4c7frp/cory-booker",
"http://thecolbertreport.cc.com/videos/juen77/sign-off---iphone"
],
"guest": "Cory Booker"
},
{
"date": "2012-10-17",
"videos": [
"http://thecolbertreport.cc.com/videos/wd584x/second-presidential-debate-showdown",
"http://thecolbertreport.cc.com/videos/rjvmac/libya-gate-scandal",
"http://thecolbertreport.cc.com/videos/j531em/stupid-town-hall-topics",
"http://thecolbertreport.cc.com/videos/jr7tf6/mitt-s-greatest-debate-triumph",
"http://thecolbertreport.cc.com/videos/hhxtxg/alpha-dog-of-the-week---scott-desjarlais",
"http://thecolbertreport.cc.com/videos/f4jil4/tyler-perry",
"http://thecolbertreport.cc.com/videos/namywp/sign-off---loose-teeth"
],
"guest": "Tyler Perry"
},
{
"date": "2012-10-18",
"videos": [
"http://thecolbertreport.cc.com/videos/1dfeya/celebrity-campaign-endorsements",
"http://thecolbertreport.cc.com/videos/rgzljg/mitt-s-first-day",
"http://thecolbertreport.cc.com/videos/2q39xi/junk-food-feed",
"http://thecolbertreport.cc.com/videos/xttei6/special-report---a-shucking-disaster---nightmare-at-the-mitchell-corn-palace",
"http://thecolbertreport.cc.com/videos/t8vgd4/the-killers",
"http://thecolbertreport.cc.com/videos/ieuitc/sign-off----battle-born-"
],
"guest": "The Killers"
},
{
"date": "2012-10-22",
"videos": [
"http://thecolbertreport.cc.com/videos/0t7wmw/virginia-s-voter-fraud-fighter",
"http://thecolbertreport.cc.com/videos/jhyr4v/ceo-blackmail---fec-consent",
"http://thecolbertreport.cc.com/videos/t1yx0h/governor-magorium-s-ganja-emporium",
"http://thecolbertreport.cc.com/videos/8uddyg/donald-sadoway",
"http://thecolbertreport.cc.com/videos/czceut/sign-off---goodnight"
],
"guest": "Donald Sadoway"
},
{
"date": "2012-10-23",
"videos": [
"http://thecolbertreport.cc.com/videos/nept6x/stephen-colbert-s-debate-2012-coverage",
"http://thecolbertreport.cc.com/videos/wowfoq/elusive--mysterious--undecided-voters",
"http://thecolbertreport.cc.com/videos/twexhe/lance-armstrong-s-doping-scandal",
"http://thecolbertreport.cc.com/videos/hrawp4/john-grisham",
"http://thecolbertreport.cc.com/videos/rxk7z1/sign-off---manischewitz"
],
"guest": "John Grisham"
},
{
"date": "2012-10-24",
"videos": [
"http://thecolbertreport.cc.com/videos/3gbfdl/intro---10-24-12",
"http://thecolbertreport.cc.com/videos/ifrr4g/donald-trump-s-october-surprise",
"http://thecolbertreport.cc.com/videos/n9028e/nonstop-libya-gate-questions",
"http://thecolbertreport.cc.com/videos/gzidte/richard-mourdock-s-rape-comment",
"http://thecolbertreport.cc.com/videos/swkt4w/anthony-everitt",
"http://thecolbertreport.cc.com/videos/ug2zqb/sign-off---gop-rape-mention-tally"
],
"guest": "Anthony Everitt"
},
{
"date": "2012-10-25",
"videos": [
"http://thecolbertreport.cc.com/videos/7k4pkh/intro---10-25-12",
"http://thecolbertreport.cc.com/videos/a0h9on/voting---hormones",
"http://thecolbertreport.cc.com/videos/zu00re/stephen-ghoulbert-s-spooky-time-halloween-fun-guide---tom-hanks",
"http://thecolbertreport.cc.com/videos/pb058e/mitch-daniels-pt--1",
"http://thecolbertreport.cc.com/videos/9tzl4i/mitch-daniels-pt--2",
"http://thecolbertreport.cc.com/videos/pstvp6/sign-off---murderer-skull-model"
],
"guest": "Gov. Mitch Daniels"
},
{
"date": "2012-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/rky5ab/hurricane-sandy-s-aftermath",
"http://thecolbertreport.cc.com/videos/ey2jqz/hurricane-sandy---election-day",
"http://thecolbertreport.cc.com/videos/lk60fg/flamboyant-sandy---federal-relief-debate",
"http://thecolbertreport.cc.com/videos/5vx4ad/donald-trump-s-october-surprise-extension",
"http://thecolbertreport.cc.com/videos/x89ju7/lilly-ledbetter",
"http://thecolbertreport.cc.com/videos/jqfgo3/sign-off---american-red-cross---hurricane-sandy"
],
"guest": "Lilly Ledbetter"
},
{
"date": "2012-11-01",
"videos": [
"http://thecolbertreport.cc.com/videos/hk2ox4/intro---11-1-12",
"http://thecolbertreport.cc.com/videos/mtuxrh/hurricane-sandy-traffic-ordeal",
"http://thecolbertreport.cc.com/videos/pdmw4z/tip-wag---constant-documentation---billy-graham",
"http://thecolbertreport.cc.com/videos/rmzkbz/david-byrne---st--vincent",
"http://thecolbertreport.cc.com/videos/w4v4gd/sign-off---american-red-cross---hurricane-sandy"
],
"guest": "David Byrne & St. Vincent"
},
{
"date": "2012-11-05",
"videos": [
"http://thecolbertreport.cc.com/videos/mm7c7b/colbert-super-pac---severe-candidate-warning",
"http://thecolbertreport.cc.com/videos/h3qcht/shame-based-campaigning",
"http://thecolbertreport.cc.com/videos/ga4hky/shame-based-campaigning---sasha-issenberg",
"http://thecolbertreport.cc.com/videos/ef460s/-razor-tight--presidential-election",
"http://thecolbertreport.cc.com/videos/tl7vb4/nate-silver",
"http://thecolbertreport.cc.com/videos/i1cdch/sign-off---go-vote-"
],
"guest": "Nate Silver"
},
{
"date": "2012-11-06",
"videos": [
"http://thecolbertreport.cc.com/videos/2wfr8k/the-colbert-report-election-2012---who-will-replace-obama---012",
"http://thecolbertreport.cc.com/videos/ydqq2x/the-colbert-report-election-2012---too-close-to-call",
"http://thecolbertreport.cc.com/videos/b9hvj6/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/vghwne/senate-races---state-referenda",
"http://thecolbertreport.cc.com/videos/cao81i/sign-off---election-reflections"
],
"guest": "Andrew Sullivan"
},
{
"date": "2012-11-07",
"videos": [
"http://thecolbertreport.cc.com/videos/d96ihg/intro---11-7-12",
"http://thecolbertreport.cc.com/videos/zviz5s/four-more-years-of-hopey-change",
"http://thecolbertreport.cc.com/videos/hbkurh/nontraditional-non-white-america",
"http://thecolbertreport.cc.com/videos/btqtta/polling-irregularities---vote-by-phone-scam",
"http://thecolbertreport.cc.com/videos/wjevw3/wind-power-s-health-hazards",
"http://thecolbertreport.cc.com/videos/xs8d72/doris-kearns-goodwin",
"http://thecolbertreport.cc.com/videos/6iwo2a/sign-off---solace-in-a-bottle"
],
"guest": "Doris Kearns Goodwin"
},
{
"date": "2012-11-08",
"videos": [
"http://thecolbertreport.cc.com/videos/lttdhm/intro---11-8-12",
"http://thecolbertreport.cc.com/videos/op51y2/nor-easter---mitt-romney",
"http://thecolbertreport.cc.com/videos/ryj0jw/difference-makers---stephen-dick-jr-",
"http://thecolbertreport.cc.com/videos/25lwb9/the-plight-of-platonic-relationships",
"http://thecolbertreport.cc.com/videos/doygtf/rachel-maddow",
"http://thecolbertreport.cc.com/videos/jzxfgf/sign-off---goodnight"
],
"guest": "Rachel Maddow"
},
{
"date": "2012-11-12",
"videos": [
"http://thecolbertreport.cc.com/videos/3szdub/david-petraeus-s--all-in--affair",
"http://thecolbertreport.cc.com/videos/kj1cs9/colbert-super-pac-shh----karl-rove---jon-stewart",
"http://thecolbertreport.cc.com/videos/66y7dx/colbert-super-pac-shh----secret-second-501c4---trevor-potter",
"http://thecolbertreport.cc.com/videos/tl4uce/blitzkrieg-on-grinchitude---santa-s-pipe",
"http://thecolbertreport.cc.com/videos/6vpcf3/ken-burns",
"http://thecolbertreport.cc.com/videos/3w1i4s/sign-off---goodbye-colbert-super-pac"
],
"guest": "Ken Burns"
},
{
"date": "2012-11-13",
"videos": [
"http://thecolbertreport.cc.com/videos/i9yvhl/intro---11-13-12",
"http://thecolbertreport.cc.com/videos/uml8yd/2072--race-to-the-white-orb",
"http://thecolbertreport.cc.com/videos/s5vmrx/tip-wag---pranab-mukherjee--brazilian-scientists--sonia-sotomayor",
"http://thecolbertreport.cc.com/videos/icmpvx/newt-gingrich-pt--1",
"http://thecolbertreport.cc.com/videos/61deqz/newt-gingrich-pt--2",
"http://thecolbertreport.cc.com/videos/ujlf67/sign-off---goodnight"
],
"guest": "Newt Gingrich"
},
{
"date": "2012-11-14",
"videos": [
"http://thecolbertreport.cc.com/videos/e0pxrk/intro---11-14-12",
"http://thecolbertreport.cc.com/videos/3zu15f/who-s-attacking-me-now----canadian-broadcasting-corporation",
"http://thecolbertreport.cc.com/videos/kvs6wn/high-frequency-trading",
"http://thecolbertreport.cc.com/videos/ba8i6j/high-frequency-trading---christopher-steiner",
"http://thecolbertreport.cc.com/videos/wvf1nd/tony-kushner-pt--1",
"http://thecolbertreport.cc.com/videos/ezygjv/tony-kushner-pt--2",
"http://thecolbertreport.cc.com/videos/cz0sty/sign-off---goodnight"
],
"guest": "Tony Kushner"
},
{
"date": "2012-11-15",
"videos": [
"http://thecolbertreport.cc.com/videos/cazbp6/intro---11-15-12",
"http://thecolbertreport.cc.com/videos/regxdh/millennial-generation-soup-campaign",
"http://thecolbertreport.cc.com/videos/jy83mg/general-s-hospital",
"http://thecolbertreport.cc.com/videos/xve006/cheating-death---flu-fighting-meth",
"http://thecolbertreport.cc.com/videos/we1zlp/chris-stringer",
"http://thecolbertreport.cc.com/videos/f23a7f/sign-off---the-colbert-report-s-seventh-anniversary"
],
"guest": "Chris Stringer"
},
{
"date": "2012-11-26",
"videos": [
"http://thecolbertreport.cc.com/videos/9ex0kp/intro---11-26-12",
"http://thecolbertreport.cc.com/videos/i4lmrj/stephen-s-thanksgiving---holy-black-friday",
"http://thecolbertreport.cc.com/videos/242ato/judge--jury---executioner---copyright-law",
"http://thecolbertreport.cc.com/videos/ob3lcn/blitzkrieg-on-grinchitude---pope-benedict-xvi",
"http://thecolbertreport.cc.com/videos/std5aq/jake-tapper",
"http://thecolbertreport.cc.com/videos/o2lec3/sign-off---goodnight"
],
"guest": "Jake Tapper"
},
{
"date": "2012-11-27",
"videos": [
"http://thecolbertreport.cc.com/videos/oh9w4r/canada-s-grinch",
"http://thecolbertreport.cc.com/videos/7imsna/the-fiscal-cliff-compromise",
"http://thecolbertreport.cc.com/videos/72sdt0/the-fiscal-cliff-compromise---reihan-salam",
"http://thecolbertreport.cc.com/videos/1fuekz/dolly-parton",
"http://thecolbertreport.cc.com/videos/nqrlrq/sign-off---country-chords"
],
"guest": "Dolly Parton"
},
{
"date": "2012-11-28",
"videos": [
"http://thecolbertreport.cc.com/videos/ui3lan/intro---11-28-12",
"http://thecolbertreport.cc.com/videos/omvkv3/record-powerball-jackpot",
"http://thecolbertreport.cc.com/videos/tnr1l8/the-word---sisters-are-doing-it-to-themselves",
"http://thecolbertreport.cc.com/videos/xpxkwl/filibuster-reform",
"http://thecolbertreport.cc.com/videos/qc393o/frank-oz",
"http://thecolbertreport.cc.com/videos/b9jkcc/sign-off---stephen-s-muppet"
],
"guest": "Frank Oz"
},
{
"date": "2012-11-29",
"videos": [
"http://thecolbertreport.cc.com/videos/gnb0gv/intro---11-29-12",
"http://thecolbertreport.cc.com/videos/cehmsr/moon-shattering-news",
"http://thecolbertreport.cc.com/videos/9o0ttj/tip-wag---gay-rights-pioneers---gun-dorms",
"http://thecolbertreport.cc.com/videos/dgy710/top-10-of-2012---operation-killing--killing-kennedy-",
"http://thecolbertreport.cc.com/videos/qyxymb/sean-carroll",
"http://thecolbertreport.cc.com/videos/z8pd91/sign-off---acceptance-speech"
],
"guest": "Sean Carroll"
},
{
"date": "2012-12-03",
"videos": [
"http://thecolbertreport.cc.com/videos/c2msxt/the-pundit--or-colbert-and-back-again",
"http://thecolbertreport.cc.com/videos/i94qww/the-pundit--or-colbert-and-back-again---hobbit-week-lineup",
"http://thecolbertreport.cc.com/videos/zkpe65/the-word---base-instincts",
"http://thecolbertreport.cc.com/videos/47ssk7/senior-moment---granny-pods",
"http://thecolbertreport.cc.com/videos/zm84yu/ian-mckellen",
"http://thecolbertreport.cc.com/videos/u8z3mx/sign-off---the-pundit--or-colbert-and-back-again---sting"
],
"guest": "Ian McKellen"
},
{
"date": "2012-12-04",
"videos": [
"http://thecolbertreport.cc.com/videos/ri5csw/the-pundit--or-colbert-and-back-again---hobbit-week-night-two",
"http://thecolbertreport.cc.com/videos/q3aiti/low-t---low-o",
"http://thecolbertreport.cc.com/videos/n7lg1x/kate-the-great-s-morning-sickness",
"http://thecolbertreport.cc.com/videos/v8syf8/martin-freeman",
"http://thecolbertreport.cc.com/videos/rmahy7/sign-off---the-pundit--or-colbert-and-back-again---rivendell"
],
"guest": "Martin Freeman"
},
{
"date": "2012-12-05",
"videos": [
"http://thecolbertreport.cc.com/videos/qtkdcn/the-pundit--or-colbert-and-back-again---hobbit-week-night-three",
"http://thecolbertreport.cc.com/videos/6x66a7/the-word---hire-learning",
"http://thecolbertreport.cc.com/videos/9j5qtc/politicos---paranoid-fantasies",
"http://thecolbertreport.cc.com/videos/m8dp2f/andy-serkis",
"http://thecolbertreport.cc.com/videos/msip4s/sign-off---the-pundit--or-colbert-and-back-again---one-ring"
],
"guest": "Peter Jackson"
},
{
"date": "2012-12-06",
"videos": [
"http://thecolbertreport.cc.com/videos/teluzg/the-pundit--or-colbert-and-back-again---hobbit-week-night-four",
"http://thecolbertreport.cc.com/videos/hhe4hg/jim-demint-s-resignation",
"http://thecolbertreport.cc.com/videos/d0n0vz/stephen-colbert--wax-on---wax-off-at-madame-tussauds-pt--1",
"http://thecolbertreport.cc.com/videos/1voj50/stephen-colbert--wax-on---wax-off-at-madame-tussauds-pt--2",
"http://thecolbertreport.cc.com/videos/0tvck8/peter-jackson",
"http://thecolbertreport.cc.com/videos/fbqohj/sign-off---the-pundit--or-colbert-and-back-again---hobbit-week-concludes"
],
"guest": "Andy Serkis"
},
{
"date": "2012-12-10",
"videos": [
"http://thecolbertreport.cc.com/videos/0cfmll/stephen-for-u-s--senate",
"http://thecolbertreport.cc.com/videos/8skoq2/fox-news-s-secret-presidential-recruit",
"http://thecolbertreport.cc.com/videos/gdygvq/diana-krall"
],
"guest": "Diana Krall, Elvis Costello"
},
{
"date": "2012-12-11",
"videos": [
"http://thecolbertreport.cc.com/videos/t45azb/intro---12-11-12",
"http://thecolbertreport.cc.com/videos/69xjmc/fiscal-cliff-negotiations",
"http://thecolbertreport.cc.com/videos/iwvp9d/threatdown---commie-unicorns---foreman-barbie",
"http://thecolbertreport.cc.com/videos/8is78z/ex-gay-therapy-debate",
"http://thecolbertreport.cc.com/videos/m3omdi/malcolm-gladwell"
],
"guest": "Malcolm Gladwell, Audra McDonald"
},
{
"date": "2012-12-12",
"videos": [
"http://thecolbertreport.cc.com/videos/hoair6/success-for-operation-killing--killing-kennedy-",
"http://thecolbertreport.cc.com/videos/8aazot/stephen-s-appointment-with-destiny---jeff-bingaman",
"http://thecolbertreport.cc.com/videos/yr83zl/ground-zero-mosque-erade",
"http://thecolbertreport.cc.com/videos/38iv8s/mandy-patinkin"
],
"guest": "Mandy Patinkin, Michael Stipe"
},
{
"date": "2012-12-13",
"videos": [
"http://thecolbertreport.cc.com/videos/ao4d2q/hurricane-sandy-mega-concert",
"http://thecolbertreport.cc.com/videos/dseos2/uncensored----breaking-abbey-",
"http://thecolbertreport.cc.com/videos/clpvpj/colbert-super-pac---the-ham-rove-memorial-fund",
"http://thecolbertreport.cc.com/videos/wozbhp/simone-campbell"
],
"guest": "Sister Simone Campbell, Jeff Tweedy, Mavis Staples, Sean Lennon"
}
],
"2013": [
{
"date": "2013-01-07",
"videos": [
"http://thecolbertreport.cc.com/videos/bgkrwx/intro---1-7-13",
"http://thecolbertreport.cc.com/videos/83h5da/stephen-s-holiday-break",
"http://thecolbertreport.cc.com/videos/9nmhtf/fiscal-cliff-deal---disincentives",
"http://thecolbertreport.cc.com/videos/wq7dip/the-platinum-debt-ceiling-solution",
"http://thecolbertreport.cc.com/videos/b1uvtc/blood-in-the-water---bill-o-reilly-s-racial-insensitivity",
"http://thecolbertreport.cc.com/videos/ayoamg/jimmy-wales",
"http://thecolbertreport.cc.com/videos/a1dzb3/sign-off---goodnight"
],
"guest": "Jimmy Wales"
},
{
"date": "2013-01-08",
"videos": [
"http://thecolbertreport.cc.com/videos/fuxwr9/intro---1-8-13",
"http://thecolbertreport.cc.com/videos/gdcdgs/postage-price-hike",
"http://thecolbertreport.cc.com/videos/vcqeg7/cheating-death---rage---blood-transfusions",
"http://thecolbertreport.cc.com/videos/ps8djx/bin-laden-film-controversy",
"http://thecolbertreport.cc.com/videos/kq9pp2/chris-kluwe",
"http://thecolbertreport.cc.com/videos/gcv2eh/sign-off---vacsa-tern"
],
"guest": "Chris Kluwe"
},
{
"date": "2013-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/kg1znk/intro---1-9-13",
"http://thecolbertreport.cc.com/videos/ip7ql9/idaho-s-walled---armed-community",
"http://thecolbertreport.cc.com/videos/tzcfhr/gun-control-backlash",
"http://thecolbertreport.cc.com/videos/52uula/thought-for-food---wheat-addictions",
"http://thecolbertreport.cc.com/videos/ysa6lr/neil-shubin",
"http://thecolbertreport.cc.com/videos/5majke/sign-off---mcgnaw-the-gluten-free-beaver"
],
"guest": "Neil Shubin"
},
{
"date": "2013-01-10",
"videos": [
"http://thecolbertreport.cc.com/videos/uej3ac/roadside-sofa-boning",
"http://thecolbertreport.cc.com/videos/5n5w35/obama-s-failed-second-term",
"http://thecolbertreport.cc.com/videos/35sqrd/tip-wag---hapifork---kevin-garnett",
"http://thecolbertreport.cc.com/videos/ro7hjf/benjamin-gibbard"
],
"guest": "Ben Gibbard"
},
{
"date": "2013-01-14",
"videos": [
"http://thecolbertreport.cc.com/videos/y2ynrh/stephen-colbert-s-double-barrel-blam-o-rama---silver-bullets---video-games",
"http://thecolbertreport.cc.com/videos/8zsm19/stephen-colbert-s-double-barrel-blam-o-rama---piers-morgan---james-yeager",
"http://thecolbertreport.cc.com/videos/zftq7q/stephen-colbert-s-double-barrel-blam-o-rama---guns-as-civil-rights-victims",
"http://thecolbertreport.cc.com/videos/4lcqtx/vitaminwater-advertising-lawsuit",
"http://thecolbertreport.cc.com/videos/bainem/piers-morgan",
"http://thecolbertreport.cc.com/videos/hoc2kn/sign-off---pocketbook-constitution"
],
"guest": "Piers Morgan"
},
{
"date": "2013-01-15",
"videos": [
"http://thecolbertreport.cc.com/videos/t6cye7/intro---1-15-13",
"http://thecolbertreport.cc.com/videos/p5ll7c/lance-armstrong-s-interview-with-oprah",
"http://thecolbertreport.cc.com/videos/uuduw3/monkey-on-the-lam---macaque-attack---1-381-days-of-simian-terror-in-tampa",
"http://thecolbertreport.cc.com/videos/r78s3t/catacoffin-catacombo-sound-system",
"http://thecolbertreport.cc.com/videos/an9lge/jared-diamond",
"http://thecolbertreport.cc.com/videos/usj2pz/sign-off---goodnight"
],
"guest": "Jared Diamond"
},
{
"date": "2013-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/j56lbb/intro---1-16-13",
"http://thecolbertreport.cc.com/videos/s9aj13/healthy-fake-smiles",
"http://thecolbertreport.cc.com/videos/uhkynp/hsbc-laundering-charges",
"http://thecolbertreport.cc.com/videos/hbxrk6/hsbc-laundering-charges---matt-taibbi",
"http://thecolbertreport.cc.com/videos/62nu7n/pat-robertson-s-romance-advice",
"http://thecolbertreport.cc.com/videos/m7jh2f/tom-brokaw",
"http://thecolbertreport.cc.com/videos/ib0ftp/sign-off---goodnight"
],
"guest": "Tom Brokaw"
},
{
"date": "2013-01-17",
"videos": [
"http://thecolbertreport.cc.com/videos/r3kb1q/exclusive---colbert-wax-on---wax-off-at-madame-tussauds--outtakes",
"http://thecolbertreport.cc.com/videos/qqx0s8/corporate-scamwich",
"http://thecolbertreport.cc.com/videos/df7rup/obama-s-gun-grab",
"http://thecolbertreport.cc.com/videos/w73nzv/the-word---united-we-standoff",
"http://thecolbertreport.cc.com/videos/g1jrq5/porn-names---porn-lawsuits",
"http://thecolbertreport.cc.com/videos/vem33s/akhil-reed-amar",
"http://thecolbertreport.cc.com/videos/jawwj8/sign-off---goodnight"
],
"guest": "Akhil Reed Amar"
},
{
"date": "2013-01-21",
"videos": [
"http://thecolbertreport.cc.com/videos/zzot6e/intro---1-21-13",
"http://thecolbertreport.cc.com/videos/xjexam/obama-s-second-inauguration",
"http://thecolbertreport.cc.com/videos/li25sm/stephen-s-re-inauguration",
"http://thecolbertreport.cc.com/videos/djvjxw/threatdown---flu--kate-middleton--vomiting-robots--superintelligent-gonorrhea--bears",
"http://thecolbertreport.cc.com/videos/o7bw1e/ta-nehisi-coates",
"http://thecolbertreport.cc.com/videos/9hwods/sign-off---hotel-bibles"
],
"guest": "Ta-Nehisi Coates"
},
{
"date": "2013-01-22",
"videos": [
"http://thecolbertreport.cc.com/videos/u2sxvp/exclusive---kathryn-bigelow-extended-interview",
"http://thecolbertreport.cc.com/videos/4h7ltu/obama-s-inauguration---class-warfare",
"http://thecolbertreport.cc.com/videos/0f673t/the-word---win--lose--or-redraw",
"http://thecolbertreport.cc.com/videos/tccphp/dustin-hoffman-s-bad-news",
"http://thecolbertreport.cc.com/videos/rn0fho/kathryn-bigelow",
"http://thecolbertreport.cc.com/videos/msaso2/sign-off----zero-dark-thirty-----quartet-"
],
"guest": "Kathryn Bigelow"
},
{
"date": "2013-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/3reklz/beyonce-s-lip-gate",
"http://thecolbertreport.cc.com/videos/vw3zie/tip-wag---montpelier-school-district--theatlasphere-com---florida-officials",
"http://thecolbertreport.cc.com/videos/f3o0qj/alpha-dog-of-the-week---virginia-state-senate-republicans",
"http://thecolbertreport.cc.com/videos/202a1c/sally-field",
"http://thecolbertreport.cc.com/videos/hd80sm/sign-off---goodnight"
],
"guest": "Sally Field"
},
{
"date": "2013-01-24",
"videos": [
"http://thecolbertreport.cc.com/videos/xaaxud/france---the-mali-conflict",
"http://thecolbertreport.cc.com/videos/i1sdq5/france---the-mali-conflict---edward-berenson",
"http://thecolbertreport.cc.com/videos/vgqq4z/benghazi-attack-hearing",
"http://thecolbertreport.cc.com/videos/ktiaje/tavi-gevinson",
"http://thecolbertreport.cc.com/videos/scixor/sign-off---stephen-s-makeover"
],
"guest": "Tavi Gevinson"
},
{
"date": "2013-01-28",
"videos": [
"http://thecolbertreport.cc.com/videos/q1iuxz/intro---1-28-13",
"http://thecolbertreport.cc.com/videos/27at9z/rapiscan-scanners",
"http://thecolbertreport.cc.com/videos/mm5bdz/the-word---the-new-abnormal",
"http://thecolbertreport.cc.com/videos/0q31iw/the-axis-of-evil-of-the-week---north-korea",
"http://thecolbertreport.cc.com/videos/qdf7ec/michael-shellenberger",
"http://thecolbertreport.cc.com/videos/tquuvs/sign-off---goodnight"
],
"guest": "Michael Shellenberger"
},
{
"date": "2013-01-29",
"videos": [
"http://thecolbertreport.cc.com/videos/4ax2hi/intro---1-29-13",
"http://thecolbertreport.cc.com/videos/81oaln/iran-s-space-monkey---america-s-ape-moratorium",
"http://thecolbertreport.cc.com/videos/k95k9v/gun-control---state-sovereignty",
"http://thecolbertreport.cc.com/videos/7c8y4f/gun-control---state-sovereignty---cliff-sloan",
"http://thecolbertreport.cc.com/videos/gfoq4g/guantanamo-bay-office-closure",
"http://thecolbertreport.cc.com/videos/jtkgrc/george-saunders",
"http://thecolbertreport.cc.com/videos/jzuerq/sign-off----tenth-of-december-"
],
"guest": "George Saunders"
},
{
"date": "2013-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/omljip/intro---1-30-13",
"http://thecolbertreport.cc.com/videos/drdd3e/coming-out-benefits---gay-rights",
"http://thecolbertreport.cc.com/videos/qnfsur/the-word---it-gets-worse",
"http://thecolbertreport.cc.com/videos/i6hr57/non-racist-kkk",
"http://thecolbertreport.cc.com/videos/kiwt0s/bill-gates",
"http://thecolbertreport.cc.com/videos/4wroqd/sign-off---goodnight"
],
"guest": "Bill Gates"
},
{
"date": "2013-01-31",
"videos": [
"http://thecolbertreport.cc.com/videos/101faw/sport-report---ads-for-ads---deer-antler-spray",
"http://thecolbertreport.cc.com/videos/odn1pg/sport-report---gatorade-chemicals---chicken-wing-shortage",
"http://thecolbertreport.cc.com/videos/7wymxs/craziest-f--king-thing-i-ve-ever-heard---crows-using-tools",
"http://thecolbertreport.cc.com/videos/v42kz3/matthew-guerrieri",
"http://thecolbertreport.cc.com/videos/o489no/sign-off---welcome-baby-sanchez-"
],
"guest": "Matthew Guerrieri"
},
{
"date": "2013-02-04",
"videos": [
"http://thecolbertreport.cc.com/videos/iyrevo/intro---2-4-13",
"http://thecolbertreport.cc.com/videos/kb76z3/super-bowl-xlvii",
"http://thecolbertreport.cc.com/videos/vow0uy/bipartisan-immigration-reform",
"http://thecolbertreport.cc.com/videos/ur7z4s/skeet-shooting-skeptics",
"http://thecolbertreport.cc.com/videos/qxsatq/sonia-sotomayor",
"http://thecolbertreport.cc.com/videos/cmttl3/sign-off---second-amendment"
],
"guest": "Justice Sonia Sotomayor"
},
{
"date": "2013-02-05",
"videos": [
"http://thecolbertreport.cc.com/videos/2316uc/intro---2-5-13",
"http://thecolbertreport.cc.com/videos/e96s3c/royal-remains",
"http://thecolbertreport.cc.com/videos/t6wn9f/tip-wag---drunk-donating----the-job--reality-show",
"http://thecolbertreport.cc.com/videos/a1z0cu/california-s-heroic-hitchhiker",
"http://thecolbertreport.cc.com/videos/dyxduh/julie-andrews",
"http://thecolbertreport.cc.com/videos/y7gdjs/sign-off---final-rose"
],
"guest": "Julie Andrews"
},
{
"date": "2013-02-06",
"videos": [
"http://thecolbertreport.cc.com/videos/ae7fmq/intro---2-6-13",
"http://thecolbertreport.cc.com/videos/33sahu/the-penny-pinch",
"http://thecolbertreport.cc.com/videos/r6xbr9/stephen-s-sister-for-congress",
"http://thecolbertreport.cc.com/videos/07240r/scientology-church-violence",
"http://thecolbertreport.cc.com/videos/acokbc/lawrence-wright",
"http://thecolbertreport.cc.com/videos/kt2abh/sign-off---watermelon-warning"
],
"guest": "Lawrence Wright"
},
{
"date": "2013-02-07",
"videos": [
"http://thecolbertreport.cc.com/videos/14j8d1/intro---2-7-13",
"http://thecolbertreport.cc.com/videos/k4xzoo/winter-storm-nemo",
"http://thecolbertreport.cc.com/videos/xknwhm/mr--smith-goes-to-the-state-legislature---stacey-campfield",
"http://thecolbertreport.cc.com/videos/044mxj/-bang-with-friends--app",
"http://thecolbertreport.cc.com/videos/eqsq39/benh-zeitlin",
"http://thecolbertreport.cc.com/videos/xarh0o/sign-off---goodnight"
],
"guest": "Behn Zeitlin"
},
{
"date": "2013-02-11",
"videos": [
"http://thecolbertreport.cc.com/videos/xstxbo/bush-family-email-hack",
"http://thecolbertreport.cc.com/videos/s7p70k/pope-s-resignation---papal-speculatron-7500",
"http://thecolbertreport.cc.com/videos/v1p2wr/pope-s-resignation---papal-speculatron-7500---james-martin",
"http://thecolbertreport.cc.com/videos/he6l0j/garry-wills",
"http://thecolbertreport.cc.com/videos/38op41/sign-off----why-priests--"
],
"guest": "Garry Wills"
},
{
"date": "2013-02-12",
"videos": [
"http://thecolbertreport.cc.com/videos/hbhjqi/intro---2-12-13",
"http://thecolbertreport.cc.com/videos/hwigu9/rnc-autopsy",
"http://thecolbertreport.cc.com/videos/6t4bfw/conservative-victory-project",
"http://thecolbertreport.cc.com/videos/b91wqa/arizona-s-gun-posse",
"http://thecolbertreport.cc.com/videos/87jshg/roger-hodge",
"http://thecolbertreport.cc.com/videos/4j42vn/sign-off---goodnight"
],
"guest": "Roger Hodge"
},
{
"date": "2013-02-13",
"videos": [
"http://thecolbertreport.cc.com/videos/r8y2v4/obama-s-state-of-the-union",
"http://thecolbertreport.cc.com/videos/7g4eal/state-of-the-rubio",
"http://thecolbertreport.cc.com/videos/89tt3v/spanish-state-of-the-rubio",
"http://thecolbertreport.cc.com/videos/wrywsk/dave-grohl",
"http://thecolbertreport.cc.com/videos/rsui4q/sign-off---dry-mouth"
],
"guest": "Dave Grohl"
},
{
"date": "2013-02-14",
"videos": [
"http://thecolbertreport.cc.com/videos/8k6qf1/st--valentine-s-day",
"http://thecolbertreport.cc.com/videos/bg5se9/standard---poor-s-ratings-lawsuit",
"http://thecolbertreport.cc.com/videos/a7o9iy/standard---poor-s-ratings-lawsuit---david-leonhardt",
"http://thecolbertreport.cc.com/videos/gha2xx/nailed--em---richard-eggers",
"http://thecolbertreport.cc.com/videos/jipac1/gavin-newsom",
"http://thecolbertreport.cc.com/videos/tl6blx/sign-off----here-s-the-deal-"
],
"guest": "Gavin Newsom"
},
{
"date": "2013-02-19",
"videos": [
"http://thecolbertreport.cc.com/videos/mk66vx/russian-meteor-strike",
"http://thecolbertreport.cc.com/videos/18bt84/colbert-platinum---huayra-sports-car--phil-mickelson---belle-isle",
"http://thecolbertreport.cc.com/videos/nzi8fo/obama-s-secretive-golf-outing",
"http://thecolbertreport.cc.com/videos/qsppoj/emily-bazelon",
"http://thecolbertreport.cc.com/videos/rivg1z/sign-off---goodnight"
],
"guest": "Emily Bazelon"
},
{
"date": "2013-02-20",
"videos": [
"http://thecolbertreport.cc.com/videos/tq706t/u-k--horse-meat-scandal",
"http://thecolbertreport.cc.com/videos/76hws3/sport-report---international-soccer-corruption",
"http://thecolbertreport.cc.com/videos/t95tyj/sport-report---international-soccer-corruption---alexi-lalas",
"http://thecolbertreport.cc.com/videos/oy70q1/norway-s--national-firewood-night-",
"http://thecolbertreport.cc.com/videos/d68kfy/david-goldhill",
"http://thecolbertreport.cc.com/videos/4869v6/sign-off---goodnight"
],
"guest": "David Goldhill"
},
{
"date": "2013-02-21",
"videos": [
"http://thecolbertreport.cc.com/videos/5dzdoq/-friends-of-hamas--rumor",
"http://thecolbertreport.cc.com/videos/0x6brn/geo-group-stadium",
"http://thecolbertreport.cc.com/videos/yhhjej/corporate-twitter-hacks",
"http://thecolbertreport.cc.com/videos/ef8eii/lil-buck"
],
"guest": "Lil Buck"
},
{
"date": "2013-02-25",
"videos": [
"http://thecolbertreport.cc.com/videos/dysmy8/intro---2-25-13",
"http://thecolbertreport.cc.com/videos/n5lz93/the-word---silent-but-deadly",
"http://thecolbertreport.cc.com/videos/ub1skg/popewatch-2013---vatican-sex-parties",
"http://thecolbertreport.cc.com/videos/ovpx97/simon-garfield",
"http://thecolbertreport.cc.com/videos/7ucjsc/sign-off---goodnight"
],
"guest": "Simon Garfield"
},
{
"date": "2013-02-26",
"videos": [
"http://thecolbertreport.cc.com/videos/8vjzyf/intro---2-26-13",
"http://thecolbertreport.cc.com/videos/gy9em4/popewatch-indeschism-2013---one-pope-over-the-line",
"http://thecolbertreport.cc.com/videos/f5k4cb/battleground-texas---jeremy-bird",
"http://thecolbertreport.cc.com/videos/xdriyp/drone-ducking-tips",
"http://thecolbertreport.cc.com/videos/wr3lk3/michio-kaku",
"http://thecolbertreport.cc.com/videos/i7sahj/sign-off---goodnight"
],
"guest": "Dr. Michio Kaku"
},
{
"date": "2013-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/6637zm/intro---2-27-13",
"http://thecolbertreport.cc.com/videos/8okga0/halls-mentho-lyptus-cough-drops",
"http://thecolbertreport.cc.com/videos/9mtjmn/khalid-sheikh-mohammed-s-trial-at-gitmo",
"http://thecolbertreport.cc.com/videos/9mvj8u/khalid-sheikh-mohammed-s-trial-at-gitmo---neal-katyal",
"http://thecolbertreport.cc.com/videos/r7gapm/john-kerry-s-dumb-talk",
"http://thecolbertreport.cc.com/videos/cxjhmj/paola-antonelli",
"http://thecolbertreport.cc.com/videos/7trotu/sign-off---halls-mentho-lyptus"
],
"guest": "Paola Antonelli"
},
{
"date": "2013-02-28",
"videos": [
"http://thecolbertreport.cc.com/videos/hmyuom/intro---2-28-13",
"http://thecolbertreport.cc.com/videos/1epo24/colbert-report-consumer-alert---demonic-goodwill-items",
"http://thecolbertreport.cc.com/videos/d7le3o/pope-tbd---souvenir-sales",
"http://thecolbertreport.cc.com/videos/tnbuj0/budget-sequestration",
"http://thecolbertreport.cc.com/videos/66dbox/jon-favreau",
"http://thecolbertreport.cc.com/videos/o5hoan/sign-off---goodnight"
],
"guest": "Obama speechwriter Jon Favreau"
},
{
"date": "2013-03-04",
"videos": [
"http://thecolbertreport.cc.com/videos/ouzof3/sequestration---obama-s-sci-fi-flub",
"http://thecolbertreport.cc.com/videos/xlk2nw/the-enemy-within---dr--skylar-bayer",
"http://thecolbertreport.cc.com/videos/4v9opj/texas-gun-training-bill---free-shotgun-experiment",
"http://thecolbertreport.cc.com/videos/ala255/kirk-bloodsworth",
"http://thecolbertreport.cc.com/videos/7xfdsz/sign-off---goodnight"
],
"guest": "Kirk Bloodsworth"
},
{
"date": "2013-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/johtnl/intro---3-5-13",
"http://thecolbertreport.cc.com/videos/d8ua02/hugo-chavez---jon-stewart-announcements",
"http://thecolbertreport.cc.com/videos/yesa8j/obama-s-israel-trip",
"http://thecolbertreport.cc.com/videos/xeotb9/obama-s-israel-trip---michael-oren",
"http://thecolbertreport.cc.com/videos/r5gahs/dennis-tito-s-mars-flyby-mission",
"http://thecolbertreport.cc.com/videos/23396i/james-franco",
"http://thecolbertreport.cc.com/videos/ki0n4m/sign-off---goodnight"
],
"guest": "James Franco"
},
{
"date": "2013-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/5pvbru/-snowquester-",
"http://thecolbertreport.cc.com/videos/2ox5xp/voting-rights-act",
"http://thecolbertreport.cc.com/videos/5yipjs/voting-rights-act---julian-bond",
"http://thecolbertreport.cc.com/videos/3ddous/thought-for-food---bloomberg---the-nacho-bliss-point",
"http://thecolbertreport.cc.com/videos/25fidf/brendan-o-connell",
"http://thecolbertreport.cc.com/videos/76de2t/sign-off---tostitos-scoops"
],
"guest": "Brendan O'Connell"
},
{
"date": "2013-03-07",
"videos": [
"http://thecolbertreport.cc.com/videos/7nblia/rand-paul-s-filibuster",
"http://thecolbertreport.cc.com/videos/aq09bw/north-korea-s-armistice-breach----we-are-the-world--propaganda-video",
"http://thecolbertreport.cc.com/videos/rz6ppl/the-bachelor",
"http://thecolbertreport.cc.com/videos/uldxcb/john-sexton",
"http://thecolbertreport.cc.com/videos/mhruf7/sign-off---land-of-romance"
],
"guest": "John Sexton"
},
{
"date": "2013-03-25",
"videos": [
"http://thecolbertreport.cc.com/videos/6zcxhr/election-of-pope-francis",
"http://thecolbertreport.cc.com/videos/t23n7e/history-channel-s--the-bible-",
"http://thecolbertreport.cc.com/videos/7cya4y/colbert-super-pac---ham-rove-memorial-conference-room",
"http://thecolbertreport.cc.com/videos/bwz16t/junot-diaz",
"http://thecolbertreport.cc.com/videos/vwhyh8/sign-off----the-bible-"
],
"guest": "Junot Diaz"
},
{
"date": "2013-03-26",
"videos": [
"http://thecolbertreport.cc.com/videos/ftxoqq/gop-growth---opportunity-project",
"http://thecolbertreport.cc.com/videos/k5798h/the-word---narcicitizenship",
"http://thecolbertreport.cc.com/videos/rj8f1x/stephen-colbert-is-watching-your-kids---whale-bone-porn",
"http://thecolbertreport.cc.com/videos/udr4lu/eric-topol",
"http://thecolbertreport.cc.com/videos/755nas/sign-off---medical-smartphone"
],
"guest": "Dr. Eric Topol"
},
{
"date": "2013-03-27",
"videos": [
"http://thecolbertreport.cc.com/videos/lapsll/intro---3-27-13",
"http://thecolbertreport.cc.com/videos/8f2crl/bill-o-reilly-on-gay-marriage",
"http://thecolbertreport.cc.com/videos/jk0icd/facebook--like--button-science",
"http://thecolbertreport.cc.com/videos/gd7ki7/sharia-mops",
"http://thecolbertreport.cc.com/videos/0i05bg/carl-edgar-blake-ii",
"http://thecolbertreport.cc.com/videos/8g5b2m/sign-off---hamlet"
],
"guest": "Carl Edgar Blake II"
},
{
"date": "2013-03-28",
"videos": [
"http://thecolbertreport.cc.com/videos/mmwqg6/supreme-court-hearings-on-gay-marriage",
"http://thecolbertreport.cc.com/videos/o26xyc/supreme-court-hearings-on-gay-marriage---emily-bazelon-pt--1",
"http://thecolbertreport.cc.com/videos/qbupod/supreme-court-hearings-on-gay-marriage---emily-bazelon-pt--2",
"http://thecolbertreport.cc.com/videos/sliefv/robert-lustig",
"http://thecolbertreport.cc.com/videos/qlgxw8/sign-off---goodnight"
],
"guest": "Dr. Robert Lustig"
},
{
"date": "2013-04-01",
"videos": [
"http://thecolbertreport.cc.com/videos/j7yyx1/intro---4-1-13",
"http://thecolbertreport.cc.com/videos/mbhysf/easter-under-attack---pope-edition",
"http://thecolbertreport.cc.com/videos/egcbz2/health-care-lottery",
"http://thecolbertreport.cc.com/videos/g3wft7/utah-s-earth-day-celebration",
"http://thecolbertreport.cc.com/videos/rmu5w0/sigourney-weaver",
"http://thecolbertreport.cc.com/videos/lt4lab/sign-off---welcome-baby-nurick-"
],
"guest": "Sigourney Weaver"
},
{
"date": "2013-04-02",
"videos": [
"http://thecolbertreport.cc.com/videos/dgrhqs/gay-marriage-fraud",
"http://thecolbertreport.cc.com/videos/sq7yjh/we-are-at-war---north-korea",
"http://thecolbertreport.cc.com/videos/0pozxj/we-are-at-war---north-korea---victor-cha",
"http://thecolbertreport.cc.com/videos/w7owfy/florida-s-bong-bill",
"http://thecolbertreport.cc.com/videos/7qy183/jim-mcgreevey",
"http://thecolbertreport.cc.com/videos/1qietk/sign-off---goodnight"
],
"guest": "Jim McGreevey"
},
{
"date": "2013-04-03",
"videos": [
"http://thecolbertreport.cc.com/videos/3ci6sy/-morning-joe--vs--the-colbert-report",
"http://thecolbertreport.cc.com/videos/54w6pz/gun-control---barn-orgies",
"http://thecolbertreport.cc.com/videos/heku72/rnc-young-voters-survey",
"http://thecolbertreport.cc.com/videos/tnl1m7/a-c--grayling",
"http://thecolbertreport.cc.com/videos/kfs88u/sign-off---campaign-poster"
],
"guest": "A.C. Grayling"
},
{
"date": "2013-04-04",
"videos": [
"http://thecolbertreport.cc.com/videos/6sjovw/intro---4-4-13",
"http://thecolbertreport.cc.com/videos/2h8ym1/pegasus-pipeline-spill",
"http://thecolbertreport.cc.com/videos/0tmqs0/koko---jeremy-irons-on-gay-marriage",
"http://thecolbertreport.cc.com/videos/97bihb/obama-s-brain-initiative",
"http://thecolbertreport.cc.com/videos/wb31l0/francis-collins",
"http://thecolbertreport.cc.com/videos/jpb3iv/sign-off---eeg-cap"
],
"guest": "Dr. Francis Collins"
},
{
"date": "2013-04-08",
"videos": [
"http://thecolbertreport.cc.com/videos/2htlq3/colbert-galactic-initiative",
"http://thecolbertreport.cc.com/videos/z4m9xu/colbert-galactic-initiative---bill-clinton-pt--1",
"http://thecolbertreport.cc.com/videos/y3hr34/colbert-galactic-initiative---bill-clinton-pt--2",
"http://thecolbertreport.cc.com/videos/hmills/colbert-galactic-initiative---bill-clinton-pt--3",
"http://thecolbertreport.cc.com/videos/jmsckt/sign-off---colbert-galactic-initiative"
],
"guest": "Bill Clinton"
},
{
"date": "2013-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/dzx936/intro---4-9-13",
"http://thecolbertreport.cc.com/videos/9a1zbe/prez-billy-jeff-clinton",
"http://thecolbertreport.cc.com/videos/k04x7j/clinton-global-initiative-university-exchange-fair",
"http://thecolbertreport.cc.com/videos/yq6m6x/exxon-s-disaster-relief",
"http://thecolbertreport.cc.com/videos/qa420d/charlie-leduff",
"http://thecolbertreport.cc.com/videos/jti3ea/sign-off---potato-clock"
],
"guest": "Charlie LeDuff"
},
{
"date": "2013-04-10",
"videos": [
"http://thecolbertreport.cc.com/videos/r4g4o0/navy-laser-technology",
"http://thecolbertreport.cc.com/videos/b0yf3a/tip-wag---gun-edition---united-nations--senate-republicans---video-games",
"http://thecolbertreport.cc.com/videos/xr32ry/anthony-weiner-s-comeback",
"http://thecolbertreport.cc.com/videos/mvszff/shane-smith",
"http://thecolbertreport.cc.com/videos/fhj67z/sign-off---laser-tag"
],
"guest": "Shane Smith"
},
{
"date": "2013-04-11",
"videos": [
"http://thecolbertreport.cc.com/videos/ycrshs/nasa-lasso",
"http://thecolbertreport.cc.com/videos/2ixasd/america-s-pot-astrophe",
"http://thecolbertreport.cc.com/videos/t10bgi/america-s-pot-astrophe---nick-gillespie",
"http://thecolbertreport.cc.com/videos/82a7wi/times-square-mascots-ban",
"http://thecolbertreport.cc.com/videos/oiajpp/cass-sunstein",
"http://thecolbertreport.cc.com/videos/5r04eq/sign-off---goodnight"
],
"guest": "Cass Sunstein"
},
{
"date": "2013-04-16",
"videos": [
"http://thecolbertreport.cc.com/videos/ifpmy1/intro---4-16-13",
"http://thecolbertreport.cc.com/videos/s94ied/tip-wag---brood-ii-cicadas--sexcereal---gop-internet-memes",
"http://thecolbertreport.cc.com/videos/h77c6i/rollie-eggmaster",
"http://thecolbertreport.cc.com/videos/c5i1jr/caroline-kennedy",
"http://thecolbertreport.cc.com/videos/yygt35/sign-off---goodnight"
],
"guest": "Caroline Kennedy"
},
{
"date": "2013-04-17",
"videos": [
"http://thecolbertreport.cc.com/videos/yfwqpo/ricin-letters---boston-bombing-suspects",
"http://thecolbertreport.cc.com/videos/b1ekda/bitcoin-plunge",
"http://thecolbertreport.cc.com/videos/rxy9ze/bitcoin-plunge---adam-davidson",
"http://thecolbertreport.cc.com/videos/2sml1x/-accidental-racist--song",
"http://thecolbertreport.cc.com/videos/n7jblw/alan-cumming",
"http://thecolbertreport.cc.com/videos/4y7jmv/sign-off---goodnight"
],
"guest": "Alan Cumming"
},
{
"date": "2013-04-18",
"videos": [
"http://thecolbertreport.cc.com/videos/jr70gq/boston-marathon--bag-men-",
"http://thecolbertreport.cc.com/videos/de4kxw/the-bucket-maiden-voyage",
"http://thecolbertreport.cc.com/videos/x7fhfp/gun-control-block",
"http://thecolbertreport.cc.com/videos/tvksjy/richard-engel",
"http://thecolbertreport.cc.com/videos/17gkl6/sign-off---the-bucket"
],
"guest": "Richard Engel"
},
{
"date": "2013-04-22",
"videos": [
"http://thecolbertreport.cc.com/videos/nc9lav/intro---4-22-13",
"http://thecolbertreport.cc.com/videos/vlo1dt/boston-bombers",
"http://thecolbertreport.cc.com/videos/pd1fay/toronto-terror-plot",
"http://thecolbertreport.cc.com/videos/06tavh/tiny-triumphs---infrastructure---river-pollution",
"http://thecolbertreport.cc.com/videos/hkxcsa/george-w--bush-presidential-library",
"http://thecolbertreport.cc.com/videos/d8p3y1/michael-pollan",
"http://thecolbertreport.cc.com/videos/34u7cu/sign-off---goodnight"
],
"guest": "Michael Pollan"
},
{
"date": "2013-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/12jjaw/scoobygate",
"http://thecolbertreport.cc.com/videos/dcyvro/austerity-s-spreadsheet-error",
"http://thecolbertreport.cc.com/videos/kbgnf0/austerity-s-spreadsheet-error---thomas-herndon",
"http://thecolbertreport.cc.com/videos/54pqtc/eric-schmidt",
"http://thecolbertreport.cc.com/videos/uwzpai/sign-off---goodnight"
],
"guest": "Eric Schmidt"
},
{
"date": "2013-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/kwa0vp/ap-twitter-hack",
"http://thecolbertreport.cc.com/videos/tk4his/bill-clinton-s-twitter-lessons",
"http://thecolbertreport.cc.com/videos/r1hl69/tiny-triumphs---nasa-s-giant-penis-doodle",
"http://thecolbertreport.cc.com/videos/zi0nnq/danica-patrick",
"http://thecolbertreport.cc.com/videos/zwp3mi/sign-off---goodnight"
],
"guest": "Danica Patrick"
},
{
"date": "2013-04-25",
"videos": [
"http://thecolbertreport.cc.com/videos/md1l1j/exclusive---better-know-a-district---pennsylvania-s-17th---matt-cartwright",
"http://thecolbertreport.cc.com/videos/1waayt/colbert-s-book-club",
"http://thecolbertreport.cc.com/videos/zfq57f/better-know-a-district---pennsylvania-s-17th---matt-cartwright",
"http://thecolbertreport.cc.com/videos/ypl8dh/miranda-rights-for-boston-bomber",
"http://thecolbertreport.cc.com/videos/9j0img/gene-robinson",
"http://thecolbertreport.cc.com/videos/vqrjkz/sign-off---welcome-baby-matheson-"
],
"guest": "Bishop Gene Robinson"
},
{
"date": "2013-04-29",
"videos": [
"http://thecolbertreport.cc.com/videos/lceacn/intro---4-29-13",
"http://thecolbertreport.cc.com/videos/s55dpi/stephen-s-worst-sports-nightmare",
"http://thecolbertreport.cc.com/videos/q8gaki/the-final-days-of-straight-america",
"http://thecolbertreport.cc.com/videos/su6rj1/the-word---we-shall-undermine",
"http://thecolbertreport.cc.com/videos/u2ew19/yelp-prison-reviews",
"http://thecolbertreport.cc.com/videos/8ewxg4/iggy-pop"
],
"guest": "Iggy & the Stooges"
},
{
"date": "2013-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/9ab72e/intro---4-30-13",
"http://thecolbertreport.cc.com/videos/6brvhc/forced-tank-spending",
"http://thecolbertreport.cc.com/videos/yxooec/the-word---medical-leave",
"http://thecolbertreport.cc.com/videos/4iphqy/thought-for-food---spreadable-sharia---buddy-cup",
"http://thecolbertreport.cc.com/videos/z5q514/evan-spiegel---bobby-murphy",
"http://thecolbertreport.cc.com/videos/i4mbhv/sign-off---snapchat"
],
"guest": "Evan Spiegel & Bobby Murphy"
},
{
"date": "2013-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/82vhzw/over-the-counter-plan-b",
"http://thecolbertreport.cc.com/videos/7a77hc/background-check-backlash",
"http://thecolbertreport.cc.com/videos/rf6pzs/the-word---n-r-a--vana",
"http://thecolbertreport.cc.com/videos/cm8gvz/macklemore---ryan-lewis",
"http://thecolbertreport.cc.com/videos/sq79ll/sign-off----the-heist-"
],
"guest": "Macklemore & Ryan Lewis"
},
{
"date": "2013-05-02",
"videos": [
"http://thecolbertreport.cc.com/videos/tqo262/intro---5-2-13",
"http://thecolbertreport.cc.com/videos/7emy7s/boston-bomber-accomplices",
"http://thecolbertreport.cc.com/videos/2k1660/gitmo-hunger-strike",
"http://thecolbertreport.cc.com/videos/is0h3a/gitmo-hunger-strike---charles-swift",
"http://thecolbertreport.cc.com/videos/nhiiwp/movies-that-are-destroying-america---summer-movie-edition----man-of-steel-----iron-man-3-",
"http://thecolbertreport.cc.com/videos/mqwnf6/ben-kingsley",
"http://thecolbertreport.cc.com/videos/t46my4/sign-off---montclair-film-festival"
],
"guest": "Ben Kingsley"
},
{
"date": "2013-05-06",
"videos": [
"http://thecolbertreport.cc.com/videos/1mqcyb/intro---5-6-13",
"http://thecolbertreport.cc.com/videos/tnugl6/colbert-s-book-club----the-great-gatsby-",
"http://thecolbertreport.cc.com/videos/rxk0vp/stephen-colbert-s-bats--t-serious---bullet-conspiracy-theory",
"http://thecolbertreport.cc.com/videos/ltsnqq/tip-wag---catholic-diocese-of-brooklyn---stoner-dogs",
"http://thecolbertreport.cc.com/videos/wm2xsq/robert-caro",
"http://thecolbertreport.cc.com/videos/479h8q/sign-off---south-carolina-special-election"
],
"guest": "Robert Caro"
},
{
"date": "2013-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/bpnvtc/breaking-news---benghazi-whistleblowers",
"http://thecolbertreport.cc.com/videos/wwbl80/better-know-a-district---maryland-s-4th---donna-edwards",
"http://thecolbertreport.cc.com/videos/p3cofn/promposals",
"http://thecolbertreport.cc.com/videos/eyzxx1/douglas-rushkoff",
"http://thecolbertreport.cc.com/videos/ampziq/sign-off---goodnight"
],
"guest": "Douglas Rushkoff"
},
{
"date": "2013-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/mpvlti/intro---5-8-13",
"http://thecolbertreport.cc.com/videos/fyx23e/south-carolina-election-results",
"http://thecolbertreport.cc.com/videos/m0huaq/spiteful-partisanship",
"http://thecolbertreport.cc.com/videos/gbxmpo/going-diaperless",
"http://thecolbertreport.cc.com/videos/xg0uqu/richard-besser",
"http://thecolbertreport.cc.com/videos/in85s8/sign-off---helium-voice"
],
"guest": "Dr. Richard Besser"
},
{
"date": "2013-05-09",
"videos": [
"http://thecolbertreport.cc.com/videos/t96yfm/colbert-s-book-club----the-great-gatsby-",
"http://thecolbertreport.cc.com/videos/1i7t2j/colbert-s-book-club---learning--the-great-gatsby-",
"http://thecolbertreport.cc.com/videos/4apw9e/colbert-s-book-club---jennifer-egan----the-great-gatsby-",
"http://thecolbertreport.cc.com/videos/tetoi9/baz-luhrmann",
"http://thecolbertreport.cc.com/videos/uuyuly/sign-off----the-great-gatsby-"
],
"guest": "Jennifer Egan, Baz Luhrmann"
},
{
"date": "2013-05-13",
"videos": [
"http://thecolbertreport.cc.com/videos/hdvhlq/benghazi-attacks-talking-points",
"http://thecolbertreport.cc.com/videos/gxwgja/colbert-super-pac-shh----irs-special-scrutiny",
"http://thecolbertreport.cc.com/videos/jgqf2m/threatdown---planet-gay--world-wide-wood---junkie-bears",
"http://thecolbertreport.cc.com/videos/l06a4l/jessica-buchanan---erik-landemalm",
"http://thecolbertreport.cc.com/videos/ny9pcg/sign-off---goodnight"
],
"guest": "Jessica Buchanan & Erik Landemalm"
},
{
"date": "2013-05-14",
"videos": [
"http://thecolbertreport.cc.com/videos/g6ij84/intro---5-14-13",
"http://thecolbertreport.cc.com/videos/1nghxb/obamacare-repeal-vote",
"http://thecolbertreport.cc.com/videos/0jjvya/heritage-foundation-s-immigration-study",
"http://thecolbertreport.cc.com/videos/h5zenk/who-s-not-honoring-me-now----maxim",
"http://thecolbertreport.cc.com/videos/tq7jny/dan-brown",
"http://thecolbertreport.cc.com/videos/ftry54/sign-off---maxim-s-hot-100"
],
"guest": "Dan Brown"
},
{
"date": "2013-05-15",
"videos": [
"http://thecolbertreport.cc.com/videos/c91oeg/bug-protein",
"http://thecolbertreport.cc.com/videos/qxjgw6/better-know-a-district---wisconsin-s-4th---gwen-moore-pt--1",
"http://thecolbertreport.cc.com/videos/ft1gyx/better-know-a-district---wisconsin-s-4th---gwen-moore-pt--2",
"http://thecolbertreport.cc.com/videos/xjltw5/cyndi-lauper",
"http://thecolbertreport.cc.com/videos/f06og4/sign-off---kinky-boots"
],
"guest": "Cyndi Lauper"
},
{
"date": "2013-05-16",
"videos": [
"http://thecolbertreport.cc.com/videos/ru2qad/intro---5-16-13",
"http://thecolbertreport.cc.com/videos/vshddv/asparagusgate",
"http://thecolbertreport.cc.com/videos/x9725b/tip-wag---wind-turbines---china",
"http://thecolbertreport.cc.com/videos/6685w4/3d-printed-guns",
"http://thecolbertreport.cc.com/videos/7xqphc/daniel-lieberman",
"http://thecolbertreport.cc.com/videos/yktive/sign-off---barefoot-shoes"
],
"guest": "Dr. Daniel Lieberman"
},
{
"date": "2013-05-20",
"videos": [
"http://thecolbertreport.cc.com/videos/iqqmsb/mazda-scandal-booth---benghazi",
"http://thecolbertreport.cc.com/videos/xwopvb/mazda-scandal-booth---the-irs",
"http://thecolbertreport.cc.com/videos/5qyy0w/mazda-scandal-booth---the-irs---trevor-potter",
"http://thecolbertreport.cc.com/videos/irj43w/david-sassoon",
"http://thecolbertreport.cc.com/videos/m9mkd8/sign-off---mazda-scandal-booth"
],
"guest": "David Sassoon"
},
{
"date": "2013-05-21",
"videos": [
"http://thecolbertreport.cc.com/videos/wp98kg/intro---5-21-13",
"http://thecolbertreport.cc.com/videos/7fm2v2/irish-potato-famine-pathogen",
"http://thecolbertreport.cc.com/videos/pbfcaq/cheating-death---sun-exposure---marijuana",
"http://thecolbertreport.cc.com/videos/3jp6f3/census-bureau-harassment",
"http://thecolbertreport.cc.com/videos/cqajs7/noah-feldman",
"http://thecolbertreport.cc.com/videos/2jhy5w/sign-off---goodnight"
],
"guest": "Noah Feldman"
},
{
"date": "2013-05-22",
"videos": [
"http://thecolbertreport.cc.com/videos/c02847/intro---5-22-13",
"http://thecolbertreport.cc.com/videos/24adff/irs-tea-party-scandal",
"http://thecolbertreport.cc.com/videos/icnp2y/tip-wag---senators-mitch-and-chong---resourceful-rich-folk",
"http://thecolbertreport.cc.com/videos/60entl/-citizen-koch-",
"http://thecolbertreport.cc.com/videos/15h43y/matt-berninger"
],
"guest": "The National"
},
{
"date": "2013-05-23",
"videos": [
"http://thecolbertreport.cc.com/videos/2j741e/aumf-repeal",
"http://thecolbertreport.cc.com/videos/khhujw/aumf-repeal---andrew-bacevich",
"http://thecolbertreport.cc.com/videos/0bv6m0/redemption-for-all",
"http://thecolbertreport.cc.com/videos/ur1l6x/c-j--chivers",
"http://thecolbertreport.cc.com/videos/ahpe36/sign-off---goodnight"
],
"guest": "C.J. Chivers"
},
{
"date": "2013-06-03",
"videos": [
"http://thecolbertreport.cc.com/videos/ex0o10/stephen-s-week-off",
"http://thecolbertreport.cc.com/videos/ervy41/better-know-a-district---wisconsin-s-2nd---mark-pocan",
"http://thecolbertreport.cc.com/videos/s86l5y/trackingpoint-rifle",
"http://thecolbertreport.cc.com/videos/4fwbkt/john-dingell",
"http://thecolbertreport.cc.com/videos/yrhc20/sign-off---goodnight"
],
"guest": "Rep. John Dingell"
},
{
"date": "2013-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/fivedj/michele-bachmann-s-last-term",
"http://thecolbertreport.cc.com/videos/x7wc5a/tip-wag---google-glass---the-lone-ranger----3d-printed-food",
"http://thecolbertreport.cc.com/videos/u1fvmr/irs-political-targeting---line-dancing-scandals",
"http://thecolbertreport.cc.com/videos/tz8gve/alex-gibney",
"http://thecolbertreport.cc.com/videos/fbuavt/sign-off---goodnight"
],
"guest": "Alex Gibney"
},
{
"date": "2013-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/2ntvt9/intro---6-5-13",
"http://thecolbertreport.cc.com/videos/eogja8/commando-of-steel",
"http://thecolbertreport.cc.com/videos/fva65v/monsanto-s-modified-wheat",
"http://thecolbertreport.cc.com/videos/ibdfsk/monsanto-s-modified-wheat---laurie-garrett",
"http://thecolbertreport.cc.com/videos/bqahez/photojournalists-vs--iphones",
"http://thecolbertreport.cc.com/videos/wqd06c/jonathan-alter",
"http://thecolbertreport.cc.com/videos/el0t4o/sign-off---amber-waves-of-frankengrain"
],
"guest": "Jonathan Alter"
},
{
"date": "2013-06-06",
"videos": [
"http://thecolbertreport.cc.com/videos/onw7lq/nsa-phone-surveillance",
"http://thecolbertreport.cc.com/videos/hbmw2f/colbert-classic---spy-training-with-peter-earnest",
"http://thecolbertreport.cc.com/videos/zhz7uc/john-mellencamp--stephen-king---t-bone-burnett---pt--1",
"http://thecolbertreport.cc.com/videos/lcf7d3/john-mellencamp--stephen-king---t-bone-burnett---pt--2",
"http://thecolbertreport.cc.com/videos/46x6yt/sign-off---nose-tap"
],
"guest": "Stephen King, John Mellencamp, T Bone Burnett"
},
{
"date": "2013-06-10",
"videos": [
"http://thecolbertreport.cc.com/videos/oc2w3x/edward-snowden-s-nsa-leaks",
"http://thecolbertreport.cc.com/videos/bkbpaj/the-imploding-muslim-country-of-the-week---turkey",
"http://thecolbertreport.cc.com/videos/rnftw3/the-imploding-muslim-country-of-the-week---turkey---omer-taspinar",
"http://thecolbertreport.cc.com/videos/147u1d/cold-war-update---nuclear-launch-careers",
"http://thecolbertreport.cc.com/videos/vii2l9/dan-savage",
"http://thecolbertreport.cc.com/videos/kmqz9h/sign-off---the-imploding-muslim-country-of-the-week-booth"
],
"guest": "Dan Savage"
},
{
"date": "2013-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/ctjh9s/intro---6-11-13",
"http://thecolbertreport.cc.com/videos/1mm086/prism-surveillance-program",
"http://thecolbertreport.cc.com/videos/jejy0d/prism-surveillance-program---jeffrey-rosen",
"http://thecolbertreport.cc.com/videos/sa86i9/chewbacca-s-tsa-encounter",
"http://thecolbertreport.cc.com/videos/s2d0lp/daniel-bergner",
"http://thecolbertreport.cc.com/videos/x7nfzj/sign-off---goodnight"
],
"guest": "Daniel Bergner"
},
{
"date": "2013-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/jdqve3/stephen-colbert-s-tribute-to-having-paul-mccartney-on-his-show",
"http://thecolbertreport.cc.com/videos/eweibb/nsa-scandal-developments",
"http://thecolbertreport.cc.com/videos/9i45f0/paul-mccartney",
"http://thecolbertreport.cc.com/videos/2ildb8/nyc-bike-share"
],
"guest": "Paul McCartney"
},
{
"date": "2013-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/yxgnju/remembering-lorna-colbert",
"http://thecolbertreport.cc.com/videos/jm7bya/cap-n-crunch-scandal",
"http://thecolbertreport.cc.com/videos/rtfkei/tip-wag---wall-street---north-carolina",
"http://thecolbertreport.cc.com/videos/vztqfg/the-postal-service",
"http://thecolbertreport.cc.com/videos/7vr4pz/sign-off---stage-fall"
],
"guest": "The Postal Service"
},
{
"date": "2013-06-20",
"videos": [
"http://thecolbertreport.cc.com/videos/616g0e/intro---6-20-13",
"http://thecolbertreport.cc.com/videos/v8ee5f/iran-s-presidential-election",
"http://thecolbertreport.cc.com/videos/k3dodo/steve-king-on-chicken-cages",
"http://thecolbertreport.cc.com/videos/7udg5z/nestle-s-natural-resource",
"http://thecolbertreport.cc.com/videos/0mw5zk/joss-whedon",
"http://thecolbertreport.cc.com/videos/ooshhr/sign-off---paper-towel-tube-cage"
],
"guest": "Joss Whedon"
},
{
"date": "2013-06-24",
"videos": [
"http://thecolbertreport.cc.com/videos/6gyv8z/the-irs---darrell-issa-s-gut",
"http://thecolbertreport.cc.com/videos/oztyjs/the-word---truthinews",
"http://thecolbertreport.cc.com/videos/93t9s1/tiny-triumphs---laser-klan",
"http://thecolbertreport.cc.com/videos/dzzcx7/andrew-solomon",
"http://thecolbertreport.cc.com/videos/h7v6sr/sign-off---goodnight"
],
"guest": "Andrew Solomon"
},
{
"date": "2013-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/g5p8y4/intro---6-25-13",
"http://thecolbertreport.cc.com/videos/348hon/scotus-on-the-voting-rights-act",
"http://thecolbertreport.cc.com/videos/ysuxww/brazil-s-political-protests",
"http://thecolbertreport.cc.com/videos/3gv8et/brazil-s-political-protests---larry-rohter",
"http://thecolbertreport.cc.com/videos/mnxaxk/george-zimmerman-s-murder-trial",
"http://thecolbertreport.cc.com/videos/ip1pn0/peniel-joseph",
"http://thecolbertreport.cc.com/videos/b4zgvh/sign-off---goodnight"
],
"guest": "Peniel Joseph"
},
{
"date": "2013-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/m2xuu4/intro---6-26-13",
"http://thecolbertreport.cc.com/videos/nzd784/the-supreme-court-rules-on-doma",
"http://thecolbertreport.cc.com/videos/um981i/the-end-of-the-voting-rights-act",
"http://thecolbertreport.cc.com/videos/btpztg/the-voting-rights-act---gay-marriage---emily-bazelon",
"http://thecolbertreport.cc.com/videos/3ca2a0/bill-moyers",
"http://thecolbertreport.cc.com/videos/09w1k9/sign-off---goodnight"
],
"guest": "Bill Moyers"
},
{
"date": "2013-06-27",
"videos": [
"http://thecolbertreport.cc.com/videos/9lyyd3/4th-of-july-under-attack",
"http://thecolbertreport.cc.com/videos/3wbx1d/stephen-colbert-s-big-gay-roundup",
"http://thecolbertreport.cc.com/videos/ncxmfs/-gang-of-eight--immigration-reform-bill",
"http://thecolbertreport.cc.com/videos/0gj3ie/chuck-schumer",
"http://thecolbertreport.cc.com/videos/6kec7y/sign-off---goodnight"
],
"guest": "Sen. Chuck Schumer"
},
{
"date": "2013-07-15",
"videos": [
"http://thecolbertreport.cc.com/videos/6jl3zv/stephen-s-vacation",
"http://thecolbertreport.cc.com/videos/0gzuno/george-zimmerman-verdict",
"http://thecolbertreport.cc.com/videos/9nhthn/people-who-are-destroying-america---lynn-harrell",
"http://thecolbertreport.cc.com/videos/6dlnrd/ktvu-tv-on-asiana-airlines-crash",
"http://thecolbertreport.cc.com/videos/vwtsg0/jeremy-scahill",
"http://thecolbertreport.cc.com/videos/88fai0/sign-off---goodnight"
],
"guest": "Jeremy Scahill"
},
{
"date": "2013-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/2ymeh3/intro---7-16-13",
"http://thecolbertreport.cc.com/videos/rr5gb5/royal-baby-bump",
"http://thecolbertreport.cc.com/videos/dd82ys/tip-wag---non-rioting-black-people---fox-news",
"http://thecolbertreport.cc.com/videos/e8110o/npr-on-multitasking",
"http://thecolbertreport.cc.com/videos/e5obyh/david-karp",
"http://thecolbertreport.cc.com/videos/0mvlz8/sign-off---macbox"
],
"guest": "David Karp"
},
{
"date": "2013-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/84x6wp/rolling-stone-s-boston-bomber-cover",
"http://thecolbertreport.cc.com/videos/eiwwmp/dysfunctional-house-republicans---immigration-reform",
"http://thecolbertreport.cc.com/videos/dii80x/food-stamp-funding",
"http://thecolbertreport.cc.com/videos/279goq/jerry-seinfeld-pt--1",
"http://thecolbertreport.cc.com/videos/pw17w7/jerry-seinfeld-pt--2",
"http://thecolbertreport.cc.com/videos/qfpfy4/sign-off---paper-fan"
],
"guest": "Jerry Seinfeld"
},
{
"date": "2013-07-18",
"videos": [
"http://thecolbertreport.cc.com/videos/r4piw8/edward-snowden-s-asylum-option",
"http://thecolbertreport.cc.com/videos/2m27vd/political-sex-scandals---new-york-city-elections",
"http://thecolbertreport.cc.com/videos/dpebt7/political-sex-scandals---new-york-city-elections---eliot-spitzer",
"http://thecolbertreport.cc.com/videos/m8rn8j/breaking-news-on-college-sex",
"http://thecolbertreport.cc.com/videos/y56hes/jeff-bridges",
"http://thecolbertreport.cc.com/videos/fiop8t/sign-off----operation-javelin-"
],
"guest": "Jeff Bridges"
},
{
"date": "2013-07-22",
"videos": [
"http://thecolbertreport.cc.com/videos/20zlbx/britain-s-royal-baby",
"http://thecolbertreport.cc.com/videos/d0bn33/geraldo-rivera-s-tribute-to-helen-thomas",
"http://thecolbertreport.cc.com/videos/8fg72p/minimum-wage---mcdonald-s-spending-journal",
"http://thecolbertreport.cc.com/videos/0p9n45/neil-degrasse-tyson-s-alien-theory",
"http://thecolbertreport.cc.com/videos/3azmuc/kjerstin-gruys",
"http://thecolbertreport.cc.com/videos/mritg0/sign-off---linguini-worm"
],
"guest": "Kjerstin Gruys"
},
{
"date": "2013-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/y6fmk6/royal-afterbirth--013-",
"http://thecolbertreport.cc.com/videos/adczam/george-zimmerman---racial-tensions",
"http://thecolbertreport.cc.com/videos/3vijkd/the-word---color-bind",
"http://thecolbertreport.cc.com/videos/vbghld/domino-s-pizza-drone",
"http://thecolbertreport.cc.com/videos/5tqazj/kenneth-goldsmith",
"http://thecolbertreport.cc.com/videos/fvgc0u/sign-off---goodnight"
],
"guest": "Kenneth Goldsmith"
},
{
"date": "2013-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/508jwm/royal-baby-fever",
"http://thecolbertreport.cc.com/videos/eodctw/anthony-weiner-s-penis",
"http://thecolbertreport.cc.com/videos/4sgopv/carlos-danger--secret-mayor",
"http://thecolbertreport.cc.com/videos/bf89i9/kanye-west-s-clothing-line",
"http://thecolbertreport.cc.com/videos/zwqhae/anant-agarwal",
"http://thecolbertreport.cc.com/videos/gbago4/sign-off---goodnight"
],
"guest": "Anant Agarwal"
},
{
"date": "2013-07-25",
"videos": [
"http://thecolbertreport.cc.com/videos/l1dtzt/london-s-fake-town-crier",
"http://thecolbertreport.cc.com/videos/lyjdmu/detroit-s-bankruptcy",
"http://thecolbertreport.cc.com/videos/h9c7gh/detroit-s-bankruptcy---stephen-henderson",
"http://thecolbertreport.cc.com/videos/8chokd/steve-king-s-immigrant-analogy",
"http://thecolbertreport.cc.com/videos/263vwc/olympia-snowe",
"http://thecolbertreport.cc.com/videos/kx84kd/sign-off---hand-bell"
],
"guest": "Olympia Snowe"
},
{
"date": "2013-07-29",
"videos": [
"http://thecolbertreport.cc.com/videos/uw17hh/intro---7-29-13",
"http://thecolbertreport.cc.com/videos/n0w3zw/obamacare-cards",
"http://thecolbertreport.cc.com/videos/pna3x8/tip-wag---steve-stockman--david-cameron---north-carolina-legislature",
"http://thecolbertreport.cc.com/videos/2i98l3/the-lumineers",
"http://thecolbertreport.cc.com/videos/1i7dzf/sign-off---tambourine"
],
"guest": "The Lumineers"
},
{
"date": "2013-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/trrcbd/intro---7-30-13",
"http://thecolbertreport.cc.com/videos/mulhwo/smokin--pole---the-quest-for-arctic-riches--north-pole-lake",
"http://thecolbertreport.cc.com/videos/gr77sg/senator-gridlock",
"http://thecolbertreport.cc.com/videos/hrha3p/the-word---secrets---laws",
"http://thecolbertreport.cc.com/videos/jah6al/ted-cruz-s-humble-portrait",
"http://thecolbertreport.cc.com/videos/bhod50/atul-gawande",
"http://thecolbertreport.cc.com/videos/c1f9z7/sign-off---sleigh-bells"
],
"guest": "Atul Gawande"
},
{
"date": "2013-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/4dtx20/intro---7-31-13",
"http://thecolbertreport.cc.com/videos/6p4joy/bradley-manning-verdict",
"http://thecolbertreport.cc.com/videos/hcbpix/lunch-or-campaign-2016-",
"http://thecolbertreport.cc.com/videos/21zxm1/chris-christie-vs--rand-paul",
"http://thecolbertreport.cc.com/videos/zyu4c8/stephen-colbert-s-super-coin-toss",
"http://thecolbertreport.cc.com/videos/ngxjwr/emily-matchar",
"http://thecolbertreport.cc.com/videos/f1q01l/sign-off---game-over"
],
"guest": "Emily Matchar"
},
{
"date": "2013-08-01",
"videos": [
"http://thecolbertreport.cc.com/videos/s9hzk7/intro---8-1-13",
"http://thecolbertreport.cc.com/videos/09hbf0/edward-snowden-s-asylum",
"http://thecolbertreport.cc.com/videos/o0rsdt/oppressed-white-male-alert---bob-filner",
"http://thecolbertreport.cc.com/videos/y8ilbl/grab-ask-5800",
"http://thecolbertreport.cc.com/videos/opj4x1/threatdown---global-erotic-extremism--mini-muslims---stripper-bears",
"http://thecolbertreport.cc.com/videos/gyog46/bryan-cranston",
"http://thecolbertreport.cc.com/videos/qv7up3/sign-off---goodnight"
],
"guest": "Bryan Cranston"
},
{
"date": "2013-08-05",
"videos": [
"http://thecolbertreport.cc.com/videos/n525ux/global-terror-warning",
"http://thecolbertreport.cc.com/videos/1y9s5s/sport-report---a-rod-s-drug-scandal---combat-juggling",
"http://thecolbertreport.cc.com/videos/91y2gj/hugh-laurie",
"http://thecolbertreport.cc.com/videos/g0yu17/broadcast-networks-want-more-indecency",
"http://thecolbertreport.cc.com/videos/n9o8qy/sign-off---glossary-of-terms"
],
"guest": "Hugh Laurie"
},
{
"date": "2013-08-06",
"videos": [
"http://thecolbertreport.cc.com/videos/4ybtps/stephest-colbchella--013---the-song-of-the-summer-of-the-century",
"http://thecolbertreport.cc.com/videos/s9j4ux/stephest-colbchella--013---special-guest-stephen-colbert-"
],
"guest": "Robin Thicke"
},
{
"date": "2013-08-07",
"videos": [
"http://thecolbertreport.cc.com/videos/0t0r8t/stephest-colbchella--013---disco-decepticons",
"http://thecolbertreport.cc.com/videos/je51p5/rich-white-guys-agreeing-with-each-other-alert---neil-cavuto",
"http://thecolbertreport.cc.com/videos/m9o287/fast-food-workers-strike---mary-kay-henry",
"http://thecolbertreport.cc.com/videos/b0jyca/sec-vs--fabulous-fab",
"http://thecolbertreport.cc.com/videos/rrfnhj/ashton-kutcher",
"http://thecolbertreport.cc.com/videos/iqw6df/sign-off---goodnight"
],
"guest": "Ashton Kutcher"
},
{
"date": "2013-08-08",
"videos": [
"http://thecolbertreport.cc.com/videos/ehgkke/ganjay-supta",
"http://thecolbertreport.cc.com/videos/x55kjy/hollywood-heroes",
"http://thecolbertreport.cc.com/videos/lual8r/hollywood-heroes---matt-damon",
"http://thecolbertreport.cc.com/videos/qqmmcz/the-ronald-wilson-reagan-economic-breathing-zone",
"http://thecolbertreport.cc.com/videos/6duz1s/colum-mccann",
"http://thecolbertreport.cc.com/videos/fama3f/sign-off----fifty-shades-of-grey-"
],
"guest": "Colum McCann"
},
{
"date": "2013-08-12",
"videos": [
"http://thecolbertreport.cc.com/videos/m7rv7i/badonkadonk-journalism",
"http://thecolbertreport.cc.com/videos/qokabz/better-know-a-district---new-jersey-s-12th",
"http://thecolbertreport.cc.com/videos/vni3w0/better-know-a-district---new-jersey-s-12th---rush-holt",
"http://thecolbertreport.cc.com/videos/swss3n/innocent-tourist-mistake",
"http://thecolbertreport.cc.com/videos/lixrq0/sheldon-whitehouse",
"http://thecolbertreport.cc.com/videos/ck9vu0/sign-off---goodnight"
],
"guest": "Sen. Sheldon Whitehouse"
},
{
"date": "2013-08-13",
"videos": [
"http://thecolbertreport.cc.com/videos/jtshn3/stop-and-frisk---mandatory-minimums",
"http://thecolbertreport.cc.com/videos/o5aiwi/tsa-expansion-program",
"http://thecolbertreport.cc.com/videos/miwb3z/tsa-expansion-program---steven-pinker",
"http://thecolbertreport.cc.com/videos/pd148a/john-lewis-pt--1",
"http://thecolbertreport.cc.com/videos/ocqoae/john-lewis-pt--2",
"http://thecolbertreport.cc.com/videos/z6ytj0/sign-off----the-better-angels-of-our-nature-"
],
"guest": "Rep. John Lewis"
},
{
"date": "2013-08-14",
"videos": [
"http://thecolbertreport.cc.com/videos/als8jg/intro---8-14-13",
"http://thecolbertreport.cc.com/videos/wjgfbx/sochi-2014-winter-olympics",
"http://thecolbertreport.cc.com/videos/y58ew9/people-who-are-destroying-america---johnny-cummings",
"http://thecolbertreport.cc.com/videos/oafmw7/big-mother-government",
"http://thecolbertreport.cc.com/videos/wc12me/kevin-spacey",
"http://thecolbertreport.cc.com/videos/o1qztj/sign-off---goodnight"
],
"guest": "Kevin Spacey"
},
{
"date": "2013-08-15",
"videos": [
"http://thecolbertreport.cc.com/videos/fwx35y/obama-rodeo-clown",
"http://thecolbertreport.cc.com/videos/0bdl0z/golden-age-of-flammability",
"http://thecolbertreport.cc.com/videos/r9ju4t/the-word---gag-gift",
"http://thecolbertreport.cc.com/videos/jngkv0/nsa-press-conference-on-domestic-spying",
"http://thecolbertreport.cc.com/videos/8ax5jq/richard-brodhead",
"http://thecolbertreport.cc.com/videos/42qo92/sign-off---second-installment-of-colbert-s-book-club"
],
"guest": "Richard Brodhead"
},
{
"date": "2013-09-03",
"videos": [
"http://thecolbertreport.cc.com/videos/pkboc3/exclusive---better-know-a-district---michigan-s-5th---dan-kildee",
"http://thecolbertreport.cc.com/videos/pnf1sx/intro---9-3-13",
"http://thecolbertreport.cc.com/videos/tx5zzr/stephen-s-science-project---chemical-weapons-in-syria",
"http://thecolbertreport.cc.com/videos/dhyi3l/better-know-a-district---michigan-s-5th---dan-kildee",
"http://thecolbertreport.cc.com/videos/pwzlgj/timothy-dolan-pt--1",
"http://thecolbertreport.cc.com/videos/m4p07o/timothy-dolan-pt--2",
"http://thecolbertreport.cc.com/videos/xws5t1/sign-off---welcome-baby-rosta-"
],
"guest": "Timothy Cardinal Dolan"
},
{
"date": "2013-09-04",
"videos": [
"http://thecolbertreport.cc.com/videos/4obytf/intro---9-4-13",
"http://thecolbertreport.cc.com/videos/020ri3/cris-ish-in-syri-eh",
"http://thecolbertreport.cc.com/videos/jtjmpo/cris-ish-in-syri-eh---steve-coll",
"http://thecolbertreport.cc.com/videos/hrfvxe/perfect-polly",
"http://thecolbertreport.cc.com/videos/q9zsg7/gary-england",
"http://thecolbertreport.cc.com/videos/jnebqk/sign-off---goodnight"
],
"guest": "Gary England"
},
{
"date": "2013-09-05",
"videos": [
"http://thecolbertreport.cc.com/videos/fzzhny/intro---9-5-13",
"http://thecolbertreport.cc.com/videos/cgxdol/smile-file---ariel-castro---the-eric-bolling-sunshine-express",
"http://thecolbertreport.cc.com/videos/cn86ce/kitten-subway-crisis---the-new-york-city-mayoral-race",
"http://thecolbertreport.cc.com/videos/l0disu/colbert-s-book-club---the-couch-bunker",
"http://thecolbertreport.cc.com/videos/ub6jy0/john-prine"
],
"guest": "John Prine"
},
{
"date": "2013-09-09",
"videos": [
"http://thecolbertreport.cc.com/videos/m0qnfl/egypt-s-stork-bust",
"http://thecolbertreport.cc.com/videos/4zp755/syrian-conflict-action-plan",
"http://thecolbertreport.cc.com/videos/jvhzt0/ronald-reagan-on-the-syrian-conflict",
"http://thecolbertreport.cc.com/videos/a4utu0/tip-wag---iowa--bigger-pants---recent-articles",
"http://thecolbertreport.cc.com/videos/f9cuxl/billie-jean-king",
"http://thecolbertreport.cc.com/videos/2dw2cm/sign-off---spider-reagan"
],
"guest": "Billie Jean King"
},
{
"date": "2013-09-10",
"videos": [
"http://thecolbertreport.cc.com/videos/o8sjcq/colbert-s-book-club---j-d--salinger",
"http://thecolbertreport.cc.com/videos/49qji6/colbert-s-book-club---better-know-a-salinger",
"http://thecolbertreport.cc.com/videos/ueo7a2/colbert-s-book-club---tobias-wolff----the-catcher-in-the-rye-",
"http://thecolbertreport.cc.com/videos/f2a6ao/colbert-s-book-club---shane-salerno-on-j-d--salinger",
"http://thecolbertreport.cc.com/videos/2p7nwl/sign-off---colbert-s-book-club---j-d--salinger-s-glass-family"
],
"guest": "Shane Salerno"
},
{
"date": "2013-09-11",
"videos": [
"http://thecolbertreport.cc.com/videos/lop9g2/new-york-city-mayoral-primary",
"http://thecolbertreport.cc.com/videos/pymjnx/america-s-got-serious-reservations-about-this---syria",
"http://thecolbertreport.cc.com/videos/cta0kn/america-s-got-serious-reservations-about-this---syria---rand-paul",
"http://thecolbertreport.cc.com/videos/w9ejb1/barack-obama-s-footgate---secret-muslim-code",
"http://thecolbertreport.cc.com/videos/p83qs9/sheryl-crow"
],
"guest": "Sheryl Crow"
},
{
"date": "2013-09-12",
"videos": [
"http://thecolbertreport.cc.com/videos/r3zogj/vladimir-putin-s-op-ed-photos",
"http://thecolbertreport.cc.com/videos/bujbay/better-know-a-district---washington-s-7th---jim-mcdermott",
"http://thecolbertreport.cc.com/videos/7z7vfu/vladimir-putin-s-op-ed-on-u-s--intervention-in-syria",
"http://thecolbertreport.cc.com/videos/cm16zd/philip-mudd",
"http://thecolbertreport.cc.com/videos/4lw1cp/sign-off---goodnight"
],
"guest": "Philip Mudd"
},
{
"date": "2013-09-16",
"videos": [
"http://thecolbertreport.cc.com/videos/weeyn5/intro---9-16-13",
"http://thecolbertreport.cc.com/videos/2lxvvp/lehman-brothers-anniversary---economic-recovery",
"http://thecolbertreport.cc.com/videos/ggices/the-word---the-guilted-age",
"http://thecolbertreport.cc.com/videos/vui8um/miss-america-2013",
"http://thecolbertreport.cc.com/videos/v77k60/andrew-bacevich",
"http://thecolbertreport.cc.com/videos/c31p0i/sign-off---financial-crisis-anniversary-cake"
],
"guest": "Andrew Bacevich"
},
{
"date": "2013-09-17",
"videos": [
"http://thecolbertreport.cc.com/videos/qkhrkt/intro---9-17-13",
"http://thecolbertreport.cc.com/videos/hwlkz5/the-people-s-republic-of-obamastan---forbes-400-losers",
"http://thecolbertreport.cc.com/videos/cgb0cw/colbert-platinum---luxury-ice---hot-dic-tip",
"http://thecolbertreport.cc.com/videos/rkpujl/soul-rending-cheerios-ad",
"http://thecolbertreport.cc.com/videos/2dwhox/arne-duncan",
"http://thecolbertreport.cc.com/videos/ukxkfk/sign-off---goodnight"
],
"guest": "Arne Duncan"
},
{
"date": "2013-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/g7l8kk/syria-conflict---end-times-prophecy",
"http://thecolbertreport.cc.com/videos/8pp3si/united-nations-on-syria-conflict---andrew-sullivan",
"http://thecolbertreport.cc.com/videos/v0wk5h/navy-yard-shooting---gun-violence-causes",
"http://thecolbertreport.cc.com/videos/ft7l84/nicholson-baker",
"http://thecolbertreport.cc.com/videos/lpg81o/sign-off----damascus-countdown-"
],
"guest": "Nicholson Baker"
},
{
"date": "2013-09-19",
"videos": [
"http://thecolbertreport.cc.com/videos/1j1cxh/michelle-obama-s-h2o-campaign",
"http://thecolbertreport.cc.com/videos/4iux0d/obamacare-government-shutdown",
"http://thecolbertreport.cc.com/videos/6nrq55/obamacare-navigators",
"http://thecolbertreport.cc.com/videos/7qwiwv/tip-wag---hammunition---george-clooney",
"http://thecolbertreport.cc.com/videos/x5xw6g/jack-johnson"
],
"guest": "Jack Johnson"
},
{
"date": "2013-09-24",
"videos": [
"http://thecolbertreport.cc.com/videos/ecu59e/stephen-s-emmy-awards",
"http://thecolbertreport.cc.com/videos/nsfkr7/on-notice---pope-francis",
"http://thecolbertreport.cc.com/videos/vb7ms1/on-notice---pope-francis---jim-martin",
"http://thecolbertreport.cc.com/videos/7xtam8/metallica",
"http://thecolbertreport.cc.com/videos/g9dzis/sign-off---emmy-exhibition"
],
"guest": "Metallica"
},
{
"date": "2013-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/8fmvel/censorship-for-youtube-comments",
"http://thecolbertreport.cc.com/videos/lsiidb/sport-report---cranium-coddlers---san-francisco-street-chess---floyd-mayweather",
"http://thecolbertreport.cc.com/videos/ks6rd5/ted-cruz-s-obamacare--filibuster-",
"http://thecolbertreport.cc.com/videos/urqr8j/joseph-gordon-levitt",
"http://thecolbertreport.cc.com/videos/93nnw6/sign-off---ring-announcer"
],
"guest": "Joseph Gordon-Levitt"
},
{
"date": "2013-09-26",
"videos": [
"http://thecolbertreport.cc.com/videos/itk7kp/americone-dream-product-placement",
"http://thecolbertreport.cc.com/videos/u1mo7v/chris-fischer",
"http://thecolbertreport.cc.com/videos/lo2m3c/intro---9-26-13",
"http://thecolbertreport.cc.com/videos/153u0a/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/87ddew/time-travel-adventures-with-conservatives"
],
"guest": "Chris Fischer"
},
{
"date": "2013-09-30",
"videos": [
"http://thecolbertreport.cc.com/videos/mp715j/rockin--government-shutdown-eve",
"http://thecolbertreport.cc.com/videos/pbvraa/tip-wag---butterball--ashley-merryman---science",
"http://thecolbertreport.cc.com/videos/wzj7bh/vince-gilligan-pt--1",
"http://thecolbertreport.cc.com/videos/xid9jc/vince-gilligan-pt--2"
],
"guest": "Vince Gilligan"
},
{
"date": "2013-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/99odk6/federal-government-shutdown",
"http://thecolbertreport.cc.com/videos/cn352h/affordable-care-act---obama-s-computerized-america",
"http://thecolbertreport.cc.com/videos/1ntmd2/adorable-care-act---generation-opportunity",
"http://thecolbertreport.cc.com/videos/gfz4h7/national-hispanic-heritage-month",
"http://thecolbertreport.cc.com/videos/obk0r1/daniel-radcliffe",
"http://thecolbertreport.cc.com/videos/7ni2qs/sign-off---goodnight"
],
"guest": "Daniel Radcliffe"
},
{
"date": "2013-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/aykl9k/intro---10-2-13",
"http://thecolbertreport.cc.com/videos/qx1ar9/1995-shutdown-survival-bunker",
"http://thecolbertreport.cc.com/videos/qz6a9i/government--slimdown----potus-meeting",
"http://thecolbertreport.cc.com/videos/xjdheq/blood-in-the-water---bill-o-reilly-s--killing-jesus-",
"http://thecolbertreport.cc.com/videos/5ynb8q/chris-matthews",
"http://thecolbertreport.cc.com/videos/mvs3wz/sign-off---shutdown-survival-bunker"
],
"guest": "Chris Matthews"
},
{
"date": "2013-10-03",
"videos": [
"http://thecolbertreport.cc.com/videos/7l0bys/government-shutdown-day-three",
"http://thecolbertreport.cc.com/videos/amjasd/the-2013-government-shutdown-wedding-of-the-century-pt--1",
"http://thecolbertreport.cc.com/videos/qt2vrd/david-finkel",
"http://thecolbertreport.cc.com/videos/6as11u/sign-off---audra-mcdonald-s-availability"
],
"guest": "David Finkel"
},
{
"date": "2013-10-07",
"videos": [
"http://thecolbertreport.cc.com/videos/iyj9i2/government-shutdown-s-one-week-anniversary",
"http://thecolbertreport.cc.com/videos/f9ohl9/bond-v--united-states",
"http://thecolbertreport.cc.com/videos/rodf66/mccutcheon-v--fec---emily-bazelon",
"http://thecolbertreport.cc.com/videos/d10tae/banksy-s-new-york-reign-of-terror",
"http://thecolbertreport.cc.com/videos/feyjl3/james-spithill",
"http://thecolbertreport.cc.com/videos/m7oe3o/sign-off----not-a-game--game"
],
"guest": "James Spithill"
},
{
"date": "2013-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/phldtj/intro---10-8-13",
"http://thecolbertreport.cc.com/videos/u5kkik/debt-ceiling-deadline",
"http://thecolbertreport.cc.com/videos/2b5rst/pro-pot-laws---pointers",
"http://thecolbertreport.cc.com/videos/049124/thanksgiving-under-attack---hanukkah",
"http://thecolbertreport.cc.com/videos/llhqmr/paul-giamatti",
"http://thecolbertreport.cc.com/videos/tuzaza/sign-off----tj---dave-"
],
"guest": "Paul Giamatti"
},
{
"date": "2013-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/pjgp86/intro---10-9-13",
"http://thecolbertreport.cc.com/videos/ssksja/ride-for-the-constitution",
"http://thecolbertreport.cc.com/videos/h502rh/twitter-s-ipo",
"http://thecolbertreport.cc.com/videos/k9g3h2/tom-emmer-s-controversial-ad",
"http://thecolbertreport.cc.com/videos/ldxsu2/tom-hanks",
"http://thecolbertreport.cc.com/videos/uevql0/sign-off---goodnight"
],
"guest": "Tom Hanks"
},
{
"date": "2013-10-10",
"videos": [
"http://thecolbertreport.cc.com/videos/xqbppa/government-shutdown-day-10---shep-smith-s-input",
"http://thecolbertreport.cc.com/videos/bzo5fv/because-shep---fox-news-deck",
"http://thecolbertreport.cc.com/videos/rt3php/because-shep---fox-news-deck---colbert-info-news-veranda",
"http://thecolbertreport.cc.com/videos/r2mded/hanksy-s-grizzly-art",
"http://thecolbertreport.cc.com/videos/twnvtr/reed-albergotti---vanessa-o-connell",
"http://thecolbertreport.cc.com/videos/gn1hnb/sign-off---goodnight"
],
"guest": "Reed Albergotti & Vanessa O'Connell"
},
{
"date": "2013-10-21",
"videos": [
"http://thecolbertreport.cc.com/videos/zabrcj/end-of-the-government-shutdown",
"http://thecolbertreport.cc.com/videos/fs5lvs/tip-wag---new-jersey--robo-teachers---amazon-erotica",
"http://thecolbertreport.cc.com/videos/xmc07q/the-reflektors",
"http://thecolbertreport.cc.com/videos/z30io4/sign-off----midnight"
],
"guest": "The Reflektors"
},
{
"date": "2013-10-22",
"videos": [
"http://thecolbertreport.cc.com/videos/0nhfjd/intro---10-22-13",
"http://thecolbertreport.cc.com/videos/tpp3c7/the-in-box---lions-vs--tigers",
"http://thecolbertreport.cc.com/videos/w4k85n/thought-for-food---kfc-s-go-cup---powerful-yogurt",
"http://thecolbertreport.cc.com/videos/wv85sy/the-neiman-marcus-christmas-book",
"http://thecolbertreport.cc.com/videos/413dai/a--scott-berg",
"http://thecolbertreport.cc.com/videos/j9enbw/sign-off----the-heart-of-giving-"
],
"guest": "A. Scott Berg"
},
{
"date": "2013-10-23",
"videos": [
"http://thecolbertreport.cc.com/videos/pfan07/obamacare-website-gate",
"http://thecolbertreport.cc.com/videos/51c17c/i-tried-to-sign-up-for-obamacare---health-care-house-of-horrors",
"http://thecolbertreport.cc.com/videos/w07qf1/i-tried-to-sign-up-for-obamacare---health-care-navigators",
"http://thecolbertreport.cc.com/videos/j95qfd/judy-woodruff---gwen-ifill",
"http://thecolbertreport.cc.com/videos/rtpako/sign-off---goodnight"
],
"guest": "Gwen Ifill, Judy Woodruff"
},
{
"date": "2013-10-24",
"videos": [
"http://thecolbertreport.cc.com/videos/3cv3ae/intro---10-24-13",
"http://thecolbertreport.cc.com/videos/8rabqj/girly-hats-for-the-marines",
"http://thecolbertreport.cc.com/videos/6zcsyl/the-word---philantrophy",
"http://thecolbertreport.cc.com/videos/60wsnw/craziest-f--king-thing-i-ve-ever-heard---tomtatoes",
"http://thecolbertreport.cc.com/videos/9ak9w5/stephen-fry",
"http://thecolbertreport.cc.com/videos/9py49q/sign-off---goodnight"
],
"guest": "Stephen Fry"
},
{
"date": "2013-10-28",
"videos": [
"http://thecolbertreport.cc.com/videos/xfzjxy/healthcare-gov-s-missing-woman",
"http://thecolbertreport.cc.com/videos/0m56pa/germany-s-nsa-outrage",
"http://thecolbertreport.cc.com/videos/7egvpg/germany-s-nsa-outrage---mark-mazzetti",
"http://thecolbertreport.cc.com/videos/boarwv/lifetime-of-furfillment",
"http://thecolbertreport.cc.com/videos/kz8x10/orlando-bloom",
"http://thecolbertreport.cc.com/videos/fl658q/sign-off---goodnight"
],
"guest": "Orlando Bloom"
},
{
"date": "2013-10-29",
"videos": [
"http://thecolbertreport.cc.com/videos/dhae0b/intro---10-29-13",
"http://thecolbertreport.cc.com/videos/qingaf/the-word---on-your-feet",
"http://thecolbertreport.cc.com/videos/yxqllm/rand-paul-s-plagiarism-problem",
"http://thecolbertreport.cc.com/videos/j9efvm/billy-collins",
"http://thecolbertreport.cc.com/videos/fnaadw/sign-off----aimless-love-"
],
"guest": "Billy Collins"
},
{
"date": "2013-10-30",
"videos": [
"http://thecolbertreport.cc.com/videos/wibml9/intro---10-30-13",
"http://thecolbertreport.cc.com/videos/me8aye/the-gop-s-self-disapproval",
"http://thecolbertreport.cc.com/videos/jns4fj/threatdown---divorce--undocumented-network-jumpers---global-warming",
"http://thecolbertreport.cc.com/videos/ammjdj/shepard-smith-s-digital-dependency",
"http://thecolbertreport.cc.com/videos/7frodo/jack-andraka",
"http://thecolbertreport.cc.com/videos/s14fzp/sign-off---goodnight"
],
"guest": "Jack Andraka"
},
{
"date": "2013-10-31",
"videos": [
"http://thecolbertreport.cc.com/videos/vr2jg3/intro---10-31-13",
"http://thecolbertreport.cc.com/videos/8q3ppm/war-on-halloween---matt-lauer-s-costume",
"http://thecolbertreport.cc.com/videos/2krnuz/blood-in-the-water---jim-wheeler-s-hypothetical-slavery-vote",
"http://thecolbertreport.cc.com/videos/mzqttu/the-word---see-no-evil",
"http://thecolbertreport.cc.com/videos/owduja/zach-sims",
"http://thecolbertreport.cc.com/videos/53uet6/sign-off---the-glenlivet"
],
"guest": "Zach Sims"
},
{
"date": "2013-11-04",
"videos": [
"http://thecolbertreport.cc.com/videos/hfr88n/intro---11-4-13",
"http://thecolbertreport.cc.com/videos/v68n7l/obamacare-s-gender-blind-premiums",
"http://thecolbertreport.cc.com/videos/oi11jp/the-word---inc--god-we-trust",
"http://thecolbertreport.cc.com/videos/29w6fx/-realhumanpraise-for-fox-news",
"http://thecolbertreport.cc.com/videos/z1sht0/david-folkenflik",
"http://thecolbertreport.cc.com/videos/vl9eiz/sign-off---goodnight"
],
"guest": "David Folkenflik"
},
{
"date": "2013-11-05",
"videos": [
"http://thecolbertreport.cc.com/videos/owoy1b/exclusive---julius-erving-extended-interview",
"http://thecolbertreport.cc.com/videos/7bd2cq/rob-ford-s-crack-scandal",
"http://thecolbertreport.cc.com/videos/s5iv9f/difference-makers---tim-morrison-and-meagan-brame",
"http://thecolbertreport.cc.com/videos/6abc8c/gay-sex-in-the-insect-world",
"http://thecolbertreport.cc.com/videos/9v56tr/julius-erving",
"http://thecolbertreport.cc.com/videos/du2t8n/sign-off---crack-pipe"
],
"guest": "Julius Erving"
},
{
"date": "2013-11-06",
"videos": [
"http://thecolbertreport.cc.com/videos/rpo0ya/ms--marvel-s-reboot",
"http://thecolbertreport.cc.com/videos/el55uc/tip-wag---toys--r--us--shroom-tombs---john-pike",
"http://thecolbertreport.cc.com/videos/hdhamk/washington-state-s-gmo-labeling-initiative",
"http://thecolbertreport.cc.com/videos/7nyym9/brian-lehrer",
"http://thecolbertreport.cc.com/videos/snu1i2/sign-off---welcome-baby-fischel-"
],
"guest": "Brian Lehrer"
},
{
"date": "2013-11-07",
"videos": [
"http://thecolbertreport.cc.com/videos/d61yyh/employment-non-discrimination-act",
"http://thecolbertreport.cc.com/videos/4cx9x8/sport-report---washington-redskins-name-controversy---miami-dolphins-bullying-allegations",
"http://thecolbertreport.cc.com/videos/7cyanz/who-might-be-honoring-me-next----people-s-choice-awards",
"http://thecolbertreport.cc.com/videos/80epmw/daniel-lieberman",
"http://thecolbertreport.cc.com/videos/tx4mq5/sign-off---people-s-choice-awards"
],
"guest": "Daniel Lieberman"
},
{
"date": "2013-11-11",
"videos": [
"http://thecolbertreport.cc.com/videos/84rhzu/-60-minutes--benghazi-controversy",
"http://thecolbertreport.cc.com/videos/uwudem/-60-minutes--benghazi-controversy---poncho-denews--bogus-bombshell",
"http://thecolbertreport.cc.com/videos/bd4gnc/chris-christie-s-sunday-media-blitz",
"http://thecolbertreport.cc.com/videos/2lqizl/peter-baker",
"http://thecolbertreport.cc.com/videos/kglpif/sign-off---goodnight"
],
"guest": "Peter Baker"
},
{
"date": "2013-11-12",
"videos": [
"http://thecolbertreport.cc.com/videos/iitiue/intro---11-12-13",
"http://thecolbertreport.cc.com/videos/pqrcpb/obamacare-enrollment-troubles",
"http://thecolbertreport.cc.com/videos/s7e3qv/iran-nuke-negotiations---french-resistance",
"http://thecolbertreport.cc.com/videos/0qvety/iran-nuke-negotiations---trita-parsi",
"http://thecolbertreport.cc.com/videos/9s2qhn/shantytown-glamour-camping",
"http://thecolbertreport.cc.com/videos/91wur1/david-christian",
"http://thecolbertreport.cc.com/videos/61ms6y/sign-off----a-single-roll-of-the-dice-"
],
"guest": "David Christian"
},
{
"date": "2013-11-13",
"videos": [
"http://thecolbertreport.cc.com/videos/1p3who/u-s--drone-controversy",
"http://thecolbertreport.cc.com/videos/h4v9zq/difference-makers---philip-steel",
"http://thecolbertreport.cc.com/videos/w8qzgv/blood-in-the-water---richard-cohen-s-conventional-wisdom",
"http://thecolbertreport.cc.com/videos/sn95d6/blind-boys-of-alabama---jimmy-carter"
],
"guest": "Blind Boys of Alabama"
},
{
"date": "2013-11-14",
"videos": [
"http://thecolbertreport.cc.com/videos/2o6sb0/philippines-typhoon-relief",
"http://thecolbertreport.cc.com/videos/8olyhc/rob-ford-s-defiance",
"http://thecolbertreport.cc.com/videos/wrbvsm/alexis-ohanian",
"http://thecolbertreport.cc.com/videos/nmbdiq/sign-off---kitten-cuddle"
],
"guest": "Alexis Ohanian"
},
{
"date": "2013-11-18",
"videos": [
"http://thecolbertreport.cc.com/videos/yv49an/intro---11-18-13",
"http://thecolbertreport.cc.com/videos/m7v6ee/philippines-relief-from-the-colbert-nation",
"http://thecolbertreport.cc.com/videos/suwtn9/obamacare-backlash---pundit-hyperbole",
"http://thecolbertreport.cc.com/videos/gnc6o8/obamacare-backlash---conservative-victory-lap",
"http://thecolbertreport.cc.com/videos/12pe6a/alpha-dog-of-the-week---chip-wilson",
"http://thecolbertreport.cc.com/videos/cdeggb/steve-mcqueen",
"http://thecolbertreport.cc.com/videos/5ow82m/sign-off---goodnight"
],
"guest": "Steve McQueen"
},
{
"date": "2013-11-19",
"videos": [
"http://thecolbertreport.cc.com/videos/kzu5qm/walmart-s-employee-food-drive",
"http://thecolbertreport.cc.com/videos/fkmwr4/america-s-wealth-divide",
"http://thecolbertreport.cc.com/videos/nj0wp7/america-s-wealth-divide---robert-reich",
"http://thecolbertreport.cc.com/videos/ppx1hm/slate-s--minutes-to-read--feature",
"http://thecolbertreport.cc.com/videos/g1usdl/rick-santorum",
"http://thecolbertreport.cc.com/videos/jnk6o6/sign-off---sweater-vest"
],
"guest": "Rick Santorum"
},
{
"date": "2013-11-20",
"videos": [
"http://thecolbertreport.cc.com/videos/kv4dxf/intro---11-20-13",
"http://thecolbertreport.cc.com/videos/xxqfor/trey-radel-s-cocaine-arrest",
"http://thecolbertreport.cc.com/videos/s2213y/tip-wag---hopped-up-pops--starbucks---american-consumers",
"http://thecolbertreport.cc.com/videos/aiu6v1/sport-report---russia-s-anti-gay-winter-games",
"http://thecolbertreport.cc.com/videos/bjap7z/m-i-a-"
],
"guest": "M.I.A."
},
{
"date": "2013-11-21",
"videos": [
"http://thecolbertreport.cc.com/videos/bz75lg/intro---11-21-13",
"http://thecolbertreport.cc.com/videos/16t3na/nuclear-option-in-the-senate",
"http://thecolbertreport.cc.com/videos/ynxkze/mary-fallin-and-same-sex-benefits",
"http://thecolbertreport.cc.com/videos/pqqitw/guess-who-s-coming-to-thanksgiving-dinner-",
"http://thecolbertreport.cc.com/videos/5idfv3/j-j--abrams",
"http://thecolbertreport.cc.com/videos/1xi9cj/sign-off----s-"
],
"guest": "J.J. Abrams"
},
{
"date": "2013-12-02",
"videos": [
"http://thecolbertreport.cc.com/videos/a8rc4x/intro---12-2-13",
"http://thecolbertreport.cc.com/videos/eax2go/healthcare-gov-revamp---presidential-turkey-pardon",
"http://thecolbertreport.cc.com/videos/32fik6/amazon-s-delivery-drones",
"http://thecolbertreport.cc.com/videos/kzzho9/blitzkrieg-on-grinchitude---bullet-catching-christmas-tree",
"http://thecolbertreport.cc.com/videos/tllp9w/daniel-goleman",
"http://thecolbertreport.cc.com/videos/4pjxs1/sign-off---eighth-anniversary-portrait"
],
"guest": "Daniel Goleman"
},
{
"date": "2013-12-03",
"videos": [
"http://thecolbertreport.cc.com/videos/810uks/intro---12-3-13",
"http://thecolbertreport.cc.com/videos/6yqi5n/the-pope-s-secret-life",
"http://thecolbertreport.cc.com/videos/ojh0t8/thought-for-food---ban-on-trans-fats---mcdonald-s-mcrib-mystery",
"http://thecolbertreport.cc.com/videos/fepuu2/the-double-robotics-office-robot",
"http://thecolbertreport.cc.com/videos/g14s8s/ed-stone",
"http://thecolbertreport.cc.com/videos/jkirej/sign-off---honoring-ed-stone"
],
"guest": "Ed Stone"
},
{
"date": "2013-12-04",
"videos": [
"http://thecolbertreport.cc.com/videos/xzvt8w/do-nothing-congress",
"http://thecolbertreport.cc.com/videos/vjdf7c/tip-wag---campaign-for-cursive---the-rnc",
"http://thecolbertreport.cc.com/videos/y2lfd6/colbert-platinum---freedom-ship",
"http://thecolbertreport.cc.com/videos/hzc351/bryan-stevenson",
"http://thecolbertreport.cc.com/videos/eanv4b/sign-off"
],
"guest": "Bryan Stevenson"
},
{
"date": "2013-12-05",
"videos": [
"http://thecolbertreport.cc.com/videos/evhpy0/intro---12-5-13",
"http://thecolbertreport.cc.com/videos/r2orue/the-in-box---flight-vs--invisibility",
"http://thecolbertreport.cc.com/videos/t96lm4/legal-weed-in-colorado",
"http://thecolbertreport.cc.com/videos/q1iez3/legal-weed-in-colorado---ricardo-baca",
"http://thecolbertreport.cc.com/videos/zy6hlf/the-gop-s-lady-troubles",
"http://thecolbertreport.cc.com/videos/blunby/alan-mulally",
"http://thecolbertreport.cc.com/videos/xyy6ql/sign-off"
],
"guest": "Allan Mulally"
},
{
"date": "2013-12-09",
"videos": [
"http://thecolbertreport.cc.com/videos/8h6usc/remembering-nelson-mandela",
"http://thecolbertreport.cc.com/videos/w58dfp/the-case-against-charity---bill-o-reilly---john-stossel",
"http://thecolbertreport.cc.com/videos/5y4hrs/the-case-against-charity---homeless-for-the-holidays",
"http://thecolbertreport.cc.com/videos/76e84o/stephen-s-grammy-nomination",
"http://thecolbertreport.cc.com/videos/lv0hd2/david-keith",
"http://thecolbertreport.cc.com/videos/6p2s11/sign-off"
],
"guest": "David Keith"
},
{
"date": "2013-12-10",
"videos": [
"http://thecolbertreport.cc.com/videos/my8zmp/intro---12-10-13",
"http://thecolbertreport.cc.com/videos/7yd7o2/walmart-s-job-acceptance-rate",
"http://thecolbertreport.cc.com/videos/z9zxq1/the-word---channel-serfing",
"http://thecolbertreport.cc.com/videos/kaj6y2/blitzkrieg-on-grinchitude---early-christmas-in-venezuela",
"http://thecolbertreport.cc.com/videos/pt29fq/alex-blumberg",
"http://thecolbertreport.cc.com/videos/99z3wt/sign-off---farewell-to-frank-lesser"
],
"guest": "Alex Blumberg"
},
{
"date": "2013-12-11",
"videos": [
"http://thecolbertreport.cc.com/videos/zye2nw/blitzkrieg-on-grinchitude---festivus-pole-in-the-florida-capitol",
"http://thecolbertreport.cc.com/videos/2vwk2a/obama-s-handshake-controversy",
"http://thecolbertreport.cc.com/videos/ayrep6/sign-language-scandal-at-mandela-s-memorial",
"http://thecolbertreport.cc.com/videos/jna07l/mike-huckabee-s--12-days-of-obamacare-",
"http://thecolbertreport.cc.com/videos/ld1i97/elizabeth-gilbert",
"http://thecolbertreport.cc.com/videos/nxssxf/sign-off---goodnight"
],
"guest": "Elizabeth Gilbert"
},
{
"date": "2013-12-12",
"videos": [
"http://thecolbertreport.cc.com/videos/juqc9w/bipartisan-budget-agreement",
"http://thecolbertreport.cc.com/videos/ygi28a/cheating-death---sleep-health---cosmetic-surgery",
"http://thecolbertreport.cc.com/videos/btidng/megyn-kelly-on-santa-s-skin-color",
"http://thecolbertreport.cc.com/videos/gv6c5c/george-packer",
"http://thecolbertreport.cc.com/videos/o3drqn/sign-off---goodnight"
],
"guest": "George Packer"
},
{
"date": "2013-12-16",
"videos": [
"http://thecolbertreport.cc.com/videos/tch93k/intro---12-16-13",
"http://thecolbertreport.cc.com/videos/t0srep/google-s-robot-acquisition",
"http://thecolbertreport.cc.com/videos/4q1rc7/nsa-video-game-surveillance",
"http://thecolbertreport.cc.com/videos/qepegb/stephen-s-grammy-nomination---billy-crystal",
"http://thecolbertreport.cc.com/videos/1wx2c5/jonah-peretti"
],
"guest": "Jonah Peretti, Gregg Allman, the National"
},
{
"date": "2013-12-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ufkb4r/intro---12-17-13",
"http://thecolbertreport.cc.com/videos/hdex9j/anti-nsa-ruling---edward-snowden-s-asylum-bid",
"http://thecolbertreport.cc.com/videos/v7f6xw/tip-wag---all-china-edition",
"http://thecolbertreport.cc.com/videos/18yj36/-ted-cruz-to-the-future-",
"http://thecolbertreport.cc.com/videos/0hlwua/garry-trudeau"
],
"guest": "Garry Trudeau, Cyndi Lauper, Alan Cumming"
},
{
"date": "2013-12-18",
"videos": [
"http://thecolbertreport.cc.com/videos/uqgbw6/intro---12-18-13",
"http://thecolbertreport.cc.com/videos/w20rkq/rethinking-customer-satisfaction",
"http://thecolbertreport.cc.com/videos/hqucv3/santa-claus-ethnicity-debate",
"http://thecolbertreport.cc.com/videos/7ick9v/santa-claus-ethnicity-debate---hans-beinholtz",
"http://thecolbertreport.cc.com/videos/vv4aaz/keanu-reeves",
"http://thecolbertreport.cc.com/videos/52csyt/sign-off---goodnight"
],
"guest": "Keanu Reeves, Aaron Neville"
},
{
"date": "2013-12-19",
"videos": [
"http://thecolbertreport.cc.com/videos/rdc6qs/jamie-dimon-s-christmas-card",
"http://thecolbertreport.cc.com/videos/p9rfx1/fox-news-s--12-scams-of-christmas-",
"http://thecolbertreport.cc.com/videos/na7pll/phil-robertson-s--duck-dynasty--suspension",
"http://thecolbertreport.cc.com/videos/3q7h60/ben-stiller"
],
"guest": "Ben Stiller, the Blind Boys of Alabama"
}
],
"2014": [
{
"date": "2014-01-06",
"videos": [
"http://thecolbertreport.cc.com/videos/qaqhv8/intro---1-6-14",
"http://thecolbertreport.cc.com/videos/vobbe1/polar-vortex",
"http://thecolbertreport.cc.com/videos/3goywo/tip-wag---fda--toy-manufacturers---logo-party",
"http://thecolbertreport.cc.com/videos/hyg1jb/recreational-pot-sales-in-colorado",
"http://thecolbertreport.cc.com/videos/5qceid/ken-roth",
"http://thecolbertreport.cc.com/videos/f9w0xq/sign-off---polar-vortex"
],
"guest": "Kenneth Roth"
},
{
"date": "2014-01-07",
"videos": [
"http://thecolbertreport.cc.com/videos/4uqurx/donald-trump-and-fox---friends-vs--global-warming",
"http://thecolbertreport.cc.com/videos/s9iccj/income-inequality-debate",
"http://thecolbertreport.cc.com/videos/v3sijl/income-inequality-debate---jim-martin",
"http://thecolbertreport.cc.com/videos/b9gbou/time-travel-research-in-cyberspace",
"http://thecolbertreport.cc.com/videos/bz0qvj/john-seigenthaler",
"http://thecolbertreport.cc.com/videos/a4c8i8/sign-off----a-big-heart-open-to-god-"
],
"guest": "John Seigenthaler"
},
{
"date": "2014-01-08",
"videos": [
"http://thecolbertreport.cc.com/videos/1vojc6/intro---1-8-14",
"http://thecolbertreport.cc.com/videos/2zkpvh/chris-christie---the-george-washington-bridge-scandal",
"http://thecolbertreport.cc.com/videos/bkjqeq/cheating-death---robo-sperm---health-roulette",
"http://thecolbertreport.cc.com/videos/ct0fks/the-polar-vortex---fruit-tools",
"http://thecolbertreport.cc.com/videos/i292oo/ishmael-beah",
"http://thecolbertreport.cc.com/videos/srasr6/sign-off---cold-weather-fruit-hammer"
],
"guest": "Ishmael Beah"
},
{
"date": "2014-01-09",
"videos": [
"http://thecolbertreport.cc.com/videos/3nlrc7/new-jersey-bridge-scandal---damning-emails",
"http://thecolbertreport.cc.com/videos/ez26gi/new-jersey-bridge-scandal---chris-christie-s-someone-else-a-culpa",
"http://thecolbertreport.cc.com/videos/gvlcow/robert-gates-s--duty-",
"http://thecolbertreport.cc.com/videos/cjww9c/jeff-skoll",
"http://thecolbertreport.cc.com/videos/zmnwvz/sign-off---people-s-choice-award"
],
"guest": "Jeff Skoll"
},
{
"date": "2014-01-13",
"videos": [
"http://thecolbertreport.cc.com/videos/qh2gll/intro---1-13-14",
"http://thecolbertreport.cc.com/videos/nmeif6/water-crisis-in-west-virginia",
"http://thecolbertreport.cc.com/videos/l6fcm2/the-word---never-ender-s-game",
"http://thecolbertreport.cc.com/videos/ekq6m6/mirriad---retroactive-product-placement",
"http://thecolbertreport.cc.com/videos/zf2igg/sign-off---back-scratch"
],
"guest": "David Fanning"
},
{
"date": "2014-01-14",
"videos": [
"http://thecolbertreport.cc.com/videos/e0ksix/sport-report---baseball",
"http://thecolbertreport.cc.com/videos/8aoa48/sport-report---winter-sports",
"http://thecolbertreport.cc.com/videos/4lplhb/sport-report---billie-jean-king",
"http://thecolbertreport.cc.com/videos/1urzjl/deborah-solomon",
"http://thecolbertreport.cc.com/videos/b5df4x/sign-off---goodnight"
],
"guest": "Deborah Solomon"
},
{
"date": "2014-01-15",
"videos": [
"http://thecolbertreport.cc.com/videos/daejaf/ad-for-america",
"http://thecolbertreport.cc.com/videos/bxdt1w/sport-report---uneducated-college-athletes---peyton-manning-s-sponsor-shout-out",
"http://thecolbertreport.cc.com/videos/rbh95h/alpha-dog-of-the-week---francois-hollande",
"http://thecolbertreport.cc.com/videos/tkqmyv/gabriel-sherman",
"http://thecolbertreport.cc.com/videos/efgh7j/sign-off---goodnight"
],
"guest": "Gabriel Sherman"
},
{
"date": "2014-01-16",
"videos": [
"http://thecolbertreport.cc.com/videos/pqopug/nsa-software-implants",
"http://thecolbertreport.cc.com/videos/6omuyc/colbert-platinum---diamond-pacifiers---financial-domination",
"http://thecolbertreport.cc.com/videos/d589xx/stephen-s-grammy-nomination---carol-burnett",
"http://thecolbertreport.cc.com/videos/4g3c4f/naquasia-legrand",
"http://thecolbertreport.cc.com/videos/h6vhef/sign-off---colbert-s-book-club"
],
"guest": "Naquasia LeGrand"
},
{
"date": "2014-01-20",
"videos": [
"http://thecolbertreport.cc.com/videos/2jaqbf/intro---1-20-13",
"http://thecolbertreport.cc.com/videos/6qy0qw/peyton-manning-s--omaha--chant---marijuana-s-effects-on-football",
"http://thecolbertreport.cc.com/videos/bg48ms/the-word---thrift-justice",
"http://thecolbertreport.cc.com/videos/1ah0qw/pope-francis-s-breastfeeding-support---affordable-sainthood",
"http://thecolbertreport.cc.com/videos/szyyzo/scott-stossel",
"http://thecolbertreport.cc.com/videos/3kds6e/sign-off---colbert-s-book-club-reminder"
],
"guest": "Scott Stossel"
},
{
"date": "2014-01-21",
"videos": [
"http://thecolbertreport.cc.com/videos/6g3tkl/sign-off---colbert-s-book-club---ernest-hemingway-s--a-farewell-to-arms-",
"http://thecolbertreport.cc.com/videos/27el91/colbert-s-book-club---mariel-hemingway-on-ernest-hemingway",
"http://thecolbertreport.cc.com/videos/c8gx08/colbert-s-book-club---michael-chabon----a-farewell-to-arms-",
"http://thecolbertreport.cc.com/videos/2tt8np/colbert-s-book-club---better-know-a-hemingway",
"http://thecolbertreport.cc.com/videos/8vzg0l/colbert-s-book-club---ernest-hemingway"
],
"guest": "Michael Chabon, Mariel Hemingway"
},
{
"date": "2014-01-22",
"videos": [
"http://thecolbertreport.cc.com/videos/o2dl8a/intro---1-22-14",
"http://thecolbertreport.cc.com/videos/id8eug/mystery-doughnut-on-mars",
"http://thecolbertreport.cc.com/videos/db8f37/tip-wag---air-force--dr--keith-ablow---westminster-dog-show",
"http://thecolbertreport.cc.com/videos/wjov9z/tikker-death-watch",
"http://thecolbertreport.cc.com/videos/y85ykp/charles-duhigg",
"http://thecolbertreport.cc.com/videos/ihby00/sign-off---mutt"
],
"guest": "Charles Duhigg"
},
{
"date": "2014-01-23",
"videos": [
"http://thecolbertreport.cc.com/videos/ay6diu/riots-in-the-ukraine",
"http://thecolbertreport.cc.com/videos/nnj3ic/end-of-net-neutrality",
"http://thecolbertreport.cc.com/videos/qatuhg/end-of-net-neutrality---tim-wu",
"http://thecolbertreport.cc.com/videos/0i8pwp/china-s-colbert-report-rip-off",
"http://thecolbertreport.cc.com/videos/fykny6/patricia-churchland",
"http://thecolbertreport.cc.com/videos/5axbrg/sign-off---goodnight"
],
"guest": "Patricia Churchland"
},
{
"date": "2014-01-27",
"videos": [
"http://thecolbertreport.cc.com/videos/qs3r6w/logo-restrictions-for-the-super-bowl",
"http://thecolbertreport.cc.com/videos/51gnff/richard-sherman-s-rant-fallout",
"http://thecolbertreport.cc.com/videos/mk6zsq/nate-silver",
"http://thecolbertreport.cc.com/videos/c58bm1/sign-off---grammy-award"
],
"guest": "Nate Silver"
},
{
"date": "2014-01-28",
"videos": [
"http://thecolbertreport.cc.com/videos/gzw6pe/superb-owl-xlviii---nfl-extra-point-debate",
"http://thecolbertreport.cc.com/videos/g3ng7g/fallback-position---championship-nfl-quarterback",
"http://thecolbertreport.cc.com/videos/y1y1q6/spotted-owls-vs--barred-owls---david-yarnold",
"http://thecolbertreport.cc.com/videos/wx55bg/justin-tuck",
"http://thecolbertreport.cc.com/videos/q6n89x/sign-off---tootsie-pop"
],
"guest": "Justin Tuck"
},
{
"date": "2014-01-29",
"videos": [
"http://thecolbertreport.cc.com/videos/79qyj3/superb-owl-xlviii---football-christmas",
"http://thecolbertreport.cc.com/videos/pzw1hz/fallback-position---championship-nfl-quarterback-pt--2",
"http://thecolbertreport.cc.com/videos/0czypw/distractions---reactions-at-the-state-of-the-union",
"http://thecolbertreport.cc.com/videos/6h1tef/cris-carter"
],
"guest": "Cris Carter"
},
{
"date": "2014-01-30",
"videos": [
"http://thecolbertreport.cc.com/videos/vp5oqx/superb-owl-xlviii---football-health-concerns",
"http://thecolbertreport.cc.com/videos/8z0t1l/superb-owl-xlviii---football-health-concerns---steve-fainaru---mark-fainaru-wada",
"http://thecolbertreport.cc.com/videos/b88aif/big-game-debate-with-ed-murray-and-michael-hancock",
"http://thecolbertreport.cc.com/videos/7aqq1s/drew-brees",
"http://thecolbertreport.cc.com/videos/yucj0t/sign-off---football-toss"
],
"guest": "Drew Brees"
},
{
"date": "2014-02-03",
"videos": [
"http://thecolbertreport.cc.com/videos/kmzt7v/coca-cola-s-diverse--america-the-beautiful--ad",
"http://thecolbertreport.cc.com/videos/65qhlv/tip-wag---litigious-cheerleaders--pope-francis---china",
"http://thecolbertreport.cc.com/videos/nezg8b/j-k--rowling-s-ron-and-hermione-bombshell",
"http://thecolbertreport.cc.com/videos/nocpjv/jennifer-senior",
"http://thecolbertreport.cc.com/videos/msb2vl/sign-off---goodnight"
],
"guest": "Jennifer Senior"
},
{
"date": "2014-02-04",
"videos": [
"http://thecolbertreport.cc.com/videos/m0k7nu/black-history-of-children-s-dental-health-month---chris-christie-s-bridge-scandal-connection",
"http://thecolbertreport.cc.com/videos/81q2jm/chris-christie-vs--david-wildstein-on-the-new-jersey-bridge-scandal",
"http://thecolbertreport.cc.com/videos/49r39y/pussy-riot-pt--1",
"http://thecolbertreport.cc.com/videos/08f0xw/pussy-riot-pt--2",
"http://thecolbertreport.cc.com/videos/ubzb8b/sign-off---pussy-riot----bringing-human-rights-back-home-"
],
"guest": "Pussy Riot"
},
{
"date": "2014-02-05",
"videos": [
"http://thecolbertreport.cc.com/videos/nn8d7g/intro---2-5-14",
"http://thecolbertreport.cc.com/videos/w3uorg/obamacare-jobs-debate",
"http://thecolbertreport.cc.com/videos/djw49l/america-s-wealthy-under-siege---mort-zuckerman",
"http://thecolbertreport.cc.com/videos/cjdkxj/lake-street-dive",
"http://thecolbertreport.cc.com/videos/6itibl/sign-off---goodnight"
],
"guest": "Lake Street Dive"
},
{
"date": "2014-02-06",
"videos": [
"http://thecolbertreport.cc.com/videos/tzqa3o/obama---the-keystone-xl-pipeline",
"http://thecolbertreport.cc.com/videos/e3q55j/sochi-olympics-cry-athlon",
"http://thecolbertreport.cc.com/videos/yzcp46/tip-wag---tsa-peeping-toms--domino-s-pizza-artists---federal-judges",
"http://thecolbertreport.cc.com/videos/ze9n7p/paul-krugman",
"http://thecolbertreport.cc.com/videos/1ur5x9/sign-off---welcome-baby-eli-"
],
"guest": "Paul Krugman"
},
{
"date": "2014-02-10",
"videos": [
"http://thecolbertreport.cc.com/videos/alv9kr/rocky-start-at-the-sochi-olympics",
"http://thecolbertreport.cc.com/videos/155uge/sport-report---from-russia-with-love--but-no-gay-stuff-",
"http://thecolbertreport.cc.com/videos/s385jl/taliban-dognappers",
"http://thecolbertreport.cc.com/videos/hmu6hf/patrick-kennedy",
"http://thecolbertreport.cc.com/videos/bl6jzi/sign-off---buddy-cole"
],
"guest": "Patrick Kennedy"
},
{
"date": "2014-02-11",
"videos": [
"http://thecolbertreport.cc.com/videos/zddxmq/intro---2-11-14",
"http://thecolbertreport.cc.com/videos/yesavg/blade-in-the-usa",
"http://thecolbertreport.cc.com/videos/ow2caa/sport-report---from-russia-with-love--but-no-gay-stuff----u-s--speedskating-team",
"http://thecolbertreport.cc.com/videos/cxui4b/sport-report---michael-sam-s-coming-out",
"http://thecolbertreport.cc.com/videos/8yt2ar/charlie-crist",
"http://thecolbertreport.cc.com/videos/v6h2iw/sign-off---goodnight"
],
"guest": "Charlie Crist"
},
{
"date": "2014-02-12",
"videos": [
"http://thecolbertreport.cc.com/videos/mke8f4/white-house-state-dinner",
"http://thecolbertreport.cc.com/videos/ngjlqq/bill-o-reilly-s-interview-of-the-decade",
"http://thecolbertreport.cc.com/videos/f7yt2f/because-shep---white-house-menu-report",
"http://thecolbertreport.cc.com/videos/zqevr4/godfrey-reggio",
"http://thecolbertreport.cc.com/videos/wd8rlk/sign-off---au-revoir"
],
"guest": "Godfrey Reggio"
},
{
"date": "2014-02-18",
"videos": [
"http://thecolbertreport.cc.com/videos/cb08sc/intro---2-18-14",
"http://thecolbertreport.cc.com/videos/esabem/jimmy-fallon-s--tonight-show--debut",
"http://thecolbertreport.cc.com/videos/icw75d/transgender-awareness",
"http://thecolbertreport.cc.com/videos/px4k4w/transgender-awareness---janet-mock",
"http://thecolbertreport.cc.com/videos/fpn2d7/brian-greene",
"http://thecolbertreport.cc.com/videos/7cxypm/sign-off---goodnight"
],
"guest": "Brian Greene"
},
{
"date": "2014-02-19",
"videos": [
"http://thecolbertreport.cc.com/videos/8ht320/intro---2-19-14",
"http://thecolbertreport.cc.com/videos/z8viri/sport-report---from-russia-with-love--but-no-gay-stuff----buddy-cole-in-sochi",
"http://thecolbertreport.cc.com/videos/k0fmq0/victory-and-vigilance-at-the-sochi-games",
"http://thecolbertreport.cc.com/videos/pdgpm2/smile-file---al-qaeda-bomb-blunder",
"http://thecolbertreport.cc.com/videos/80x11s/alexander-payne",
"http://thecolbertreport.cc.com/videos/r3yso9/sign-off---goodnight"
],
"guest": "Alexander Payne"
},
{
"date": "2014-02-20",
"videos": [
"http://thecolbertreport.cc.com/videos/gtx5i8/auction-for-bill-o-reilly-s-stolen-microwave",
"http://thecolbertreport.cc.com/videos/7alqr9/sochi-olympics-2014---bode-miller",
"http://thecolbertreport.cc.com/videos/i1pl20/stanley-mcchrystal",
"http://thecolbertreport.cc.com/videos/3j3ziw/sign-off---microwave-auction---stanley-mcchrystal"
],
"guest": "Gen. Stanley McChrystal"
},
{
"date": "2014-02-24",
"videos": [
"http://thecolbertreport.cc.com/videos/1x3cmv/intro---2-24-14",
"http://thecolbertreport.cc.com/videos/dxcy1y/blade-in-the-usa---dutch-coach-s-anti-america-rant",
"http://thecolbertreport.cc.com/videos/y1wxc3/crisis-in-ukraine",
"http://thecolbertreport.cc.com/videos/8067fc/crisis-in-ukraine---gideon-rose",
"http://thecolbertreport.cc.com/videos/2y58gs/darlene-love",
"http://thecolbertreport.cc.com/videos/illjzj/sign-off---remembering-harold-ramis"
],
"guest": "Darlene Love"
},
{
"date": "2014-02-25",
"videos": [
"http://thecolbertreport.cc.com/videos/blcgek/the-huffington-post-on-the-past-lives-of-children",
"http://thecolbertreport.cc.com/videos/uov6m4/outrage-over-military-budget-cuts",
"http://thecolbertreport.cc.com/videos/y2j7vo/the-word---jobsolete",
"http://thecolbertreport.cc.com/videos/yw875l/consumers-for-paper-options",
"http://thecolbertreport.cc.com/videos/w2zhlc/st--vincent"
],
"guest": "St. Vincent"
},
{
"date": "2014-02-26",
"videos": [
"http://thecolbertreport.cc.com/videos/7vvoyf/michelle-obama-vs--child-obesity",
"http://thecolbertreport.cc.com/videos/gs9vcz/colbert-s-very-wanted---who-took-gumby-",
"http://thecolbertreport.cc.com/videos/y307f3/fox-news-on-hillary-clinton-s-age",
"http://thecolbertreport.cc.com/videos/tb28zm/meryl-davis---charlie-white",
"http://thecolbertreport.cc.com/videos/3w27qv/sign-off---chair-twirl"
],
"guest": "Meryl Davis & Charlie White"
},
{
"date": "2014-02-27",
"videos": [
"http://thecolbertreport.cc.com/videos/11tivg/intro---2-27-14",
"http://thecolbertreport.cc.com/videos/28qta1/defeat-for-arizona-s-anti-gay-legislation",
"http://thecolbertreport.cc.com/videos/p8fj8f/black-history-month---stereotypes---racial-identity",
"http://thecolbertreport.cc.com/videos/300ry4/black-history-month---laser-klan",
"http://thecolbertreport.cc.com/videos/8ijgcp/jeff-goldblum",
"http://thecolbertreport.cc.com/videos/axkpkj/sign-off---wedding-cake"
],
"guest": "Jeff Goldblum"
},
{
"date": "2014-03-03",
"videos": [
"http://thecolbertreport.cc.com/videos/hbrhpe/magical-evening-at-the-2014-academy-awards",
"http://thecolbertreport.cc.com/videos/q8u939/phony-obamacare-horror-stories",
"http://thecolbertreport.cc.com/videos/8jpus1/phony-obamacare-horror-stories---patrick-stewart",
"http://thecolbertreport.cc.com/videos/ysbw7d/sports-illustrated-barbie",
"http://thecolbertreport.cc.com/videos/wwqhgn/caitlin-flanagan",
"http://thecolbertreport.cc.com/videos/z2x5tb/sign-off----waiting-for-godot-"
],
"guest": "Caitlin Flanagan"
},
{
"date": "2014-03-04",
"videos": [
"http://thecolbertreport.cc.com/videos/y4s2js/intro---3-4-14",
"http://thecolbertreport.cc.com/videos/avavv1/better-know-a-geopolitical-flashpoint---crimean-peninsula",
"http://thecolbertreport.cc.com/videos/r79jgq/cold-war-update---obama-s-ukraine-response",
"http://thecolbertreport.cc.com/videos/dpc49v/arizona-s-religious-freedom-bill---self-professed-gays",
"http://thecolbertreport.cc.com/videos/bjwnn1/jaron-lanier",
"http://thecolbertreport.cc.com/videos/38n33x/sign-off---shoe-answering-machine"
],
"guest": "Jaron Lanier"
},
{
"date": "2014-03-05",
"videos": [
"http://thecolbertreport.cc.com/videos/a2cnjz/intro---3-5-14",
"http://thecolbertreport.cc.com/videos/chbquj/bill-o-reilly-on-the-downside-of-a-woman-president",
"http://thecolbertreport.cc.com/videos/ak3veo/tip-wag---chevron---fda",
"http://thecolbertreport.cc.com/videos/ppqf1u/headline-news-rebrand",
"http://thecolbertreport.cc.com/videos/0exuju/beau-willimon",
"http://thecolbertreport.cc.com/videos/gexopu/sign-off---goodnight"
],
"guest": "Beau Willimon"
},
{
"date": "2014-03-06",
"videos": [
"http://thecolbertreport.cc.com/videos/mmf7np/intro---3-6-14",
"http://thecolbertreport.cc.com/videos/te4fyy/legal-upskirting-in-massachusetts",
"http://thecolbertreport.cc.com/videos/awc6am/women-s-history-month---impossible-body-standards---appetizing-beauty-products",
"http://thecolbertreport.cc.com/videos/3si7rs/warner-music-s--happy-birthday--copyright",
"http://thecolbertreport.cc.com/videos/f3jjle/theaster-gates",
"http://thecolbertreport.cc.com/videos/g6qd4x/sign-off---liberty-bell"
],
"guest": "Theaster Gates"
},
{
"date": "2014-03-10",
"videos": [
"http://thecolbertreport.cc.com/videos/ag9578/intro---3-10-14",
"http://thecolbertreport.cc.com/videos/a6f94j/cross-controversy-at-9-11-museum",
"http://thecolbertreport.cc.com/videos/bn0fy6/the-word---pew--pew--pew-",
"http://thecolbertreport.cc.com/videos/gh6urb/neil-degrasse-tyson-pt--1",
"http://thecolbertreport.cc.com/videos/42g6iq/neil-degrasse-tyson-pt--2",
"http://thecolbertreport.cc.com/videos/1bou2c/sign-off---goodnight"
],
"guest": "Neil DeGrasse Tyson"
},
{
"date": "2014-03-11",
"videos": [
"http://thecolbertreport.cc.com/videos/g08oh5/intro---3-11-14",
"http://thecolbertreport.cc.com/videos/usi00y/fan-magazine-for-pope-francis",
"http://thecolbertreport.cc.com/videos/pis5qm/the-huffington-post-s-anal-sex-bombshell",
"http://thecolbertreport.cc.com/videos/pvjhwj/the-huffington-post-s-anal-sex-bombshell---randy-ferrar",
"http://thecolbertreport.cc.com/videos/qacc88/tip-wag---u-s--department-of-justice---wall-street",
"http://thecolbertreport.cc.com/videos/nba46a/ronan-farrow",
"http://thecolbertreport.cc.com/videos/hncfzx/sign-off---pope-centerfold"
],
"guest": "Ronan Farrow"
},
{
"date": "2014-03-12",
"videos": [
"http://thecolbertreport.cc.com/videos/ut2zdq/president-obama-on--between-two-ferns-",
"http://thecolbertreport.cc.com/videos/h6q3h4/vladimir-putin-s-propaganda-machine---russia-today",
"http://thecolbertreport.cc.com/videos/i7q6ld/vladimir-putin-s-propaganda-machine---russia-today---liz-wahl",
"http://thecolbertreport.cc.com/videos/wp6hv1/nsa-s--ask-zelda--advice-column",
"http://thecolbertreport.cc.com/videos/2qsrw5/maria-shriver",
"http://thecolbertreport.cc.com/videos/i6cs26/sign-off---goodnight"
],
"guest": "Maria Shriver"
},
{
"date": "2014-03-13",
"videos": [
"http://thecolbertreport.cc.com/videos/5js43m/colorado-s-booming-marijuana-industry",
"http://thecolbertreport.cc.com/videos/a1ejoq/bears---balls---ganjapreneurs",
"http://thecolbertreport.cc.com/videos/xkuwmd/obama-s-overtime-pay-expansion",
"http://thecolbertreport.cc.com/videos/k9goh1/simon-schama",
"http://thecolbertreport.cc.com/videos/tl1mce/sign-off---goodnight"
],
"guest": "Simon Schama"
},
{
"date": "2014-03-24",
"videos": [
"http://thecolbertreport.cc.com/videos/hjb6kt/back-from-spring-break",
"http://thecolbertreport.cc.com/videos/imczen/better-know-a-district---north-carolina-s-1st---g-k--butterfield",
"http://thecolbertreport.cc.com/videos/8cy48v/malaysia-airlines--missing-plane",
"http://thecolbertreport.cc.com/videos/g4poyv/bryan-cranston",
"http://thecolbertreport.cc.com/videos/a2iw3f/sign-off---goodnight"
],
"guest": "Bryan Cranston"
},
{
"date": "2014-03-25",
"videos": [
"http://thecolbertreport.cc.com/videos/9n1euv/hugely-historic-night-with-jimmy-carter",
"http://thecolbertreport.cc.com/videos/0k0w7y/president-jimmy-carter---the-colbert-interviews",
"http://thecolbertreport.cc.com/videos/xepzs5/jimmy-carter-pt--1",
"http://thecolbertreport.cc.com/videos/t3jp2g/jimmy-carter-pt--2",
"http://thecolbertreport.cc.com/videos/uyisf5/sign-off---goodnight--carter-library"
],
"guest": "Jimmy Carter"
},
{
"date": "2014-03-26",
"videos": [
"http://thecolbertreport.cc.com/videos/1zhwtt/drunk-secret-service-agents-in-amsterdam",
"http://thecolbertreport.cc.com/videos/b6cwb3/sport-report---professional-soccer-toddler--golf-innovations---washington-redskins-charm-offensive",
"http://thecolbertreport.cc.com/videos/q8pyub/bright-prospects-for-the-gop-in-2016",
"http://thecolbertreport.cc.com/videos/mcpvbd/errol-morris",
"http://thecolbertreport.cc.com/videos/ycwnol/sign-off---goodnight"
],
"guest": "Errol Morris"
},
{
"date": "2014-03-27",
"videos": [
"http://thecolbertreport.cc.com/videos/qforig/intro---3-27-14",
"http://thecolbertreport.cc.com/videos/uqmqua/ukraine-s-dolphin-army",
"http://thecolbertreport.cc.com/videos/cabdj6/morning-news-for-millennials",
"http://thecolbertreport.cc.com/videos/srj2lz/hawaii-s-prostitution-exemption-for-cops",
"http://thecolbertreport.cc.com/videos/77oyfl/darren-aronofsky",
"http://thecolbertreport.cc.com/videos/tyuheg/sign-off---playdate-with-charlie-rose"
],
"guest": "Darren Aronofsky"
},
{
"date": "2014-03-31",
"videos": [
"http://thecolbertreport.cc.com/videos/lumbga/intro---3-31-14",
"http://thecolbertreport.cc.com/videos/3yhe9h/emoji-ethnicity",
"http://thecolbertreport.cc.com/videos/1zkr18/who-s-attacking-me-now-----cancelcolbert",
"http://thecolbertreport.cc.com/videos/35dcpo/stephen-s--cancelcolbert-mea-culpa",
"http://thecolbertreport.cc.com/videos/vj7n1j/biz-stone-pt--1",
"http://thecolbertreport.cc.com/videos/yc8huq/biz-stone-pt--2",
"http://thecolbertreport.cc.com/videos/adyesn/sign-off---bud-light-lime",
"http://thecolbertreport.cc.com/videos/p65waq/3-31-14-in--60-seconds"
],
"guest": "Biz Stone"
},
{
"date": "2014-04-01",
"videos": [
"http://thecolbertreport.cc.com/videos/3ljnpx/obamacare-victory-lap",
"http://thecolbertreport.cc.com/videos/cviqog/union-push-for-college-athletes",
"http://thecolbertreport.cc.com/videos/64v4nu/union-push-for-college-athletes---ramogi-huma",
"http://thecolbertreport.cc.com/videos/784uo8/john-malkovich",
"http://thecolbertreport.cc.com/videos/rc1p9n/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/c9xd2d/4-1-14-in--60-seconds"
],
"guest": "John Malkovich"
},
{
"date": "2014-04-02",
"videos": [
"http://thecolbertreport.cc.com/videos/zxr7i2/u-n--climate-change-report",
"http://thecolbertreport.cc.com/videos/o639ag/the-word---silent-but-deadly",
"http://thecolbertreport.cc.com/videos/1ypxfz/silicon-valley-s-cosmetic-surgery-boom",
"http://thecolbertreport.cc.com/videos/pnhs3f/dan-harris",
"http://thecolbertreport.cc.com/videos/wrxyua/sign-off---comedy-central-app"
],
"guest": "Dan Harris"
},
{
"date": "2014-04-03",
"videos": [
"http://thecolbertreport.cc.com/videos/kas793/holy-grail-discovery",
"http://thecolbertreport.cc.com/videos/n79fg2/supreme-court-ruling-on-aggregate-campaign-funding",
"http://thecolbertreport.cc.com/videos/n6lhb9/supreme-court-ruling-on-aggregate-campaign-funding---emily-bazelon",
"http://thecolbertreport.cc.com/videos/4vb00q/bill-o-reilly-s-defense-of-inequality",
"http://thecolbertreport.cc.com/videos/fgsnrb/mark-mazzetti",
"http://thecolbertreport.cc.com/videos/255jt7/sign-off---coffee-break"
],
"guest": "Mark Mazzetti"
},
{
"date": "2014-04-07",
"videos": [
"http://thecolbertreport.cc.com/videos/lz94c9/jeb-bush-on-illegal-immigrants",
"http://thecolbertreport.cc.com/videos/jjifoz/tip-wag---new-york-times--alaska-board-of-game---mazda",
"http://thecolbertreport.cc.com/videos/jvziju/matt-bevin-s-cockfighting-controversy",
"http://thecolbertreport.cc.com/videos/xj9d66/edward-frenkel",
"http://thecolbertreport.cc.com/videos/2dvxf1/sign-off---newspaper"
],
"guest": "Edward Frenkel"
},
{
"date": "2014-04-08",
"videos": [
"http://thecolbertreport.cc.com/videos/m6pj8n/intro---4-8-14",
"http://thecolbertreport.cc.com/videos/wpor0d/america-s-uninformed-opinion-on-ukraine",
"http://thecolbertreport.cc.com/videos/ncl2k5/cia-interrogation-report",
"http://thecolbertreport.cc.com/videos/nemi1a/common-core-confusion",
"http://thecolbertreport.cc.com/videos/uyjkgv/jane-goodall",
"http://thecolbertreport.cc.com/videos/2v7871/sign-off---cheers"
],
"guest": "Jane Goodall"
},
{
"date": "2014-04-09",
"videos": [
"http://thecolbertreport.cc.com/videos/53uymc/intro---4-9-14",
"http://thecolbertreport.cc.com/videos/o3rniz/heartbleed-internet-bug",
"http://thecolbertreport.cc.com/videos/8a5aao/brendan-eich-s-forced-resignation",
"http://thecolbertreport.cc.com/videos/3pg0sn/brendan-eich-s-forced-resignation---andrew-sullivan",
"http://thecolbertreport.cc.com/videos/l9zuu1/obama-s-equal-pay-orders",
"http://thecolbertreport.cc.com/videos/wr794b/sheryl-sandberg",
"http://thecolbertreport.cc.com/videos/mroadr/sign-off---goodnight"
],
"guest": "Sheryl Sandberg"
},
{
"date": "2014-04-10",
"videos": [
"http://thecolbertreport.cc.com/videos/k436zi/david-letterman-s-retirement",
"http://thecolbertreport.cc.com/videos/kv1taq/cheating-death---depression-edition",
"http://thecolbertreport.cc.com/videos/3a9611/bill-o-reilly-on-america-s--grievance-industry-",
"http://thecolbertreport.cc.com/videos/yi8cxa/sting"
],
"guest": "Sting"
},
{
"date": "2014-04-21",
"videos": [
"http://thecolbertreport.cc.com/videos/1tyawq/intro---4-21-14",
"http://thecolbertreport.cc.com/videos/0w61r2/al-qaeda-s-overly-public-pep-rally",
"http://thecolbertreport.cc.com/videos/055g6r/hillary-clinton-s-grandmother-status",
"http://thecolbertreport.cc.com/videos/7d5y74/stephen-colbert-s-bats--t-serious---hillary-clinton-shoe-spiracy-theory",
"http://thecolbertreport.cc.com/videos/hls49q/extreme-measures-for-boosting-church-attendance",
"http://thecolbertreport.cc.com/videos/p5o99a/ken-burns",
"http://thecolbertreport.cc.com/videos/v2nud8/sign-off---goodnight"
],
"guest": "Ken Burns"
},
{
"date": "2014-04-22",
"videos": [
"http://thecolbertreport.cc.com/videos/t2msi7/intro---4-22-14",
"http://thecolbertreport.cc.com/videos/1j1m90/postage-stamp-for-harvey-milk",
"http://thecolbertreport.cc.com/videos/0bsy88/better-know-a-district---california-s-29th",
"http://thecolbertreport.cc.com/videos/kg42wy/bad-news-for-ethanol-on-earth-day",
"http://thecolbertreport.cc.com/videos/yeczpa/george-will",
"http://thecolbertreport.cc.com/videos/0b7ymc/sign-off---goodnight"
],
"guest": "George Will"
},
{
"date": "2014-04-23",
"videos": [
"http://thecolbertreport.cc.com/videos/vnbuc3/intro---4-23-14",
"http://thecolbertreport.cc.com/videos/8l716g/canada-s-booming-middle-class",
"http://thecolbertreport.cc.com/videos/tn3469/sport-report---snacks-for-students---cockfighting",
"http://thecolbertreport.cc.com/videos/lz21l6/america-s-lime-crisis",
"http://thecolbertreport.cc.com/videos/g5cgj8/john-calipari",
"http://thecolbertreport.cc.com/videos/6glbo4/sign-off---goodnight"
],
"guest": "John Calipari"
},
{
"date": "2014-04-24",
"videos": [
"http://thecolbertreport.cc.com/videos/2c27q9/supreme-court-affirmative-action-ruling",
"http://thecolbertreport.cc.com/videos/ehanpl/the-ballad-of-cliven-bundy",
"http://thecolbertreport.cc.com/videos/5mf7zk/phyllis-schlafly-vs--equal-pay-for-women",
"http://thecolbertreport.cc.com/videos/ufdzm1/george-saunders",
"http://thecolbertreport.cc.com/videos/vtuwb7/sign-off---country-boy"
],
"guest": "George Saunders"
},
{
"date": "2014-04-28",
"videos": [
"http://thecolbertreport.cc.com/videos/6fq0xa/popechella",
"http://thecolbertreport.cc.com/videos/yhq2cw/preventable-diseases-on-the-rise",
"http://thecolbertreport.cc.com/videos/svsc0q/preventable-diseases-on-the-rise---paul-offit",
"http://thecolbertreport.cc.com/videos/5my1ja/outrage-over-obama-s-bowing",
"http://thecolbertreport.cc.com/videos/i1lidr/michael-mcfaul",
"http://thecolbertreport.cc.com/videos/gu3d7a/sign-off----deadly-choices-"
],
"guest": "Michael McFaul"
},
{
"date": "2014-04-29",
"videos": [
"http://thecolbertreport.cc.com/videos/cxn6h3/intro---4-29-14",
"http://thecolbertreport.cc.com/videos/jfz395/donald-sterling-s-racist-comments",
"http://thecolbertreport.cc.com/videos/td7npw/tip-wag---j-j--abrams---u-s--congress",
"http://thecolbertreport.cc.com/videos/8pyjlg/clemency-push-for-drug-convicts",
"http://thecolbertreport.cc.com/videos/eyae6k/robert-rodriguez",
"http://thecolbertreport.cc.com/videos/11mf9t/sign-off---goodnight"
],
"guest": "Robert Rodriguez"
},
{
"date": "2014-04-30",
"videos": [
"http://thecolbertreport.cc.com/videos/kdwdgq/intro---4-30-14",
"http://thecolbertreport.cc.com/videos/6lmqu6/president-assad-s-reelection-bid",
"http://thecolbertreport.cc.com/videos/so1kau/republican-advantage-in-the-2014-midterms",
"http://thecolbertreport.cc.com/videos/2nuw76/republican-advantage-in-the-2014-midterms---clay-aiken",
"http://thecolbertreport.cc.com/videos/tfpj0x/america-s-first-lesbian-throuple",
"http://thecolbertreport.cc.com/videos/fs6gac/audra-mcdonald"
],
"guest": "Audra McDonald"
},
{
"date": "2014-05-01",
"videos": [
"http://thecolbertreport.cc.com/videos/798k8c/-watters--world-",
"http://thecolbertreport.cc.com/videos/1e524e/-watters--world----tad-s-turf",
"http://thecolbertreport.cc.com/videos/zbjl95/cnn-s-endless-wait-for-flight-370-news",
"http://thecolbertreport.cc.com/videos/hji3d3/saul-williams",
"http://thecolbertreport.cc.com/videos/ie7s2m/saul-williams----amethyst-rocks-"
],
"guest": "Saul Williams"
},
{
"date": "2014-05-05",
"videos": [
"http://thecolbertreport.cc.com/videos/unhuhc/intro---5-5-14",
"http://thecolbertreport.cc.com/videos/oxvwlw/nancy-pelosi-s-cinco-de-mayo-celebration",
"http://thecolbertreport.cc.com/videos/0hu2aq/better-know-a-district---virginia-s-3rd",
"http://thecolbertreport.cc.com/videos/fo52kn/kareem-abdul-jabbar-on-racism-and-ghosts",
"http://thecolbertreport.cc.com/videos/c0s4ec/edward-o--wilson",
"http://thecolbertreport.cc.com/videos/4tegd5/sign-off---goodnight"
],
"guest": "Edward O. Wilson"
},
{
"date": "2014-05-06",
"videos": [
"http://thecolbertreport.cc.com/videos/pnqv06/intro---5-6-14",
"http://thecolbertreport.cc.com/videos/khlwzq/rand-paul-s-derby-date-with-rupert-murdoch",
"http://thecolbertreport.cc.com/videos/s4me1v/nra-annual-meeting---guns-everywhere-in-georgia",
"http://thecolbertreport.cc.com/videos/zekn1k/satanic-monument-for-the-oklahoma-state-house",
"http://thecolbertreport.cc.com/videos/iihdkg/bette-midler",
"http://thecolbertreport.cc.com/videos/n572qd/sign-off---nightcap"
],
"guest": "Bette Midler"
},
{
"date": "2014-05-07",
"videos": [
"http://thecolbertreport.cc.com/videos/1ztozi/intro---5-7-14",
"http://thecolbertreport.cc.com/videos/p4t1a2/vibrant-constipation-pill",
"http://thecolbertreport.cc.com/videos/ywt77c/tip-wag---herald-embroidery--bug-scientists---dana-perino",
"http://thecolbertreport.cc.com/videos/2u61x6/ukraine-in-the-membrane",
"http://thecolbertreport.cc.com/videos/uz2nio/david-remnick",
"http://thecolbertreport.cc.com/videos/q5zpsy/sign-off---goodnight"
],
"guest": "David Remnick"
},
{
"date": "2014-05-08",
"videos": [
"http://thecolbertreport.cc.com/videos/84cvwk/exclusive---better-know-a-challenger---florida-s-3rd---jake-rush",
"http://thecolbertreport.cc.com/videos/1u7a5d/vampire-for-congress-in-florida",
"http://thecolbertreport.cc.com/videos/vkcose/better-know-a-challenger---florida-s-3rd---jake-rush",
"http://thecolbertreport.cc.com/videos/8jno3s/stu-varney-among-the-common-people",
"http://thecolbertreport.cc.com/videos/m2n3c9/ellen-page",
"http://thecolbertreport.cc.com/videos/u05pdf/sign-off---spinning-top"
],
"guest": "Ellen Page"
},
{
"date": "2014-05-12",
"videos": [
"http://thecolbertreport.cc.com/videos/nnz78u/michael-sam-s-nfl-draft-kiss",
"http://thecolbertreport.cc.com/videos/g2hf60/stephen-colbert-s-bats--t-serious---monica-lewinsky-s-conveniently-timed-essay",
"http://thecolbertreport.cc.com/videos/2j80wh/glenn-greenwald-pt--1",
"http://thecolbertreport.cc.com/videos/31s76v/glenn-greenwald-pt--2",
"http://thecolbertreport.cc.com/videos/xovmc1/sign-off---penalty-whistle"
],
"guest": "Glenn Greenwald"
},
{
"date": "2014-05-13",
"videos": [
"http://thecolbertreport.cc.com/videos/wn13ym/pope-francis-s-crusade-against-capitalism",
"http://thecolbertreport.cc.com/videos/vmje6p/-bringbackourgirls",
"http://thecolbertreport.cc.com/videos/2rgt3x/-bringbackourgirls---rosemary-nyirumbe",
"http://thecolbertreport.cc.com/videos/jrmo9v/koch-brothers-vs--the-columbus-zoo",
"http://thecolbertreport.cc.com/videos/s46r2u/the-black-keys",
"http://thecolbertreport.cc.com/videos/7bxzr7/sign-off---sisters-united-bags"
],
"guest": "The Black Keys"
},
{
"date": "2014-05-14",
"videos": [
"http://thecolbertreport.cc.com/videos/mwq7dh/intro---5-14-14",
"http://thecolbertreport.cc.com/videos/5ob1j2/pope-francis-on-baptizing-martians",
"http://thecolbertreport.cc.com/videos/k6jlhl/the-word---f--k-it",
"http://thecolbertreport.cc.com/videos/4a4ahs/amazon-s-audacious-photography-patent",
"http://thecolbertreport.cc.com/videos/hffa7o/keri-russell",
"http://thecolbertreport.cc.com/videos/2b3fgm/sign-off---goodnight"
],
"guest": "Keri Russell"
},
{
"date": "2014-05-15",
"videos": [
"http://thecolbertreport.cc.com/videos/bvzi2n/vladimir-putin-s-space-station-ban",
"http://thecolbertreport.cc.com/videos/pb1byh/karl-rove-on-hillary-clinton-s-health",
"http://thecolbertreport.cc.com/videos/o2wt62/morality-lessons-for-robots",
"http://thecolbertreport.cc.com/videos/lmgmhg/thomas-friedman",
"http://thecolbertreport.cc.com/videos/z8ndeb/sign-off---mirror"
],
"guest": "Thomas Friedman"
},
{
"date": "2014-05-19",
"videos": [
"http://thecolbertreport.cc.com/videos/r5l7zc/intro---5-19-14",
"http://thecolbertreport.cc.com/videos/el90zp/co-ed-lab-rats",
"http://thecolbertreport.cc.com/videos/7oum5k/elizabeth-warren-vs--wall-street",
"http://thecolbertreport.cc.com/videos/7sujj3/colbert-report-consumer-alert---jerky-blaster",
"http://thecolbertreport.cc.com/videos/79q9bs/elizabeth-warren",
"http://thecolbertreport.cc.com/videos/igbz3e/sign-off---goodnight"
],
"guest": "Elizabeth Warren"
},
{
"date": "2014-05-20",
"videos": [
"http://thecolbertreport.cc.com/videos/oimxrw/china-s-cyber-spies",
"http://thecolbertreport.cc.com/videos/zfayee/the-gop-s-gloves-off-approach-to-hillary-clinton",
"http://thecolbertreport.cc.com/videos/dbim9j/google-and-the-right-to-be-forgotten",
"http://thecolbertreport.cc.com/videos/zopbx2/matthew-weiner",
"http://thecolbertreport.cc.com/videos/g4ax73/sign-off---goodbye-kiss"
],
"guest": "Matt Weiner"
},
{
"date": "2014-05-21",
"videos": [
"http://thecolbertreport.cc.com/videos/6uijkp/tea-party-defeat-in-the-gop-primaries",
"http://thecolbertreport.cc.com/videos/sk5fyk/idaho-s-bizarre-gubernatorial-debate",
"http://thecolbertreport.cc.com/videos/zn3est/mers-virus-in-america",
"http://thecolbertreport.cc.com/videos/xnk3xl/patrick-stewart",
"http://thecolbertreport.cc.com/videos/8pgnos/sign-off---goodnight"
],
"guest": "Patrick Stewart"
},
{
"date": "2014-05-22",
"videos": [
"http://thecolbertreport.cc.com/videos/7q56w3/intro---5-22-14",
"http://thecolbertreport.cc.com/videos/ouzxbu/va-hospital-outrage",
"http://thecolbertreport.cc.com/videos/s6rmi7/va-hospital-outrage---paul-rieckhoff",
"http://thecolbertreport.cc.com/videos/74fcac/marco-rubio-s-hazy-marijuana-history",
"http://thecolbertreport.cc.com/videos/b40eb0/ray-mabus",
"http://thecolbertreport.cc.com/videos/764wvl/sign-off---goodnight-and-good-week"
],
"guest": "Ray Mabus"
},
{
"date": "2014-06-02",
"videos": [
"http://thecolbertreport.cc.com/videos/xtbsgf/obama-s-prisoner-exchange-with-the-taliban",
"http://thecolbertreport.cc.com/videos/i8fthl/difference-makers---doug-varrieur",
"http://thecolbertreport.cc.com/videos/oq97o4/thomas-piketty-vs--billionaire-heroes",
"http://thecolbertreport.cc.com/videos/e301vf/thomas-piketty",
"http://thecolbertreport.cc.com/videos/lyrlrc/sign-off---goatee"
],
"guest": "Thomas Piketty"
},
{
"date": "2014-06-03",
"videos": [
"http://thecolbertreport.cc.com/videos/o4pou7/intro---6-3-14",
"http://thecolbertreport.cc.com/videos/u6nqsd/open-carry-backlash",
"http://thecolbertreport.cc.com/videos/57iigb/obama-s-global-warming-initiative",
"http://thecolbertreport.cc.com/videos/ifxi76/obama-s-global-warming-initiative---dan-esty",
"http://thecolbertreport.cc.com/videos/vf38fj/medicare-coverage-for-sex-change-surgery",
"http://thecolbertreport.cc.com/videos/ttwu42/morgan-freeman",
"http://thecolbertreport.cc.com/videos/qmezm2/sign-off---goodnight"
],
"guest": "Morgan Freeman"
},
{
"date": "2014-06-04",
"videos": [
"http://thecolbertreport.cc.com/videos/yuxdmx/the-perils-of-girly-hurricanes",
"http://thecolbertreport.cc.com/videos/ukf9gv/amazon-vs--hachette",
"http://thecolbertreport.cc.com/videos/t1nxwu/amazon-vs--hachette---sherman-alexie",
"http://thecolbertreport.cc.com/videos/w5wvxu/the-colbert-report-s-unintended-educational-value",
"http://thecolbertreport.cc.com/videos/olnbg3/jonah-hill",
"http://thecolbertreport.cc.com/videos/k89vi0/sign-off----california-"
],
"guest": "Jonah Hill"
},
{
"date": "2014-06-05",
"videos": [
"http://thecolbertreport.cc.com/videos/7fyrr9/intro---6-5-14",
"http://thecolbertreport.cc.com/videos/hfogr3/bergdghazi",
"http://thecolbertreport.cc.com/videos/2408x6/sport-report---mushroom-sports-drink--nfl-pill-pushers---rio-de-janeiro-s-olympic-problems",
"http://thecolbertreport.cc.com/videos/q8dzb2/the-drudge-report-on-hillary-clinton-s--walker-",
"http://thecolbertreport.cc.com/videos/muek3m/chrissie-hynde"
],
"guest": "Chrissie Hynde"
},
{
"date": "2014-06-09",
"videos": [
"http://thecolbertreport.cc.com/videos/tpxhoo/scott-fistler-s--cesar-chavez--strategy",
"http://thecolbertreport.cc.com/videos/7uozsl/fox-news-s-war-on-bowe-bergdahl",
"http://thecolbertreport.cc.com/videos/uyh5xo/craziest-f--king-thing-i-ve-ever-heard---vincent-van-gogh-s-reanimated-ear",
"http://thecolbertreport.cc.com/videos/allxmi/esther-perel",
"http://thecolbertreport.cc.com/videos/x78nyg/sign-off---goodnight"
],
"guest": "Esther Perel"
},
{
"date": "2014-06-10",
"videos": [
"http://thecolbertreport.cc.com/videos/gdbreq/turing-test-breakthrough",
"http://thecolbertreport.cc.com/videos/p8wqsa/the-enemy-within---bina-the-activist-android",
"http://thecolbertreport.cc.com/videos/n30nzb/sport-report---swimming-pools-for-football-fans---governors--hockey-wager",
"http://thecolbertreport.cc.com/videos/2lc1uv/john-waters",
"http://thecolbertreport.cc.com/videos/dxz774/sign-off---goodnight"
],
"guest": "John Waters"
},
{
"date": "2014-06-11",
"videos": [
"http://thecolbertreport.cc.com/videos/s8uwwo/intro---6-11-14",
"http://thecolbertreport.cc.com/videos/1d3kl4/eric-cantor-s-shocking-defeat",
"http://thecolbertreport.cc.com/videos/m87g43/the-word---debt-or-prison",
"http://thecolbertreport.cc.com/videos/2kgoki/rob-rhinehart",
"http://thecolbertreport.cc.com/videos/6v0f1z/sign-off---spiked-drink"
],
"guest": "Rob Rhinehart"
},
{
"date": "2014-06-12",
"videos": [
"http://thecolbertreport.cc.com/videos/iywdca/amazon-s-scorched-earth-tactics-and-edan-lepucki-s--california-",
"http://thecolbertreport.cc.com/videos/4n51kp/tip-wag---ted-cruz---led-zeppelin",
"http://thecolbertreport.cc.com/videos/0z44gm/sport-report---team-usa-vs--the-group-of-death---hans-beinholtz-on-the-world-cup",
"http://thecolbertreport.cc.com/videos/sqbqhw/james-webb",
"http://thecolbertreport.cc.com/videos/pjws58/sign-off---necktie"
],
"guest": "James Webb"
},
{
"date": "2014-06-16",
"videos": [
"http://thecolbertreport.cc.com/videos/6mpwy3/isis-militants-in-iraq",
"http://thecolbertreport.cc.com/videos/wlnavl/isis-militants-in-iraq---ben-van-heuvelen",
"http://thecolbertreport.cc.com/videos/eozrlj/racial-perceptions-and-economic-stress",
"http://thecolbertreport.cc.com/videos/n3etz1/ta-nehisi-coates",
"http://thecolbertreport.cc.com/videos/200z2y/sign-off---hand-mirror"
],
"guest": "Ta-Nehisi Coates"
},
{
"date": "2014-06-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ddo89r/world-cup-victory-for-team-usa",
"http://thecolbertreport.cc.com/videos/xoa360/the-word---a-darker-shade-of-pale",
"http://thecolbertreport.cc.com/videos/qpaogb/majority-support-for-same-sex-marriage",
"http://thecolbertreport.cc.com/videos/8buw4s/david-boies---theodore-b--olson",
"http://thecolbertreport.cc.com/videos/4gkwgg/sign-off---foam-finger"
],
"guest": "David Boies & Theodore B. Olson"
},
{
"date": "2014-06-18",
"videos": [
"http://thecolbertreport.cc.com/videos/exebzv/intro---6-18-14",
"http://thecolbertreport.cc.com/videos/hgs925/arrest-of-benghazi-terror-mastermind",
"http://thecolbertreport.cc.com/videos/a1yfmv/hillary-clinton-vs--the-rnc-squirrel",
"http://thecolbertreport.cc.com/videos/qj2x93/thad-cochran-on-doing-indecent-things-with-animals",
"http://thecolbertreport.cc.com/videos/3ul9zn/katty-kay---claire-shipman",
"http://thecolbertreport.cc.com/videos/och071/sign-off---goodnight"
],
"guest": "Katty Kay & Claire Shipman"
},
{
"date": "2014-06-19",
"videos": [
"http://thecolbertreport.cc.com/videos/gt99v3/the-iraq-pack",
"http://thecolbertreport.cc.com/videos/445utq/thought-for-food---domino-s-smart-slice---doritos-jacked",
"http://thecolbertreport.cc.com/videos/cbr3yz/-yo--smartphone-app",
"http://thecolbertreport.cc.com/videos/3abzv4/jay-carney",
"http://thecolbertreport.cc.com/videos/h0b8ou/sign-off---goodnight"
],
"guest": "Jay Carney"
},
{
"date": "2014-06-23",
"videos": [
"http://thecolbertreport.cc.com/videos/7bqhfd/team-usa-s-tragic-tie-with-portugal",
"http://thecolbertreport.cc.com/videos/k8orr2/obama-s-response-to-isis-in-iraq---mark-mazzetti",
"http://thecolbertreport.cc.com/videos/72elnv/jeremy-meeks-s-handsome-mug-shot",
"http://thecolbertreport.cc.com/videos/07oysy/john-green",
"http://thecolbertreport.cc.com/videos/mwnvtk/sign-off---goodnight"
],
"guest": "John Green"
},
{
"date": "2014-06-24",
"videos": [
"http://thecolbertreport.cc.com/videos/tmjbzp/intro---6-24-14",
"http://thecolbertreport.cc.com/videos/ee0zj7/isis-invades-hashtagistan",
"http://thecolbertreport.cc.com/videos/bveu0w/tip-wag---fda---ben---jerry-s",
"http://thecolbertreport.cc.com/videos/bu43e8/new-york-s-ban-on-tiger-selfies",
"http://thecolbertreport.cc.com/videos/bo739z/edie-falco",
"http://thecolbertreport.cc.com/videos/hgf6rh/sign-off---goodnight"
],
"guest": "Edie Falco"
},
{
"date": "2014-06-25",
"videos": [
"http://thecolbertreport.cc.com/videos/rpnj8s/obama-s-chipotle-blunder",
"http://thecolbertreport.cc.com/videos/glsyx9/stephen-colbert-s-bats--t-serious---child-immigrant-intrigue",
"http://thecolbertreport.cc.com/videos/nx3ix1/stephen-colbert-s-bats--t-serious---child-immigrant-intrigue---john-burnett",
"http://thecolbertreport.cc.com/videos/rki77c/primary-victory-for-thad-cochran",
"http://thecolbertreport.cc.com/videos/rn2gd8/eleanor-holmes-norton",
"http://thecolbertreport.cc.com/videos/q6den3/sign-off---goodnight"
],
"guest": "Rep. Eleanor Holmes Norton"
},
{
"date": "2014-06-26",
"videos": [
"http://thecolbertreport.cc.com/videos/suqg0f/stephen-colbert-s-bats--t-serious---the-vast-government-soccer-conspiracy",
"http://thecolbertreport.cc.com/videos/autzis/tip-wag---north-carolina-state-legislature---cereal-manufacturers",
"http://thecolbertreport.cc.com/videos/jrdas9/paul-rudd-pt--1",
"http://thecolbertreport.cc.com/videos/rb9bo7/paul-rudd-pt--2",
"http://thecolbertreport.cc.com/videos/8vp2bp/sign-off---so-long-for-two-weeks"
],
"guest": "Paul Rudd"
},
{
"date": "2014-07-14",
"videos": [
"http://thecolbertreport.cc.com/videos/fy2b19/intro---7-14-14",
"http://thecolbertreport.cc.com/videos/9cspva/world-cup-recap",
"http://thecolbertreport.cc.com/videos/mlyvqh/thank-you--racism---boehner-v--obama",
"http://thecolbertreport.cc.com/videos/xivy3m/hobby-lobby-case",
"http://thecolbertreport.cc.com/videos/9nzwjt/vessyl-digital-cup",
"http://thecolbertreport.cc.com/videos/6cvwe6/jad-abumrad---robert-krulwich",
"http://thecolbertreport.cc.com/videos/rpfaco/sign-off---goodnight"
],
"guest": "Jad Abumrad, Robert Krulwich"
},
{
"date": "2014-07-15",
"videos": [
"http://thecolbertreport.cc.com/videos/nnucn6/obama-s-senioritis",
"http://thecolbertreport.cc.com/videos/f0uh68/threatdown---all-bear-edition",
"http://thecolbertreport.cc.com/videos/08a2dg/vint-cerf-pt--1",
"http://thecolbertreport.cc.com/videos/x9hnxr/vint-cerf-pt--2",
"http://thecolbertreport.cc.com/videos/dixoxg/sign-off---goodnight"
],
"guest": "Vint Cerf"
},
{
"date": "2014-07-16",
"videos": [
"http://thecolbertreport.cc.com/videos/anklfa/intro---7-16-14",
"http://thecolbertreport.cc.com/videos/53n0nf/conservative-contempt-for-bill-de-blasio",
"http://thecolbertreport.cc.com/videos/cbs1n7/rick-perry-s-makeover---uncensored",
"http://thecolbertreport.cc.com/videos/1flr4c/filling-captain-america-s-shoes---joe-quesada",
"http://thecolbertreport.cc.com/videos/ypm476/bill-de-blasio",
"http://thecolbertreport.cc.com/videos/slmbh6/sign-off----captain-america-"
],
"guest": "Mayor Bill de Blasio"
},
{
"date": "2014-07-17",
"videos": [
"http://thecolbertreport.cc.com/videos/ket4ms/malaysia-airlines-crash---hamas-israel-violence",
"http://thecolbertreport.cc.com/videos/z3gi0q/questionable-compassion-for-child-immigrants",
"http://thecolbertreport.cc.com/videos/bfvmgh/coal-rolling",
"http://thecolbertreport.cc.com/videos/70ezhu/steven-m--wise",
"http://thecolbertreport.cc.com/videos/n00bpi/sign-off---soot-blast"
],
"guest": "Steven Wise"
},
{
"date": "2014-07-21",
"videos": [
"http://thecolbertreport.cc.com/videos/qimhj6/intro---7-21-14",
"http://thecolbertreport.cc.com/videos/n71mkf/world-news-wrap-up",
"http://thecolbertreport.cc.com/videos/8e5dyu/colbert-nation-vs--amazon---edan-lepucki",
"http://thecolbertreport.cc.com/videos/egw3ua/nancy-pelosi-pt--1",
"http://thecolbertreport.cc.com/videos/q8mj7b/nancy-pelosi-pt--2",
"http://thecolbertreport.cc.com/videos/98szje/sign-off----sweetness--9-"
],
"guest": "Rep. Nancy Pelosi"
},
{
"date": "2014-07-22",
"videos": [
"http://thecolbertreport.cc.com/videos/a6s2qu/rep--steve-pearce-s-fact-finding-mission-in-central-america",
"http://thecolbertreport.cc.com/videos/d24npe/rising-calls-for-obama-s-impeachment",
"http://thecolbertreport.cc.com/videos/stx9ln/rising-calls-for-obama-s-impeachment---p-k--winsome",
"http://thecolbertreport.cc.com/videos/qf023x/rory-mcilroy-and-caroline-wozniacki-s-post-breakup-triumph",
"http://thecolbertreport.cc.com/videos/1872w0/julia-ioffe",
"http://thecolbertreport.cc.com/videos/rxjlpc/sign-off---p-k--winsome"
],
"guest": "Julia Ioffe"
},
{
"date": "2014-07-23",
"videos": [
"http://thecolbertreport.cc.com/videos/74ly7x/housing-crisis-for-child-immigrants",
"http://thecolbertreport.cc.com/videos/w0dhco/six-californias",
"http://thecolbertreport.cc.com/videos/rmgh1u/six-californias---tim-draper",
"http://thecolbertreport.cc.com/videos/qb2d4f/lowe-s-vs--veterans-affairs",
"http://thecolbertreport.cc.com/videos/a368r9/mary-mazzio---oscar-vazquez",
"http://thecolbertreport.cc.com/videos/8nsg9g/sign-off---goodnight"
],
"guest": "Mary Mazzio, Oscar Vazquez"
},
{
"date": "2014-07-24",
"videos": [
"http://thecolbertreport.cc.com/videos/9bfzta/darth-vader-for-president",
"http://thecolbertreport.cc.com/videos/br4k5m/tip-wag----true-blood----washington--d-c---court-of-appeals",
"http://thecolbertreport.cc.com/videos/o26y1r/elon-musk-pt--1",
"http://thecolbertreport.cc.com/videos/s4aaoq/elon-musk-pt--2",
"http://thecolbertreport.cc.com/videos/baab8l/exclusive---elon-musk-discusses-mars",
"http://thecolbertreport.cc.com/videos/9pmgk5/sign-off---goodnight"
],
"guest": "Elon Musk"
},
{
"date": "2014-07-28",
"videos": [
"http://thecolbertreport.cc.com/videos/99fqm5/magical-afternoon-at-comic-con",
"http://thecolbertreport.cc.com/videos/yxerhp/the-word---see-no-equal",
"http://thecolbertreport.cc.com/videos/c8gyzb/-kim-kardashian--hollywood--game",
"http://thecolbertreport.cc.com/videos/me3jxh/beck"
],
"guest": "Beck"
},
{
"date": "2014-07-29",
"videos": [
"http://thecolbertreport.cc.com/videos/go3xsz/stephen-colbert-s-i-need-a-drink",
"http://thecolbertreport.cc.com/videos/zo7j8y/the-sarah-palin-channel",
"http://thecolbertreport.cc.com/videos/oeurov/jon-batiste-and-stay-human",
"http://thecolbertreport.cc.com/videos/84mh53/sign-off---jon-batiste-and-stay-human"
],
"guest": "Jon Batiste & Stay Human"
},
{
"date": "2014-07-30",
"videos": [
"http://thecolbertreport.cc.com/videos/vy7myr/orlando-bloom-s-altercation-with-justin-bieber",
"http://thecolbertreport.cc.com/videos/mfm78m/corporate-inversions",
"http://thecolbertreport.cc.com/videos/gv7xvj/corporate-inversions---allan-sloan",
"http://thecolbertreport.cc.com/videos/psbsuw/naked-tv",
"http://thecolbertreport.cc.com/videos/lb70bp/james-franco",
"http://thecolbertreport.cc.com/videos/n2673s/sign-off---goodnight"
],
"guest": "James Franco"
},
{
"date": "2014-07-31",
"videos": [
"http://thecolbertreport.cc.com/videos/dwf82q/women-on-american-currency",
"http://thecolbertreport.cc.com/videos/cruj3s/the-conflict-over-covering-the-conflict-in-gaza",
"http://thecolbertreport.cc.com/videos/m4juon/tip-wag---beelzebub---nasa",
"http://thecolbertreport.cc.com/videos/2mpwlv/campbell-brown",
"http://thecolbertreport.cc.com/videos/26ag1q/sign-off---monitoring-system"
],
"guest": "Campbell Brown"
},
{
"date": "2014-08-04",
"videos": [
"http://thecolbertreport.cc.com/videos/zcyj0l/40th-anniversary-of-nixon-s-resignation",
"http://thecolbertreport.cc.com/videos/9hxmyy/a-nation-betrayed---a-fond-look-back---74",
"http://thecolbertreport.cc.com/videos/c505xx/pat-buchanan",
"http://thecolbertreport.cc.com/videos/ecplh0/john-w--dean",
"http://thecolbertreport.cc.com/videos/jg7vda/sign-off---retrospectacular",
"http://thecolbertreport.cc.com/videos/2kctj0/exclusive---pat-buchanan"
],
"guest": "Pat Buchanan, John W. Dean"
},
{
"date": "2014-08-05",
"videos": [
"http://thecolbertreport.cc.com/videos/eu8j9u/open-carry-trailblazers",
"http://thecolbertreport.cc.com/videos/imtefo/-hard-choices----hillary-clinton",
"http://thecolbertreport.cc.com/videos/8tvtmw/language-lessons-from-america-s-senior-citizens",
"http://thecolbertreport.cc.com/videos/wb06vr/james-cameron",
"http://thecolbertreport.cc.com/videos/tovjr3/sign-off---goodnight"
],
"guest": "James Cameron"
},
{
"date": "2014-08-06",
"videos": [
"http://thecolbertreport.cc.com/videos/v652g6/smile-file---kim-jong-un-at-the-lube-factory",
"http://thecolbertreport.cc.com/videos/mrntln/rand-paul-s-hasty-exit",
"http://thecolbertreport.cc.com/videos/82nvgq/news-anchor-baby",
"http://thecolbertreport.cc.com/videos/gn8hz0/michael-fassbender"
],
"guest": "Michael Fassbender"
},
{
"date": "2014-08-07",
"videos": [
"http://thecolbertreport.cc.com/videos/2mrfmc/intro---8-7-14",
"http://thecolbertreport.cc.com/videos/bmd26v/vladimir-putin-s-food-sanctions",
"http://thecolbertreport.cc.com/videos/nm2atj/ebola-panic",
"http://thecolbertreport.cc.com/videos/7a9ir7/the-in-box---blt-vs--club",
"http://thecolbertreport.cc.com/videos/ddvyto/brian-chesky",
"http://thecolbertreport.cc.com/videos/dc3x0v/sign-off---bourbon-and-chicken"
],
"guest": "Brian Chesky"
},
{
"date": "2014-08-26",
"videos": [
"http://thecolbertreport.cc.com/videos/xfa2tc/intro---8-26-14",
"http://thecolbertreport.cc.com/videos/pupsy6/better-know-a-district---ohio-s-11th---marcia-fudge-pt--1",
"http://thecolbertreport.cc.com/videos/llmmz6/better-know-a-district---ohio-s-11th---marcia-fudge-pt--2",
"http://thecolbertreport.cc.com/videos/crpfrn/jeff-bridges---lois-lowry",
"http://thecolbertreport.cc.com/videos/30umwt/sign-off---goodnight"
],
"guest": "Jeff Bridges, Lois Lowry"
},
{
"date": "2014-08-27",
"videos": [
"http://thecolbertreport.cc.com/videos/12kfzg/intro---8-27-14",
"http://thecolbertreport.cc.com/videos/4komvc/outrage-in-ferguson",
"http://thecolbertreport.cc.com/videos/h1itnw/outrage-in-ferguson---a-national-conversation-on-race",
"http://thecolbertreport.cc.com/videos/8ye61k/scrabble-s-updated-dictionary",
"http://thecolbertreport.cc.com/videos/v6x4qn/michael-sheen",
"http://thecolbertreport.cc.com/videos/4g1qgo/sign-off---welcome-baby-eva-"
],
"guest": "Michael Sheen"
},
{
"date": "2014-08-28",
"videos": [
"http://thecolbertreport.cc.com/videos/2x4lop/isis-panic",
"http://thecolbertreport.cc.com/videos/yr7egy/isis-panic---announcing-reagan-s-return",
"http://thecolbertreport.cc.com/videos/bac98y/vapshot-alcohol-vaporizer",
"http://thecolbertreport.cc.com/videos/vmcz6o/jr",
"http://thecolbertreport.cc.com/videos/q6o47f/sign-off---goodnight"
],
"guest": "JR"
},
{
"date": "2014-09-02",
"videos": [
"http://thecolbertreport.cc.com/videos/7ohwx8/celebrity-nude-photo-scandal",
"http://thecolbertreport.cc.com/videos/kc4ojp/police-militarization-in-america",
"http://thecolbertreport.cc.com/videos/ukyqb3/police-militarization-in-america---norm-stamper",
"http://thecolbertreport.cc.com/videos/xuzel5/good-news-for-sleep-deprived-teens",
"http://thecolbertreport.cc.com/videos/sximkb/mandy-patinkin",
"http://thecolbertreport.cc.com/videos/hpkdp0/sign-off---goodnight"
],
"guest": "Mandy Patinkin"
},
{
"date": "2014-09-03",
"videos": [
"http://thecolbertreport.cc.com/videos/mrdb7o/intro---9-3-14",
"http://thecolbertreport.cc.com/videos/v7c4zm/obama-s-isis-strategy",
"http://thecolbertreport.cc.com/videos/2ccwew/obama-s-isis-strategy---frank-underwood",
"http://thecolbertreport.cc.com/videos/r6svso/coach-class-conflicts",
"http://thecolbertreport.cc.com/videos/ewijdy/randall-munroe",
"http://thecolbertreport.cc.com/videos/cs2fnl/sign-off---goodnight"
],
"guest": "Randall Munroe"
},
{
"date": "2014-09-04",
"videos": [
"http://thecolbertreport.cc.com/videos/30z1ut/intro---9-4-14",
"http://thecolbertreport.cc.com/videos/lo5wee/gays-in-the-st--patrick-s-day-parade",
"http://thecolbertreport.cc.com/videos/zq72u5/the-midterm-round-up",
"http://thecolbertreport.cc.com/videos/g7yyhh/al-qaeda-s-indian-franchise",
"http://thecolbertreport.cc.com/videos/s4ds82/doris-kearns-goodwin",
"http://thecolbertreport.cc.com/videos/fj6l1s/sign-off---ship-christening"
],
"guest": "Doris Kearns Goodwin"
},
{
"date": "2014-09-08",
"videos": [
"http://thecolbertreport.cc.com/videos/g9wav3/intro---9-8-14",
"http://thecolbertreport.cc.com/videos/dzxra6/william-and-kate-s-royal-pregnancy",
"http://thecolbertreport.cc.com/videos/3160bg/waiting-forever-for-immigration-reform",
"http://thecolbertreport.cc.com/videos/jz3rdd/pavlok-fitness-band",
"http://thecolbertreport.cc.com/videos/23mu4v/john-lithgow",
"http://thecolbertreport.cc.com/videos/a0x0bs/sign-off---goodnight"
],
"guest": "John Lithgow"
},
{
"date": "2014-09-09",
"videos": [
"http://thecolbertreport.cc.com/videos/j5s4z1/apple-unveils-its-smartwatch",
"http://thecolbertreport.cc.com/videos/s6gte9/the-midterm-round-up---the-gop-s-lady-problems",
"http://thecolbertreport.cc.com/videos/hkfm7z/hometown-hero-town---detroit",
"http://thecolbertreport.cc.com/videos/e4y7wx/jason-segel",
"http://thecolbertreport.cc.com/videos/93zpki/sign-off---jason-segel-s-latest-award"
],
"guest": "Jason Segel"
},
{
"date": "2014-09-10",
"videos": [
"http://thecolbertreport.cc.com/videos/u5vu07/intro---9-10-14",
"http://thecolbertreport.cc.com/videos/p2b64y/obama-s-isis-speech",
"http://thecolbertreport.cc.com/videos/lqm25y/dalai-lama-drama",
"http://thecolbertreport.cc.com/videos/4pdz7v/tip-wag---nasa---trump-entertainment-resorts",
"http://thecolbertreport.cc.com/videos/wn86jw/the-buypartisan-app",
"http://thecolbertreport.cc.com/videos/hyx04c/henry-kissinger",
"http://thecolbertreport.cc.com/videos/bipiaj/sign-off---goodnight"
],
"guest": "Henry Kissinger"
},
{
"date": "2014-09-11",
"videos": [
"http://thecolbertreport.cc.com/videos/oeusg2/this-country-is-at-war-",
"http://thecolbertreport.cc.com/videos/li99ni/republicans--predictions-of-the-iraq-crisis",
"http://thecolbertreport.cc.com/videos/wna0mw/global-warming-threatens-bird-species",
"http://thecolbertreport.cc.com/videos/ndpng7/lonn-taylor",
"http://thecolbertreport.cc.com/videos/cl9arb/sign-off---jim-cornelison-sings-the-national-anthem"
],
"guest": "Lonn Taylor"
},
{
"date": "2014-09-15",
"videos": [
"http://thecolbertreport.cc.com/videos/848h60/the-next-miss-america",
"http://thecolbertreport.cc.com/videos/lmtq66/the-vote-for-scottish-independence",
"http://thecolbertreport.cc.com/videos/exs7p5/the-vote-for-scottish-independence---matt-wells",
"http://thecolbertreport.cc.com/videos/0txz3z/think-tank-corruption",
"http://thecolbertreport.cc.com/videos/m1a8gr/mindy-kaling",
"http://thecolbertreport.cc.com/videos/0j1qdb/sign-off"
],
"guest": "Mindy Kaling"
},
{
"date": "2014-09-16",
"videos": [
"http://thecolbertreport.cc.com/videos/60e467/intro---9-16-14",
"http://thecolbertreport.cc.com/videos/0agoip/the-kinda-sorta-war-and-the-u-s--s-mysterious-allies",
"http://thecolbertreport.cc.com/videos/mzktzw/wall-street-meddles-with-restaurant-chain",
"http://thecolbertreport.cc.com/videos/oyl7ka/unlocking-the-truth"
],
"guest": "Unlocking the Truth"
},
{
"date": "2014-09-17",
"videos": [
"http://thecolbertreport.cc.com/videos/6d36zv/caped-cash-cows",
"http://thecolbertreport.cc.com/videos/zryrry/undercover-at-comic-con---prince-hawkcat",
"http://thecolbertreport.cc.com/videos/d791f1/undercover-at-comic-con---stephen-s-movie-pitches",
"http://thecolbertreport.cc.com/videos/xq6f9b/military-vehicles-for-public-schools",
"http://thecolbertreport.cc.com/videos/arckqm/viggo-mortensen",
"http://thecolbertreport.cc.com/videos/bfflr6/sign-off---aragorn"
],
"guest": "Viggo Mortensen"
},
{
"date": "2014-09-18",
"videos": [
"http://thecolbertreport.cc.com/videos/hn1ueg/checky",
"http://thecolbertreport.cc.com/videos/yupbhd/no-boots-on-the-ground-in-iraq",
"http://thecolbertreport.cc.com/videos/wjga35/sean-hannity-s-defense-of-adrian-peterson",
"http://thecolbertreport.cc.com/videos/rd6gao/terry-gilliam",
"http://thecolbertreport.cc.com/videos/148dzu/sign-off---stuffed-elephant"
],
"guest": "Terry Gilliam"
},
{
"date": "2014-09-22",
"videos": [
"http://thecolbertreport.cc.com/videos/uc4f7i/awol-afghan-soldiers",
"http://thecolbertreport.cc.com/videos/01cyc2/tip-wag---climate-change-marchers---senators-on-reality-tv",
"http://thecolbertreport.cc.com/videos/x58aop/charles-krauthammer-on-obama-s-mental-state",
"http://thecolbertreport.cc.com/videos/jq352p/tweedy"
],
"guest": "Tweedy"
},
{
"date": "2014-09-23",
"videos": [
"http://thecolbertreport.cc.com/videos/j6xqew/u-s--airstrikes-in-syria",
"http://thecolbertreport.cc.com/videos/ybvlae/better-know-a-district---california-s-2nd---jared-huffman",
"http://thecolbertreport.cc.com/videos/b5ni29/the-russians-buy-pbr",
"http://thecolbertreport.cc.com/videos/k5a58t/naomi-klein",
"http://thecolbertreport.cc.com/videos/ksh5pr/sign-off---pbr"
],
"guest": "Naomi Klein"
},
{
"date": "2014-09-24",
"videos": [
"http://thecolbertreport.cc.com/videos/5mneco/atone-phone---jeff-tweedy-calls",
"http://thecolbertreport.cc.com/videos/tw7sr5/obama-s-coffee-cup-salute"
],
"guest": "Bill Cosby"
},
{
"date": "2014-09-25",
"videos": [
"http://thecolbertreport.cc.com/videos/p49ls4/the-suspicious-death-of-staten-island-chuck",
"http://thecolbertreport.cc.com/videos/0hjuki/intro---9-25-14",
"http://thecolbertreport.cc.com/videos/tjmnw0/eric-holder-s-resignation",
"http://thecolbertreport.cc.com/videos/7dpl33/bill-o-reilly-s-elite-strike-force",
"http://thecolbertreport.cc.com/videos/0w775u/smile-file---the-u-a-e--s-first-female-fighter-pilot-vs---the-five----uncensored",
"http://thecolbertreport.cc.com/videos/g36k7p/walter-mischel",
"http://thecolbertreport.cc.com/videos/fhpqlq/sign-off---marshmallows"
],
"guest": "Walter Mischel"
},
{
"date": "2014-09-29",
"videos": [
"http://thecolbertreport.cc.com/videos/6ythcp/obama-s-rip-off-of-bush",
"http://thecolbertreport.cc.com/videos/eecxwy/hillary-clinton-and-the-grandmother-of-all-scandals",
"http://thecolbertreport.cc.com/videos/6w3vad/kim-jong-un-s-massive-cheese-consumption",
"http://thecolbertreport.cc.com/videos/ojmtk8/jamie-oliver",
"http://thecolbertreport.cc.com/videos/z231mw/sign-off---cake-and-cheese"
],
"guest": "Jamie Oliver"
},
{
"date": "2014-09-30",
"videos": [
"http://thecolbertreport.cc.com/videos/6k6hq3/muslims-in-the-end-zone",
"http://thecolbertreport.cc.com/videos/h1yge9/highlights-of-the-values-voter-summit",
"http://thecolbertreport.cc.com/videos/8x6lww/the-benefits-of-pessimism---hans-beinholtz",
"http://thecolbertreport.cc.com/videos/qofokt/jeffrey-tambor",
"http://thecolbertreport.cc.com/videos/pnsz05/sign-off---goodnight"
],
"guest": "Jeffrey Tambor"
},
{
"date": "2014-10-01",
"videos": [
"http://thecolbertreport.cc.com/videos/v6tds1/protests-in-hong-kong",
"http://thecolbertreport.cc.com/videos/v51zzo/protests-in-hong-kong---louisa-lim",
"http://thecolbertreport.cc.com/videos/zzbhqi/bill-o-reilly-takes-offense",
"http://thecolbertreport.cc.com/videos/oviilh/mike-mullen",
"http://thecolbertreport.cc.com/videos/5tiz1y/sign-off---goodnight",
"http://thecolbertreport.cc.com/videos/8f6kuv/exclusive---mike-mullen-extended-interview"
],
"guest": "Adm. Mike Mullen"
},
{
"date": "2014-10-02",
"videos": [
"http://thecolbertreport.cc.com/videos/jyghug/intro---10-2-14",
"http://thecolbertreport.cc.com/videos/x6d5sz/deathpocalypse-now---ebola-in-america---50-states-of-grave",
"http://thecolbertreport.cc.com/videos/hhhqqd/deathpocalypse-now---ebola-in-america---kent-sepkowitz",
"http://thecolbertreport.cc.com/videos/e72awe/solitocity",
"http://thecolbertreport.cc.com/videos/ye2fnr/lynn-sherr",
"http://thecolbertreport.cc.com/videos/7nl6i5/sign-off---hand-sanitizer"
],
"guest": "Lynn Sherr"
},
{
"date": "2014-10-06",
"videos": [
"http://thecolbertreport.cc.com/videos/g5stw6/intro---10-6-14",
"http://thecolbertreport.cc.com/videos/heaxbs/victory-for-gay-marriage---the-rise-of-amicus-briefs",
"http://thecolbertreport.cc.com/videos/ssmvma/victory-for-gay-marriage---the-rise-of-amicus-briefs---allison-orr-larsen",
"http://thecolbertreport.cc.com/videos/ayvbym/a-rare-correction---no-ebola-outbreak-in-the-u-s-",
"http://thecolbertreport.cc.com/videos/fcax26/james-m--mcpherson",
"http://thecolbertreport.cc.com/videos/bfwqfb/sign-off---goodnight"
],
"guest": "James McPherson"
},
{
"date": "2014-10-07",
"videos": [
"http://thecolbertreport.cc.com/videos/hhqgbw/ebolapalooza",
"http://thecolbertreport.cc.com/videos/nx3ewk/better-know-a-district---illinois-s-8th---tammy-duckworth",
"http://thecolbertreport.cc.com/videos/q2857u/cheating-death---pandemic-health",
"http://thecolbertreport.cc.com/videos/7swpxt/leon-wieseltier",
"http://thecolbertreport.cc.com/videos/rete59/sign-off---cigarette"
],
"guest": "Leon Wieseltier"
},
{
"date": "2014-10-08",
"videos": [
"http://thecolbertreport.cc.com/videos/e50viy/intro---10-8-14",
"http://thecolbertreport.cc.com/videos/khi8w0/john-boehner-vs--america-s-anti-gay-marriage-crusaders",
"http://thecolbertreport.cc.com/videos/m899eo/naming-the-war-against-isis",
"http://thecolbertreport.cc.com/videos/hzou6l/carol-burnett",
"http://thecolbertreport.cc.com/videos/hcc5br/sign-off---ear-tug"
],
"guest": "Carol Burnett"
},
{
"date": "2014-10-09",
"videos": [
"http://thecolbertreport.cc.com/videos/blfnlw/exclusive---robert-plant----little-maggie-",
"http://thecolbertreport.cc.com/videos/jdri4u/robert-plant----rainbow-",
"http://thecolbertreport.cc.com/videos/tyc0sx/intro---10-9-14",
"http://thecolbertreport.cc.com/videos/0gscic/columbus-day-under-attack",
"http://thecolbertreport.cc.com/videos/hpfwm4/raining-vs--sprinkling",
"http://thecolbertreport.cc.com/videos/xfjyum/republicans-are-people--too",
"http://thecolbertreport.cc.com/videos/jfanx7/robert-plant",
"http://thecolbertreport.cc.com/videos/o2y6sr/sign-off----lullaby-and----the-ceaseless-roar-"
],
"guest": "Robert Plant"
},
{
"date": "2014-10-13",
"videos": [
"http://thecolbertreport.cc.com/videos/fhnqjo/midterms--014---detour-to-gridlock---an-exciting-thing-that-i-am-totally-interested-in",
"http://thecolbertreport.cc.com/videos/8zip3j/intro---10-13-14",
"http://thecolbertreport.cc.com/videos/sx2hh2/32-episodes-left-for-the-report",
"http://thecolbertreport.cc.com/videos/fp4xfy/walter-isaacson",
"http://thecolbertreport.cc.com/videos/f4t3xr/sign-off---quality-time-with-americone-dream",
"http://thecolbertreport.cc.com/videos/bxbwj4/midterms--014---detour-to-gridlock---dennis-daugaard"
],
"guest": "Walter Isaacson"
},
{
"date": "2014-10-14",
"videos": [
"http://thecolbertreport.cc.com/videos/zg3zai/neil-young----who-s-gonna-stand-up---and-save-the-earth--",
"http://thecolbertreport.cc.com/videos/wcjcgn/a-week-of-victories-for-gay-rights",
"http://thecolbertreport.cc.com/videos/akzlpt/say-yes-to-rick-scott",
"http://thecolbertreport.cc.com/videos/namhpu/neil-young",
"http://thecolbertreport.cc.com/videos/veswmj/sign-off----special-deluxe-"
],
"guest": "Neil Young"
},
{
"date": "2014-10-15",
"videos": [
"http://thecolbertreport.cc.com/videos/qw8rwv/who-s-attacking-me-now----larry-page",
"http://thecolbertreport.cc.com/videos/q2u206/tip-wag---barack-obama---stan-lee",
"http://thecolbertreport.cc.com/videos/xv3cdl/sean-hannity-s-question-of-the-day",
"http://thecolbertreport.cc.com/videos/18x57e/justin-simien",
"http://thecolbertreport.cc.com/videos/4tsbtt/sign-off---goodnight"
],
"guest": "Justin Simien"
},
{
"date": "2014-10-16",
"videos": [
"http://thecolbertreport.cc.com/videos/uebndp/abandoned-wmds-in-iraq",
"http://thecolbertreport.cc.com/videos/aywapn/abandoned-wmds-in-iraq---c-j--chivers",
"http://thecolbertreport.cc.com/videos/3o1uzs/rick-scott-and-charlie-crist-s-bizarre-debate",
"http://thecolbertreport.cc.com/videos/z4umi5/william-deresiewicz",
"http://thecolbertreport.cc.com/videos/xrvm7x/stephen-s-old-ipod"
],
"guest": "Bill Deresiewicz"
},
{
"date": "2014-10-27",
"videos": [
"http://thecolbertreport.cc.com/videos/e27u8w/intro---10-27-14",
"http://thecolbertreport.cc.com/videos/8hjpi2/ebola-in-new-york",
"http://thecolbertreport.cc.com/videos/whfeyg/louie-gohmert-on-gays-in-the-military",
"http://thecolbertreport.cc.com/videos/jjpinj/meredith-vieira",
"http://thecolbertreport.cc.com/videos/a0zbrf/sign-off---sundae"
],
"guest": "Meredith Vieira"
},
{
"date": "2014-10-28",
"videos": [
"http://thecolbertreport.cc.com/videos/xxvx4u/war-on-halloween---flaming-bags-of-government",
"http://thecolbertreport.cc.com/videos/jxddq4/the-nra-vs--pennsylvania-s-pet-eating-ban",
"http://thecolbertreport.cc.com/videos/6cj1fk/tom-corbett-s-photoshopped-diversity",
"http://thecolbertreport.cc.com/videos/nzy3nz/sport-report---fall-experimental-football-league",
"http://thecolbertreport.cc.com/videos/c7wjzg/michael-lewis",
"http://thecolbertreport.cc.com/videos/64x2gg/sign-off---goodnight"
],
"guest": "Michael Lewis"
},
{
"date": "2014-10-29",
"videos": [
"http://thecolbertreport.cc.com/videos/ladjef/gamergate",
"http://thecolbertreport.cc.com/videos/wr7hqq/gamergate---anita-sarkeesian",
"http://thecolbertreport.cc.com/videos/ll1e16/heroism-in-canada",
"http://thecolbertreport.cc.com/videos/1h66nr/jill-lepore",
"http://thecolbertreport.cc.com/videos/1fc6m9/sign-off---microphone"
],
"guest": "Jill Lepore"
},
{
"date": "2014-10-30",
"videos": [
"http://thecolbertreport.cc.com/videos/qvw67z/intro---10-30-14",
"http://thecolbertreport.cc.com/videos/hxvn8w/-america-again--in-paperback",
"http://thecolbertreport.cc.com/videos/365nm9/america-s-midterm-indifference---george-takei",
"http://thecolbertreport.cc.com/videos/cykxut/the-perils-of-anchor-zygotes",
"http://thecolbertreport.cc.com/videos/tqbn3t/david-miliband",
"http://thecolbertreport.cc.com/videos/4rgfpm/sign-off---goodnight"
],
"guest": "David Miliband"
},
{
"date": "2014-11-03",
"videos": [
"http://thecolbertreport.cc.com/videos/cvjwus/intro---11-3-14",
"http://thecolbertreport.cc.com/videos/p6uab8/midterms--014---detour-to-gridlock---midterm-flyer-of-shame",
"http://thecolbertreport.cc.com/videos/qmg04s/tip-wag---nazi-dairy-products--tim-cook---prostate-health-researchers",
"http://thecolbertreport.cc.com/videos/rw2v1b/stephen-colbert-s-enchanted-princess-pixie-wedding-cake",
"http://thecolbertreport.cc.com/videos/lffyr9/chuck-todd",
"http://thecolbertreport.cc.com/videos/xrfsl8/sign-off---goodnight"
],
"guest": "Chuck Todd"
},
{
"date": "2014-11-04",
"videos": [
"http://thecolbertreport.cc.com/videos/1g0aji/midterms--014---detour-to-gridlock---live-coverage",
"http://thecolbertreport.cc.com/videos/cmr0z4/midterms--014---detour-to-gridlock---mountains-of-midterm-madness",
"http://thecolbertreport.cc.com/videos/w3muth/midterms--014---detour-to-gridlock---social-tracker-8700",
"http://thecolbertreport.cc.com/videos/ekj19q/andrew-sullivan",
"http://thecolbertreport.cc.com/videos/ckxbqk/sign-off---stephen-s-last-election-special"
],
"guest": "Andrew Sullivan"
},
{
"date": "2014-11-05",
"videos": [
"http://thecolbertreport.cc.com/videos/c5okdm/intro---11-5-14",
"http://thecolbertreport.cc.com/videos/ywqnjy/the-republicans-win-everything",
"http://thecolbertreport.cc.com/videos/wq84nn/better-know-a-district---california-s-13th---barbara-lee",
"http://thecolbertreport.cc.com/videos/7feu8t/legalized-marijuana-in-washington--d-c-",
"http://thecolbertreport.cc.com/videos/w2qs7x/kirsten-gillibrand",
"http://thecolbertreport.cc.com/videos/tno5bj/sign-off---goodnight"
],
"guest": "Sen. Kirsten Gillibrand"
},
{
"date": "2014-11-06",
"videos": [
"http://thecolbertreport.cc.com/videos/kk2x1a/intro---11-6-14",
"http://thecolbertreport.cc.com/videos/rtdlsr/busted-for-feeding-the-homeless",
"http://thecolbertreport.cc.com/videos/3rw0tz/cheating-death---aging---women-s-health",
"http://thecolbertreport.cc.com/videos/sc6mpp/the-republicans--inspiring-climate-change-message",
"http://thecolbertreport.cc.com/videos/v06v9z/steven-johnson",
"http://thecolbertreport.cc.com/videos/yzaj23/sign-off---goodnight"
],
"guest": "Steven Johnson"
},
{
"date": "2014-11-10",
"videos": [
"http://thecolbertreport.cc.com/videos/erbk9q/intro---11-10-14",
"http://thecolbertreport.cc.com/videos/xnwueh/big-news-from-the-hermit-kingdom",
"http://thecolbertreport.cc.com/videos/avadrz/the-word---it-s-a-trap-",
"http://thecolbertreport.cc.com/videos/87vgoo/adventures-in-snackology",
"http://thecolbertreport.cc.com/videos/sbmlul/andy-cohen",
"http://thecolbertreport.cc.com/videos/7uog9s/sign-off---goodnight"
],
"guest": "Andy Cohen"
},
{
"date": "2014-11-11",
"videos": [
"http://thecolbertreport.cc.com/videos/mnkz05/intro---11-11-14",
"http://thecolbertreport.cc.com/videos/wht7i8/uncertain-death-for-isis-s-leader",
"http://thecolbertreport.cc.com/videos/thgfth/blowback-from-obama-s-visit-to-china",
"http://thecolbertreport.cc.com/videos/uqricc/tip-wag---breitbart",
"http://thecolbertreport.cc.com/videos/41fe1h/diane-von-furstenberg",
"http://thecolbertreport.cc.com/videos/ncl44x/sign-off---cheerful-reflection"
],
"guest": "Diane Von Furstenberg"
},
{
"date": "2014-11-12",
"videos": [
"http://thecolbertreport.cc.com/videos/80wk4b/intro---11-12-14",
"http://thecolbertreport.cc.com/videos/a1b4ph/new-york-city-s-rat-deficiency",
"http://thecolbertreport.cc.com/videos/rn92gg/stephen-colbert-s-auto-robotic-fixation",
"http://thecolbertreport.cc.com/videos/hhmb28/mr--smith-goes-to-the-state-legislature--then-later-possibly-washington---gordon-klingenschmitt",
"http://thecolbertreport.cc.com/videos/6wtwlg/terence-tao",
"http://thecolbertreport.cc.com/videos/a1eex6/sign-off---red-wine"
],
"guest": "Terence Tao"
},
{
"date": "2014-11-13",
"videos": [
"http://thecolbertreport.cc.com/videos/jtbvle/reforming-health-care-reform",
"http://thecolbertreport.cc.com/videos/fe3wjm/reforming-health-care-reform---emily-bazelon",
"http://thecolbertreport.cc.com/videos/cvq86c/gay-marriage-victory-in-south-carolina",
"http://thecolbertreport.cc.com/videos/3pu1ey/jennifer-lawrence",
"http://thecolbertreport.cc.com/videos/9aqahd/sign-off---goodnight"
],
"guest": "Jennifer Lawrence"
},
{
"date": "2014-11-17",
"videos": [
"http://thecolbertreport.cc.com/videos/qed7bp/bono-s-missing-luggage",
"http://thecolbertreport.cc.com/videos/9dr12d/survival-tips-from--good-morning-america-",
"http://thecolbertreport.cc.com/videos/7vjzxb/bernie-sanders-pt--1",
"http://thecolbertreport.cc.com/videos/67tlr7/bernie-sanders-pt--2",
"http://thecolbertreport.cc.com/videos/uqho5w/sign-off---goodnight"
],
"guest": "Sen. Bernie Sanders"
},
{
"date": "2014-11-18",
"videos": [
"http://thecolbertreport.cc.com/videos/fys4c2/intro---11-18-14",
"http://thecolbertreport.cc.com/videos/ib2b3k/polar-plunge",
"http://thecolbertreport.cc.com/videos/iw2iwg/obama-s-immigration-plan---esteban-colberto",
"http://thecolbertreport.cc.com/videos/bbfckz/tip-wag---salvage-stores---maine",
"http://thecolbertreport.cc.com/videos/o8su6y/eva-longoria",
"http://thecolbertreport.cc.com/videos/vu8jpe/sign-off---goodnight"
],
"guest": "Eva Longoria"
},
{
"date": "2014-11-19",
"videos": [
"http://thecolbertreport.cc.com/videos/7mkltp/simulated-school-attack-in-florida",
"http://thecolbertreport.cc.com/videos/dvppp6/difference-makers---the-free-keene-squad",
"http://thecolbertreport.cc.com/videos/sdqbxm/black-friday-sale",
"http://thecolbertreport.cc.com/videos/9yc4ry/toni-morrison",
"http://thecolbertreport.cc.com/videos/y4ygag/sign-off---goodnight"
],
"guest": "Toni Morrison"
},
{
"date": "2014-11-20",
"videos": [
"http://thecolbertreport.cc.com/videos/01iemp/obama-s-executive-amnesty",
"http://thecolbertreport.cc.com/videos/fie7ef/threatdown---declining-standards-of-sexiness--people-who-eat-chocolate---invaders-of-the-new-world",
"http://thecolbertreport.cc.com/videos/e55wo4/jon-stewart-pt--1",
"http://thecolbertreport.cc.com/videos/vbi9v5/jon-stewart-pt--2",
"http://thecolbertreport.cc.com/videos/zwcggy/sign-off---goodnight"
],
"guest": "Jon Stewart"
},
{
"date": "2014-12-01",
"videos": [
"http://thecolbertreport.cc.com/videos/wmtufg/intro---12-1-14",
"http://thecolbertreport.cc.com/videos/umsrnb/lightsaber-controversy",
"http://thecolbertreport.cc.com/videos/wud7e1/ferguson-fallout-and-the-st--louis-rams",
"http://thecolbertreport.cc.com/videos/d6xq50/jihadis-of-the-high-seas",
"http://thecolbertreport.cc.com/videos/3h1qqa/john-mccain",
"http://thecolbertreport.cc.com/videos/dnrg1a/sign-off---goodnight"
],
"guest": "Sen. John McCain"
},
{
"date": "2014-12-02",
"videos": [
"http://thecolbertreport.cc.com/videos/v8mtsf/intro---12-2-14",
"http://thecolbertreport.cc.com/videos/hyqrm1/announcing-the-mr--colbert-goes-to-washington-special",
"http://thecolbertreport.cc.com/videos/ethq4d/the-word---crook-and-ladder",
"http://thecolbertreport.cc.com/videos/lje2l4/blitzkrieg-on-grinchitude---mistletoe-drones",
"http://thecolbertreport.cc.com/videos/z0hz76/tony-bennett-and-lady-gaga"
],
"guest": "Tony Bennett & Lady Gaga"
},
{
"date": "2014-12-03",
"videos": [
"http://thecolbertreport.cc.com/videos/c9s1cs/intro---12-3-14",
"http://thecolbertreport.cc.com/videos/nxwili/the-no-social-security-for-nazis-act",
"http://thecolbertreport.cc.com/videos/ziipwv/thought-for-food---fairlife-milk---pizza-hut-s-subconscious-menu",
"http://thecolbertreport.cc.com/videos/fpdlpw/surprise-visit-from-amy-sedaris",
"http://thecolbertreport.cc.com/videos/4r9o52/christopher-nolan",
"http://thecolbertreport.cc.com/videos/nwo3n2/sign-off---goodnight"
],
"guest": "Christopher Nolan"
},
{
"date": "2014-12-04",
"videos": [
"http://thecolbertreport.cc.com/videos/ik935r/president-barack-obama-to-appear-on-the-report",
"http://thecolbertreport.cc.com/videos/d5k5nz/outrage-over-eric-garner-decision",
"http://thecolbertreport.cc.com/videos/pxune6/obama-s-bold-and-beautiful-ambassador-pick",
"http://thecolbertreport.cc.com/videos/nucbbu/paul-farmer",
"http://thecolbertreport.cc.com/videos/82d47r/sign-off---grimmy"
],
"guest": "Dr. Paul Farmer"
},
{
"date": "2014-12-08",
"videos": [
"http://thecolbertreport.cc.com/videos/u8bqev/mr--colbert-goes-to-washington",
"http://thecolbertreport.cc.com/videos/cnlqbr/better-know-a-america---the-fightin--us",
"http://thecolbertreport.cc.com/videos/88p9oh/the-word---president-barack-obama---to-health-in-a-handbasket",
"http://thecolbertreport.cc.com/videos/i14vel/president-barack-obama-pt--1",
"http://thecolbertreport.cc.com/videos/mpmtan/president-barack-obama-pt--2",
"http://thecolbertreport.cc.com/videos/3mcn6y/sign-off---see-ya",
"http://thecolbertreport.cc.com/videos/4mkbqz/exclusive---president-barack-obama-extended-interview"
],
"guest": "President Barack Obama"
},
{
"date": "2014-12-09",
"videos": [
"http://thecolbertreport.cc.com/videos/tgnj0t/-eaten-alive--outrage",
"http://thecolbertreport.cc.com/videos/vd3icz/better-know-a-district---georgia-s-1st---reuniting-with-rep--jack-kingston",
"http://thecolbertreport.cc.com/videos/pz35hw/who-s-honoring-me-now----entertainment-weekly",
"http://thecolbertreport.cc.com/videos/2kz4pi/james-corden",
"http://thecolbertreport.cc.com/videos/0frj3t/sign-off---sting"
],
"guest": "James Corden"
},
{
"date": "2014-12-10",
"videos": [
"http://thecolbertreport.cc.com/videos/kquici/cia-torture-report",
"http://thecolbertreport.cc.com/videos/rlpjf5/cia-torture-report---pundits-defend-america",
"http://thecolbertreport.cc.com/videos/z4grj8/cia-torture-report---tom-blanton",
"http://thecolbertreport.cc.com/videos/8i6klx/sarah-koenig",
"http://thecolbertreport.cc.com/videos/im3k81/sign-off---headphones"
],
"guest": "Sarah Koenig"
},
{
"date": "2014-12-11",
"videos": [
"http://thecolbertreport.cc.com/videos/anckrc/scott-walker-s-hanukkah-gaffe",
"http://thecolbertreport.cc.com/videos/399enl/yahweh-or-no-way---epic-casting-controversy",
"http://thecolbertreport.cc.com/videos/p9nk9d/announcing-the-colbert-report-raffle",
"http://thecolbertreport.cc.com/videos/509747/smaug",
"http://thecolbertreport.cc.com/videos/mfxigz/sign-off---aftermath-of-smaug"
],
"guest": "\"The Hobbit: Battle of the Five Armies\" special"
},
{
"date": "2014-12-15",
"videos": [
"http://thecolbertreport.cc.com/videos/bt8vk8/intro---12-15-14",
"http://thecolbertreport.cc.com/videos/lwna3x/michele-bachmann-s-extreme-holiday-cheer",
"http://thecolbertreport.cc.com/videos/0frisd/formidable-opponent---torture-report",
"http://thecolbertreport.cc.com/videos/9xetgg/kim-jong-un-s-exclusive-name---sony-s-hack-attack",
"http://thecolbertreport.cc.com/videos/j9u5in/seth-rogen",
"http://thecolbertreport.cc.com/videos/bhrczk/sign-off---goodnight"
],
"guest": "Seth Rogen"
},
{
"date": "2014-12-16",
"videos": [
"http://thecolbertreport.cc.com/videos/arfo3o/jeb-bush-s-presidential-ambitions",
"http://thecolbertreport.cc.com/videos/tnwzte/oil-war---jason-bordoff",
"http://thecolbertreport.cc.com/videos/vd8ci4/colbert-platinum---holiday-gift-edition",
"http://thecolbertreport.cc.com/videos/w5h8eb/kendrick-lamar",
"http://thecolbertreport.cc.com/videos/pjrqsj/kendrick-lamar---debut-of-untitled-track"
],
"guest": "Kendrick Lamar"
}
]
}
working_folder = 'G:/Downloads'
for colbDate in testP['2014']:
if 1:
newfileResize = 'G:/downloads/The Colbert Report 2014/TheColbertReport '+colbDate['date']+'.mp4'
if not os.path.exists(newfileResize):
folderName = 'G:/downloads/The Colbert Report 2014/'+colbDate['date']
try:
os.mkdir(folderName)
except:
pass
pos = 0
for vid in colbDate['videos']:
pos+=1
done = False
while not done:
folderContents = os.listdir(folderName)
for folderContent in folderContents:
if folderContent.startswith(str(pos)+' ') and (not folderContent.endswith('.part')):
done = True
if not done:
cmd = os.path.join(working_folder,'youtube-dl.exe') + ' --no-continue -o "'+folderName+'/'+str(pos)+' %(title)s.%(ext)s" '+vid
subprocess.call(cmd,shell=True)
vids = []
for vid in os.listdir(folderName):
if vid.endswith('.mp4'):
vids.append(os.path.join(folderName,vid))
vids.sort()
newfile = 'G:/downloads/The Colbert Report 2014/TheColbertReport '+colbDate['date']+'temp.mp4'
if not os.path.exists(newfileResize):
cmd = r' -cat "' + r'" -cat "'.join(vids) + r'" -new "'+newfile+'"'
exc = "G:/Downloads/mp4box.exe -tmp G:/temp/ " + cmd
subprocess.call(exc,shell=True)
cmd = "G:/Downloads/ffmpeg/bin/ffmpeg.exe -i \"" + newfile + "\" -vf scale=1024:576 \""+newfileResize+"\""
subprocess.call(cmd,shell=True)
while os.path.exists(newfile):
try:
os.remove(newfile)
except:
pass
else:
print 'file found ' + newfile
| traltixx/pycolbert | pycolbert.py | Python | gpl-2.0 | 853,594 |
<?php
/**
* youtubegallery Joomla! 2.5 Native Component
* @version 3.5.3
* @author DesignCompass corp< <support@joomlaboat.com>
* @link http://www.joomlaboat.com
* @GNU General Public License
**/
defined('_JEXEC') or die('Restricted access');
require_once(JPATH_SITE.DS.'components'.DS.'com_youtubegallery'.DS.'includes'.DS.'render.php');
require_once(JPATH_SITE.DS.'components'.DS.'com_youtubegallery'.DS.'includes'.DS.'misc.php');
$listid=(int)$params->get( 'listid' );
$themeid=(int)$params->get( 'themeid' );
$align='';
if($listid!=0 and $themeid!=0)
{
$misc=new YouTubeGalleryMisc;
if(!$misc->getVideoListTableRow($listid))
echo '<p>No video found</p>';
if(!$misc->getThemeTableRow($themeid))
echo '<p>No theme found</p>';
$firstvideo='';
$youtubegallerycode='';
$total_number_of_rows=0;
$misc->update_playlist();
//if($theme_row->openinnewwindow==4)
// $videoid=''; //Hot Video Switch
// else
$videoid=JRequest::getVar('videoid');
if($misc->theme_row->playvideo==1 and $videoid!='')
$misc->theme_row->autoplay=1;
$videoid_new=$videoid;
$videolist=$misc->getVideoList_FromCache_From_Table($videoid_new,$total_number_of_rows);
if($videoid=='')
{
if($misc->theme_row->playvideo==1 and $videoid_new!='')
$videoid=$videoid_new;
}
$renderer= new YouTubeGalleryRenderer;
$gallerymodule=$renderer->render(
$videolist,
$misc->videolist_row,
$misc->theme_row,
$total_number_of_rows,
$videoid
);
if($params->get( 'allowcontentplugins' ))
{
$o = new stdClass();
$o->text=$gallerymodule;
$dispatcher = JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$r = $dispatcher->trigger('onContentPrepare', array ('com_content.article', &$o, &$params_, 0));
$gallerymodule=$o->text;
}
$align=$params->get( 'galleryalign' );
switch($align)
{
case 'left' :
$youtubegallerycode.= '<div style="float:left;position:relative;">'.$gallerymodule.'</div>';
break;
case 'center' :
$youtubegallerycode.= '<div style="width:'.$misc->theme_row->width.'px;margin-left:auto;margin-right:auto;position:relative;">'.$gallerymodule.'</div>';
break;
case 'right' :
$youtubegallerycode.= '<div style="float:right;position:relative;">'.$gallerymodule.'</div>';
break;
default :
$youtubegallerycode.= $gallerymodule;
break;
}//switch($align)
echo $youtubegallerycode;
}
else
echo '<p>Video list or Theme not selected</p>';
?>
| sekret47/konstantin | modules/mod_youtubegallery/mod_youtubegallery.php | PHP | gpl-2.0 | 2,624 |
<?php
$absolute_path = __FILE__;
$path_to_file = explode( 'wp-content', $absolute_path );
$path_to_wp = $path_to_file[0];
require_once( $path_to_wp.'/wp-load.php' );
$to = isset($_POST['to'])?trim($_POST['to']):'';
$name = isset($_POST['name'])?trim($_POST['name']):'';
$email = isset($_POST['email'])?trim($_POST['email']):'';
$content = isset($_POST['content'])?trim($_POST['content']):'';
$error = true;
if($to == '' || $email == '' || $content == '' || $name == '') $error = false;
$sitename = get_bloginfo('name');
if($error){
$subject = 'A message from '.$name;
$headers = 'From: '.$email . "\r\n" . 'Reply-To: '.$email . "\r\n";
mail($to, $subject, $content, $headers);
} | invifire/ci | wp-content/themes/flipbook/includes/mail.php | PHP | gpl-2.0 | 688 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.io.monitor;
import java.io.File;
import java.io.Serializable;
/**
* {@link FileEntry} represents the state of a file or directory, capturing
* the following {@link File} attributes at a point in time.
* <ul>
* <li>File Name (see {@link File#getName()})</li>
* <li>Exists - whether the file exists or not (see {@link File#exists()})</li>
* <li>Directory - whether the file is a directory or not (see {@link File#isDirectory()})</li>
* <li>Last Modified Date/Time (see {@link File#lastModified()})</li>
* <li>Length (see {@link File#length()}) - directories treated as zero</li>
* <li>Children - contents of a directory (see {@link File#listFiles(java.io.FileFilter)})</li>
* </ul>
* <p>
* <h3>Custom Implementations</h3>
* If the state of additional {@link File} attributes is required then create a custom
* {@link FileEntry} with properties for those attributes. Override the
* {@link #newChildInstance(File)} to return a new instance of the appropriate type.
* You may also want to override the {@link #refresh(File)} method.
* @see FileAlterationObserver
* @since 2.0
*/
public class FileEntry implements Serializable {
static final FileEntry[] EMPTY_ENTRIES = new FileEntry[0];
private final FileEntry parent;
private FileEntry[] children;
private final File file;
private String name;
private boolean exists;
private boolean directory;
private long lastModified;
private long length;
/**
* Construct a new monitor for a specified {@link File}.
*
* @param file The file being monitored
*/
public FileEntry(File file) {
this((FileEntry)null, file);
}
/**
* Construct a new monitor for a specified {@link File}.
*
* @param parent The parent
* @param file The file being monitored
*/
public FileEntry(FileEntry parent, File file) {
if (file == null) {
throw new IllegalArgumentException("File is missing");
}
this.file = file;
this.parent = parent;
this.name = file.getName();
}
/**
* Refresh the attributes from the {@link File}, indicating
* whether the file has changed.
* <p>
* This implementation refreshes the <code>name</code>, <code>exists</code>,
* <code>directory</code>, <code>lastModified</code> and <code>length</code>
* properties.
* <p>
* The <code>exists</code>, <code>directory</code>, <code>lastModified</code>
* and <code>length</code> properties are compared for changes
*
* @param file the file instance to compare to
* @return <code>true</code> if the file has changed, otherwise <code>false</code>
*/
public boolean refresh(File file) {
// cache original values
boolean origExists = exists;
long origLastModified = lastModified;
boolean origDirectory = directory;
long origLength = length;
// refresh the values
name = file.getName();
exists = file.exists();
directory = exists ? file.isDirectory() : false;
lastModified = exists ? file.lastModified() : 0;
length = exists && !directory ? file.length() : 0;
// Return if there are changes
return exists != origExists ||
lastModified != origLastModified ||
directory != origDirectory ||
length != origLength;
}
/**
* Create a new child instance.
* <p>
* Custom implementations should override this method to return
* a new instance of the appropriate type.
*
* @param file The child file
* @return a new child instance
*/
public FileEntry newChildInstance(File file) {
return new FileEntry(this, file);
}
/**
* Return the parent entry.
*
* @return the parent entry
*/
public FileEntry getParent() {
return parent;
}
/**
* Return the level
*
* @return the level
*/
public int getLevel() {
return parent == null ? 0 : parent.getLevel() + 1;
}
/**
* Return the directory's files.
*
* @return This directory's files or an empty
* array if the file is not a directory or the
* directory is empty
*/
public FileEntry[] getChildren() {
return children != null ? children : EMPTY_ENTRIES;
}
/**
* Set the directory's files.
*
* @param children This directory's files, may be null
*/
public void setChildren(FileEntry[] children) {
this.children = children;
}
/**
* Return the file being monitored.
*
* @return the file being monitored
*/
public File getFile() {
return file;
}
/**
* Return the file name.
*
* @return the file name
*/
public String getName() {
return name;
}
/**
* Set the file name.
*
* @param name the file name
*/
public void setName(String name) {
this.name = name;
}
/**
* Return the last modified time from the last time it
* was checked.
*
* @return the last modified time
*/
public long getLastModified() {
return lastModified;
}
/**
* Return the last modified time from the last time it
* was checked.
*
* @param lastModified The last modified time
*/
public void setLastModified(long lastModified) {
this.lastModified = lastModified;
}
/**
* Return the length.
*
* @return the length
*/
public long getLength() {
return length;
}
/**
* Set the length.
*
* @param length the length
*/
public void setLength(long length) {
this.length = length;
}
/**
* Indicate whether the file existed the last time it
* was checked.
*
* @return whether the file existed
*/
public boolean isExists() {
return exists;
}
/**
* Set whether the file existed the last time it
* was checked.
*
* @param exists whether the file exists or not
*/
public void setExists(boolean exists) {
this.exists = exists;
}
/**
* Indicate whether the file is a directory or not.
*
* @return whether the file is a directory or not
*/
public boolean isDirectory() {
return directory;
}
/**
* Set whether the file is a directory or not.
*
* @param directory whether the file is a directory or not
*/
public void setDirectory(boolean directory) {
this.directory = directory;
}
}
| BIORIMP/biorimp | BIO-RIMP/test_data/code/cio/src/main/java/org/apache/commons/io/monitor/FileEntry.java | Java | gpl-2.0 | 7,542 |
using System;
namespace Server.Items
{
public class StatuetteDyeTub : DyeTub, Engines.VeteranRewards.IRewardItem
{
public override bool AllowDyables{ get{ return false; } }
public override bool AllowStatuettes{ get{ return true; } }
public override int TargetMessage{ get{ return 1049777; } } // Target the statuette to dye
public override int FailMessage{ get{ return 1049778; } } // You can only dye veteran reward statuettes with this tub.
public override int LabelNumber{ get{ return 1049741; } } // Reward Statuette Dye Tub
public override CustomHuePicker CustomHuePicker{ get{ return CustomHuePicker.LeatherDyeTub; } }
private bool m_IsRewardItem;
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
get{ return m_IsRewardItem; }
set{ m_IsRewardItem = value; }
}
[Constructable]
public StatuetteDyeTub()
{
LootType = LootType.Blessed;
}
public override void OnDoubleClick( Mobile from )
{
if ( m_IsRewardItem && !Engines.VeteranRewards.RewardSystem.CheckIsUsableBy( from, this, null ) )
return;
base.OnDoubleClick( from );
}
public StatuetteDyeTub( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
writer.Write( (bool) m_IsRewardItem );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_IsRewardItem = reader.ReadBool();
break;
}
}
}
}
}
| brodock/sunuo | scripts/legacy/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs | C# | gpl-2.0 | 1,609 |
// Copyright (c) 2016- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "base/basictypes.h"
#include "Common/Log.h"
#include "Common/Vulkan/VulkanContext.h"
#include "GPU/Vulkan/VulkanUtil.h"
Vulkan2D::Vulkan2D(VulkanContext *vulkan) : vulkan_(vulkan) {
InitDeviceObjects();
}
Vulkan2D::~Vulkan2D() {
DestroyDeviceObjects();
}
void Vulkan2D::Shutdown() {
DestroyDeviceObjects();
}
void Vulkan2D::DestroyDeviceObjects() {
for (int i = 0; i < vulkan_->GetInflightFrames(); i++) {
if (frameData_[i].descPool != VK_NULL_HANDLE) {
vulkan_->Delete().QueueDeleteDescriptorPool(frameData_[i].descPool);
frameData_[i].descPool = VK_NULL_HANDLE;
}
}
for (auto it : pipelines_) {
vulkan_->Delete().QueueDeletePipeline(it.second);
}
pipelines_.clear();
VkDevice device = vulkan_->GetDevice();
if (descriptorSetLayout_ != VK_NULL_HANDLE) {
vkDestroyDescriptorSetLayout(device, descriptorSetLayout_, nullptr);
descriptorSetLayout_ = VK_NULL_HANDLE;
}
if (pipelineLayout_ != VK_NULL_HANDLE) {
vkDestroyPipelineLayout(device, pipelineLayout_, nullptr);
pipelineLayout_ = VK_NULL_HANDLE;
}
// pipelineBasicTex_ and pipelineBasicTex_ come from vulkan2D_.
if (pipelineCache_ != VK_NULL_HANDLE) {
vulkan_->Delete().QueueDeletePipelineCache(pipelineCache_);
pipelineCache_ = VK_NULL_HANDLE;
}
}
void Vulkan2D::InitDeviceObjects() {
pipelineCache_ = vulkan_->CreatePipelineCache();
// All resources we need for PSP drawing. Usually only bindings 0 and 2-4 are populated.
VkDescriptorSetLayoutBinding bindings[2] = {};
bindings[0].descriptorCount = 1;
bindings[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
bindings[0].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
bindings[0].binding = 0;
bindings[1].descriptorCount = 1;
bindings[1].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
bindings[1].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
bindings[1].binding = 1;
VkDevice device = vulkan_->GetDevice();
VkDescriptorSetLayoutCreateInfo dsl = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO };
dsl.bindingCount = 2;
dsl.pBindings = bindings;
VkResult res = vkCreateDescriptorSetLayout(device, &dsl, nullptr, &descriptorSetLayout_);
assert(VK_SUCCESS == res);
VkDescriptorPoolSize dpTypes[1];
dpTypes[0].descriptorCount = 3000;
dpTypes[0].type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
VkDescriptorPoolCreateInfo dp = { VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO };
dp.flags = 0; // Don't want to mess around with individually freeing these, let's go fixed each frame and zap the whole array. Might try the dynamic approach later.
dp.maxSets = 3000;
dp.pPoolSizes = dpTypes;
dp.poolSizeCount = ARRAY_SIZE(dpTypes);
for (int i = 0; i < ARRAY_SIZE(frameData_); i++) {
VkResult res = vkCreateDescriptorPool(vulkan_->GetDevice(), &dp, nullptr, &frameData_[i].descPool);
assert(VK_SUCCESS == res);
}
VkPushConstantRange push = {};
push.offset = 0;
push.size = 16;
push.stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
VkPipelineLayoutCreateInfo pl = { VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO };
pl.pPushConstantRanges = &push;
pl.pushConstantRangeCount = 1;
pl.setLayoutCount = 1;
pl.pSetLayouts = &descriptorSetLayout_;
pl.flags = 0;
res = vkCreatePipelineLayout(device, &pl, nullptr, &pipelineLayout_);
assert(VK_SUCCESS == res);
}
void Vulkan2D::DeviceLost() {
DestroyDeviceObjects();
}
void Vulkan2D::DeviceRestore(VulkanContext *vulkan) {
vulkan_ = vulkan;
InitDeviceObjects();
}
void Vulkan2D::BeginFrame() {
int curFrame = vulkan_->GetCurFrame();
FrameData &frame = frameData_[curFrame];
frame.descSets.clear();
vkResetDescriptorPool(vulkan_->GetDevice(), frame.descPool, 0);
}
void Vulkan2D::EndFrame() {
}
VkDescriptorSet Vulkan2D::GetDescriptorSet(VkImageView tex1, VkSampler sampler1, VkImageView tex2, VkSampler sampler2) {
DescriptorSetKey key;
key.imageView[0] = tex1;
key.imageView[1] = tex2;
key.sampler[0] = sampler1;
key.sampler[1] = sampler2;
int curFrame = vulkan_->GetCurFrame();
FrameData *frame = &frameData_[curFrame];
auto iter = frame->descSets.find(key);
if (iter != frame->descSets.end()) {
return iter->second;
}
// Didn't find one in the frame descriptor set cache, let's make a new one.
// We wipe the cache on every frame.
VkDescriptorSet desc;
VkDescriptorSetAllocateInfo descAlloc = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO };
descAlloc.pSetLayouts = &descriptorSetLayout_;
descAlloc.descriptorPool = frame->descPool;
descAlloc.descriptorSetCount = 1;
VkResult result = vkAllocateDescriptorSets(vulkan_->GetDevice(), &descAlloc, &desc);
assert(result == VK_SUCCESS);
// We just don't write to the slots we don't care about.
VkWriteDescriptorSet writes[2];
memset(writes, 0, sizeof(writes));
// Main and sub textures
int n = 0;
VkDescriptorImageInfo image1 = {};
VkDescriptorImageInfo image2 = {};
if (tex1) {
// TODO: Also support LAYOUT_GENERAL to be able to texture from framebuffers without transitioning them?
image1.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
image1.imageView = tex1;
image1.sampler = sampler1;
writes[n].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
writes[n].dstBinding = 0;
writes[n].pImageInfo = &image1;
writes[n].descriptorCount = 1;
writes[n].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
writes[n].dstSet = desc;
n++;
}
if (tex2) {
// TODO: Also support LAYOUT_GENERAL to be able to texture from framebuffers without transitioning them?
image2.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
image2.imageView = tex2;
image2.sampler = sampler2;
writes[n].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
writes[n].dstBinding = 1;
writes[n].pImageInfo = &image2;
writes[n].descriptorCount = 1;
writes[n].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
writes[n].dstSet = desc;
n++;
}
vkUpdateDescriptorSets(vulkan_->GetDevice(), n, writes, 0, nullptr);
frame->descSets[key] = desc;
return desc;
}
VkPipeline Vulkan2D::GetPipeline(VkRenderPass rp, VkShaderModule vs, VkShaderModule fs, bool readVertices, VK2DDepthStencilMode depthStencilMode) {
PipelineKey key;
key.vs = vs;
key.fs = fs;
key.rp = rp;
key.depthStencilMode = depthStencilMode;
key.readVertices = readVertices;
auto iter = pipelines_.find(key);
if (iter != pipelines_.end()) {
return iter->second;
}
VkPipelineColorBlendAttachmentState blend0 = {};
blend0.blendEnable = false;
blend0.colorWriteMask = depthStencilMode == VK2DDepthStencilMode::STENCIL_REPLACE_ALWAYS ? VK_COLOR_COMPONENT_A_BIT : 0xF;
VkPipelineColorBlendStateCreateInfo cbs = { VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO };
cbs.pAttachments = &blend0;
cbs.attachmentCount = 1;
cbs.logicOpEnable = false;
VkPipelineDepthStencilStateCreateInfo dss = { VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO };
dss.depthBoundsTestEnable = false;
dss.depthTestEnable = false;
dss.stencilTestEnable = false;
switch (depthStencilMode) {
case VK2DDepthStencilMode::NONE:
break;
case VK2DDepthStencilMode::STENCIL_REPLACE_ALWAYS:
dss.stencilTestEnable = true;
dss.front.reference = 0xFF;
dss.front.compareMask = 0xFF;
dss.front.compareOp = VK_COMPARE_OP_ALWAYS;
dss.front.depthFailOp = VK_STENCIL_OP_REPLACE;
dss.front.failOp = VK_STENCIL_OP_REPLACE;
dss.front.passOp = VK_STENCIL_OP_REPLACE;
dss.back = dss.front;
break;
}
VkDynamicState dynamicStates[5];
int numDyn = 0;
dynamicStates[numDyn++] = VK_DYNAMIC_STATE_SCISSOR;
dynamicStates[numDyn++] = VK_DYNAMIC_STATE_VIEWPORT;
if (depthStencilMode == VK2DDepthStencilMode::STENCIL_REPLACE_ALWAYS) {
dynamicStates[numDyn++] = VK_DYNAMIC_STATE_STENCIL_WRITE_MASK;
dynamicStates[numDyn++] = VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK;
dynamicStates[numDyn++] = VK_DYNAMIC_STATE_STENCIL_REFERENCE;
}
VkPipelineDynamicStateCreateInfo ds = { VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO };
ds.pDynamicStates = dynamicStates;
ds.dynamicStateCount = numDyn;
VkPipelineRasterizationStateCreateInfo rs = { VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO };
rs.lineWidth = 1.0f;
VkPipelineMultisampleStateCreateInfo ms = { VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO };
ms.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
VkPipelineShaderStageCreateInfo ss[2] = {};
ss[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
ss[0].stage = VK_SHADER_STAGE_VERTEX_BIT;
ss[0].module = vs;
ss[0].pName = "main";
ss[0].flags = 0;
ss[1].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
ss[1].stage = VK_SHADER_STAGE_FRAGMENT_BIT;
ss[1].module = fs;
ss[1].pName = "main";
ss[1].flags = 0;
VkPipelineInputAssemblyStateCreateInfo inputAssembly = { VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO };
inputAssembly.flags = 0;
inputAssembly.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
inputAssembly.primitiveRestartEnable = true;
VkVertexInputAttributeDescription attrs[2];
int attributeCount = 2;
attrs[0].binding = 0;
attrs[0].format = VK_FORMAT_R32G32B32_SFLOAT;
attrs[0].location = 0;
attrs[0].offset = 0;
attrs[1].binding = 0;
attrs[1].format = VK_FORMAT_R32G32_SFLOAT;
attrs[1].location = 1;
attrs[1].offset = 12;
int vertexStride = 12 + 8;
VkVertexInputBindingDescription ibd = {};
ibd.binding = 0;
ibd.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
ibd.stride = vertexStride;
VkPipelineVertexInputStateCreateInfo vis = { VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO };
vis.vertexBindingDescriptionCount = readVertices ? 1 : 0;
vis.pVertexBindingDescriptions = readVertices ? &ibd : nullptr;
vis.vertexAttributeDescriptionCount = readVertices ? attributeCount : 0;
vis.pVertexAttributeDescriptions = readVertices ? attrs : nullptr;
VkPipelineViewportStateCreateInfo views = { VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO };
views.viewportCount = 1;
views.scissorCount = 1;
views.pViewports = nullptr; // dynamic
views.pScissors = nullptr; // dynamic
VkGraphicsPipelineCreateInfo pipe = { VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO };
pipe.flags = 0;
pipe.stageCount = 2;
pipe.pStages = ss;
pipe.basePipelineIndex = 0;
pipe.pColorBlendState = &cbs;
pipe.pDepthStencilState = &dss;
pipe.pRasterizationState = &rs;
pipe.pVertexInputState = &vis;
pipe.pViewportState = &views;
pipe.pTessellationState = nullptr;
pipe.pDynamicState = &ds;
pipe.pInputAssemblyState = &inputAssembly;
pipe.pMultisampleState = &ms;
pipe.layout = pipelineLayout_;
pipe.basePipelineHandle = VK_NULL_HANDLE;
pipe.basePipelineIndex = 0;
pipe.renderPass = rp;
pipe.subpass = 0;
VkPipeline pipeline;
VkResult result = vkCreateGraphicsPipelines(vulkan_->GetDevice(), pipelineCache_, 1, &pipe, nullptr, &pipeline);
if (result == VK_SUCCESS) {
pipelines_[key] = pipeline;
return pipeline;
} else {
return VK_NULL_HANDLE;
}
}
VkShaderModule CompileShaderModule(VulkanContext *vulkan, VkShaderStageFlagBits stage, const char *code, std::string *error) {
std::vector<uint32_t> spirv;
bool success = GLSLtoSPV(stage, code, spirv, error);
if (!error->empty()) {
if (success) {
ERROR_LOG(G3D, "Warnings in shader compilation!");
} else {
ERROR_LOG(G3D, "Error in shader compilation!");
}
ERROR_LOG(G3D, "Messages: %s", error->c_str());
ERROR_LOG(G3D, "Shader source:\n%s", code);
OutputDebugStringUTF8("Messages:\n");
OutputDebugStringUTF8(error->c_str());
return VK_NULL_HANDLE;
} else {
VkShaderModule module;
if (vulkan->CreateShaderModule(spirv, &module)) {
return module;
} else {
return VK_NULL_HANDLE;
}
}
}
| Orphis/ppsspp | GPU/Vulkan/VulkanUtil.cpp | C++ | gpl-2.0 | 12,334 |
'use strict';
angular.module('sbAdminApp')
.controller('CustomerListCtrl', function ($scope, $http, $rootScope, $stateParams, $location) {
$scope.page = {itemsPerPage: 20};
$scope.iForm = {pageSize : $scope.page.itemsPerPage};
$scope.showLevel = true;
if ($stateParams.searchFounder == 1) {
$scope.searchFounder = true;
}
$scope.level = $stateParams.level;
if ($stateParams.page) {
$scope.iForm.page = parseInt($stateParams.page);
}
$http.get("/org/customer/level-enumeration")
.success(function (data) {
$scope.levels = data;
});
$http.get("/org/customer/status-enumeration")
.success(function (data) {
$scope.statuses = data;
});
$http({
url: "/org/team/all",
method: "GET"
})
.success(function (data) {
$scope.teams = data;
});
$http({
url: "/org/customer/list",
method: "GET",
params: $scope.iForm
})
.success(function (data) {
$scope.items = data.content;
$scope.page.totalItems = data.total;
$scope.page.currentPage = data.page + 1;
});
$scope.pageChanged = function() {
$scope.iForm.page = $scope.page.currentPage - 1;
$location.search($scope.iForm);
}
$scope.search = function () {
$scope.iForm.page = 0;
$location.search($scope.iForm);
}
}); | wangguodong577/qqj-backend | admin/src/main/webapp/app/org/customer-list.js | JavaScript | gpl-2.0 | 1,606 |
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
/**
* Add meta boxes to selected post types
*/
function bpg_add_meta_box() {
$post_types = bpg_allowed_post_types();
if ( ! $post_types )
return;
foreach ( $post_types as $post_type => $status ) {
add_meta_box( 'bpg', apply_filters( 'bpg_meta_box_title', __( 'Photo Gallery', 'better-photo-gallery' ) ), 'bpg_metabox', $post_type, apply_filters( 'bpg_meta_box_context', 'normal' ), apply_filters( 'bpg_meta_box_priority', 'low' ) );
}
}
add_action( 'add_meta_boxes', 'bpg_add_meta_box' );
/**
* Render gallery metabox
*/
function bpg_metabox() {
global $post;
?>
<div id="gallery_images_container">
<ul class="gallery_images">
<?php
$image_gallery = get_post_meta( $post->ID, '_bpg', true );
$attachments = array_filter( explode( ',', $image_gallery ) );
if ( $attachments )
foreach ( $attachments as $attachment_id ) {
echo '<li class="image attachment details" data-attachment_id="' . $attachment_id . '"><div class="attachment-preview"><div class="thumbnail">
' . wp_get_attachment_image( $attachment_id, 'thumbnail' ) . '</div>
<a href="#" class="delete check" title="' . __( 'Remove image', 'better-photo-gallery' ) . '"><div class="media-modal-icon"></div></a>
</div></li>';
} ?>
</ul>
<input type="hidden" id="image_gallery" name="image_gallery" value="<?php echo esc_attr( $image_gallery ); ?>" />
<?php wp_nonce_field( 'bpg', 'bpg' ); ?>
</div>
<p class="add_gallery_images hide-if-no-js">
<a href="#"><?php _e( 'Add images to the gallery', 'better-photo-gallery' ); ?></a>
</p>
<?php
// options don't exist yet, set to checked by default
if ( ! get_post_meta( get_the_ID(), '_bpg_link_images', true ) )
$checked = ' checked="checked"';
else
$checked = bpg_has_linked_images() ? checked( get_post_meta( get_the_ID(), '_bpg_link_images', true ), 'on', false ) : '';
?>
<p>
<label for="bpg_link_images">
<input type="checkbox" id="bpg_link_images" value="on" name="bpg_link_images"<?php echo $checked; ?> /> <?php _e( 'Link images to larger sizes', 'better-photo-gallery' )?>
</label>
</p>
<?php
/**
* JavaScript Gallery
*/
?>
<script type="text/javascript">
jQuery(document).ready(function($){
// Uploading files
var image_gallery_frame;
var $image_gallery_ids = $('#image_gallery');
var $gallery_images = $('#gallery_images_container ul.gallery_images');
jQuery('.add_gallery_images').on( 'click', 'a', function( event ) {
var $el = $(this);
var attachment_ids = $image_gallery_ids.val();
event.preventDefault();
// If the media frame already exists, reopen it.
if ( image_gallery_frame ) {
image_gallery_frame.open();
return;
}
// Create the media frame.
image_gallery_frame = wp.media.frames.downloadable_file = wp.media({
// Set the title of the modal.
title: '<?php _e( 'Add Images to Gallery', 'better-photo-gallery' ); ?>',
button: {
text: '<?php _e( 'Add to gallery', 'better-photo-gallery' ); ?>',
},
multiple: true
});
// When an image is selected, run a callback.
image_gallery_frame.on( 'select', function() {
var selection = image_gallery_frame.state().get('selection');
selection.map( function( attachment ) {
attachment = attachment.toJSON();
if ( attachment.id ) {
attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
$gallery_images.append('\
<li class="image attachment details" data-attachment_id="' + attachment.id + '">\
<div class="attachment-preview">\
<div class="thumbnail">\
<img src="' + attachment.url + '" />\
</div>\
<a href="#" class="delete check" title="<?php _e( 'Remove image', 'better-photo-gallery' ); ?>"><div class="media-modal-icon"></div></a>\
</div>\
</li>');
}
} );
$image_gallery_ids.val( attachment_ids );
});
// Finally, open the modal.
image_gallery_frame.open();
});
// Image ordering
$gallery_images.sortable({
items: 'li.image',
cursor: 'move',
scrollSensitivity:40,
forcePlaceholderSize: true,
forceHelperSize: false,
helper: 'clone',
opacity: 0.65,
placeholder: 'eig-metabox-sortable-placeholder',
start:function(event,ui){
ui.item.css('background-color','#f6f6f6');
},
stop:function(event,ui){
ui.item.removeAttr('style');
},
update: function(event, ui) {
var attachment_ids = '';
$('#gallery_images_container ul li.image').css('cursor','default').each(function() {
var attachment_id = jQuery(this).attr( 'data-attachment_id' );
attachment_ids = attachment_ids + attachment_id + ',';
});
$image_gallery_ids.val( attachment_ids );
}
});
// Remove images
$('#gallery_images_container').on( 'click', 'a.delete', function() {
$(this).closest('li.image').remove();
var attachment_ids = '';
$('#gallery_images_container ul li.image').css('cursor','default').each(function() {
var attachment_id = jQuery(this).attr( 'data-attachment_id' );
attachment_ids = attachment_ids + attachment_id + ',';
});
$image_gallery_ids.val( attachment_ids );
return false;
} );
});
</script>
<?php
}
/**
* Save function
*/
function bpg_save_post( $post_id ) {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
return;
$post_types = bpg_allowed_post_types();
// check user permissions
if ( isset( $_POST[ 'post_type' ] ) && !array_key_exists( $_POST[ 'post_type' ], $post_types ) ) {
if ( !current_user_can( 'edit_page', $post_id ) )
return;
}
else {
if ( !current_user_can( 'edit_post', $post_id ) )
return;
}
if ( ! isset( $_POST[ 'bpg' ] ) || ! wp_verify_nonce( $_POST[ 'bpg' ], 'bpg' ) )
return;
if ( isset( $_POST[ 'image_gallery' ] ) && !empty( $_POST[ 'image_gallery' ] ) ) {
$attachment_ids = sanitize_text_field( $_POST['image_gallery'] );
// turn comma separated values into array
$attachment_ids = explode( ',', $attachment_ids );
// clean the array
$attachment_ids = array_filter( $attachment_ids );
// return back to comma separated list with no trailing comma. This is common when deleting the images
$attachment_ids = implode( ',', $attachment_ids );
update_post_meta( $post_id, '_bpg', $attachment_ids );
} else {
delete_post_meta( $post_id, '_bpg' );
}
// link to larger images
if ( isset( $_POST[ 'bpg_link_images' ] ) )
update_post_meta( $post_id, '_bpg_link_images', $_POST[ 'bpg_link_images' ] );
else
update_post_meta( $post_id, '_bpg_link_images', 'off' );
do_action( 'bpg_save_post', $post_id );
}
add_action( 'save_post', 'bpg_save_post' ); | stevendejongnl/WordPress-Better-Photo-Gallery-Plugin | includes/metabox.php | PHP | gpl-2.0 | 7,550 |
/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / // / // /_/_ / / // / // /\_/ / // / | / /
* /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ /
* \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/
*
* Copyright (c) 2004 - 2008 Olof Naessén and Per Larsson
*
*
* Per Larsson a.k.a finalman
* Olof Naessén a.k.a jansem/yakslem
*
* Visit: http://guichan.sourceforge.net
*
* License: (BSD)
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name of Guichan nor the names of its contributors may
* be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef GCN_CONTRIB_ALLEGROTRUETYPEFONT_HPP
#define GCN_CONTRIB_ALLEGROTRUETYPEFONT_HPP
#include "guichan/font.hpp"
#include "guichan/platform.hpp"
namespace gcn
{
namespace contrib
{
struct GLYPH_FACE;
struct GLYPH_REND;
struct GLYPH_KEEP;
class Graphics;
/**
* True type font support using Allegro and GlyphKeeper.
*
* Note: GlyphKeeper must be compiled for allegro (define
* GLYPH_TARGET=GLYPH_TARGET_ALLEGRO) and must be
* initialized before using this class.
*
* There's only basic functionality implemented here, so
* you can add more and advanced functionality by deriving
* from this class.
*
* @author Tobias Scheuer.
*/
class GCN_EXTENSION_DECLSPEC AllegroGlyphKeeperFont : public Font
{
public:
/**
* Constructor.
*
* @param filename the filename of the True Type Font.
* @param size the size the font should be in.
*/
AllegroGlyphKeeperFont(const std::string& filename, int size);
/**
* Constructor.
*
* @param filename the filename of the True Type Font.
* @param width the width the font should be in.
* @param height the height the font should be in.
*/
AllegroGlyphKeeperFont(const std::string& filename, int width, int height);
/**
* Destructor.
*/
~AllegroGlyphKeeperFont();
// Inherited from Font
virtual int getWidth(const std::string& text) const;
virtual int getHeight() const;
virtual void drawString(Graphics* graphics, const std::string& text, int x, int y);
protected:
void load(const std::string& filename, int w, int h);
GLYPH_FACE* mFace;
GLYPH_REND* mRend;
GLYPH_KEEP* mKeeper;
};
}
}
#endif
| mekolat/elektrogamesvn | libraries/include/guichan/contrib/allegro/allegroglyphkeeperfont.hpp | C++ | gpl-2.0 | 4,411 |