Cut tech literacy questions from eight to four

uncommented, then cut Captcha, Linux, HTRMB, FAQ
Addresses #213
@adrifelt pls review

hey, a few github tips:

Use the "Assignee" feature on the right of the PR to assign a reviewer (just assigned myself)
The title should be a short summary followed by a longer description; right now it's too long to actually fit in the title, so you see it ends up truncated with the remainder spilling into the commit message

lgtm

Thx for tips, I am still figuring out git & github. If I use Assignee to assign reviewer, do I still need to put their username in comment?

nope, itll email me

hey Rob, i noticed you did'nt actually fix the title or description... it's too late now but in the future please address comments before landing

I actually thought I did fix the title, so I guess I forgot to save or
something?
On Fri, May 1, 2015 at 1:07 AM, felt<EMAIL_ADDRESS>wrote:

hey Rob, i noticed you did'nt actually fix the title or description...
it's too late now but in the future please address comments before landing
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleChrome/experience-sampling/pull/238#issuecomment-97856514
.

Yeah, that was it... I forgot to save. Fixed.

So, maybe I should take you up on that github tutorial


Fix kernel jupyter docs

Proposed changes:

bump to rasabaster 0.7.21
some improvements to jupyter notebooks docs

Status (please check what you already did):

[ ] made PR ready for code review
[ ] added some tests for the functionality
[x] updated the documentation
[ ] updated the changelog
[ ] reformat files using black (please check Readme for instructions)

Looks like it is failing because of these warnings:
/Users/erohmensing/rasa/docs/api/jupyter-notebooks.rst:30: WARNING: Error in "runnable" directive:
unknown option: "language".

.. runnable::
   :language: python

   config = "config.yml"
   training_files = "data/"
   domain = "domain.yml"
   output = "models/"
   print(config, training_files, domain, output)

as well as this one:
/Users/erohmensing/rasa/docs/api/jupyter-notebooks.rst:69: WARNING: Error in "runnable" directive:
invalid option block.

.. runnable::
   :language: python
   from rasa.jupyter import chat
   chat(model_path)

Sorry, i tried to fix it myself without understanding that you're working on fixing it in the rasabaster repo i believe 😅feel free to revert my changes

Nevermind, this shouldn't be merged yet, the code still isn't working. Will fix

@amn41 I’ve figured out how to fix the kernel code for jupyter notebooks (rasabaster PR review request incoming), but there are still other fixes (even to rasa) that need to go in to make it work. I propose that we send out this PR to fix the tutorial for 0.7.21 and temporarily hide the jupyter docs till they work again on rasabaster 0.7.22 and updated docs-binder requirements.
I’m tracking the jupyter stuff here: https://github.com/RasaHQ/customers/issues/128
Sound good?


chore(storybook): upgrade to 3.0.0-alpha.4

Deploy preview ready!
Built with commit edefb7795ad0278e3198437e75ae2c0df7345ce0
https://deploy-preview-21--react-progressive-bg-image.netlify.com


Fix azure-stack-configure-on-demand-diagnostic-log-collection.md Spel…

Fixed a small spelling error

@sahammer : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Verified editorial correction. Thank you!


Update to use gomega gmeasure

What this PR does / why we need it:
Update to use gomega gmeasure
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #189

Ran sample conformance tests
  conformance-tests - /home/ubuntu/go/src/github.com/oracle/cluster-api-provider-oci/test/e2e/conformance_test.go:77 @ 02/21/23 13:58:23.266
    conformance-tests
    Name                         | N | Min       | Median    | Mean      | StdDev | Max
    =========================================================================================
    cluster creation [duration]  | 1 | 8m32.76s  | 8m32.76s  | 8m32.76s  | 0s     | 8m32.76s
    -----------------------------------------------------------------------------------------
    conformance suite [duration] | 1 | 2m8.9265s | 2m8.9265s | 2m8.9265s | 0s     | 2m8.9265s

no warning
[SynchronizedAfterSuite] PASSED [0.000 seconds]
[SynchronizedAfterSuite]
/home/ubuntu/go/src/github.com/oracle/cluster-api-provider-oci/test/e2e/e2e_suite_test.go:252
------------------------------
[SynchronizedAfterSuite] PASSED [913.621 seconds]
[SynchronizedAfterSuite]
/home/ubuntu/go/src/github.com/oracle/cluster-api-provider-oci/test/e2e/e2e_suite_test.go:252

  Timeline >>
  STEP: Tearing down the management cluster @ 02/21/23 14:13:35.571
  << Timeline
------------------------------

Ran 1 of 25 Specs in 1001.394 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 24 Skipped

Ginkgo ran 1 suite in 16m46.126608898s


Upgrade dependencies

Blocked until #797 is merged

@QiJin-Bouvet This is ready for test along with #797

Wait a bit before testing this

@QiJin-Bouvet Ready for test now

Tested with commit 841f58a in TEST env.
No function broken.


Async level initialization

