我正在使用我正在编写的Flex 4.1应用程序遇到一些非常奇怪的行为,这会阻碍测试.似乎我可以重新加载应用程序16次,然后在17日,加载过程失败了
Error #2046: The loaded file did not have a valid signature
Run Code Online (Sandbox Code Playgroud)
它似乎一直在Firefox 5.0和Chrome 12上重新加载.我不确定它是否相关,但我在Ubuntu 10.04上运行Flash Player v10.2.159.1(也发生在10.3.181.34).适用于播放器的常规版本和调试版本.当我在Windows FF5上运行应用程序时,它似乎不会发生.关闭当前浏览器窗口似乎无法修复它.唯一的方法是完全关闭所有浏览器窗口并重新启动浏览器.然后在16次成功加载后,第17次失败.
在这一点上,我正在考虑将其粉碎为Linux Flash错误,但我想确定并检查是否有人知道我是否应该采取措施来防止这种情况发生.
这篇文章的用户似乎遇到了同样的问题,但我猜他没注意到我的模式.
任何帮助将不胜感激.鲁伊
==更新==
我刚刚意识到,在我的应用程序开始抛出2046错误之后,尝试加载使用已签名RSL的任何其他Flash也会显示2046错误(例如此应用程序),这意味着问题并非特定于我的应用程序且很可能与Flash缓存或类似的东西.
我有两个型号,Courier和Order.
我在下面有以下查询:
active_couriers = Courier.
available_courier_status.
where(:service_region_id => @service_region.id).
includes(:orders)
Run Code Online (Sandbox Code Playgroud)
但是,此查询有效,它会提取所有订单.我想将订单限制为当天的订单.所以我添加了以下查询where("orders.created_at >= ?", Time.zone.now.beginning_of_day).
active_couriers = Courier.
available_courier_status.
where(:service_region_id => @service_region.id).
includes(:current_orders).
includes(:orders).
where("orders.created_at >= ?", Time.zone.now.beginning_of_day)
Run Code Online (Sandbox Code Playgroud)
这给了我错误:
PG::UndefinedTable: ERROR: missing FROM-clause entry for table "orders"
Run Code Online (Sandbox Code Playgroud)
我在这里做错了什么?
我正试图通过VimGolf(http://www.vimgolf.com/)提高我的Vim技能,我似乎无法弄清楚序列的<fd-35>意义.这是一个例子.
谢谢
我注意到我的资产似乎被编译了两次,这大大减慢了我的部署,因为这一步是最耗时的部分:
~/projects/rewportal(mapwidget ?) rake assets:precompile
/home/ruy/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /home/ruy/.rvm/gems/ruby-1.9.3-p194@rewportal/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
AssetSync: using /home/ruy/projects/rewportal/config/initializers/asset_sync.rb
AssetSync: using /home/ruy/projects/rewportal/config/initializers/asset_sync.rb
AssetSync: Syncing.
Using: Directory Search of /home/ruy/projects/rewportal/public/assets
Uploading: assets/application-5170f52c1dd49cb382d5135bee01d75e.js
[...]
Fetching files to flag for delete
Flagging 8 file(s) for deletion
Deleting: assets/active_admin-4ce46d089d4b0080e87c9abcb6fa6c97.css
[...]
AssetSync: Done.
Run Code Online (Sandbox Code Playgroud)
这是正常的吗?
当我预编译到其他环境(非生产)时,我可以看到每个资产的详细编译两次:
~/projects/rewportal(mapwidget ?) rake RAILS_ENV=qa assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/home/ruy/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /home/ruy/.rvm/gems/ruby-1.9.3-p194@rewportal/bin/rake assets:precompile:all RAILS_ENV=qa RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute …Run Code Online (Sandbox Code Playgroud) 我正在尝试配置jasmine.yml(使用jasmine gem)来使用从Google API提供的JQuery,而不是将其本地下载到我的服务器.即:
src_files:
- ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
Run Code Online (Sandbox Code Playgroud)
不幸的是,这似乎不起作用,因为(根据配置文件中的注释)它正在寻找相对于src_dir的文件路径.这不可能吗?
谢谢
鲁伊
我最近发现Sencha Touch中列表的emptyText配置值在商店为空时显示.我遇到的问题是这个文本出现在左上角,我似乎找不到将它放在屏幕中间的方法.

activeadmin ×1
apache-flex ×1
flash ×1
jasmine ×1
javascript ×1
linux ×1
psql ×1
sencha-touch ×1
vim ×1