Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / General / archives / 2005 / 08 / jinzora.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
7 <link rel="stylesheet" href="http://defaria.com/blogs/General/styles.css" type="text/css" />
8 <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
9 <link rel="alternate" type="application/atom+xml" title="Recent Entries" href="http://defaria.com/blogs/General/atom.xml" />
10 <script type="text/javascript" src="http://defaria.com/blogs/General/mt.js"></script>
11
12
13     
14     <link rel="prev bookmark" href="http://defaria.com/blogs/General/archives/2005/03/recruiters.html" title="Recruiters" />
15     <link rel="next bookmark" href="http://defaria.com/blogs/General/archives/2005/09/comment-spam-bl.html" title="Comment Spam blocking" />
16     
17     
18     <title>Jinzora - General</title>
19 </head>
20 <body id="classic-blog" class="mt-entry-archive layout-wtt">
21     <div id="container">
22         <div id="container-inner">
23
24
25             <div id="header">
26     <div id="header-inner">
27         <div id="header-content">
28
29
30             <div id="header-name"><a href="http://defaria.com/blogs/General/" accesskey="1">General</a></div>
31             <div id="header-description"></div>
32
33         </div>
34     </div>
35 </div>
36
37
38
39             <div id="content">
40                 <div id="content-inner">
41
42
43                     <div id="alpha">
44                         <div id="alpha-inner">
45
46
47                             <div id="entry-412" class="entry-asset asset hentry">
48                                 <div class="asset-header">
49                                     <h1 id="page-title" class="asset-name entry-title">Jinzora</h1>
50                                     <div class="asset-meta">
51                                         <span class="byline">
52
53                                             <abbr class="published" title="2005-08-23T08:58:50-08:00">August 23, 2005  8:58 AM</abbr>
54
55                                         </span>
56
57
58                                     </div>
59                                 </div>
60                                 <div class="asset-content entry-content">
61
62                                     <div class="asset-body">
63                                         <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>
64
65 <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>
66
67 <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>
68
69 <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:
70
71 <p>bioart wrote:</p>
72 <blockquote type="cite">
73   <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>
74
75 <p>Open /lib/general.lib and add this code to the scrable functions: "return $string ;". First: Search for this part:</p>
76
77 <div class="code"><pre>
78 function jz_encode($string, $key = false) {
79   // Complex scheme.
80 </pre></div>
81
82 <p>change it in:</p>
83
84 <div class="code"><pre>
85 function jz_encode($string, $key = false) {
86   return $string ;
87   // Complex scheme.
88 </pre></div>
89
90 <p>Next : Search for this part:</p>
91
92 <div class="code"><pre>
93 function jz_decode($string, $key = false) {
94   // Complex scheme.
95 </pre></div>
96
97 <p>change it in:</p>
98
99 <div class="code"><pre>
100 function jz_decode($string, $key = false) {
101   return $string ;
102   // Complex scheme.
103 </pre></div>
104 </blockquote>
105
106 <p>Again, currently, implementing this does indeed turn off the base64 encoding of URL parms but it breaks logging in and logging out.</p>
107
108 <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>
109
110 <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>
111
112 <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>
113
114 <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>
115                                     </div>
116
117
118                                 </div>
119                                 <div class="asset-footer">
120
121     
122
123
124                                 </div>
125                             </div>
126
127
128                     
129                     
130
131
132                         </div>
133                     </div>
134
135
136                     <div id="beta">
137     <div id="beta-inner">
138
139
140     
141     <div class="widget-archive widget-archive-category widget">
142     <h3 class="widget-header">Categories</h3>
143     <div class="widget-content">
144     
145     </div>
146 </div>
147
148
149
150
151     <div class="widget-archive-monthly widget-archive widget">
152     <h3 class="widget-header">Monthly <a href="http://defaria.com/blogs/General/archives.html">Archives</a></h3>
153     <div class="widget-content">
154         <ul>
155         
156             <li><a href="http://defaria.com/blogs/General/archives/2017/07/">July 2017 (1)</a></li>
157         
158     
159         
160             <li><a href="http://defaria.com/blogs/General/archives/2017/04/">April 2017 (1)</a></li>
161         
162     
163         
164             <li><a href="http://defaria.com/blogs/General/archives/2016/11/">November 2016 (1)</a></li>
165         
166     
167         
168             <li><a href="http://defaria.com/blogs/General/archives/2016/05/">May 2016 (1)</a></li>
169         
170     
171         
172             <li><a href="http://defaria.com/blogs/General/archives/2016/03/">March 2016 (1)</a></li>
173         
174     
175         
176             <li><a href="http://defaria.com/blogs/General/archives/2015/10/">October 2015 (1)</a></li>
177         
178     
179         
180             <li><a href="http://defaria.com/blogs/General/archives/2015/01/">January 2015 (2)</a></li>
181         
182     
183         
184             <li><a href="http://defaria.com/blogs/General/archives/2014/11/">November 2014 (1)</a></li>
185         
186     
187         
188             <li><a href="http://defaria.com/blogs/General/archives/2014/02/">February 2014 (1)</a></li>
189         
190     
191         
192             <li><a href="http://defaria.com/blogs/General/archives/2014/01/">January 2014 (1)</a></li>
193         
194     
195         
196             <li><a href="http://defaria.com/blogs/General/archives/2011/03/">March 2011 (1)</a></li>
197         
198     
199         
200             <li><a href="http://defaria.com/blogs/General/archives/2010/11/">November 2010 (1)</a></li>
201         
202     
203         
204             <li><a href="http://defaria.com/blogs/General/archives/2010/10/">October 2010 (1)</a></li>
205         
206     
207         
208             <li><a href="http://defaria.com/blogs/General/archives/2010/06/">June 2010 (4)</a></li>
209         
210     
211         
212             <li><a href="http://defaria.com/blogs/General/archives/2010/04/">April 2010 (1)</a></li>
213         
214     
215         
216             <li><a href="http://defaria.com/blogs/General/archives/2010/03/">March 2010 (4)</a></li>
217         
218     
219         
220             <li><a href="http://defaria.com/blogs/General/archives/2010/02/">February 2010 (7)</a></li>
221         
222     
223         
224             <li><a href="http://defaria.com/blogs/General/archives/2009/05/">May 2009 (1)</a></li>
225         
226     
227         
228             <li><a href="http://defaria.com/blogs/General/archives/2009/04/">April 2009 (2)</a></li>
229         
230     
231         
232             <li><a href="http://defaria.com/blogs/General/archives/2009/01/">January 2009 (1)</a></li>
233         
234     
235         
236             <li><a href="http://defaria.com/blogs/General/archives/2007/04/">April 2007 (1)</a></li>
237         
238     
239         
240             <li><a href="http://defaria.com/blogs/General/archives/2006/11/">November 2006 (1)</a></li>
241         
242     
243         
244             <li><a href="http://defaria.com/blogs/General/archives/2006/09/">September 2006 (2)</a></li>
245         
246     
247         
248             <li><a href="http://defaria.com/blogs/General/archives/2005/12/">December 2005 (1)</a></li>
249         
250     
251         
252             <li><a href="http://defaria.com/blogs/General/archives/2005/10/">October 2005 (1)</a></li>
253         
254     
255         
256             <li><a href="http://defaria.com/blogs/General/archives/2005/09/">September 2005 (1)</a></li>
257         
258     
259         
260             <li><a href="http://defaria.com/blogs/General/archives/2005/08/">August 2005 (1)</a></li>
261         
262     
263         
264             <li><a href="http://defaria.com/blogs/General/archives/2005/03/">March 2005 (1)</a></li>
265         
266     
267         
268             <li><a href="http://defaria.com/blogs/General/archives/2004/02/">February 2004 (6)</a></li>
269         
270     
271         
272             <li><a href="http://defaria.com/blogs/General/archives/2004/01/">January 2004 (1)</a></li>
273         
274     
275         
276             <li><a href="http://defaria.com/blogs/General/archives/2003/11/">November 2003 (2)</a></li>
277         
278     
279         
280             <li><a href="http://defaria.com/blogs/General/archives/2003/10/">October 2003 (5)</a></li>
281         
282         </ul>
283     </div>
284 </div>
285         
286     
287
288
289
290 <div class="widget-pages widget">
291     <h3 class="widget-header">Pages</h3>
292     <div class="widget-content">
293         <ul>
294     
295     
296             <li class="folder folder-38"><strong>about</strong>
297         
298             </li>
299         
300     
301         </ul>
302     </div>
303 </div>
304
305 <div class="widget-syndication widget">
306     <div class="widget-content">
307         <ul>
308             <li><img src="http://defaria.com/mt/mt-static/images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="http://defaria.com/blogs/General/atom.xml">Subscribe to this blog's feed</a></li>
309
310         </ul>
311     </div>
312 </div>
313 <div class="widget-powered widget">
314     <div class="widget-content">
315         <a href="http://www.movabletype.com/"><img src="http://defaria.com/mt/mt-static/images/bug-pbmt-white.png" alt="Powered by Movable Type 5.2.3" width="120" height="75" /></a>
316     </div>
317 </div>
318
319
320
321     </div>
322 </div>
323
324
325
326     
327 <div id="gamma">
328     <div id="gamma-inner">
329     <div class="widget-search widget">
330     <h3 class="widget-header">Search</h3>
331     <div class="widget-content">
332         <form method="get" action="http://defaria.com/mt/mt-search.cgi">
333             <input type="text" id="search" class="ti" name="search" value="" />
334
335             <input type="hidden" name="IncludeBlogs" value="1" />
336
337             <input type="hidden" name="limit" value="20" />
338             <input type="submit" accesskey="4" value="Search" />
339         </form>
340     </div>
341 </div>
342
343 <div class="widget-about-this-page widget">
344     <h3 class="widget-header">
345
346         About this Entry
347
348
349     </h3>
350     <div class="widget-content">
351
352
353         <p class="first">This page contains a single entry by  published on <em>August 23, 2005  8:58 AM</em>.</p>
354     
355         <p><a href="http://defaria.com/blogs/General/archives/2005/03/recruiters.html">Recruiters</a> was the previous entry in this blog.</p>
356     
357     
358         <p><a href="http://defaria.com/blogs/General/archives/2005/09/comment-spam-bl.html">Comment Spam blocking</a> is the next entry in this blog.</p>
359     
360
361
362
363
364
365         <p>Find recent content on the <a href="http://defaria.com/blogs/General/">main index</a> or look in the <a href="http://defaria.com/blogs/General/archives.html">archives</a> to find all content.</p>
366
367     </div>
368 </div>
369
370
371     </div>
372 </div>
373
374
375
376
377                 </div>
378             </div>
379
380
381             <div id="footer">
382     <div id="footer-inner">
383         <div id="footer-content">
384             <div class="widget-powered widget">
385                 <div class="widget-content">
386                     Powered by <a href="http://www.movabletype.org/">Movable Type</a>
387                 </div>
388             </div>
389
390         </div>
391     </div>
392 </div>
393
394
395
396         </div>
397     </div>
398 </body>
399 </html>