G1

Load your new GitHub Pages site
After your push to the gh-pages branch, your Project Pages site will be available at 'http(s)://<username>.github.io/<projectname>' . Note that Pages are always publicly accessible when published, even if their repository is private.
To set up a custom domain for GitHub Pages sites, see "Setting up a custom domain with GitHub Pages."
Contact a human
Article versions
GitHub.com
GitHub Enterprise 2.6
GitHub Enterprise 2.5
GitHub Enterprise 2.4
GitHub Enterprise 2.3
GitHub Enterprise 2.2

 https://help.github.com/articles/creating-project-pages-manually/

Using a custom domain with GitHub Pages - User Documentation || https://help.github.com/articles/using-a-custom-domain-with-github-pages/

jekyll/jekyll: Jekyll is a blog-aware, static site generator in Ruby|| https://github.com/jekyll/jekyll


Issue Template for Exporting internal packages

We need an issue template and criteria for exporting a certain internal package. Later, we can discuss the pros and cons on exporting the internal package.

If others want to help with a small list, I'd be happy to take a first shot! What I can remember from the meeting:

Community discussion on a reliable, stable interface (rationale because exported API needs to be stable)
Not "hacky"
Clear user case for having it exported
... (I forget the rest!)

If others want to help with a small list, I'd be happy to take a first shot! What I can remember from the meeting:

Community discussion on a reliable, stable interface (rationale because exported API needs to be stable)
Not "hacky"
Clear user case for having it exported
... (I forget the rest!)

I can list these questions:

Which package
Pros and cons
Considerations
Clear use case

Closing this issue as we don't have many requests of this kind in the last year.


#159 Removed annotation selection dismissal filtering by a reason

Issue - https://github.com/recogito/text-annotator-js/issues/159

We still need the reason filtering, because the popup shouldn't be dismissed, or, even worse, annotation selection shouldn't get cleared on outside-click. That will lead to the race condition between the SelectionHander and FloatingUI who will cancel the selection first.


Missing resourcemgr

When I build tpm2-tss on a Raspberry Pi 3 using the process
./bootstrap
./cofigure
make

The process completes without errors but I find no file or directory resourcemgr which I understand to be necessary for accessing the TPM via tpm2_tools.  The directory resourcemgr which I presumed was going to be created by the build process does not exist.

The tpm2_tools supports the  "-T device"  flag which instructs the tool to connect directly to the TPM driver (it must be run with 'sudo').
resourcemgr was replaced by an independent project: https://github.com/01org/tpm2-abrmd/
Regards,
Dan

@meesern to expand on @danglus' answer, there is also a in-kernel resource manager. In that case you don't need a user-space resource manager.
So you could use the device TCTI (e.g: -T device or set the TPM2TOOLS_TCTI_NAME=device env var) but access a /dev/tpmrmX character device instead of a /dev/tpmX one (e.g: -T device:/dev/tpmrm0 or also set TPM2TOOLS_DEVICE_FILE=/dev/tpmrm0). But this support is quite recent, so at least a v4.12 kernel is needed.

Ah thank you.  If I understand correctly the resource manager resourcemgr is now removed and replaced by tpm2-abrmd binary built from the tpm2-abrmd repository.
But if I have linyux kernel v4.12 or greater then I don't need to run a separate resource manager because I can use the -T option on tss2-tools (typically with /dev/tpmrm0).
However I'm still not sure if I need tpm2-abrmd with an older kernel.
I have a 4.4 kernel with /dev/tpm0 present but no /dev/tpmrm0.
When I use
sudo tpm2_pcrlist -T /dev/tpm0

I get
ERROR: Unknown tcti, got: "/dev/tpm0"

Is this expected (when not running a resource manager)?
I may have other problems because on my system sudo tpm2-abrmd returns without output and without leaving a running process. I.e. appears to do nothing.
sudo cat /dev/tpm0
returns without output (on the command line).  Could anyone say if this is expected behavior?

@meesern if you have an older kernel (< 4.12) then you need a resource manager. Which as you said is tpm2-abrmd now.
Your command is not correct, it should be:
$ sudo tpm2_pcrlist -T device:/dev/tpm0

Although the :/devtpm0 is not needed since that's the default, I just included for completeness.
Did you install the tpm2-abrmd or starting from the build directory? I could start it with:
$ sudo -u tss ./src/tpm2-abrmd

I believe the behaviour is expected. If you read the character device but without writing a TPM command before, it's not supposed to return anything AFAIK.

@meesern BTW, can you please close this issue and we can move the conversation to the tpm2 mailing list?
This is not really an issue with the tpm2-{tss,tools} but more with your environment / setup.

@martinezjavier
A quick question: Is the in-kernel resource manager part of the tpm2-abrmd project?
(Disclaimer: I haven't tried tpm2-abrmd, my application is working directly over the driver)

Thank you
sudo tpm2_pcrlist -T device:/dev/tpm0

does return a list of (zero) PCR registers.
Yes, I'll close the issue,   But it is worth raising here as existing/older documents refer to resourcemgr and there is no documentation to say that it has disappeared/moved or is no longer necessary.   The README.md in this repo still refers to resourcemgr for example.

@meesern agreed. Feel free to file a new issue about the docs been outdated and still referencing the old resource manager.

@danglus the in-kernel RM and tpm2-abrmd are 100% separate projects. They share nothing.

@meesern You can also chown /dev/tpm0 to your shell user, or set up the dac perms in some way your user can access it. This way you're not running things with root permissions.
I have no idea what perms distor's  are assigning to /dev/tpm0 and there is some supplemental group you should be adding to your shells. Assuming there isn't...
I would recommend this:
sudo chgrp $USER /dev/tpm0
sudo chmod g+rw /dev/tpm0

# note no sudo for any tpm2_<command>'s from here on out
tpm2_pcrlist -T device:/dev/tpm0

You can even export the TCTI so you don't need to specify -T:
export TPM2TOOLS_TCTI_NAME=device
export TPM2TOOLS_DEVICE_FILE=/dev/tpmrm0

# no need for -T passed here unless you want to change TCTIs
tpm2_pcrlist

@williamcroberts , one last question, is the in-kernel RM part of this project? (TPM2.0-TSS)
If not, can you share a pointer to it?

@danglus no, the in-kernel RM isn't part of this project. The code is in the upstream Linux kernel (starting from v4.12).
The actual commit in Linux that added the support is 745b361e989a ("tpm: infrastructure for TPM spaces") and commit fdc915f7f719 ("tpm: expose spaces via a device link /dev/tpmrm") exposed to user-space through a new character device (/dev/tpmrmX).

@danglus it's maintained here by Jarrko:
https://sourceforge.net/p/tpmdd/mailman/tpmdd-devel/
FYI source forge seems down


how build 16kb sdk for android app?

how build 16kb sdk for android app?
How to set compilation parameters？

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

Are you sure it isn't project self problem that no support 16kb paging? If not please show the document.
I have the same problem about 16kb paging and googled it but I can't find any answers (

https://github.com/ProtonMail/gopenpgp/issues/300
https://github.com/2dust/AndroidLibXrayLite/issues/68

https://github.com/ProtonMail/gopenpgp/issues/300#issuecomment-2503591095


⚠ Bofrost.be has degraded performance

In c9deab5, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1570 ms

Resolved: Bofrost.be performance has improved in ab29888.


Feedback for “Getting Started”

Section 2: Set up the organization's Stripe account
is too much read and wondering why, for that you're not that big yet that this is of a concern now.

This repo is using Opire - what does it means? 👇💸Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount)💪 If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!🙌 And when they open the PR, they can comment /claim #11 either in the PR description or in a PR's comment👀 Also, everyone can tip any user commenting /tip 20 @bogeeee (replace 20 with the amount, and @bogeeee with the user to tip)If you want to learn more, go to our documentation

Thanks a lot for your feedback!
We reviewed it, and you're right - it was too much text. Also, we were almost forcing code owners to set up a Stripe account at the beginning, and that could make a lot of people reticent to start using Opire.
We reduced the text and also mark the step as Optional, hope now it's more readable.
https://docs.opire.dev/overview/getting-started


ENOENT: no such file or directory error, whilst using the files picker

Occasionally whilst using the file picker, it errors saying that a particular directory couldn't be found. In the case in this example, the file used to exist but was deleted. I'm not sure why snap still has a reference to it.

Other instances of this issue involve snap having a reference to the incomplete file path e.g.
https://github.com/camspiers/snap/issues/6#issuecomment-866580309 where the file's extension is missing some characters and this error occurs

A little more information to potentially help debug this information

I found in a particular work project I was able to reproduce this issue consistently by just entering ., into the prompt. If you look closely the paths of the results have been truncated somehow and I'm guessing snap tries to open these files only to find that they don't exist

I have a similar issue where end of file extension gets cut off occasionally

Can you try shifting to the fzy consumer instead of fzf? this will help me determine if it is fzf that is causing it.

I could confirm this only happened with fzf only, found no issue with fzy so far

I've switched to fzy and will report back since for me the issue is sporadic, or whatever I'm doing to trigger it isn't clear to me, but so far so good.

I can reproduce this always using this example https://github.com/camspiers/snap#grep-with-fzf-as-optional-next-step which uses fzf I will try with fzy & see.

I've had a few episodes whilst also using fzy, in one example I can reproduce the issue seems to be that whilst using vim.buffer I have a log buffer which doesn't exist on my system i.e. it's a scratch buffer with a buftype of nofile. When I try and select it to open in snap, it throws the file doesn't exist error.
...re/nvim/site/pack/packer/opt/snap/lua/snap/common/io.lua:136: ENOENT: no such file or directory: /<my-dir>/a-project/DEV_LOG__

So far I only experience this when I'm using git.file as producer. Is it the same for anybody else?

Closed with https://github.com/camspiers/snap/commit/ac6ad973589bb74eb15f11219b840f7080e4ed33


AWS bosh-init plugin should allow IAM instance profiles as an alternative to secret/key

Some customers prefer to use an IAM instance profile for authenticating with AWS instead of providing omg with their AWS secret and access key.
This feature is available in OpsMan but not in OMG.

See https://bosh.io/docs/aws-iam-instance-profiles.html


Don't need extra ContainsKey check in Frame.FeatureCollection

https://github.com/aspnet/KestrelHttpServer/blob/dev/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.FeatureCollection.cs#L285
/cc @benaadams @lodejard @halter73

Not sure about this?
Is saying if the response doesn't already have Upgrade header, overwrite with the request Upgrade header

Wow! I read that as the same collection. Closing :smile:


added warning message for deprecated flag

This will fix #185
I added a warning message for the deprecated flag. PLease take a look once.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.286%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1575

Relevant Lines:
1764

💛  - Coveralls


SSL connect failure when searching for policy file.

Error: SSL error while connecting to the HTTPS server: TLSV1_ALERT_INTERNAL_ERROR.

On which domain do you have this issue?

raidensnakesden.net

Sorry for the long delay.
The report says the following (with a few updates today):

