public
Description: Open source non-commercial music platform: http://alonetone.com
Homepage: http://alonetone.com
Clone URL: git://github.com/sudara/alonetone.git
Search Repo:
Merge branch 'master' into version2
sudara (author)
Sun Apr 13 08:46:39 -0700 2008
commit  27f7f155c8ae3fe9c8510fed3dcc86f8d44d3cc6
tree    44d6d6e583f40d29f16eb08e651349698a2929bb
parent  84bce6c9112402792b0f440bdd0eee0affd82793 parent  487b4951510775744c16141e16bcbd7bd885308b
...
10
11
12
 
13
14
15
...
10
11
12
13
14
15
16
0
@@ -10,6 +10,7 @@
0
 config/defensio.yml
0
 config/facebooker.yml
0
 config/basecamp.yml
0
+config/deploy/*
0
 *.sql
0
 public/images/pretty_text/*.*
0
 log/*.log
...
1
2
3
 
4
5
6
7
8
9
...
17
18
19
20
 
21
22
23
24
25
26
27
28
29
...
43
44
45
46
 
47
 
48
49
50
51
 
 
52
53
 
 
54
55
56
57
58
59
 
60
 
61
62
63
...
73
74
75
 
 
 
 
 
 
76
77
...
1
2
 
3
4
 
 
5
6
7
...
15
16
17
 
18
19
20
21
22
23
24
25
26
27
...
41
42
43
 
44
45
46
47
48
49
 
50
51
52
 
53
54
55
 
 
56
57
 
58
59
60
61
62
63
...
73
74
75
76
77
78
79
80
81
82
83
0
@@ -1,9 +1,7 @@
0
 ## The future is bright
0
 
0
-Amazing:
0
+We live in a world where 1 person in his spare time can provide limitless distribution for hundreds of artists, thousands of songs, millions of copies.
0
 
0
-We live in a world where 1 person in his spare time can provide limitless distribution for hundreds of artists, thousands of songs, millions of copies.
0
-
0
 Truly, we are at the beginning of a revolution in music making.
0
 
0
 I invite you to join me in moving music away from countless companies looking to profit from musicians and help me to create the best damn online home for DIY/indy/new musicians.
0
@@ -17,7 +15,7 @@
0
 * It is easy to use (grandma-friendly)
0
 * It is attractive to look at
0
 * It provides musicians with practical, useful and inspiring tools and services
0
-* It does not overwhelm folks with TMI (too much information) or TMO (too many options)s)
0
+* It does not overwhelm folks with TMI (too much information) or TMO (too many options) or TMF (too many features)
0
 * It supports and makes it easy to navigate 1000s of musicians
0
 * The features are developed by the musicians, implemented and refined by the dev team
0
 
0
0
0
0
0
0
0
@@ -43,21 +41,23 @@
0
 
0
 * Rails 2
0
 * Rspec
0
-* LowPro and Prototype (likely moving to jquery here soon)
0
+* LowPro and Prototype (moving to jquery)
0
 * SoundManager 2 (for flash mp3 playback)
0
+* SASS (the cool stylesheet thing from the haml folks)
0
 
0
 ### Want to join forces?
0
 
0
-First of all, talk to me. You can send me electronic mail. Sudara at alonetone com
0
+First of all, talk to me.
0
+ You can send me electronic mail. Sudara at alonetone com
0
 
0
-http://alonetone.com
0
+Secondly, sign up for an account and browse and get used to the exsiting site:
0
+ http://alonetone.com
0
 
0
-Here is the codebase, which is open source and open development.
0
-
0
 ### Set it up
0
 
0
-You'll need to setup 5 config files for it to run flawlessly:
0
+You'll need to setup 6 config files for it to run flawlessly:
0
 
0
+ alonetone.yml (contains the application "secret")
0
     database.yml
0
     amazon_s3.yml (you can always ignore this and set Asset and Pic to use the filesysem)
0
     basecamp.yml (for todo list, you don't need it unless you want pages/todo)
0
@@ -73,6 +73,12 @@
0
       mocha (for rspec)
0
       googlecharts
0
       aws-s3
0
+ rubyzip (for extracting mp3s from zip files)
0
+
0
+Then,
0
+ rake db:migrate
0
+
0
+Until I write a bootstrapper, you'll need to make sure the database has something in it.
0
   
0
 If I were you, and I were looking at alonetone and wanting to do anything useful with it....I would email me.
...
170
171
172
173
 
174
175
...
170
171
172
 
173
174
175
0
@@ -170,7 +170,7 @@
0
     end
0
     
0
     def register_listen
0
- @asset.listens.create(:listener => (current_user || nil), :track_owner=> @asset.user, :source => @referer)
0
+ @asset.listens.create(:listener => (current_user || nil), :track_owner=> @asset.user, :source => @referer, :ip => request.remote_ip)
0
     end
0
 end
...
200
201
202
203
 
204
205
206
207
...
221
222
223
224
 
225
226
 
227
228
229
...
200
201
202
 
203
204
205
206
207
...
221
222
223
 
224
225
 
226
227
228
229
0
@@ -200,7 +200,7 @@
0
   
0
   def calculate_hotness
0
     # hotness = listens not originating from own user within last 7 days * num of alonetoners who listened to it / age
0
- ratio = ((recent_listen_count.to_f) * (unique_listener_count / 3) * age_ratio )
0
+ ratio = ((recent_listen_count.to_f) * (((unique_listener_count * 10) / User.count) + 1) * age_ratio )
0
   end
0
   
0
   def recent_listen_count(from = 7.days.ago, to = 1.hour.ago)
0
0
@@ -221,9 +221,9 @@
0
   
0
   def age_ratio
0
     case days_old
0
- when 0..3 then 12.0
0
+ when 0..3 then 20.0
0
       when 4..7 then 8.0
0
- when 8..15 then 4.0
0
+ when 8..15 then 3.0
0
       when 16..30 then 2.5
0
       when 31..90 then 1.0
0
       else 0.5
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@
0
 <div id="flash_code_<%=id%>" style="display:none;">
0
   <div class="scriptaculous">
0
     <h3>Embedd a Flash Player</h3>
0
- <%= text_area_tag 'flash_player', "<embed src=\"#{FLASH_PLAYER}\" width=\"250\" height=\"20\" allowfullscreen=\"true\" allowscriptaccess=\"always\" flashvars=\"&file=#{formatted_user_track_url(object.user, object.permalink, :mp3, :referrer => 'stream_on')}&height=20&width=250&frontcolor=0x3C3C3C&backcolor=0xf3f3f3&lightcolor=0xFF944B&screencolor=0xFF944B&showdigits=false\" />", :rows => 3, :cols =>50 %>
0
+ <%= text_area_tag 'flash_player', "<embed src=\"#{FLASH_PLAYER}\" width=\"250\" height=\"20\" allowfullscreen=\"true\" allowscriptaccess=\"always\" flashvars=\"&file=#{formatted_user_track_url(object.user, object.permalink, :mp3)}&height=20&width=250&frontcolor=0x3C3C3C&backcolor=0xf3f3f3&lightcolor=0xFF944B&screencolor=0xFF944B&showdigits=false\" />", :rows => 3, :cols =>50 %>
0
     <p class="tip">(customize how it looks by visiting <%= link_to 'the setup wizard', 'http://www.jeroenwijering.com/?page=wizard&example=2'%>)
0
     </p>
0
   </div>
...
 
 
 
...
1
2
3
0
@@ -1 +1,4 @@
0
+# use rake secret to generate a hash for this
0
+alonetone:
0
+ secret: (big long secret string)
...
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
0
@@ -12,4 +12,26 @@
0
     public_host: alonetone.com
0
     public_port: 8888
0
     local_port: 3000
0
+
0
+production:
0
+ api_key: yourkey
0
+ secret_key: yoursecretkey
0
+ canvas_page_name: yourappname
0
+ callback_url:
0
+ tunnel:
0
+ public_host_username: alonetone.com
0
+ public_host: alonetone.com
0
+ public_port: 8888
0
+ local_port: 3000
0
+
0
+test:
0
+ api_key: yourkey
0
+ secret_key: yoursecretkey
0
+ canvas_page_name: yourappname
0
+ callback_url:
0
+ tunnel:
0
+ public_host_username: alonetone.com
0
+ public_host: alonetone.com
0
+ public_port: 8888
0
+ local_port: 3000
...
4
5
6
7
 
...
4
5
6
 
7
0
@@ -4,5 +4,5 @@
0
 port: "8000"
0
 environment: production
0
 pid_file: /home/alonetone.com/web/alonetone/current/tmp/pids/mongrel.pid
0
-servers: 5
0
+servers: 4
...
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
0
@@ -1 +1,9 @@
0
+class AddIPtoListens < ActiveRecord::Migration
0
+ def self.up
0
+ add_column :listens, :ip, :string
0
+ end
0
+
0
+ def self.down
0
+ end
0
+end

Comments

    No one has commented yet.