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">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 3.2" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/General/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/General/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/General/index.xml"$>" />
12 <title>General: August 2005 Archives</title>
14 <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/General/archives/2005_03.html" title="March 2005" />
16 <link rel="next" href="http://defaria.com/blogs/General/archives/2005_09.html" title="September 2005" />
18 <body class="layout-two-column-right">
20 <div id="container-inner" class="pkg">
23 <div id="banner-inner" class="pkg">
24 <h1 id="banner-header"><a href="http://defaria.com/blogs/General/" accesskey="1">General</a></h1>
25 <h2 id="banner-description"></h2>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/General/archives/2005_03.html">« March 2005</a> |
36 <a href="http://defaria.com/blogs/General/">Main</a>
37 | <a href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005 »</a>
42 <h2 class="date-header">August 23, 2005</h2>
44 <div class="entry" id="entry-412">
45 <h3 class="entry-header">Jinzora</h3>
46 <div class="entry-content">
47 <div class="entry-body">
48 <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>
50 <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>
52 <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>
54 <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:
57 <blockquote type="cite">
58 <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>
60 <p>Open /lib/general.lib and add this code to the scrable functions: "return $string ;". First: Search for this part:</p>
62 <div class="code"><pre>
63 function jz_encode($string, $key = false) {
69 <div class="code"><pre>
70 function jz_encode($string, $key = false) {
75 <p>Next : Search for this part:</p>
77 <div class="code"><pre>
78 function jz_decode($string, $key = false) {
84 <div class="code"><pre>
85 function jz_decode($string, $key = false) {
91 <p>Again, currently, implementing this does indeed turn off the base64 encoding of URL parms but it breaks logging in and logging out.</p>
93 <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>
95 <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>
97 <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>
99 <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>
101 <p class="entry-footer">
102 <span class="post-footers">Posted by Andrew DeFaria at 08:58 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/General/archives/000412.html">Permalink</a>
115 <div id="beta-inner" class="pkg">
116 <div class="module-search module">
117 <h2 class="module-header">Search</h2>
118 <div class="module-content">
119 <form method="get" action="http://defaria.com/mt/mt-search.cgi">
120 <input type="hidden" name="IncludeBlogs" value="1" />
121 <label for="search" accesskey="4">Search this blog:</label><br />
122 <input id="search" name="search" size="20" />
123 <input type="submit" value="Search" />
130 <div class="module-archives module">
131 <h2 class="module-header"><a href="http://defaria.com/blogs/General/archives.html">Archives</a></h2>
132 <div class="module-content">
133 <ul class="module-list">
134 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2011_03.html">March 2011</a></li>
137 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_11.html">November 2010</a></li>
140 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_10.html">October 2010</a></li>
143 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_06.html">June 2010</a></li>
146 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_04.html">April 2010</a></li>
149 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_03.html">March 2010</a></li>
152 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_02.html">February 2010</a></li>
155 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_05.html">May 2009</a></li>
158 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_04.html">April 2009</a></li>
161 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_01.html">January 2009</a></li>
164 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2007_04.html">April 2007</a></li>
167 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_11.html">November 2006</a></li>
170 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_09.html">September 2006</a></li>
173 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_12.html">December 2005</a></li>
176 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005</a></li>
179 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005</a></li>
182 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_08.html">August 2005</a></li>
185 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_03.html">March 2005</a></li>
188 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_02.html">February 2004</a></li>
191 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_01.html">January 2004</a></li>
194 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_11.html">November 2003</a></li>
197 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_10.html">October 2003</a></li>
204 <div class="module-archives module">
205 <h2 class="module-header">Recent Posts</h2>
206 <div class="module-content">
207 <ul class="module-list">
208 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/000412.html">Jinzora</a></li>
214 <div class="module-syndicate module">
215 <div class="module-content">
216 <a href="http://defaria.com/blogs/General/atom.xml">Subscribe to this blog's feed</a><br />
217 [<a href="http://www.sixapart.com/about/feeds">What is this?</a>]
223 <div class="module-powered module">
224 <div class="module-content">
225 Powered by<br /><a href="http://www.sixapart.com/movabletype/">Movable Type 3.2</a>