r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Web] Everything web development related

Will
2-May-2008
[1506]
here is a more complete example that will save url of all browser 
windows to a file:
http://daringfireball.net/2003/02/save_and_restore_safari_urls
Robert
3-May-2008
[1507x2]
Brock,  yes dynamic content is hard to track and it depends if it 
makes sense to track.
Will, cool. Thanks. Can such a script be started from Rebol?
PeterWood
3-May-2008
[1509]
Robert: You can run any AppleScript from the command line:
	osacript script_name
Will
3-May-2008
[1510]
this is part of a script I use to monitor and restart  my vpn and 
ssh tunnel :
connect: does [
		call rejoin [{osascript -e "tell application \"System Events\"
			tell current location of network preferences
				set vpn to current configuration of service \"VPN\"
				if not connected of vpn then
					tell application \"AlmostVPNProMenuBar\"
						stop (profile named \"default\")
					end tell
					connect vpn
					delay 6
					tell application \"AlmostVPNProMenuBar\"
						start (profile named \"default\")
					end tell
				else
					tell application \"AlmostVPNProMenuBar\"
						stop (profile named \"default\")
					end tell
				   disconnect vpn
					delay 6
					connect vpn
					delay 6
					tell application \"AlmostVPNProMenuBar\"
						start (profile named \"default\")
					end tell
				end if
			end tell
		end tell"}]
	]
PeterWood
3-May-2008
[1511x3]
>> stringURL: copy ""
== ""
>> call/output "osascript getURL.as" 
stringURL
== 0
>> theURL: to url! stringURL
== http://news.bbc.co.uk/sport1/shared/fds/hi/statistics/cricket/scorecards/2008/4/14422/html/scorecard.stm%0A
>> 
theURL
== http://news.bbc.co.uk/sport1/shared/fds/hi/statistics/cricket/scorecards/2008/4/14422/html/scorecard.stm%0A
>> stringURL: copy ""

== ""

>> call/output "osascript getURL.as" stringURL

== 0

>> theURL: to url! stringURL

 ==http://news.bbc.co.uk/sport1/shared/fds/hi/statistics/cricket/scorecards/2008/4/14422/html/scorecard.stm%0A
>> 
 theURL

==http://news.bbc.co.uk/sport1/shared/fds/hi/statistics/cricket/scorecards/2008/4/14422/html/scorecard.stm%0A
Doesn't work with Firefox though
Will
26-May-2008
[1514]
http://blog.thejit.org/javascript-information-visualization-toolkit-jit/
Pekr
27-May-2008
[1515]
My friend who is building some basic websites was asked by his client 
for the search facility. So far he used Google and its: site:your-domain.com 
feature, but the client would like the output to be customised. So 
here goes the questions:


- does google licence allow customising such output? E.g. wrapping 
it in another color, etc., so that it would look like the rest of 
the client site?

- is it easily technically possible, to parse the result? I mean 
- I can imagine parsing the output, even page paginator, then generating 
custom output. But maybe there is some other solution for that? Maybe 
some google api?
Chris
27-May-2008
[1516x2]
I think you are looking for the API.
For customisation, Yahoo have better Apis.
Sunanda
27-May-2008
[1518]
There was a Google search API (using SOAP), but they withdrew it. 
This page  may lead to alternatives:
http://code.google.com/apis/gdata/clientlibs.html
Chris
27-May-2008
[1519]
Their replacement appears to be an Ajax widget.  I'm not sure how 
well that would integrate...
Pekr
27-May-2008
[1520]
I think I will try CGI and parse ... hopefully I will not break some 
license, albeit I fear that I will be :-)
Chris
28-May-2008
[1521]
http://code.google.com/apis/ajaxlibs/-- Google host Javascript libraries.
Robert
6-Aug-2008
[1522x2]
I'm searching for a good free log-file analyzer (whatever that means 
;-)). Any hints? I know:

- Analog
- Webializer

But both are not that good IMO.
Oh, and it should run on the web-server.
Will
6-Aug-2008
[1524]
this one is pretty complete, not free but you can get a new trial 
key every 30 days http://summary.net/
yeksoon
7-Aug-2008
[1525]
Rober, 

what kind of logs are u looking at?


if it is for web traffic stuffs, have you look at Google Analytics?

If it is not, just ignore my comments.
Tomc
7-Aug-2008
[1526x2]
Hi Robert  I switched from analog to awstats  about 4 years ago and 
am still with it.
but it also has it's shortfalls.  one of my coworkers was experimenting 
with a timing plugin this spring
Robert
8-Aug-2008
[1528x3]
Will, thx, never heard about this one.
Yeksoon, yes, web traffic. I heard about Googly Analytics but thought 
you need to add special stuff. Isn't this the case?
Tomc, AWStats is what I currently try to setup.
Sunanda
8-Aug-2008
[1531]
Google Analytics requires you to add a few lines of Javascript to 
every page that you want GA to track.
That limits the GA stats to user-agents that execute javascript.
Robert
11-Aug-2008
[1532]
Ah, ok, that was why I don't like it that much.
Alan
14-Sep-2008
[1533]
.
Anton
11-Jan-2009
[1534x4]
I can definitely see:
	none? port/locals/headers/Accept-Ranges
but is it ever true:
	"none" = port/locals/headers/Accept-Ranges
?
Well I shouldn't be so lazy. Let me start collecting empirical data 
...
foreach url [

 http://brokenbeatassault.com/depot/files/BBA_MusicShow_Podcast_001_March_Safire.mp3
	http://dlsvr05.asus.com/pub/ASUS/vga/nVidia/nv16921_Win2KXP.zip
	http://debeveiligingsupdate.nl/audio/bevupd_0003.mp3

 http://audio.wnyc.org/radiolab_podcast/radiolab_podcast501choice.mp3

 http://ftp.iinet.net.au/pub/ubuntu-releases/kubuntu/8.04.1/MD5SUMS

 http://www.ted.com/index.php/talks/dan_gilbert_researches_happiness.html
	http://events.ccc.de/congress/2008/wiki/Streaming

 http://sites.romkids.org/virgill/albums/Bestof PC Demoscene/like a childbirth.mp3
	http://rockfactory.us/files/rebol_song.mp3
][
	port: open/binary/direct url
	print [mold port/locals/headers/Content-Length url]
	close port
]
Only two hosts returned #[none]:
	www.ted.com
	events.ccc.de
and the rest returned strings of lengths, eg: "4279194".

I should test more urls to feel more certain. (Or read http specs... 
hmm.. which gives better results ?)
Gabriele
12-Jan-2009
[1538]
#[none] means that the header was not there. if it's there, then 
it's going to be a string.
Anton
12-Jan-2009
[1539]
Yes, that makes sense. I think HTTP/1.0 servers are likely to not 
bother sending Accept-Ranges (thus it remains #[none]), while HTTP/1.1 
servers are likely to send it (thus set to either "none" or "bytes").
eFishAnt
12-Jan-2009
[1540]
Anyone know what the proper way to parse this style of URL is?  Opera 
spits it out.  


http://sitecheck2.opera.com/?host=www.rebol.net&hdn=SDbXzuPvK4tsiGnHOia5dA==
Reichart
12-Jan-2009
[1541]
Steve, could you be a little more specific.  There are a lot ways 
to parse your parse question :)


For example, are you asking what the "?" and the "&" mean in the 
URL?  Or am I taking too literal?
Maxim
12-Jan-2009
[1542]
is it the last "==" which is confusing?  or the encoded data?
PeterWood
12-Jan-2009
[1543x2]
The == looks like padding on encoded data to me.
Though I'm not sure:

>> to string!  debase/base "SDbXzuPvK4tsiGnHOia5dA==" 64

== "H6????+?l?i?:&?t"
eFishAnt
13-Jan-2009
[1545x4]
I asked a broad question because I didn't know what answer I need 
... ;-)


Specifically, this comes out of Opera and when I parse it to HTTP, 
I don't know if I should make a Request of:

Host: sitecheck2.opera.com
Path: /
Target: ?host=www.rebol.net&hdn=SDbXzuPvK4tsiGnHOia5dA==


or some other way, like perhaps Path: none ? and Target: /?host=www.rebol.net&hdn=SDbXzuPvK4tsiGnHOia5dA==
...and at a qualitative level, I think this might be used as a referer...Opera 
does this from the Home Page button.  I don't get it from other browsers.
The message about tables in here at 31-Jan-2005 2:42:06 AM wrecks 
the AltME tables when it sends its output the the Web Browser.  I 
have seen this before. (press the Print icon in AltME and look at 
this message group in the browser, table lines are missing)
Youzer...re-installing Opera 9.63 fixed the problem.  Now it works 
perfectly.  My guess is that the sitecheck2.opera.com was revalidated 
by the new install process, so the site allowed a connection.  Dunno, 
just a guess.  A couple days of trying to fix my code went into that 
unsure lesson.
Reichart
13-Jan-2009
[1549x2]
:)
Please post the Table bug bug to Feedback, thanks.
Oldes
13-Jan-2009
[1551]
not escaping html tags is quite serious bug.
amacleod
13-Jan-2009
[1552x2]
Anyone have experience using Oliverier Auverlot's Magic! I have tried 
several times to get it up and running but never got there...
Also, Is there any advantage to it over RSP?
Steeve
13-Jan-2009
[1554]
you can ask on french BBS (even in english) http://www.digicamsoft.com/cgi-bin/rebelBB.cgi
Several users use Magic
amacleod
14-Jan-2009
[1555]
Thanks, I've tried about 4 times over the last few years and keep 
giving up. The config files keep screwing me. tried under XP, 98, 
using WAMP and under Ubuntu...