added asynchronous deletion for engagements, tests, and products.

This can take a long time to process depending on database size and
scoping and this makes it much less painless with the tradeoff that you
might see data disappear over time. Ideally a "pending deletion" flag
would be set in the top level engagement, product, or test..

I love this idea, but I wonder if making this a System Setting would be better. My biggest gripe with the delete page is how long the GET request takes to render with larger datasets. Waiting to click the async button until after the page is full rendered does not save the user much time.

And the api would need to support async deletes too.

I can work on that. The get taking forever is also my biggest gripe but I
was going to see what this reception was like first.
How about two system settings:

No dangerzone
Asynchronous deletes default ?

I’d like to have a “I know what I am doing here and I don’t want you tell
me about all the findings related to things just delete the stuff please
thank you”
On Fri, Jan 14, 2022 at 10:21 AM valentijnscholten @.***>
wrote:

And the api would need to support async deletes too.
—
Reply to this email directly, view it on GitHub
https://github.com/DefectDojo/django-DefectDojo/pull/5744#issuecomment-1013218557,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD6TYSCCTQQ7RAGXVLNCDCDUWA5P3ANCNFSM5L5S63QQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

making some notes:
It appears I'm not the only person and this is not the only project that suffers from this issue:
https://code.djangoproject.com/ticket/10919
Looks like Django is now supporting something called ASGI or planning it? I'm not a django expert
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/

Im nervous about the no danger zone setting. A simple misclick could totally ruin somebodies day. Another approach that would could incorporate the async delete would be to display the danger zone, but do not query the DB for the objects that are about to be deleted. That would allow for a fast danger zone, and scheduled delete that could take a while.
I have no idea if that is possible, but could be worth exploring

Looks like Django is now supporting something called ASGI or planning it? I'm not a django expert https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/

That is about non-blocking IO which is not the same as doing something async.

Another approach that would could incorporate the async delete would be to display the danger zone, but do not query the DB for the objects that are about to be deleted. That would allow for a fast danger zone, and scheduled delete that could take a while.

The danger zone could be 2 steps.

Display the danger zone page with only text. Two buttons: a) display related items to be deleted b) yolo, just delete all the things
optional page which displays the related items similar to what we have currently -> confirm -> delete all the things

I think @valentijnscholten 's 2 step approach is the best I've seen so far on this thread.  Allows for confirmation and YOLO if you want or details if that's more your thing.

I agree. Sometime you really want to delete a product and everything behind (when you test, etc...) and sometime you really want to see what ill be deleted.
Maybe we could just give hint like the number of objects that the confirmation will delete.
Like "You will destroy 56798 object(s), do you confirm this action?" is not the same as "You will destroy 2 object(s), do you confirm this action?" :D

Hey guys, I tried to get the integration/unit tests working on this PR. But I'm getting unrelated failures (first something about a JIRA check failing and now test_login). Can someone please help me figure out a fast track to running unit tests?
Thanks

Here are some docs on running the unit tests https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/DOCKER.md#run-the-tests-with-docker

It appears that #6183 duplicates this effort and has been merged in. woohoo!


Add yarn.lock to ensure reproduceability

As this repository's purpose is to demonstrate interoperability and as such things can unexpectedly break in minor versions, having a lock file would be beneficial

Good point. We should add also package-lock.json
LGTM


[Go Live][Oct 10]

Push to live

Learn Build status updates of commit 773bbfc:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: CannotMergeCommit] Cannot merge commit 773bbfce54e9035dd9dedaa5b63f488a71bebe38 in branch main of repository https://github.com/MicrosoftDocs/msteams-docs into branch live (commit 38f1c9ac86c865b1fde6e2f442f826ba545acaa1). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 85013cc:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/assets/images/sbs-workflow-bot/error-message-response.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/new-for-all.gif
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/replace-for-all.gif
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/replace-for-interactor.gif
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sample-card-action-response.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-action-card.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-action-response.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-add- local-debug.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-add-app.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-app-name.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-base-card.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-capabilities-workflow.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-card-action-handler-diag.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-create.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-customize installation.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-debugging.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-debug-output1.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-debug-output2.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-final-output.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-local-debug.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-local-debug1.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-program-lang.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-scaffolding1.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-scaffolding2.png
:white_check_mark:Succeeded
View

msteams-platform/assets/images/sbs-workflow-bot/sbs-workflow-bot-teams-app.png
:white_check_mark:Succeeded
View

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


How to move from a button to another tab?

So i made a button to move to another tab, but i don't know how to move it. Does this package have some trigger or something? Because i can't use Navigator.push or similiar

Hi @yaffalhakim1
Can you give me an example of what you are trying to do?

so after i click this button

i wanna move to this tab

how can i do that? because i cannot use navigator.push

This issue is not related with buttons_tabbar, however, to achieve what you're trying to do, I'd create a TabController and provide it to ButtonsTabBar controller property.
Then, you could navigate to a different tab using the method animateTo from the TabController.

thank you for the help!


init Token and IP auth

Couldn't test it compeletly.
tested: blocks /api/storage/new_file when authentication credentials are not provided

Needs review again! :)

@akmohtashami
I think it is better now.


feat: use components@4

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


Fix/autolayout sizing

The Save Button in AdminCitySectionEditScreen does not scale correctly. Here's Figma:

Here's the conversion:

In addition, it seems like the orca city icon box is shrinking as you can see in the overflow of the image above 🤔

Also, it seems like the login screen is still faulty for the constraints:

Another thing I noticed, that I'm not sure if it has to do with AutoLayout constraints is that when you scale horizontally, the cities in the header stay together:

However, on the generation, as you scale horizontally, the cities become more separated:

Another thing I hadn't noticed is the text getting cut off 🤔 Also not sure if that has to do with AutoLayout

The save button is still not scaling properly 🤔
Here's the gen:

And here's the figma file when scaling:

Also, we're still receiving that overflow in the images in the header when scaling down


Added a navigation bar and some skeleton static pages

Looking great!!

Note: I accidentally added the model commit to this PR.


Apple TV is found twice - plugin fails

After I first couldn't discover my AppleTV at all (see #9) it seems like the plugin is discovering my AppleTV twice now :)
This causes the plugin to crash homebridge because it tries to create two pair switches with the same name:
[2018-4-6 18:11:35] [Apple TV] [INFO] Discovered Apple TV (Apple TV) at <IP_ADDRESS>
[2018-4-6 18:11:35] [Apple TV] [INFO] Added pair switch for Apple TV (Apple TV) at <IP_ADDRESS>
[2018-4-6 18:11:35] [Apple TV] [INFO] Discovered Apple TV (Apple TV) at <IP_ADDRESS>
[2018-4-6 18:11:35] [Apple TV] [INFO] Added pair switch for Apple TV (Apple TV) at <IP_ADDRESS>
[2018-4-6 18:11:35] [Apple TV] [INFO] Connecting to "Apple TV"
[2018-4-6 18:11:35] [cmdSwitch2] 3D Drucker is off.
[2018-4-6 18:11:36] [Apple TV] [INFO] Connected to "Apple TV"
[2018-4-6 18:11:36] [Apple TV] Initializing platform accessory 'Pair Apple TV'...
[2018-4-6 18:11:36] [Apple TV] Initializing platform accessory 'Pair Apple TV'...
[2018-4-6 18:11:36] [Apple TV]

causing this:
(node:8016) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: f958068f-b583-49f2-bd3b-5f17f6e254b6
(node:8016) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This happens with a clean homebridge with only the Apple TV plugin enabled.
Edit: When I get the credentials manually using the command line tool and set the setEnablePairSwitches to false the plugin works as expected.

Using the appletv command line tool, check the referenced issue.

Sorry, where do you set the option to disable automatic discovery?
config.json of Homebridge? Should be in the AppleTV platform section right?

I had a similar problem and resolved it by adding "showPairSwitches": false to my config.json

Hi @normen: "Using the appletv command line tool, check the referenced issue.". Can you please add a link? Thanks in advance ..

Hi @MsCopernic, can you look at the first post for the link? Thanks in advance...

Hi @normen, thanks, after installing the command tool, I'm getting the following error:
iMac-de-Jorge:~ jorgelperez$ appletv pair
? Which Apple TV would you like to pair with? Alcoba (<IP_ADDRESS>:49154)
✔ Connecting to Alcoba
✔ Initiating Pairing
? Enter the 4-digit pin that's currently being displayed on Alcoba 0864
✖ Completing Pairing
Cannot read property 'toString' of undefined
iMac-de-Jorge:~ jorgelperez$
Any idea?
Regards

Hi @MsCopernic, it looks like it can't read the property "toString" of a nullpointer.

Yup, that's clear for me @normen, but from where and why? How do I fix this problem?

Hi @normen, I tried again today and it worked ??? I have made no changes. Thanks anyway.

As said before or some where else, the AppleTV responds so fast, that they is/are detected twice:
❯ Alcoba (<IP_ADDRESS>:49154)
Estudio Merce (<IP_ADDRESS>:49154)
Alcoba (<IP_ADDRESS>:49154)
Estudio Merce (<IP_ADDRESS>:49154)
The only difference from what I did yesterday, is that this time I selected the ones from the second detection. I assume that if you choose the first ones, the information from that detection is gone, that may conduce to the null pointer error.
Regards

I also encountered this issue on my Pi and resolved it via the suggestions above.  I found the manual pairing process to be a bit confusing at first, so if it helps anyone:
First I found the file location of the plugin on my Pi.  For me it was: /usr/lib/node_modules/homebridge-apple-tv/node_modules/node-appletv/bin
Then I opened up a terminal window from that folder location and ran: cd node_modules/node-appletv/bin
Then I ran: ./appletv pair
My AppleTV popped up twice - I chose to pair with the second one and followed the on-screen prompts.
Lastly, I added "showPairSwitches": false to my config file directly under the "platforms" section and pasted the pairing code I got above into the appropriate credentials place.

