rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 80063r

Pages: 1 2 3
16
HTML & templates / Re: templates: 80063r's problem
« on: May 23, 2009, 10:05:56 PM »
I'll post the contents of hfs.diff.tpl here.  I considered trimming it down some but I didn't want to break it  :-\
Alternatively, you can download it from my second folder!!!

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!--{.comment|--><h1 style='margin-bottom:100em'>WARNING: this template is only to be used with HFS 2.3 (and macros enabled)</h1> <!--.} -->
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="/~style.css" type="text/css">
  <link rel="stylesheet" href="/~style.menu.css" type="text/css">
  <title>HFS %folder%</title>
  <link rel="shortcut icon" href="/favicon.ico">

<!--[if lte IE 5.5]>
<style type="text/css">
.menu ul li a, .menu ul li a:visited { width:151px; w\idth:139px; }
</style>
<![endif]-->

{.comment| Thanks to the following line, you can customize the appearance of the original template by right click on the root -> advanced -> diff template
then type [style.user] followed by all the CSS commands you want. This way you will stay up to date while the original template improves.}  
<style type="text/css">{.$style.user.}</style>

<script>
function _(id) { return typeof id == 'string' ? document.getElementById(id) : id; }
</script>

</head>
<body>
<div id='folder'>%ip%</div>
</body>
</html>
<!-- Build-time: %build-time% -->

{.append|get-ip.txt|%ip%
.}
{.add to log|%ip%.}