Policy: https://mta-sts.raidensnakesden.net/.well-known/mta-sts.txt
Error: Could not connect to the HTTPS server: timed out.

This means that the URL is unresolvable. This is easy to test: it also times out in a browser.
This means you'll have to get the URL to work, probably by fixing the HTTPS server.

apologies the datacentre were doing some network updates and the server lost connection for about an hour.

Ah I see, that's unfortunate. Yeah, now the URL resolves in a browser but not in the tool. I'm looking into it.

yeah not sure why.

Reopening. I'll look into this later.

Fixed the issue. It's probably a bug in Python 3.5 that has been fixed in Python 3.6. I'm now running the verifier in Python 3.6.

Whe i test my site the same problem!
Error: Got a non-OK status code from the server: 403.
but when i open with browser all is OK

Policy: https://mta-sts.smiltene.lv/.well-known/mta-sts.txt

Error: Got a non-OK status code from the server: 403.

Error: Got a non-OK status code from the server: 403.

The issue seems to be the lack of a User-Agent:
import http.client

conn = http.client.HTTPSConnection("mta-sts.smiltene.lv", 443)
conn.request("GET","/.well-known/mta-sts.txt")

r1 = conn.getresponse()
print(r1.status, r1.reason)
r1.read()

conn.request("GET","/.well-known/mta-sts.txt", headers={"user-agent": "something"})
r2 = conn.getresponse()
print(r2.status, r2.reason)

$ python test.py
403 Forbidden
200 OK

PR opened: https://github.com/aykevl/mta-sts/pull/12


Upgrade java to version java 8

We are already using helix-0.9.1 version, the library version that is using java 8. Hence we can't compile cluster_management with java 7 anyway.

We are already using helix-0.9.1 version, the library version that is using java 8. Hence we can't compile cluster_management with java 7 anyway.

If helix is already in 0.9.1 which won't compile with java 7, then, how does the cluster_management compilation works fine since the helix upgrade?

We are already using helix-0.9.1 version, the library version that is using java 8. Hence we can't compile cluster_management with java 7 anyway.

If helix is already in 0.9.1 which won't compile with java 7, then, how does the cluster_management compilation works fine since the helix upgrade?

We are already using helix-0.9.1 version, the library version that is using java 8. Hence we can't compile cluster_management with java 7 anyway.

If helix is already in 0.9.1 which won't compile with java 7, then, how does the cluster_management compilation works fine since the helix upgrade?

I should have been bit more careful with the wording. Since cluster_management depends on helix version 0.9.1 for which the source and target is set to java8, it needs java8 compiler to compile. Which means the library helix-*.jar we depend on in cluster_management is java8 compiled.
The source and target for cluster_management is set to version 7. Which means cluster_management's source code is to be compiled assuming it complies with java 7 spec. However if we try to compile cluster_management with java7 version, it may / may not compile the cluster_management. However the runtime for cluster_management MUST be java8 anyway, since it includes a helix classes that were compiled with java8.
In .travis, we use java8 for compiling cluster_management. Hence it will have no issues.. We also must have java runtime that complies with java 8 version compiled classes. So there is no point in assuming that cluster_management code is java 7. Moreover There is no further need to compile cluster_management code to meet java 7 spec.

We are already using helix-0.9.1 version, the library version that is using java 8. Hence we can't compile cluster_management with java 7 anyway.

If helix is already in 0.9.1 which won't compile with java 7, then, how does the cluster_management compilation works fine since the helix upgrade?

I should have been bit more careful with the wording. Since cluster_management depends on helix version 0.9.1 for which the source and target is set to java8, it needs java8 compiler to compile. Which means the library helix-*.jar we depend on in cluster_management is java8 compiled.
The source and target for cluster_management is set to version 7. Which means cluster_management's source code is to be compiled assuming it complies with java 7 spec. However if we try to compile cluster_management with java7 version, it may / may not compile the cluster_management. However the runtime for cluster_management MUST be java8 anyway, since it includes a helix classes that were compiled with java8.
In .travis, we use java8 for compiling cluster_management. Hence it will have no issues.. We also must have java runtime that complies with java 8 version compiled classes. So there is no point in assuming that cluster_management code is java 7. Moreover There is no further need to compile cluster_management code to meet java 7 spec.


file: Fix race in closing

Hello!
It looks like there's a race condition created in (*win32File).closeHandle() where multiple concurrent goroutines are accessing the (*win32File).closing field.  This shows up in the go race detector.  This change adds a lock around the closing field to remove the race.
Thanks!
Sam

@jstarks

@jstarks I've pushed a new commit that fixes an error in my previous one.  As I mentioned, if alreadyClosing is true, that implies that closeHandle() was called from another goroutine earlier.  The goroutine that called earlier is waiting for the existing wait group in order to block waiting for IO to complete.  If the desired behavior is that any goroutine calling closeHandle() should block until IO is complete that can be changed.
I looked a bit at removing the sync.RWMutex in favor of just using atomic.SwapUint32()/atomic.LoadUint32(), but that made the race detector complain about concurrent reads/writes involving f.wg.

@jstarks @jhowardmsft ping?

@jstarks @jhowardmsft ping?

One for @jstarks.

@samuelkarp Looking back, it seems @jstarks suggested some changes. Are you able to address those? Thanks.

@jhowardmsft I looked at @jstarks's suggestion and it didn't seem to make the race detector happy (unless I misunderstood what was he was asking?), see https://github.com/Microsoft/go-winio/pull/31#issuecomment-250032413.

We've been hitting a go-winio related panic in Nomad on Windows for some time, and I'm afraid we still hit a panic when building against this PR:

Stack Trace
fatal error: unexpected signal during runtime execution
[signal 0xc0000005 code=0x0 addr=0x2ba pc=0x40e892]

goroutine 245 [running]:
runtime.throw(0x12a448a, 0x2a)
        /usr/local/go/src/runtime/panic.go:596 +0x9c fp=0xc042165e18 sp=0xc042165df8
runtime.sigpanic()
        /usr/local/go/src/runtime/signal_windows.go:155 +0x18b fp=0xc042165e48 sp=0xc042165e18
runtime.unlock(0xc04216ca18)
        /usr/local/go/src/runtime/lock_sema.go:107 +0x72 fp=0xc042165e70 sp=0xc042165e48
runtime.chansend(0x1054200, 0xc04216c9c0, 0xc042165fb0, 0xc042165f01, 0xac71ea, 0xc042165f9c)
        /usr/local/go/src/runtime/chan.go:179 +0x8af fp=0xc042165f20 sp=0xc042165e70
runtime.chansend1(0x1054200, 0xc04216c9c0, 0xc042165fb0)
        /usr/local/go/src/runtime/chan.go:113 +0x4d fp=0xc042165f60 sp=0xc042165f20
github.com/hashicorp/nomad/vendor/github.com/Microsoft/go-winio.ioCompletionProcessor(0x30c)
        /home/schmichael/go/src/github.com/hashicorp/nomad/vendor/github.com/Microsoft/go-winio/file.go:142 +0xea fp=0xc042165fd8 sp=0xc042165f60
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc042165fe0 sp=0xc042165fd8
created by github.com/hashicorp/nomad/vendor/github.com/Microsoft/go-winio.initIo
        /home/schmichael/go/src/github.com/hashicorp/nomad/vendor/github.com/Microsoft/go-winio/file.go:55 +0x87

This was fixed by #59. Closing.


Failed to obtain package metadata

Hi there, i have issue running this project. I've been following instruction but unfortunately without any luck. When try to run anchor test i get this error;
Failed to obtain package metadata: Error during execution of cargo metadata: error: failed to load manifest for workspace member /home/.../ido-pool/programs/ido-pool
Caused by:
failed to load manifest for dependency anchor-lang
Caused by:
failed to read /home/.../lang/Cargo.toml
Caused by:
No such file or directory (os error 2)

@igdeman fwiw the original author has a newer version here https://github.com/project-serum/anchor/tree/master/tests/ido-pool

@igdeman fwiw the original author has a newer version here https://github.com/project-serum/anchor/tree/master/tests/ido-pool

Thank you very much, you saved my day!!!


offset not defined inside thruster_converter

It is referenced on line 41
I have defined it as 0x80 on line 25 to ensure that the code compiles without any errors.
What should be the value of this variable?
cc @VishnuDuttSharma

It should be zero speed as per thrusters. So, either of offsetF or offsetB will work.

