Doesn't work

Installed 0.6.0 on VS Code 1.35 and it does nothing, invalid HTML files are not highlighted.

Can you share a file with us that is not highlighted?
Have you tried version 1.40?
Have you tried with other extensions turned off?

Here's one:

Nothing is highlighted in VS Code. Tried with no htmlhint cli installed, with 0.11.0 installed globally, on VS Code 1.40.1 , all other extensions disabled.

I tried that right now with 1.40.2 - everything works fine, look at my screenshot:

Have you saved the file? Please note that the plugin cannot work (from what I see) if the file does not exist physically on your disk
_

I tried it on a Windows machine and indeed it works. However I am using Ubuntu 18 and that's where it doesn't work. How can I debug this? There should be a way that I can see the extensions error messages.

I am sorry to hear it. I'm not the author of the plugin, so I don't know how to help you more. What's worse, from what I see, the author has not been fixing problems for some time :(

I was able to track down the problem: if I have this configuration set:
"htmlhint.options": {
    "attr-lowercase": false
},

then the extension doesn't work. But if I remove it (and restart) then it does work!
And I was testing with lower case tags, e.g.  so it should show the error regardless of case.

I was able to track down the problem: if I have this configuration set:
"htmlhint.options": {
    "attr-lowercase": false
},

then the extension doesn't work. But if I remove it (and restart) then it does work!
And I was testing with lower case tags, e.g.

 so it should show the error regardless of case.

Yes I just installed the extension and noticed the htmlhint.options override all options and not only the ones inside this object.

I was able to track down the problem: if I have this configuration set:
"htmlhint.options": {
    "attr-lowercase": false
},

then the extension doesn't work. But if I remove it (and restart) then it does work!
And I was testing with lower case tags, e.g.

 so it should show the error regardless of case.

Yes I just installed the extension and noticed the htmlhint.options override all options and not only the ones inside this object.

I've just noticed that too.


Do we have some product to show support on this project?

I just realize that this repo are now becoming so popular.
And i would love to show my support for this project.
Not sure if we have some souvenir and store for buying some stuff ?
I think i can contribute big lot of stickers if we have store.But i do need a logo to do so.
What do you guy think ? :)

People already have the option to back this project but I dont disagree with having stickers.

@chaintan17 before you get too busy creating stickers, check with @mxstbr. He has had some printed up, but I don't know of any for sale (cool idea though) 😄

I have ~400 stickers, if you DM me your address on twitter or via email to contact at my handle dot com I'll happily send you some asap!
Backing this project is also a great help, as is answering questions, submitting PRs and discussing. All of those are very much appreciated!


Add -p option to remove prefix from initbufer

When you use the buffer as the initial contents of a search filter,
there might be a command you typed already. However, you sometimes don't
want to start search with the command string and just copy arguments part following the
command to the search filter. For example, given cd xyz in your buffer and when you want to start search with zaw-cdr, you want to remove cd  from the search filter and just use xyz as the initial value. This new option -p enables you to define a prefix to be removed from the initial buffer contents for use cases like this.

To remove cd is good idea, but it can be done with -s option as follows:
options=("-m" "-s" "${BUFFER#cd }")

SInce -s and -p are set at the same time, we can always remove this prefix by this method.
Is there another reason to introduce the option -p?

Yes, that's correct. Removed the commit to add the -p option and updated the other one.

Thanks.


feat: add development certificate generation code

Why
This adds code that will be used by www to generate and serve development certificates. These will be children of the Expo Go certificate (which is a child of the Expo Root certificate), and will have expiries of 30 days. They will also only be able to sign manifests for a single app (by using the expoProjectInformation extension)
How
Add functions, add tests.
Test Plan
Run tests. yarn link this into the universe PR and ensure everything works.

Codecov Report

Merging #2 (7c91178) into main (d4161c8) will increase coverage by 5.57%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
+ Coverage   77.94%   83.51%   +5.57%
==========================================
  Files           2        2
  Lines          68       91      +23
  Branches       11       11
==========================================
+ Hits           53       76      +23
  Misses          4        4
  Partials       11       11

Flag
Coverage Δ