So I'm getting this error and Homebridge not starting I have followed the above posts and paired my ATV manually but HB still will not start. Here is the error message and the part of my config file:
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Discovered Apple TV (Crox Apple TV 4K) at <IP_ADDRESS>
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Discovered Apple TV (Crox Apple TV 4K) at <IP_ADDRESS>
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Connecting to "Apple TV 4K"
[3/13/2019, 9:23:25 PM] [Apple TV] [INFO] Connected to "Apple TV 4K"
(node:4142) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of undefined
at connectToDevices (/usr/local/lib/node_modules/homebridge-apple-tv/helpers/devices.js:31:29)
(node:4142) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4142) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
{
"platform": "AppleTV",
"showPairSwitches": false,
"name": "Apple TV",
"hideWelcomeMessage": true,
"devices": [{
"id": "lounge",
"name": "Apple TV 4K",
"credentials": "2ECA59F4-7BE6-441B-9F82-8CD602C5A657:30323445354434432d384630412d343342442d423044432d354235364535334635303236:33336133643661352d383663392d343961322d393365322d316139316438346666383064:0a885827cf204e1ae151a4530cf4b91fad22ee0b9c3b0290823fb6e3839ae72f:6295837a2dd0d0d34cc05af55bf69e41e9f64632c1d9e691b69a47db291da41c"
},
Any more ideas please?

Fixed it, changed the name of Apple TV and now working


error attempting to create new scala3 project from this template from within WSL2 Ubuntu

Hi!
Relatively new scala dev here, trying to get my development environment to a more workable state.
for my environment my pc is running Windows 11 and I am trying to do most of my development on the Windows Subsystem for Linux (wsl) 2 environment. for my linux OS I chose Ubuntu 22.04.1 LTS (Jammy Jellyfish).
I followed the instructions on the Getting Started page Getting Started | Scala Documentation, using the linux curl command to download coursier and then run cs setup. This gets me to a point where the cli output indicates I have ammonite, the scala3 compiler, sbt, coursier, scala, scala-cli, sbtn, and scalafmt locally.
Then I get to the next step in the setup instructions to create a new scala3 project in an empty directory and this is where I run into a problem. I run sbt new scala/scala3.g8 in my terminal and get the below output (redacting out my home directory and replacing with ):
(base) ➜ why-func-matters sbt new scala/scala3.g8
[info] entering *experimental* thin client - BEEP WHIRR
[info] server was not detected. starting an instance
[warn] No sbt.version set in project/build.properties, base directory: <my home dir>/code/scala_projects/why-func-matters
[info] welcome to sbt 1.8.0 (Amazon.com Inc. Java 17.0.2)
[info] set current project to why-func-matters (in build file:<my home dir>/code/scala_projects/why-func-matters/)
[info] sbt server started at local:///<my home dir>/.sbt/1.0/server/e07e166e6e98dd380606/sock
[info] terminate the server with `shutdown`
> new scala/scala3.g8
Error: Unknown argument 'sbtCompleteExec f86f6c4f-9466-4138-b098-0978b0057e7a'
Error: Unknown argument 'resumeFromFailure'
Error: Unknown argument 'sbtPopOnFailure'
Error: Unknown argument 'sbtReportResult f86f6c4f-9466-4138-b098-0978b0057e7a'
Error: Unknown argument 'shell'
Try --help for more information.
[info] disconnected

So it starts up the sbt server, attempts to run the template and then errors out citing several unknown arguments with a guuid I don’t recognize. doing as advised and running the command with --help only brings up the sbt command documentation. I wondered if it was succeeding anyway, but when I checked what was generated, I only have a project/, target/, and .bsp directory so it didn’t end up generating that src/main/scala/Main.scala and build.sbt etc. I was hoping for.
when I manually create the pieces of the template I’m missing I can perform an sbt run and get it to execute the main method, so I’ve at least ruled out it being an issue with compilation and running of scala programs. I can also import the build into vscode with metals and work with it there. I just don’t know why the template is not working with sbt. It is not limited to scala/scala3.g8, I have this issue with every giter template I’ve tried.
Can you help me determine if this is an issue with my local environment or if this and other giter templates are not well supported yet for wsl2?

follow up here. Spent some time on the scala community discord with some very helpful fellows. Their troubleshooting suggestions led me to this point with this issue:
the difference between my environment setup and theirs was that for some reason mine was causing the sbt bash script (that I guess GraalVM was generating for my wsl2 env? don't quote me on that) to enter the sbtn thin client by default instead of using an sbt server to run the template command.
if you add the --server flag in my situation, then the giter8 template was working correctly.
I'm going to go ahead and close this as the issue was resolved for me, but it is probably worth investigation by the sbt team why their script runs in the thin client by default for ubuntu 20.04 on wsl2 (unless that is expected behavior in which case it would be nice as a user to know this, as I think the instructions for getting started in scala3 on the scala official docs pages suggested using wsl2 if I was a Windows user and made no mention of using --server).


Added the token api_auth type

Hey guys, first things first: thanks for this great gem!
It would be quite useful to have a new token authentication type,
which follows the Rails convention. So the Authorization header
looks like this:
Authorization: Token token="WCZZYjnOQFUYfJIN2ShH1iD24UHo58A6TI"

This PR allows the usage of this authentication.

Needs tests and CHANGELOG please.

on my way :)

What about tests. There're actually working tests for these scenarios in https://github.com/ruby-grape/grape-swagger-rails/blob/master/spec/features/swagger_spec.rb#L84. Thanks!

I close this PR due to the long delay of my side and due to the fact that my organization has now a bunch of apps which use my fork/master version which would break on all sides when I squash the commits. Follow up: https://github.com/ruby-grape/grape-swagger-rails/pull/86


python35Packages.tornado fails to build

Issue description
This is the traceback:
Traceback (most recent call last):
  File "nix_run_setup.py", line 6, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 173, in <module>
    **kwargs
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/nix/store/0wq9m1x1yx2bgin1cxbv71q24m6v1j83-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 159, in run
  File "/nix/store/0wq9m1x1yx2bgin1cxbv71q24m6v1j83-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 140, in with_project_on_sys_path
  File "/nix/store/0wq9m1x1yx2bgin1cxbv71q24m6v1j83-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 180, in run_tests
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/main.py", line 93, in __init__
    self.parseArgs(argv)
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/main.py", line 123, in parseArgs
    self._do_discovery([])
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/main.py", line 228, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/loader.py", line 341, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/loader.py", line 398, in _find_tests
    full_path, pattern, namespace)
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/loader.py", line 475, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/nix/store/0wq9m1x1yx2bgin1cxbv71q24m6v1j83-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/loader.py", line 190, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/nix/store/0wq9m1x1yx2bgin1cxbv71q24m6v1j83-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/platform/windows.py", line 7, in <module>
    import ctypes.wintypes
  File "/nix/store/ggig9ccdxx7wfvkjjdv2rrk3878q5nhj-python3-3.5.1/lib/python3.5/ctypes/wintypes.py", line 20, in <module>
    class VARIANT_BOOL(ctypes._SimpleCData):
ValueError: _type_ 'v' not supported

doing anything with tornado/platform/windows.py seems obviously wrong.
Python3.4 seems to build fine.
This causes a build failure for reverse-depends packages like urllib3... urllib3's tests are disabled on Python3, and tornado is only a test dependency, which can thus be safely removed.
I also tried to upgrade to Tornado 4.3, but the error is still there.
I tried to simply remove the tornado dependency by overriding it with
urllib3_ = pkgs.stdenv.lib.overrideDerivation pkgs.python35Packages.urllib3 (oldAttrs: {
  nativeBuildInputs = with pkgs.python35Packages; [ coverage mock nose ];
});

But I get this weird error:
cat: test-requirements.txt: No such file or directory
building
usage: nix_run_setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  or: nix_run_setup.py --help [cmd1 cmd2 ...]
  or: nix_run_setup.py --help-commands
  or: nix_run_setup.py cmd --help

error: invalid command 'bdist_wheel'

(I sorted it out by completely duplicating the urllib3 definition, if you have any suggestions, please chime in)
Steps to reproduce
nix-env -f '<nixpkgs>' -iA python35Packages.tornado

Technical details

System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)

Ubuntu 16.04

Nix version: (run nix-env --version)

nix-env (Nix) 1.11.2

Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)

git trunk

This works for me on master, but have run in to this very same problem. Very weird.

cc @FRidh

@berdario can you give a specific revision/commit of the nixpkgs repo?
It builds fine with a14decf65557ac83f0b02ef8b911b3e1f29c097b
By the way, why are you installing tornado to your profile? If you want to test a package I recommend you use nix-shell -p python35Packages.tornado --pure