Currently, we have synchronous level init.
We should make that async, probably.
See TODO[#47] in the code (#40).

TODO[#47] is no longer available and the code has changed. We have let! level = Level.Load directory 1 2 during the game initialization. Do you suggest to make it a delayed async computation?

Anything that does network or disk IO should be asynchronous.
Please wait for #60, that PR introduces a lot of async activities for content loading. There's no async execution mechanism for in-game mode, but we may discuss that after the PR is merged. I imagine something similar to the LoadingLoop (https://github.com/ForNeVeR/O21/blob/cc5c046af966cb09cddbcad6986efc63b42d378b/O21.Game/Loading/LoadingLoop.fs) in the main game.

I think that the level initialization is already async right now.
When adding new level support, we'll load them all at once (that's just easier and shouldn't be a problem with our level count and memory requirements).


Added RatInMaze.py

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Added rat-in-maze problem in python.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#1475

@Pranav016  kindly resolve the merge conflict firstly.

Can you please review this? @iamrajiv @atarax665 @shraddhavp
Thanks

LGTM ! but please format it using http://pep8online.com/

LGTM ! but please format it using http://pep8online.com/

Done 😄


New Contribution

Contributor: [contributor information - Optional]
SSH Public key: [ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGnucCg1vDLclDbr/jsKUavxLQQ0h3ogjVPmKE1mH7m+
]
Attestation: [any form of attestation for contribution (e.g., signature) - Optional]

@zvorcuit Dude, I have updated the first message with my SSH key. Kindly, let me know when it's my turn for contribution!

@zvorcuit, Since we're in different time zones, coordinating to  contributions might be tricky. Could you let me know when you're available to work? If possible, could we adjust our schedules to contribute up? as I am in IST zone

I'm ready for contribution!

Your contribution process begins.

Mine upload is finished @zvorcuit. Can you check it from you end too!

0xED7998eF608D3011461C5457C13200e319aDC918


PHP Warnings (maybe) triggered by ActivityPub plugin

Quick summary
I've been trying to track down what plugin is causing a surge in “PHP Warning” erros in my WP instance, hosted at WordPress.com.
I set up a staging site and deactivated one plugin at a time, checking out how they affect my logs. After deactivating ActivityPub plugin, the error messages disappeared.
They look like this:

Transcription:

Message: PHP Warning:  foreach() argument must be of type array|object, null given in /wordpress/core/6.7/wp-admin/includes/plugin.php on line 1853
Timestamp: 2024-11-20T20:52:05.000Z
Type: core
Name: 6.7
File: /wordpress/core/6.7/wp-admin/includes/plugin.php
Line: 1853

I'm really not sure if they are caused by AP plugin; it's just my main suspicion. I also suspect it may be something related to the WordPress.com interventions with MU plugin and Jetpack, which causes some headaches from time to time.
I hope this report helps anyway.
Steps to reproduce

Activate AP plugin.
Wait.
Check “Logs” (not sure if it's available in self-manage WP or only in Business WP.com accounts).

What you expected to happen
No errors appearing.
What actually happened
PHP Warnings appear frequently.
Impact
Some (< 50%)
Available workarounds?
No but the platform is still usable
Logs or notes
No response

phew... that is hard to debug, but I will keep my eyes open if I can see similar issues!

Looks like this gets triggered within remove_menu_page() when the global $menu is null. I've not been able to re-create it.
https://github.com/WordPress/wordpress-develop/blob/6.7/src/wp-admin/includes/plugin.php#L1853
@rghedin We'll keep an eye out for it but will close for now since it's not reproducible. Please feel free to re-open when that changes!

Maybe it isn't related to AP plugin, after all. I searched my WordPress theme for remove_menu_page() references and found a couple on functions.php. Probably the culprit.
Sorry about the false alarm, @obenland!


STL file export

Should be able to render a 3D scene into an STL file - ideally, directly from the 3D representation

Closing as not done for now - will reopen if necessary - may be superceded by MV integration


Callback with explicit value.

Callback with an explicit null for objects that failed validation to avoid breaking the async.waterfall where function is used because of a shorter number of arguments than expected.

[ ] :cake:
[x] :pizza:

:+1:


Style landing page

What is a quick description of the change?
Styles the landing page.
Is this fixing an issue?
none
Are there more details that are relevant?
Uses the Jumbotron from React Bootstrap and a stock image as the background image (its license allows it to be used for this case).
Check lists (check x in [ ] of list items)

[  ] Test written/updating
[  ] Tests passing
[x] Coding style (indentation, etc)

No tests written, just styling.
Any additional comments?
Before:

After:

Why is the sign in button so small and off to the side?

Okay so since you and Hiram think it looks off I modified it slightly, the image in the PR description has been updated. Does that look better?


NamedTuple type does not distinguish between names

I'm new to Crystal and could be missing something, but it appears that overloaded methods are dropped when they have similar NamedTuples. The following code does not compile when my expectation is that it would properly dispatch an overloaded method based on the name within a NamedTuple:
#
# Struct Test
#
struct Test
  getter a : Int32 = 0, b : Int32 = 0
  def <<(n : NamedTuple(a: Int32))
      return Test.new
  end
  def <<(n : NamedTuple(b: Int32))
      return Test.new
  end
end

o = Test.new
o <<= {b: 1}
o <<= {a: 1}

The error states only the last defined method exists:
~$ crystal run --error-trace ./src/test.cr
In src/test.cr:16:3

 16 | o <<= {a: 1}
        ^-
Error: no overload matches 'Test#<<' with type NamedTuple(a: Int32)

Overloads are:
 - Test#<<(n : NamedTuple(b: Int32))
~$

This error occurs regardless if the method is an operator or regular method call.
Crystal version:
Crystal 0.35.1 [5999ae29b] (2020-06-19)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu

I didn't find a similar issue posted and wanted to determine if this was intended behavior or a bug.

I'm also surprised using <<= doesn't cause an error on its own given there is no method like that defined for Test.

I'm also surprised using <<= doesn't cause an error on its own given there is no method like that defined for Test.

I the compiler converts o <<= {a: 1} to o = o << {a: 1}. I've confirmed that separately.

I the compiler converts o <<= {a: 1} to o = o << {a: 1}. I've confirmed that separately.

I tried to take a look at the compiler code but it was beyond my current knowledge. It did seem to indicate that the compiler should recognize the name within a NamedTuple and the names are Symbol keys.
I also encountered an issue with variable reuse, but after further testing, that's is not what is causing this issue.

I tried to take a look at the compiler code but it was beyond my current knowledge. It did seem to indicate that the compiler should recognize the name within a NamedTuple and the names are Symbol keys.
I also encountered an issue with variable reuse, but after further testing, that's is not what is causing this issue.


expose form values to parent component

@audiolion thoughts? Should be good to go :)

Coverage remained the same at 100.0% when pulling 2ab8b456120bc30ac7f457894ab430eb324b1916 on feature/values into af81e1b5895648bb9a47f14e3d86fe77783afe06 on master.

Coverage remained the same at 100.0% when pulling 322c769d5155f2ff1d9d5924d17dc1fab1f43fb0 on feature/values into af81e1b5895648bb9a47f14e3d86fe77783afe06 on master.


fix if pod namespace is empty && fix pod using multiple juicefs pvc

close https://github.com/juicedata/juicefs-csi-driver/issues/644

Codecov Report
Patch coverage: 17.44% and project coverage change: -1.54 :warning:

Comparison is base (07cac72) 41.74% compared to head (c5d14c1) 40.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #645      +/-   ##
==========================================
- Coverage   41.74%   40.21%   -1.54%
==========================================
  Files          32       32
  Lines        3459     3673     +214
==========================================
+ Hits         1444     1477      +33
- Misses       1883     2055     +172
- Partials      132      141       +9

Impacted Files
Coverage Δ

pkg/config/config.go
0.00% <ø> (ø)

pkg/driver/node.go
73.40% <0.00%> (-18.60%)
:arrow_down:

pkg/driver/provisioner.go
11.11% <0.00%> (-0.12%)
:arrow_down:

pkg/juicefs/mount/builder/common.go
46.19% <0.00%> (ø)

pkg/juicefs/mount/builder/pod.go
45.50% <0.00%> (-10.38%)
:arrow_down:

pkg/k8sclient/client.go
16.34% <0.00%> (-1.01%)
:arrow_down:

pkg/webhook/handler/mutate/sidecar.go
13.79% <0.00%> (-0.67%)
:arrow_down:

pkg/webhook/handler/handler.go
15.83% <17.39%> (-3.22%)
:arrow_down:

pkg/juicefs/mount/pod_mount.go
36.41% <25.00%> (ø)

pkg/juicefs/juicefs.go
50.57% <27.77%> (-4.98%)
:arrow_down:

... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Disable password protection

Hi,
Is there a way to disable password protection?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c58c903b-778e-e1d9-31c3-321a6fd0050f
Version Independent ID: 9ee47301-0c8d-26ff-1deb-6d309aef2f97
Content: Dynamically banned passwords - Azure Active Directory
Content Source: articles/active-directory/authentication/concept-password-ban-bad.md
Service: active-directory
Sub-service: authentication
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

@bleek00 Thanks for your feedback! We will investigate and update as appropriate.

@bleek00 No, you cannot disable it for Cloud-only users however you can enable or disable for an on-premises active directory users by going to the Authentication methods blade on Azure portal.

In order it to be enabled for on-premise I must have the agent deployed right? Without the agent the enable/disable option isn’t relevant , isn’t it?
Sent from my iPhone

On 24 Apr 2020, at 19:22, SaurabhSharma-MSFT<EMAIL_ADDRESS>wrote:

@bleek00 No, you cannot disable it for Cloud-only users however you can enable or disable for an on-premises active directory users by going to the Authentication methods blade on Azure portal.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@bleek00 - Correct. Enabling the option for on-prem password protection doesn't do anything without the proxy and DC agents installed as outlined in https://docs.microsoft.com/azure/active-directory/authentication/howto-password-ban-bad-on-premises-deploy
As @SaurabhSharma-MSFT notes, password protection for Azure AD can't be disabled.
#please-close


Link to the nexodus installer gives odd error

Describe the bug
Followed the Nexodus Installer link on this page:

and got this result:

How to Reproduce
click the link.
Expected Behavior
something else.
Deployment Environment
No response
Additional Context
No response

looks like this got fixed in #714 (maybe included by accident, but I see the changes in there!)

FYI: added the installer to the nex S3 bucket last night. DIdn't see the issue. Probably wouldn't hurt to add it to deploy as well to automate the upload to S3.


Archive stale branches and move rewrite to main?

Instructions for archiving are here

If we at least change the primary branch to rewrite then I think commit messages like “fixes #21" will actually close issues when merged.

Archived stale branches
Renamed the former main branch to legacy
Swapped main and rewrite


Tweak the default SpatialMaterial properties

Roughness is now set to 1 by default and albedo is now white, even on meshes that do not have any materials defined.
This means there is no longer a visual difference between a mesh with no materials defined and a mesh with a default SpatialMaterial defined.
This should not break existing projects, but please test anyway :slightly_smiling_face:
This closes #20782.

Thank you!


Not getting the same quality as the hugging face web demo model

Hi @plemeri
This is to inform you that when I test the hugging face model and compare the quality against this model which is trained with LR dataset only (DUTS-TR, 384 X 384)  InSPyReNet_SwinB https://github.com/plemeri/InSPyReNet/blob/main/configs/InSPyReNet_SwinB.yaml) then i am getting 2 different outputs and the quality differs and we see an outline forming and when we inference with the same image and the outline doesn't exist in the web demo model.
Can you please tell me why this is occurring as i see from one of the old thread that you say that the model that is being used in the web demo is  InSPyReNet_SwinB trained with LR dataset only DUTS-TR, 384 X 384 so i dont understand why should there be any difference in the qualities.
Please see the attached original image , output from the hugging face model and output from inference Trained with LR dataset only (DUTS-TR, 384 X 384). InSPyReNet_SwinB
Also can you please let me know the versions that you are using for torch , torch vision and opencv-python and do u think that this can occur because there might be due to a change in the versions ?
Original image :

Output from Huggingface Model :

Output from inference with InSPyReNet_SwinB which is trained with LR dataset only (DUTS-TR, 384 X 384) :

P.S. download and zoom the image boundaries to see the differences between both the outputs.
Also can you please tell me if you are doing any post processing in the hugging face demo.
Looking forward to your reply.

maybe you could check the source code on Hugging face https://huggingface.co/spaces/taskswithcode/salient-object-detection/blob/main/app.py

Hi @yaju1234,
As @taha-azzabi mentioned above, huggingface demo is not maintained by us. The demo version is a forked version which is maintained by @taskswithcode.
Also, as I know, the demo version used CPU backend which may cause the difference.
Thank you.


[New chain]: Add BounceBit Testnet

Chain Name
BounceBit Testnet
RPC URL
https://fullnode-testnet.bouncebitapi.com/
The chain must be added to https://chainlist.org/

[x]  I confirm that the chain is added to chainlist

After creating the issue, a bot will estimate the required pre-fund and post it in the comments. Please check this checkbox after you send the pre-fund.

[x]  I sent the pre-fund in accordance with Github Action's comment

The provided RPC does not seem to work (I get a 404).


MySQL hints shown for PostgreSQL and MSSQL

Gitea version (or commit ref): 1.4.0rc1

Description
On the installation page, under 'Initial configuration', the db_helper hint is only relevant to MySQL, but is also visible when selecting PostgreSQL or MSSQL. Hiding this hint when MySQL is not selected would allow to improve its wording.

I think this was already fixed, please reopen if still problem


Unexpected token, expected ( - App has broken itself

Have been frustrated by this error all day! I can't for the life of me work out whats going on. I have multiple entry points in my webpack.config.renderer.dev.js, one for the main window, another for an invisible processing window and another for a splash window which has about 8 lines of Javascript on it.
Friday evening, it was all working smoothly. I've come to it this morning and I'm getting a the following error, which is where I'm importing  "~font-awesome/css/font-awesome.css" inside my splash.global.css file. If I leave this file blank, let it compile, then put the data back in, weirdly it hot reloads no problem. But going from fresh causes all sorts of errors. Its driving me crazy! Also, its now claiming that 'document' is not defined in my splash.js file.
import { ipcRenderer } from 'electron';
import './splash.global.css';

export const CREATE = 'splash/CREATE';
export const OPEN = 'splash/OPEN';

document.getElementById('create').onclick = () => {
  ipcRenderer.send(CREATE);
};

document.getElementById('open').onclick = () => {
  ipcRenderer.send(OPEN);
};

1 | @import "~font-awesome/css/font-awesome.css";
    |         ^
  2 |
  3 | html {
  4 |   height: 100%;
    at Parser.pp$5.raise (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:4454:13)
    at Parser.pp.unexpected (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:1761:8)
    at Parser.pp$3.parseExprAtom (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3632:14)
    at Parser.parseExprAtom (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:7238:22)
    at Parser.pp$3.parseExprSubscripts (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3494:19)
    at Parser.pp$3.parseMaybeUnary (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3474:19)
    at Parser.pp$3.parseExprOps (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3404:19)
    at Parser.pp$3.parseMaybeConditional (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3381:19)
    at Parser.pp$3.parseMaybeAssign (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:3344:19)
    at Parser.parseMaybeAssign (/Users/alexmorris/Documents/FCA/StructuredLoadManager/node_modules/babylon/lib/index.js:6474:20)

It seems like my splash.global.css file is being parsed as if its javascript (hence why Babylon is chucking up errors) but I have the following in my web pack config.
...
      {
        test: /\.global\.css$/,
        use: [
          {
            loader: 'style-loader'
          },
          {
            loader: 'css-loader',
            options: {
              sourceMap: true,
            },
          }
        ]
      }
 ...

So I can't see why this would be the case. Any ideas, please! Thanks,
Alex

Solved it. Those 2 constants I was exporting, I was trying to import in my main process, which doesn't understand the CSS, or have document defined. I've put them in a separate file called 'constants.js' which only exports the constants and does nothing DOM related.
The app didn't break itself, I just added that import statement to my main process while it was hot reloading so it continued to work, and I didn't notice the bug until next time I came to it!


Getting Buffrs to Cross-Compile

It's easier to continue at https://github.com/helsing-ai/buffrs/pull/180.


has been achieved : Updated on 30 march 2023, auto login currently not available #11

The following is a new email address, and I have implemented it, it can be used directly, but POE will now return
{"data":null,"errors":[{"message":"Server Error"}],"extensions":{"is_final":true}}
I have never solved this.
import fetch from "cross-fetch";
import {readFileSync, writeFile} from "fs";

const createNewEmail = async () => {
    const name = "poe" + Date.parse(new Date().toString()) + Math.random();
    const response = await fetch(`https://maildrop.cc/page-data/inbox/page-data.json?mailbox=` + name);
    const response_json = await response.json();
    let credentials = JSON.parse(readFileSync("config.json", "utf8"));
    if (!credentials) {
        credentials = {}
    }
    credentials.email = name +<EMAIL_ADDRESS>    writeFile("config.json", JSON.stringify(credentials), function (err) {
        if (err) {
            console.log(err);
        }
    });
    return {
        email: credentials.email,
        sid_token: name
    }
}

const getEmailList = async (email) => {
    let request = {
        operationName: 'GetInbox',
        query: "query GetInbox($mailbox: String!) {\n  ping(message: \"Test\")\n  inbox(mailbox: $mailbox) {\n    id\n    subject\n    date\n    headerfrom\n    __typename\n  }\n  altinbox(mailbox: $mailbox)\n}\n",
        variables: {
            mailbox: email,
        },
    }
    const response = await fetch(`https://api.maildrop.cc/graphql`, {
        method: 'POST',
        headers: {'Content-Type': 'application/json',},
        body: JSON.stringify(request)
    });
    console.log("email=" + email)
    const response_json = await response.json();
    return {
        list: response_json.data.inbox,
    }
}

const getLatestEmail = async (sid_token) => {
    let emailList = await getEmailList(sid_token);
    let emailListLength = emailList.list.length;
    if (emailListLength == 0) {
        for (let i = 0; i < 30; i++) {
            await new Promise(r => setTimeout(r, 1000));
            emailList = await getEmailList(sid_token);
            emailListLength = emailList.list.length;
            console.log("emailListLength = " + emailListLength);
            if (emailListLength > 0) {
                break;
            }
        }
    }
    return emailList.list[0].id;
}

const getCodeId = async (name, id) => {
    console.log("name", name, "id", id)
    let request = {
        operationName: 'GetMessage',
        query: "query GetMessage($mailbox: String!, $id: String!) {message(mailbox: $mailbox, id: $id) {html\n}}",
        variables: {
            mailbox: name,
            id: id
        },
    }
    const response = await fetch(`https://api.maildrop.cc/graphql`, {
        method: 'POST',
        headers: {'Content-Type': 'application/json',},
        body: JSON.stringify(request)
    });
    const response_json = await response.json();
    return response_json.data.message.html
}

const getPoeOTPCode = async (email_name) => {
    const emailDataId = await getLatestEmail(email_name)
    let codeHtml = await getCodeId(email_name, emailDataId)
    codeHtml = codeHtml.replace("\r\n", "")
    let patt = new RegExp(/>\d{6}</g)
    let arr = codeHtml.match(patt);
    let code = arr[0].substring(1, 7)
    console.log("emailData", code);
    console.log("OTP CODE: " + code);
    return code;
}

export {
    createNewEmail,
    getLatestEmail,
    getPoeOTPCode
}

Hi @flipturn14 , this error occurs because poe also filters emails with domain "maildrop.cc", but not all temp mail is blocked, I try with 10minutemail and it works. Here's for the comparison between maildrop.cc and 10minutemail
maildrop.cc

10minutemail


may we have the updated version (1.5.1) for the 1.19.2?

the reason is that the current version available for 1.19.2 has some annoying bugs that makes not too viable to play with the mod, and basically all of those bugs were fixed on the newer versions.
and also, thank you for the awesome mod, im looking forward for the next updates!

I don't think I will make a full update for 1.19.2, but I can certainly create a patch update! It likely wouldn't include major additions like the Black Caves, but to be honest the Black Caves aren't that exciting anyway.
If you don't mind me asking, which bugs in particular are the most important? I'm assuming the Amethyst Caves bugs, but are there any others?
Also if there is significant request for the Black Caves on 1.19.2 I can likely provide it! In addition, if there is significant request I could possibly make a 1.19.4 port, which in all honesty would be easier to port the Black Caves to.
Thank you so much for supporting me!


Handle initial class/module body creation & summary creation

Adds summary/type/dependency hooks into useJsonAst=true path
Outlines basic helper functions for having class and module bodies created correctly

@AndreiDreyer I'll make a json test package and separate the tests failing on control structures, or would moving control structures be a headache for your current effort?


[babylon-loaders ESM] Can't use SceneLoader without global BABYLON (window.BABYLON)

Repro
import {
  Color3,
  Color4,
  Engine,
  HemisphericLight,
  Material,
  MeshBuilder,
  MirrorTexture,
  PBRSpecularGlossinessMaterial,
  Scene,
  SceneLoader,
  StandardMaterial,
  UniversalCamera,
  Vector3,
} from "@babylonjs/core";

import 'babylonjs-loaders';

. . .

const scene = new Scene(engine);

const camera = new UniversalCamera("camera", new Vector3(0, 5, -10), scene);
camera.setTarget(Vector3.Zero());

// Using already imported SceneLoader doesn't work
(window as any).BABYLON.SceneLoader.Append("", __MyGltf__, scene, function () {
    scene.meshes[0].position.set(0, 0,0)
});

// Replacing  import "@babylonjs/loaders/glTF"  by import  "@babylonjs/loaders/glTF" and use already imported SceneLoader doesn't show anything
// SceneLoader.Append("", __MyGltf__, scene, function () {
//     scene.meshes[0].position.set(0, 0,0)
// });

legacy-glTF2.ts
https://github.com/BabylonJS/Babylon.js/blob/eabbf0131755fecc4f9f782e3038063e4a0b55eb/packages/lts/loaders/src/legacy/legacy-glTF2.ts#L10

cc @RaananW

You are mixing es6 and umd packaged. please try using @babylonjs/loaders instead of babylonjs-loaders
If you want to discuss this further, we will be happy to do so on the forum. Thanks :-)

You are mixing es6 and umd packaged. please try using @babylonjs/loaders instead of babylonjs-loaders If you want to discuss this further, we will be happy to do so on the forum. Thanks :-)

I don't know if there is a specific reason or it could be some bundler configuration but as I commented, @babylonjs/loaders doesn't work, no error but nothing appears...

We are using our forum as a place for discussion and I will be happy to see a reproduction of your project to help you debug this. I tested my template-project and it works as expected, so it is probably a configuration issue on your side.
Waiting at the forum to help further. Thanks :-)

We are using our forum as a place for discussion and I will be happy to see a reproduction of your project to help you debug this. I tested my template-project and it works as expected, so it is probably a configuration issue on your side. Waiting at the forum to help further. Thanks :-)