unittest
83.51% <100.00%> (+5.57%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/main.ts
83.33% <100.00%> (+6.28%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4161c8...7c91178. Read the comment docs.


Update java project setup

Make it so that the maven build works out-of-the-box again

configure maven compiler
fix URL
not strictly necessary:

update GSON library
add .gitignore

@swkBerlin if there's anything I should change, do tell!


Printer Path Sensor is no correctly registered

Describe the bug
The arm sensor of the printer is not read by
Status status = printer.GetStatus();
Screenshots
Data with paper on the sensor:

Data without paper on the sensor:

Environment

Library version: 1.2.1
Installation method NuGet
OS: Windows x86
Version 7
Framework [ .NET 4.7.1]

Additional context
           try
            {
                using (var printer = new ReliancePrinter())
                {
                    var ping = printer.Ping();
                    if (ping == ReturnCodes.Okay)
                    {
                        GlobalVariables.thermalPrinterStatus = "1";
                    }
                    else
                    {
                        GlobalVariables.thermalPrinterStatus = "0";
                    }
                    var revlev = printer.GetFirmwareRevision();
                    Status status = printer.GetStatus();
                    Console.WriteLine("PaperRaw: " + status.PaperRaw);
                    Console.WriteLine("PathRaw: " + status.PathRaw);

                    Console.WriteLine("Printer status:\n{0}", status);
            }
            catch (Exception E)
            {
                Console.WriteLine("CheckTermalPrinterStatus Exception: " + E.Message);
            }

Can you confirm which sensor you are testing? The title says path sensor but the body mentions the arm sensor.
You can use our real time monitor to confirm which sensors you are covering using WinRelMon. Let me know which sensor(s) are not reporting correctly and we can get to the bottom of this.

i ran the app and nothing changed once i put the paper on the arm and remove it.
the firmware version  of the printer is 1.14.134

Okay thanks for confirming that we're talking about the paper arm sensor. Let's start by getting that firmware updated. Please send an email to<EMAIL_ADDRESS>and we can send you the latest version and troubleshoot the hardware from there. It sounds like something is wrong with the sensor or sensor harness.

Thanks. I will try to get the firmware. I think thats the problem, since we are using +20 printers and we cant have a good reading of that sensor.

I confirmed with support that you reached out them for the firmware. Since this does not look like an issue with the API I'm going to close this issue.


Fix PerformanceResource finding with relative URLs

Which problem is this PR solving?

Finding matching PerformanceResourceTiming events in the browser's performance API relies in part on matching up URLs.  When relative URLs can be used (e.g., xhr.open('context.html')) the resource is not currently found, causing some fields to be missing.

Short description of the changes

Added a unit test (in a separate file as it was hard to tweak the existing one to this end) showing the problem, and then de-relativizing the requested url in the appropriate utility method.

@obecny Thanks for coming back and tweaking the build back into shape 😄


feat: Allow users to use specified user agent

By the way,  should we use newer user agent as default options?
e.g. Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

You need to set options here:
https://github.com/iawia002/annie/blob/26b1d953ec5e96381d98f0173ab6d9629ea6dbea/main.go#L231-L237
		UserAgent:  c.String("user-agent"),

By the way, should we use newer user agent as default options?

I think it's OK with the current user agent


Interface for dto

Build Passing, Backend complete. Now to move forward with MVC work then styling.


Display pubkey fingerprint on downloads page

I think it would be good to display, on the downloads page, the fingerprint of the pubkey used to sign SHA256SUMS.asc.
This is what a completely new user has to do today:

Download Bitcoin Core and SHA256SUMS.asc
Download the key manually from the download page
Import the key into gpg
Get the fingerprint from gpg
verify the fingerprint with other sources like friends.
sign the key as trusted

Wouldn't it be easier for users if they could

Download Bitcoin Core and SHA256SUMS.asc
Copy the fingerprint from that same download page
verify the fingerprint with other sources like friends.
gpg --recv-keys <fingerprint>
sign the key as trusted

What do y'all think about putting the verification instructions directly on the download page.  (Some quick sample text shown below.)

Also, if we proceed, can anyone verify for me whether or not gpg is installed by default on MacOS?

@harding very good idea!

Sounds good.
But I've heard people saying that putting up verification instructions is decreasing security, because people may follow them blindly without knowing what they're doing. This would give a false sense of security. Maybe add something about not following instructions blindly :-) Another reason to be careful with instructions is that they can be hacked.
Are these concerns valid?

I think it would definitely be a good idea to link to a nice off-site GPG guide that goes into the details of verification for anyone who wants to understand what they're doing; I'll do that when I create a PR for this.  That said, I think there's still benefit to a simple list of verification instructions: any attacker who changes them runs the risk of showing them to a PGP-aware user who might notice the deviation from acceptable practices or known key fingerprints and raise an alarm.
The risk of hacking for instructions on the bottom of the page seems no greater to me than the risk of hacking other parts of the page, especially the links to the binaries.  When I create the PR, I'll separate the URLs and the fingerprint from the readable text so that translation files can't alter them without doing something that looks weird, but security of the website content will still depend on the fundamental server security, peer review of PRs, and verify-commits.sh.


[PUBLISHED] 80 - Phpseclib workaround

closing in favor of https://github.com/google/google-api-php-client/pull/848


Update kernel

Update kernel version to:

v5.10.118-cip8
v4.19.245-cip74

@aliceinwire thank you.


[FEAT]: Create Issue forms and make the issue options more visually appealing

Currently, the issue templates are not very user friendly, so I want to improve it which will look like this 👇

Also I will add Issue Forms to the respective issues to make it easier for the contributor to raise it.
Here is an example of how a Bug Issue Form will look like 👇

I want to work on this issue. So, kindly assign this issue to me ( GSSOC'24 ).

The existing issue template is fine as of now. Thanks for your interest. Closing this issue.


Update anti-spam-message-headers.md

Added 6xx to the list of reason

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/1479

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@MSFTTracyP - PR has been copy edited and is ready for final review. This is based on issue #1479.
Thank you.
cc: @kenwith


NetworkManager should use correct field offset on SunOS and friends

:recycle: Current situation
See #21, but basically the field offset in the arp command output on SunOS-like systems does not match 100% with OpenBSD systems, resulting in NetworkManager.getOpenBSD_SUNOS_NetworkInterfaces() not returning any interfaces on SunOS-like systems. Making CIAO kind of useless.
:bulb: Proposed solution
Overall the code in NetworkManager.getOpenBSD_SUNOS_NetworkInterfaces()  looks good, it just needs a different field offset between OpenBSD and SunOS.
When os.platform() returns sunos (which it does on Oracle Solaris and illumos distros (OpenSolaris continuation)), we simple use a different offset. The default is left as 2 which was the old value.
:gear: Release Notes
CIAO now works properly on SunOS-like systems and will be able to listen on an interface that is not lo0.
:heavy_plus_sign: Additional Information
n/a
Testing
Made sure I could run npm run test and that the tests still pass
[hyperon :: sjorge][/tmp/ciao][sunos ✔]
[■]$ npm run test

><EMAIL_ADDRESS>test
> jest

 PASS  src/util/sorted-array.spec.ts (5.396 s)
 PASS  src/util/dns-equal.spec.ts (5.327 s)
 PASS  src/coder/DNSLabelCoder.spec.ts (5.845 s)
 PASS  src/util/domain-formatter.spec.ts (5.926 s)
 PASS  src/NetworkManager.spec.ts (6.112 s)
 PASS  src/util/tiebreaking.spec.ts (6.27 s)
 PASS  src/coder/Question.spec.ts (6.225 s)
 PASS  src/MDNSServer.spec.ts (6.32 s)
 PASS  src/coder/DNSPacket.spec.ts (6.473 s)
 PASS  src/coder/ResourceRecord.spec.ts (6.468 s)
 PASS  src/responder/TruncatedQuery.spec.ts (7.016 s)

I also switched my nrchkb node-red setup over to the CIAO backend instead of older bonjour backend. (Wanting to switch is what made me discover CIAO was broken)
I've been running said setup for about a month now with CIAO and the change in this PR.
Reviewer Nudging
Not sure, it's a simple offset change, the original issue I filed lists the output of the execute arp command for an illumos based distro and from Oracle Solaris.

@sjorge - I have wondered for a while - why does Ciao use arp in the first place, and only os.networkInterfaces() as a fallback?
I must be missing something (in which case, please share!) because this doesn't make a lot of sense to me. Even if os.networkInterfaces(), due to some Node quirk, doesn't show all valid interfaces, these 'extra' interfaces would not then be usable from Node afterwards anyway. So why don't we just use os.networkInterfaces() as the primary? No need for arp, no need for parsing, no issue with SunOS.

I have no idea, just went for the most simple fix that I could get to work.

@sjorge - I think there is a much simpler fix though. Line 365 of NetworkManager.ts (original version) is currently:
names = await NetworkManager.getNetworkInterfaceNames();

Replace that line with:
throw('whatever');

Let me know if that works on SunOS.

That also seems to work.


delete api not wrok

when press the delete button,
the xhr request send but no response

fix the bug with delete api


Cannot access properties on type made from $Diff

The following gives an error.
/* @flow */

type X = {
  a: number;
  b: number;
};

type Y = $Diff<X, {b: number}>;

function foo(y: Y) {
  return y.a;
}

error.js:33
 33:       const title: string = props.title;
                                       ^^^^^ property `title`. Property cannot be accessed on
 33:       const title: string = props.title;
                                 ^^^^^ type parameter `P` of function call

Found 1 error

I've been trying to improve the definitions for redux and react-dnd in the flow-typed project and ran into this issue. Both of these libraries expose functions which take a React component class and ("collect") functions that take in the props passed to the wrapper component and return an object which is merged with the props and passed to the wrapped component. I need to use $Diff to take the props type of the wrapped component and subtract the return type of the collect functions. However I run into the above issue whenever the collect functions try to access the props object.
Here's a simplified example showing this problem in the context of some of React-DnD's types if anyone is curious how $Diff is needed in practice: https://gist.github.com/AgentME/5b698bd531790c90825549086bd7f69a

I think $Diff is only supposed to be used as argument in declarations

FYI https://flowtype.org/docs/utility-types.html#diffa-b makes it look like you can do exactly what @AgentME is trying. But if you add a body to setProps() in the example it breaks:
// @flow
type Props = { name: string, age: number };
type DefaultProps = { age: number };
type RequiredProps = $Diff<Props, DefaultProps>;

function setProps(props: RequiredProps) {
  (props.name: string) // err: property `name` Property cannot be accessed on Props
}

Just to add another example:
type A = { x: string, y: string }
type B = { x: string }
type C = { y: string }
type DiffOne = $Diff<A, B>
type DiffTwo = $Diff<A, B>

// works
let a: DiffOne = { y: '' }

// doesn't think a is an object
let b = Object.assign({}, a)

// doesn't let you reuse a diff type
let c: DiffOne = a

// doesn't recognize C and DiffOne are the same
let d: C = a

// doesn't recognize DiffOne and DiffTwo are the same
let fn = (arg: DiffTwo) => arg
fn(a)

https://flowtype.org/try/#0C4TwDgpgBAglC8UDeUAeAuKBnYAnAlgHYDmANFCJjgSVAL4BQokUAQgsmlXkcfU+GgBhDikrYetRs2gARfADMFAeULREAEnlKAPDHKsAfAJbaFAFQDuAew5bFCvQeMMANhGBQAhpjOr1nOIA5EH8DAD04VAAJtYQWIRBnsAAFkQA1t5Q+FjehFDWAEYAVhAAxsBuHlCFHMol5cAAdF5YWPjEhAAUSHTkXgCUDBFRsfGJnu6eINYArlC4ELNY0F4xDlAyVZ5lvg7+HF7DkTFxCUkL5dad+ABewnnRUH5q3oubKdBYXgC2ENsxTAiRBHEancYXRZla6EO5yfavLyEJ5mKy2LzvVJfX7-KZQBT5RBdDHEPZKNEDBCGN7EBgE4lDIA

Having the same issue trying to use $Diff.

No longer repros


Update testcontainers-scala-oracle-xe_2.13 to 0.39.11

Updates com.dimafeng:testcontainers-scala-oracle-xe_2.13 from 0.39.5 to 0.39.11.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.dimafeng", artifactId = "testcontainers-scala-oracle-xe_2.13" } ]

labels: test-library-update, early-semver-minor, semver-spec-patch

Superseded by #530.


Doesn't work on MacOS (Sonoma 14.2 (23C64))

When I type:
throttle --rtt 2000 --localhost
I get the following:
Error: Command failed: sudo dnctl pipe 1 config delay 1000ms noerror
dnctl: setsockopt(IP_DUMMYNET_CONFIGURE): No space left on device

    at ChildProcess.exithandler (node:child_process:400:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1093:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'sudo dnctl pipe 1 config delay 1000ms noerror',
  stdout: '',
  stderr: 'dnctl: setsockopt(IP_DUMMYNET_CONFIGURE): No space left on device\n'
}

I have plenty of space left (30+gb free leftover RAM, even more storage).
What can I do to fix this?

Hi @maxgmer
I asked ChatGPT:
The error message dnctl: setsockopt(IP_DUMMYNET_CONFIGURE): No space left on device you're encountering while using the throttle command is not actually related to the physical storage or RAM space on your device. Instead, this error typically indicates an issue with the maximum number of pipes or queues that dnctl (part of the dummynet traffic shaping tool) can handle.
Here are some steps to troubleshoot and resolve the issue:

Check Current Pipes and Queues:
Use the command sudo dnctl list to check the current pipes and queues. It's possible that there are many unused or stale pipes taking up the limit.
Clear Existing Pipes and Queues:
If you find a lot of entries, you can clear them out. Usesudo dnctl flush to remove all existing pipes and queues. Be cautious with this, as it will affect all current traffic shaping rules.
Restart Your System:
Sometimes a simple restart can clear out any lingering issues with system resources.

Test out and see if those things helps!
Best
Peter

List command doesn't show any pipes (like there is 0 of them).
Tried flush, same thing before and after flush.
Tried restarting before writing this issue :(

@soulgalore tried restarting once again, but with "Reopen windows when logging back in" disabled, it helped, thank you!


Custom HTTP headers in Alamofire 3.4.1 + Xcode 7.3 + Swift 2.2

Hi.
I have set the custom header to issue  #111 as a reference.
But it does not work.
https://github.com/Alamofire/Alamofire/issues/111#issuecomment-56440394
    // Creating an Instance of the Alamofire Manager
    var manager = Manager.sharedInstance

    // Specifying the Headers we need
    manager.session.configuration.HTTPAdditionalHeaders = [
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/vnd.lichess.v1+json",
        "User-Agent": "007"
    ]

How can I solve?
This does not work...
manager.session.configuration.HTTPAdditionalHeaders.updateValue("007", forKey: "User-Agent")

This does work!
let headers = [
    "User-Agent": "007"
]
Alamofire.request(.GET, "http://headers.jsontest.com/", encoding: .JSON, headers: headers)
            .validate()
            .responseJSON { response in
                print(response.result.value)
            }

Is this the right approach?

Hi @granoeste,
In approach 1, you need to create a custom Manager instance if you want to use custom HTTP headers. You can use approach 2 if you don't mind passing the headers in each Request.
In the future, I'd recommend you open this type of question on Stack Overflow. We use GitHub for bug reports and feature requests.
Cheers. 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


CI: Add build step for mco

https://github.com/red-hat-storage/odf-console/issues/673 We add the mco test along with odf this
to avoid a fresh instance of a runner image.

/approve
/lgtm


Error when analyze shared library

Hi, I met a problem when I try to use wp to analyze some shared libraries. The command looks like:
bap wp --func=XXXXX --show=refuted-goals --postcond=" (assert (= RAX #x0000000000000002)) " ./libcrypto.so.3
The output looks like:

\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \n")
\n")
Raised at file "stdlib.ml", line 29, characters 17-33
Called from file "lib/wp_utils.ml", line 70, characters 18-50
Called from file "lib/wp_analysis.ml", line 27, characters 6-92
Called from file "src/list.ml", line 387, characters 13-17
Called from file "src/list.ml" (inlined), line 418, characters 15-31
Called from file "lib/wp_analysis.ml", line 38, characters 19-45
Called from file "wp.ml", line 374, characters 2-32
Called from file "cmdliner_term.ml", line 25, characters 19-24
Called from file "cmdliner_term.ml", line 23, characters 12-19
Called from file "cmdliner.ml", line 117, characters 32-39
Called from file "cmdliner.ml", line 147, characters 18-36
Called from file "cmdliner.ml", line 265, characters 22-48
Called from file "lib/bap_main/bap_main.ml", line 1105, characters 10-99
Called from file "lib/bap_main/bap_main.ml", line 1279, characters 15-140
Called from file "src/bap_frontend.ml", line 320, characters 8-127

I use the docker image directly and wp can work pretty well for some small binaries. Since the problem is a little bit similar to BAP #1086
so I try to have bap 2.2.0 installed. After pinning the bap version to 2.2.0, I met the following error:

am/4.09/lib/z3 -I /home/opam/.opam/4.09/lib/zarith -I /home/opam/.opam/4.09/lib/zip -no-alias-deps -open Bap_wp -o src/.bap_wp.objs/byte/bap_wp__Environment.cmi -c -intf src/environment.pp.mli)
File "src/environment.mli", line 129, characters 29-42:
129 |   -> specs:(Bap.Std.Sub.t -> Theory.target -> fun_spec option) list
^^^^^^^^^^^^^
Error: Unbound type constructor Theory.target
Makefile:38: recipe for target '_build/install/default/lib/bap_wp/bap_wp.cmxa' failed
make[1]: Leaving directory '/home/opam/cbat_tools/wp/lib/bap_wp'
make[1]: *** [_build/install/default/lib/bap_wp/bap_wp.cmxa] Error 1
make: *** [install.lib] Error 2
Makefile:75: recipe for target 'install.lib' failed

Do you have any suggestions or comments? Thanks in advance.

Can you give the specific version of bap, say the output of bap --version?
Thanks

Can you give the specific version of bap, say the output of bap --version?
Thanks

The bap version in the docker is
2.4.0-alpha+ea79178
I also tried to change the Dockerfile
FROM binaryanalysisplatform/bap:latest
to
FROM binaryanalysisplatform/bap:2.1.0
Then I met the same error as when I pinned bap to 2.2.0

Error: Unbound type constructor Theory.target

Hi, pinning to older versions of BAP won't help, since WP is supposed to work on a recent version.
Not sure what is causing your error though. Is there any chance you can help us reproduce it?
Ideally we'd need the inputs you used, or barring that the full stacktrace.

Now that I mention this, it would be nice to know what the toplevel error is (i.e. the first line of the error).

Now that I mention this, it would be nice to know what the toplevel error is (i.e. the first line of the error).
Thanks for your help.
This is the command I use
bap wp --func=BN_clear_bit --show=refuted-goals --postcond=" (assert (= RAX #x0000000000000002)) " ./libcrypto.so.3
The binary libcrypto.so.3 is under /usr/local/lib/ . I have tried two versions of libcrypto and both faced the same error. You may try your libcrypto and I also upload my version to google drive just in case. Here is the link for my libcrypto: LIBCRYPTO
and here is the toplevel error

opam@7cd28966a5fc:~/cbat_tools/wp$ bap wp --func=BN_clear_bit --show=refuted-goals --postcond=" (assert (= RAX #x0000000000000002)) " ./libcrypto.so.3
Uncaught exception:
(Failure
"Error loading project: (("Stack overflow")
\n  "Raised by primitive operation at file \"z.ml\", line 148, characters 7-19\
\n \nCalled from file \"lib/bap_types/bap_bitvector.ml\" (inlined), line 65, characters 31-51\
\n \nCalled from file \"lib/bap_types/bap_bitvector.ml\" (inlined), line 67, characters 17-23\
\n \nCalled from file \"lib/bap_types/bap_bitvector.ml\" (inlined), line 154, characters 17-34\
\n \nCalled from file \"lib/bap_types/bap_bitvector.ml\", line 621, characters 42-54\
\n \nCalled from file \"lib/bap_types/bap_bil.ml\", line 66, characters 23-26\
\n \nCalled from file \"src/list.ml\", line 1085, characters 12-19\
\n \nCalled from file \"lib/bap_types/bap_stmt.ml\", line 198, characters 13-28\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 630, characters 28-37\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 604, characters 10-19\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1763, characters 12-33\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\" (inlined), line 1529, characters 4-16\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1540, characters 34-51\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1583, characters 53-56\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1264, characters 6-23\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1839, characters 29-226\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\" (inlined), line 1847, characters 13-36\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 2141, characters 25-50\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1763, characters 12-33\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\" (inlined), line 1529, characters 4-16\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1549, characters 38-55\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1583, characters 53-56\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1570, characters 60-63\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 1783, characters 25-112\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 2435, characters 30-65\
\n \nCalled from file \"src/map.ml\", line 747, characters 21-31\
\n \nCalled from file \"src/map.ml\", line 754, characters 26-45\
\n \nCalled from file \"src/map.ml\", line 754, characters 26-45\
\n \nCalled from file \"src/map.ml\", line 754, characters 26-45\
\n \nCalled from file \"src/map.ml\", line 754, characters 26-45\
\n \nCalled from file \"src/map.ml\", line 754, characters 26-45\
...
\n \nCalled from file \"src/map.ml\", line 1677, characters 11-85\
\n \nCalled from file \"lib/knowledge/bap_knowledge.ml\", line 2433, characters 29-274\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 60-63\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29
...
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \nCalled from file \"lib/monads/monads_monad.ml\" (inlined), line 1029, characters 29-34\
\n \nCalled from file \"lib/monads/monads_monad.ml\", line 1034, characters 38-42\
\n \n")
\n")
Raised at file "stdlib.ml", line 29, characters 17-33
Called from file "lib/wp_utils.ml", line 70, characters 18-50
Called from file "lib/wp_analysis.ml", line 27, characters 6-92
Called from file "src/list.ml", line 387, characters 13-17
Called from file "src/list.ml" (inlined), line 418, characters 15-31
Called from file "lib/wp_analysis.ml", line 38, characters 19-45
Called from file "wp.ml", line 374, characters 2-32
Called from file "cmdliner_term.ml", line 25, characters 19-24
Called from file "cmdliner_term.ml", line 23, characters 12-19
Called from file "cmdliner.ml", line 117, characters 32-39
Called from file "cmdliner.ml", line 147, characters 18-36
Called from file "cmdliner.ml", line 265, characters 22-48
Called from file "lib/bap_main/bap_main.ml", line 1105, characters 10-99
Called from file "lib/bap_main/bap_main.ml", line 1279, characters 15-140
Called from file "src/bap_frontend.ml", line 320, characters 8-127

Thanks again for your help

Aha. The error here is a BAP one, I think: it is failing to load the project, because the disassembly is taking too much stack space.
My understanding is that crypto code is inherently computationally hard to uplift.
One "easy" solution would be to raise the stack space, e.g.
ulimit -s unlimited
and try again. Warning: this will likely use large amounts of your live memory.
Another, more experimental route would be to use the "raw" loader for BAP with some options which limit the amount of disassembled code, to include only the function of interest (see here).
This is probably a bit finicky though.
A final bit of pessimism: currently, I'm not sure CBAT will handle large crypto subroutines in any reasonable time. We probably need some special optimizations to break the problem into smaller pieces.


adds: GZip compression feature (#591)

Adds the possibility to compress request for SearchClient.
For the moment only GZIP compression is available.
GZIP compression is enabled by default for SearchClient.

Q
A

Bug fix?
no

New feature?
yes

BC breaks?
no

Related Issue
Fix #591

Need Doc update
yes

AccountClient test is expected to fail because the feature is not enabled on the second test server yet.

Thanks for the comments @aseure! 🎉

What I mean by that is that we chose to introduce an enum NONE/GZIP for the compression type instead of a boolean.

I did the update with the enum for both Java and C# PRs. See for Java. Did I miss something else?


FAB – Blue frame appears when navigate via FAB menu using Up/Down keys

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:

Go to https://staging.new.expensify.com/
Log in.
Click on +/FAB button
Navigate via FAB menu using Up/Down keys

Expected Result:
Frame do not appears when navigate via FAB menu using Up/Down keys
Actual Result:
Blue frame appears when navigate via FAB menu using Up/Down keys on keyboard
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/a2867a30-de71-42b1-a322-844729afc608

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01aacec44a086107f8
Upwork Job ID:<PHONE_NUMBER>718292992
Last Price Increase: 2024-04-18

@mallenexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

We think this issue might be related to the #vip-vsb.

Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB – Blue frame appears when navigate via FAB menu using Up/Down keys
What is the root cause of that problem?
We didn't add style={styles.noSelect} here
What changes do you think we should make in order to solve the problem?
We should add style={styles.noSelect} here.
What alternative solutions did you explore? (Optional)
N/A
Result

Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB – Blue frame appears when navigate via FAB menu using Up/Down keys
What is the root cause of that problem?
New feature
What changes do you think we should make in order to solve the problem?
Add styles.boxShadowNone in this styles array
What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB – Blue frame appears when navigate via FAB menu using Up/Down keys
What is the root cause of that problem?
New feature
What changes do you think we should make in order to solve the problem?
Add styles.boxShadowNone or styles.noSelect in this styles array
What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
FAB – Blue frame appears when navigate via FAB menu using Up/Down keys
What is the root cause of that problem?
We do not set box-shadow:none style for PressableWithSecondaryInteraction
What changes do you think we should make in order to solve the problem?
Add styles.boxShadowNone or styles.noSelect in this styles array
What alternative solutions did you explore? (Optional)

Checking on in #expensify-open-source to see if anyone's been working on FAB that might have caused this regression.  @Santhosh-Sellavel , any thoughts/idea?   I searched E/App for issues with fab in the title and nothing looked suspect.

Thanks @ishpaul777 , I commented on that PR, tagged the author and C+ who reviewed for 👀.
Also, I was able to reproduce on staging and not on production
https://github.com/Expensify/App/assets/22508304/13b54a15-41f8-46f1-84e5-415f7f5eb1fd

I think the grey when arrowing through is enough to denote the selection.  I don't see a benefit to the blue border, but maybe I'm missing something.
Also agree it doesn't feel like it needs to be a blocker.
https://github.com/Expensify/App/assets/22508304/62560e8b-2e95-43f6-bfd1-b9bf46d7aab7

Thanks Fedi, if it's intended behaviour, I'm closing.  Comment/reopen if anyone disagrees.


[WIP] Move auctions API requests into GraphQL

Fix for the performance issues described in https://github.com/artsy/auctions/issues/353
Requires https://github.com/artsy/metaphysics/pull/608 and https://github.com/artsy/metaphysics/pull/609 to be merged first.

          1 Error

:no_entry_sign:
No CHANGELOG changes made

          2 Warnings

:warning:
PR is classed as Work in Progress

:warning:
Needs testing on a Phone if change is non-trivial

  Generated by :no_entry_sign: Danger

Closing in favour of #2278.


WebSocket handshake: Unexpected response code: 403 Error.

 It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b7ed2246-c5d4-1403-2f79-b76e48a74d5f
Version Independent ID: 29a25974-0d25-e6f2-e05e-bf7d54753f85
Content: Get started with the Bing Speech Recognition API in JavaScript
Content Source: articles/cognitive-services/Speech/GetStarted/GetStartedJSWebsockets.md
Service: cognitive-services
GitHub Login: @zhouwangzw
Microsoft Alias: zhouwang

403 error is authentication error. Have you replaced Ocp-Apim-Subscription-Key='SUBSCRIPTION-KEY' with your own key.
And please note, this is sample for Bing Speech, which is being deprecated. We recommend you to use the new JavaScript SDK with new Speech Service. You need to apply a new key for Speech Service, if you do not have one.
Thanks,

This is an issue with a service that has been retired. We encourage you to please migrate to the new Speech Service. https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-migrate-from-bing-speech
#please-close


How to use it with SCSS?

Currently I'm using Nuxt.js with SCSS. In my general SCSS I'm using a map function for declaring the background colors based on the classname:
$colors:(
    lightgrey: #EBEDEE
);

@each $name, $hex in $colors {
    .has-background-#{"" + $name} {
        background-color: $hex;
    }
}

Now I'm very interested in using Nuxt Color Mode, but I tried everything but still doesn't work. I tried to declare the variables like nuxt-color-mode showed in the tutorial:
.light-mode {
    --primary: #196b69;
    --accent: #e69496;
}
.dark-mode {
    --primary: red;
    --accent: blue;
}

$colors:(
    primary: var(--primary);
    accent: var(--accent);
);

@each $name, $hex in $colors {
    .has-background-#{"" + $name} {
        background-color: $hex;
    }
}

But also that didn't work. Is it possible to use nuxt-color-mode with SCSS and how?
Thanks in advance.

This works if you don't do syntax error:
$colors:(
    primary: var(--primary),
    accent: var(--accent),
);


Uses ref callback for getting element reference

The React team now advises against using string references, recommending the callback function form. This is a small, negligible change, but helps to illustrate current best practices.

weird, named version is pretty handy/nice


Implement diff tool for ASDF files

This resolves #211 and implements a diff tool that can be used for ASDF files. I don't have a ton of test cases so there may be missing features and/or buggy behavior on certain files.
@nden since this was your request maybe you can take it for a spin when you have a chance and let me know what you think.

This kind of feature doesn't lend itself very well to unit testing, but it might be good to give some thought to how it can be tested.

Coverage decreased (-2.5%) to 91.777% when pulling f704aeb6515f5d6954edbaee09b51b36867b02d5 on drdavella:asdf-diff into fd5ea50cf425df466de33955fdcd646efcba99b3 on spacetelescope:master.

Coverage decreased (-2.5%) to 91.777% when pulling f704aeb6515f5d6954edbaee09b51b36867b02d5 on drdavella:asdf-diff into fd5ea50cf425df466de33955fdcd646efcba99b3 on spacetelescope:master.

This is really useful when looking at different versions of reference files. 👍 for merging

Awesome! I think I should probably try to add some kind of tests first though since it drastically reduces overall test coverage...

Coverage decreased (-0.2%) to 94.153% when pulling 474701eedc969455c4accd466936beb0f5dee738 on drdavella:asdf-diff into 44b6a10994677544c74936b7253a19bf73030ded on spacetelescope:master.

Coverage decreased (-0.1%) to 94.194% when pulling 26022af6743b0c3d51799265693993d78358f4b4 on drdavella:asdf-diff into 44b6a10994677544c74936b7253a19bf73030ded on spacetelescope:master.

Coverage decreased (-0.09%) to 94.216% when pulling b77c8c9dc4d446f5c84cca26744b6557a0e33b00 on drdavella:asdf-diff into 44b6a10994677544c74936b7253a19bf73030ded on spacetelescope:master.

Coverage increased (+0.08%) to 94.393% when pulling 0f7df433e18c214f41e770bc02a10dd34dee4091 on drdavella:asdf-diff into 44b6a10994677544c74936b7253a19bf73030ded on spacetelescope:master.


Plugin built time (skpm-build --watch --run) is too slow after changes in files.

Current results:

The steps that led to these results

I wrote a plugin
Published it
Installed https://github.com/skpm/sketch-module-web-view with a save flag

On the first evening after installing everthing was ok, but the next day, when I was running a command: npm run start , the time between saving the event in a file and running the plugin in sketch was too long, about a minute or longer.

When I start a new project locally – everthing is fine and everthing works without troubles.
When I clone the project from github – it has the same problem with the built time.

A link to the plugin repo: Helpify plugin
What am I doing wrong? Or what has happened and how to fix it?

I'm having this issue as well.

Another update:
When I switch to using an older version of skpm/builder (npm install @skpm/builder@0.6.0), and I have a trivial program in my my-command.js:
`import sketch from 'sketch'
export default function() {
sketch.UI.message("Testing 1")
}`
I CAN actually get fast building and running going. However, it breaks when I paste in the sample code from the airbnb's react-sketchapp project.

I've run into this issue too, takes over a minute for anything to build with --run (react-sketchapp npm run render). For now, I've installed version<EMAIL_ADDRESS>and am holding off on upgrading Sketch (am on version 57.1), incase that breaks compatibility with the older @skpm/builder version.

@mathieudutour

Same result with 0.7.0.
Downgrade to ~0.6 seems to work fine.

Same result with 0.7.0.
Downgrade to ~0.6 seems to work fine.

How do I downgrade to 0.6?

~0.6:  ⚒  Built ./index.tsx in 4653ms
0.8.0: 🔨  Built ./index.tsx in 78049ms

Same result with 0.7.0.
Downgrade to ~0.6 seems to work fine.

How do I downgrade to 0.6?

npm install --save<EMAIL_ADDRESS>

For some reason the following line seems not to evaluate to true:
https://github.com/skpm/skpm/blob/8edce5094e72af7716d2489c30855fccc231c3b6/packages/builder/src/utils/webpackCommandPlugin/index.js#L19
So therefore the flag --without-waiting-for-plugin isn't set when executing the command via the shell.
If you put an  || true right here, it works like a charm (built in 1000ms):
https://github.com/skpm/skpm/blob/8edce5094e72af7716d2489c30855fccc231c3b6/packages/builder/src/utils/webpackCommandPlugin/webpackShellPlugin.js#L27
Got a working react-sketchapp typescript setup using the latest Sketch 81.1 this way.

Oh interesting. Would you be able to investigate why it's not evaluating to true? Maybe the semver dependency was updated and the behaviour changed

Right now it's not a priority for me so I have to postpone any further investigation at this point, I'm just happy it works for my PoC. When I start using this more frequently I might come back to it.


Blocking pop from a list (using brpop) blocks forever

Hi
Using StrictRedis, a blocking pop from a list (such as brpop) with a timeout provided blocks forever if the network connection to the redis server is broken while waiting for a response.
For example a call such as 'r.brpop("q", 5)' waits forever if the network connection was fine at the time the call was made, but broken within 5 seconds later.

Morning.  I just realised that providing the socket_timeout option when instantiating StrictRedis deals with this scenario and my problem has been resolved.
Thanks


How to use custom scene

Hi,
I'd like to use a custom borderless scene (https://github.com/goxr3plus/FX-BorderlessScene), how can I set the scene for a stage?
From Lyrebird I know that there is a onStageCreated(final Stage mainStage) method available that gets me the stage, but I also need the main component that should be displayed in the scene to create the custom scene.

I got it working, I just had to override getScene() from the FxUiManager.


Update serializeCANMessage and deserializeCANMessage

Update these two functions to work with TUK.

Did #19 solve this?

Yup


[DO NOT MERGE] Auto PR to update dependencies of pilot

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
e5d9fc46432ead32ca1909475be8fd7cd77a10ed
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


WIP feat: mock requests in webdriver

What does this do?
Extends support for mocking requests using PollyJs to WebDriver.

@DavertMik Can you pls look at this when possible? Thanks

I see function duplications like, mockRequest, getRouteHandler, stopMocking.
Can you abstract that code?
Suggestion: Use function like,
function _getPollyObject {
    if (this.helpers.WebDriver) {
      return window.polly;
    }
    if (this.helpers.Puppeteer) {
      return this.polly;
    }
}

And I guess rest most of the code are same except Setup. 😉

Also, Functions - appendBaseUrl, joinUrl, shouldAppendBaseUrl, trimUrl
Those are util function can be found at ../utils 😅

I see function duplications like, mockRequest, getRouteHandler, stopMocking.
Can you abstract that code?
Suggestion: Use function like,
function _getPollyObject {
    if (this.helpers.WebDriver) {
      return window.polly;
    }
    if (this.helpers.Puppeteer) {
      return this.polly;
    }
}

And I guess rest most of the code are same except Setup.

Yes, the code does the same thing as it does with Puppeteer. Bu everything has to run in the context of the browser, i.e, window global with contains the fetch and XMLHttpRequest methods. And with web driver, All the actions have to run within B

Thanks, I'm merging!


fix: add release pat

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Different Android ID

Hello:
I test blew code in Android Studio An the result for Android ID differ from this ANE inside Adobe Animate
import android.provider.Settings.Secure;
private String android_id = Secure.getString(getContext().getContentResolver(),
Secure.ANDROID_ID);
Link and reference

This ANE appears to be working as expected: is it possible that the Android Studio test is running in a different profile to the AIR app from Adobe Animate?
If you work out a better solution, we'd be happy to consider a PR.


Define vm name insteads of "default"?

By default the vm has name is default. How could I define a custom name for the vm?
And how could I create a bunch of vms like vm_1, vm_2, etc.?
Thanks guys.

thanks @jdhiro it worked
True. the console output of vagrant continues to say 'default' while the hostname of machine inside digitalocean account is good


Allow gke to use server-default version for jenkins runs

cc @roberthbailey, @mbforbes

Woohoo!!

Can haz lgtm?

Sorry, just got in, will look now

WOOHOO!

cc @alex-mohr


Use RunParallelProcesses to execute benchmarks, add interrupt support

Addresses #529, #573

Looks like there are some static variables in misc modules that need to be managed and kept in sync across processes.  I'm going to make a separate module to host one manager and have those other modules init their values from there.

Fixed the VM instance count collision.

Some of the functionality in this PR has been merged into master via #614, #615, #620. The need to fix issue #529 has been removed with our decision to remove the --parallelism flag (see #616). Closing this PR.


Add all from lobby button

In the LockDialog.js should have a button to join all participants currently waiting in the lobby, so the moderator would not have to click so many times. Something like this:
				lobbyPeers.length > 0 && 				<Button 					disabled={!canPromote} 					onClick={(e) => 					{ 						e.stopPropagation(); 						lobbyPeers.forEach(function(peerToPromoteId){ 							let peerToPromote = lobbyPeersMap[peerToPromoteId] 							if (!peerToPromote.promotionInProgress) { 								roomClient.promoteLobbyPeer(peerToPromote.id); 							} 						}); 					}} 					color='primary'> 					<FormattedMessage 						id='room.promoteAllInLobby' 						defaultMessage='Let all in' 					/> 				</Button>

Good point!


Server middleware cookies on initial page serve in nuxt 3

Environment

Operating System: Darwin
Node Version:     v18.12.0
Nuxt Version:     3.6.1
Nitro Version:    2.5.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
Make a server/middleware where you set a cookie.
Request homepage.
In homepage script setup call useFetch to fetch some data from /server/api.
Describe the bug
Both requests mentioned in reproduction section go through server/middleware but the later one does not have a cookie previously set.
I assume this is not a bug, but am running out of options on the internet on how to set a cookie on initial request that will persist throughout all requests.
Additional context
I was told here to open an issue in the nuxt repo for better tracking.
@Hebilicious  I hope repo like this is ok. Repo
Logs
No response

Could you please try this :
https://nuxt.com/docs/getting-started/data-fetching#pass-cookies-from-server-side-api-calls-on-ssr-response

@Hebilicious
Tried it. Pushed it. Now there are to requests to API, first without cookie, second with cookie. Not sure whats going on.

If you are trying to read a cookie on the same request where you set it, it will be present on the 'set-cookie' header in the response object, not the cookie header in the request object.
In your case, I would both set a cookie (for future requests) and a property in the event.context which you can use for the current request.


Information about DINO in PyTorch

Good morning Mr Jan Krepl,
Cordial greeting,
After running DINO in PyTorch (https://www.youtube.com/ watch? V = psmMEWKk4Uk & list = PLDW9q3PQf5VI0X5ozC3dDgbld8S4lrBuL & index = 15) in google colab because I don't have a GPU, and I'm decreasing the amount of images for training and try, but I get the following error:

The first error found was in the file "train.py" I had to modify

Parameters: vit_name, dim = "vit_deit_small_patch16_224", 384 by # Parameters: vit_name, dim = "vit_small_patch16_224", 384, it wouldn't let me run the file.

Then I ran "python train.py" and I got this error: AttributeError: module 'tensorflow._api.v2.io.gfile' has no attribute 'get_filesystem'. I was reading in this link a possible solution (https://stackoverflow.com/questions/60730544/tensorboard-colab-tensorflow-api-v1-io-gfile-has-no-attribute-get-filesystem), where I removed tensorflow and apparently, it was working for me but I got this message again:

{'batch_size': 32, 'device': 'cpu', 'logging_freq': 1000, 'momentum_teacher': 0.9995, 'n_crops': 4,' n_epochs': 200, 'out_dim': 1024, 'tensorboard_dir': ' logs', 'clip_grad': 2.0, 'norm_last_layer': True, 'batch_size_eval': 64, 'teacher_temp': 0.04, 'student_temp': 0.1, 'pretrained': False, 'weight_decay': 0.4}
/usr/local/lib/python3.7/dist-packages/torchvision/transforms/transforms.py:853: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
"Argument interpolation should be of type InterpolationMode instead of int."
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py:481: UserWarning: This DataLoader will create 4 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness / freeze if necessary.
cpuset_checked))
0% 0/8 [00:00 <?,? It / s] ^ C
I would appreciate a lot if you could help me, I have not been able to run the model. Thanks a lot.

Thank you for your interest!
1)
Nice find! It is because of the timm package. I can confirm that I have the same issue with timm-0.4.12. It is a direct consequence of this PR https://github.com/rwightman/pytorch-image-models/pull/702/files where a bulk renaming took place. The new name of the model I used in the video is deit_small_patch16_224.
2)
If I am not mistaken it is "just" a warning (the script doesn't stop execution), right?

Regarding the dataloader warning, just use fewer workers. Unfortunately, I hardcoded n_workers=4 here
https://github.com/jankrepl/mildlyoverfitted/blob/f1207497b385141e0e2a354b447d4073c2297694/github_adventures/dino/train.py#L51 instead of including it in the CLI. However, you can just clone the repo and manually overwrite it to something different (lower in your case).

The interpolation warning also showed up in the video and I don't think it is a big deal.

I had no tensorflow in virtual environment so uninstalling it makes sense.

I hope that helps, let me know if you have any other questions!

I am closing this due to inactivity. If you still have any issues feel free to comment and I can reopen:)


