所以我构建了一个漂亮,闪亮的HTML5应用程序,针对移动Safari和Android的默认浏览器.我正在测试它的Android版本是2.1和2.2.
我的应用程序在其中一个页面上有一个文本区域,而这个文本区域有时会包含大量文本.它基本上是一个自由形式的写作领域.
这在iOS中可以正常工作.然而,在Android上,当你输入时,屏幕会在每次击键时上下滚动,通常你无法看到你输入时输入的是什么,并且你会从所有的跳跃中感到头晕目眩.此外,如果文本区域内的内容超过其高度,则似乎无法在其中滚动.
甚至不让我开始横向模式.上述问题在那里更加明显.
这感觉就像Android的一个错误,因为我的textarea真的没什么特别的.我把它剥离到了必需品,它的行为也一样.
想知道是否有其他人在Android上的textareas有这么多的乐趣,可能会给出一些建议,或者至少是同情?
谷歌似乎已经成功地在Android的Gmail网络界面中解决了这个问题.我猜测有一些JS魔法正在进行,因为我的标记/ CSS是相同的.
我一直在尝试使用iOS中的钥匙串存储一些小信息 - 密码字符串,OAuth令牌等.我正在使用Apple提供的KeychainItemWrapper示例代码:https: //developer.apple.com/库/ IOS /#samplecode/GenericKeychain /简介/ Intro.html#// apple_ref/DOC/UID/DTS40007797
我发现它非常多!有时候它会起作用,有时我的应用程序会在尝试将字符串值存储在钥匙串中时崩溃,特别是在已经设置了某些内容时.其他时候,完全相同的调用工作正常.错误发生在实际设备上,而不是模拟器中.
我通常写入钥匙串的方式是这样的:
KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc] initWithIdentifier:@"password" accessGroup:nil];
[wrapper setObject:thePasswordString forKey:(id)kSecValueData];
[wrapper release];
Run Code Online (Sandbox Code Playgroud)
所以,我想知道的是:我做错了什么,Apple的示例代码是否应该受到指责,或者实际的底层iOS钥匙串API是否已损坏?
我是Elixir的新手,这是我尝试使用exrm发布的第一个应用程序.我的应用程序与Redis数据库交互以从队列中使用作业(使用exq),并使用eredis在Redis中存储已处理作业的结果.
当我运行它时,我的应用程序运行正常iex -S mix,并且在编译成escript时运行也很好.但是当我使用exrm时,应用程序编译时没有任何问题,但是当我运行它时它会崩溃.
这是崩溃输出:
$ ./rel/my_app/bin/my_app console
{"Kernel pid terminated",application_controller,"{application_start_failure,my_app,{bad_return,{{'Elixir.MyApp',start,[normal,[]]},{'EXIT',{{badmatch,{error,{{'EXIT',{{badmatch,{error,{undef,[{eredis,start_link,[],[]},{'Elixir.MyApp.Cache',init,1,[{file,\"lib/my_app/cache.ex\"},{line,8}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,237}]}]}}},[{'Elixir.MyApp.Cache',start_link,1,[{file,\"lib/my_app/cache.ex\"},{line,21}]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,314}]},{supervisor,handle_start_child,2,[{file,\"supervisor.erl\"},{line,685}]},{supervisor,handle_call,3,[{file,\"supervisor.erl\"},{line,394}]},{gen_server,try_handle_call,4,[{file,\"gen_server.erl\"},{line,607}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,639}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,237}]}]}},{child,undefined,'Elixir.MyApp.Cache',{'Elixir.MyApp.Cache',start_link,[[{host,\"127.0.0.1\"},{port,6379},{database,0},{password,[]},{reconnect_timeout,100},{namespace,<<>>},{queues,[<<\"elixir\">>]}]]},permanent,5000,worker,['Elixir.MyApp.Cache']}}}},[{'Elixir.MyApp.Supervisor',start_cache,1,[{file,\"lib/my_app/supervisor.ex\"},{line,17}]},{'Elixir.MyApp.Supervisor',start_link,0,[{file,\"lib/my_app/supervisor.ex\"},{line,9}]},{'Elixir.MyApp',start,2,[{file,\"lib/my_app.ex\"},{line,10}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,272}]}]}}}}}"}
Run Code Online (Sandbox Code Playgroud)
这是我的应用程序的mix.exs:
defmodule MyApp.Mixfile do
use Mix.Project
def project do
[
app: :my_app,
version: "0.0.1",
name: "MyApp",
elixir: "~> 1.0",
escript: escript_config,
deps: deps
]
end
def application do
[
applications: app_list(Mix.env),
mod: { MyApp, [] },
env: [ queue: 'elixir']
]
end
def included_applications do
[ :logger, :httpoison, :eredis, :exq, :dotenv, :exjsx, :ex_doc, :oauth2, :sweet_xml ]
end …Run Code Online (Sandbox Code Playgroud)