diaspora - A privacy-aware, distributed, open source social network. The diaspora* Project
I have a working diaspora pod on heroku everything is working cool except when users log in from there mobile device they cant add any one onto there aspects because the add contact option is not there on the mobile site.Does anyone know how to fix it..??
Source: (StackOverflow)
I'm trying to run rake db:seed:dev on a developer instance of Diaspora https://github.com/diaspora/diaspora/wiki and I get a bcrypt-ruby segmentation fault error. I've looked around and am unable to find any info relating to bcrypt-ruby and segmentation faults. Anyone have any ideas or know whats going on? I'm actually new to Ruby as well.
Seeding the database for development...
/usr/local/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-2.1.2/lib/bcrypt.rb:50: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin10.5.0]
-- control frame ----------
c:0049 p:---- s:0185 b:0185 l:000184 d:000184 CFUNC :__bc_crypt
c:0048 p:0137 s:0179 b:0179 l:000178 d:000178 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-2.1.2/lib/bcrypt.rb:50
c:0047 p:0038 s:0173 b:0173 l:000172 d:000172 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/encryptors/bcrypt.rb:11
c:0046 p:0075 s:0166 b:0166 l:000165 d:000165 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/models/database_authenticatable.rb:86
c:0045 p:0061 s:0162 b:0160 l:000159 d:000159 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/models/database_authenticatable.rb:41
c:0044 p:0051 s:0156 b:0156 l:000146 d:000155 BLOCK /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:183
c:0043 p:---- s:0152 b:0152 l:000151 d:000151 FINISH
c:0042 p:---- s:0150 b:0150 l:000149 d:000149 CFUNC :each_pair
c:0041 p:0030 s:0147 b:0147 l:000146 d:000146 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:181
c:0040 p:0020 s:0143 b:0142 l:000141 d:000141 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:211
c:0039 p:0023 s:0138 b:0138 l:000137 d:000137 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/accessible.rb:21
c:0038 p:0023 s:0134 b:0134 l:000133 d:000133 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/protected.rb:30
c:0037 p:0036 s:0130 b:0130 l:000129 d:000129 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:165
c:0036 p:0012 s:0126 b:0126 l:000125 d:000125 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/dirty.rb:14
c:0035 p:0012 s:0122 b:0122 l:000121 d:000121 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/sci.rb:26
c:0034 p:0016 s:0118 b:0118 l:000117 d:000117 METHOD /Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/callbacks.rb:7
c:0033 p:---- s:0114 b:0114 l:000113 d:000113 FINISH
c:0032 p:---- s:0112 b:0112 l:000111 d:000111 CFUNC :new
c:0031 p:0023 s:0108 b:0108 l:000107 d:000107 METHOD /Users/jonathanmccall2/diaspora/app/models/user.rb:387
c:0030 p:0270 s:0103 b:0103 l:000102 d:000102 TOP /Users/jonathanmccall2/diaspora/db/seeds/dev.rb:25
c:0029 p:---- s:0096 b:0096 l:000095 d:000095 FINISH
c:0028 p:---- s:0094 b:0094 l:000093 d:000093 CFUNC :require
c:0027 p:0012 s:0090 b:0090 l:000074 d:000089 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239
c:0026 p:0005 s:0088 b:0088 l:000079 d:000087 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225
c:0025 p:0045 s:0086 b:0086 l:000085 d:000085 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591
c:0024 p:0041 s:0080 b:0080 l:000079 d:000079 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225
c:0023 p:0013 s:0075 b:0075 l:000074 d:000074 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239
c:0022 p:0058 s:0070 b:0070 l:000d74 d:000069 BLOCK /Users/jonathanmccall2/diaspora/lib/tasks/db.rake:15
c:0021 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0020 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC :call
c:0019 p:0043 s:0061 b:0061 l:000052 d:000060 BLOCK /usr/local/lib/ruby/1.9.1/rake.rb:634
c:0018 p:---- s:0058 b:0058 l:000057 d:000057 FINISH
c:0017 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC :each
c:0016 p:0171 s:0053 b:0053 l:000052 d:000052 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:629
c:0015 p:0110 s:0049 b:0049 l:000043 d:000048 BLOCK /usr/local/lib/ruby/1.9.1/rake.rb:595
c:0014 p:0019 s:0047 b:0047 l:000046 d:000046 METHOD /usr/local/lib/ruby/1.9.1/monitor.rb:201
c:0013 p:0033 s:0044 b:0044 l:000043 d:000043 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:588
c:0012 p:0048 s:0038 b:0038 l:000037 d:000037 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:581
c:0011 p:0045 s:0033 b:0033 l:000032 d:000032 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:2041
c:0010 p:0012 s:0026 b:0026 l:000011 d:000025 BLOCK /usr/local/lib/ruby/1.9.1/rake.rb:2019
c:0009 p:---- s:0023 b:0023 l:000022 d:000022 FINISH
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :each
c:0007 p:0069 s:0018 b:0018 l:000011 d:000017 BLOCK /usr/local/lib/ruby/1.9.1/rake.rb:2019
c:0006 p:0009 s:0016 b:0016 l:000015 d:000015 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:2058
c:0005 p:0011 s:0012 b:0012 l:000011 d:000011 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:2013
c:0004 p:0031 s:0009 b:0009 l:000008 d:000008 METHOD /usr/local/lib/ruby/1.9.1/rake.rb:1992
c:0003 p:0036 s:0006 b:0006 l:000b94 d:0002a4 EVAL /usr/local/bin/rake:31
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000b94 d:000b94 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/rake:31:in `<main>'
/usr/local/lib/ruby/1.9.1/rake.rb:1992:in `run'
/usr/local/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
/usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
/usr/local/lib/ruby/1.9.1/rake.rb:2019:in `each'
/usr/local/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/usr/local/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
/usr/local/lib/ruby/1.9.1/rake.rb:581:in `invoke'
/usr/local/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/rake.rb:629:in `execute'
/usr/local/lib/ruby/1.9.1/rake.rb:629:in `each'
/usr/local/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
/usr/local/lib/ruby/1.9.1/rake.rb:634:in `call'
/Users/jonathanmccall2/diaspora/lib/tasks/db.rake:15:in `block (3 levels) in <top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require'
/Users/jonathanmccall2/diaspora/db/seeds/dev.rb:25:in `<top (required)>'
/Users/jonathanmccall2/diaspora/app/models/user.rb:387:in `build'
/Users/jonathanmccall2/diaspora/app/models/user.rb:387:in `new'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/callbacks.rb:7:in `initialize'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/sci.rb:26:in `initialize'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/dirty.rb:14:in `initialize'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:165:in `initialize'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/protected.rb:30:in `assign'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/accessible.rb:21:in `assign'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:211:in `assign'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:181:in `attributes='
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:181:in `each_pair'
/Users/jonathanmccall2/.bundler/ruby/1.9.1/mongomapper-de8f8f3171f6/lib/mongo_mapper/plugins/keys.rb:183:in `block in attributes='
/usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/models/database_authenticatable.rb:41:in `password='
/usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/models/database_authenticatable.rb:86:in `password_digest'
/usr/local/lib/ruby/gems/1.9.1/gems/devise-1.1.3/lib/devise/encryptors/bcrypt.rb:11:in `digest'
/usr/local/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-2.1.2/lib/bcrypt.rb:50:in `hash_secret'
/usr/local/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-2.1.2/lib/bcrypt.rb:50:in `__bc_crypt'
-- C level backtrace information -------------------------------------------
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap
Source: (StackOverflow)
I want to run diaspora without ssl in my home based webserver in production mode. How can I do that? Are there any switches/options that I can turn off?
Source: (StackOverflow)
This is the data in the JS file:
[{\"value\":16633,\"name\":\"fdgdfgdf@joindiaspora.com\"},{\"value\":16910,\"name\":\"jamesw@wk3.org\"},{\"value\":16911,\"name\":\"sdasfasf@joindiaspora.com\"}]" ),
and I want to output it in a 2d array something like:
value name,
16633 fdgdfgdf@joindiaspora.com,
16910 jamesw@wk3.org,
16911 sdasfasf@joindiaspora.com
here is my code so far:
$.ajax
({
async: false,
type: 'GET',
url: 'https://wk3.org/conversations/new',
success: function(data)
{
var matches;
var Ragex = /\\"value\\":\\"(.*)\\",\\"name\\":\\"(.*)\\"},/g //need to sort out the REGEX so it goes through each name and ID seeing if it equals ID
while ((matches = Ragex.exec(data)) !== null)
{
console.log(matches);
}
}
});
which outputs:
["\"value\":\"16633\",\"name\":\"fdgdfgdf@joindiaspora.com\"},…"},{\"value\":\"16910\",\"name\":\"jamesw@wk3.org\"},", "16633\",\"name\":\"fdgdfgdf@joindiaspora.com\"},{\"value\":\…"name\":\"sdasfasf@joindiaspora.com\"},{\"value\":\"16910", "jamesw@wk3.org", index: 92, input: "<script>↵ //<![CDATA[↵ $(document).ready(funct…it" value="Send" />↵</div>↵</form>↵</div>↵</div>↵"]
Source: (StackOverflow)
After creating a pod, I tried to setup an admin user by running:
DB=postgres bundle exec rails console production
but this failed with:
/home/diaspora/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
from /home/diaspora/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/irb/completion.rb:9:in `<top (required)>'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands/console.rb:3:in `require'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands.rb:38:in `require'
from /home/diaspora/.rvm/gems/ruby-2.0.0-p481@diaspora/gems/railties-3.2.18/lib/rails/commands.rb:38:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Does anyone know how to get past this?
Source: (StackOverflow)
I am attempting to install a Diaspora pod on my Dreamhost account, following the instructions here:
https://github.com/diaspora/diaspora/wiki/Installing-and-Running-Diaspora
Everything went smooth until it was time to use Rake in order to set up the database. I created the databases using dreamhost's web interface, and then attempted the line given in the guide:
RAILS_ENV=production bundle exec rake db:migrate
The result being:
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake: Is a directory - /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake (Errno::EISDIR)
from /usr/bin/rake:19:in `load'
from /usr/bin/rake:19
It looks like some sort of Rake problem (and indeed, /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake is a directory).
I have some other homemade Ruby-on-Rails projects running on Dreamhost and have no similar problem with rake for them. Their rakefile looks a little different but I'm not sure what causes the problem.
Source: (StackOverflow)
Hey how to make a notification system like Facebook or diaspora in rails.
I had tried making activity feed but that was not the thing I wanted I want an exactly same feature like this websites have.
I have a simple app Where there are two types of users buyers and sellers
I want to notify the seller whenever a buyer comment on their products.
Source: (StackOverflow)
i am trying to deploy diaspora on heroku but getting this error while deploying am using rails 4.1.8 with ruby 2.0.0 on ubuntu 14.04 I had tried bundle update
but it doesn't worked..any solution..??
> ahmed@ahmed-desktop:~/diaspora$ git push -u heroku heroku:master
> Counting objects: 132081, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (29619/29619), done.
> Writing objects: 100% (132081/132081), 91.87 MiB | 163.00 KiB/s, done.
> Total 132081 (delta 101146), reused 132070 (delta 101138)
> remote: Compressing source files... done.
> remote: Building source:
> remote:
> remote: -----> Deleting 6 files matching .slugignore patterns.
> remote: -----> Ruby app detected
> remote: -----> Compiling Ruby/Rails
> remote: -----> Using Ruby version: ruby-2.0.0
> remote: -----> Installing dependencies using 1.7.12
> remote: Running: bundle install --without development:test --path
> vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
> remote: You are trying to install in deployment mode after changing
> remote: your Gemfile. Run `bundle install` elsewhere and add the
> remote: updated Gemfile.lock to version control.
> remote: You have deleted from the Gemfile:
> remote: * mysql2 (= 0.3.16)
> remote: Bundler Output: You are trying to install in deployment
> mode after changing
> remote: your Gemfile. Run `bundle install` elsewhere and add the
> remote: updated Gemfile.lock to version control.
> remote:
> remote: You have deleted from the Gemfile:
> remote: * mysql2 (= 0.3.16)
> remote: !
> remote: ! Failed to install gems via Bundler.
> remote: !
> remote:
> remote: ! Push rejected, failed to compile Ruby app
> remote:
> remote: Verifying deploy...
> remote:
> remote: ! Push rejected to reddodo.
> remote:
> To https://git.heroku.com/reddodo.git
> ! [remote rejected] heroku -> master (pre-receive hook declined)
> error: failed to push some refs to 'https://git.heroku.com/reddodo.git'
Source: (StackOverflow)
What do I need to get from a webhoster if I want to host my own Diaspora* seed? Do I just need some webspace with ruby on rails capabilities? I suppose it uses Ruby On Rails SOAP for communication between seeds? If so what is needed for this?
Source: (StackOverflow)
After installing bundler, cloned diaspora and changed directory into diaspora. When I try bundle install I get this error:
Bundler could not find compatible versions for gem "oauth2": In
snapshot (Gemfile.lock):
oauth2 (0.4.1)
In Gemfile:
diaspora-client (>= 0) ruby depends on
oauth2 (= 0.5.0) ruby
Running bundle update
will rebuild your snapshot from scratch, using
only the gems in your Gemfile, which may resolve the conflict.
When I bundle update I get this error:
Bundler could not find compatible versions for gem "oauth2": In
Gemfile:
diaspora-client (>= 0) ruby depends on
oauth2 (= 0.5.0) ruby
omniauth (= 0.2.6) ruby depends on
oauth2 (0.4.1)
Anyone can help me in solving this issue? I follow the guide on http://macabhaird.wordpress.com/2011/03/11/installing-diaspora-on-ubuntu-server-10-04-part-2/ to set up diaspora. I currently using ubuntu 10.04.3
Source: (StackOverflow)
Hey guys I had installed the latest version of diaspora on my Ubuntu 13.10 PC with rails 4.1.2 and ruby 2.0.0 everything is working good but I want to change the name of the app from diaspora to something else.is it possible to do so.I am new to rails please help if u can.Thanks
Source: (StackOverflow)
I had a working diaspora pod on heroku from past 3 months every thing is working fine accept the auto follow on join functionality. I had set my own account to follow and its working but new users on my pod are not getting my old post. Anyone know what I am doing wrong..??
Source: (StackOverflow)
I am trying to install Diaspora. When I bundle install
in Windows, I encounter some problems which include
Fetching http://github.com/BadMinus/devise.git
C:/Ruby Installation/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/ \
source.rb:550:in ``': No such file or directory - git clone \
"http://github.com/BadMinus/devise.git" \
"C:/RubyInstallation/Ruby187/lib/ruby/gems/1.8/cache/bundler/ \
git/devise-d0ffd5c55896afd260298fd75c36924c72f6636c" --bare --no-hardlinks \
(Errno::ENOENT)
I also looked into the forums and tried the solutions posted there but they were of little help.
Thanks in advance.
Source: (StackOverflow)
Yes, can I do such a thing? is there a tutorial for that?
Also, Can I control the activity content? for example, can I add a HTML5 canvas? or customize the activity model?
Source: (StackOverflow)