My post was hidden because of the spam filter but I'll wait and resolve it there then, thank you Raanan

Well, the solution I found was register GLTF manually since import wasn't doing it for me
SceneLoader.RegisterPlugin(new GLTFFileLoader());


Issue with f.cir iles containg subcircuits.

Hi Charu,
My spice netlist contains subcircuits. The script is'nt working due to the same. Please look into it so that i can do power analysis for my circuit.
The  netlist is upload in the below mentioned github repository with the name "10bitdac.cir"
https://github.com/VSD-DACteam/avsddac_3v3
Thankyou

Hi
Sorry for inconvenience... I update my script now it works for your circuit also and you get average power. Can you please try once again....
Thanks


Preprocess search query to identify boolean operators

Is your feature request related to a problem? Please describe.
Boolean operators are included as search terms by default in lunr.
Describe the solution you'd like
Processing of the search query before submission and identification of OR and AND exact matches. Then combine each part of the search for OR searches or use the AND operator for those searches.
Additional context
If we're defaulting to AND in our general search, we'd just need to identify OR and combine all search terms when an exact match (including case) is part of the query.

Added based on a misunderstanding. Closing. Will not do.


Screen resolution setGeometry warning fix & IPLookup

Restructure of UI to accomodate lower screen resolutions
Couple of fixes for auth server label change and enable/disable logic
Add IPLookup functionality, users can now lookup local system IP's
rather than entering manually

Closes #419
Closes #414

This is awesome! Great work Miles!
For the IP lookup, maybe we should assume IPs ending in 1 are gateways and ignore them?
I'm just thinking of potential troubleshooting issues "which IP do I choose?"

I'll pull this down tomorrow to test.
CI is failing due to #424

This seems to work fine for me. My only suggestion would be to add player fade-in to config creation and the settings menu, to avoid the warning message in the console output about it not being found.
That said, the console output is kind of small and impractical, but a general GUI clean up can fix that, per our prior discussion on discord

Thanks @broxen
I should have some time this weekend at some point to tidy up the GUI and adding fade-in should be easy enough.
Thanks,
Miles

@broxen This can be merged once Travis CI is fixed. I've already incorporated the player_fade_in and UI changes locally, I'll submit in a separate PR once this is gone.


*.msappproxy.net is removed from #56

Since 2020-08-28, *.msappproxy.net is removed from #56 in Office 365 IP address and port range page. Why did you remove this URL from the list?
Azure AD Connect uses this *msappproxy.net when it rolls over the Kerberos key for the Seamless SSO feature. Azure AD Connect access *.msappproxy.net when Update-AzureADSSOForest command is executed. So this URL is necessary for users who are using Azure AD Connect (Seamless SSO) for O365.
One of my customers is affected by this change and they had to manually change the proxy server settings to allow outbound connections to *.msappproxy.net
You can see the history of the change from the page below.

