request_info = [
[:AUTH_TYPE, request.getAuthType()],
[:CONTENT_TYPE, request.getContentType()],
[:CONTENT_LENGTH, request.getContentLength()],
[:PATH_INFO, request.getPathInfo()],
[:PATH_TRANSLATED, request.getPathTranslated()],
[:QUERY_STRING, request.getQueryString()],
[:REMOTE_ADDR, request.getRemoteAddr()],
[:REMOTE_HOST, request.getRemoteHost()],
[:REMOTE_USER, request.getRemoteUser()],
[:REQUEST_METHOD, request.getMethod()],
[:SCRIPT_NAME, request.getServletPath()],
[:SERVER_NAME, request.getServerName()],
[:SERVER_PROTOCOL, request.getProtocol()],
[:SERVER_POR, request.getServerPort()]
]
request_info.each { |i|
}
(since {} is broken in the Mirah version I use)
And I remembered we cannot do
if !true ... or ... if something == false and such
It would be useful to gather some "basic" stuff people might want to do.
Other stuff that comes to mind is
array.group_by, sort { |using| block }
What do you guys think?
What other use case scenarios would you like to have smoothened?
--
S pozdravem, Regards
Michal Hantl
gtalk/jabber: mic...@hantl.cz
icq: 241813215
Hello, I was just trying to do:
request_info = [
[:AUTH_TYPE, request.getAuthType()],
[:CONTENT_TYPE, request.getContentType()],
[:CONTENT_LENGTH, request.getContentLength()],
[:PATH_INFO, request.getPathInfo()],
[:PATH_TRANSLATED, request.getPathTranslated()],
[:QUERY_STRING, request.getQueryString()],
[:REMOTE_ADDR, request.getRemoteAddr()],
[:REMOTE_HOST, request.getRemoteHost()],
[:REMOTE_USER, request.getRemoteUser()],
[:REQUEST_METHOD, request.getMethod()],
[:SCRIPT_NAME, request.getServletPath()],
[:SERVER_NAME, request.getServerName()],
[:SERVER_PROTOCOL, request.getProtocol()],
[:SERVER_POR, request.getServerPort()]
]
request_info.each { |i|
}
(since {} is broken in the Mirah version I use)
And I remembered we cannot do
if !true ... or ... if something == false and such
It would be useful to gather some "basic" stuff people might want to do.
Other stuff that comes to mind is
array.group_by, sort { |using| block }
Wonderful! is this documented somewhere?
I want to teach myself and other people Mirah so I'll need some documentation.
Maybe I'll start a wiki somewhere. We are two developers using Mirah
and we can dump some source code and HOWTOs.
We are both new to Java so everything is new to us.
I believe there are folks who take Java as a dirty word but love Ruby
and scripting languages.
Some of those will want to use GAE and Mirah is the way to go, we
should get them on board :)