Also in [line 48] (https://github.com/auviitkgp/kraken_3.0/blob/indigo-devel/control_system_stack/thruster_converter/src/thruster.cpp#L48) and line 82, it should be 0x19-0x7F instead of 0x19-0x80, considering the symmetry of speeds of the thruster on either side.

In lines 47 and 48 ?(0xE6-0x80) should be replaced with ?0xE6 and similarly ?(0x19-0x80) by ?0x19 like line numbers 81 and 82

Okay, since there are so many changes, can you open a PR on the latest
indigo-devel branch?

ping @aniket11bh

ping @aniket11bh

The code is already complete. It is on vehicle. I'll get the code and create a PR

Has this been fixed in the commit that was merged as a result of #102  ?


Mobile: Upgrade to new version of react-native navigation

[ ]  fix the navigation towards the connector details screen
[ ]  fix the auto login
[ ]  save the last used screen

Try to finish this week

normally finished on tomorrow or Wednesday

Fix to do for now:

[ ] Charging Station list exceed on the header (only on IOS)
[ ] Can't remove the Charging Station Detail connector modal when you click on a map pin (only on IOS)

Was a problem on the emulator, everything work fine on IOS and android

Tested Ok


Add unsigned utilities

Add unsigned utilities.
For example uint8_t to float.

Add R::OP::Int#bit_and, bit_or, bit_not.
Add R::OP::Long#bit_and, bit_or, bit_not.
Add R::NDArray->expand_to($ndarray);
my $int_array = $byte_ndarray->to_int_ndarray;
my $ret = IOP->bit_and($int_array, IOP->c(0xFF)->expand_to($int_array));

Added.
1393f05ac8ea4470d800f6592a7a7d4fd737d4ba
e5cb42cb5ddb3946fed0e613e96f26504db5f5ef


Update .NET SDK requirement to 2.2.100

This is the latest SDK minor version, which makes it easier for users who want to just "clone, install latest, build" to do so.
(If we want to stay on 2.1.x, we'd want to move to 2.1.500 instead, as that's the latest 2.1, and what is install on Linux by just following the regular instructions.)
This PR is part of #2872.

Basically 2.2.100 is sort of the minimum "SDK API" version we support. Any 2.2.1xx is compatible with that, so I figured I'd use the latest one I know about (which includes security patches) for Travis.


Add "Volunteer" link

Overview
Make "Volunteer with us" point to https://www.hackforla.org/projects/civic-tech-index
Action Items

[ ] Add this link in the Footer and the Header
[ ] Getting an external link to look right will require a refactor of NavSubLink.js

@kliu28 is working on onboarding w. the system.
ETA: She will have this done by Sunday's meeting.

Created a PR here: https://github.com/civictechindex/CTI-website-frontend/pull/404

@kliu28 I believe @kevinashworth has requested changes in the PR. This is why the decision was made not to open new page - https://www.w3.org/WAI/WCAG21/Techniques/general/G200


[Bug] When evaluation response has comma, csv file is parsed weirdly

Describe the bug
When export evaluation result, sometimes csv file was broken because of comma in contents.
To Reproduce
Steps to reproduce the behavior:

Run Evaluation Any type. the result have to include comma for reproducing error
export Result
You can see malformed csv file.

Expected behavior
export csv file correctly
Screenshots

Desktop (please complete the following information):

OS: MacOS
Browser: Whale
Version: <IP_ADDRESS>

Please make sure to provide all the requested information to expedite the debugging process. Thank you for helping us improve our project!

This bug has been resolved in #878


Uncaught ModuleNotFoundError in caching.py line 22

Aider version: 0.57.1
Python version: 3.11.3
Platform: Windows-10-10.0.22635-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 10 (64bit)
Git version: git version 2.46.1.windows.1
An uncaught exception occurred:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 535, in main
    problem = models.sanity_check_models(io, main_model)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "models.py", line 840, in sanity_check_models
    problem_strong = sanity_check_model(io, main_model)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "models.py", line 873, in sanity_check_model
    possible_matches = fuzzy_match_models(model.name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "models.py", line 889, in fuzzy_match_models
    for model, attrs in litellm.model_cost.items():
                        ^^^^^^^^^^^^^^^^^^
  File "llm.py", line 23, in __getattr__
    self._load_litellm()
  File "llm.py", line 30, in _load_litellm
    self._lazy_module = importlib.import_module("litellm")
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "__init__.py", line 9, in <module>
    from litellm.caching import Cache
  File "caching.py", line 22, in <module>
    from openai._models import BaseModel as OpenAIObject
ModuleNotFoundError: No module named 'openai._models'

Thank you for filing this issue.
This looks like something might be broken during installation. Can you please try to install or reinstall aider in a separate Python environment? Either with venv or pipx?
This document may be helpful -> https://aider.chat/docs/troubleshooting/imports.html

Thanks for trying aider and filing this issue.
This looks like a duplicate of #1283. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.


doesn't work on ubuntu

There is no icon in left bar.

Thanks for letting me know. I'll check.

It's working for me. Want to try again? Maybe it solved in the newest version.

hi dear.
it's work fine. It just my fault. Sorry.
Thank you for attention.

Great 😀


Update VEText Forwarder Lambda Logging

User Story - Business Need
Update the logging in the vetext forwarder lambda to be in-line with our logging policy.

[ ] Ticket is understood, and QA has been contacted (if the ticket has a QA label).

User Story(ies)
As a VA Notify Engineer
I want to log in accordance with our policies
So that we are consistent across the platform
Additional Info and Resources

logging policy

Engineering Checklist

[ ] All logging includes string qualifiers (nothing like logger.info(event))
[ ] Proper use of info, warning, and error/critical
[ ] MessageSid is recorded in the logs
[ ] MessagingServiceSid is recorded in the logs
[ ] To (the service's phone number) is recorded in the logs
[ ] From and other identifying fields are not recorded outside of debug or error/critical logging

Acceptance Criteria

[ ] Code not related to logging is not changed at all
[ ] Logging output coincides with the logging policy

QA Considerations

Logging has no opportunity for new errors

Hey team! Please add your planning poker estimate with Zenhub @babyjunior56 @cris-oddball @EvanParish @k-macmillan @kalbfled @ldraney @nikolai-efimov

@k-macmillan will investigate.


Use valid operation / span name as display name for traces (in jaeger)

At the moment all traces in jaeger's search result list seem to have the title hello.
This is most likely be caused by the code in create_context_with_trace.
let span = tracer.build_with_context(SpanBuilder::from_name("hello"), &remote_context);

The comments in the code indicate that the current implementation is only a hack / workaround.
I would expect to see something like the HTTP-Method and route  what seem to be the (display) values in the nested span (i.e. /users/:identifier from http.route).
It should be possible to pass the name (Line 145) or the req in line 137 to the create_context_with_trace function, to display the name instead of hello.
Even if the correct solution takes more time - would it be possible to release an improved version with a fix to display the values as suggested above?

Thanks for reporting, fix should part of 0.3.0


yt-dlp -j URL is not showing youtube video category anymore?

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
JSON retrieved with yt-dlp always showed Youtube video category like Entertainment, Sport, Music, etc...
It seems like it is not avaiable in JSON anymore.
Anyone noticed and knows why?
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

Can you give an example with verbose output, please? I can't reproduce the issue:
$ yt-dlp --print categories YOelRv7fMxY
['Entertainment']

"categories": null
Just realized I was testing some mobile user-agents and for some of them categories were null.
It's all fine, sorry for the confusion.


[CLOSED] Migrate formats for Countryside Stewardship Grants

 Issue by Rosa-Fox
Friday 19 February 2016 at 11:20 GMT
Originally opened as https://github.com/alphagov/specialist-publisher/pull/663

https://trello.com/c/UBM8Q7p1/531-csg

Rosa-Fox included the following code: https://github.com/alphagov/specialist-publisher/pull/663/commits

 Comment by Rosa-Fox
Wednesday 24 February 2016 at 15:41 GMT

Thanks @benlovell, do you think the _countryside_stewardship_grants.html.erb form looks ok now?


Update LibreSSL/OpenSSL compat shims

This adds annotations for the individual functions we currently need. We require LibreSSL 3.5.0 or later, which have X509_get_extension_flags(), so remove that. Add a compat implementation for OpenSSL_cleanup().

Interesting that x509.h was missing from noinst_HEADERS but make distcheck still worked.
This PR is fine please merge.


[MixItUp Multifilter] Programmatically setting group filters or toggles on load

Hi,
I have a setup where I have several toggle buttons. I need one of them to be toggled on load.
If I set the load {filter: class} to set the toggle button toggled, it acts as if it is a filter - I cant untoggle it and it resets if I press any of the other toggle buttons.
It would be great if I could specify a state for a specific toggle button on load like this:
load: { toggle: class}
just like I do with a filter.

Unlike standard MixItUp controls which are 2-way bound, MultiFilter filter group controls are 1-way bound.
This means that they will not react to changes via the filter API (or load.filter option). This because for a given compound selector, multifilter has no way of knowing how to it break it up and distribute across all possible controls accurately.
Instead, MultiFilter controls have their own APIs if you wish to write or read them programmatically. In your case you will need the setFilterGroupSelectors() API method.
Before you can use this you will need to "name" your filter groups, by adding a value to the your data-filter-group attributes:
<fieldset data-filter-group="color">
    ...
</fieldset>

<fieldset data-filter-group="shape">
    ...
</fieldset>

<fieldset data-filter-group="size">
    ...
</fieldset>

We can now interact with the groups via the API:
var mixer = mixitup(containerEl, {
    multifilter: {
        enable: true
    },
    animation: {
        enable: false
    }
});

mixer.setFilterGroupSelectors('shape', ['.circle', '.triangle']);
mixer.parseFilterGroups();

mixer.configure({animation: {enable: true}});

In this case, since we are setting the active filters on load, we may wish to disable (and then re-enable) animations, to prevent an initial transition from "all".
Hope that helps.

Perfect! Thanks!

I am deeply impressed with your software and answer! It took me less than 2 minutes to fix it :-)
Thanks you!

Great - thanks for the feedback!


Missing package product 'LocationWhenInUsePermission'

XCode 15 on macOS 14

LocationWhenInUsePermission available in 9x versions. After 10x it's one package for LocationPermission . Here all targets please


Showcase Submission for challenges/24-perlin-noise-flow-field

Thank you adorescoding / Ethan for your contribution! A member of the Coding Train team will review it shortly.

Sin-Stroke Flow Field with Textures and Noise!
adorescoding / Ethan

Can't wait to show this in my nature of code class this spring!


feat: retry loop for asynchronous RPCs

In the Cloud Pub/Sub library (and I think in all future libraries) the
signature for an asynchronous RPC is:
future<StatusOr<ResponseProto> AsyncFooBar(
    CompletionQueue& cq, std::unique_ptr<grpc::ClientContext> ctx,
    RequestProto const& request);

This PR introduces a retry loop for functions with that signature,
previous retry loops required a different return type and arguments. The
older signature was really hard to mock and test.
Part of the work for #4971

This change is

google/cloud/internal/async_retry_loop.h, line 162 at r2 (raw file):
Previously, coryan (Carlos O'Ryan) wrote…
Hmm... future cleanup?  I am not going to change RetryLoop() in this PR too, we have hundreds of call sites already for that.

#4975


[Proposal] Moves Padding Property to Container

Moves Padding Property to Container
Removes PaddingContainer
Renames FlowContainer.Padding to FlowContainer.ElementPadding

I'm proposing this due to problems/issues I had/discovered while creating a CheckBox (this is a bit of a ramble, I apologise):
A CheckBox is a simple AutoSizeContainer, with a private FlowContainer for "labels", labels allow you to attach SpriteText or other Drawables to the CheckBox such that clicking on them also counts as a click on the CheckBox (a common functionality of checkboxes), However when I added PaddingContainers around these labels, so that they weren't glued to the CheckBox, this was problematic, PaddingContainers do not auto size, and as such remained at 0x0, preventing the FlowContainer and the CheckBox from resizing themselves based on the size of the labels, effectively masking them out and preventing the label-click feature, so instead of creating some Frankenstein class of AutoSizePaddingContainer, I moved the Padding property+functionality down to Container.
With Padding moved to Container, PaddingContainer no longer needs to exist and as such, has been removed.
tl;dr:
new PaddingContainer
{
    Padding = new Padding
    {
        Left = 20,
    },
    Children = new Drawable[]
    {
        new SpriteText
        {
            Text = @"Some Padded Text",
        }
    }
}

//is now:

new SpriteText
{
    Padding = new Padding
    {
        Left = 20,
    },
    Text = @"Some Padded Text",
}

All tests, such as TestCasePadding work as expected still.

Renames FlowContainer.Padding to FlowContainer.ElementPadding

Could drop this entirely and just have children set their margins. This is how it's done with flexbox in HTML, for instance.

@SirCmpwn well, the name is going to be Spacing actually, that's the name Peppy wanted and is in the FlowContainer fix PR.
But yeah it could be dropped.


Replicate Image Failed

Sorry.My English is very poor.
Replicate Image Failed
docker Server Version: 17.03.0-ce
docker-compose version : 1.10.0-rc2, build fb241d0
Harbor version: v1.1.2
The Replicate ability is amazing, but when I trying to some kind of image, it failed.
I found the structure of image addrees could affect the replicate function. Just My guss :).
Below is my test:

I have two machine, MachineA(<IP_ADDRESS>), MachineB(<IP_ADDRESS>),both I intall harbor v1.1.2 and Create Project "ztp"
I cofigure replicate rule in MachineB to replicate image to MachineB.
I push image to MachineB, docker push <IP_ADDRESS>/ztp/test/busybox
then there is a replicate job on page. But The image can't replicate to MachineA.  The vmware/harbor-jobservice container on MachineB status is Restarting

MachineB : jobservice.log
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: 2017-11-14T03:22:38Z [DEBUG] [transport.go:50]: 200 | GET http://registry:5000/v2/ztp/test/busybox/tags/list
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: 2017-11-14T03:22:38Z [DEBUG] [statemachine.go:88]: Job id: 3397, transition succeeded, current state: initialize
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: 2017-11-14T03:22:38Z [DEBUG] [statemachine.go:118]: Job id: 3397, next state from handler: check
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: 2017-11-14T03:22:38Z [DEBUG] [statemachine.go:61]: Job id: 3397, transiting from State: initialize, to State: check
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: panic: runtime error: invalid memory address or nil pointer dereference
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x72955d]
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]:
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: goroutine 36 [running]:
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: panic(0x9c6d60, 0xc42000c060)
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: #011/usr/local/go/src/runtime/panic.go:500 +0x1a1
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: github.com/vmware/harbor/src/jobservice/replication.(*Checker).enter(0xc42033a0c8, 0xf2bca0, 0x414f50, 0xc420041a50, 0x6accd486)
Nov 14 11:22:38 <IP_ADDRESS> jobservice[1271]: #011/go/src/github.com/vmware/harbor/src/jobservice/replication/transfer.go:195 +0x19d