https://docs.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-ip-web-service?view=o365-worldwide
https://endpoints.office.com/changes/worldwide/0000000000

  {
    "id": 593,
    "endpointSetId": 56,
    "disposition": "Change",
    "version": "2020082800",
    "impact": "RemovedIpOrUrl",
    "remove": {
      "urls": [
        "*.msappproxy.net"
      ]
    }
  },

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 66bd8666-3566-a901-b25b-eb6baba6264a
Version Independent ID: e9f6310f-2207-8c81-d31a-3d5a80beb26b
Content: Office 365 URLs and IP address ranges - Microsoft 365 Enterprise
Content Source: microsoft-365/enterprise/urls-and-ip-address-ranges.md
Service: o365-administration
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

@juntakata The *.msappproxy.net endpoint is described here: https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso-quick-start#step-1-check-the-prerequisites and is only needed when you enable SSO. It is not required for user sign-ins, therefore it is not in the main list of endpoints. Thanks for your question.


What is the value of gradient clipping norm you used in the paper?

Hi, thanks for this great work!
I noticed a discrepancy between this repo and the paper:
(1) In your paper you said: 'gradient clipping with a max norm of 1 are used' (A2.1.)
(2) In your code and the training log, it looks like a max norm of 5 is used instead.
What is the correct value to use? Will both work? It seems like the grad norm scarcely exceeds 5 (but almost always above 1), though.

They both work. Please follow the settings in this repo which can exactly reproduce the models provided.


Mobile browser support

Checkbox does not register a click on mobile Safari or Chrome. Any suggestions for a workaround for this?
Update:
Just did some more digging. It looks like the click event that is bound in the directive is not properly binding on mobile. Note that my app does have ngTouch included.
elem.bind("click", function() {
  console.log('This was clicked') // This never gets logged on mobile
  scope.$apply(function() {
    if(modelCtrl.$modelValue === falseValue) {
      modelCtrl.$setViewValue(trueValue);
    } else {
      modelCtrl.$setViewValue(falseValue);
    }
  });
});

Thanks for reporting, I will test this as soon I get my hands on a mobile device.

Submitted a pull request for this issue: https://github.com/sebastianha/angular-bootstrap-checkbox/pull/22


Popup with preview cannot be closed

JavaScript console output: uncaught exception: event show inappropriate in current state visible

At the moment clicking on "Preview PDF" opens a new tab with the document url to PLOS. Can't really reproduce/test the bug

This is a quick fix related to #24 that is only implemented on openknowledgemaps.org. You should be able to reproduce the problem on a local test system.


[🔥 Hotfix] version bump for testing

Goal
Revert with a different environment to verify Bech32 for Samsung S9+ and Samsung J2
Definition of Success

[ ] Tagged and verified changes
[ ] Ran build on emulator and S9 and J2

Visual Proof

rebasing to develop


Create special.external test jobs

We have tagged external/functional-test and external/system-test targets as special, and will use those tests which run the functional tests and system tests in Docker containers as the way to verify whether unofficial Docker images are 'good' to move into the official Docker hub repo.
We will need special.external test jobs for all active jdk versions (8,11,14,15), both impls we build (hs, j9), most architectures we produce images for (start with x86,s390x,ppcle64).
These jobs (like Grinders and all test pipelines) can take parameters DOCKER_REQUIRED=true and DOCKERIMAGE_TAG (which will default to ubuntu, but can also take ubi, ubi-minimal, alpine, clefos, centos, debian, debianslim).  Ideally, we cycle through each of those OSes over the course of regular testing.  Will first enable with default ubuntu.

jdk version
impl
DOCKERIMAGE_TAG sample
Job link per arch

8
hs
ubuntu
xlinux, plinux, zlinux

8
j9
ubi

11
hs
alpine

11
j9
debianslim

14
hs
ubi-minimal

14
j9
debian

@smlambert Logs for cmdLineTester_SCCommandLineOptionTests_1. Seems like two test failed.
---TEST RESULTS---
11:14:43  Number of PASSED tests: 25 out of 27
11:14:43  Number of FAILED tests: 2 out of 27
11:14:43
11:14:43  ---SUMMARY OF FAILED TESTS---
11:14:43  nameOption2
11:14:43  nameOption4

Respective Tests
nameOption2:
11:14:35  Testing: nameOption2
11:14:35  Test start time: 2020/04/01 15:14:34 Greenwich Mean Time
11:14:35  Running command: sh nameOption2.sh /opt/java/openjdk/bin
11:14:35  Time spent starting: 2 milliseconds
11:14:35  Time spent executing: 647 milliseconds
11:14:35  Test result: FAILED
11:14:35   [OUT] Hello, world!
11:14:35   [OUT] TEST PASSED
11:14:35   [OUT] nameOption2: TEST FAILED
11:14:35   [OUT] nameOption2: Expected to find the cache name
11:14:35   [OUT] TEST PASSED
11:14:35   [ERR] JVMSHRC806I Compressed references persistent shared cache "root" has been destroyed. Use option -Xnocompressedrefs if you want to destroy a non-compressed references cache.
11:14:35  >> Success condition was found: [Output match: TEST PASSED]
11:14:35  >> Failure condition was found: [Output match: TEST FAILED]
11:14:35  >> Failure condition was not found: [Output match: Error:]
11:14:35  >> Failure condition was not found: [Output match: Unhandled Exception]
11:14:35  >> Failure condition was not found: [Output match: Exception:]

nameOption4:
11:14:36  Testing: nameOption4
11:14:36  Test start time: 2020/04/01 15:14:36 Greenwich Mean Time
11:14:36  Running command: sh nameOption4.sh /opt/java/openjdk/bin
11:14:36  Time spent starting: 1 milliseconds
11:14:36  Time spent executing: 596 milliseconds
11:14:36  Test result: FAILED
11:14:36   [OUT] Hello, world!
11:14:36   [OUT] TEST PASSED
11:14:36   [OUT] nameOption4: TEST FAILED
11:14:36   [OUT] nameOption4: Expected to find the cache name
11:14:36   [OUT] TEST PASSED
11:14:36   [ERR] JVMSHRC806I Compressed references persistent shared cache "_root_root" has been destroyed. Use option -Xnocompressedrefs if you want to destroy a non-compressed references cache.
11:14:36  >> Success condition was found: [Output match: TEST PASSED]
11:14:36  >> Failure condition was found: [Output match: TEST FAILED]
11:14:36  >> Failure condition was not found: [Output match: Error:]
11:14:36  >> Failure condition was not found: [Output match: Unhandled Exception]
11:14:36  >> Failure condition was not found: [Output match: Exception:]

Related to this: https://github.com/AdoptOpenJDK/openjdk-docker/issues/236

Closed via #1795


chore: Recommend to use k8s v1.22 image for kind cluster

k8s v1.21 image has issues with OLM installation. See https://github.com/orgs/rhobs/teams/monitoring-stack-operator-maintainers/discussions/1
Signed-off-by: Arunprasad Rajkumar<EMAIL_ADDRESS>

Nice, should we also update the makefile?

@arajkumar could you rebase against main so that we can get this merged?


Fixed jdk version for Minecraft 1.17

This commit fixes issue #5

Unfortunately, the launcher always crashes for me after updating to OpenJDK 16.0.1:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f91069a015c, pid=2, tid=3
#
# JRE version: OpenJDK Runtime Environment 21.3 (16.0.1+9) (build 16.0.1+9)
# Java VM: OpenJDK 64-Bit Server VM 21.3 (16.0.1+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00007f91069a015c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/gui/core.2)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: /app/share/com.teamshiginima.ShiginimaLauncher/launcher.jar --workdir /home/gui/.var/app/com.teamshiginima.ShiginimaLauncher/data/minecraft

Host: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 4 cores, 7G, Freedesktop.org 20.08.13 (Flatpak runtime)
Time: Sat Jun 12 08:31:22 2021 -03 elapsed time: 7.143379 seconds (0d 0h 0m 7s)

---------------  T H R E A D  ---------------

Current thread (0x00007f9188010120):  JavaThread "main" [_thread_in_native, id=3, stack(0x00007f918f366000,0x00007f918f467000)]

