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
# Logfile created on Thu Apr 09 17:52:11 -0700 2009 by / | |
========================= | |
RSS import started at Thu Apr 09 17:52:11 -0700 2009 851 | |
RSS import ended at Thu Apr 09 17:52:17 -0700 2009 52 |
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
[~/dev/connect(groups-redesign)] c | |
Loading development environment (Rails 2.2.2) | |
SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 | |
Idea Columns (3.8ms) SHOW FIELDS FROM `posts` | |
Question Columns (2.6ms) SHOW FIELDS FROM `posts` | |
GroupMessage Columns (2.4ms) SHOW FIELDS FROM `posts` | |
Message Columns (2.0ms) SHOW FIELDS FROM `posts` | |
Activity Columns (2.3ms) SHOW FIELDS FROM `activities` | |
UserProfile Columns (3.8ms) SHOW FIELDS FROM `user_profiles` | |
>> GroupActivityFeeder.import_rss |
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
# For Slideshare we have to introspect the page and get the swf file in order to create the object/embed tags | |
AutoHtml.add_filter(:slideshare).with(:width => 650, :height => 528) do |text, options| | |
text.gsub(/http:\/\/(www.)?slideshare\.net\/[A-Za-z0-9._%-]*\/([A-Za-z0-9._%-]*)[&\w;=\+_\-]*/) do |s| | |
doc = Hpricot(open(s)) | |
swf = doc.to_s.match(/http:\/\/static.slidesharecdn.com\/swf\/ssplayer2\.swf\?doc\=([A-Za-z0-9._%-]*)[&\w;=\+_\-]*/)[0] | |
%{<object style="margin:0px" width="#{options[:width]}" height="#{options[:height]}"><param name="movie" value="#{swf}" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="#{swf}" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="#{options[:width]}" height="#{options[:height]}"></embed></object>} | |
end | |
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
(in /Users/richmanalang/dev/connect) | |
== UpdateTimestamps: migrating =============================================== | |
-- execute(" update groups_posts set (created_at, updated_at) = \n (select created_at, created_at from posts where posts.id = groups_posts.post_id)\n where updated_at is null\n") |
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
require 'redcloth' | |
module ActionView | |
class TextileRenderer < ActionView::TemplateHandler | |
include ActionView::TemplateHandlers::Compilable | |
def compile(template) | |
"textile_doc = RedCloth.new(template, [:hard_breaks]).to_html" | |
end | |
def cache_fragment(block, name = {}, options = nil) | |
@view.fragment_for(block, name, options) do | |
eval("textile_doc", block.binding) |
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
appslab@appslab-1:~/connect.git$ RAILS_ENV=production rake solr:reindex ONLY=Activity | |
(in /home/appslab/connect.git) | |
Requiring REXML | |
Clearing index for Activity... | |
Rebuilding index for Activity... | |
rake aborted! | |
Couldn't connect to the Solr server at http://connect.oraclecorp.com:8000/solr. 500 "Illegal character ((CTRL-CHAR, code 11)) at [row,col {unknown-source}]: [889,140] com.ctc.ws | |
tx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 11)) at [row,col {unknown-source}]: [889,140] \tat com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamS | |
canner.java:675) \tat com.ctc.wstx.sr.BasicStreamReader.readTextPrimary(BasicStreamReader.java:4556) \tat com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:288 | |
8) \tat com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) \tat org.apache.solr.handler.XmlUpdateRequestHandler.readDoc(XmlUpdateRequestHandler.java:321) \tat org |
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
REM ** Clear/truncate/empty an array; | |
Local object &Object; | |
Local array of object &ArrObject = CreateArrayRept(&Object, 0); | |
/** OK -- It Works **/ | |
REM ** DON'T DO THIS!! | |
While (&ArrObject.Len > 0) | |
&ArrObject.Pop(); | |
End-While; |
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
require(File.dirname(__FILE__) + "/../../config/environment") unless defined?(Rails) | |
require 'sinatra' | |
require 'haml' | |
class UrlShortener < Sinatra::Base | |
set :environment, :production | |
configure :production do | |
set :hostname, "c.us.oracle.com" | |
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 style="width: 100%;" id="tripit_gadget_container"> | |
<div id="tripit_main"> | |
<div class=""> | |
<span class="fLt tiny"> | |
<a onclick="window.open('http://www.tripit.com/?us=lo&um=li&un=li');; return false;" href="javascript:void(0);"><img src="http://opensocial.tripit.com/images/logos/logo_50x23.gif" style="border: medium none ;" alt="" class="fLt alignVBot"/></a> <div class="stdVMrgT fLt fntGry tiny">Organize your travel</div> | |
</span> |
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
<html><head><style type="text/css">.mmlib_table {width: 100%;font: bold 9px arial,sans-serif;background-color: #fff4c2;border-collapse: separate;border-spacing: 0px;padding: 1px 0px;}.mmlib_xlink {font: normal 1.1em arial,sans-serif;font-weight: bold;color: #0000cc;cursor: pointer;}</style><style type="text/css">body,td,div,span,p{font-family:arial,sans-serif;}a {color:#0000cc;}a:visited {color:#551a8b;}a:active {color:#ff0000;}body{margin: 0px;padding: 0px;background-color:white;}</style><script>var gadgets={};; | |
var gadgets=gadgets||{}; | |
gadgets.config=function(){var A=[]; | |
return{register:function(D,C,B){var E=A[D]; | |
if(!E){E=[]; | |
A[D]=E | |
}E.push({validators:C||{},callback:B}) | |
},get:function(B){if(B){return configuration[B]||{} | |
}return configuration | |
},init:function(D,K){configuration=D; |