问题标签 [hummingbird]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
5723 浏览

flutter - Flutter Web Google 登录

我尝试在 Flutter Web 中使用 Google 实现登录。我使用GoogleSignn 4.1.1Firebase Auth 0.15.4。我没有收到任何错误消息。它只是不会弹出。

  • 我在 Firebase 中注册了 Web 应用程序(添加了依赖项),甚至添加了<meta>带有google-signin-client_id
  • 当我在 Android 上运行 Firebase Auth with Google 时,它​​可以工作
  • 我还从 Web 中的 GoogleSignIn运行了示例应用程序。它也不会弹出。

这是我的登录代码(适用于 Android)

我希望有人知道如何解决这个问题。

0 投票
1 回答
270 浏览

firebase - Firebase gets logged out after long time in Flutter Web

I'm developing a web app and I use Firebase Authentication for the authentication service.

The project seems to store the authentication, since if I refresh the page, or close the browser, the user is still logged in.

However I noticed that if I don't access the app for a long time (more than 1 hour, after the night for example), the authentication gets lost.

I don't know how to debug this and how to solve this.

Following some snippets of code to better understand my implementation:

This is the function I have in my startup view to redirect the user to the right page based on auth status.

In the following function I call the onAuthStateChange to set sharedpreferences accordingly. I have the check on the timestamp because I noticed that it is triggered more time once the page is refreshed.

My question is: is possible that after long time currentUser and also the onAuthStateChanges gets called and the user is not logged in?

0 投票
0 回答
63 浏览

wordpress - Wordpress 网站在 URL 中获取带有动态查询字符串的 DDOS

我有一个托管在 AWS lightail 上的 WordPress 站点(负载均衡器,运行 apache 的实例很少)。

网站每分钟收到 1000 次请求,其 URL 类似于 URLsite.com/?872837 中的数字是动态的,这迫使我的缓存插件(Hummingbird)创建一个新的缓存页面,而不是使用现有的缓存页面。

Lighsails 负载均衡器不提供任何日志,因此我无法检查哪些 IP 正在访问该站点。

我可以使用 .htaccess 删除这种格式的查询字符串吗(我尝试搜索但找不到任何东西)?

0 投票
0 回答
13 浏览

css - 蜂鸟将不需要的文件路径添加到剪辑路径 URLS

我在整个站点中都命名了剪辑路径,当我尝试像这样使用它们时:

clip-path:url("#mask-circle");

Hummingbird 将完整路径添加到 URL,就好像命名路径是我可以链接到的文件一样:

clip-path:url("https://www._______.com/wp-content/themes/_______/assets/styles/#mask-circle");

无论如何要禁用它,或者至少标记一行样式以保持原样?

0 投票
0 回答
17 浏览

host - 蜂鸟主机资源管理器快速操作问题

在我工作的公司中,我们正在使用蜂鸟主机资源管理器(之前命名为开放文本主机资源管理器)。我发现有所谓的快速操作可以记录步骤然后用作宏。这很酷,因为它甚至具有类似于编辑器中的 if 语句的内容,但我无法弄清楚的一件事是如何强制快速脚本搜索空字段((通过 xy 光标位置)。是否有“空白”的快捷方式?

0 投票
0 回答
13 浏览

python - 将 XGBoost 生成的 Json 模型转换为 Pytorch 时出错

我正在尝试将我的模型转换为 pytorch 模型。我的模型是用python中的XGBoost生成的,保存为Json格式,如下:. . .

在这里我尝试将它 从蜂鸟.ml 导入转换

modelc = convert(model, 'pytorch', extra_config={"n_features":54}) modelc.save('hb_model')

###错误

4 5 ----> 6 modelc = convert(model, 'pytorch', extra_config={"n_features":54}) 7 #modelc.save('hb_model') 中的 ValueError Traceback(最近一次调用最后一次)

. . .

ValueError: 以 10 为底的 int() 的无效文字:'chroma_stft

你知道我可能做错了吗?

0 投票
0 回答
16 浏览

python-3.x - 是否有关于 Humminbird HELIX 9 CHIRP MEGA 的二进制文件的信息?

我发现PyHum能够读取较旧的 Humminbird 声纳并将其转换为 3d XYZ 数据。是否有描述 Humminbird HELIX 9 sonae 数据文件如何编码的数据格式或二进制模式?我想读取数据并生成 3D 点文件。