World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Kaj 27-Jul-2010 [8645] | There's some info about it in the changelog. Maybe it says how to do it on Windows |
Maxim 27-Jul-2010 [8646] | doesn't cheyenne have kill support ? |
Kaj 27-Jul-2010 [8647] | Yes, as explained in the above Syllable Server manual |
Maxim 27-Jul-2010 [8648] | IIRC there are win32 routines. |
sqlab 28-Jul-2010 [8649] | pskill of sysinternals works like kill |
Endo 28-Jul-2010 [8650x2] | also try taskkill http://commandwindows.com/taskkill.htm |
taskkill /? | |
Janko 30-Jul-2010 [8652] | what would be the best way to resize and crop an image after it's uploaded on cheyenne .. using commandline imgmagick, I think oldes was making an magemagick binding once?, are there more light ways, can pure rebol do it? |
Will 30-Jul-2010 [8653] | I use a call/output to imagemagick, not the best way but it runs in less than 200ms which is ok. Oldes way should be faster 8-) |
Oldes 30-Jul-2010 [8654x7] | I use this script: http://box.lebeda.ws/~hmm/rebol/im-min.r |
loaded in on-application-start | |
Then I use code like: with ctx-imagick [ default/filter: 5 default/blur: .95 start try MagickReadImage *wand to-local-file src_file *wand2: CloneMagickWand *wand if h > 800 [ try MagickResizeImage *wand to-integer (w * (600 / h)) 600 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x600. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand ] nw: to-integer (w * (400 / h)) either nw > 780 [ try MagickResizeImage *wand 780 (h * 780 / w) default/filter default/blur ][ try MagickResizeImage *wand nw 400 default/filter default/blur ] try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x400. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand try MagickResizeImage *wand to-integer (w * (200 / h)) 200 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x200. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 *wand2: CloneMagickWand *wand try MagickResizeImage *wand to-integer (w * (60 / h)) 60 default/filter default/blur try MagickSetImageCompressionQuality *wand 70 trg_file: to-local-file rejoin [dir id #"_" sfil %_x60. ext] try MagickWriteImages *wand trg_file ClearMagickWand *wand DestroyMagickWand *wand *wand: *wand2 end ] | |
It looks complicated but it creates multiple images while loding the source just once. | |
I would like to create some function for it one day, but so far I use this hard code | |
to get image sizes I use: with ctx-imagick [ w: h: none attempt [ start try MagickPingImage *wand to-local-file file/2 w: MagickGetImageWidth *wand h: MagickGetImageHeight *wand ext: MagickGetImageFormat *wand end ] ] | |
The result is here: http://lucya.desajn.net/projekty/ | |
Janko 30-Jul-2010 [8661x3] | crop |
ups.. I wanted to search for crop :) | |
Very cool Oldes! Thanks a lot! (and cool galery on that page) | |
Oldes 30-Jul-2010 [8664x2] | Here is newer version - http://box.lebeda.ws/~hmm/rebol/imagick-min.r |
in this version you can see crop-images function | |
Graham 2-Aug-2010 [8666] | If I have a domain like rebol.com, how do I make it so that a.rebol.com b.rebol.com etc ... work so that a.rebol.com etc appears in the browser address bar. What I want to do is create virtual domains .... |
Maxim 2-Aug-2010 [8667x2] | there is an example of a virtual domain setup in the config file provided in cheyenne. |
(its commented out IIRC) | |
Graham 2-Aug-2010 [8669x2] | I know how to setup httpd.cfg .. just unclear as to how I get the domain |
eg. abc.rebol.com is not found | |
Maxim 2-Aug-2010 [8671] | well the browser needs to request it. or you need to redirect to it. |
Graham 2-Aug-2010 [8672x2] | If I setup a subdomain abc.rebol.com, I can redirect it to a page on rebol.com but the address bar changes |
so if I setup the subdomain to point to www.rebol.com/abc/index.html .. then that's what shows. I want it to display abc.rebol.com/index.html | |
Maxim 2-Aug-2010 [8674x3] | ah... you can setup all subdomains to use the same root dirs, but then the domain name is different in your request object. |
but if you are only serving static pages, its not an issue. | |
if you are doing cgi or rsp,, then just be mindfull that several domains share the same root. | |
Graham 2-Aug-2010 [8677x3] | Ah... I think I want domain forwarding with masking |
Godaddy allows you to create up to 99 subdomains for each domain, and if I choose forwarding with masking, then the browser redirects but the address bar remains unchanged | |
now hopefully I can use this to create virtual domains in Cheyenne | |
Oldes 2-Aug-2010 [8680x2] | First of all you must add DNS A records to point to your IP adress. And then setup your server (Cheyenne, Apache, Nginx..) to resolve the full subdomain.domain names. |
Don't do forwarding. | |
Graham 2-Aug-2010 [8682] | thanks .. that what I just discovered too. |
Kaj 2-Aug-2010 [8683x2] | I think you want multiple subdomains, one for each user, and you can simplify that by defining one catch-all IP number in DNS. Then define all the virtual hosts in Cheyenne. You do have to add every subdomain to Cheyenne, but this way you don't have to maintain DNS for each |
Not sure if GoDaddy allows a catch-all, though, if it has a limit of 99 | |
Will 2-Aug-2010 [8685x2] | u can have a catch all on godaddy, i 's a onliner 8-) |
if u want something nicer, multicast dns, and a superfast and well thought out control panel, check out dnsmadeeasy.com | |
Graham 2-Aug-2010 [8687x2] | What's the oneliner? Defining the sub domains as DNS A records doesn't work .... |
Ah... I see it now. If you add a A record of "*", it should direct everything to the stipulated IP address | |
Will 2-Aug-2010 [8689] | right on 8-) |
Graham 3-Aug-2010 [8690] | Since Cheyenne can not run as a service under Win32, what are people using to restart Cheyenne after a reboot of the OS? |
sqlab 3-Aug-2010 [8691] | The encapped version of Cheyenne can run as a service |
Graham 3-Aug-2010 [8692] | I should try again ... encapped with encmdview doesn't work ... but I see that doc has said that enpro should work ... |
sqlab 3-Aug-2010 [8693] | I used encmd |
Graham 3-Aug-2010 [8694] | I used encmd now ... but it still appears in the system tray. I right click on the system tray icon, and use "run as a service" and then it stops running |
older newer | first last |