@FRidh I'm using nix-env -i because nix-shell doesn't have the -f flag (which I'm using in this case for example to select the nixpkgs clone, which I added to NIX_PATH as <nixtrunk>)
My nixpkgs was at commit 48972763c86066c, I just git pulled and the problem also happens at 81cedab4f1fe95, as well as a14decf
I presume that maybe the tornado tests aren't properly isolated/reproducible and will fail on a Ubuntu system while running fine on Nixos?

@berdario I see. Maybe of interest to you is nix-shell -I nixpkgs=/path/to/repo
I'm building packages in a chroot.
This is an interesting problem. Do you have any packageOverrides in your $HOME/.nixpkgs/config.nix?

Indeed, I have a few. This is my config.nix

it happens more often that we encounter Windows-only "bugs" with Python packages on Nix.  A couple of times I encountered Pandas bugs which are reported upstream as only to happen with Windows.
It seems to happen when searching for unit tests. Since the setuptools upgrade the unittest test runner is quite aggressive with trying to find tests. I've seen before differences in its behavior between the Python versions.
Could you try with pytest?
buildInputs = with self; [ pytest ];
checkPhase = ''
  py.test
'';

I'll try it when I'll get back at my computer... But where should I add the py. Test dependency? To my project shell.nix? Or to tornado's definition in my nixpkgs clone?
Sent from mobile. Please excuse my brevity.

Tornados expression in nixpkgs
On Apr 13, 2016 9:31 AM, "berdario"<EMAIL_ADDRESS>wrote:

I'll try it when I'll get back at my computer... But where should I add
the py. Test dependency? To my project shell.nix? Or to tornado's
definition in my nixpkgs clone?
Sent from mobile. Please excuse my brevity.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/14634#issuecomment-209275825

Indeed, it seems that the error disappears, but there are even more failures in other parts of the test suite:
https://gist.github.com/anonymous/7c7c58620b7b96aca8e4f7dfcd73c37f

That's unfortunately often the case when changing test runner.
What I don't like is that the behaviour is different with Nix than on
NixOS. Did you enable Nix Chroot. If not, please do so and try again
without pytest.
On Apr 13, 2016 10:16 AM, "berdario"<EMAIL_ADDRESS>wrote:

Indeed, it seems that the error disappears, but there are even more
failures in other parts of the test suite:
https://gist.github.com/anonymous/7c7c58620b7b96aca8e4f7dfcd73c37f
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/14634#issuecomment-209296839

You mean this chroot?
https://github.com/lethalman/nix-user-chroot

With nix-env you can use.
--option build-use-chroot true
You can also set this option in your nix.conf
On Apr 13, 2016 11:16 AM, "berdario"<EMAIL_ADDRESS>wrote:

You mean this chroot?
https://github.com/lethalman/nix-user-chroot
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/14634#issuecomment-209326155

Uhm, the nix installer doesn't setup users and groups... I haven't been able to find the instructions to do it in the nixos manual.
I adapted the instructions from the ones specified in the Guix manual
and I executed
 sudo (which nix-env) -I nixpkgs=/home/dario/nixpkgs -f '<nixpkgs>' -iA python35Packages.tornado --option build-use-chroot true

But I get the same error

FWIW, I suspect that running a chrooted nix-env build under sudo borked up multiple files on my system.
~/.config/fish/fishd.myhostname got owned by root, and I get a permission denied when opening /nix/store/l6r885vrcpjfbjdnf8xyd59zi1gp7scq-myproject.lock (when running nix-shell myproject.nix)

I have a very similar issue. I attempt a build via nix-env -iA nixos.python35Packages.tornado but it fails with
File "/tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/platform/kqueue.py", line 23, in <module>
    assert hasattr(select, 'kqueue'), 'kqueue not supported'
AssertionError: kqueue not supported
builder for ‘/nix/store/s32ylw2jql4fbphb1fyzlgrldmn5bmig-python3.5-tornado-4.2.1.drv’ failed with exit code 1
error: build of ‘/nix/store/s32ylw2jql4fbphb1fyzlgrldmn5bmig-python3.5-tornado-4.2.1.drv’ failed

A bit of googling reveals that kqueue is a BSD system call. Linux uses epoll instead. Maybe the build system has a messed-up OS check somewhere?

@benthor do you have more you can show? Did it fail during building, or during testing?
Tornado imports select, and uses hasattr do determine whether epoll exists or kqueue.
https://github.com/tornadoweb/tornado/blob/v4.2.1/tornado/ioloop.py#L237
Apparently that succeeds, so it imports code from Tornado's kqueue module, where it checks again whether kqueue is available, but now it fails
https://github.com/tornadoweb/tornado/blob/v4.2.1/tornado/platform/kqueue.py#L23

I apologize. Posting more of the relevant output:
patching script interpreter paths in /nix/store/vh6a5wf3p5wmx3nxw601mnxh3gahg0x5-python3.5-tornado-4.2.1
running install tests
running test
running egg_info
writing dependency_links to tornado.egg-info/dependency_links.txt
writing top-level names to tornado.egg-info/top_level.txt
writing tornado.egg-info/PKG-INFO
reading manifest file 'tornado.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/build'
warning: no files found matching 'tornado/test/README'
writing manifest file 'tornado.egg-info/SOURCES.txt'
running build_ext
building 'tornado.speedups' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/include/python3.5m -c tornado/speedups.c -o build/temp.linux-x86_64-3.5/tornado/speedups.o
tornado/speedups.c:44:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
 PyInit_speedups() {
 ^
gcc -pthread -shared -L/nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/lib -L/nix/store/ymjf7jwbg1xidafhksi9csqzfsb02zqx-bzip2-1.0.6/lib -L/nix/store/gjiakvrh8d8pvsagqqb42c6l7hc4gf9l-xz-5.2.2/lib -L/nix/store/93kinhj1zraz7i9rs2m767bcfdmpsd0j-gdbm-1.11/lib -L/nix/store/h9if01ddhdlnjd1j78rnzq7pdd3mflf9-sqlite-3.11.1/lib -L/nix/store/gdy1s8lc4x3w5daq9x74cr7nnvqh2wz3-db-5.3.28/lib -L/nix/store/8zai681fnx52v4kadm4mq9jzd7vlqzav-readline-6.3p08/lib -L/nix/store/frv0qy52hk6vv1fn6nh7m4grw7qxsydy-ncurses-5.9/lib -L/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r/lib -L/nix/store/3qli17qx3lkmfagpkn0m5qrwjzlcijg0-tcl-8.6.4/lib -L/nix/store/m09zga9nk42cnjff4j3zszilnfx3kpch-tk-8.6.4/lib -L/nix/store/0nyp0fxp6pa8r6y2zg5rwxlcjddafcp6-libX11-1.6.3/lib -L/nix/store/f69f8c8jn84nczk8kpcbmwk5wm91p6bg-xproto-7.0.28/lib build/temp.linux-x86_64-3.5/tornado/speedups.o -L/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib -lpython3.5m -o /tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/speedups.cpython-35m-x86_64-linux-gnu.so
Traceback (most recent call last):
  File "nix_run_setup.py", line 6, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 173, in <module>
    **kwargs
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/nix/store/8qi91pnjxk49s3nzgs2y4xqnrwpraxsl-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 159, in run
  File "/nix/store/8qi91pnjxk49s3nzgs2y4xqnrwpraxsl-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 140, in with_project_on_sys_path
  File "/nix/store/8qi91pnjxk49s3nzgs2y4xqnrwpraxsl-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 180, in run_tests
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/main.py", line 93, in __init__
    self.parseArgs(argv)
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/main.py", line 123, in parseArgs
    self._do_discovery([])
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/main.py", line 228, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/loader.py", line 341, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/loader.py", line 398, in _find_tests
    full_path, pattern, namespace)
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/loader.py", line 475, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/nix/store/8qi91pnjxk49s3nzgs2y4xqnrwpraxsl-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/loader.py", line 190, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/nix/store/8qi91pnjxk49s3nzgs2y4xqnrwpraxsl-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
  File "/nix/store/ln2cn6g6rf116vaq1fgngaqzpzfq495x-python3-3.5.1/lib/python3.5/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/platform/kqueue.py", line 23, in <module>
    assert hasattr(select, 'kqueue'), 'kqueue not supported'
AssertionError: kqueue not supported
builder for ‘/nix/store/s32ylw2jql4fbphb1fyzlgrldmn5bmig-python3.5-tornado-4.2.1.drv’ failed with exit code 1
error: build of ‘/nix/store/s32ylw2jql4fbphb1fyzlgrldmn5bmig-python3.5-tornado-4.2.1.drv’ failed

Is this more informative?

Thanks. So this is also in the checkPhase.

Tests of Tornado have been disabled for now (5b782924c1dc9d66d7aefaf99650ff52119b6358).

@FRidh should we just patch tornado in ioloop.py and select epoll on linux and kqueue on bsd?

@garbas If I understand correctly what is happening, ioloop.py does function correctly and imports kqueue or epoll based on what it detected.
The problem is the test runner. It tries to import all modules to determine whether is has tests, including the one with kqueue which thus will fail.
Do we support Nix on BSD systems? If not, I suggest we just remove kqueue.py.

ahh, darwin of course uses kqueue.

we could override the checkPhase with python -m unittest discover "*_test.py" since tornado uses this pattern instead of the more usual "test_*.py"

getting the same error:
running install tests
running test
running egg_info
writing tornado.egg-info/PKG-INFO
writing dependency_links to tornado.egg-info/dependency_links.txt
writing top-level names to tornado.egg-info/top_level.txt
reading manifest file 'tornado.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/build'
warning: no files found matching 'tornado/test/README'
writing manifest file 'tornado.egg-info/SOURCES.txt'
running build_ext
building 'tornado.speedups' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/include/python3.5m -c tornado/speedups.c -o build/temp.linux-x86_64-3.5/tornado/speedups.o
tornado/speedups.c:44:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
PyInit_speedups() {
^
gcc -pthread -shared -L/nix/store/slbij3ypl8w60kdyynylmyc6pfc8k4vf-zlib-1.2.8/lib -L/nix/store/rm9fycfaprdr0zmkssmb5rg1g59w82lp-bzip2-1.0.6/lib -L/nix/store/6w0wrgc9yvzk0lncc6wxpdixdmqspp3f-xz-5.2.2/lib -L/nix/store/yb985gphba1kpnjgj9hxvrsfx617kwfb-gdbm-1.11/lib -L/nix/store/2q5hjn9dwng5bxg5z4jm9k459m2nwial-sqlite-3.9.2/lib -L/nix/store/jsz58b7kr9542xi56gfiismyaxj3brpd-db-5.3.28/lib -L/nix/store/nilqh70fcqcansqllvdmghnjl7c2zmiq-readline-6.3p08/lib -L/nix/store/ihkcrpmhw7v8gss4zhdfx5zbvxpan06i-ncurses-5.9/lib -L/nix/store/rd3vkplhbnzrq8fz4p0aqyx0clrdzbzr-openssl-1.0.2h/lib -L/nix/store/sm4rmrcxxppvsszvg8ays5nk3zd9l2n4-tcl-8.6.4/lib -L/nix/store/gxdbh3ax15hnmig0ihaqp3cmhi01dc31-tk-8.6.4/lib -L/nix/store/jcxqplkddl4lj6h9xwd9ydisga8pr7vh-libX11-1.6.3/lib -L/nix/store/5gl06szqj0zss5qhkvgjlz1lwli7m9c0-xproto-7.0.28/lib build/temp.linux-x86_64-3.5/tornado/speedups.o -L/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib -lpython3.5m -o /tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/speedups.cpython-35m-x86_64-linux-gnu.so
Traceback (most recent call last):
File "nix_run_setup.py", line 6, in
exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))
File "setup.py", line 173, in
**kwargs
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/nix/store/dhgvhcx4cm5ggvka67gfz8izfd3gd0i6-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 159, in run
File "/nix/store/dhgvhcx4cm5ggvka67gfz8izfd3gd0i6-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 140, in with_project_on_sys_path
File "/nix/store/dhgvhcx4cm5ggvka67gfz8izfd3gd0i6-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 180, in run_tests
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/main.py", line 93, in init
self.parseArgs(argv)
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/main.py", line 123, in parseArgs
self._do_discovery([])
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/main.py", line 228, in _do_discovery
self.test = loader.discover(self.start, self.pattern, self.top)
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/loader.py", line 341, in discover
tests = list(self._find_tests(start_dir, pattern))
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/loader.py", line 398, in _find_tests
full_path, pattern, namespace)
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/loader.py", line 475, in _find_test_path
tests = self.loadTestsFromModule(package, pattern=pattern)
File "/nix/store/dhgvhcx4cm5ggvka67gfz8izfd3gd0i6-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/loader.py", line 190, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "/nix/store/dhgvhcx4cm5ggvka67gfz8izfd3gd0i6-python3.5m-setuptools-19.4/lib/python3.5/site-packages/setuptools-19.4-py3.5.egg/setuptools/command/test.py", line 38, in loadTestsFromModule
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/unittest/loader.py", line 153, in loadTestsFromName
module = import(module_name)
File "/tmp/nix-build-python3.5-tornado-4.2.1.drv-0/tornado-4.2.1/tornado/platform/windows.py", line 7, in
import ctypes.wintypes
File "/nix/store/qblj6pk8067czq8ya6bfllfvy0mndqjh-python3-3.5.2/lib/python3.5/ctypes/wintypes.py", line 20, in
class VARIANT_BOOL(ctypes._SimpleCData):
ValueError: type 'v' not supported
builder for ‘/nix/store/lw4dgw03s82khh0x6hv6pysxd7c838ma-python3.5-tornado-4.2.1.drv’ failed with exit code 1
error: build of ‘/nix/store/lw4dgw03s82khh0x6hv6pysxd7c838ma-python3.5-tornado-4.2.1.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies

what is your nixpkgs version?

nix-channel (Nix) 1.11.2
nix-env (Nix) 1.11.2
nix-shell (Nix) 1.11.2
is that correct?

No, that is the version of the package manager. I need to know the version of the packages repository, that is, this repository. If you are on NixOS, you can run
nixos-version

Otherwise,
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)

nixos-version
16.03.1130.2568ee3 (Emu)

This fix hasn't been backported to 16.03 stable. It is available on unstable and the upcoming 16.09.

anything I can add to my default.nix to get it working today? I think just turning off the tests will work?
we could override the checkPhase with python -m unittest discover "test.py" since tornado uses this pattern instead of the more usual "test.py"
I'll google it, but if it is possuible to overide the check phase and that solves it then thanks,

I've pushed the fix to release-16.03 (see the last two commits of that branch).


fasd interactive > fzf

Is there anyway to pipe/push fasd -i into fzf while also removing the scores column?

fair enough, but how can I remove/hide the scores from the interactive mode? they are not really needed, I mean we dont really need to the "scores" all the time.
I have tried using cut and awk to remove the scores column either way messes it up.
Would be awesome if you added a switch/flag to accompany -i to hide the scores column.

Your feature request seems to be related to fasd and has nothing to do with this plugin. However, note that fasd is no longer maintained.
fasd -i prints the candidates into stderr, so you'll need pipe stderr output:
fasd -i 2> >(awk '{print $1 "\t" $3}')


[WIP] New default size for FaceFields

This PR changes the default size of face fields so that the length of a field along a Bounded dimension is N+1, rather than N, and therefore includes the bounding faces. The default for Periodic and Flat dimensions is unchanged.
This PR is a work in progress because testing are failing for the NetCDF output writer, and for horizontal averages.

@ali-ramadhan do you mind resolving conflicts? I think you are familiar with the changes you have made and what needs to be kept.

@ali-ramadhan I have attempted to resolve merge conflicts.

Think I fixed the NetCDF output writer in commit 5bb9293d857ad06055aed931ba26d0159ece8b8c.

Awesome, thanks @ali-ramadhan

@ali-ramadhan I believe I have addressed all of your comments and suggestions.

Hmm, the NetCDF tests are now throwing a different error. I see the problem: the size of a field depends on the topology. I'll fix it.


Frequency mismatch in FFT section of Feature Engineering notebook

In section 4.2.2 you synthesize some time-domain data and demonstrate FFTs for frequency analysis.
t = np.linspace(0,5,200)
w = 5
h = 4
s = 4 * h / np.pi * (np.sin(w*t) + np.sin(3*w*t)/3 + np.sin(5*w*t)/5)

# here is the call to numpy FFT
F = np.fft.fft(s)
freq = np.fft.fftfreq(t.shape[-1])

# amplitudes
amps = [max(np.sin(w*t)), max(np.sin(w*t*3)/3), max(np.sin(w*t*5)/5)]

fig, ax = plt.subplots(1,2,figsize=(10,5))

ax[0].plot(t,s)
ax[0].plot(t,np.sin(w*t), ls='--')
ax[0].plot(t,np.sin(w*t*3)/3, ls='--')
ax[0].plot(t,np.sin(w*t*5)/5, ls='--')
ax[0].set_title('Time Domain')

# tells us about the amplitude of the component at the
# corresponding frequency
magnitude = np.sqrt(F.real**2 + F.imag**2)

ax[1].plot(freq, magnitude)
ax[1].set_xlim(0,.15)
ax[1].set_title('Frequency Domain')

There are a couple of small problems that make the presentation non-intuitive.

w=5 is presumably to set the frequency at 5 Hz (period of 0.2s); however, looking at the time-domain plot, the waves have a period ~ 1.2 s. What's happening here is the radial frequency is set to 5 and by extension the linear frequency is ~0.8 Hz (w / 2 * pi). This implicit conversion might be confusing to hawk-eyed students.
freq = np.fft.fftfreq(t.shape[-1]) assumes a sampling time of 1 s, resulting in frequency bins that don't match the time-domain signal frequency. You'll notice the plotted FFTs have peaks around 0.02, 0.06, and 0.10 Hz; however, those peaks should appear at ~0.8, ~2.4, and ~4.0 Hz according to the implicit conversion pointed out in 1.
The amplitudes of the frequency domain don't match up with the time-domain signals. FFT normalization can be a hairy issue... Here I would suggest normalizing by the size of the time-domain array and multiplying by 2. Why multiply by 2 you ask? Well, FFTs have positive and negative frequency branches, so the amplitude is split between those branches. Since you're only visualizing the positive frequency branch (as most people do!), it's more intuitive to show the amplitude as seen in the time-domain.
(nitpick) I love showing the sinusoidal components that contribute to the square wave; however, the plotted amplitudes of the constituent sin waves don't make that apparent
(nitpick) The FFT plot has a line at 0 across all the peaks. This is a consequence of how numpy arranges the FFT output by default. It zero-indexes the 0 Hz component, which is followed by the positive frequency components and then the negative frequency components.
(nitpick) Time array size and sampling rate doesn't align with best-practices. The FFT should receive an integer number of cycles (kind of counterintuitively). The time between samples (dt) as defined is about 0.025s (np.linspace(0, 5, 200)[1]). So really the last sample should be at 5 - 0.025 = 4.975 s. This can create what is called "spectral leakage" where the power of components in the FFT is spread between multiple bins. It's not a huge deal here, but if the FFT is used as a model feature it could dilute feature importance.

All of these issues are addressed by the following:
t = np.linspace(0,1,501)
# FFT should be given an integer number of cycles so we leave out last sample
t = t[:-1]
f = 5 # linear frequency in Hz
w = f * 2 * np.pi # radial frequency
h = 4 # height of square wave
amp = 4 * h / np.pi
s = amp * (np.sin(w*t) + np.sin(3*w*t)/3 + np.sin(5*w*t)/5)

# here is the call to numpy FFT
F = np.fft.fft(s)
freq = np.fft.fftfreq(t.shape[-1], d=t[1])

# reorder frequency spectrum and frequency bins with 0 Hz at the center
F = np.fft.fftshift(F)
freq = np.fft.fftshift(freq)
# scale frequency spectrum to correct amplitude
F = F / t.size

# amplitudes
amps = [max(np.sin(w*t)), max(np.sin(w*t*3)/3), max(np.sin(w*t*5)/5)]

fig, ax = plt.subplots(1,2,figsize=(10,5))

ax[0].plot(t,s)
ax[0].plot(t,amp * np.sin(w*t), ls='--')
ax[0].plot(t,amp * np.sin(w*t*3)/3, ls='--')
ax[0].plot(t,amp * np.sin(w*t*5)/5, ls='--')
ax[0].set_title('Time Domain')
ax[0].set_xlim(0, 1)
ax[0].set_xlabel('Time (s)')

# tells us about the amplitude of the component at the
# corresponding frequency. Multiplied by two because the
# signal power is split between (-) and (+) frequency branches
# of FFT, but we're only visualizing the (+) branch
magnitude = 2 * np.sqrt(F.real**2 + F.imag**2)

ax[1].plot(freq, magnitude)
ax[1].set_xlim(0, 30)
ax[1].set_xlabel('Frequency (Hz)')
ax[1].set_title('Frequency Domain')

Thanks @BGerwe, I've incorporated your changes here!


Question: SSL setup with Apache