replicate job log:
2017-11-14T03:22:36Z [INFO] initializing: repository: ztp/test/busybox, tags: [], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:36Z [INFO] initialization completed: project: ztp/test, repository: ztp/test/busybox, tags: [latest], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:37Z [INFO] initializing: repository: ztp/test/busybox, tags: [], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:37Z [INFO] initialization completed: project: ztp/test, repository: ztp/test/busybox, tags: [latest], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:38Z [INFO] initializing: repository: ztp/test/busybox, tags: [], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:38Z [INFO] initialization completed: project: ztp/test, repository: ztp/test/busybox, tags: [latest], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:38Z [INFO] initializing: repository: ztp/test/busybox, tags: [], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:39Z [INFO] initialization completed: project: ztp/test, repository: ztp/test/busybox, tags: [latest], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin
2017-11-14T03:22:40Z [INFO] initializing: repository: ztp/test/busybox, tags: [], source URL: http://registry:5000, destination URL: http://<IP_ADDRESS>, insecure: false, destination user: admin

I disable replicate rule ,and delete <IP_ADDRESS>/ztp/test/busybox on Harbor, The vmware/harbor-jobservice container on MachineB status chang to UP
I push image docker push <IP_ADDRESS>/ztp/busybox, the replicate functin work fine

In my guess, replicate  function don't support image address like <IP_ADDRESS>/ztp/test/busybox, the image address must be like HarborAddress/Project/ImageName:Tag, not like HarborAddress/Project1/Project2/ImageName:Tag or more layers.

It's a known issue and has been fixed in 1.2. Please upgrade to the latest version.


train cornernet-squeeze error

Hey，can this cornernet trian at one 1080ti with RAM only 8G ?According to the train doc ,I get "AttributeError: 'NoneType' object has no attribute 'shape'", this makes me very confused.

HI ,I have the same problem as you( 'NoneType' object has no attribute 'shape'). my computer config only is 1060 .so can you tell your wechat account,mine is<PHONE_NUMBER>7

First, I have trained the cornerNet-Squeeze successfully on only one TITAN X(12GB) with batchsize of 14.You just need to adjust the batchsize  in " CornerNet-Squeeze.json" to accommodate the number of GPUs that are available to you..
Second, make sure your image data dir is right in  " CornerNet-Squeeze.json -->data_dir" and "dbs\coco.py"

@sunshangyun hello，can I have your whole code and the content of  dataset's  json?

@pengyaru give me your e-mail or QQ or wechat

First, I have trained the cornerNet-Squeeze successfully on only one TITAN X(12GB) with batchsize of 14.You just need to adjust the batchsize in " CornerNet-Squeeze.json" to accommodate the number of GPUs that are available to you..
Second, make sure your image data dir is right in " CornerNet-Squeeze.json -->data_dir" and "dbs\coco.py"

hello, how did your result on training cornernet-squeeze compare to 34.2% and how much training loss when stop training ?
Thx!

My training result is not as good as the paper described when the loss is between 4 and 5
发自我的iPhone
在 2019年10月29日，18:09，DEEPcong<EMAIL_ADDRESS>写道：

First, I have trained the cornerNet-Squeeze successfully on only one TITAN X(12GB) with batchsize of 14.You just need to adjust the batchsize in " CornerNet-Squeeze.json" to accommodate the number of GPUs that are available to you..
Second, make sure your image data dir is right in " CornerNet-Squeeze.json -->data_dir" and "dbs\coco.py"
hello, how did your result on training cornernet-squeeze compare to 34.2% and how much training loss when stop training ?
Thx!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/princeton-vl/CornerNet-Lite/issues/85?email_source=notifications&email_token=ADL6OZLFC4A6NVHVLNEUGSTQRADXFA5CNFSM4HSXVSKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECP5YZY#issuecomment-547347559, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADL6OZNHM4IYGQAVQB5PF5LQRADXFANCNFSM4HSXVSKA.

ok，thank you！
On 10/31/2019 16:34, sunshangyun wrote:
My training result is not as good as the paper described when the loss is between 4 and 5
发自我的iPhone
在 2019年10月29日，18:09，DEEPcong<EMAIL_ADDRESS>写道：

First, I have trained the cornerNet-Squeeze successfully on only one TITAN X(12GB) with batchsize of 14.You just need to adjust the batchsize in " CornerNet-Squeeze.json" to accommodate the number of GPUs that are available to you..
Second, make sure your image data dir is right in " CornerNet-Squeeze.json -->data_dir" and "dbs\coco.py"
hello, how did your result on training cornernet-squeeze compare to 34.2% and how much training loss when stop training ?
Thx!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/princeton-vl/CornerNet-Lite/issues/85?email_source=notifications&email_token=ADL6OZLFC4A6NVHVLNEUGSTQRADXFA5CNFSM4HSXVSKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECP5YZY#issuecomment-547347559, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADL6OZNHM4IYGQAVQB5PF5LQRADXFANCNFSM4HSXVSKA.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

@pengyaru give me your e-mail or QQ or wechat

hello,i have the same error,and i have added the data_dir in xx.json.but it doesnt work.Can i have your whole code?thanks:)

@sunshangyun


Cyrillic loop variable name in ngRepeat not supported by ngParseExt module

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] other (Please do not submit support requests here (see above))

Current behavior:

Using ngParseExt module (https://docs.angularjs.org/api/ngParseExt) for Unicode support in HTML,
it is still impossible to introduce a loop variable with cyrillic name into "ngRepeat" directive,
while cyrillic expressions are OK.
Expected / new behavior:

Expecting cyrillic loop variable names to be valid under ngParseExt.
Minimal reproduction of the problem with instructions:

Working HTML: div ng-repeat="f in поля"
Not working HTML: div ng-repeat="п in поля"
Angular version: 1.6.1

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome, Edge
Anything else:

Error: [ngRepeat:iidexp] 'item' in 'item in collection' should be an identifier or '(key, value)' expression, but got 'п'.
http://errors.angularjs.org/1.6.1/ngRepeat/iidexp?p0=п
at ngRepeatCompile (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:30701:9)
at applyDirectivesToNode (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:9444:13)
at compileNodes (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:8803:9)
at compileNodes (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:8812:9)
at compile (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:8684:7)
at lazyCompilation (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:9131:11)
at boundTranscludeFn (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:8924:9)
at controllersBoundTransclude (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:9691:13)
at ngIfWatchAction (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:27259:15)
at Scope.prototype.$digest (http://eugene:8080/rnst/2017-04-19/js/lib/angular-1.6.1/angular.js:17814:23) ngRepeat: п in поля
angular.js (14328,11)

Hi,
ngRepeat is using a special micro syntax for this part of the expression, that uses a regex and not the parser, see https://github.com/angular/angular.js/blob/69c3faf40589b4ac9e7fa75f3b4fb83349aba60d/src/ng/directive/ngRepeat.js#L388-L393
While this is confusing, I don't think this is in the scope of parseExt - to make it work would definitely require non-trivial effort, as non-unicode matching would have to be available only with parseExt, either via regex or a different parser.
Since this is low frequency, I don't think we will work on this in the future, but PRs are welcome.

BTW, similar issues may arise with parts of the ngOptions micro-syntax. I agree that fixing it is probably not worth the effort :/

Opened a pull request #15954.


elisctl csv get broken

It appears to use the CSV connector interface rather than export queue interface, but then it uses the API endpoint URL rather than the CSV connector URL.
(But I'm actually not sure what's the purpose of this subcommand right now. :) )

Do we actively use this command @KPilnacek ? Is there a need for this enhancement or can it be closed?

I use that command for fetching data from some internal csv connector but it's not necessary to keep it.
The enhancement would be to download a csv from elis instead of the connector. Though I have no clue if anybody needs/requests it. If not, we can just remove the subcommand.

Actually, removing this command could allow simple removal of pandas.


Write tests

Hi @pinguinjkeke, can I help in writing test cases?

@anirudhgali It will be really nice! Testing especially in JS is not my strong side.
We need browser tests, which will write and read value from localStorage via plugin and check for correct datatype and correct storage value.

It will be implemented in 1.0 version


Cilium network policy

Checklist

[x] Update changelog in CHANGELOG.md.
[ ] Make sure values.yaml and values.schema.json are valid.

This is not needed anymore 🔐


Make it easy to stop the database worker by sending it SIGQUIT or repeated SIGINT

When trying things out locally, it's helpful to be able to kill a worker that's blocked on a task, without having to either run kill -9 {pid} in a separate shell, or killing the terminal window entirely. Many tools will treat a single SIGINT as "please exit gracefully" and a follow-on SIGINT as "please exit and ignore the consequences". Other programs respond to SIGQUIT (which can often be triggered by pressing ctrl-\).

Happy to write up a PR for this.

Big fan of this idea. Distinguishing between "terminate after the current task" and "terminate now" would be incredibly useful. I think ctrl-c needs to be the latter during development, and the former in production, which might be counter-intuitive.
PR more than welcome!

I think ctrl-c needs to be the latter during development, and the former in production, which might be counter-intuitive.

For development, pressing ctrl-c twice can do "terminate now". This is what docker compose up (without -d) does:
% docker compose up app
[+] Running 1/1
 ✔ Container demo-app-1     Created                     0.0s
Attaching to web-1
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container demo-app-1  Stopped                       1.5s
canceled


Switch to Alpine Linux

docker pull scitran/reaper:alpine

@gsfr I'd rather not support both alpine and buildpack base images. Does this PR take prescience over #55 ?

I agree in principal. However, I'd say #55 is low risk and should be merged immediately.
I'll test this Alpine image at the CNI and then we can make a decision for how to move forward.


Login landing

What changed?

Landing page with search, patient info, and patient statistics/alerts

It's not definitive what the alerts are for patients yet. These are just some examples showing that we can pull that type of information in if we need. The "percentage" is super vague and right now I'm not exactly sure what that is calculated from (but it looks good!).

This one is totally open for changes, but going to merge it in right now just to keep things organized.


First draft of the user interface

Currently the user interface for the Cities denomination visualization is laid out with possible filters across the top of the map, and the map appearing below that. Points are interactive to allow mouseover events to display relevant information. The points are sized depending on the data returned from the filters.
Currently a rough draft of cities-map exists in the cities-map branch; tasks are tracked in the cities-map project area on Github. There are a couple things to clean up as part of the testing:

[x] Per discussions in Basecamp, there will be no state filter. That can be removed.
[x] All filter selections will need to draw from the data endpoint.
[x] Currently the filters don't support a selection of All and will need to be handled programatically. This will need to be handled for the Denominations dropdown.
[x] Re-implementation of the mouseover interactivity for points.
[x] Double-check that the data is drawing from appropriate columns, including within currentSelectedYear(), render(), tooltipRender(), and each of the filter dropdowns.
[x] Double-check main.js for the appropriate data endpoint.
[x] Double-check that zoom and pan keeps points sized appropriately.
[x] Change radius of points to re-draw based on a square root scale.
[ ] Clean up styles.css to remove unnecessary styling.
[ ] Ensure Hugo is still minifying everything properly.

Some considerations for the interface:

[x] Zoom in closer to the map to better center the contiguous US?
[x] Should the filters remain along the top, or along the side or bottom instead?
[ ] If there's no data to display for a set of filters, do we show a blank map or explain with text that there's no matching data?

#64 will address some changes to the interface by allowing more control over how denominations are displayed on the map.


Milestone flow update

Changes approved. No conflicts. Updates to MAiD Case Stages BEFORE flow for Milestone issue


?assignRanks Clearing Automatically

The assigned ranks appear to be clearing overnight without any prompts from admins. Ranks must be reassigned every day for the bot to function.
There are no prompts or commands from the bot to indicate why the ranks would become unassigned. This issue occurs regardless of whether a ?setManagedChannel has been used or not in the server.

I can confirm this is not how the bot should be behaving. Ranks are saved in a JSON file with associations to a server ID, in no way should this be cleared without express instructions from the server owner or authorized moderator. However, I currently have the bot running in a private and public server with set ranks with this behavior not being shown. How are you modifying the ranks after creation? Do you have another bot on your server that is perhaps modifying the existing ranks?
Adding the bug label for now and I will investigate this issue when time allows.

How are you modifying the ranks after creation? Do you have another bot on your server that is perhaps modifying the existing ranks?

Carlbot is an actively used bot in our server, however it has not been instructed to modify the ranks for M+ which Rankie is exclusively using.

I have added some potential fixes in a88727ff1a13ced49f7f7fbf745daf2fe084d276 and 7110105ff3634d6aff214e04ebfaf6b2e390ca49. Let me know if you are still experiencing problems.

Ah, it seems storage on Heroku (where the bot is hosted) is ephemeral. This means that the files the bot saved ranks for the server are being removed. That is an unforeseen problem. I will have a solution developed for that sometime in the near future.

This has been fixed in 2200a2cebfa7bb8935eb1222e7c2573958b06967. If you continue to experience issues please open up another issue with details on it.


The schema validation type for {:array, inner_type}   is not working as the query one

Environment

Elixir version: 1.10.1

Database and version (PostgreSQL 9.4, MongoDB 3.2, etc.): postgres (PostgreSQL) 12.2

Ecto version: 3.4.4

Database adapter and version (mix deps): Postgrex 0.15.5

Operating system: Mac OS and Alpine Linux

Current behavior
The schema check for {:array, inner_type}   is not working as the query one.
Expected behavior
The schema validation for types for {:array, inner_type}  is not working as the query one.
When we create a field with {:array, :jsonb}  in the schema and this column is empty in the database we don't receive any error on compilation time.
But when we run a query in the table that has this column and has a value we receive an exception telling us that the :jsonb does not have a type definition.
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function :jsonb.type/0 is undefined (module :jsonb is not available)
        :jsonb.type()
        (ecto 3.4.4) lib/ecto/type.ex:307: Ecto.Type.type/1
        (ecto 3.4.4) lib/ecto/type.ex:916: Ecto.Type.adapter_load/3
        (ecto 3.4.4) lib/ecto/repo/queryable.ex:381: Ecto.Repo.Queryable.struct_load!/6
        (ecto 3.4.4) lib/ecto/repo/queryable.ex:213: anonymous fn/5 in Ecto.Repo.Queryable.preprocessor/3
        (elixir 1.10.1) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2
        (ecto 3.4.4) lib/ecto/repo/queryable.ex:200: Ecto.Repo.Queryable.execute/4
        (ecto 3.4.4) lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
        (ecto 3.4.4) lib/ecto/repo/queryable.ex:112: Ecto.Repo.Queryable.one/3

I would expect to have the exception also on compilation time, but it is not happening because we are checking it differently.
At the Schema level, we check a tuple, and at the Query level, we check only the type.
iex(1)> Ecto.Type.primitive?(:jsonb)
false
iex(2)> Ecto.Type.primitive?({:array, :jsonb})
true

Schema
https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/schema.ex#L2050-L2051
Query
https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/type.ex#L300-L311
Application Example
ecto_bug.zip

@amandasposito ecto does not support :jsonb type as it's PostgreSQL naming. You should use :map instead:

In order to support maps, different databases may employ different techniques. For example, PostgreSQL will store those values in jsonb fields, allowing you to just query parts of it. MSSQL, on the other hand, does not yet provide a JSON type, so the value will be stored in a text field.
# In your migration
create table(:users) do
  add :data, :map
end

# In your schema
field :data, :map

# Now in your code
user = Repo.insert! %User{data: %{"foo" => "bar"}}

Source: https://hexdocs.pm/ecto/Ecto.Schema.html#module-the-map-type

@Eiji7 I'm not saying it should support, I'm saying it should raise an error when I try to use it in the schema.

@amandasposito Ah, right - sorry now I can see the problem

@amandasposito I have created PR - in one test I have added 2 checks for :jsonb and {:array, :jsonb types. Let me know what you think about it.

Closing in favor of PR!

@Eiji7 Thank you!


Display sleep shortcut does not work

The macOS 10.12 shortcut for putting your displays to sleep, Control–Shift–(Power button or Media Eject), does not work when Karabiner-Elements is running.

Duplicate of https://github.com/tekezo/Karabiner-Elements/issues/89


Add custom lane offset ranges in the ULTRA task configs

Allows for the ability to set the vehicle's initial position in the start lane, and also its end position in the end lane by specifying a range [min, max] for the start_offset and end_offset.
When generating a scenario, the missions generate a random start offset integer and end offset integer in the range [min, max]. This determines how far along the start lane the vehicle will be spawned in (in the case of the start offset), and how far along the end lane the vehicle has to go to reach its goal (in the case of the end offset).
@AlexLewandowski and @JenishPatel99, should start_offset and end_offset be optional fields for ego_missions or should these be explicitly defined (like they are now)? Let me know your thoughts on this, and anything else regarding these changes.

@christianjans I believe it is a nice fine adjustment to control the initial position of the vehicle. Although, I may feel that the config files may get a bit crowded, and for cases where people may choose not to change the offset (from default), we should provide a default setting; i.e if there is no offset values provided in the config files

@christianjans I believe it is a nice fine adjustment to control the initial position of the vehicle. Although, I may feel that the config files may get a bit crowded, and for cases where people may choose not to change the offset (from default), we should provide a default setting; i.e if there is no offset values provided in the config files then you use the defaults

Oh good call, I will ensure there is a default and remove the changes in the configs.


Fix the summary section of Japanese translation

Fixing two issues in the summary section of Open Definition 2.1 in Japanese.

The part of "subject, at most, to measures that preserve provenance and openness" is duplicated. Therefore the first one is removed.
"it" is translated as "targeted data" though it should be "knowledge". In Japanese, this "it" can be removed simply.

Thank you!


I Think Running Balance may not be working properly

Name of Defective Feature
Running Balance
System Settings (Required)
ToolKit Version: current as of 7/12/17
Operating System (Mac/Windows/Etc): Win-10
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: Version 59.0.3071.115 (Official Build) (64-bit)
Other Extensions: Too many to list but unchanged from before this behavior became apparent to me
Export of Toolkit Settings (Bottom Left of Settings Page)
[{"key":"AccountsDisplayDensity","value":"2"},{"key":"AccountsEmphasizedOutflows","value":true},{"key":"AccountsStripedRows","value":false},{"key":"AdditionalColumns","value":true},{"key":"AdjustableColumnWidths","value":false},{"key":"AutoCloseReconcile","value":false},{"key":"ChangeEnterBehavior","value":true},{"key":"CheckNumbers","value":false},{"key":"ColourBlindMode","value":false},{"key":"CustomFlagNames","value":true},{"key":"DisplayTargetGoalAmount","value":"1"},{"key":"GoalWarningColor","value":true},{"key":"HideAgeOfMoney","value":false},{"key":"HideReferralBanner","value":true},{"key":"PrintingImprovements","value":true},{"key":"RemovePositiveHighlight","value":true},{"key":"RowHeight","value":"2"},{"key":"RunningBalance","value":true},{"key":"ShowCategoryBalance","value":true},{"key":"SquareNegativeMode","value":false},{"key":"StealingFromFuture","value":true},{"key":"TargetBalanceWarning","value":true},{"key":"accountsClearSelection","value":true},{"key":"activityTransactionLink","value":true},{"key":"betterScrollbars","value":"1"},{"key":"budgetBalanceToZero","value":true},{"key":"budgetProgressBars","value":"goals"},{"key":"budgetQuickSwitch","value":true},{"key":"budgetRowsHeight","value":"1"},{"key":"calendarFirstDay","value":"1"},{"key":"categoryActivityPopupWidth","value":"1"},{"key":"checkCreditBalances","value":true},{"key":"collapseExpandBudgetGroups","value":true},{"key":"collapseSideMenu","value":true},{"key":"compactIncomeVsExpense","value":true},{"key":"currentMonthIndicator","value":true},{"key":"daysOfBuffering","value":false},{"key":"daysOfBufferingHistoryLookup","value":"0"},{"key":"editButtonPosition","value":"2"},{"key":"enableRetroCalculator","value":true},{"key":"enlargeCategoriesDropdown","value":true},{"key":"goalIndicator","value":true},{"key":"googleFontsSelector","value":"4"},{"key":"hideAccountBalancesType","value":"0"},{"key":"hideHelp","value":true},{"key":"highlightNegativesNegative","value":true},{"key":"importNotification","value":"2"},{"key":"incomeFromLastMonth","value":"1"},{"key":"l10n","value":"0"},{"key":"largerClickableIcons","value":true},{"key":"monthlyNotesPopupWidth","value":"0"},{"key":"navDisplayDensity","value":"2"},{"key":"pacing","value":"2"},{"key":"popupCalculator","value":false},{"key":"privacyMode","value":"0"},{"key":"reconciledTextColor","value":"3"},{"key":"removeZeroCategories","value":true},{"key":"reports","value":true},{"key":"resizeInspector","value":false},{"key":"rightClickToEdit","value":true},{"key":"seamlessBudgetHeader","value":false},{"key":"showIntercom","value":true},{"key":"spareChange","value":false},{"key":"splitKeyboardShortcut","value":true},{"key":"splitTransactionAutoAdjust","value":true},{"key":"swapClearedFlagged","value":false},{"key":"toBeBudgetedWarning","value":true},{"key":"toggleSplits","value":true},{"key":"toggleTransactionFilters","value":"1"},{"key":"warnOnQuickBudget","value":true}]

Steps to Reproduce the Behavior
Sorry. Hard to do this b/c it appears to me that the issue began after I changed various items. For example I changed date sort order from A-Z to Z-A and back again. I changed filter from Reconciled to Scheduled, separately & simultaneous.
Somewhere in there, running balance seemed to get out of whack. I refreshed YNAB but didn't clear cache to no avail. I did not reset the system.
Expected Behavior
What did you expect would happen after completing the steps?
I expected running balance to update according to settings, i.e. sort order, filters, etc. At worst, I expected it to refresh itself after refresh.
Actual Behavior
What actually happened after you completed the steps.
Running balance did not update according to settings, i.e. sort order, filters, etc. Running balance did not reset after refresh

running balance is only based on date so the only time your running balance is going to make sense is when you're sorted by date. make sure you're not currently sorted by one of the other fields on the table.

I take your point but I believe the user can only sort on one criteria at a time and I am currently sorted on Date, filtered for scheduled & un-reconciled items for the current month only. It may be a cache problem but I'm no techie for sure.

Could you post a screenshot of what you're seeing? If you're sorted by date, the running balance should be correct.

After closing / re-opening laptop overnight, all seems to be in order now. I honestly think it has something to do w caching (which may be a local problem) but I'll keep an eye on it & post a screen shot the next time it occurs. Thanks for your interest & follow up.

I'd like to add on to this, it seems occasionally even if sorting by date the running balance is getting a different sort order than is being used to display the columns.

The totals for the two items are obviously calculated out of order. Moving the Chase value up to the 23rd didn't fix it, but moving the Capital One value up to the 23rd then back forced a recalculation and everything went back to normal.

This was on a budget that hadn't been touched in about 2 weeks so only the scheduled transactions had been added. I can't remember if it had this issue before I last left it, I noticed it this time because I was trying to see which transactions from the 22nd I was missing. I stupidly didn't do an inspect before I fixed it so I can't provide any insight into the backing data, but I can confirm that I see this regularly when trying to do a week by week reconcile after large imports.

Hey @janrif the fix for this should be in our current release. If you notice the issue still exists and you're definitely running the newest version of the toolkit, please reopen! Thanks!


Saving both best and last weights in LinearRegression

https://github.com/RoboticsClubIITJ/ML-DL-implementation/blob/e30d8d4a3da242f59c9fe491d870fdfc029df07b/MLlib/models.py#L8-L29
In above code only the last weight is being saved, instead one can give user option to take which weight
 class LinearRegression():
     def fit(self, X, Y, optimizer=GradientDescent, epochs=25, zeros=False):
         _weight ={weight:None, loss = None}
         self.weights = generate_weights(X.shape[1], 1, zeros=zeros)
         print("Starting training with loss:",
               optimizer.loss_func.loss(X, Y, self.weights))
         for epoch in range(1, epochs+1):
             print("======================================")
             self.weights = optimizer.iterate(X, Y, self.weights)
             print("epoch:", epoch)
             print("Loss in this step: ",
                   optimizer.loss_func.loss(X, Y, self.weights))
         print("======================================\n")
         print("Finished training with final loss:",
               optimizer.loss_func.loss(X, Y, self.weights))
         print("=====================================================\n")
         if _weight['weight'] is None:
             _weight['weight']=self.weights
             _weight['loss'] = optimizer.loss_func.loss(X, Y, self.weights))
         elif _weight[weight] is not None and optimizer.loss_func.loss(X, Y, self.weights))<_weight['loss']:
             _weight['loss'] = optimizer.loss_func.loss(X, Y, self.weights))
             _weight['weight']=self.weights
     def predict(self, X, weights= 'best'):
         if weights == 'best':
              return  np.dot(X, _weight['weight'])
        elif weights =='last':
             return np.dot(X, self.weights)