Stack: [0x00007f918f366000,0x00007f918f467000],  sp=0x00007f918f4645e8,  free space=1017k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x00007f91069a015c

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.java.swing.plaf.gtk.GTKStyle.nativeGetXThickness(I)I+0<EMAIL_ADDRESS>j  com.sun.java.swing.plaf.gtk.GTKStyle.<init>(Ljava/awt/Font;Lcom/sun/java/swing/plaf/gtk/GTKEngine$WidgetType;)V+24<EMAIL_ADDRESS>j  com.sun.java.swing.plaf.gtk.GTKStyleFactory.getStyle(Ljavax/swing/JComponent;Ljavax/swing/plaf/synth/Region;)Ljavax/swing/plaf/synth/SynthStyle;+310<EMAIL_ADDRESS>j  com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(Ljavax/swing/UIDefaults;)V+53<EMAIL_ADDRESS>j  com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getDefaults()Ljavax/swing/UIDefaults;+33<EMAIL_ADDRESS>j  javax.swing.UIManager.setLookAndFeel(Ljavax/swing/LookAndFeel;)V+66<EMAIL_ADDRESS>j  javax.swing.UIManager.setLookAndFeel(Ljava/lang/String;)V+34<EMAIL_ADDRESS>j  net.minecraft.launcher.SwingUserInterface.setLookAndFeel()V+11
j  net.minecraft.launcher.SwingUserInterface.<init>(Lnet/minecraft/launcher/Launcher;Ljavax/swing/JFrame;)V+14
j  net.minecraft.launcher.Launcher.selectUserInterface(Ljavax/swing/JFrame;)Lnet/minecraft/launcher/MinecraftUserInterface;+6
j  net.minecraft.launcher.Launcher.<init>(Ljavax/swing/JFrame;Ljava/io/File;Ljava/net/Proxy;Ljava/net/PasswordAuthentication;[Ljava/lang/String;Ljava/lang/Integer;)V+106
j  net.mc.main.Main.startMC([Ljava/lang/String;)V+510
j  net.mc.main.Main.main([Ljava/lang/String;)V+262
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x00007f91069a015c

Tested on both Arch Linux and Ubuntu 21.04.
Perhaps this should be reported here: https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk
But I'm afraid it will be ignored, unless we can actually reproduce the crash with an app in the Flathub store.


context.path gets overwritten by route.path while resolving

resolve.js line 31:
const newContext = Object.assign({}, context, value);

in the root route I want to do something like this:
export default {

  path: '/',

  children: [
    require('./protected1').default,
    require('./protected2').default,
    require('./login').default,
  ],

  async action({ path, query, next }) {
    const route = await next();

    if (path !== '/login' && !isAuthenticated()) {
      const queries = Object.keys(query).map(key => `${key}=${query[key]}`).join('&');
      const location = `${path}?${queries}`;
      route.redirect = `/login?next=${encodeURIComponent(location)}`;
      return route;
    }
    ...

And I'm resolving it with:
    const route = await UniversalRouter.resolve(routes, {
      path: req.path
    });

When navigating to http://mywebsite/login I was expecting path to be '/login' in the root route action, but it's always '/'. For now I'm passing additional _path property to the context and using that instead.

Since v3.0.0 you can use context.url instead of _path. More info about context see in docs.


R8 error on RN 0.76.5

MAX Module Version
8.1.0
React Native Version
0.76.5
Device/Platform Info
Android
Current Behavior
npx react-native build-android --mode=release ends up with :app:minifyReleaseWithR8 error, when i removed this lib, app builds. So problem is here. This happens after upgrading to 0.76
Expected Behavior
No response
How to Reproduce
Just test it yourself
Reproducible in the demo app?
Not Tested
Additional Info
No response

@SergiOnGit, I can't reproduce the issue when building with -mode=release  for React Native 0.76.5 and Max 8.1.0.   Could you post the errors you have?

@alhiwatan This is the error, it isn't happening if i remove this plugin
`> Task :app:minifyReleaseWithR8 FAILED
ERROR: R8: java.util.ConcurrentModificationException
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.

A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
Compilation failed to complete`


test resources not available to unit tests

I've got exports my.package to junit; in my module-info and most of my tests can now run while building but some tests rely on test data that I place in src/test/resources. when doing a build these tests fail as the resources are not found. I've tried various ways to get the resources such as:
InputStream stream = getClass().getModule().getResourceAsStream("testdata.txt");
InputStream stream = getClass().getClassLoader().getResourceAsStream("testdata.txt");

for now I have a workaround that works when running the tests in Intellij as well as when the tests are run during the gradle build:
    private Reader loadTestResource(final String resource) throws IOException {
        final InputStream stream = ClassLoader.getSystemResourceAsStream(resource);

        return stream != null ?
                new BufferedReader(new InputStreamReader(stream, Charset.forName("UTF-8"))) :
                Files.newBufferedReader(Paths.get("src/test/resources/" + resource));
    }

Yes, the test resources aren't being picked up by the modular setup. I tried modifying the test source set output directory for resources and it seems to be working:
sourceSets {
    test {
        output.resourcesDir = "build/classes/java/test"
    }
}


[Enhancement] Improvement suggestion for low-level string handling

I have compared the different methods how Lua and Wren handle strings.
Wren hashes the strings using a way better hash function, but unfortunately this function is also very costly, at least for long strings. It requires a multiplication per byte, which is fast on modern x86 CPUs. But not all CPUs are so fast or have hardware multiplication. Some embedded CPUs actually need a bit loop for multiplication, making Wren's current way of string hashing very slow. (Of course, they probably won't have an FPU either, but that's another topic.)
Lua on the other hand uses an extremely cheap string hashing function. But it can afford to, because the hash code is only used locally for deduplication. It is not even stored along with the string. As soon as Lua has established that only unique strings exist as Lua objects (because of the deduplication), it can use the memory address of the string as a unique identifier for it.
However, Lua's method is not necessarily faster: If only short strings are used by the program, the overhead of Wren's expensive hashing function is small, while deduplication certainly requires a more costly base effort.
On the other hand, Wren can use its expensively computed hash only for two things: For fast-detecting that two strings are not identical, and for using the string as a key in other hash tables.
The first use is rather uncommon - programs typically compare strings for equality and not inequality.
So the hash value is only really useful for being used as a key in another hash table, where it provides a high-quality hash value.
My improvement suggestion would now be this: Consider adopting Lua's method in the backend and deduplicate all strings in a similar way.
Then use the expensive hash function only for hashing the address of the deduplicated string, which is short and therefore not as expensive as hashing the actual string contents.
The authors of the FNV-1a hash function explicitly recommend using it for short items like the in-memory images of numeric values, and every pointer value is also just another number.
As an added bonus, low-level string comparison can be reduced to a pointer comparison, the hash is not even required for that.
And of course the memory savings could be enormous if a lot of identical strings are being processed by the script.
But deduplicated strings have more advantages than this.
In Lua, strings can also be used reliably as atoms!
That is, Lua does not need enum or symbols in efficient code. It can just do something like
if state == "initial" then ...
else if state == "blahblah" then ...
end

because the string comparisons just involve pointer comparisons internally and are thus extremely cheap. And neither do the many repeated strings in the source file waste memory (after compiling them into internal bytecode), because they all use the same shared memory locations thanks to the deduplication.

String literals are already interned as a constant, and string comparisons just use the hash directly.

The subject of making string Symbols was a long debate with @munificent.
The concept he brought was that making Strings constant was sufficient. I
think that the cost is not worth it at runtime, but can be interesting at
compile time.
Another solution can be to soften the hash based on hardware, or even use
processor specialized hash CPU built-ins when available.

and string comparisons [just use the hash directly]

Yes, but the hash can only be used to determine definitive inequality.
It cannot not speed up a successful comparison for equality.
In Lua comparison for both equality and inequality is just a simple pointer comparison, no strcmp() needed, because any string with the same contents will always have the same address thanks to the deduplication.
Also note that Lua's string hashing function is lightning fast and uses even constant time, because only 5 characters of the string are included into the hash calculation at all!
While Wren's processes each and every character of the string for hashing.
Of course, the hashing is not all: Lua still needs a full string comparison after hashing, in order to rule out a hash collision. And the collision chains might be long due to Lua's weak oversimplified hash function.
So Lua needs to do more work when the string is encountered the first time AND if there are many strings in the same hash bucket.
Wren will therefore most likely beat Lua's string handling for short strings.
But if an application has to process a lot of long strings, I would assume Lua's method had to be a lot faster.

Also note that Lua's string hashing function is lightning fast and uses even constant time, because only 5 characters of the string are included into the hash calculation at all!

This is not correct. For short strings, all characters are processed. If a string's length is above a certain threshold then it will skip characters, the skip width depending on the size of the string. The algorithm for that in Lua 5.1 that I can see is step = (length >> 5) + 1;, so if a string is less than 32 characters in length, the full string is processed.

Of course, the hashing is not all: Lua still needs a full string comparison after hashing, in order to rule out a hash collision. And the collision chains might be long due to Lua's weak oversimplified hash function.
So Lua needs to do more work when the string is encountered the first time AND if there are many strings in the same hash bucket.

I think for at least one of these sentences you swapped "Lua" and "Wren". I'm confused by what you are saying here.

@mhermier Is this the discussion you were referencing?

so if a string is less than 32 characters in length, the full string is processed.

Yes, you are right. Sorry. Didn't remember the code correctly.
But hashing is still constant effort for strings longer than that, and thus for all long strings where the speed of hashing eventually will become an issue.

Of course, the hashing is not all: Lua still needs a full string comparison after hashing, in order to rule out a hash collision. And the collision chains might be long due to Lua's weak oversimplified hash function.
So Lua needs to do more work when the string is encountered the first time AND if there are many strings in the same hash bucket.

I think for at least one of these sentences you swapped "Lua" and "Wren". I'm confused by what you are saying here.

What I meant was that Lua's deduplication might be slower than Wren's expensive hashing if Lua's hash function produces many hash collisions for different strings. Because then Lua needs to strcmp() the new string with all strings in the collision chain in order to see whether the new string is a duplicate of one of those strings.
The most "evil" case one can create for Lua are very long strings which have all the same size and only differ at character positions which are not included in the hash calculation. Therefore all those strings will yield the same hash value, yet all of them are different.
And with "when the string is encountered the first time" I meant that Lua needs to de-duplicate a new string object only once at the time of its creation. As soon as the objects exists, string comparison for both equality and inequality, whether successful or not, never needs another strcmp().
While Wren() always needs a strcmp() in order to ensure that two strings with the same hash value are indeed the same, because of the possibility of hash collisions.
Or to put it a different way: Lua does all strcmp() in advance as part of the deduplication. After that, strings can be compared with near-zero effort (just a pointer comparison) as long as they exist, and no matter how often they are used.
Wren saves the deduplication effort, but needs to call strcmp() for the same string over and over again every time it has to compare it (successfully) for equality with some other string. Lua only needs to compare pointers in this case.

Yes, it is the discussion. It made me think we also needed an identity
comparison in the form of === and !== which resulted in addition of
Ibject::same(lhs, rhs).


Non-Optional Spaces Removed From JSX

For

    foo bar

I got

  foobar
;

which would render foo bar vs foobar.

Thanks for the great tool, though! Hope to adopt it once it becomes stable :sun_with_face:

Good catch, thanks. We try to format JSX when we can help, which is why the indentation before foo is changed, but we certainly shouldn't remove this space.

Closing this in favour of #73


Can not log in wechat

When I scan the QR code, I get this message:

It is telling me to use the app for mac or windows and not use the browser. WeChat for Mac works fine for me. WeChat in my browser does not work. Now I want to use it in meetfranz and it does not work :(
please help

Please help :(
Zur Gewährleistung der Sicherheit Ihres Kontos wurde die Anmeldung bei WeChat über das Internet ausgesetzt. Melden Sie sich stattdessen auf einem Computer bei WeChat für Windows oder WeChat für Mac an. Laden Sie WeChat für Windows oder Mac herunter von http://wechat.com.

@pfannenwenderer could not reproduce, do you still have this issue?

Yes, I still get the same error :( But I also get this error when I use chrome or firefox.

I will also ask the wechat support now :)

@pfannenwenderer Same problem here. Any feedback from the WeChat support yet?

Not yet :(
Maybe after the chinese holiday
Von meinem iPhone gesendet

Am 17.02.2018 um 17:43 schrieb Benjamin<EMAIL_ADDRESS>@pfannenwenderer Same problem here. Any feedback from the WeChat support yet?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

FYI, I also posted same message to #service on Franz's Slack as follow:

I found a thread on this message (https://www.v2ex.com/t/435567)
They are suggesting, this message will be shown if an user account is too new or considered as a robot (by mistake.)

Same here !
Anyone found a fix ?
For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com

Same to me!
"Zur Gewährleistung der Sicherheit Ihres Kontos wurde die Anmeldung bei WeChat über das Internet ausgesetzt. [...]"

Same problem here. Maybe it is related to not giving private contacts free in the app. And maybe because I just have one contact using WeChat.

How is the status? @koma-private

@BerndErnst
If you experience problems when using WeChat via Franz, please follow these steps.
Step 1) Please try to login to your account by browsing their official web interface, Web WeChat
If you experience same problem even using Web WeChat, then proceed to Step 2.
If you can use Web WeChat without any problem, then proceed to Step 3.
Step 2) The problem may be caused by WeChat service itself. Ask their support at WeChat Help Center
Step 3)
Something wrong with WeChat recipe, Franz or Electron. Please report here with detail information.

@koma-private
When I try to login I get the QR code. When I scan it I get this message in Franz:
1203For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com

@BerndErnst
Thank you for reporting, did you also try to login to Web WeChat? https://web.wechat.com/

This is from https://web.wechat.com/
I want to add that my WeChat Acc is actually at least 1 year old.
And don't say it's a clear case in which you can't do anything without becoming too hacky ;)
1203For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com

@BerndErnst
Hi. Maybe this is a bad news. I found a post at other project on GitHub:

This issue is related to the latest policy changing from Tencent: Newly created Wechat Account will not be able to login via Web Wechat anymore.
The solution will be: use a Wechat Account that registered before Jun 2017.

And it seems Tencent, the developer of WeChat has changed their security policy to ban chat-bots working on Web WeChat. Although there is little hope, you can ask their support at WeChat Help Center

Hi, not sure if this is useful, but this other project claims to have found a solution:
https://github.com/Chatie/wechaty/issues/872

Have you guys found a solution for this?? I'd really like to use wechat with franz

Same here !
..."For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com"..
Anyone found a fix ?

Since my last post, I tried it with someone who had an account from before the cutoff, and it works just fine.

lucky u
i can not

I have a WeChat account since around 2010, and I cannot use the web browser version either. The "new accounts since 2017" official response seems like a bit of a cop out.

WeChat is a pile of cr*p. I used to prefer the in-browser version because I was able to zoom in to make Chinese characters larger and to use my browser's Chinese popup translator extension, neither of which features exists in the desktop version, but now the web version no longer works so...

same problem, also using an account from well before 2017.
honestly, it's most probably just an excuse to let foreigners download the installation version. spyware/back door? not unlikely.


Flutter Hot Reload stopped working from VSCode

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Launch the app from VScode.
Press Hot reload or Hot restart from toolbar.
Expected results
App is hot reloaded or hot restarted.
Actual results
Got an error in VSCode debug console
Failed to Hot Restart: DebugAdapterException: Flutter failed to create file at "/Users/timwen/Library/Containers/com.example.simpleUi/Data/tmp/simple_uineH6Iu/simple_ui/main.dart.dill".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.

I check the path, my account surely has full access. So it seems the app isn't launched from my user account but some other account?
Update:
With further experiment, I found the hot reload is working fine if launched from terminal. Seems issue is more an VSCode extension bug?
Code sample
All code has this issue
Logs
Logs
Failed to Hot Restart: DebugAdapterException: Flutter failed to create file at "/Users/timwen/Library/Containers/com.example.simpleUi/Data/tmp/simple_uineH6Iu/simple_ui/main.dart.dill".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.0 23A344 darwin-arm64, locale en-AU)
    • Flutter version 3.16.2 on channel stable at /Users/timwen/workspace/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (10 days ago), 2023-11-30 11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/timwen/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (3 available)
    • Tim's iPhone 13 Pro (mobile) • 00008110-001A016E0239401E • ios            • iOS
      17.1.2 21B101
    • macOS (desktop)              • macos                     • darwin-arm64   • macOS
      14.0 23A344 darwin-arm64
    • Chrome (web)                 • chrome                    • web-javascript •
      Google Chrome 115.0.5790.170

[✓] Network resources
    • All expected network resources are available.

• No issues found!

VScode version
```
Version: 1.84.2 (Universal)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:33.687Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.0.0
```

VSCode extension
Dart    v3.78.0
Flutter v3.78.0

Errr....
I fixed the issue by restarting VSCode.


Supplementaries + Connector (NeoForge)

Mod Name
Supplementaries
Mod Homepage
https://www.curseforge.com/minecraft/mc-mods/supplementaries
Minecraft version
1.21.1
Describe the bug
When using Supplementaries + Moonlight lib + Sinytra Connector + Forgified Fabric API + Connector Extras and trying to load into a world the game crashes.
Steps to reproduce

Install Supplementaries, Moonlight lib, Sinytra Connector, Forgified Fabric API, Connector Extras (NeoForge 1.21.1)
Join / Create a world.
Crash

Logs
https://gist.github.com/Obe107/785301736e9e09952a18f0ad3c9f9867
Additional context
No response

I confirm the issue, I have the same problem at the moment with the modpack Im building

+1 for same issue
Minecraft 1.21.1
Neoforge 21.1.76
Connector 2.0.0-beta.3
Forgified Fabric API 0.104.0+2.0.18
Moonlight Lib 1.21-2.15.14
Suplementaries 3.0.10-alpha

Works fine on Connector beta 4


No onboarding key found

I know this is a common issue, but when I tried to connect my outdoor hotspot, I received a "No onboarding key found" message. I have emailed<EMAIL_ADDRESS>with the form filled out. Do I need to do anything else to report this issue? Thank you.

@chipbrantley Can you please share the ticket number?
For now, I closing this issue, since it's not related to documentation, and you can share the ticket number in the same issue once you have it. Thank You.

@salmanfarisvp Thank you. The ticket number is 264746. -CB

@salmanfarisvp I noticed in another ticket that you advised keeping the hotspot plugged in and connected by Ethernet. Re: ticket # 264746, I have mine now plugged and connected. Could you tell me next steps please? Thank you!


support OSSL_IMPLEMENT_GETAUXVAL for arm/ppc/s390x on musl libc on linux

currently, e.g. crypto/ppccap.c contains
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
# if __GLIBC_PREREQ(2, 16)
#  include <sys/auxv.h>
#  define OSSL_IMPLEMENT_GETAUXVAL
# elif defined(__ANDROID_API__)
/* see https://developer.android.google.cn/ndk/guides/cpu-features */
#  if __ANDROID_API__ >= 18
#   include <sys/auxv.h>
#   define OSSL_IMPLEMENT_GETAUXVAL
#  endif
# endif
#endif

however, this isn't glibc specific. <sys/auxv.h> works on linux in general, and does work on musl. simply changing those to #if 1 allows the code to work and use the auxv at runtime instead of the sigill-trap based detection

Support for niche platforms depends on community help from users of such platforms. Would you please consider submitting a pull request?

I would, but it requires signing and scanning and emailing a CLA with a bunch of info I don't publicly use


2.1.0 release was not correctly published

Summary
The 2.1.0 release publication process seems to have failed so it is not available in Maven Central. Could you republish?
Expected behavior
2.1.0 should be available on Maven Central for the dependency resolution to work.
Observed behavior
2.1.0 is not found when added as a dependency since publication seem to have failed.

Thanks for filing. Looking into this right now.

The 2.1.0 artifact should now be published. @jrgonzalezg can you confirm that you're able to pull in this version? If so, please feel free to close this issue.

It found it now, although I'm not sure where it is being obtained from. It doesn't show up at https://search.maven.org/artifact/com.google.maps.android/android-maps-utils yet. Maybe it is there but not yet visible on the site?. Closing anyway since builds seem to go through.

I've noticed that it takes some time to propagate and be searchable on search.maven.org. The artifact is here: https://search.maven.org/artifact/com.google.maps.android/android-maps-utils/2.1.0/aar


Add a fallback policy to be used whenever OPA server is unresponsive/unreachable

What type of PR is this?
Please check the category that applies:

[X] Feature
[ ] Bug Fix
[ ] Refactor
[ ] Documentation Update

Description
Adds a failover mechanism to the wrapper plugin in the case of a failed connection with the OPA server.
Additional changes

Fixed some opaClient tests that weren't actually covering the intended lines they were meant to cover
Added documentation for this change

Related Issues
If applicable, please link any related issues. Use "Closes" keyword to automatically close the issue on PR merge.
Closes #218
Testing

[X] I have included or updated unit tests for my changes.
[ ] I would like some help writing tests.
[ ] These changes do not require tests.

Wow fantastic work! 👏
I'm out and about right now but can't wait to dig into this tomorrow!
Thanks so much for the work on this!

Hey!
Kudos for all the hard work on this so far! Just letting you know I'll take a proper look tomorrow as I have some things to do this afternoon and won't get a chance 😢
Thanks again!

Hey @coldblade2000 👋 !
Thanks for all your hard work on this, lets get the actions to pass, think we just need to run a prettier, then I think this is okay to merge! :shipit:
Appreciate all that you've done here so far!

Hey @coldblade2000 👋 !
Thanks for all your hard work on this, lets get the actions to pass, think we just need to run a prettier, then I think this is okay to merge! :shipit:
Appreciate all that you've done here so far!

Perfect. Yeah, I'd ran Lint and Prettier but my IDE was reformating my code on commit, so It was failing Prettier again. Fixed it

Thank you so much for this! Great idea 💡 and thanks for taking the time to implement it ☺
I want to do some other tidying up that I've had on my to-do list for a while then I'll cut a release! 👏


Bulk loading data - reports not working as expected

Using a UAT instance, i've cloned an application 10-20 times.
Behaviour I see which I dont expect

Go to report page

first 10 apps shown on quadrant cart

When i press Next or Show all on table, additional apps dont appear on chart. I have to manually select one at a time
Other weird things happen when selecting de selecting apps on second page.e.g. one appears and another disappears

On Report page, looking at Indentified risks

Having cloned an app, with the same risks - only one app is shown against each risk

Hi @paulsodagar
The issue described in points 4 and 5 is fixed in the PRs  #231 for master and #232 for the branch @noelo is working on, and that will be merged to master.
As for 1, 2, 3, I think the issue is not that the additional apps are not showing on the chart... as they use the same shapes and sizes, they just cover each other, and only the top one is actually seen.
I think it's a valid request for the UI improvement, but not sure how to make sure all apps are seen, even though they would "occupy" the same space on the chart.

hi @mayorova thanks
perhaps showing a count on the bubble to show there's more than one?


Update nginx.conf

https://github.com/eustasy/simplet/blob/master/_simplet/nginx.conf

[x] Add IPv6 Support.
[x] Disallow _* access.
[x] Pass PHP to Socket.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8934077-update-nginx-conf?utm_campaign=plugin&utm_content=tracker%2F86903&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F86903&utm_medium=issues&utm_source=github).

1340aeac2ab3be839a3f8ae9dab9205159e1ae05 fixes.


Length of multi-byte string computed incorrectly.

Effects any foreign language character string, will end up reporting a overall content-length that is shorter than what is actually being sent.

Bump

yup. Ran into that. Had to monkeypatch it.
def length
@part.bytesize
end


Highlight definition and control block structures

Motivation
Closes #2494
Implementation
If the cursor is on a definition or control node, both the start and end of the node will be highlighted.
Automated Tests
Amended existing test case.
Manual Tests
Place the cursor on one of the definition or control nodes.
Screencast from 25-10-24 08:44:06 AM IST.webm

Are there any editor.semanticTokenColorCustomizations rules we need to add to make this visible? I'm not seeing it using the github light color theme in vscode.

Thanks, my editor.occurrencesHighlight was sot to off, which is why it wasn't showing.
Is there anyway to make the def/end highlighting continue to highlight when I'm inside the method? Like what Zed does, here is an example:
https://share.zight.com/yAugGqED

Here's a visual example of my comment above:

My cursor is on the end statement, but it is confused by the class: argument and so isn't highlighting the corresponding do statement.


Auto import doesn't work for local modules

Create test.py
Create foo.py
Turn on auto import completions
Inside of test.py type foo

Expected result:
Completions listing the foo module
Actual result:
Only see completions for 3rd party modules with 'foo' in the name

This appears to be fixed. I think it happened recently, but don't know what the other issue number was.


"Get and Set Identifiers" test?

Hi there!
I'm looking at seeing if we can leverage this project to add Dart as a supported language in Semgrep. I noticed that in the declarations.txt file in the test folder, there is a test for Get and Set Identifiers.
It is trying to set _count and _root on an instantiated Set object, but since these variables don't exist in the Dart Set Object, this isn't a valid method unless you were trying to test an error?
The testcase currently doesn't have the expected below it like the others, in its current state it'd be as follows. The ERROR is where its trying to set _count and _root
(program
        (class_definition (identifier)
            (class_body
              (method_signature (function_signature
                (type_identifier)
                (identifier)
                (formal_parameter_list)))
              (function_body
                (block (ERROR (function_signature (type_identifier) (identifier)
                   (ERROR (identifier)) (formal_parameter_list))
                   (identifier) (identifier) (identifier) (identifier))
                   (return_statement (identifier))
                  )))))

I guess what I'm trying to understand is, is this what you were expecting to test with this testcase?

That test is based on files we found while scanning through various dart codebases, mostly flutter, wherein we found issues with variables and identifiers that were named "get" or "set". I've just recently redone these scans and didn't run across any of those issues, so it's possible it was just a bug in the core dart compiler that allowed those variables to be named that. At any rate, the test was left in just in case anyone found a way to fix it. The _count and _root variables don't matter and shouldn't affect the outcome in any way. The item causing the error here is the name of the variable "set", which is also a keyword, but is (annoyingly) also allowed as a variable name based on our previous scans of the flutter codebase.
Let me know if you fix it, or if you need any more help integrating our codebase into semgrep! Hope we can help!

Ahhh, okay that makes a lot of sense! From what I can tell, Dart still allows variable names as "set" and it'll still compile (I created a dummy class but named the variable set), but yes the Parser does still show the error. In the spec  set and get aren't reserved words, I wonder if that'll change in the future.
Interesting issue for sure!


Daily reward should be configurable

Describe the Bug
Every day, we can claim a daily reward that is for me 16 diamonds and i find nothing in the config to change the amount and the item of that reward. Also my currency is set to createdeco coins so this is nonsense to have diamonds as a reward.
Reproduction Steps

Open the missions interface
Claim reward
You obtain diamonds
...

Expected Result
Configurable daily rewards in the config
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.2.11
Create Mod Version
0.5.1f
Minecraft Version
1.19.2
ModLoader and Version
Forge
Other Mods
No response
Additional Context
No response

I've probably messed up the config somewhere
The only things i've seen is that my player have a field "diamonds: 16" in the file mods/missions/missions_data.nbt in "rewards"
What can I do to fix my problem ? delete this file ?

Could I see your config? We'd love to find a way to do daily missions on our server

There's nothing in my config about this
Here's the config missions.json
https://ctxt.io/2/AAAoXL46Fg

I don't know how it works but it's probably that after claiming a reward, if it's not in the currency.json, it's not deleted and since my server restart daily, at each restart, i can claim that reward

Only reason I can think of is that you are force-stopping the server, and not letting things save.
Maybe we can add a saving whenever the autosave of the world happens

Yes, I don't know why but my server wouldn't stop normally and I had to force stop it but now with mods updates, this problem is gone.
I've removed the buggy line in the config and now everything is fine.
I still think that it's a nice feature to have daily reward but it's not the intended way of having it


Implementation of betting on runs

Prediction over/under a specified goal time (from customdata) for solo runs
Prediction of winner for 2-teams runs
Poll of winner for 3 to 5-teams runs
custom data to disable betting on specific runs (showcase or drama?)

requires to add the predictions and polls scope in nodecg-speedcontrol.json
		"additionalScopes": [
			"channel:manage:predictions",
			"channel:manage:polls"
		]


Reloading of Browser looses all of the output in  jupyter notebook

Using the fastai library, I am using a computing EC2 machine with a jupyter notebook to train models using fastai lib.
However, when I reload the notebook, the cells that where running while I closed the browser tab do not display any output.
Is there any way to fix this? Maybe setting some top level config in the notebook to revert to the console output?
Im using Ubuntu 18.04 LTS chrome.

I'm not sure there is anything to be done about that, the console output would give the same problem. If you want to run your notebook without having to worry about closing your browser, the only solution I know of is using a VNC server.

Closing this issue since no one seems to have any idea on how to fix it.


Fixed windows buttons for Firefox 117

Sorry for the delay.

Tysm.

Updated files to continue support for MacOS and Windows


Error msg: Failed to run "git"; see buffer straight-process

Greetings, I am performing a clean installation of my emacs configuration, it reaches a point where I throw the following error:
https://bin.disroot.org/?758b159f623ba015#NYcnakti5qRZ5bOmw8mKK69LemOYzOASElE9VnDwr8o=
And nothing installed after that.
Thank you

Do you think you could run Emacs with English localization settings and post the log from that? I don't know any other languages, unfortunately.

It looks like it stops being able to find git after installing exec-path-from-shell

@raxod502, @SkySkimmer the problem was with exec-path-from-shell
Thank you


Update vcpkg for building on windows

Previous version of vcpkg attempted to fetch mingw-w64-i686-libwinpthread-git-<IP_ADDRESS>73.5be8fcd83-1-any.pkg.tar.zst as part of the build process, but this version of library is no longer supported nor present on any of the mirrors. See https://github.com/microsoft/vcpkg/issues/35293. Solution is to update vcpkg to https://github.com/microsoft/vcpkg/commit/9224b3bbd8df24999d85720b1d005dd6f969ade0

Thanks for your PR!


Add adopters for Karmada

Signed-off-by: Poor12<EMAIL_ADDRESS>What type of PR is this?
/kind documentation
What this PR does / why we need it:
Add adopters page for Karmada
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

This branch has conflicts that must be resolved

This branch has conflicts that must be resolved

Done.


feat(utilities): add objectKeys function

Resolves #457

Should I change the return type to a string or to a template literal containing number in the case of an array?

template literal containing number


Drop support for EOL Python 2.7 and 3.4-3.5

Fixes https://github.com/prometheus/client_python/issues/717.
Follow on from https://github.com/prometheus/client_python/pull/706#issuecomment-954858387.
Python 2.7 and 3.4 - 3.5 are EOL:

cycle
latest
release
eol

3.6
3.6.15
2016-12-23
2021-12-23

3.5
3.5.10
2015-09-30
2020-09-13

3.4
3.4.10
2014-03-16
2019-03-18

2.7
2.7.18
2010-07-03
2020-01-01

https://endoflife.date/python
Here's the pip installs for prometheus_client from PyPI for October 2021 showing under 2% usage:

category
percent
downloads

3.7
72.89%
22,490,512

3.8
14.20%
4,380,172

3.6
6.85%
2,113,567

3.9
2.93%
904,146

null
1.30%
402,541

2.7
1.30%
401,660

3.5
0.27%
82,532

3.10
0.26%
79,007

3.4
0.00%
736

3.11
0.00%
184

3.3
0.00%
2

Total

30,855,059

Source: pip install -U pypistats && pypistats python_minor prometheus_client --last-month
In fact, 2.7 + 3.4 + 3.5 usage combined is under 2% = 1.57%.
Also upgraded Python syntax with https://github.com/asottile/pyupgrade --py36-plus, and removed universal wheels, only needed for suporting both Python 2 and 3.

Thanks! This will close https://github.com/prometheus/client_python/issues/717 (just making a reference for the future).
I posted that to the -dev mailing list yesterday, and am waiting to hear if there are significant concerns from the community before moving forward with review/merge on this. If I don't hear anything within a week at the most we can certainly move forward.

I haven't heard any concerns on the other issue, so I plan to review this sometime this week!


fix(prow/jobs/pingcap/tidb): fix trigger branches for hotfix branches

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:

/merge


Children of SWF MovieClips are instantiated with incorrect types

I have a class that extends MovieClip that has multiple nested children that are also various subclasses of MovieClip. I'm trying to use this as the type of an SWF asset. When loading the asset from the SWF it gets instantiated with the wrong type.
class Child extends openfl.display.MovieClip
{
    // ...
}

@:access(swf.exporters.animate)
class Parent extends openfl.display.MovieClip
{
	public var child(default, null): Child;

	public function new()
	{
		super();

		var library = swf.exporters.animate.AnimateLibrary.get("...");
		var symbol = library.symbols.get(12);
		symbol.__initObject(library, this);

                trace("child: " + child);
	}
}

What I expect
child: [object Child]

What happens instead
child: [object MovieClip]

And I can't cast child to a Child, it seems to get instantiated as a plain MovieClip
For context: I need to do this because I'm porting code from actionscript. In that code all the MovieClips children were accessed dynamically but it looks like you can't do that in openfl. And child was a plain MovieClip without a symbol ID or subclass. So Child didn't exist in the original actionscript code

In case it helps I did manage to hack my way around this, by modifying the swf lib to instantiate the SWF symbols with the correct types using RTTI


[dask] Support Dask dataframes with 'category' columns (fixes #3861)

This PR fixes https://github.com/microsoft/LightGBM/issues/3861.
Root Cause
Thanks to @jmoralez for figuring out that the root issue was pandas "category" columns for data frames! lightgbm.dask._predict_part() did some conversions thatt did not handle these columns correctly.
Changes in this PR

Removes code in _predict_part() that converts a chunk of data to array before passing it through to .predict() on the underlying scikit-learn model.

LightGBM's scikit-learn estimators already support scoring directly on pandas data frames, so this was useless. And it was the root of the problem! Because when you use .values on a pandas "category" column, the results are strings. Passing a numpy array with string data into .predict() methods in LightGBM leads to errors.

Adds data frames with a "category" column to many of the Dask unit tests

Reproducible example
I've added a reproducible example in https://github.com/microsoft/LightGBM/issues/3861#issuecomment-773011094. If you run the code on current master, it will fail with the error described in #3861. If you run that code on this branch, it will succeed 😀 .
References
I found a few issues and PRs related to "category" columns in pandas being supported in the scikit-learn interface. Putting them here for anyone who finds this PR from search in the future.

https://github.com/microsoft/LightGBM/pull/1979
https://github.com/microsoft/LightGBM/pull/1766
https://github.com/microsoft/LightGBM/pull/1764
https://github.com/microsoft/LightGBM/blob/8ef874bd4804b54b48ef4d796c8110be671a6950/python-package/lightgbm/basic.py#L497-L500

Sorry, I don't understand your comment. How does the random state impact how pandas handles category columns?
Is it that in that test, you were using such a small data size that sometimes the column was mostly a single categorical level, and so it got dropped by pre-filtering? (https://lightgbm.readthedocs.io/en/latest/Parameters-Tuning.html#enable-feature-pre-filtering-when-creating-dataset)

Sorry, I don't understand your comment. How does the random state impact how pandas handles category columns?

I mean, with some seeds LightGBM models have identical output for cases when one particular column is treated as categorical and when it is not. I think it will be good to ensure that categorical column in Dask test has some impact on LightGBM model.

Sorry, I don't understand your comment. How does the random state impact how pandas handles category columns?

I mean, with some seeds LightGBM models have identical output for cases when one particular column is treated as categorical and when it is not. I think it will be good to ensure that categorical column in Dask test has some impact on LightGBM model.

Ok. I could check the output of .trees_to_dataframe() or the feature importances to check that the column was chosen for splits, is that sufficient?

I think it will be enough to check that categorical_feature='auto' and categorical_feature=[] result in different outputs of predict(raw_score=True).

I think it will be enough to check that categorical_feature='auto' and categorical_feature=[] result in different outputs of predict(raw_score=True).

OHHHH now I understand what you mean. You're saying it's random whether or not LightGBM decides to even treat it as categorical vs. continuous data? That's suprising to me :grimacing:

You're saying it's random whether or not LightGBM decides to even treat it as categorical vs. continuous data?

I don't think so. I believe some "unlucky" distributions in cat column were treated as constant column, hence LightGBM drops it. Or maybe some another thing caused such behaviour. I haven't investigated these cases. I just remember my asserts in tests for different outputs w/wo cat column were failing without fixing random seed.

I don't think so. I believe some "unlucky" distributions in cat column were treated as constant column, hence LightGBM drops it.

This is exactly what I meant in https://github.com/microsoft/LightGBM/pull/3908#issuecomment-773399805. And if that's the case, then checking that the column was used for splits (https://github.com/microsoft/LightGBM/pull/3908#issuecomment-773428481) would be enough.

Yeah, if you think it will be easier, sure, please try with trees_to_dataframe().

Thanks! I think they're both equally easy, but the trees_to_dataframe() one is a more direct way to test for the thing we're worried about.
The results of predict(raw_score=True) could be different for reasons other than "this categorical column was not used by LightGBM".
I'll add the test with trees_to_dataframe() shortly. I'll also update the test models to use min_data_in_leaf=1, which should reduce the risk of getting into the situation where a feature is filtered out because it's unsplittable.

Ok I think I got this working! I ended up not needing the min_data_in_leaf trick and went with something more direct.
I was really really struggling with getting LightGBM to use a single categorical feature every test run because of the small data size, so I changed the approach to "just add multiple categorical columns and make sure that at least one of them was used". This seemed to work! I re-ran the tests several times and I think this approach is reliable.
For classification and ranking --> add 5 category columns, each of which is a random draw from ["a", "b"] (based on the np.RandomState object we already set up in _create_data())
For regression --> make sure that the training data from _create_data() is ONLY category columns
For regression tasks with just 100 observations, the random continuous features always overwhelm the categorical columns and get chosen for splits. I saw that even when setting n_features=1 in make_regression().


Merged update to documentation hasn't been published

PR #922 added a new page named Testing to the documentation. The PR was merged several days ago but the new page hasn't yet appeared under the Contributing section at https://vscode-sqltools.mteixeira.dev/
I had understood that the public doc site got updated from the repo once a day.

@mtxr please investigate.

Fixed


accept more range types for std.path.*trimSeparators()

Accept input and bidirectional ranges, too. Foundational to range-ify more of std.path.
Added unit tests for relaxed types.

other than the spacing, LGTM

BitRange exists twice. IMO there should only be one. On second thought, isn't DummyRange suitable to replace BitRange

@WalterBright please consolidate BiRange or reuse DummyRange. After that lgtm.

consolidated

Auto-merge toggled on


New version: Huawei.HuaweiMobileCloud version <IP_ADDRESS>2

Created by 🥟 Dumplings in workflow run #6510.

Log
Updated: <IP_ADDRESS>1 → <IP_ADDRESS>2
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

https://github.com/microsoft/winget-pkgs/issues/142854


Links cannot be clicked in 1.14

A while ago I compiled the 1.14 version of this and had to stop using it due to the fact where it's not possible to click any links in chat
Kinda annoying for URLs but really annoying for /tpa and /pay that require links in chat

Does it work in 1.15? There were lots of bugs before I updated.

It seems I can't get it to load in 1.15, it might just be my setup but it just doesn't load.
Also, apologies for waiting 3 days to respond, I might have forgotten...


Saving files to Cloud

Hi ruinernin
I love Foxystreams and would like to thank you for it :) I just have one little question. I am using Foxystreams with my Premiumize account and all is working fine. Only thing is that when I search for a cached video I want to be able to save it on my cloud. With Foxystreams I am able to play it with no problem but there is no way to save on PM Cloud. Is it possible for you to add an option (like in FEN or SEREN) to be able to save cached files to cloud. Even if there is a workaround to b able to copy magnet link, it would be great, so we can manually download a file we want to keep :)

Sure, this is easily enough done I think.
Would you see this as a global switch where all played items are added or as a prompt per play?

Hey  thanks a lot for your response :)
I personally believe that a prompt per play would be best! Or just an option in context menu to save file to cloud. With the possibility to save files to cloud foxystreams will be a killer addon for me :)

Thanks for clarifying. I think the contextmenu item makes the most sense here overall but also adding a settings switch for prompt per play won't be difficult either (and would work playing from a meta-like addon). I'll look at doing the latter first.
Thanks for the suggestion.

Hey ruinernin just a quick thanks for your add-on mate. Foxy streams is my favourite by far. Good to see you back.

Thanks a lot for the time and effort you put in this. There are so many addons out there but foxystreams remains my main and favorite addon.

ruinernin  please don't forget us :)
waiting for this for so long. I really don't want to be pushing it or insisting etc..
Just want to make sure you didn't forget me! :)

@rezpower Not forgotten! This is a solo project when I get time, expect an update on this later in the week.


Update CHANGELOG

Update the CHANGELOG with v0.3.0 release notes.
Depends on PR #244.

Change: Added version history from the 0.2 branch.

Change: Rebase

Change: Removed from v0.3.0 items that were previously mentioned in v0.2.x.


App Store - Content Versioning

All Stroom content could be stored in Git and versioned accordingly. Multiple Git repositories could be connected to provide some read only content provided as standard or by other parties instead of doing content import.

Relates to gchq/stroom-content#11


[FEATURE] additional recording options/presentation

[X] Separate view of recorded captures per camera and per day
[X] Add an option to define how long a recorded will last in storage and when will be deleted
[x] Add an option on GUI to delete each single video capture and eventually the ability to delete a whole day of captures

I think point number 2 is already available, check out the ffmpeg component doco for the camera configuration:)
Seems to work for me.
Point 3 I absolutely agree with.

Point 1 is now in v2.1.0
Point 2 can be achieved already with retention as @jamitupya pointed out
Will work on point 3 soon!

wait for other feature thanks for the tips!! :) first page login is really needed!!

