This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? echo $row['mktMarket']; ?> | |
<? | |
$strMarketDisplay .= "<a href=\""; | |
$strMarketDisplay .= "market_view.html?ID=" . $row['mktID'] . "&type=" . $strURLType . "&state=" . $mktStateArr[0]; | |
$strMarketDisplay .= "\">"; | |
$strMarketDisplay .= $row['mktMarket']; | |
$strMarketDisplay .= "</a>"; | |
echo $strMarketDisplay; | |
?><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canaveral:mkm jathayde$ rake db:bootstrap --trace | |
(in /Users/jathayde/Sites/work/mkm) | |
** Invoke db:bootstrap (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute db:bootstrap | |
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/access_levels.yml | |
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/ad_buys.yml | |
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/advertisers.yml | |
Loading /Users/jathayde/Sites/work/mkm/db/bootstrap/alerts.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Soho:~ jathayde$ ssh -2 -v jathayde@staging.resonantvibes.com | |
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006 | |
debug1: Reading configuration data /Users/jathayde/.ssh/config | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: Connecting to staging.resonantvibes.com [173.45.229.49] port 22. | |
debug1: Connection established. | |
debug1: identity file /Users/jathayde/.ssh/id_rsa type 1 | |
debug1: identity file /Users/jathayde/.ssh/id_dsa type 2 | |
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 | |
debug1: match: OpenSSH_4.3 pat OpenSSH* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def days_count(adbuy) | |
date1 = adbuy.enddate | |
date2 = adbuy.startdate | |
"#{date1-date2} days total" | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="top_ten" class="widget"> | |
<h3 class="sifrdboldgray">Top 10</h3> | |
<ol> | |
<% playlist.listings.each_with_index do |listing, i| -%> | |
<% if i < show %> | |
<li> | |
<p class="track_title"><%= truncate(listing.composition.title,20,"...") %></p> | |
<a class="sm2_link" href="<%= listing.composition.preview_url %>"><span class="hide_me">Preview</span> </a> | |
<p class="artist_name"><%= !listing.composition.producer_name.blank? ? truncate(listing.composition.producer_name,20,"...") : "No artist listed" %></p> | |
<%#= link_to_function(image_tag("icon_load_in_player.png", :alt => "Add to Playlist",:title => "Add to Playlist"), "addCompositionToPlayerPlaylist(#{listing.composition.id})") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ol class="latest_uploads"> | |
<% playlist.listings.each_with_index do |listing, i| -%> | |
<% if i < show %> | |
<% composition = listing.composition %> | |
<% position = i %> | |
<li class="playlist_item"> | |
<p class="track_title"><%= link_to awesome_truncate(composition.title,30), composition_path(composition), :title => composition.title %></p> | |
<p class="sm2_link"><a href="<%= composition.preview_url %>"><span class="hide_me">Preview</span> </a> | |
<% if composition.network? %> | |
<%= link_to image_tag("button_playlist_download.gif", :alt => "Download"), downloads_path(:audio_item_id => composition.audio_items.first.id), :method => :post%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canaveral:dvlabs jathayde$ ruby script/server | |
=> Booting Mongrel (use 'script/server webrick' to force WEBrick) | |
=> Rails 2.2.2 application starting on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
** Starting Mongrel listening at 0.0.0.0:3000 | |
** Starting Rails with development environment... | |
using localhost for PERCEUS_MASTER | |
** Rails loaded. | |
** Loading any Rails specific GemPlugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 class="search-details"> | |
<p><span>Results for</span> '<span class="searched-for"><%= @query %></span>'</p> | |
<h2> | |
<%# WHAT THE FUCK?!?!?! %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# def initialize(photo) | |
# @photo = PHOTOS[rand(24)] | |
# end | |
def filename | |
@photo[0] | |
end | |
def photo_caption | |
@photo[1] |
OlderNewer