In this way we can save best/last weight.

Hello, may I be assigned this issue? Thanks

Sure, Go ahead.

@JHunterHobbs please add a parameter to the .fit() function so as to give the user an option to save the last weights or the best weights. You can decide the API and comment it first here. If we find that it integrates smoothly with the rest of the library and how we envision it moving forward, you can work on it and send a PR.

@rohansingh9001 - Can we just let .fit() always save the best and last weights, and then allow the user to specify which weights to use for the prediction? Like the example from @agrawalshubham01 ?

@JHunterHobbs  as @rohansingh9001  mentioned in the current standard libaries like tensorflow and pytorch fit function provides an arguement to save best or last. We want our modules to be as close to standard ones as possible. So It would be better if .fit() asks a parameter to save the last weights or the best weights.

Ok I'll make some changes to my PR. Thanks for the clarification

I'm a little confused because the issue documentation is asking for both the best and last weights to be saved but from this discussion it sounds like you are looking for either the best or last weights/model to be saved during training.
I also looked through both Tensorflow and PyTorch documentation to try see they were accomplishing this during fitting the model and I was not able to find anything. tf.keras.Sequential.fit does not provide a flag to save best or last weights, however you can provide a callback to accomplish early stopping during training, but I don't think that is what you're looking for. @TarunTomar122 - Could you link some documentation to what you are referring to. That'd be really helpful. Thanks.

@agrawalshubham01 please change the title of the issue to something better like "Option to save best weights during training" as our contributors are getting confused because of it.
Also @JHunterHobbs I have made a comment on your PR to clarify this issue. Hope that helps!


Fix FLAnimatedImageView+WebCache.m not got compiled

New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[x] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necesarry)

[x] I have run the tests and they pass

[x] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...
Pull Request Description
Fix FLAnimatedImageView+WebCache.m not got compiled
Because of missing SD_UIKIT definition.
This is critical to merge pull request, because animated gifs are not working at all.

Looks like there are more issues with the way GIF are loaded.

- (void)testFLAnimatedImageViewSetImageWithURL {
    XCTestExpectation *expectation = [self expectationWithDescription:@"FLAnimatedImageView setImageWithURL"];

    FLAnimatedImageView *imageView = [[FLAnimatedImageView alloc] init];
    NSURL *originalImageURL = [NSURL URLWithString:@"https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"];

    [imageView sd_setImageWithURL:originalImageURL
                        completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
                            expect(image).toNot.beNil();
                            expect(error).to.beNil();
                            expect(originalImageURL).to.equal(imageURL);

                            expect(imageView.image).to.equal(image);
                            [expectation fulfill];
                                }];
    [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil];
}

Failing test is expect(imageView.image).to.equal(image);
This test is wrong, but not sure how I can replace it of fix.

The reason why it worked before is that GIF implementation didn't work and used category method implementations from UIImageView.

@diejmon Oh man, awesome.  I didn't check that simple macro thing, I kept looking at SF scenarios.
Really glad you caught it.


about speed slowly for image convert to NDArray

Description
(A clear and concise description of what the feature is.)
Will this change the current api? How?
Who will benefit from this enhancement?
References

list reference and related literature
list known implementations

could't make it faster ???   now python do same thing takes few.