Minor improvements to the AssetLib

Fixed #24070. Also added some extra extensions to show icons for.
Made the downloaded assets section look better. Couldn't make it change style when the theme changes however, because it makes the editor crash for some reason. Help for this is appreciated.
Added tooltip for the reverse ordering button, to make it move obvious what it does.
Changed "Install" to "Install...", to indicate that it will open another window instead of installing the files right away.

Couldn't make it change style when the theme changes however, because it makes the editor crash for some reason. Help for this is appreciated.

The problem is likely that the AssetLib plugin is used both in the editor and in the project manager, and in the latter EditorSettings is not instantiated.

@akien-mga The crashes happens in the editor itself, not in the project manager.

Thanks!


ROX-23308: Prefetch images for gke-qa-e2e-tests

wip
Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
TODO(replace-me)
Use this space to explain how you validated that your change functions exactly how you expect it.
Feel free to attach JSON snippets, curl commands, screenshots, etc. Apply a simple benchmark: would the information you
provided convince any reviewer or any external reader that you did enough to validate your change.
It is acceptable to assume trust and keep this section light, e.g. as a bullet-point list.
It is acceptable to skip testing in cases when CI is sufficient, or it's a markdown or code comment change only.
It is also acceptable to skip testing for changes that are too taxing to test before merging. In such case you are
responsible for the change after it gets merged which includes reverting, fixing, etc. Make sure you validate the change
ASAP after it gets merged or explain in PR when the validation will be performed.
Explain here why you skipped testing in case you did so.
Have you created automated tests for your change? Explain here which validation activities you did manually and why so.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/test gke-qa-e2e-tests

