Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / General / archives / 2005_08.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 3.2" />
7
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"$>" />
11
12    <title>General: August 2005 Archives</title>
13
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" />
17 </head>
18 <body class="layout-two-column-right">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
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>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/General/archives/2005_03.html">&laquo; 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 &raquo;</a>
38                      </p>
39                      
40                                           
41
42                      <h2 class="date-header">August 23, 2005</h2>
43                      <a id="a000412"></a>
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>
49
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>
51
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>
53
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:
55
56 <p>bioart wrote:</p>
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>
59
60 <p>Open /lib/general.lib and add this code to the scrable functions: "return $string ;". First: Search for this part:</p>
61
62 <div class="code"><pre>
63 function jz_encode($string, $key = false) {
64   // Complex scheme.
65 </pre></div>
66
67 <p>change it in:</p>
68
69 <div class="code"><pre>
70 function jz_encode($string, $key = false) {
71   return $string ;
72   // Complex scheme.
73 </pre></div>
74
75 <p>Next : Search for this part:</p>
76
77 <div class="code"><pre>
78 function jz_decode($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_decode($string, $key = false) {
86   return $string ;
87   // Complex scheme.
88 </pre></div>
89 </blockquote>
90
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>
92
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>
94
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>
96
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>
98
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>
100                               
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>
103                                  
104                                  
105                               </p>
106                            </div>
107                         </div>
108                      </div>
109                      
110                   </div>
111                </div>
112
113
114 <div id="beta">
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" />
124                            </form>
125                         </div>
126                      </div>
127                      
128                      
129                      
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>
135                            
136                                                    
137                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_11.html">November 2010</a></li>
138                            
139                                                    
140                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_10.html">October 2010</a></li>
141                            
142                                                    
143                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_06.html">June 2010</a></li>
144                            
145                                                    
146                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_04.html">April 2010</a></li>
147                            
148                                                    
149                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_03.html">March 2010</a></li>
150                            
151                                                    
152                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_02.html">February 2010</a></li>
153                            
154                                                    
155                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_05.html">May 2009</a></li>
156                            
157                                                    
158                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_04.html">April 2009</a></li>
159                            
160                                                    
161                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_01.html">January 2009</a></li>
162                            
163                                                    
164                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2007_04.html">April 2007</a></li>
165                            
166                                                    
167                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_11.html">November 2006</a></li>
168                            
169                                                    
170                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_09.html">September 2006</a></li>
171                            
172                                                    
173                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_12.html">December 2005</a></li>
174                            
175                                                    
176                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005</a></li>
177                            
178                                                    
179                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005</a></li>
180                            
181                                                    
182                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_08.html">August 2005</a></li>
183                            
184                                                    
185                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_03.html">March 2005</a></li>
186                            
187                                                    
188                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_02.html">February 2004</a></li>
189                            
190                                                    
191                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_01.html">January 2004</a></li>
192                            
193                                                    
194                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_11.html">November 2003</a></li>
195                            
196                                                    
197                               <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_10.html">October 2003</a></li>
198                            </ul>
199                         
200                         </div>
201                      </div>
202                      
203                      
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>
209                            
210                            </ul>
211                         </div>
212                      </div>
213                      
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>]
218                         </div>
219                      </div>
220                      
221                      
222                      
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>
226                         </div>
227                      </div>
228                   </div>
229                </div>
230
231
232
233             </div>
234          </div>
235       </div>
236    </div>
237 </body>
238 </html>