Trying to setup SSL using Apache.
I have things working, but cannot get the websockets to work.  I have enabled all the right modules in Apache, so I think this should be a config issue that I cannot figure out...or is it even possible?
so Apache has LetsEncrypt certs isntalled and working, and I have the following config in my SSL virtual host:

                ProxyPass / http://<IP_ADDRESS>:8080/
                ProxyPassReverse / http://<IP_ADDRESS>:8080/

                # Enable websock proxy
                UseCanonicalName on
                ProxyPreserveHost on
                RewriteEngine on
                RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
                RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
                RewriteRule .* ws://<IP_ADDRESS>:8080{REQUEST_URI} [P]

How can I get this going? Thx

Lol!  spent hours on this, and just as I posted this message,I figured it out.
replaced all of the above with the below:
                ProxyPass /wsocket ws://<IP_ADDRESS>:8080/
                ProxyPassReverse /wsocket ws://<IP_ADDRESS>:8080/

                ProxyPass / http://<IP_ADDRESS>:8080/
                ProxyPassReverse / http://<IP_ADDRESS>:8080/


Fix typo in Vagrantfile

Fix typo of grub-cli to the correct grunt-cli in Vagrantfile

"Grub" ?! I don't know what I was thinking :D


GEODE-8956: added thread pool to LocatorMembershipListener

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[*] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[*] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[*] Is your initial contribution a single, squashed commit?

[*] Does gradlew build run cleanly?

[*] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

Hi @onichols-pivotal  , @Bill , @gesterzhou and @boglesby can you review this PR.

Hi @onichols-pivotal , @Bill , @gesterzhou and @boglesby, just a reminder, could review this PR.

Hi @onichols-pivotal , @Bill , @gesterzhou and @boglesby, just a reminder, could review this PR.

Looks like all you still need is a review from @gesterzhou, all others are duplicates of owners that have already approved.

HI  @gesterzhou and @boglesby,
can you review this PR. It is only waiting on your review.


Use zero MV for all blocks in inter frames

Should now work with all speed settings

Tested for -s 0 and 1, nyan 2 frames and worked fine. Also decodable and by aomdec and its decoded images are matched to rav1e encoder output images.
Tested with : "cargo test --release --features=decode_test -- --ignored" and passed all 3 tests
(The branch is fbossen:mc1, which does not have most recently added test, odd_size_frame_with_full_rdo().)

LGTM. Thanks for quick fix!


PBDB validation icon

Botany team decide what we should replace the magnifying glass for searching whether collections or references are in PBDB. Then Doug should implement.

I'm drawing icons from here: https://mui.com/material-ui/material-icons/
If you see anything there that you like, let me know.

For now, I've changed the icon to the ManageSearchIcon.
This is in
paleobot/pbot-client@0f24c279b2c2aebb4cc984a3d0c93fa5470ae41d

Nobody had any feedback.


Revert #18102 since renaming is technically problematic

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues
reverts #18102

See https://github.com/yiisoft/yii2/pull/18106#issuecomment-645051180 for reasons.

Changelog entry should be also removed.


Fixed de/unlocked message

The old message suggested that the user is already signed in. But this is not the case, as devise just unlocks the user and redirects to the sign_in path.

Can you get rid the unrelated whitespace changes? When I sync up with Locale it wants it like that.

@JasonBarnabe got rid of it.

Danke!


Handle mesh-consumer WithdrawRewards IBC packet failure

See contracts/mesh-consumer/src/ibc.rs:

[ ] fail_rewards
[x] fail_update_validators

Not sure exactly what we want to do here? @ethanfrey / @sunnya97, thoughts? Do we need to do anything on packet timeout for example?

Still open question on what we should do on failure to withdraw rewards. fail_update_validators is handled in #40.

#41 is potentially related.


How to have train wait till station fills up to X amount ?

Hi, can I make a Provider station and have Requesters actually wait till the Provider linked chests contain X amount of specific item that is needed ? I know I can do it with the vanilla "all * -1" trick, but can I also do it within your GUI and have it in one place ?

LTN Manager doesn't allow you to modify your LTN setup, it is read only. If you need help with LTN itself, ask on the LTN thread on the Factorio forums.


Ability to specify per-tileset request headers + helper for Basic Authentication

I'm trying to load a tileset from a server that uses basic authentication for all HTTP requests. I was able to modify cesium-omniverse to add the authentication header (see code below), but it would be convenient to have functionality like this built in to cesium-native, i.e. the ability to specify per-tileset request headers + a helper for basic authentication.
session->SetAuth(cpr::Authentication{"username", "password", cpr::AuthMode::BASIC});

This was also requested on the forum: https://community.cesium.com/t/3d-tileset-from-url-basic-authentication/21974

I'm having the same issue on unreal.How can i solve it?

Also see https://github.com/CesiumGS/cesium-unreal/issues/737#issuecomment-2026826579


send page through to wordpress API to actually make it work

What is this PR trying to achieve?
Pagination isn't working.
This will make it work.

Close i favour of #658


Better name for metadata file

symbol-gen stores symbols in a file with a very generic name, tags, that is difficult to ignore in version control (many projects will have a file or folder called tags that they do want to include).
Please consider renaming the symbols file to something more VCS friendly, such as .tags.

There you go: add -f .friedly-name to your .ctags file.
-f tagfile

Use the name specified by tagfile for the tag file (default is "tags", or "TAGS" when running in etags mode). If tagfile is specified as "−", then the tag file is written to standard output instead.

Nah, nevermind. It's hardcoded in @L61. My bad.

now using ".tags"


Added total number of results display for the most recent query

Issue #7
Total number of results for the most recent query is displayed under records pane for each successful query by reading the length property of result array.
The issue statement describes the requirement for displaying the number of executions after each "successful query". I have some concerns if I should have checked the "successful query" in more detail, i.e. wrapping database query in a try catch block and passing error in case of a failure etc. For the moment, as long as doQuery method executes and returns, it is assumed that the query is executed successfully.
For accessing the total number of results, the length property of the result array is read, as this seemed the simplest way to do this to me. I'm thinking if there would be a case where it is needed or would be more efficient to get the total number of results via the database driver.

Thank you!

Thanks for all the feedback.


Error install from homebrew

warning: 'defbro-0.0.1': failed loading cached manifest for 'defbro-0.0.1': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/user_name/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000013b4990 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} warning: 'defbro-0.0.1': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/user_name/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000013bfc30 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} error: 'defbro-0.0.1': Invalid manifest /private/tmp/defbro-20230117-12819-gal0kl/defbro-0.0.1/Package.swift:4:8: error: no such module 'PackageDescription' import PackageDescription
MacOS Ventura 13.1
M1 Pro

Yeah, annoying. I think this might be the solution: https://stackoverflow.com/questions/39795455/no-such-module-packagedescription/74768544#74768544
Unfortunately Github runners do not support M1, yet. So you have to download Xcode from the app store.

This worked for me. Thank you

@jwbargsten, FYI, cirrus ci supports arm64 builds. You can see my example at https://github.com/rgl/security-add-trusted-cert/blob/main/.cirrus.yml.


Research: crosstab should work on mobile devices for iframes

Currently they don't because crosstab isn't supported, however there's no technical reason this can't work. This should be investigated.

Any movement on this?

Work is being done in the 0.3.0 branch: https://github.com/tejacques/crosstab/tree/0.3.0

iframes don't get paused?

Active tabs don't get paused. Iframes on the same actual tab will work, which is the main (or possibly only) real benefit of crosstab on mobile.

Ah. I'm using it to prevent 10 tabs opening 10 WebSocket connections when the work can be done with one then broadcasted per-tab. Is this a poor use case?

On Mobile? The use case you described is exactly why this library was created, but on Mobile due to backgrounding those connections will be dropped anyway. It's also far less common to open multiple tabs for the same mobile site.


[Bug] Strange FIFOQueue behavior in distributed tensorflow. Is this a bug?

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip install tensorflow
TensorFlow version (use command below): 1.8
Python version: 3.6.5
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: No CUDA
GPU model and memory: No GPU
Exact command to reproduce: Check code below

Describe the problem
There seems to be very little documentation on distributed tensorflow, so I am unsure of whether or not this is a bug or a logical error on my part. But the behavior is still a little strange.  Essentially, the issue seems to arise due to tf.train.SummarySaverHook(), it's interaction with tf.train.MoniteredTrainingSession() and the chief worker. If you look at my code below, you will see that there are two workers in this model. The chief worker is associated with "task:0". I've set up the model such that the queue and it operations live on "task:1"(not the chief worker). There is a simple sum operation on "task:0". Once I launch the 3 nodes(ps, task0, task1), task0 is able to complete one simple sum operation and then all tasks hang indefinitely.
For the moment, I've bypassed this issue by passing the summary hook object to the non-chief worker(task:0). By doing this, there don't seem to be any issues and the code works fine. I'm unsure of why this bypasses the issue. If chief workers handle summary write operations, shouldn't it still hang?
The strange behavior that I was talking about earlier occurs when you pass both the summary hook to the chief worker (Doing this will cause all workers to hang). You can get past the issue by simple removing the tf.FIFOqueue().dequeue() operation. It seems that this operation is getting called by "task:0" despite the fact that I've specified its location as "task:1" using tf.device. It is also being called despite not being an input requirement for any part of the graph that lives on "task:0".
My question is essentially: Is this a bug or a logical error on my part?
Source code / logs
import tensorflow as tf
import sys

s_name = str(sys.argv[1])
t_num = int(sys.argv[2])

#Cluster details
cl_spec = tf.train.ClusterSpec({
    "worker": [
        "localhost:2223",
        "localhost:2224"
    ],
    "ps": [
        "localhost:2222"
    ]
})

config = tf.ConfigProto()
config.gpu_options.allow_growth = True

#Decides whether parameter server or worker
if s_name == "ps":
    server = tf.train.Server(cl_spec,job_name="ps",task_index=0,config=config)
    server.join()