/test gke-qa-e2e-tests

/test gke-qa-e2e-tests

/test

/test

/test ocp-4-15-qa-e2e-tests

/retest ocp-4-15-qa-e2e-tests

/test ocp-4-15-qa-e2e-tests

/retest

/retest

/retest

why no help bot?

/retest 10 gke-qa-e2e-tests

@gavin-stackrox one thing I noticed when looking at this failure is that we don't wait for the stackrox-images prefetch to complete before deploying stackrox. This means pulls of some images might be happening concurrently from the prefetcher and from kubelet, slowing things down somewhat.
I don't know whether this is what caused this failure, as there are few timestamps around the SR deployment...
Ideally we'd:

start qa images prefetching
wait for images to be built
start stackrox images prefetching
wait for stackrox images prefetching to complete
deploy stackrox
wait for qa images prefetching to complete
start tests

@gavin-stackrox one thing I noticed when looking at this failure is that we don't wait for the stackrox-images prefetch to complete before deploying stackrox. This means pulls of some images might be happening concurrently from the prefetcher and from kubelet, slowing things down somewhat.
I don't know whether this is what caused this failure, as there are few timestamps around the SR deployment...
Ideally we'd:

start qa images prefetching
wait for images to be built
start stackrox images prefetching
wait for stackrox images prefetching to complete
deploy stackrox
wait for qa images prefetching to complete
start tests

