This file contains hidden or 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
2015-03-03 11:56:32.536744 2912 [139714438866688] debug KurentoWebSocketTransport WebSocketTransport.cpp:499 openHandler() Client connected from http://localhost:8080 | |
2015-03-03 11:56:32.669511 2912 [139714430473984] debug KurentoWebSocketTransport WebSocketTransport.cpp:478 processMessage() Message: >{"jsonrpc":"2.0","method":"create","params":{"type":"MediaPipeline"},"id":0}< | |
2015-03-03 11:56:32.670090 2912 [139714430473984] debug KurentoServerMethods ServerMethods.cpp:236 postProcess() Caching: {"id":0,"jsonrpc":"2.0","result":{"sessionId":"3466cda7-8b6d-422c-92e4-d22bbe2d4a4d","value":"a76fbfb4-5989-4acc-8232-260830730951_MediaPipeline"}} | |
2015-03-03 11:56:32.670176 2912 [139714430473984] debug KurentoWebSocketTransport WebSocketTransport.cpp:480 processMessage() Response: >{"id":0,"jsonrpc":"2.0","result":{"sessionId":"3466cda7-8b6d-422c-92e4-d22bbe2d4a4d","value":"a76fbfb4-5989-4acc-8232-260830730951_MediaPipeline"}} | |
< | |
2015-03-03 11:56:32.670252 2912 [139714430473984] debug KurentoWebSock |
This file contains hidden or 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
/* | |
* (C) Copyright 2014 Kurento (http://kurento.org/) | |
* | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the GNU Lesser General Public License | |
* (LGPL) version 2.1 which accompanies this distribution, and is available at | |
* http://www.gnu.org/licenses/lgpl-2.1.html | |
* | |
* This library is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or 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
var http = require('http'), | |
fs = require('fs'), | |
path = require('path'), | |
static = require('node-static'); | |
var PORT = 8897, | |
RECORDINGS_DIR = './directory-to-store-recordings'; // CHANGE THIS | |
var fileServer = new static.Server(RECORDINGS_DIR); |
This file contains hidden or 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
named_scope :unfiltered, { } | |
named_scope :not_hidden, :conditions => { :hidden => false } | |
named_scope :not_private, :conditions => { :private => false } | |
named_scope :not_not_private, :conditions => { :private => true } | |
named_scope :restricted, :conditions => { :restricted => true } | |
named_scope :unrestricted, :conditions => { :restricted => false, :initiation => false } | |
named_scope :interesting, lambda { |user| | |
{ :conditions => { :user_id => user.friends.map(&:id) } } | |
} |
This file contains hidden or 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 index | |
scope = if current_user | |
case @filter | |
when :all; Post.not_private.unfiltered | |
when :all_unread; Post.not_private.unread(current_user) | |
when :restricted; Post.not_private.restricted | |
when :unrestricted; Post.not_private.unrestricted | |
when :interesting; Post.not_private.interesting(current_user) | |
when :my; Post.not_private.has_unread_comments(current_user).my(current_user) | |
when :my_all; Post.not_private.my(current_user) |
This file contains hidden or 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
<% if !flash[:error].blank? -%> | |
<div class="red"> | |
<%= flash[:error] %> | |
</div> | |
<% end -%> | |
<% form_for [:manager, @article] do |f| -%> | |
<%= f.text_area :content, size: "100x40", id: "article_editor" %> | |
<%= f.submit %> | |
<% end -%> |
This file contains hidden or 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
- if !flash[:error].blank? | |
.red= flash[:error] | |
- form_for [:manager, @article] do |f| | |
= f.text_area :content, size: "100x40", id: "article_editor" | |
= f.submit | |
%script | |
CKEDITOR.replace("article_editor"); |