@guojian0614
In theory, OpenCV should not be slower than PIL (https://towardsdatascience.com/image-processing-opencv-vs-pil-a26e9923cdf3) iff both doing identical operation. I guess your image processing might skipped some operation.

@guojian0614
In theory, OpenCV should not be slower than PIL (https://towardsdatascience.com/image-processing-opencv-vs-pil-a26e9923cdf3) iff both doing identical operation. I guess your image processing might skipped some operation.

@frankfliu
ok，thanks，i will pay attention to inference step go on ，maybe the docker serving of tensorflow officail provide is too faster。but the whole process presstsure test result comparation gap indeed too huge。
python project tps 22-23 ， DJL tps 11-12.
DJL just inference step without pre/post process and other opertions， take time between 50-70ms。but i can't get takes  time of python inference step .
I am still not sure my custom DJL project indeed used gpu to inference so far .


Fix golang CVE-2023-29409, CVE-2023-39318, CVE-2023-39319, CVE-2023-39323, CVE-2023-39533

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[X] The toolchain has been rebuilt successfully (or no changes were made to it)
[X] The toolchain/worker package manifests are up-to-date
[X] Any updated packages successfully build (or no packages were changed)
[X] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[X] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[X] All package sources are available
[X] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[X] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[X] All source files have up-to-date hashes in the *.signatures.json files
[X] sudo make go-tidy-all and sudo make go-test-coverage pass
[X] Documentation has been updated to match any changes to the build system
[X] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Fix CVE-2023-29409, CVE-2023-39318, CVE-2023-39319, CVE-2023-39323, CVE-2023-39533, CVE-2023-29406, CVE-2023-39325
Change Log

Bump version to 1.20.10 to address CVE-2023-29409, CVE-2023-39318, CVE-2023-39319, CVE-2023-39323, CVE-2023-39533, CVE-2023-29406, CVE-2023-39325
Remove patch that no longer applies

Does this affect the toolchain?

NO
Links to CVEs

https://nvd.nist.gov/vuln/detail/CVE-2023-39323
https://nvd.nist.gov/vuln/detail/CVE-2023-29409
https://nvd.nist.gov/vuln/detail/CVE-2023-39318
https://nvd.nist.gov/vuln/detail/CVE-2023-39319
https://nvd.nist.gov/vuln/detail/CVE-2023-39533
https://nvd.nist.gov/vuln/detail/CVE-2023-29406
https://nvd.nist.gov/vuln/detail/CVE-2023-39325

Test Methodology

Pipeline build id: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=437720&view=results

LGTM. One request, can we run the build for all the packages that are bumped as well. I could see that only golang was built in the test pipeline.

Thanks @mfrw , all the bumped packages are built successfully, but I see some packages failed to install in test jobs, should it be a concern?
https://dev.azure.com/mariner-org/mariner/_build/results?buildId=440328&view=results
https://dev.azure.com/mariner-org/mariner/_build/results?buildId=440289&view=results

LGTM. One request, can we run the build for all the packages that are bumped as well. I could see that only golang was built in the test pipeline.

Thanks @mfrw , all the bumped packages are built successfully, but I see some packages failed to install in test jobs, should it be a concern?
https://dev.azure.com/mariner-org/mariner/_build/results?buildId=440328&view=results https://dev.azure.com/mariner-org/mariner/_build/results?buildId=440428&view=results

I think the test jobs have some known failures.

There are several changes here that seem like a merge conflict resulted in losing something, so I've called them out for you to eyeball them again.

Thanks for the comment! Those changes are intentional while merging published changes to dev branch, so I marked them as resolved.


Issues when compiling PIC to x86

Developing on a windows 10 VM and following the instructions as closely as I am able, I have been unable to successfully run a PIC executable compiled to x86. This includes my own code as well as the example code provided at the end of the documentation. While the example code doesn't run at all for me, I have been able to run my executable, but the send() function fails with error 10045 WSAEOPNOTSUPP. The non-pic version of the executable runs just fine, as well as when I compile the executable to x64 without any changes to the source code. I've taken apart the exe in a disassembler and can see where the path of execution diverges within the send() function as a result of a single value saved to the stack not being 0. Manually setting this value to 0 causes the function to execute as expected. I have yet to trace the stack frames back far enough to find out where this value is coming from, but I was hoping posting here would allow me to get a second pair of eyes on my code and compilation process.
Below is my own simple server code that I am trying to compile to x86. I have tried both WINAPI and PASCAL FAR for the calling conventions of the networking functions.
#include <stdio.h>
#include <winsock2.h>
#include <time.h>
#include <stdint.h>
#include <peb_lookup.h>
typedef struct FunctionStruct_t_s
{
  int (PASCAL FAR * _listen)(SOCKET, int);
  int (PASCAL FAR * _send)(SOCKET, char *, int, int);
  int (PASCAL FAR * _bind)(SOCKET, struct sockaddr *, int);
  int (PASCAL FAR * _closesocket)(SOCKET);
  u_short (PASCAL FAR * _htons)(u_short);
  time_t (WINAPI * _time)(time_t *);
  void (WINAPI * _exit)(int);
  int (PASCAL FAR * _WSAStartup)(WORD, LPWSADATA);
  char * (PASCAL FAR * _ctime)(time_t *);
  SOCKET (PASCAL FAR * _accept)(SOCKET, struct sockaddr *, int *);
  void * (PASCAL FAR * _calloc)(size_t, size_t);
  int (WINAPI * _printf)(char *, ...);
  void (WINAPI * _free)(void *);
  int (PASCAL FAR * _WSACleanup)();
  SOCKET (PASCAL FAR * _socket)(int, int, int);
  size_t (WINAPI * _strlen)(char *);
  DWORD (PASCAL FAR * _WSAGetLastError)();
} FunctionStruct_t;
typedef struct GlobalStruct_t_s
{
  int PORT;
} GlobalStruct_t;
void initializeWinsock(FunctionStruct_t * functions_p, GlobalStruct_t * globals_p)
{
  WSADATA wsaData;
  if (functions_p->_WSAStartup((WORD) (((BYTE) (((DWORD_PTR) 2) & 0xff)) | (((WORD) ((BYTE) (((DWORD_PTR) 2) & 0xff))) << 8)), &wsaData) != 0)
  {
    functions_p->_printf("Failed to initialize Winsock: %d\n", functions_p->_WSAGetLastError());
    functions_p->_exit(1);
  }
}

SOCKET createSocket(FunctionStruct_t * functions_p, GlobalStruct_t * globals_p)
{
  SOCKET serverSocket = functions_p->_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
  if (serverSocket == INVALID_SOCKET)
  {
    functions_p->_printf("Could not create socket: %d\n", functions_p->_WSAGetLastError());
    functions_p->_WSACleanup();
    functions_p->_exit(1);
  }
  return serverSocket;
}

void bindSocket(FunctionStruct_t * functions_p, GlobalStruct_t * globals_p, SOCKET serverSocket)
{
  struct sockaddr_in server;
  server.sin_family = AF_INET;
  server.sin_addr.s_addr = INADDR_ANY;
  server.sin_port = functions_p->_htons(globals_p->PORT);
  if (functions_p->_bind(serverSocket, (struct sockaddr * ) (&server), sizeof(server)) == SOCKET_ERROR)
  {
    functions_p->_printf("Bind failed with error code: %d\n", functions_p->_WSAGetLastError());
    functions_p->_closesocket(serverSocket);
    functions_p->_WSACleanup();
    functions_p->_exit(1);
  }
}

void listenForConnections(FunctionStruct_t * functions_p, GlobalStruct_t * globals_p, SOCKET serverSocket)
{
  if (functions_p->_listen(serverSocket, 3) == SOCKET_ERROR)
  {
    functions_p->_printf("Listen failed with error code: %d\n", functions_p->_WSAGetLastError());
    functions_p->_closesocket(serverSocket);
    functions_p->_WSACleanup();
    functions_p->_exit(1);
  }
  functions_p->_printf("Server is listening on port %d...\n", globals_p->PORT);
}

void acceptConnection(FunctionStruct_t * functions_p, GlobalStruct_t * globals_p, SOCKET serverSocket)
{
  struct sockaddr_in client;
  int c = sizeof(struct sockaddr_in);
  SOCKET clientSocket = functions_p->_accept(serverSocket, (struct sockaddr * ) (&client), &c);
  if (clientSocket == INVALID_SOCKET)
  {
    functions_p->_printf("Accept failed with error code: %d\n", functions_p->_WSAGetLastError());
    functions_p->_closesocket(serverSocket);
    functions_p->_WSACleanup();
    functions_p->_exit(1);
  }
  functions_p->_printf("Connection accepted.\n");
  time_t currentTime;
  functions_p->_time(&currentTime);
  char * timeString = functions_p->_ctime(&currentTime);
  functions_p->_printf("Time is %s", timeString);
  int32_t ret = functions_p->_send(clientSocket, timeString, functions_p->_strlen(timeString), 0);
  if ((-1) == ret)
  {
    int error = functions_p->_WSAGetLastError();
    functions_p->_printf("Send Failed with error: %d.\n", error);
  }
  else
  {
    functions_p->_printf("Sent %d bytes.\n", ret);
  }
  functions_p->_closesocket(clientSocket);
}

GlobalStruct_t *  init_GlobalStruct(FunctionStruct_t * functions_p)
{
  GlobalStruct_t * globals_p = (GlobalStruct_t * ) functions_p->_calloc(1, sizeof(GlobalStruct_t));
  if (NULL == globals_p)
  {
    goto G_CLEANUP;
  }
  globals_p->PORT = 12345;
  G_CLEANUP:
  return globals_p;

}

FunctionStruct_t *  init_FunctionStruct()
{
  FunctionStruct_t * functions_p = NULL;
  LPVOID kernel32_handle = get_module_by_name((const LPWSTR)L"kernel32.dll");
  if (NULL == kernel32_handle)
  {
    goto F_CLEANUP;
  }
  LPVOID load_lib = get_func_by_name((HMODULE)kernel32_handle, (LPSTR) "LoadLibraryA");
  if (NULL == load_lib)
  {
    goto F_CLEANUP;
  }
  LPVOID get_proc = get_func_by_name((HMODULE)kernel32_handle, (LPSTR) "GetProcAddress");
  if (NULL == get_proc)
  {
    goto F_CLEANUP;
  }
  HMODULE (WINAPI * _LoadLibraryA)(LPCSTR) = (HMODULE (WINAPI * )(LPCSTR)) load_lib;
  FARPROC (WINAPI * _GetProcAddress)(HMODULE, LPCSTR) = (FARPROC (WINAPI * )(HMODULE, LPCSTR)) get_proc;
  HMODULE ws2_32_handle = _LoadLibraryA("ws2_32.dll");
  if (NULL == ws2_32_handle)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _listen)(SOCKET, int) = (int (PASCAL FAR * )(SOCKET, int)) _GetProcAddress(ws2_32_handle, "listen");
  if (NULL == _listen)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _send)(SOCKET, char *, int, int) = (int (PASCAL FAR * )(SOCKET, char *, int, int)) _GetProcAddress(ws2_32_handle, "send");
  if (NULL == _send)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _bind)(SOCKET, struct sockaddr *, int) = (int (PASCAL FAR * )(SOCKET, struct sockaddr *, int)) _GetProcAddress(ws2_32_handle, "bind");
  if (NULL == _bind)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _closesocket)(SOCKET) = (int (PASCAL FAR * )(SOCKET)) _GetProcAddress(ws2_32_handle, "closesocket");
  if (NULL == _closesocket)
  {
    goto F_CLEANUP;
  }
  u_short (PASCAL FAR * _htons)(u_short) = (u_short (PASCAL FAR * )(u_short)) _GetProcAddress(ws2_32_handle, "htons");
  if (NULL == _htons)
  {
    goto F_CLEANUP;
  }
  HMODULE msvcrt_handle = _LoadLibraryA("msvcrt.dll");
  if (NULL == msvcrt_handle)
  {
    goto F_CLEANUP;
  }
  time_t (WINAPI * _time)(time_t *) = (time_t (WINAPI * )(time_t *)) _GetProcAddress(msvcrt_handle, "time");
  if (NULL == _time)
  {
    goto F_CLEANUP;
  }
  HMODULE ucrtbase_handle = _LoadLibraryA("ucrtbase.dll");
  if (NULL == ucrtbase_handle)
  {
    goto F_CLEANUP;
  }
  void (WINAPI * _exit)(int) = (void (WINAPI * )(int)) _GetProcAddress(ucrtbase_handle, "exit");
  if (NULL == _exit)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _WSAStartup)(WORD, LPWSADATA) = (int (PASCAL FAR * )(WORD, LPWSADATA)) _GetProcAddress(ws2_32_handle, "WSAStartup");
  if (NULL == _WSAStartup)
  {
    goto F_CLEANUP;
  }
  char * (WINAPI * _ctime)(time_t *) = (char * (WINAPI * )(time_t *)) _GetProcAddress(msvcrt_handle, "ctime");
  if (NULL == _ctime)
  {
    goto F_CLEANUP;
  }
  SOCKET (PASCAL FAR * _accept)(SOCKET, struct sockaddr *, int *) = (SOCKET (PASCAL FAR * )(SOCKET, struct sockaddr *, int *)) _GetProcAddress(ws2_32_handle, "accept");
  if (NULL == _accept)
  {
    goto F_CLEANUP;
  }
  void * (WINAPI * _calloc)(size_t, size_t) = (void * (WINAPI * )(size_t, size_t)) _GetProcAddress(ucrtbase_handle, "calloc");
  if (NULL == _calloc)
  {
    goto F_CLEANUP;
  }
  int (WINAPI * _printf)(char *, ...) = (int (WINAPI * )(char *, ...)) _GetProcAddress(msvcrt_handle, "printf");
  if (NULL == _printf)
  {
    goto F_CLEANUP;
  }
  void (WINAPI * _free)(void *) = (void (WINAPI * )(void *)) _GetProcAddress(msvcrt_handle, "free");
  if (NULL == _free)
  {
    goto F_CLEANUP;
  }
  int (PASCAL FAR * _WSACleanup)() = (int (PASCAL FAR * )()) _GetProcAddress(ws2_32_handle, "WSACleanup");
  if (NULL == _WSACleanup)
  {
    goto F_CLEANUP;
  }
  SOCKET (PASCAL FAR * _socket)(int, int, int) = (SOCKET (PASCAL FAR * )(int, int, int)) _GetProcAddress(ws2_32_handle, "socket");
  if (NULL == _socket)
  {
    goto F_CLEANUP;
  }
  size_t (WINAPI * _strlen)(char *) = (size_t (WINAPI * )(char *)) _GetProcAddress(msvcrt_handle, "strlen");
  if (NULL == _strlen)
  {
    goto F_CLEANUP;
  }
  DWORD (PASCAL FAR * _WSAGetLastError)() = (DWORD (PASCAL FAR * )()) _GetProcAddress(ws2_32_handle, "WSAGetLastError");
  if (NULL == _WSAGetLastError)
  {
    goto F_CLEANUP;
  }
  functions_p = (FunctionStruct_t * ) _calloc(1, sizeof(FunctionStruct_t));
  if (NULL == functions_p)
  {
    goto F_CLEANUP;
  }
  functions_p->_listen = _listen;
  functions_p->_send = _send;
  functions_p->_bind = _bind;
  functions_p->_closesocket = _closesocket;
  functions_p->_htons = _htons;
  functions_p->_time = _time;
  functions_p->_exit = _exit;
  functions_p->_WSAStartup = _WSAStartup;
  functions_p->_ctime = _ctime;
  functions_p->_accept = _accept;
  functions_p->_calloc = _calloc;
  functions_p->_printf = _printf;
  functions_p->_free = _free;
  functions_p->_WSACleanup = _WSACleanup;
  functions_p->_socket = _socket;
  functions_p->_strlen = _strlen;
  functions_p->_WSAGetLastError = _WSAGetLastError;
  F_CLEANUP:
  return functions_p;

}