Indeed, will probably focus on that for 2.2.
It's quite complex to manage users and authentication so I need to do some proper research before I start development

Closed in #459
It is currently in the dev tag if you want to try it out.

a view similar to this would be more clear IMHO.
also the ability to see one video at time and once it as played the video it passes to play directly to the next one


handheld-daemon: 3.6.1 -> 3.7.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for handheld-daemon is: Linux support for handheld gaming devices like the Legion Go, ROG Ally, and GPD Win
meta.homepage for handheld-daemon is: https://github.com/hhd-dev/hhd/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.7.0 with grep in /nix/store/f68krhqn0pvkz0wccjyhpiyfz0l8l1k3-handheld-daemon-3.7.0
found 3.7.0 in filename of file in /nix/store/f68krhqn0pvkz0wccjyhpiyfz0l8l1k3-handheld-daemon-3.7.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

handheld-daemon

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/f68krhqn0pvkz0wccjyhpiyfz0l8l1k3-handheld-daemon-3.7.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A handheld-daemon https://github.com/r-ryantm/nixpkgs/archive/f6ac9f0d53ee42bbf973d45e5dbdbd6f8fac2df4.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/f6ac9f0d53ee42bbf973d45e5dbdbd6f8fac2df4#handheld-daemon

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f68krhqn0pvkz0wccjyhpiyfz0l8l1k3-handheld-daemon-3.7.0
ls -la /nix/store/f68krhqn0pvkz0wccjyhpiyfz0l8l1k3-handheld-daemon-3.7.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 2 packages built:

handheld-daemon
handheld-daemon.dist

Maintainer pings
cc @appsforartists @toast003 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Closed in favor of https://github.com/NixOS/nixpkgs/pull/361364