[style.css|no log]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { background-color:#DDF; padding:10px; }
body, p, form { margin:0 }
#folder, .big { font-size:14pt; font-weight:bold;  }

#body {
  border-bottom: 4px solid #BBF;
     border-top: 4px solid #BBF;
    border-left: 1px dotted #BBF;
   border-right: 1px dotted #BBF;
  background:#F3F3FF;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#888; background:#EEE; padding:3px; border:1px solid #DDD; margin-top:2px; }
.button { height:24px; padding:4px 10px; margin:5px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
a.button { padding:8px 10px; }
a.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }
.item-folder { font-size:smaller; margin-top:4px; }


[file=folder=link]
  <tr><td>
  {.if|{.get|can delete.}{.and|{.get|can access.}|{.get|can archive item.}.}| <input type='checkbox' name='selection' value="%item-url%"> .}
  {.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
  {.if not|{.get|can access.}|<img src='/~img_lock'>.}
  <a href="%item-url%"><img src="%item-icon%"> %item-name%</a>
  {.if| {.?search.} |{:<div class='item-folder'>{.!item folder.} {.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}:} .}
  {.if| %item-comment% | <div class='comment'>%item-comment%</div> .}

[+folder]
<td align='center'><i>folder</i><td align='right'>%item-modified%<td align='right'>%item-dl-count%


17
HTML & templates / Re: templates: 80063r's problem
« on: May 23, 2009, 09:10:49 PM »
Ok, thank you.  So if I understand you correctly, if you want to apply a different template to a virtual folder, you would use "diff.tpl" and for a real folder you would use "hsf.diff.tpl"  So far, I have only used real folders.

First folder     http://localhost:88/get-ip/
Second folder http://localhost:88/inc_test/

For testing, I copied the hsf.diff.tpl to a second folder to see if it would be applied.  Still, to my surprise, it wasn't.  I tried two fresh copies and in one I added the first folder first, and it worked for the first folder but not the second.  In the second one, I added the second folder first, and it still worked for the first folder but not the second.


18
HTML & templates / Re: templates: 80063r's problem
« on: May 23, 2009, 08:19:36 PM »
Thank you for that good information.  I removed the [special:begin] section.  I saved a note of your advice.  But the problem still remains that hfs.diff.tpl never gets applied to any new folders that I add.  It only gets applied to the first folder.  All new folders get the default template.

I noticed that other people may have had this same problem, even in previous beta releases.  It seems that reinstalling a fresh copy may solve the problem.  I will try that now and report back later.

19
HTML & templates / Re: templates: 80063r's problem
« on: May 23, 2009, 04:34:47 PM »
Its just a very simple one to run a test on some functions.

Right now its just:
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!--{.comment|--><h1 style='margin-bottom:100em'>WARNING: this template is only to be used with HFS 2.3 (and macros enabled)</h1> <!--.} -->
<html>
<head>
</head>
<body>
<div>
{.set|%aa1%|1.}
%aa1%
{.inc|%aa1%|2.}
%aa1%
{.inc|%aa1%.}
%aa1%
</div>
</body>
</html>

I've tried many different templates in this file.  None of them load.  ...well, maybe load, but don't get applied.  I also have a folder which when it matches a url pattern, the macros.log says it loads, but it doesn't get applied.

clip from hfs.tpl:
Code: [Select]
</div>
</body>
</html>
[special:begin]
{.if|{.and|{.or|{.match address|127.0.0.1|%ip%.}|{.match address|192.168.1.1|%ip%.}.}|{.count substring|temporary_test_pages|%url%.}.}|{:{.load|test.tpl.}:}.}

[not found]
<h1>{.!Not found.}</h1>
<a href="/">{.!go to root.}</a>

clip from macros.log:
Code: [Select]
---
> %ip%
< 192.168.1.1

> %ip%
< 192.168.1.1

> %url%
< /temporary_test_pages/inc_test/

> match address|127.0.0.1|192.168.1.1
<

> match address|192.168.1.1|192.168.1.1
< 1

> or||1
< 1

> count substring|temporary_test_pages|/temporary_test_pages/inc_test/
< 1

> and|1|1
< 1

> if|1|{:{.load|test.tpl.}:}
< {.load|test.tpl.}

> load|test.tpl
< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>

  </body>
</html>

20
Beta / Re: a script to easily get the IP of a friend
« on: May 23, 2009, 06:09:43 AM »
$BBGGRR

Thanks, I wouldn't have guessed that $.

21
HTML & templates / Re: templates: 80063r's problem
« on: May 23, 2009, 06:06:35 AM »
I tried removing and adding it again.  Same problem.  The page still shows the default template and the other page still shows its hfs.diff.tpl .  One folder works and the other doesn't

22
F.A.Q.s / Re: make pic on image file icon
« on: May 23, 2009, 03:29:08 AM »
link is not working.  It looks like the server is down.

What's the name of the program?

Can somebody host the file?

23
HTML & templates / Re: VLC & HFS !?!?!
« on: May 23, 2009, 03:14:48 AM »
Video LAN VLC Player can output streaming  audio or video.  A web page can be made to show the output, but I never looked into doing that.  HFS may have to accept input from the page to control the playback (maybe with the help of command line or another macro program), or HFS would serve a different template when a specific file type was clicked (the easy way).

I'm not sure what would be required it the template though.

see:
http://www.videolan.org/vlc/
and:
http://wiki.videolan.org/Documentation:Streaming_HowTo
Posted on: May 22, 2009, 10:02:32 PM
Quote
Streaming methods

If you chose Stream to network option, you can now specify the streaming method. Available methods are:

    * RTP/UDP Unicast: Stream to a single computer. Enter the client's IP address (in the 0.0.0.0 - 223.255.255.255 range).
    * RTP/UDP Multicast: Stream to multiple computers using multicast. Enter the IP address of the multicast group (in the 224.0.0.0 to 239.255.255.255 range).
    * HTTP: Stream by using the HTTP protocol. If you leave the Destination text box empty, VLC will listen on all the network interfaces of the server on port 8080. Specify an address, port and path on which to listen using the following syntax [ip][:port][/path]. For instance, 192.168.0.1:80/stream will make VLC listen on the interface carrying the 192.168.0.1 IP address, on the 80 TCP port, in the /stream virtual file.

Posted on: May 22, 2009, 10:08:16 PM
Quote
UDP Streaming samples

   1. Standart UDP streaming

% vlc -vvv file:////home/vlc/2007.avi --sout #std{access=udp,mux=ts,dst=:1234}'

Nothing impossible yet. Streaming a file 2007.avi from /home/vlc/ to udp port 1234.


Multicast RTP Streaming samples

% vlc -vvv file:////home/vlc/Jumper.avi --sout '#rtp{access=udp,mux=ts,dst=224.255.1.1,port=1234,sap,group="Video",name=Jumper Movie"}' :sout-all

Hard? No! This is known key file. The key --sout starts output as in the UDP sample. Then we set #rtp with access type udp, muxer ts. Then point to multicast IP address 224.255.1.1 with port 1234. And some keys. We point the VLC to do anouncements of this stream using SAP (see service advertisements protocol), sets description of streaming group to Video and name this stream as 'Jumper Movie' .


Multicast RTP Streaming with multiple source files. With samples.

When you start this, you can't stops. I spent some hours to find this solution. See it:

% vlc -vvv --color -I telnet --telnet-password "i_dont_know_this_password" --vlm-conf=/home/vlc/vlc.streaming.conf

We told that VLC must colorize it's output using key --color. Then we told VLC to open telnet server. We must control it, really?! This is -I telnet key. And we set the password "i_dont_know_this_password" to get access to console. We use standart VLC telnet port 4212. If you need to change it, use --telnet-port xxx. Use --vlm-conf=/home/vlc/vlc.streaming.conf to point the VLC to open at start a special file with multiple files description.
Special multiple files description configuration file.

    * vlc.streaming.conf

Using this config file we try to cast 2 video files: 2007.avi and Jumper.avi. To do this, we must describe 2 channels: channel1 and channel2, sets the input and sets the output format (we try to multicast this):

  new channel1 broadcast enabled
  setup channel1 input file:////home/vlc/2007.avi loop
  setup channel1 output #rtp{access=udp,mux=ts,dst=224.255.1.1,port=1234,sdp=sap,sap,group="Video",name="2007 Movie"}

  new channel2 broadcast enabled
  setup channel2 input file:////home/vlc/Jumper.avi loop
  setup channel2 output #rtp{access=udp,mux=ts,dst=224.255.1.2,port=1234,sdp=sap,sap,group="Video",name="Jumper Movie"}

  control channel1 play
  control channel2 play



24
HFS ~ HTTP File Server / Re: DESPERATE MAN HFS DRIVING ME INSANE!
« on: May 23, 2009, 02:41:07 AM »
...like a security software on your computer blocking HFS because it has changed (upgraded),...

I second that.  I use Kaspersky and everytime HFS is upgraded, I have to go into Kaspersky and open the ports for the new version.  Its no big deal for me, but because of this, I disabled automatic updating for HFS.

edit:  This is just a note for the original poster.  I like having the option to update automatically, I just don't use it.

25
HFS ~ HTTP File Server / Re: Problem with BIG files
« on: May 23, 2009, 02:24:57 AM »
I use Vista x64 and ntfs and I know that when I use explorer to copy/paste from drive to drive, sets of files exceeding 2GB often fail.  My workaround is using a media browser (ACDSee) to copy paste collections of files.  I realize this is a slightly different scenario.

Anyway, what about Internet Explorer 64-bit.  Has anyone tried that?  I could possibly set up to test it but it would take me a couple of weeks to move files to backup and verify that my IP and DNS and everything is still working.  Sorry.

26
What do you think about having a "check box" on the "run script" dialog to choose to automatically focus the output window when the file is saved/run?

27
has anyone noticed Menu > debug > run script ?

Aha!  rejetto does it again.

28
When I use a DNS name, like http://example.com/test_page, HFS sees my router IP because, I guess, that's where it gets looped back.  Anyway, I got that part under control for the most part except some interference from some privacy add-ons I just installed like Tor Button and Tor, Vidalia, Privoxy, and the BetterPrivacy, RefControl, and SafeCache Add-Ons for firefox.  But that's another whole issue.

Anyway, look at this macros.log output (truncated)

Code: [Select]
> %ip%
< 127.0.0.1

> %ip%
< 127.0.0.1

> %url%
< /temporary_test_pages/inc_test/

> match address|127.0.0.1|127.0.0.1
< 1

> match address|192.168.1.1|127.0.0.1
<

> or|1|
< 1

> count substring|temporary_test_pages|/temporary_test_pages/inc_test/
< 1

> and|1|1
< 1

> if|1|{:{.load|test.tpl.}:}
< {.load|test.tpl.}

> load|test.tpl
< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>

  </body>
</html>

It looks as if the template is getting loaded, but the page still displays the default template.  I didn't change anything in the folder properties.  I just added a local real folder to the VFS.

It seems as though I broke the template feature, except for the one folder which I added first.  It's hfs.diff.tpl is showing properly.

Oh, and by the way, I added this to hfs.tpl

Code: [Select]
[special:begin]
{.if|{.and|{.or|{.match address|127.0.0.1|%ip%.}|{.match address|192.168.1.1|%ip%.}.}|{.count substring|temporary_test_pages|%url%.}.}|{:{.load|test.tpl.}:}.}

I bet you hate to see that "Oh, and by the way" stuff.  Sorry.

Oh, and by the way, I tested this i IE7 and the macros.log says it loaded the test.tpl but the page is still showing the default template.

29
If you have often doubts about the way a macro works, I suggest you to include somewhere in your template ...

I was in the process of doing a skimpy hfs.diff.tpl in a test folder when the template began no longer being applied to that folder.  The other folder with hfs.diff.tpl still works but I can't seem to get the test folder working again.  It just uses the default template.

Thanks for your code though.  I can really use that idea.

Code: [Select]
{.if|{.or|{.match address|127.0.0.1|%ip%.}|{.match address|192.168.1.2|%ip%.}.}|{:{.load|test.tpl.}:}.}
I'll have to use 192.168.1.1 though.

30
HTML & templates / templates: 80063r's problem
« on: May 22, 2009, 05:11:58 PM »
I don't know if this is a build related problem, but it could be.

I have 2 real folders in my tree.  Each has diff.tpl and hfs.diff.tpl (Please clarify which to use, I think its hfs.diff.tpl)  Only one of the folders actually shows the different template applied to it.  The other shows the default template.  I removed and added it again and read the forum (a little) and I've done everything I can think of short of pulling my hair out.  It was initailly working, now its not.  What did I do that broke it (so I won't do it again).

edit:
The point at which it seemed to break is when I double-clicked a file in Windows Explorer and HFS asked if I wanted to install the template.  I chose "No".  After that, it hasn't been working.  Clicking "Yes" doesn't work either.

Pages: 1 2 3