else:
    server = tf.train.Server(cl_spec,job_name="worker",task_index=t_num,config=config)

    with tf.device("/job:worker/replica:0/task:0"):
        a = tf.Variable(tf.constant(5))
        b = tf.Variable(tf.constant(6))
        z = tf.add(a,b)
        z_p = tf.Print([z],[z],"sum: ")
        tf.summary.histogram("t0sum",z_p)

    with tf.device("/job:ps/replica:0/task:0"):
        with tf.name_scope("train_place_holder"):
            x = tf.placeholder(tf.uint8,shape=[1,1],name="s_img1")
            y = tf.placeholder(tf.uint8,shape=[1,1],name="s_a")

        global_step = tf.train.create_global_step()

    with tf.device("/job:worker/replica:0/task:1"):
        q = tf.FIFOQueue(capacity=25,
                         dtypes= (tf.uint8,tf.uint8),
                         shapes= (tf.TensorShape([1,1]),tf.TensorShape([1,1])),
                         name="tq",shared_name="train_queue")

        enqueue_op = q.enqueue((x,y),name="enqueue")
        xx,yy = q.dequeue(name="dq")
        zz = tf.add(xx,yy)
        tf.summary.histogram("t1sum: ",zz)

    summ = tf.summary.merge_all()

    lap_dir = r'C:\Users\Vishnu\Documents\EngProj\bug_tf\log'

    summary_hook = tf.train.SummarySaverHook(   save_steps=1,save_secs=None,
                                                    output_dir=lap_dir,summary_writer=None,
                                                    scaffold=None,summary_op=summ)

    if (t_num == 0):
        # THis is chief worker
        saver_hook = tf.train.CheckpointSaverHook(  checkpoint_dir=lap_dir,
                                                    save_secs=3600,save_steps=None,
                                                    saver=tf.train.Saver(),checkpoint_basename='model.ckpt',
                                                    scaffold=None)

        with tf.train.MonitoredTrainingSession(master=server.target,is_chief=True,
                                                hooks=[saver_hook,summary_hook], config=config) as sess:
           while True:
               sess.run([z,z_p])

    else:

        with tf.train.MonitoredTrainingSession(master=server.target,is_chief=False,
                                                save_summaries_steps=1,config=config) as sess:
            while not sess.should_stop():
                sess.run([zz])

You can run the above file and start 3 workers using the following command line commands.
python [file_name] worker 1

python [file_name] worker 0

python [file_name] ps 0

I've also noticed that adding checkpoint_dir argument to the chief worker session also causes the workers to hang.

@DevarakondaV Have you observed this FIFOQueue behavior when GPU is installed?

@wt-huang I am not using a GPU and have not tested with one.

Woops. I think i accidently closed the issue. Sorry.

@DevarakondaV It shows in your code snippet that you are using GPU, probably double check here:
config.gpu_options.allow_growth = True

Check the communications between ps and workers as well as how you set up the queue. You can always monitor the ps and worker performance online.
Also, make sure the chief worker is consistent in the setup, notice some discrepancy here:

The chief worker is associated with "task:0". I've set up the model such that the queue and it operations live on "task:1"(not the chief worker).

For the moment, I've bypassed this issue by passing the summary hook object to the non-chief worker(task:0).

@wt-huang
config.gpu_options.allow_growth = True
I've configured this option but I know for a fact that I am not using a GPU.
I've also removed it before running the code again and it still hangs. Have you been able to replicate the issue?
I should note that I am still running this distributed architecture completely on a local machine. Would this have an effect on whether or not the program hangs? (I am still a beginner at distributed computing in general).

Also, make sure the chief worker is consistent in the setup, notice some discrepancy here:

That's totally my fault. Sorry for the confusion this may have caused. But this sentence

For the moment, I've bypassed this issue by passing the summary hook object to the non-chief worker(task:0).

Should really say

For the moment, I've bypassed this issue by passing the summary hook object to the non-chief worker(task:1).

I've edited the original description to reflect the change.

@DevarakondaV ,
Can you please upgrade the Tensorflow with the latest version and confirm if the issue still persists.

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Correct support of @base, @prefix, BASE, PREFIX directives in Turtle files (about the . at the end of these lines)

According to Turtle specification, the BASE and PREFIX directives, unlike @base and @prefix directives should not have a . at the end. This is the NOTE in Section 2.4 of the spec: "NOTE
The '@prefix' and '@base' directives require a trailing '.' after the IRI, the equalivent 'PREFIX' and 'BASE' must not have a trailing '.' after the IRI part of the directive."
Consider the following example:
BASE <http://example.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>
@prefix rel: <http://www.perceive.net/schemas/relationship/> .

<#green-goblin>
    rel:enemyOf <#spiderman> ;
    a foaf:Person ;    # in the context of the Marvel universe
    foaf:name "Green Goblin" .

<#spiderman>
    rel:enemyOf <#green-goblin> ;
    rdf:type foaf:Person ;
    foaf:name "Spiderman", "Человек-паук"@ru .

Above BASE is valid, @prefix rdfs and rel are valid. But PREFIX rdf and @prefix foaf are invalid. Currently we accept all of these. Let's comply with the specification. My suggestion is to error with a good error message and stop parsing and unroll.

As we discussed, we won't be able to throw exceptions only for prefix and base.
A long term solution is to give a strict parsing mode where we throw RuntimeException for malformed lines.

Close due to #4289


Remove the search attendee functionality

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. E.g. "I'm always frustrated when ...".
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This has gone


Display color in terminal correctly.

