Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / General / archives / 000412.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
3    xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard"> <head>
4    <meta http-equiv="Content-Type" content="text/html;
5    charset=utf-8" />
6    <meta name="generator" content="Movable Type 3.2" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/General/styles-site.css"
9    type="text/css" />
10    <link rel="alternate" type="application/atom+xml" title="Atom"
11    href="http://defaria.com/blogs/General/atom.xml" />
12    <link rel="alternate" type="application/rss+xml" title="RSS 2.0"
13    href="http://defaria.com/blogs/General/index.xml" />
14
15    <title>General: Jinzora</title>
16
17    <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
18    <link rel="prev" href="http://defaria.com/blogs/General/archives/000312.html"
19    title="Recruiters" />
20    <link rel="next" href="http://defaria.com/blogs/General/archives/000434.html"
21    title="Comment Spam blocking" />
22
23    
24
25    
26
27    <script type="text/javascript"
28    src="http://defaria.com/blogs/General/mt-site.js"></script> </head> <body
29    class="layout-two-column-right"
30    onload="individualArchivesOnLoad(commenter_name)">
31    <div id="container">
32       <div id="container-inner" class="pkg">
33
34          <div id="banner">
35             <div id="banner-inner" class="pkg">
36                <h1 id="banner-header"><a href="http://defaria.com/blogs/General/"
37                accesskey="1">General</a></h1>
38                <h2 id="banner-description"></h2>
39             </div>
40          </div>
41
42          <div id="pagebody">
43             <div id="pagebody-inner" class="pkg">
44                <div id="alpha">
45                   <div id="alpha-inner" class="pkg">
46
47                      <p class="content-nav">
48                         <a
49                         href="http://defaria.com/blogs/General/archives/000312.html">&laquo;
50                         Recruiters</a> |
51                         <a href="http://defaria.com/blogs/General/">Main</a>
52                         | <a
53                         href="http://defaria.com/blogs/General/archives/000434.html">Comment Spam blocking
54                         &raquo;</a>
55                      </p>
56
57                      <a id="a000412"></a>
58                      <div class="entry" id="entry-412">
59                         <h3 class="entry-header">Jinzora</h3>
60                         <div class="entry-content">
61                            <div class="entry-body">
62                               <p>Recently I disovered <a href="http://jinzora.com">Jinzora></a> which allows you to keep a media library on your web server and stream songs to anywhere on the Internet. It's really cool with it's "slick" interface displaying album art, artist art as well as descriptions of artists, albums and even lyrics! I've moved my <a href="/jinzora2">Media Collection</a> over to using Jinzora. It's a PHP application using a MySQL backend and it's open source. Problem is it's a big app and it uses a lot of resources on my tiny server. I need a bigger server for sure!</p>
63
64 <p>Jinzora has capabilities for <i>transcoding</i> songs to other bitrates <b>on the fly</b>. While nice in theory I cannot afford yet more server bandwidth - my server is crawling at times as it is!</p>
65
66 <p>Jinzora also allows people to register for user accounts and for the administrator to configure the level of access per user classes. It also has the ability to stream music to several Flash based players as well as allow the user to use an external media player such as Windows Media Player or WinAmp, etc. For example, on Linux I use xmms. This helps because you can configure Jinzora to use a Flash based player and you don't have to worry about whether or not your end user has properly configured say Windows Media Player or that they have a mess of Windows Media Player, WinAmp, MusicMatch and Real Player all competing for their media files and none really configured correctly, which is often the case.</p>
67
68 <p>One thing that bugs me is that Jinzora is that it encodes links with parameter information that is encoded in base64. This is probably for security purposes but it really makes links that you may email or paste to an IM window ugly!. The following will turn this off but there's a problem where when you implement this hack logging in of users then fails to work! The following was gotten from the <a href="http://www.jinzora.com/forums">Jinzora Forums</a> from <a href="http://www.jinzora.com/forums/viewtopic.php?t=1801&start=15">this</a posting:
69
70 <p>bioart wrote:</p>
71 <blockquote type="cite">
72   <p>Thanks for the offline comments... long story short, it appears like it was a minor incompatibility between the released J2 and Mandrake 10.1's php. I don't know how it will be fixed in the release, but the quick fix I got from Ben/Wim: (This fixes it, but it is not optimal, so only use it if you really need it).</p>
73
74 <p>Open /lib/general.lib and add this code to the scrable functions: "return $string ;". First: Search for this part:</p>
75
76 <div class="code"><pre>
77 function jz_encode($string, $key = false) {
78   // Complex scheme.
79 </pre></div>
80
81 <p>change it in:</p>
82
83 <div class="code"><pre>
84 function jz_encode($string, $key = false) {
85   return $string ;
86   // Complex scheme.
87 </pre></div>
88
89 <p>Next : Search for this part:</p>
90
91 <div class="code"><pre>
92 function jz_decode($string, $key = false) {
93   // Complex scheme.
94 </pre></div>
95
96 <p>change it in:</p>
97
98 <div class="code"><pre>
99 function jz_decode($string, $key = false) {
100   return $string ;
101   // Complex scheme.
102 </pre></div>
103 </blockquote>
104
105 <p>Again, currently, implementing this does indeed turn off the base64 encoding of URL parms but it breaks logging in and logging out.</p>
106
107 <p>Finally, a note on security: When I get my Jinzora site up and streaming I noticed even slower than normal response from my server and even got knocked off the net a few times. Scanning the logs it appears as if there are people again hitting my server and attempting to directly download my mp3 files or download them through Jinzora in an automated fashion that just swamps my tiny server. For example, college kids find a site with mp3 files then swamp it to steal your mp3's.</p>
108
109 <p>Jinzora has it's own directory where the PHP files and other data is stored. It also has <i>media directories</i> where media is pulled from. My Jinzora directory is at /web/jinzora2. My media directory is at /web/Music (which is shared via Samba over to my XP boxes). As /web is my DocumentRoot, this exposes /web/Music to the INternet. Thus you could access http://defaria.com/Music/<proper path>/<song file>.mp3 and utilize something like wget(1) to effectively steal mp3 files.</p>
110
111 <p>IOW you don't need to go through the Jinzora interface, thus be subject to Jinzora's user/password login to get to my mp3 files. My first attempt to secure this was to put a .htaccess file in /web/jinzora2. This secures Jinzora by making the web server perform basic authentication. But basic authentication is a pain to manage and it defeats the username/password accounts in Jinzora.</p>
112
113 <p>So I got to thinking "I just need to secure /web/Music. Jinzora will still be able to access those media files without the need to authenticate through the web server because it's basically a PHP app running on my server and just reading files through a path" and I moved .htaccess to /web/Music. Viola, I'm now secure!</p>
114                            </div>
115                            <div id="more" class="entry-more">
116                               
117                            </div>
118                         </div>
119                         <p class="entry-footer">
120                            <span class="post-footers">Posted by
121                            Andrew DeFaria on
122                            August 23, 2005 08:58 AM</span> <span
123                            class="separator">|</span> <a
124                            class="permalink"
125                            href="http://defaria.com/blogs/General/archives/000412.html">Permalink</a>
126                         </p>
127                      </div>
128
129                      
130
131                      
132                   </div>
133                </div>
134                <div id="beta">
135                   <div id="beta-inner" class="pkg">
136                      <div class="module-search module">
137                         <h2 class="module-header">Search</h2>
138                         <div class="module-content">
139                            <form method="get"
140                            action="http://defaria.com/mt/mt-search.cgi">
141                               <input type="hidden" name="IncludeBlogs"
142                               value="1" />
143                               <label for="search" accesskey="4">Search
144                               this blog:</label><br />
145                               <input id="search" name="search"
146                               size="20" />
147                               <input type="submit" value="Search" />
148                            </form>
149                         </div>
150                      </div>
151                      
152                      
153                      
154                                           <div class="module-archives module">
155                         <h2 class="module-header"><a
156                         href="http://defaria.com/blogs/General/archives.html">Archives</a></h2>
157                         <div class="module-content">
158                                                    <ul
159                            class="module-list">
160                               <li class="module-list-item"><a
161                               href="http://defaria.com/blogs/General/archives/2011_03.html">March 2011</a></li>
162                            
163                                                    
164                               <li class="module-list-item"><a
165                               href="http://defaria.com/blogs/General/archives/2010_11.html">November 2010</a></li>
166                            
167                                                    
168                               <li class="module-list-item"><a
169                               href="http://defaria.com/blogs/General/archives/2010_10.html">October 2010</a></li>
170                            
171                                                    
172                               <li class="module-list-item"><a
173                               href="http://defaria.com/blogs/General/archives/2010_06.html">June 2010</a></li>
174                            
175                                                    
176                               <li class="module-list-item"><a
177                               href="http://defaria.com/blogs/General/archives/2010_04.html">April 2010</a></li>
178                            
179                                                    
180                               <li class="module-list-item"><a
181                               href="http://defaria.com/blogs/General/archives/2010_03.html">March 2010</a></li>
182                            
183                                                    
184                               <li class="module-list-item"><a
185                               href="http://defaria.com/blogs/General/archives/2010_02.html">February 2010</a></li>
186                            
187                                                    
188                               <li class="module-list-item"><a
189                               href="http://defaria.com/blogs/General/archives/2009_05.html">May 2009</a></li>
190                            
191                                                    
192                               <li class="module-list-item"><a
193                               href="http://defaria.com/blogs/General/archives/2009_04.html">April 2009</a></li>
194                            
195                                                    
196                               <li class="module-list-item"><a
197                               href="http://defaria.com/blogs/General/archives/2009_01.html">January 2009</a></li>
198                            
199                                                    
200                               <li class="module-list-item"><a
201                               href="http://defaria.com/blogs/General/archives/2007_04.html">April 2007</a></li>
202                            
203                                                    
204                               <li class="module-list-item"><a
205                               href="http://defaria.com/blogs/General/archives/2006_11.html">November 2006</a></li>
206                            
207                                                    
208                               <li class="module-list-item"><a
209                               href="http://defaria.com/blogs/General/archives/2006_09.html">September 2006</a></li>
210                            
211                                                    
212                               <li class="module-list-item"><a
213                               href="http://defaria.com/blogs/General/archives/2005_12.html">December 2005</a></li>
214                            
215                                                    
216                               <li class="module-list-item"><a
217                               href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005</a></li>
218                            
219                                                    
220                               <li class="module-list-item"><a
221                               href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005</a></li>
222                            
223                                                    
224                               <li class="module-list-item"><a
225                               href="http://defaria.com/blogs/General/archives/2005_08.html">August 2005</a></li>
226                            
227                                                    
228                               <li class="module-list-item"><a
229                               href="http://defaria.com/blogs/General/archives/2005_03.html">March 2005</a></li>
230                            
231                                                    
232                               <li class="module-list-item"><a
233                               href="http://defaria.com/blogs/General/archives/2004_02.html">February 2004</a></li>
234                            
235                                                    
236                               <li class="module-list-item"><a
237                               href="http://defaria.com/blogs/General/archives/2004_01.html">January 2004</a></li>
238                            
239                                                    
240                               <li class="module-list-item"><a
241                               href="http://defaria.com/blogs/General/archives/2003_11.html">November 2003</a></li>
242                            
243                                                    
244                               <li class="module-list-item"><a
245                               href="http://defaria.com/blogs/General/archives/2003_10.html">October 2003</a></li>
246                            </ul>
247                         
248                         </div>
249                      </div>
250                      
251                      
252                      <div class="module-archives module">
253                         <h2 class="module-header">Recent Posts</h2>
254                         <div class="module-content">
255                            <ul class="module-list">
256                                                          <li class="module-list-item"><a
257                               href="http://defaria.com/blogs/General/archives/000746.html">California</a></li>
258                                                          <li class="module-list-item"><a
259                               href="http://defaria.com/blogs/General/archives/000745.html">Point people more directly</a></li>
260                                                          <li class="module-list-item"><a
261                               href="http://defaria.com/blogs/General/archives/000744.html">Comcast speed</a></li>
262                                                          <li class="module-list-item"><a
263                               href="http://defaria.com/blogs/General/archives/000739.html">More Playon Fun</a></li>
264                                                          <li class="module-list-item"><a
265                               href="http://defaria.com/blogs/General/archives/000736.html">How not to run a company</a></li>
266                                                          <li class="module-list-item"><a
267                               href="http://defaria.com/blogs/General/archives/000734.html">How to get your mic working on Ubuntu 9.10</a></li>
268                                                          <li class="module-list-item"><a
269                               href="http://defaria.com/blogs/General/archives/000729.html">Cell phones - Not up to snuff!</a></li>
270                                                          <li class="module-list-item"><a
271                               href="http://defaria.com/blogs/General/archives/000728.html">Stupid is as stupid does</a></li>
272                                                          <li class="module-list-item"><a
273                               href="http://defaria.com/blogs/General/archives/000723.html">Priority Queues...</a></li>
274                                                          <li class="module-list-item"><a
275                               href="http://defaria.com/blogs/General/archives/000722.html">Broken DNS</a></li>
276                            
277                            </ul>
278                         </div>
279                      </div>
280                      
281                      <div class="module-syndicate module">
282                         <div class="module-content">
283                            <a href="http://defaria.com/blogs/General/atom.xml">Subscribe
284                            to this blog's feed</a><br />
285                            [<a
286                            href="http://www.sixapart.com/about/feeds">What
287                            is this?</a>]
288                         </div>
289                      </div>
290                      
291                      
292                      
293                      <div class="module-powered module">
294                         <div class="module-content">
295                            Powered by<br /><a
296                            href="http://www.sixapart.com/movabletype/">Movable
297                            Type 3.2</a>
298                         </div>
299                      </div>
300                   </div>
301                </div>
302             </div>
303          </div>
304       </div>
305    </div>
306  </body>
307 </html>