Not exactly free, but these Danish people (who have reliably hosted
www.snakeisland.com for many moons) offer web site hosting
at quite reasonable rates. Their "Professional" level is going for
$3.25CAD/month, which is probably about 0.8Latte in Starbucks.

  https://www.one.com/en/

Bob

On 2016-09-09 05:31 PM, Brian Schott wrote:
> Raul,
>
> Wow. That is a lot of valuable, targeted information for you to have
> provided. Thank you, a lot. I do use Mac OS X, so your guesses are on
> target. I will experiment with your recommendations soon.
>
> One thing that I sort of left out was that step e) is done on my iPad,
> typically, and that is easy enough, but when I use the iPad away from my
> local network, I have to supply the IP address of my desktop computer. I'm
> not asking for an automatic way to do that, just saying it wasn't mentioned
> in my description. But it would be ideal if that were the only thing I had
> to remember to do. Your approach gets close to the ideal.
>
> I bet there is a way to control the sleep time preference with a unix
> script file, and I'll research that on line, too.
>
> I was hoping your answer would inform me of a free web hosting site that
> supports JHS/J. I use google appengine for free for python/html apps, but
> they are not calculation intensive. I guess that I'll likely have to dream
> on, though, for a free J/html5 host.
>
> Thanks, again,
>
>
> On Fri, Sep 9, 2016 at 4:59 PM, Raul Miller <[email protected]> wrote:
>
>> It seems to me that you could use an operating system script (a .bat
>> file, for example) to perform a number of these steps in sequence. Or,
>> if that is outside your comfort level, a sequence of shortcuts on your
>> desktop might work for you.
>>
>> Or, for the "shutdown" thing, maybe take advantage of how setting are
>> different for running on battery vs. plugged in. (Don't shut down when
>> plugged in, shut down after a relatively short time - and with a dim
>> screen until then - when running on battery.) This assumes your
>> computer has a battery, though... otherwise, I guess maybe go with the
>> desktop shortcuts approach (which should be doable, though I've not
>> researched that myself).
>>
>> Another thing is that when you launch j (from a script, or shortcut)
>> you can specify a j script for it to run (that's what happens when you
>> launch jhs). So you should be able to take advantage of that, here -
>> write a script to load up your stuff, and then drop into jhs, rather
>> than loading up jhs and then using the browser to have jhs load up
>> your stuff.
>>
>> For example, it might go like this:
>>
>> click on the link to set your power down preferences.
>>
>> click on the link which runs the .bat file to start up your jhs app(see
>> below)
>>
>> ......
>>
>> click on the link to revert your power down preferences
>>
>> actually, why don't you just manually power down your machine when you
>> are done? That will shut down jhs, also...
>>
>> Meanwhile, the .bat file to start your jhs app would look something like
>> this:
>>
>> start path-start-jhs-server
>> sleep 3
>> start http://127.0.0.1:65001/locale
>>
>> Or, if you are running OSX, replace 'start' with 'open' and make this
>> a shell script rather than a .bat file. (No extension on the file
>> name, first line is #!/bin/sh and chmod +x filename before running
>> it.)
>>
>> Actually, if I recall correctly, I think you will be using OSX, so...
>> for the jhs side, you could do
>>
>> open /Applications/j64-805/jhs.app
>>
>> but instead, you probably want to take the script at
>> /Applications/j64-804/jhs.app/Contents/MacOS/apprun which will look
>> something like this:
>>
>> #!/bin/sh
>> open -a /Applications/Utilities/Terminal.app "`dirname
>> "$0"`/../../../bin/jhs.command"
>>
>> which basically just runs /Applications/j64-805/bin/jhs.command
>>
>> which looks something like
>>
>> #!/bin/sh
>> "`dirname "$0"`/jconsole" ~addons/ide/jhs/core.ijs -js " init_jhs_'' "
>>
>> # see ~addons/ide/jhs/config/jhs_default.ijs for config info
>>
>> (the dirname stuff is so that the J application can be installed
>> anywhere - this finds stuff relative to where that particular file is
>> stored.)
>>
>> So you can simplify that to:
>>
>> #!/bin/sh
>> /Applications/j64-805/bin/jconsole '~user/startserver.ijs' -js
>> 'startcommand 0'
>>
>> replacing the "start" stuff with whatever works for you (and maybe
>> using double quotes if you do not like single quotes - but be careful
>> that some characters, like $ or ` are special when you use double
>> quotes).
>>
>> and the "startserver.ijs" command (or whatever you decided to name it)
>> would include
>>
>> load jpath '~addons/ide/jhs/core.ijs'
>>
>> and its final statement would be:
>>
>> init_jhs_ ''
>>
>> ...
>>
>> I've not actually tried this, but I think that that should work.
>>
>> Good luck,
>>
>> --
>> Raul
>>
>>
>>
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
Robert Bernecky
Snake Island Research Inc
18 Fifth Street
Ward's Island
Toronto, Ontario M5J 2B9

[email protected]
tel: +1 416 203 0854

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to