I think changing to this (1-7) logic should be easy enough. I'll TAL.

/retest-times 20 gke-qa-e2e-tests

/retest-times 20 ocp-4-12-qa-e2e-tests

/retest-times 20 ocp-4-15-qa-e2e-tests

/test gke-operator-e2e-tests


Dynamo config

[ x] closes #222
[x ] tests added / passed
[ x] docs reflect changes
[ x] passes flake8 datafs examples tests docs
[ x] whatsnew entry
Added support for dynamoDB  testing on the command line.

Coverage remained the same at 96.369% when pulling 085839d480568785381e1c44b3e8d219ed4537f5 on dynamo_config into 6e7f43bbdc04f5325f03a28fbfa58d11184eec71 on master.

Coverage remained the same at 96.369% when pulling 8ed757b6bada8524c4a6373b884029502b836ee4 on dynamo_config into 6e7f43bbdc04f5325f03a28fbfa58d11184eec71 on master.

Coverage remained the same at 96.369% when pulling ef856eea48e9626cb5752f56aaff7121b10cff36 on dynamo_config into 6e7f43bbdc04f5325f03a28fbfa58d11184eec71 on master.

Coverage remained the same at 96.369% when pulling 6342877d6b886d5a1c79016480519c524f07e24a on dynamo_config into 6e7f43bbdc04f5325f03a28fbfa58d11184eec71 on master.