@bofm,
If don't merge this PR, the output likes this on my system:
# make all
\033[32mInstalling Oracle Database software...\033[0m

There is no color.
Thanks!
Best Regards
Nan Xiao

In which terminal and shell are you getting bad output?

@bofm : The terminal is Cygwin, while shell is Bash 4.2.46(1)-release.

The code in this PR gives me output like -e Installing Oracle Database software... in the following terminals in bash and zsh:

Terminal.app on OS X both
iTerm2 v3 in OS X
Ubuntu 14.04 default terminal
Remote bash over SSH with Putty on Windows

That's the capture of executing in Cygwin:

Update Docker to 1.10.


Unable to set "home name" on first run

OS; Android CyanogenMod 13.1.2
Phone: OneplusOne
When running the "first run wizard", the application asks you to enter the name & gender of your home. Regardless of the gender & data entered in the name field, I always received a "I would like a name" message. I'm not a 100% sure about it, but i think it might have something to do with first changing the gender (I can't re-test it).
The only option left was to skip this test. It is possible to set the name after the first run.

Hi Jaime,
Sorry for the bad starting experience. Thanks for notifying! I'll try to reproduce and fix this for our upcoming next release. Hopefully it will be out next week!
Regards,
Alex

No worries. It's minor issue at best.

This has been fixed in the upcoming release. Thanks for letting us know!


Add umode command

I cannot run grunt build as it errors when downloading a library and since it's such a small amount of code I believe in that it should be fine, as for the formatter; didn't install no matter what I tried.


[Bug]:An infinity loop in HMR occurs when saving the Unocss code

Version
Macos:14.1.1 (23B81)
Chrome: 119.0.6045.159
Npm: 9.6.7
Rsbuild: 0.1.0

Details
An infinity loop in HMR occurs when saving the Unocss code

Reproduce link
https://github.com/sixdjango/rsbuild-unocss
Reproduce Steps
change Unocss code as needed,  then save it.

@9aoy please help to check this issue

Rsbuild outputs dist files to disk, so when fileSystem **/* is set, it contains the dist file and always finds it updated 😂

This can be better:
export default defineConfig({
  content: {
    filesystem: [
      'src/**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}',
    ]
  },
})

Watch less files is good for the performance, just like Tailwind CSS:

sorry, this's my fault. But think you!🫡

We can provide a guide for UnoCSS @9aoy


Feature Request: ARM support

I host Jellyfin on a Raspberry Pi 4 and would like to use Jellystat with it, but the Docker image seems to only support amd64 and not armv8.

 ARM Support


bug found and fixed in PropMin / PropMax

The filtering algorithm seems very poor, due to line 65.
int lb = vars[n].getLB() - 1;

The following example needs 2 nodes and 1 fail to find the solution:
        Solver solver = new Solver();
        IntVar[] X = new IntVar[2];
        X[0] = VF.fixed(2, solver);
        X[1] = VF.bounded("X1", 4, 12, solver);
        IntVar O = VF.fixed(12, solver);

        solver.post(ICF.maximum(O, X));
        Chatterbox.showSolutions(solver);
        solver.findSolution();


Strange characters

I was setting yazi on my ubuntu, but could not make whatever this characters are. Is it supposed to be like this?
I've installed all the nerd fonts and tried find the hex code but nothing matches.

Those are nerd font icons!

After A LOT of tests i figured out what was wrong. I was not using the right font on my terminal!
It happened that I chose a font that didn't have or didn't support these icons!
Thanks though. I was convinced that the problem was on the server, not on the host.


Enable media keys, support MPRIS

https://specifications.freedesktop.org/mpris-spec/
Would be great if it was possible to control the app with your standard pause/play/forward/... buttons.

Oh, of course, that would be great! I'll look into it when I have some time!

Oh, of course, that would be great! I'll look into it when I have some time!


 Pictures are optimized to jpg format and size is compressed to suitable sizes. A preloading screen is implemented to make the initial load , not feel sluggish.
🔧 Fixes #13

📷 Provide related Screenshots/Gifs if any.

[ ] I have performed a self-review of my own code.
[ ] I'm a contributor in Hacktoberfest'21.

Thank you so much @kashish-d

I am glad I could contribute @saloni-15 .😊


OpensDistro Release 1.8.1

Issue #, if available:

#84

Description of changes:

OpenDistro Release <IP_ADDRESS>

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Skipping 1.8.1, release for 1.9 instead.


[apsi] update version to 0.8.2

Update APSI library (https://github.com/microsoft/APSI) to version 0.8.2

What does your PR fix?
Fixes several issues reported in GitHub for APSI library:

Compiling for arm64 triplets
Cross-compiling for ARM from x86/x64
Cross compiling for x64 from Mac M1

Which triplets are supported/not supported? Have you updated the CI baseline?

x86-windows-static, x64-windows-static, arm64-windows-static, x64-linux, arm64-linux, arm64-osx, x64-osx

Does your PR follow the maintainer guide?

Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Duplicate of  PR #25461, If there are any questions let's move to this PR discussion.


Bug when edit command performed floating task to change it to other task types

Bug when floating task is edited to other task types (Deadline task and Event Task).

Issue resolve at #150


4.1.12 not on PyPI

Hi! :wave:
There is a tag for 4.1.12 in this repository, but no release 4.1.12 is available on PyPI.

@dvzrv Oops, sorry that I missed that. I removed the unreleased tag and included all the changes into v24.5.0 release.


Storing sub-obs (variable length per observation data)

Hi,
We have a use case related to https://github.com/theislab/anndata/issues/237 but slightly different.
We would like to store a second obs array ("sub-obs", where an observation is an individual transcript in a MERFISH experiment), but related to the first obs array (where an observation is an individual cell).
Has your team thought about how to deal with this use case?
I am thinking something like this:

where the transcript ID and cell ID columns in the sub-obs can be like foreign keys into the main obs dataframe.
Is it possible to add a differently-shaped obs and obsm to the same AnnData store?
cc @ilan-gold

Yes @keller-mark! We really want a way to store this spot-level data in AnnData but are just not sure how to go about it.  I think this proposal is really solid.  We would definitely also be interested in crossover with squidpy if that would be of interest.

Hey, I have been talking about this a bit with @hspitzer and @giovp. I was wondering if something like Awkward array would be useful here? E.g. a data structure for ragged arrays, allowing variable length arrays per observation? This should be easy-ish to support since they've already got tooling for serialization.

@ivirshup Do you know how this would work with zarr?  Would each observation have its own zarr array (as opposed to one shared one)?

Closed by #647


Improve code as suggested by clippy -W clippy::pedantic

clippy::pedantic can come up with some good suggestions. Implement some of them; there are more to be done.

I had to make some very minor changes to src/abi/substrate.rs to make clippy happy again


Dotnet cli template

There is a problematic issue for people who uses visual studio core build new applications using dotne cli (as dotnet core or dotnet 5) and dont want to use visual studio. I think we need a template to use in cli like dotnet new uwp

The samples require Visual Studio. You are welcome to read the sample source code without Visual Studio, but the projects are intended to build in Visual Studio. You are of course welcome to use whatever IDE you wish for your own programs.

The samples require Visual Studio. You are welcome to read the sample source code without Visual Studio, but the projects are intended to build in Visual Studio. You are of course welcome to use whatever IDE you wish for your own programs.


Not working properly with https

Eccezzione: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

fixed.


Scala 2.11 is not supported in Spark 3.0.0

All 2.11 modules are useless in Spark 3, we need to support 2.12.

We are starting to invest in this project.  Currently our timeline for Scala 2.12 support is going to be after Spark 3.0 is released.  If you are a paid customer with MemSQL and have a use-case which requires us to release Spark 3.0 support during their pre-release please reach out to Support or your account manager to help set the priority of this development.  Thanks!


setDecorView(android.view.View)

Thank you for this awsome work. I had an issue with Cannot resolve method 'setDecorView(android.view.View)' in submit feedback style.
I use activities.
.setBoxInputHint(boxHint)                 .setBoxInputText(boxText)                 .setDecorView(getWindow().getDecorView())                 .build();
I commented
.setDecorView(getWindow().getDecorView())
and the dialog color is becoming radial transparent, it doesn't look like your screenshots.
Please help

The default background without setting setDecorView is a radial transparency.
Can you tell me what device you are using where setDecorView doesn't work? I've tested the BlurView on all dialogue types and it works for all of them.

Tested in 3 genymotion emulators for example S5. 4.4.4 It's giving me that radial transparency because I commented .setDecorView(getWindow().getDecorView())
I commented it because I had this error in java:  Cannot resolve method 'setDecorView(android.view.View)'
Could you
`  private void showCustomDialog(){
CustomAlertDialogue.Builder alert;
alert = new CustomAlertDialogue.Builder(FinalActivity.this)
.setStyle(CustomAlertDialogue.Style.INPUT)
.setTitle("Contact us")
.setTitleColor(R.color.color_yellow)
.setPositiveText("Submit")
.setPositiveColor(R.color.positive)
.setPositiveTypeface(Typeface.DEFAULT_BOLD)
.setOnInputClicked(new CustomAlertDialogue.OnInputClicked() {
@Override
public void OnClick(View view, Dialog dialog, ArrayList inputList) {
Toast.makeText(FinalActivity.this, "Thank you", Toast.LENGTH_SHORT).show();
for (String input : inputList)
{
Log.d("Input", input);
}
dialog.dismiss();
}
})
            .setNegativeText("Cancel")
            .setNegativeColor(R.color.negative)
            .setOnNegativeClicked(new CustomAlertDialogue.OnNegativeClicked() {
                @Override
                public void OnClick(View view, Dialog dialog) {
                    dialog.dismiss();
                }
            })
            .setLineInputHint(lineHint)
            .setLineInputText(lineText)
            .setBoxInputHint(boxHint)
            .setBoxInputText(boxText)
            //.setDecorView(getWindow().getDecorView())
            .build();
    alert.show();
}`

I always get this error in all the activities
Cannot resolve method 'setDecorView(android.view.View)'

The radial transparency appears on 4.4 devices because old Android versions don't support gradients well. I don't know why the setDecorView method cannot be resolved. Can you please post the stack trace?

Nice, are you using the latest version - v2.3.1
The setDecorView was just added recently.

Ah, that's the problem then. Update to the latest version v2.3.1
You're too far behind!


Using this without legacy tokens?

Is there any way possible of using this without having to use a legacy token? For teams such as kubernetes.slack.com unfortunately there's no way to get one (they don't allow it).

Related: https://github.com/nlopes/slack/issues/184

+1 for this feature. Using an oauth robot token doesn't allow me to reply and send messages as 'me'

This depends on whether the slack api will allow additional methods of authentication and if nlopes/slack will support it.

Weechat's slack plugin does this via an interesting method which can be copied here:
https://github.com/wee-slack/wee-slack/blob/89864b5ab952b426e77cd76cc0941035335063df/wee_slack.py#L3107
Basically they generate a "fake url" oauth request, and then the user copies the authenticated oauth token, and provides that to complete the login. After that, the session is saved and it's done.

Cool, thanks! I'll have a look at it.
On Mon, 30 Apr 2018, 19:56 Ventz Petkov<EMAIL_ADDRESS>wrote:

Weechat's slack plugin does this via an interesting method which can be
copied here:
https://github.com/wee-slack/wee-slack/blob/89864b5ab952b426e77cd76cc0941035335063df/wee_slack.py#L3107
Basically they generate a "fake url" oauth request, and then the user
copies the authenticated oauth token, and provides that to complete the
login. After that, the session is saved and it's done.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/erroneousboat/slack-term/issues/136#issuecomment-385477809,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABf7fj2-VoxM8PljTPNZBbKyEqBpnbAPks5tt1AygaJpZM4TWv-H
.

The following procedure should allow slack-term usage without the use of legacy token, could you guys perhaps test if it works?

Go to the following page: https://slack.com/oauth/authorize?client_id=91899392594.382712253827&scope=client

Select the workspace to which you want slack-term to provide access to.

Click "Authorize", this will redirect to the slack-term github page

Copy the code portion of the URL. https://github.com/erroneousboat/slack-term?code=[code-will-be-here]&state=

In your terminal issue the following command, inserting the code at the right location:

$ curl -s "https://slack.com/api/oauth.access?client_id=91899392594.382712253827&client_secret=c7986be41b6ddb478041d1848dad5f6e&code=[code-goes-here]"

From the response, copy the access_token and place it in your .slack-term

The curl command could perhaps be slightly improved in output if you have jq installed by adding | jq -r .access_token to the end of your command. This outputs just the token without the other stuff, it might even be possible to inject it into the config file, but that could get magical.

Also, I did test these commands and they work great, the only slightly painful part is the code is single use, so once it has been redeemed you need to go through the process again, but it doesn't appear to revoke the old token so it is fairly safe.
I ended up using CODE="theCodeFromUrl"; curl -s "https://slack.com/...?code=$CODE" so that I could change the code with CODE="newCode" without having to repaste it into the command every time.
I'm wondering whether it is much of a security concern that the initial response portion after the redirect to GitHub probably shows up in their logs, but it is only useful once, and it is very unlikely anybody except a malicious browser extension could really do anything with it before a user utilizes it and if you've installed a bad extension you are probably at risk of many other avenues like your full credentials being compromised.

@dragon788 You're right I've changed the redirect url and updated the instructions. Thanks for testing it out, and I'll have a look at your suggestions.

Here is another useful trick for the linux users to grab a token from a logged in browser session - I tested this and it works with both firefox and google-chrome.
$ sudo apt-get install gdb
<...>
$ for i in $(ps auxwwwfg | grep firefox | grep -v grep | cut -c9-15); do gcore -o $i.core; done
$ cat *.core |  grep -ao 'xoxs-[-0-9a-f]*' | sort | uniq -c | sort
<output...>
$ rm *.core

In the "output" area you will see a list of strings that start "xoxs-<...>" plus the number of times they occur.  There will usually only be one or two, depending on how many times you are logged into slack.  You can snatch these and put them straight into your ~/.slack-term file.

Closing this, because the workaround has been added to the wiki.
https://github.com/erroneousboat/slack-term/wiki#running-slack-term-without-legacy-tokens

Can we re-open this? The problem that I was originally facing is allow this in organizations that do not allow new applications.. Or perhaps add the:
$ sudo apt-get install gdb
<...>
$ for i in $(ps auxwwwfg | grep firefox | grep -v grep | cut -c9-15); do gcore -o $i.core $i; done
$ cat *.core |  grep -ao 'xoxs-[-0-9a-f]*' | sort | uniq -c | sort
<output...>
$ rm *.core

Instructions?

Have you tried https://github.com/erroneousboat/slack-term/issues/136#issuecomment-397810986 ? That allows you to create a slack token without the organization to add an application. I've added the additional instructions to the wiki.

@erroneousboat Yup. You have to have permission to the org to actually add the slack-term client.
See the attached image

Ok, cool I'll reopen the issue.

Hi,
Just wanted to point out that there are 2 different issues mixing here.
The Apologies, but you are not authorized to install slack-term is completely different than the legacy tokens vs new oAuth tokens.
The "authorized to install" simply means that the slack organization has locked down who can install Add-ons. (usually for security or because they have a free account and only have 5, and this will take up one of them). The oAuth keys install the same as a "bot" and so it takes up one of the "Integration slots".
So that said -- this is completely as expected.

I was able to use the solution provided by @terabyte, but would love to see a feature added wherein we could auth from the client itself.

Any ETA on this? This issue is a deal-breaker for me.

+1!

This solution is no longer working for me, does the grep regex need to be updated?

Try changing the grep regex to "xox" instead?  I'm seeing "xoxc" for my tokens I think.

I'm getting an error Slack rate limit exceeded, retry after 2s when trying this. Anyone else having this issue?

$ sudo apt-get install gdb
<...>
$ for i in $(ps auxwwwfg | grep firefox | grep -v grep | cut -c9-15); do gcore -o $i.core $i; done
$ cat *.core |  grep -ao 'xoxs-[-0-9a-f]*' | sort | uniq -c | sort
<output...>
$ rm *.core

I didn't get any results from this, but I did find xoxc-* in the localstorage. It's not working as a slack token either.

I'm getting an error Slack rate limit exceeded, retry after 2s when trying this. Anyone else having this issue?

Build from master branch or wait for the next release if you aren't comfortable doing so.

Would it be worthwhile to have an OAuth go client? I was in the process of writing one in cpp for the terminal some time ago. I could have another...ahem...go at it if it could be useful in these kinds of tui apps, or maybe even just write up the library with appropriate functions to make the OAuth network calls and structs to handle the OAuth models?

@nathanblair, couldn't this just be achieved with https://github.com/golang/oauth2? I don't see the point of reinventing the wheel except for if your implementation would use this library and would go beyond what it offers.

@mastertinner indeed. Yes. I don't know much about the libraries of go. I'm not a go dev but was interested in finding a project to tackle to get to know the language. But yeah, if there's already stuff for it, I won't bud myself in.

I tried this, both with the gcore approach and the authorized app approach and in both cases I got a token, but when trying to run slack-term I get this error:
2020/04/08 21:02:07 not able to authorize client, check your connection and if your slack-token is set correctly

A couple of notes from trying @terabyte 's solution on Fedora 31...
for i in $(ps auxwwwfg | grep firefox | grep -v grep | awk '{print $2}'); do gcore -o $i.core $i; done
grep -ao 'xox.-[-0-9a-f]*' *.core.* | sort | uniq -c | sort

Basically, the cut command was truncating pids, and the cat was un-needed.

Hi, what do the lines of code that @terabyte put out there actually do?
Curious!

https://api.slack.com/legacy/custom-integrations/legacy-tokens:

Legacy tokens are a deprecated method of generating tokens for testing and development.
This tool will not allow creation of new tokens on May 5th, 2020. Learn more about why you shouldn't use it anymore.
Use Slack apps to quickly generate finely-scoped tokens instead, without OAuth, by installing your app to your own team.

I ended up using method 4 from the wiki successfully, which is nice from the perspective of not having to install an app into the organization, but who knows how long this will continue to work.
Before I landed on that, I had success with method 1 but didn't want my token sent to Github pages and was not able to get method 2 to work. So I ended up creating yet another method slack-rtm-token which is really just method 1 but with your own slack app, with token generation happening locally and not being sent to github pages.

I do not have permission for https://github.com/erroneousboat/slack-term/wiki#method-4 requiring "developer tools".
I tried https://github.com/erroneousboat/slack-term/wiki#method-2 , but the final curl response is 7, or "CURL ERROR 7 Failed to connect to Permission denied"
Either the wiki direction methods are wrong or the required permissions should be advertised more explicily.

I'm trying to run slack-term in Windows 10 via WSL2 using Ubuntu 20.04.
I've obtained the token via browser devtools (method 4), but if I run it with
slack-term -token here-goes-my-token
I'm getting
not able to authorize client, check your connection and if your slack-token is set correctly error
Same if I paste that token into config file.
Any thoughts on how this can be fixed?

I believe the problem is the token now requires the cookie d https://github.com/jackellenberger/emojme#finding-a-slack-cookie

Tried the GDB approach and tried to grab the token from localStorage or from the Slack customization page. All result in "not able to authorize client, check your connection and if your slack-token is set correctly". Is it possible to implement OAuth?

A couple of notes from trying @terabyte 's solution on Fedora 31...
for i in $(ps auxwwwfg | grep firefox | grep -v grep | awk '{print $2}'); do gcore -o $i.core $i; done
grep -ao 'xox.-[-0-9a-f]*' *.core.* | sort | uniq -c | sort

Basically, the cut command was truncating pids, and the cat was un-needed.

How many GBs of storage am I supposed to have for this? It's using every single byte I have available and doesn't even get through all processes.

I used the approach in which we manually copy the code parameter into a curl command but I get this:
{"ok":false,"error":"bad_redirect_uri","response_metadata":{"messages":["[WARN] Auth request OAuth redirect url must use https"]}}

Perhaps the slack folks now require a https url?

Building up on @terabyte and @ezamelczyk's, here's a version of the gdb approach that doesn't need 10s of GBs of storage.
Each core file is parsed and disposed immediately:
for i in $(ps auxwwwfg | grep firefox | grep -v grep | awk '{print $2}'); do gcore -o core $i; grep -ao 'xox.-[-0-0a-f]*' core.$i > parsed.$i; rm core.$i; done
grep -ao 'xox.[-0-9a-f]*' parsed.* | sort | uniq -c


Workspace pattern

An initial pattern for the workspace. We certainly should explore more options, but it would be good  to have something in place for the Animate a Name/Word playtest.

Sample

Assets: patterns.zip
Included a repeatable pattern tile in a few different formats: svg and png. Knowing the workspace we may want to use the png for performance.

Moved from LLK/scratch-gui#153
/cc @carljbowman @thisandagain

@thisandagain Looked into this a bit. I believe we'll need to go through javascript to create a dot pattern similar to how blockly creates the default grid pattern because we will need to tie the zooming in/out with the pattern sizing. I was able to cook this up pretty easily, though:

The relevant code for that is in two places, one for generating the pattern (https://github.com/LLK/scratch-blocks/blob/develop/core/inject.js#L187-L209) and another for updating the pattern based on scaling https://github.com/LLK/scratch-blocks/blob/develop/core/workspace_svg.js#L1658-L1688

@paulkaplan That sounds great to me. Thanks for investigating.
@carljbowman Having the background zoom is interesting / possibly desirable. Any thoughts?

https://developers.google.com/blockly/guides/configure/web/grid
On Fri, Mar 10, 2017 at 2:10 PM Andrew Sliwinski<EMAIL_ADDRESS>wrote:

@paulkaplan https://github.com/paulkaplan That sounds great to me.
Thanks for investigating.
@carljbowman https://github.com/carljbowman Having the background zoom
is interesting / possibly desirable. Any thoughts?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LLK/scratch-blocks/issues/817#issuecomment-285798791,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANDWf0QvVpMHTQuREuq57xn88dgIaCVBks5rkcplgaJpZM4MTKbF
.

note that @paulkaplan's pattern doesn't match the original (where every other row is shifted by 50%)

@rachel-fenichel welp eventually I'll learn to check the docs first ;)

@Airhogs777 is right that they aren't quite the same, but that just means y'all have some decisions to make
-- is the grid configurable by developers?
-- are you super attached to the row-by-row offset?  If you are you can change the pattern definition to include a rotation, but then you probably want to cap the length of the lines so the background won't look funny.
-- do you want to keep the snap-to-grid behaviour?

Yeah I was just wondering about how the row offset would interact with snap-to-grid. Just using the grid configuration @rachel-fenichel linked you can make some nice patterns.


vertical scaling support for deployment

Added vertical scaling for deployment controller
Refactor MergeResourceChanges to be shared between job and deployment controller
Moved unit tests for MergeResourceChanges to the right place
Added checks against QOS change in deployment

Different from job controller, originally when there's an update, deployment controller would create a new replica set hence causing pods to restart. After this PR, when there's resource change, successful or not, there will not be a new replicaset being created
Tested e2e on local environment.

LGTM


make exported stuffs available in other scripts

proc exportedHi = echo "hi"
exportTo(
  moduleName,
  exportedHi
)
const addins = implNimScriptModule(moduleName)
var intr = loadScript(
  script = NimScriptPath "./main.nims",
  addins = addins
)

# main.nims
import "./helper.nims"
hi()

# helper.nims
proc hi = exportedHi() # <-- error: this proc is unavailable

I want to make a nimscript helper module but I can't use the exported procs
I can use include instead but I want to avoid that.
Is there any way to achieve this?
or do you know a better way to make a helper nimscript?

https://github.com/beef331/nimscripter/blob/master/src/nimscripter.nim#L87-L90 Need a version that takes in a openarray[(string, VMAddins)] or similar and implements each per string.


Add new theme 'Loading bar multi-color' :3

@adamschwartz any news on this ?

But it's a very good idea !


Support nested object bindings

Class X{
Y a
}
Class Y{
String b
}
should map the config key "a.b". The current binding mechanism with a simple object is too simplistic.

is there an interest for a PR?

Is this the same as #178 ?
BTW, I was working on a very similar library entirely based on Jackson which support nested configurations by default. It's way less mature than cfg4j but if you only need nested configurations you could give it a try!

right...


Provide a way for plugins to register a driver

The plugins subsystem will need a way to register a plugin (RPC stub) as a network driver.

Addressed in #127 and #143.


TERRAM-80: Example for LoadBalancer module (NLB)

Description
New basic example for AWS NLB
Motivation and Context
We need some basic examples for all our modules.
How Has This Been Tested?
terraform init && terraform plan && terraform apply (Terraform v0.13.5)
terraform destroy (Terraform v0.13.5)
Types of changes

New feature: example

Closing in favour of #146