Re: [Hampshire] obfuscated code

2011-03-14 Thread Tony Whitmore
john lewis wrote: > On Sun, 13 Mar 2011 17:36:28 + > Daniel Llewellyn wrote: > >> if you want a quick decode you can use php: >> >> cat file_containing_html | php -r "print >> html_entity_decode(file_get_contents('php://stdin'));" > > Nope! I get > bash: php: command not found At a guess that

Re: [Hampshire] obfuscated code

2011-03-14 Thread Tony Whitmore
Tony Whitmore wrote: > It's in the package "php5-cli" on Debian and is invocated using the "php5" > command, not "php". *invoked Too early. Tony -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org

Re: [Hampshire] obfuscated code

2011-03-14 Thread john lewis
On Mon, 14 Mar 2011 08:40:49 - (GMT) "Tony Whitmore" wrote: > > I also tried Hugo's sed suggestion and got another error > > > > sed: couldn't open file script.sed: No such file or directory > > You need to save the set of filters that Hugo provided to a file > called "script.sed" which is t

Re: [Hampshire] obfuscated code

2011-03-14 Thread Daniel Pope
On Sun, Mar 13, 2011 at 10:07:48PM +, john lewis wrote: > Hugo Mills wrote: > >They're ASCII codes (actually, probably UTF-8, but since there's > > I suspected they might be ascii codes but haven't yet looked for a Dudes, get a grip. They're Unicode code points. Why would there be a char

Re: [Hampshire] obfuscated code

2011-03-14 Thread bryan hunt
On Sun, 2011-03-13 at 17:16 +, john lewis wrote: > One bit of the Kingsclere History website is a list of surnames people > have an interest in and contact addresses for other people to use but > the email addresses are encrypted. > > part of the html code looks like this: > > HAYWARD >

Re: [Hampshire] obfuscated code

2011-03-14 Thread Andy Smith
Hello, On Sun, Mar 13, 2011 at 07:34:15PM +, Michael Pavling wrote: > All very nice sledgehammers but for this nut, I'd just copy the > character codes, and paste them into a browser address bar or Google > search box... Remind me never to shop in your hardware store if this is considered

Re: [Hampshire] obfuscated code

2011-03-14 Thread bryan hunt
> Remind me never to shop in your hardware store if this is considered > easier than a one liner in Perl (or even PHP oh god it burns)! :) Perhaps I misunderstand - and please forgive me if I do. But, do you recommend he write a small program to do the translation as opposed to just pasting it int

Re: [Hampshire] obfuscated code

2011-03-14 Thread Michael Pavling
On 14 March 2011 12:45, Andy Smith wrote: > On Sun, Mar 13, 2011 at 07:34:15PM +, Michael Pavling wrote: >> All very nice sledgehammers but for this nut, I'd just copy the >> character codes, and paste them into a browser address bar or Google >> search box... > > Remind me never to shop i

Re: [Hampshire] obfuscated code

2011-03-14 Thread Andy Smith
Hello, On Mon, Mar 14, 2011 at 12:49:14PM +, bryan hunt wrote: > > Remind me never to shop in your hardware store if this is considered > > easier than a one liner in Perl (or even PHP oh god it burns)! :) > > Perhaps I misunderstand - and please forgive me if I do. But, do you > recommend he

Re: [Hampshire] obfuscated code

2011-03-14 Thread Victor Churchill
On 14 March 2011 10:07, john lewis wrote: > However having created a script.sed and re-running the sed command I > get: > > sed: file script.sed line 1: unknown command: `-' > > but line one is "s/ / /g" and there is no "`-'" in that. Did you leave the "snip" marker that Hugo had put at the top o

Re: [Hampshire] obfuscated code

2011-03-14 Thread Andy Smith
Hello, On Sun, Mar 13, 2011 at 05:16:42PM +, john lewis wrote: > href="mailto:BarbaraMallyon@lewmal.co.uk">Barbara Mallyon > > I don't know what software was used to set it up, probably some windows > based gui website design tool. > > Does anyone have a clue as to how I can decode the page

Re: [Hampshire] obfuscated code

2011-03-14 Thread john lewis
On Mon, 14 Mar 2011 14:21:53 + Andy Smith wrote: > John asked me off-list how to add a new entry. It wasn't immediately > obvious to me that he'd asked this originally, but now I read again > I suppose "so I can edit" implies needing to go the other way too. > > I'd do something like piping

Re: [Hampshire] obfuscated code

2011-03-14 Thread john lewis
On Mon, 14 Mar 2011 13:21:05 + Victor Churchill wrote: > On 14 March 2011 10:07, john lewis > wrote: > > However having created a script.sed and re-running the sed command I > > get: > > > > sed: file script.sed line 1: unknown command: `-' > > > > but line one is "s/ / /g" and there is no

[Hampshire] Packaging with setup.py...

2011-03-14 Thread Vic
Hi All. I'm trying to get the Python distutils to build some packages for my project. I need RPMs and Windows installers. The project consists of half a dozen .py files and a .glade. All the .py files are in a directory with a __init__.py file (empty), and the .glade file is also in there. And I

Re: [Hampshire] Packaging with setup.py...

2011-03-14 Thread Stuart Sears
On 14/03/11 15:49, Vic wrote: > > Hi All. > > I'm trying to get the Python distutils to build some packages for my > project. I need RPMs and Windows installers. > > The project consists of half a dozen .py files and a .glade. All the .py > files are in a directory with a __init__.py file (empty

Re: [Hampshire] Packaging with setup.py...

2011-03-14 Thread Vic
>> The glade file is absent from all output. The INSTALLED_FILES claims to >> have installed al the .py file to the right place, but rpmbuild whinges >> that the files aren't packaged. > > ...which usually means that they are in the right place under the rpm > %{buildroot}, but they are not in the