support js dynamic import

is support js dynamic import in the plan?
the lastest version of webpack 2 treats import() as a split-point, but the ide give me a syntax error when i use it.

Same.  I get the error "Declaration or statement expected".  @shjyh is this what you get?

Yes, this is currently not supported. https://github.com/Microsoft/TypeScript/issues/14495 tracks this issue on the TypeScript side. We use TypeScript to power both our JS and TS language features.
Closing as upstream

yeah @sppatel you are right.
@mjbvz thanks for attention this issue
Although this does not affect webpack to compile, but the syntax error looks very ...you know what I mean... uncomfortable

Is there a way to disable formatting for a file till dynamic import support is added?

@varunkumar Just disable whatever is causing the file to be automatically formatted:
"[typescript]": {
    "editor.formatOnSave": false,
    ...
}

I would want the autoformatting enabled for all files except for the one that uses import().


Add some tests for numeric equality

See #389
What: Add some tests for numeric equality using different combinations of int, float, double
Why: To prevent regressions and codify our expectations of the query API for numeric values

@tomblench needs a rebase

@ricellis see #447


The server timed out waiting for the request to be processed. This may be due to high server load. Please try your request again.

Trying to run or attempt to run https://www.codewars.com/kata/sum-of-the-first-nth-term-of-series/train/php gives a 500 error when trying to allocate a server.
Please see attached.

Issue has resolved after 20 minutes of retrying.


New Example: AI code assist - embed a project and ask questions

[x] Embed the quickstart examples in this repo. Each example in a tenant
[x] UI to search embeddings
[x] Return an actual answer from an LLM rather than a list of file names
[x] Nicer search UI
[ ] Deploy example
[ ] Introduce chat history
[ ] Allow users to choose LLM model to answer the question.
[ ] Embed with different models and allow users to choose which embedding model they want
[ ] Test with vector indexes.

Not done, but I'm merging so I can work on deployment.


Refactor (private) BlockDiagramDrawer out of TextDiagramDrawer

A BlockDiagramDrawer is just a collection of blocks with specified contents. It handles sizing, alignment, and box-character-picking details.
TextDiagramDrawer is a list of drawing commands. When rendering it translates those into a field of blocks.
Add _box_drawing_character_data.py
Add a padding column around moment indicators
Add line caps to vertically oriented unicode moment indocators
Allow drawing lines at half coordinates (they terminate in the padding columns)
Text diagram wire lines now center vertically w.r.t. gates on the line
Can also now make gates center horizontally if desired (requires many test changes)
Allow setting half-integer paddings, which round down vertically and up horizontally (to look good with either of their differing visual appearances)

Part of https://github.com/quantumlib/Cirq/issues/1226

Automerge cancelled: A status check is failing.

Automerge cancelled: A status check is failing.

Automerge cancelled: Merging is blocked (I don't understand why).


about training code

Thank your excellent work!!!
have you plan to release the training process code?

Hi,
We didn't plan to add the training script on this repository but feel free to adapt this script:
https://github.com/histocartography/hact-net/blob/main/core/train.py
used in our other paper "Hierarchical Graph Representations in Digital Pathology". Let me know if you encounter issues while training the cell graph GNN.

Thank you! I will try.


Linux

Since there is now a linux version of netease music, would it be possible for you to make NeteaseMusicAbroad compatible with linux?

I'm on it

@Qiangong2 Linux is supported as well now, check it out!


 It is installed, in node_modules, and working in the project

Same here, when adding mongoose 4.11.5
This solved my Problem: https://github.com/react-boilerplate/react-boilerplate/issues/946#issuecomment-244535294

Closing due to inactivity


Which is the current v2 branch?

I've read in https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/What-are-news-in-v2%3F that so much has been rewritten in v2. Yet the v2.0 branch is 268 commits behind master with last commit over a year old. Later I found this doc https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/v2-beta which mentions multiple_maps as the current v2 branch.
How about removing the v2.0 branch to reduce confusion?

I see. I forgot the v2.0 branch. I will remove it later.

Done


Generated by robot

First two commits are manually written to sync client-go up to a state that could be further updated by the publish script.
@sttts Original Kubernetes-commit are included in the commit messages ^^
All 5 PRs generated in the same run of the robot:
https://github.com/kubernetes/client-go/pull/140
https://github.com/kubernetes/apimachinery/pull/10
https://github.com/kubernetes/apiserver/pull/4
https://github.com/kubernetes/kube-aggregator/pull/4
https://github.com/kubernetes/sample-apiserver/pull/2

This change is

I don't think we need to fix travis. It's use go get, which should be fixed by this series of PRs. Travis should pass after https://github.com/kubernetes/apimachinery/pull/9 gets merged.

All of the code in this PR is code reviewed before and looks good. After travis-ci reports green, it should be good to merge.

Travis build errored:
pkg/api/helpers.go:247: undefined: v1.FinalizerOrphanDependents

This is because the apimachinery repo is out of sync with the core -- I believe we need to update the apimachinery repo before this will work.

@pmorie yes, that's what kubernetes/apimachinery#9 does.

Trigger travis, it should be green now.

Now fails with:
github.com/emicklei/go-restful (download)
package github.com/emicklei/go-restful/swagger: cannot find package "github.com/emicklei/go-restful/swagger" in any of:
	/home/travis/.gimme/versions/go1.7.4.linux.amd64/src/github.com/emicklei/go-restful/swagger (from $GOROOT)
	/home/travis/gopath/src/github.com/emicklei/go-restful/swagger (from $GOPATH)
github.com/golang/glog (download)

Eh, the vendor/ folder is missing.. this break go get users of client-go.
I'll merge it as is, since other repos are referencing the commit in this PR.
I'll send another bunch of PRs to add the vendor/ back to client-go.

Can we expect to see a release with the 1.6 compatible changes some time soon? Or is it safe to vendor current master and not having to fix lots of changes once there is a release including these changes?


fix(parameters): use replace for compatibility

String.prototype.replaceAll() is only available in Node 15 or after. If you try and use it in a version below 15 it will crash and not be able to mount any routes.
Instead of using replaceAll() using String.prototype.replace() and providing its searchValue with global flag so that it can match against the whole string.
This should help offer greater compatibility among node versions.

Thanks for the fix @patrickett , new version has been released with this fix.


[feature] ability to run mpv directly on the youtube link, not the googlevideos urls

I have a script that handles a bunch of youtube-dl options and settings for mpv, and it would be nice if those options could be used with pipe-viewer
something like a use_video_url

See #13 and https://github.com/trizen/youtube-viewer/issues/352


Build failed with Clang 16.0.0

I get an build error. The log message is "integer value -1 is outside the valid range of values [0, 3] for this enumeration type" in integral_wrapper.hpp. This is a new clang feature, https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#id87 .
Has any idea for this issue? Please help me, thanks.

Have the same issue

same here clang 18

This is a duplicate of https://github.com/boostorg/mpl/issues/69


Ping is skYYYYYYYYYYYYYYYrocketing.

Soon as installing Bloxstrap, I noticed that my ping went from 60 to freaking 400 - 500. Did a speedtest and my internet is 90 Mbps. Need a fix ASAP because Bloxstrap is freaking cool.

How can you tell that it's because of Bloxstrap?

Really sorry for making this "issue". turns out it was Roblox all this time.


Use version switcher from pydata-sphinx-theme

The pydata-sphinx-theme version switcher is now live! You can see it in action here: https://scipy.github.io/devdocs/index.html
We could use it as-is, customizing the colors of the dropdown.

So cool! Missed this when you first pinged @melissawm! What do you think are the odds of getting this in this coming week??? 😬

Let me give it a go now!

To use this, we want to have the previous documentation versions accessible somewhere. Could we do this in the napari.github.io repo? Do you folks have other ideas?

Yes, we could retrospectively add past docs versions to vX.Y.Z/ folders on that repo. However, I'm also fine with only supporting future versions as a first step.


Implementation-specific prose about { }

https://docs.perl6.org/routine/{ }

Note that this construct does not re-parse the contents; rather, the contents are always parsed as a statement list (i.e. like a block), and if the later analysis shows that it needs to be interpreted as a hash, the block is executed and coerced to Hash.

The docs should not talk about some specific implementation.
Also: https://irclog.perlgeek.de/perl6-dev/2018-02-06#i_15783715

More commentary: https://irclog.perlgeek.de/perl6-dev/2018-02-06#i_15783715
14:27 	jnthn 	Funny thing about the prose: that is *not* how it's presently
                    implemented, so far as I recall. But if we *did* implement it like
                     that, it'd probably be better. :)
14:27 		The one pass parse part is correct. But iirc, we rewrite the AST
                    to call circumfix:<{ }> with the stuff in the block.
14:28 	Zoffix 	But the one pass parse part is implementation-specific, isn't it?
14:28 	jnthn 	No
14:28 	Zoffix 	:o
14:28 	jnthn 	Pretty sure it's laid down that Perl 6 is parsed in a single pass
14:28 	Zoffix 	TIL
14:29 	jnthn 	Otherwise, you can't execute BEGIN blocks safely :)

So, given that one pass parsing is part of the language, are there any remaining issues here to address?

woot, thanks


Bump BWC version to 2.9.0

Description
2.x has been bumped to 2.9, incrementing BWC test version of sample extension plugin to 2.9
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@joshpalis @vibrantvarun can we automate these bumps ?
Take a look at https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/version.yml


GPU/CPU PoS Ui

Awesome to see this merged! Is this at a stage that I can test the flow locally via smapp?


[1.7.10] Debug Hotkeys (F3 combinations) don't work with KeyCombs installed

With KeyCombinations installed all F3 based debug functions (F3+A to reload chunks e.g.) become inaccessible (the input is registered as 2 independent keystrokes ("open debug overlay and strife left"), not as a combination ("open debug overlay and reload all chunks").
This also affects ReBind.
MC: 1.7.10
Versions: 1.1.1 [latest] (KeyCombinations) / 2.7.0 [latest] (ReBind)
If you need more information, please don't hesitate to ask :)

You helped me a lot. Should be fixed in 1.1.2 for Key Combinations (1.6.4, 1.7.10, 1.8.9) and in 2.7.2 for ReBind (1.7.10, 1.8.9). Check it out, it will be available on Curse in few hours. Thank you.


Add function arguments

I would like to use your code as a library within a project, but the interface was for me to open. So I added the arguments for the class functions and moved the argparse object in the caller function.
Like this it is now possible to use the class in another project and it is very easy to read the function definition with the required arguments.
I am sorry for all the "fix pylint" commits, looks like I have an older version which does not recognise the too-many-positional-arguments warnings.
I would like to add some type-hints as well, is this something you could use?

I did a squash merge to remove all the fix pylint.
I don't like the functions with many arguments and prefer to use data classes now.
That program needs to run on older versions of Linux and Python, and @dataclass is unavailable on these older versions.
Thanks for your contribution, and I am glad you found that program helpful.
-fred-


refine typed-list on unicode input to extend

Fixes #5289
Fixed the issue by adding a yield_type property to UnicodeType
Added few tests as well
@esc @stuartarchibald

@rohitsanj thanks for submitting this, I have queued it for review.

Two more changes and this will be good!

Made the changes! :)

Thanks I reviewed this, tried it locally and it is now RTM (ready to merge).


[FLINK-7814][TableAPI && SQL] Add BETWEEN  and NOT BETWEEN expression to Table API

What is the purpose of the change
Add BETWEEN expression to Table API
Brief change log

add 'between' and 'not between' to TableAPI

Verifying this change
This change added tests and can be verified as follows:
org.apache.flink.table.expressions.ScalarOperatorsTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency):  no
The public API, i.e., is any changed class annotated with @Public(Evolving):  no
The serializers:  no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper:  no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature?  no
If yes, how is the feature documented? not documented