int main()
{
  FunctionStruct_t * functions_p = NULL;
  functions_p = init_FunctionStruct();
  if (NULL == functions_p)
  {
    goto F_CLEANUP;
  }
  GlobalStruct_t * globals_p = NULL;
  globals_p = init_GlobalStruct(functions_p);
  if (NULL == globals_p)
  {
    goto G_CLEANUP;
  }
  initializeWinsock(functions_p, globals_p);
  SOCKET serverSocket = createSocket(functions_p, globals_p);
  bindSocket(functions_p, globals_p, serverSocket);
  listenForConnections(functions_p, globals_p, serverSocket);
  while (1)
  {
    acceptConnection(functions_p, globals_p, serverSocket);
  }

  functions_p->_closesocket(serverSocket);
  functions_p->_WSACleanup();
  functions_p->_free(globals_p);
  G_CLEANUP:

  functions_p->_free(functions_p);
  F_CLEANUP:

  return 0;
}

I compile the code as below, using the x86 version of the VCVars bat file loaded into my environment:
$> cl /c /FA /GS- .\output\server\server.c /I .\src
$> .\build\masm_shc\Debug\masm_shc.exe server.asm pic_server.asm
$> ml /c pic_server.asm
$> link pic_server.obj /ENTRY:main

The output from my code being executed is below:
Server is listening on port 12345...
Connection accepted.
Time is Fri Jun 07 23:08:01 2024
Send Failed with error: 10045.

I'm building masm_shc as so:
cmake -G "Visual Studio 17 2022" -A Win32 .
cmake --build .

I have been unable to successfully run a PIC executable compiled to x86. This includes my own code as well as the example code provided at the end of the documentation.

@2Trepidatious  - I just checked quickly my example code, and TBH I didn't have any problems running it. My system is Windows 10 Enterprise (10.0.19045). The resulting shellcode (plus the executable) that I've got is attached below:
knock32.zip
And this is how it looks in action. The Python script knocks to the ports in a particular order, and the shellcode does exactly what it is supposed to, sending the expected response, and exiting upon the sequence completion:

As I understood you have problems with this particular demo, right? So please check it out and let me know if it works for you. I will check your code soon, and let you know.

@2Trepidatious  - ok. so I refactored your code a bit - mostly the initialization of the functions  (I tried not to interfere in it more than necessarily). Here is the snippet: https://gist.github.com/hasherezade/26f3ae0316337cf97e04bd0b578cea50
Check it out, it should work now. I tested it and it worked for me.

Attaching the shellcode:
issue32_A.zip


unrestricted lookbehind

This pull request implements unrestricted lookbehind for odin's surface patterns.
We achieve this by matching the pattern right to left.

Can you please add a unit test for this?

@myedibleenso I had to make a few changes to the tests. Let's talk when you get to the lab.

@MihaiSurdeanu, I think we have something like 11 tests for this feature now.  Are we ready to merge this?


Add all annotation generation helper scripts

[x] melody annotation generator script
[ ] Instrument Activation script

I ported the instrument activation script and will commit soon.

How would you prefer the corresponding tests to be designed? Testing against the already existing annotations?

Are the instrument activation annotations completely machine generated or were they user corrected?

@faroit:

How would you prefer the corresponding tests to be designed? Testing against the already existing annotations?

Yes - I think it'd be ideal to test against the existing annotations. I did something similar for the melody annotations here.
One caveat - the activations for multitracks with has_bleed=True were computed with separate files that were first source-separated. So, in the unit test, only test it on multitracks with has_bleed=False and ignore the others for now.

Are the instrument activation annotations completely machine generated or were they user corrected?

Completely machine generated. One day they should probably be user corrected, or at least verified...

:+1: roger that

Working on it now.
It would be helpful to have working branch aka where tests do not fail. Could you fix the medleydb_v1.2 branch?
Currently I am getting ImportErrors:
ImportError: No module named medleydb

======================================================================
ERROR: Failure: ImportError (No module named medleydb)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/stf_remote/repositories/medleydb/tests/test_utils.py", line 4, in <module>
    import medleydb
ImportError: No module named medleydb

@rabitt do you need help fixing the v.1.2 branch so that it passes travis?

Yes sorry about this! Will fix it today.
On Tuesday, September 27, 2016, Fabian-Robert Stöter <
<EMAIL_ADDRESS>wrote:

@rabitt https://github.com/rabitt do you need help fixing the v.1.2
branch so that it passes travis?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/marl/medleydb/issues/25#issuecomment-249829195, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHypc7_v_w1MInumXEKtyz2MbXF8PeQbks5quPJZgaJpZM4HFMOf
.

@faroit It looks like the tests are fine - there was just a "pending check" from Review Ninja which I'm disabling. Am I missing something?

runs fine now here on my machine as well... was a problem with nosetests... pytest is so much more robust ;-)
Anyway, now I don't have the dataset with me, but will add a WIP tomorrow

another questions: For now I use scipy.signal and librosa to compute the activations. This would add quite a bit of additional dependencies. Thinking about this, I feel that the medleydb/annotate dir might be better outside the main medleydb module path.
Also this would make sense to me, because you are only calling the generate_*.py functions from your unit tests. So: I would propose moving annotate to a separate directory like scripts and add the additional dependencies like scipy to the test environment in setup.py
@rabitt @bmcfee what do you think?

I'm not so opposed to adding dependencies. I guess my preference would be to either keep it as is, adding the two dependencies, or alternatively to create a separate module entirely for generating automatic annotations on a multitrack.

uh, another questions: to test the activations I need to read the wav files

Is it okay to add pysoundfile as dependency? would also come in handy: I could add an audio reader method as well so that users can get the audio instead of just the path
How to test this? Is testing against the medleydb samples set okay? Travis should then download this first. @rabitt Can you add this to the .travis.yml and/or a fetch shell script?

Can you explain why this is needed? If possible I'd prefer to just rely on librosa's audio reader
yes using the medleydb samples is ok. Instead of having travis download them, what about making a very short version of one of them (say, 5-10 seconds) and adding it to tests/data? There are still tests I need to write, and having a mini-multitrack there for testing will be useful in general.

things are getting more concrete in #49 now


[1.19.2] InterceptOnHit crash

wanted to bring awareness of this crash a player has received that corrupted their chunk in a older version of my modpack, AQM2.
https://github.com/itsdinkd/AQM2/issues/158
not sure if this was fixed or not with later versions of soulslike

Has been fixed, was caused by firing an arrow without an owner, for example through a dispenser.


ENH: Add Convolutional Neural Network Models

This PR is a resubmission of #72 after fixing some style issues and using git filter-repo to remove some checkpoint and weights files from the history.

Phew, ignore the massive number of commits above. I rebased and now there are only 13 commits.

I believe that once #85 is merged this will be ready to go.


Error on Documentation for GF Intro Screen

Describe the bug
Missing documentation. The documentation for the intro screen is incomplete. The first part (Part with Stateful widget) and the 2nd part (beginning of state) is not included in the documentation. I'll look around to see if I can find a fix and make a PR
Take a look at the code on this page:
https://docs.getwidget.dev/gf-intro-screen/
To Reproduce
Steps to reproduce the behavior:

Go to https://docs.getwidget.dev/gf-intro-screen/
Look at the beginning of code
Code is missing Stateful Widget declaration and State declaration

Related to #225
Expected behavior
There should be a class that extends stateful widget
Screenshots

PR created in documentation https://github.com/ionicfirebaseapp/getwidget-docs/pull/28

Thanks we have update Docs.


Added overload to DismaxQueryDescriptor's Queries method to take QueryContainer[]

This allows it to act like other descriptors that get formatted into an array, such as Bool Query's Should, if you've already composed your QueryContainers elsewhere.

LGTM.  Thanks @xueye !


Expand scratch size to accommodate 2k context.

This should fix #29. Users shouldn't worry about scratch size. I just make it large enough for context up to 2k tokens.

2k is far from enough......

Fixed in #305. With the latest release (v0.4.0), memory allocation is on demand. No need to preset max scratch size and memory size.


Print in card format

Print information in card format instead of just strings

Working on this now

Did in this push: 1796afad76496f21758f0117c0080fe4b7b3ac8a


METALINK WEBSITE

Project title
METALINK_NFT
Project Description
A WEBSITE MADE FOR NFT AND ARTS
Web stack
HTML , CSS , JAVASCRIPT
Screenshot(mandatory)

Are you contributing under any open-source program ?
CODEPEAK 23

@GAGANRAGHAV We already have a NFT website in this repo .So sorry this issue can't be assigned.


multi-protocol access

Can you provide access to RocketMQ, RabbitMQ, ActiveMQ, etc.;

What does providing access to these MQs mean? I am closing this issue because it is not clear. Feel free to reopen it with clarification.