World: r3wp
[Web] Everything web development related
older newer | first last |
Henrik 2-May-2008 [1495] | That might be hard as it would depend on the browser. |
Robert 2-May-2008 [1496] | Yes, I know. So any help/idea will help. |
Henrik 2-May-2008 [1497] | is it Windows only? |
Robert 2-May-2008 [1498] | At the moment yes. |
Gregg 2-May-2008 [1499] | You might have to do some window spying to see what classes things are, then enum top windows to find the browser, then enum its child windows and do getwindowtext. |
Robert 2-May-2008 [1500] | Hmm... sounds like a lot of work but OK I will see how I come along. |
[unknown: 5] 2-May-2008 [1501] | Would be nice to do something like this flash app with REBOL http://www.livefaceonweb.com/ |
Brock 2-May-2008 [1502x2] | Robert, are the pages you are accessing static, dynamic or a combination of the two? |
I don't think the method Doc provided will work for dynamically generated pages. For dynamic content you will need to use something like checksum http://www.rebol.com However, you will need to maintain a list of the last time a page was checked. | |
Will 2-May-2008 [1504x3] | Robert, on os x you can do it easly with AppleScript (use ScriptEditor): |
tell application "Safari" set theURL to URL of the document of front window end tell | |
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" | |
older newer | first last |