Thanks for the review @xccui , I've updated the PR.
Best.

Thanks for the update @Xpray. I will merge this...


Treatment data input error

Treatment is a string field in the WTForm
in views.py form can be filled with
form.treatment.data = matrix.treatment.type_name

but submitting with
matrix.treatment = form.treatment.data

causes
AttributeError: 'unicode' object has no attribute '_sa_instance_state'
Traceback (most recent call last):
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/simon/demography_database/app/main/views.py", line 374, in matrix_form
    matrix.treatment = form.treatment.data
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 226, in __set__
    instance_dict(instance), value, None)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 812, in set
    value = self.fire_replace_event(state, dict_, value, old, initiator)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 832, in fire_replace_event
    state, value, previous, initiator or self._replace_token)
  File "/home/simon/demography_database/venv/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 84, in set_
    newvalue_state = attributes.instance_state(newvalue)
AttributeError: 'unicode' object has no attribute '_sa_instance_state'

Which mostly makes sense because I'm putting the string from the treatment meta-table into the matrix treatment column, which is just a number referencing a treatment from the meta table.
But I'm not sure how to go about fixing it!

Is this one still a problem? the form.treatment.data is indeed returning a string, which is the type_name of the Treatment() model.  So, you will need to query Treatment() for an entry with that type_name. If it doesn't exist already, then add a new one..
treatment = Treatment.query.filter_by(type_name=form.treatment.data).first()
if treatment == None:
    treatment = Treatment(type_name=form.treatment.data)
db.session.add(treatment)

Not sure if it's still an issue, I'll poke it and see if it breaks when I've migrated.

@simonrolph can this be closed?


Suggestion : Support localization

I translated this mod into Korean. If you support localization,  I can make PR :D

I just added the last localization options, so just message me on either discord or steam.
discord:
Beta Chess#2012


Border color and percent color (infill) separated

The color of the border and infill can now be controlled separately with xml attributes (app:bv_bordercolor, app:bv_infillcolor) or directly in code by setting bordercolor and infillcolor.
I updated the view, the example app, screenshots and README, the latter still needs to be updated with the new implementation version.

You fix more camelCases, then was needed

:)

You've fixed more camelCases, then was needed

Fixed now. Don't know why it did not get pushed. Looked right local

@SebiAi I'll squash commits, if you agree

@SebiAi I'll squash commits, if you agree

That's fine for me @iamthevoid

I'll publish version a bit later

Ok. Don't forget to change the README once you publish it to maven. Have a nice day!

Actually i didn't check that, readme must be changed in gradle/readme.gradle nor the README.md. I've update this file. It contains script, that generate readme automatically based on version, that holds inside gradle/ext.gradle

I've pushed build to maven central, so it appears there in few hours

Ok. That means the (STILL WITH ONLY ONE COLOR CONTROL) Text above the implement code snippet is still there. My bad for not telling you earlier.


Credentials/Authentication Support for MusicBot

To be included in #120

So I just realized this would involve the user giving login information over plaintext on Discord, which is probably not a great idea. Closing for now, if I think of a better way to do things I might revisit this.


Replace 0-arg CP w/ eager instantiation

Fixes #143

Thanks @mike-north :v:
Feel free to PR yourself into the readme contributors list.


How to apply BERT to a cloze-style QA task?

Great job! Can I apply it to the cloze-style QA task, which is to predict the words that are masked according to the context. How should the input of the model be organized?
For example:
The dataset looks like:
From Monday to Friday most people are busy working or studying, but in the evenings and weekends they are free and  _  themselves.
And there are four candidate answers :
options": [
[
"love",
"work",
"enjoy",
"play"
]
Apparently the correct answer is "enjoy"， How can I organize the input so that BERT can predict the missing word given the context? Thank you for your excellent code!

https://github.com/CyberZHG/keras-bert/blob/master/demo/load_model/load_and_predict.py#L15,L30
If you just need the prediction results, you can replace the blank area with variable length [MASK]s in token_input based on your candidates and set the corresponding locations to 1 in mask_input. You could find the probabilities of your candidates in the output results.


Allow inspecting World for debugging entity issues and other

What problem does this solve or what need does it fill?
Trying to find why an Entity is not found in the render World by dumping that world with a trace!() just before panic.
What solution would you like?
Allow iterating somehow on entities, components, and archetypes, to allow debugging. Or at least allow dumping the archetypes. Currently only Entities and Components implement Debug, not Archetypes. And entities have no ID, only an EntityLocation that seem to refer to the archetype. So one cannot locate an entity by ID into a world.
What alternative(s) have you considered?
I don't see any. trace!() is already a last-resort technique which dumps in a rather indigestible format; I would have preferred allowing direct read-only iteration (though can understand if that's forbidden for ECS safety reasons).
Additional context
Trying to debug thread 'main' panicked at 'called Result::unwrap()on anErr value: NoSuchEntity',. I know the entity ID, but cannot see if it's in the world, or what other entities are there that would guide my debugging.

Related to #1467 and #1130.


[Basic] Add coc.vim to tools section

What cheatsheet is this about? (if applicable)
Basic cheatsheet
What's your issue or idea?
I would like to add https://github.com/neoclide/coc.nvim to the tools section for vim. It's insanely powerful and is on its way to replicating VSCode level of integration for Vim.
Will send a PR with this change if you're up for it.

we'll be splitting this to a separate tooling cheatsheet soon: https://github.com/sw-yx/react-typescript-cheatsheet/issues/82
actually.. u wanna write it? collect all the tools

Other than coc.vim I don't have anything else to add to the vim tooling list. It's pretty much a one-stop-shop other than syntax highlighting which is already there. The others I have used in the past on my way to finding coc.vim.

ok sure. thanks for the suggestioN!


[Bug] TypeError: Cannot read property 'append' of undefined

In v0.11.0, I get the following error when running a postcss gulp task which leverages postcss-html and postcss-import:
Message:
Cannot read property 'append' of undefined
Details:
fileName: C:\Users\kjaveri\Desktop\postcss-html-test\index.html
domainEmitter: [object Object]
domain: [object Object]
domainThrown: false
Stack:
TypeError: Cannot read property 'append' of undefined
at Root.document.append (C:\Users\kjaveri\Desktop\postcss-html-test\node_modules\postcss-html\lib\parser.js:60:12)
at stmt.nodes.forEach.node (C:\Users\kjaveri\Desktop\postcss-html-test\node_modules\postcss-import\index.js:122:16)
at Array.forEach ()
at bundle.forEach.stmt (C:\Users\kjaveri\Desktop\postcss-html-test\node_modules\postcss-import\index.js:120:18)
at Array.forEach ()
at applyStyles (C:\Users\kjaveri\Desktop\postcss-html-test\node_modules\postcss-import\index.js:112:10)
at parseStyles.then.bundle (C:\Users\kjaveri\Desktop\postcss-html-test\node_modules\postcss-import\index.js:55:7)
at
It complains about this.last being undefined hence causing the append to fail.
Attached is the sample code to help reproduce this issue. Run npm intall and then npm test which would invoke the gulp task.
postcss-html-test.zip
Thanks!

Fix in upstream<EMAIL_ADDRESS>

To resolve this problem, please use gulp-html-postcss
--- gulpfile.js
+++ gulpfile.js
@@ -1,6 +1,6 @@
 'use strict';
 const gulp = require('gulp');
-const postcss = require('gulp-postcss');
+const postcss = require('gulp-html-postcss');
 const postcssImport = require('postcss-import');
 const htmlSyntax = require('postcss-html');

postcss-html-test.zip

Awesome, thank you!


String Manipulation Processor

Data Prepper should have a Processor for string manipulation.
Some candidate operations:

uppercase - Make a string all uppercase
lowercase - Make a string all lowercase
trim - Trim whitespace from the start and end of a string
split - Split a string on a delimiter into an array of strings
join - Create a new string from other fields, separated by a delimiter
format - Create a new string from a format string and other values in an event

This should be a new Processor. It can also deprecate the existing string_converter plugin. Unlike the existing string_converter processor, this new processor will rely on updating keys. See https://github.com/opensearch-project/data-prepper/pull/753/files#r770751733 for more information on the difference between the plugins.

@dlvenable ,
Perhaps the approach can be embedding a javascript engine such as:
https://www.oracle.com/technical-resources/articles/java/jf14-nashorn.html
With this, any manipulation can be done.


fetch doesn't work in ios9 safari

I fired a POST fetch in my code, and it works well in Mac chrome and firefox and safari, but it failed to get me any response in ios9 safari. Debug shows that no fetches were fired at all. Can anybody help me? Below is how my codes look like
fetch('//some/url', {
  method: 'POST'
})
.then(function(res) {
  return res.json();
})
.then(function(response){
  console.log(response);
  that.rapMsg = response.msg;
})
.catch(function(error) {
  console.log(error);
  alert('Something goes wrong!');
});

I don't know how to help with this specific error, but you can try debugging in the Xcode iOS Simulator and Safari.

Start the simulator and open the page in iOS Safari
Select Develop > Simulator in macOS Safari
A macOS Safari development tools window appears containing any error messages in the console

macOS Safari menu

Web inspector connected to the iOS Safari simulator

How to solve?


Allow access to the rendered html + css

Hey @AriaMinaei
I am using pretty-error for the html-webpack-plugin.
The error is logged to the console and also added to the result html file.
Would it be possible to render the error message also as a html (including a style tag)?

The code that you're looking for is here:
https://github.com/AriaMinaei/pretty-error/blob/ba54889c642f3e2a56eb5e657c09c6cac6e4712e/src/PrettyError.coffee#L220
Calling pe.getObject() would return an object describing the structure of the final rendered error object:
const e = new Error('blah')
const obj = pe.getObject(e)

If you inspect obj, you'll see that it has all the information there is about the original error object.
Now, since your goal is to ultimately print the error as an html document, you'll basically have two options:

Write a convertor function that takes obj and returns "<html>...</html>". This is what I would do.
There is a private method on RenderKid that takes the obj and refines it further. It works like this: const renderKid = pe._renderer; const refinedDom = renderKid._toDom(obj). In this method, refinedDom is actually a DOM tree compatible with htmlparser2. What you can do with it is to stringify it (similar to HTMLElement#innerHTML) using this function. Just take note that _toDom() and _renderer are private properties, so they may change or be removed in the future.

Isn't that sth you could easily provide so I don't have to build a large code around pretty-error?

If enough people wanted this, then it might make sense to provide it out of the box. Otherwise, it's just wasted effort that complicates the code base.

the html-webpack-plugin which makes heavy use of pretty error is downloaded million times a week so  it would aid many users and javascript is very web focused so providing a html presentation might also help other use cases


Astronomy v2 Questions

If I setup behaviours on Classes that are used inside another Class, do they trigger when the parent Class is changed? Do they trigger only when the elements of that subclass are changed? Let's take timestamp behavior for example.

I am going to write some test cases for these and let you know how this goes, but would like to know how these are planned at the moment so I can structure my project accordingly. Some insight about these questions will be very helpful.

Everything depends on an events being used. The storage events like beforeSave, beforeUpdate, beforeRemove are propagated down to all nested classes. So if you have the User class that has the address field being an instance of the Address class, then the beforeUpdate event will be propagated also to the address field and all the Address.beforeUpdate events will be triggered on an address field. And the timestamp behavior is using beforeInsert and beforeUpdate events to set createdAt and updatedAt fields. So if you attach behavior to the Address class it will be run on a user save.

Okay that seems perfect.


Improve the page speed by inline JS / CSS

NOTE: Before you start, the following should be completed.

Read Wiki to understand the usage and the correct effect of functional design.
Make sure no similar issue(including closed ones) exists.
Make sure the request is based on the latest code in the master branch.

Is your feature request related to a problem? Please describe

The performance of web page is sometimes slow in the mobile devices, as analyzed by PageSpeed Insights.
Describe the solution you'd like

Can the potentially blocked resources / libraries, which require online access, be converted to inline elements?

What you request has already been implemented:
https://github.com/cotes2020/jekyll-theme-chirpy/blob/e8ef69ad1784661c5bb06dbcf530cfa37af63383/_config.yml#L104-L107

That's great! Thanks!


grants as configs, run during materializations

Contributions

[X] I am a PM or subject matter expert at dbt who is responsible for this feature.

Where does this content belong?
Main location: New page in "general configs," similar to the page for meta
Update copy in:

Hooks & operations, specifically the recommendations + examples that these are for granting privileges. We want to turn these hooks into an "advanced" feature, for people who know what they're doing, since there are a lot of gotchas.
Snowflake copy grants config: https://docs.getdbt.com/reference/resource-configs/snowflake-configs#copying-grants
"Building a new adapter": there are 4 new macros, and adapter maintainers may need to reimplement anywhere between none and all of them to support grants on their database

Longer term: We should update "Creating new materializations", since features like persist_docs + grants are not reflected there currently.
Who will use this feature?
dbt developers who want to manage access to the valuable datasets they're producing with dbt. Oftentimes, that means restricting access on upstream/intermediate models, and granting access to reporting / BI / downstream querying tools on final models that are ready for primetime.
Feature description: how it will help people
Traditionally, the way you had to do this was pretty jank:
{{ config(post_hook = 'grant select on {{ this }} to role reporter') }}

(See those nested curlies? Ew!)
This feature will enable people to define grants as configs—the way they know & love—and dbt takes care of the rest.
Customer research
Hooks applying grants ends up being some of the gnarliest code in advanced/mature dbt projects. Yet, people have A Bad Time using hooks. See the issues linked from https://github.com/dbt-labs/dbt-core/issues/5090.
More background for dbt Labs employees: https://www.notion.so/dbtlabs/Grants-permissions-becbe54d4a444ede9baf46078e5e69ef
How can we test or use this feature?
See the example code below! Once the feature is merged, and available from source / in a beta, it should all Just Work on any of our supported databases.
Source material

https://github.com/dbt-labs/dbt-core/issues/5189
https://github.com/dbt-labs/dbt-core/issues/5263

Configuring the grant
Grants will be supported as node configs, in all the usual places:
# dbt_project.yml
models:
  export:
    +grants:
      select: ['reporter', 'bi']

# models/model.yml
models:
  - name: specific_model
    config:
      grants:
        select: ['reporter', 'bi']

-- models/specific_model.sql

{{ config(grants = {'select': ['other_user']}) }}

Per-adapter behavior: Most databases support a simple privilege named select, and recipients (users/groups/roles) with plaintext names. BigQuery is a little different for both naming conventions. There, this needs to be:
# models/model.yml
models:
  - name: specific_model
    config:
      grants:
        'roles/bigquery.dataViewer'<EMAIL_ADDRESS>
We should just link to these docs: https://cloud.google.com/bigquery/docs/access-control

There's one special behavior that we're experimenting with. This will be supported for grants only to get started. If a user has configured some grants for all models in their project (in dbt_project.yml), and then they reconfigure certain grants for a specific model, the default behavior is to "clobber" one config with another: to completely replace the project-level grants with the model-level grants.
We're optionally supporting a + prefix (different from the other "+" prefix that everyone hates) to make that model-level config "additive" instead of "clobbering". E.g.:
# dbt_project.yml
models:
  +grants:
    select: ['reporter', 'bi']

-- models/specific_model.sql

{{ config(grants = {'+select': ['other_user']}) }}

This would "add" to the select list, instead of replacing it, and thereby return select: ['reporter', 'bi', 'other_user']. More conversation about why this is valuable, and speculation about extending it to other config types, in https://github.com/dbt-labs/dbt-core/issues/4108.

Runtime behavior
A lot of this doesn't need documentation, since it's something that dbt handles behind the scenes. But there will be some opinionated judgment calls that we want to make clear.
dbt's goal in this feature is to always ensure that the grants actually applied on the database object match up exactly with the grants that the user has configured. No more, no less.
Depending on the database adapter, and the materialization of the resource, dbt may or may not need to do more complicated work: figure out grants on the preexisting object, and figure out if any have been added/removed.
On Snowflake, if copy_grants is enabled, then dbt will NOT try to do this work. The presumption is that the end user knows what they're doing, and may be applying grants in an external system. dbt will ONLY add grants, not remove them.
If people need their grants to do other fancier things, they can always revert back to the current recommendation, of using a pre/post hook.

@jtcohen6 I was chatting with @Nerdenberger about the boundary between Terraform and dbt. Encoding grants will help our tool adopt Infrastructure As Code principles. I believe your vision is to apply grants per database object (Table or View). One nuance to consider is: some organizations manage permissions at the Database or Schema object level, especially people who are responsible for managing infrastructure, but not data management. Have you considered this capability at the Database or Schema level? Thanks!

@boxysean Thanks for the comment! This initial feature will be limited to database objects which dbt is creating in the course of its normal events. We've definitely thought about it a future extension of the feature to other types of objects which dbt does not manage directly (logical databases), or which users do not define as first-class objects in the same manner (schemas) — and eventually other object types (https://github.com/dbt-labs/dbt-core/discussions/5099).

Note during Language/Adapters meeting: Make sure to document that grants only appear to be supported in Databricks runtime, not yet OSS Apache Spark.


API documentation page on site

Can we get a placeholder page for API documentation and link to it from top or bottom bar?

Added API Documentation page:
http://localhost:3001/#/api-documentation
Closing.