Typo fix to Azure Devops readme

Hey, I just made a Pull Request!
Removed an erroneous backtick from the Azure Devops plugin readme that was messing up formatting
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[X] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

Hey! Thanks. So sorry to trouble you for such a small thing - but as noted above, you actually have to DCO sign contributions. See the output details of the workflows to get more info about it

Thanks for catching this! @afscrome 👍

Think that's fixed now @freben

Hey @afscrome, congrats on your first merged PR 🎉 Nice work 👍


Maintain or deprecate modules

This issue will be used to discuss whether to continue maintenance of modules for TACC and Sherlock. We may have external users depending on them, so if we want to discontinue maintenance, we should make a release that emits a warning that people should stop loading them and do something else instead.

Module
Our version
Latest version
Plan

AFNI
17.0.09
22.1.14
Deprecate, recommend using Sherlock-maintained module

Anaconda
5.0.0-py36
Does not matter
Drop in favor of $HOME/miniconda

ANTs
2.1.0.post710-g4d580
2.4.0
Deprecate, recommend using Sherlock-maintained module

c3d
1.1.0
1.3.0
Deprecate, recommend using miniconda + conda-forge

crnenv

Deprecate, no recommendations

freesurfer
6.0.0
7.2.2
Deprecate, recommend using Sherlock-maintained module

fsl
5.0.9
6.0.5
Deprecate, recommend using Sherlock-maintained module

git-annex
6.20170818
10.20220624
Deprecate, recommend using miniconda + conda-forge

gsl (GNU Scientific Library)
2.3
2.7
Deprecate, recommend using miniconda + conda-forge

jq
1.5
1.6
Deprecate, recommend using Sherlock-maintained module

launcher
3.1.0
3.7
Keep for now

nodejs
4.4.7
18
Deprecate, recommend using singularity containers for Node tools

Some notes:

c3d is published to conda-forge, drop for conda?
Let's rethink crnenv; worth a separate issue
Who is using GSL? What's the purpose of having this module at all?
jq seems probably fine... it's just a utility knife
Is TACC now maintaining a launcher module themselves?
I would recommend dropping NodeJS. 4.4.7 is probably unusably old. Trying to keep up with even NodeJS LTS releases seems like a chore, but we could do that...

TACC has a "launcher" but it's very different from ours, which provides a
single command line interface that creates and launches the slurm script.

Do we know who is using these modules, and could we add a third strategy of delegating maintenance to them ? Ideally with a deprecation cycle to rename the module set from Poldrack to something more generic.

Agreed re: renaming to remove the lab name

Updated all plans with today's decision.


See error

I've found that, after each building, the size of libfst.so.8.0.0 are different.

we have no idea on that, may be it is related to build options. You can just build with -DONNX=ON and -DTORCH=ON to enable them.

The reason was found. It's because of TORCH_CXX_FLAGS in openfst.cmake:
https://github.com/wenet-e2e/wenet/blob/46ae3eae79d89e86270bf58cd8f6b3a55153f81d/runtime/core/cmake/openfst.cmake#L29
this line uses TORCH_CXX_FLAGS, which comes from libtorch-src/share/cmake/Torch/TrochConfig.cmake :
# When we build libtorch with the old GCC ABI, dependent libraries must too.
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0")
endif()

if -DTORCH=OFF, ther is no TORCH_CXX_FLAGS . So, my build-torch did not use CXX11, but build-onnx used CXX11, and finally got different size of libfst.so.
if  we want to build with libtorch with CXX11,  just -DCXX11_ABI=ON, which defined here :
https://github.com/wenet-e2e/wenet/blob/46ae3eae79d89e86270bf58cd8f6b3a55153f81d/runtime/server/x86/CMakeLists.txt#L5


Is this project still under maintenance

These days I tried to build the rCore(x86_64) but failed. Some libs like bitvec could not be built. Also rcore-fs-hostfs changed the edition which causes Cargo cannot build the sfs.
I tried my best to resolve these issues but found that the lib dependencies caused a ton of matters. So, can you give me some suggestions for compiling it?
Thx.

You can see recent developments in:

https://github.com/rcore-os/zCore
https://github.com/rcore-os/arceos
https://github.com/rcore-os/rCore-Tutorial-Book-v3
https://github.com/rcore-os/arceos-tutorial-book


Stdlib build: Only delete out folder contents, not the folder itself

Describe your changes
Motivation: https://github.com/0xPolygonMiden/miden-vm/issues/1208
I'm not sure if this will fix the issue, but I guess it is worth giving it a try.
Checklist before requesting a review

Repo forked and branch created from next according to naming convention.
Commit messages and codestyle follow conventions.
Relevant issues are linked in the PR description.
Tests added for new functionality.
Documentation/comments updated according to changes.

can we merge this? is there any reason to not do it?


license?

What license  are you using for your code? ex GPL2, etc.

Just added MIT license. Use the code however you want!


Adding a test scenario for using a property in an Action

See related https://github.com/codeforamerica/la-doc-uploader/pull/40

HI @sree-cfa, is this still a work in progress?

Thanks, @sree-cfa - I don't think we will use this at this point.


Missing namespace in command

@PatAltimore

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@jlian, Could you review?

#sign-off


Implement cache saving and loading (encoding/gob format)

For the time being, I made it possible to read and write in encoding/gob format. It might be enough even if I don't build a database.

#4


Logo/mascot [nice to have]

Hi there!
I'm thinking there should be a logo, or as the cool kids call it, a "favicon" for the website. Perhaps some ASCII art or a nice letter art? I can't draw but wanted to have the idea for considering.
Thanks!

hey @TheGamer1002 ! I can contribute to this issue, how can i proceed?

Hi there! I’m thinking about the Internet globe symbol (🌐) enclosing the Debian logo. I’ll make a quick sketch.

Alright, here we go! It’s not too amazing but it’s the best I can do with what I have. Thanks again!

alright i can make and provide a favicon for this issue

Guys, the favicon and the logo are already there, and are our (LeaningTech) responsibility to change. We won't be accepting any external logo.

Alright, thank you! Sorry for the inconvenience.
On Feb 7, 2022, 4:23 AM -0500, Serena Ziviani @.***>, wrote:

Guys, the favicon and the logo are already there, and are our (LeaningTech) responsibility to change. We won't be accepting any external logo.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

hey @sere ! it is fine, all the best for your logo and favicon!!


questions

hi mahdibeit ,

Your proposed baseline is similar to CCVR[No Fear of Heterogeneity: Classifier Calibration for Federated Learning with Non-IID Data].  Why don't make a comparison with it?
Could you provide the training code for U-Net-based conditional denoising diffusion models

Hi @chenrxi,
Thank you so much for reaching out and showing interest in our work. Please find below the answers to your questions.

Yes, our work is similar to CCVR. In our latest version (which has not been uploaded to arxiv), we do a direct comparison with CCVR, and the results show that FedPFT outperforms CCVR by 7 percent since it allows GMMs with k>1. You can also infer this result from Figure 6 (left) of the paper.

We have not yet open-sourced our code. However, for the reconstruction, we utilized the implementation of the inversion attack of Teterwak, Zhang, Krishnan, and Mozer (ICML'21): Understanding Invariance via Feedforward Inversion of Discriminatively Trained Classifiers.

Hi @mahdibeit
Thank you for your kind reply.

It solves my concerns. However, the performance gain may come from the classifier being trained from scratch compared to CCVR，in my opinion.
Yes，I understand why the code is not open-source.  In session E.3. Experimental details, you mention that you trained U-Net-based conditional denoising diffusion models on the CIFAR-10 train set.  Is it also implemented from this implementation? Or maybe provide more details if possible. And the result in Table 6 and Figure 11 may not relate to it.


Functionality

When textarea is clicked, users input is captured and saved upon click of the save button
Each time block is color-coded to indicate whether it is in the past, present, or future

This was completed under commit bddd8028d10a40e90be284936171ac26cde72d40 .


Create function: Test if positive integer

Very similar to a couple other number-checking ones.
Function that takes a string. If that string represents a positive integer, it returns true. If not, it returns false.

function on codepen
https://codepen.io/sashamaryl/pen/ZaqeBE

Great! Now to be written into #244!


Issues during execution of HOLA

@shakfu I'm using the library with some layout constraints added in and I was running into issues when certain constraints were added in. I'm wondering if you had the chance to play around with the constraints with HOLA and if so would you be able to provide any advice. Just a shot in the dark, but any help would be welcome.

Can you provide some example code which reproduces the issues?
Please note that the pybind11 wrapper is pretty straightforward but some of it was generated automatically via binder so it'll probably not be a perfect one-to-one mapping with the cpp code. It's also not fully tested so gaps are likely but probably easy to fix.
A quick way to check this is to write the equivalent cpp code for your simple test case that is causing you trouble and see whether it works or not. If it doesn't work in the cpp code, it will not work in the python wrapper code.

Some of the issues seemed to be from disconnected graph segments, but others seem to be more nuanced and dealing with the constraints library

    # Use 4 nodes for the bounding boxes
    n0 = hola.Node.allocate()
    n1 = hola.Node.allocate()
    n2 = hola.Node.allocate()
    n3 = hola.Node.allocate()

    # Use 4 internal nodes
    n4 = hola.Node.allocate()
    n5 = hola.Node.allocate()
    n6 = hola.Node.allocate()
    n7 = hola.Node.allocate()

    n0.setDims(1,1)
    n1.setDims(1,1)
    n2.setDims(1,1)
    n3.setDims(1,1)
    n4.setDims(100,100)
    n5.setDims(100,100)
    n6.setDims(100,100)
    n7.setDims(100,100)

    # Add Edges
    g.addNode(n0, True)
    g.addNode(n1, True)
    g.addNode(n2, True)
    g.addNode(n3, True)
    g.addNode(n4, True)
    g.addNode(n5, True)
    g.addNode(n6, True)
    g.addNode(n7, True)

    g.addEdge(n0, n1)
    g.addEdge(n1, n2)
    g.addEdge(n2, n3)
    g.addEdge(n3, n0)

    g.addEdge(n4, n5)
    g.addEdge(n5, n6)
    g.addEdge(n6, n7)
    g.addEdge(n7, n4)

    g.addEdge(n2, n6)

    # def addConstraintsToNode(n):
    #     g.getSepMatrix().addSep(n.id, n0.id, hola.GapType.BDRY, hola.SepDir.NORTH, hola.SepType.INEQ, 10)
    #     g.getSepMatrix().addSep(n.id, n1.id, hola.GapType.BDRY, hola.SepDir.EAST, hola.SepType.INEQ, 100)
    #     g.getSepMatrix().addSep(n.id, n2.id, hola.GapType.BDRY, hola.SepDir.SOUTH, hola.SepType.INEQ, 100)
    #     g.getSepMatrix().addSep(n.id, n3.id, hola.GapType.BDRY, hola.SepDir.WEST, hola.SepType.INEQ, 100)
    #     return
    # addConstraintsToNode(n4)
    # addConstraintsToNode(n5)
    # addConstraintsToNode(n6)
    # addConstraintsToNode(n7)

    hola.doHOLA(g)

In the code above, if I add in the constraints it gives me an issue of python3: routing.cpp:287: void dialect::LeaflessOrthoRouter::route(dialect::Logger*): Assertion numRoutings <= maxRoutings' failed.but if I don't put in the constraints, it runs. Additionally, I saw some issues where it wasIndexError: map::at` with some constraints added which seemed to be an unhelpful C++ map index issue -- wondering if you had any insight into this as well.
Note that I've added in the getSepMatrix() as a get by reference for pybind11.
Let me know if you've seen any of these issues, otherwise, I'll probably run some tests in C++ before doing the python wrapper tests to confirm

Thanks for posting your test code. It's a weird one: it looks like an assertion failure, but it runs if you don't add the constraints.. Not sure I've seen this one before.
Sorry I can't be more helpful. Best bet is to replicate this in Cpp and see if you have the same problems.

No worries, thanks for the help!


[YUNIKORN-1044] Publish design doc for scheduler plugin

https://issues.apache.org/jira/browse/YUNIKORN-1044

And it looks like we do not have a user doc about how to build, deploy and use the scheduler plugin, can we add that in a separate JIRA?

Yes, we should add this in a follow-up.


Add extra Ace options to change editor behavior.

Hi! I found your package very useful but I would like to modify a few other settings in the editor.
I made some changes to expose a few other settings. It would be great if you could take this contribution and release a new version of the package :raised_hands:
These are the additional settings exposed:

Add setter to control line highlighting.
Add setter to control soft tabs.
Add setter to control print margin.

Signed-off-by: David Calavera<EMAIL_ADDRESS>

I've checked it, works fine! Thank you!


feat(alert) add auto removal after timespan

Hi,
the alert directive is a nice piece of code, but regarding usability in a real world application it is lacking of an auto removal after a specific timespan. The code snippet for automatic removal could look like this (I know the jQuery stuff needs to be removed).
var timeout = iAttrs.timeout || 10000;
scope.message = data;

iElement.show();

$timeout(function() {
   iElement.hide();
}, timeout);

What do you think, would that represent a good improvement?

thanks all - good discussion - saved me an hour!


Adopt FQCN

Use FQCN for community.docker
Add community.docker to requirements.yml
Fixes ansible-lint eco job

See https://github.com/ansible-community/ansible-lint/runs/4693742816?check_suite_focus=true

@konstruktoid Please take a look at ^, eco job was broken for more than a month due to this repo.

See https://github.com/konstruktoid/ansible-docker-rootless/commit/3c60a35fc644ed0f01b67ba355537d3a7fe16ee3 and
https://github.com/konstruktoid/ansible-docker-rootless/commit/9bb41e5439b258e3b71d087518f126992bde81c1
Related https://github.com/ansible-community/molecule/issues/3266

I am not aware of collections.yml being a documented way to declare dependencies. On the other hand, requirements.yml is.
no need to exclude folders not tracked by git because that is what ansible-lint does by default! i think that feature is more than an year old.
no need to exclude folders because we want yamllint bit to lint those files (that is why yamllint no longer needs to be called separately)

BTW, ping me on irc if you can, we may be able to address questions faster.

I am not aware of collections.yml being a documented way to declare dependencies. On the other hand, requirements.yml is.

I've probably misread https://molecule.readthedocs.io/en/latest/configuration.html#molecule.dependency.ansible_galaxy.AnsibleGalaxy then;
"Use “role-file” if you have roles only. Use the “requirements-file” if you need to install collections."
    role-file: requirements.yml
    requirements-file: collections.yml

no need to exclude folders not tracked by git because that is what ansible-lint does by default! i think that feature is more than an year old.
no need to exclude folders because we want yamllint bit to lint those files (that is why yamllint no longer needs to be called separately)

yeah, that should have been handled better

BTW, ping me on irc/matrix if you can, we may be able to address questions faster.


Silent refresh not sending secret to token endpoint

Hi. In following Scott Brady's tutorial on silent refresh and everything is ok until it triggers the signinSilentCallback.
I get a 401 error, {error: "invalid_client", error_description: "Request requires a valid client authentication method"} from the token endpoint.
I've inspected the form data in the request and the problem seems to be that the client secret is not being sent like it is in the first login.
Am I doing something wrong?
Thanks in advance

Sounds like you're missing a client secret? Or disable the need for one.

All set on this issue -- can we close?

Yes you can close it.
Thanks
A sexta, 26/04/2019, 15:57, Brock Allen<EMAIL_ADDRESS>escreveu:

All set on this issue -- can we close?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityModel/oidc-client-js/issues/797#issuecomment-487087723,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD2T5GRIFQIOMUEUV2U6NVLPSMJ6BANCNFSM4G7B57HQ
.


#869 Added per-worker id generation logic

Implemented a lock-free, per-worker ID generation method to enhance concurrency performance.
Removed mutex locks, using atomic operations for thread-safe ID generation.
Integrated unique worker IDs into the ID format for distinctiveness. Reserved 4 bits for worker ID.
Updated ExpandID to align with the new generation logic.
Added tests and benchmarks to ensure correctness and measure performance improvements for NextID func.

@lucifercr07 @JyotinderSingh I've implemented the id generation logic per worker and lock free. Please review it.
Issue: #869

@lucifercr07 @JyotinderSingh Reminder to review this PR!

@lucifercr07 has the review been done?

@lucifercr07 has the review been done?

Apologies for the delay in reviews for this PR @manishrw. We'll get to this asap.


Compliance Report | Edit a saved draft of a Compliance Report |3|

Story:
As a BCeID user, I want to be able to edit a saved draft of a Compliance Report so that I can continue filling out the report that I had previously saved.
Scenario:
GIVEN that I am a BCeID user
AND I have the Compliance Reporting role
AND I am on the Compliance Reporting page
AND I have saved a draft of a Compliance Report
AND I am viewing the saved draft Compliance Report
WHEN I click on the Edit button
THEN I am able to edit the draft and continue filling out the Reporthttps://trello.com/c/AvSyO94P/1233-compliance-report-edit-a-saved-draft-of-a-compliance-report-3

Resolved in Sprint Pluto


[Bug Report] el-slider created using Render function resets to '0' on dragend

Element UI version
2.3.4
OS/Browsers version
Windows 10 / Chrome 65
Vue version
2.5.17-beta.0
Reproduction Link
https://jsfiddle.net/vuzn7usg/8/
Steps to reproduce
Drag slider to the right and end the drag
What is Expected?
on dragend, the value at which the slider stops should be current value
What is actually happening?
on dragend, the slider resets to '0' value

https://jsfiddle.net/vuzn7usg/11/

Thanks


Different behaviour depending on url

I've been playing with watir lately, and found really strange behaviour while having fun with parsing some test dymanic pages using phantom.
In my case, watir has opened different pages depending whether I put www in front of page url or not. I have tested this using pure phantomjs, and it behaves correctly.
require 'watir'

good_url = 'http://www.flashscore.com/match/rBpIJpah/#odds-comparison;1x2-odds;full-time'
bad_url = 'http://flashscore.com/match/rBpIJpah/#odds-comparison;1x2-odds;full-time'

browser = Watir::Browser.new(:phantomjs)
browser.goto(bad_url)

# this puts different page when using good_url and bad_url
puts browser.url

I am not convinced if that's on watir side, but wonder if there is a way to debug this behaviour and see what can be causing this.
My specs:
ruby: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
phantomjs: 2.1.1
watir: 6.0.3
selenium-webdriver: 3.0.4

This works in both chrome & firefox, so I'm going to go with a bug in phantomjs with browser redirects. We recommend avoiding phantomjs browser as the GhostDriver portion that interacts with Selenium has not been maintained in several years.


Check hardware for performance bottlenecks

As mentioned by @nstewart, we have SQL performance best practices, but we should also cover ways to check storage, network and compute for performance bottlenecks .
@robert-s-lee, if you're already giving clients guidance on these topics, can you please share?

Closing this in favor of https://github.com/cockroachdb/docs/issues/2931.


Setting streaming to false with multiple results sets causes duplicate grids

Azure Data Studio Version: master
Steps to Reproduce:

Run a query with multiple resultsets
Switch tabs
Switch back to original tab

Expected: See the same view as after step 1
Actual: See a bunch of duplicate results sets

Hmm, I'm actually seeing this now just running a query with multiple batches, without tab switching, such as below.
SELECT *
FROM sys.all_columns

GO

SELECT *
FROM sys.all_objects

OK, I see that this is related to having the setting "sql.results.streaming": false.

@anthonydresser perhaps we should prioritize getting the "Disable Query Results Streaming" flag working properly, so we can set it to true for Dec.  Then we can announce this as a preview feature that needs to be manually enabled.  Thoughts?

@anthonydresser I'm still seeing this issue with #3603.  The repro is below.

Run a query
Open settings editor and set streaming value to false
Switch back to the original query window

Actual: Query result set grid is duplicated many times.  This basically makes the setting key unusable, so we don't have the ability to turn off the streaming feature in case users encounter problems.

Using your repro steps, it doesn't repro for me

I'm still seeing duplicate result grids in 1.3.8 occasionally though I don't have a consistent repro for it

I don't have a consistent repro for what Karl reported but it seems to involve executing the query multiple times before switching tabs or executing slightly different queries in the same editor before switching tabs, or possibly has to do with how quickly I execute them

Here's a copy of my SQL Tools Service log from a case where I just started up Azure Data Studio, executed 'select 1', and it showed multiple copies. Not sure if it's relevant but note that I get multiple result set update messages that are marked as complete
18-12-18 11:34:21.4379440 pid:6518 tid:10 sqltools Verbose: 0 : Received message with id[10], of type[Request] and method[query/executeDocumentSelection] , and contents[{
  "ownerUri": "untitled:SQLQuery_13",
  "querySelection": null,
  "executionPlanOptions": {}
}]
18-12-18 11:34:21.4480530 pid:6518 tid:10 sqltools Verbose: 0 : Resolved path: untitled:SQLQuery_13
18-12-18 11:34:21.4923330 pid:6518 tid:10 sqltools Information: 0 : Query object for URI:'untitled:SQLQuery_13' created
18-12-18 11:34:21.4949740 pid:6518 tid:10 sqltools Verbose: 0 : Sending message of id[10], of type[Response] and method[query/executeDocumentSelection]
18-12-18 11:34:21.4987020 pid:6518 tid:10 sqltools Stop: 0 : Response for Query: 'untitled:SQLQuery_13 sent. Query Complete!
18-12-18 11:34:21.5028780 pid:6518 tid:16 sqltools Verbose: 0 : Analyzing script file: untitled:SQLQuery_13
18-12-18 11:34:21.5048380 pid:6518 tid:16 sqltools Verbose: 0 : Analysis complete.
18-12-18 11:34:21.5049020 pid:6518 tid:16 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[textDocument/publishDiagnostics]
18-12-18 11:34:21.5988100 pid:6518 tid:11 sqltools Information: 0 : Batch:'Batch Id:'0', Elapsed:'', HasError:'False'' on Query:'untitled:SQLQuery_13' started
18-12-18 11:34:21.6081110 pid:6518 tid:11 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/batchStart]
18-12-18 11:34:21.6901100 pid:6518 tid:11 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'0', Complete:'False', SpecialAction:'' on Query:'untitled:SQLQuery_13' is available
18-12-18 11:34:21.7152840 pid:6518 tid:11 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetAvailable]
18-12-18 11:34:21.7343230 pid:6518 tid:11 sqltools Information: 0 : Message generated on Query:'untitled:SQLQuery_13' :'Message on Batch Id:'0', IsError:'False', Message:'(1 row affected)''
18-12-18 11:34:21.7353030 pid:6518 tid:15 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'False', SpecialAction:'' on Query:'untitled:SQLQuery_13' is updated with additional rows
18-12-18 11:34:21.7367530 pid:6518 tid:15 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetUpdated]
18-12-18 11:34:21.7378090 pid:6518 tid:11 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/message]
18-12-18 11:34:21.7510860 pid:6518 tid:24 sqltools Warning: 0 : The result set:Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'False', SpecialAction:'' has not made any progress in last 10 milliseconds and the read of this result set is not yet complete!
18-12-18 11:34:21.7511350 pid:6518 tid:24 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'False', SpecialAction:'' on Query:'untitled:SQLQuery_13' is updated with additional rows
18-12-18 11:34:21.7513270 pid:6518 tid:24 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetUpdated]
18-12-18 11:34:21.7745830 pid:6518 tid:11 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'True', SpecialAction:'ActionFlag:'None', ExpectYukonXMLShowPlan:'False'' on Query:'untitled:SQLQuery_13' is updated with additional rows
18-12-18 11:34:21.7746390 pid:6518 tid:24 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'True', SpecialAction:'ActionFlag:'None', ExpectYukonXMLShowPlan:'False'' on Query:'untitled:SQLQuery_13' is updated with additional rows
18-12-18 11:34:21.7755710 pid:6518 tid:24 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetUpdated]
18-12-18 11:34:21.7756460 pid:6518 tid:11 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetUpdated]
18-12-18 11:34:21.7807970 pid:6518 tid:14 sqltools Information: 0 : Result:'Result Summary Id:0, Batch Id:'0', RowCount:'1', Complete:'True', SpecialAction:'ActionFlag:'None', ExpectYukonXMLShowPlan:'False'' on Query:'untitled:SQLQuery_13' is complete
18-12-18 11:34:21.7824430 pid:6518 tid:14 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/resultSetComplete]
18-12-18 11:34:21.7913420 pid:6518 tid:14 sqltools Information: 0 : Batch:'Batch Id:'0', Elapsed:'00:00:00.1679170', HasError:'False'' on Query:'untitled:SQLQuery_13' completed
18-12-18 11:34:21.7915630 pid:6518 tid:14 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/batchComplete]
18-12-18 11:34:21.7970170 pid:6518 tid:14 sqltools Information: 0 : Query:'untitled:SQLQuery_13' completed
18-12-18 11:34:21.7992520 pid:6518 tid:14 sqltools Verbose: 0 : Sending message of id[], of type[Event] and method[query/complete]
18-12-18 11:34:21.9480630 pid:6518 tid:10 sqltools Verbose: 0 : Received message with id[11], of type[Request] and method[query/subset] , and contents[{
  "ownerUri": "untitled:SQLQuery_13",
  "resultSetIndex": 0,
  "rowsCount": 1,
  "rowsStartIndex": 0,
  "batchIndex": 0
}]
18-12-18 11:34:21.9588630 pid:6518 tid:10 sqltools Start: 0 : Starting GetSubset execution for batchIndex:'0', resultSetIndex:'0', startRow:'0', rowCount:'1'
18-12-18 11:34:21.9777950 pid:6518 tid:10 sqltools Verbose: 0 : Sending message of id[11], of type[Response] and method[query/subset]
18-12-18 11:34:21.9784230 pid:6518 tid:10 sqltools Stop: 0 : Done Handler for Subset request with for Query:'untitled:SQLQuery_13', Batch:'0', ResultSetIndex:'0', RowsStartIndex'0', Requested RowsCount:'1'
		 with subset response of:[ RowCount:'1', Rows array of length:'1']
18-12-18 11:34:21.9784840 pid:6518 tid:10 sqltools Verbose: 0 : Received message with id[12], of type[Request] and method[query/subset] , and contents[{
  "ownerUri": "untitled:SQLQuery_13",
  "resultSetIndex": 0,
  "rowsCount": 1,
  "rowsStartIndex": 0,
  "batchIndex": 0
}]
18-12-18 11:34:21.9785240 pid:6518 tid:10 sqltools Start: 0 : Starting GetSubset execution for batchIndex:'0', resultSetIndex:'0', startRow:'0', rowCount:'1'
18-12-18 11:34:21.9787940 pid:6518 tid:10 sqltools Verbose: 0 : Sending message of id[12], of type[Response] and method[query/subset]
18-12-18 11:34:21.9788800 pid:6518 tid:10 sqltools Stop: 0 : Done Handler for Subset request with for Query:'untitled:SQLQuery_13', Batch:'0', ResultSetIndex:'0', RowsStartIndex'0', Requested RowsCount:'1'
		 with subset response of:[ RowCount:'1', Rows array of length:'1']


Nvidia Optimus

I'm working on a laptop with an Optimus option but when I run Sparky, it still using the intel graphic card and not my Nvidia card....
I found a way to force optimus enabled :
extern "C" {
    _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}

but i'm not sure it's the best way

You doing this on OpenGL or directx?

It should be the same either way.

DirectX don't print it on consol but yeah, it's the same on both of them xD

http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
That says you can also fix it the following way, but it doesn't mention wich one is the better way.
Static Library Bindings
For any application without an existing application profile, there is a set of libraries
which, when statically linked to a given application executable, will direct the Optimus
driver to render the application using High Performance Graphics. As of Release 302, the
current list of libraries are vcamp110.dll, vcamp110d.dll, nvapi.dll, nvapi64.dll, opencl.dll,
nvcuda.dll, and cudart*.*.


chat.delete always returns cant_delete_message (HTTP)

Description
I have app/bot which responds to a user's input and returns a message to the channel. By default, this message can't be deleted by anyone other than workspace admins, but I want to allow any user to delete the messages posted by the bot.
To make this happen, I have a block button with an action which is sent to my interaction endpoint, but I'm unable to make chat.delete method respond with anything other than cant_delete_message.
I'm using an User OAuth Token (xoxp-etc-etc...) which has the chat:write scope, but this still returns cant_delete_message error - "Authenticated user does not have permission to delete this message". I'm not sure what permissions that should be required.
I've also used this same set up in my own slack workspace (to test slack apps) and the chat.delete method works fine, just not in my company's workspace.
I'm guessing I must be missing something obvious! Thank you.
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[x] documentation related
[ ] example code related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: web-api
node version: v14.17.6
OS version(s): macOS 11.5.2 (20G95)
Steps to reproduce:
example code:
export const deleteMessage = ({ channel, messageTimeStamp }) =>
  new Promise((resolve, reject) => {
    (async () => {
      try {
        const deleteMessageResponse = await fetch(
          SETTINGS.slackMethods.chatDelete,
          {
            method: "POST",
            headers: {
              Authorization: `Bearer ${process.env.OAUTH_USER_TOKEN}`,
            },
            body: new URLSearchParams(
              Object.entries({
                channel,
                ts: messageTimeStamp,
                as_user: true,
              })
            ),
          }
        );
        const deleteMessageData = await deleteMessageResponse.json();
        if (deleteMessageData?.ok) {
          resolve("Deleted message");
        } else {
          throw new Error(`Can't delete message: ${deleteMessageData?.error}`);
        }
      } catch (error) {
        reject(`deleteMessage ${error}`);
      }
    })().catch((e) => {
      console.error(e);
    });
  });

Expected result:
What you expected to happen
Deletes the selected message.
Actual result:
What actually happened
Throws error cant_delete_message

Hi @seratch . So this is where I get confused. So the bot will post a message under the APP name. Reading the docs I'm not sure if this app message has an author (unless the app itself is the author?). I've just been given Admin access to my workspace, would reinstalling the app now make a difference?

.

@seratch so this is now extra confusing... I had tried using the bot token (xoxb-) rather than user token, but still got the cant_delete_message error, so I changed back to the user token, was granted admin access to my workspace, reinstalled the app, and now users are able to delete the message. The chat.delete method is currently invoked without an: as_user attribute if that makes a difference here.
Could it be that the app itself needed to be installed with someone with admin access for chat.delete to work? slack-bot-permission-to-delete

Hmm ok thank you @seratch. Yeah, currently I'm using the response_url to send the bot message in response to a /slash command which then opens interaction/modal view - (as it was my belief that this method means users don't have to manually invite the bot to each channel(?) for it to be able to post a message).

@thathurtabit

as it was my belief that this method means users don't have to manually invite the bot to each channel(?) for it to be able to post a message

Yes, your understanding here is correct. ack/respond are so useful for it except the issue around message deletion with its bot token permissions. Another option that is useful only for public channels is to use chat:write.public scope.
As the next step, I will escalate this issue to the server-side engineering teams again. As the server-side issues are managed in an internal issue tracker and we have been escalating many issues like this, we are unable to share its progress here in a timely manner. We'd appreciated if you could understand this.
I know that this behavior is not ideal for you (also for any developers) but there is nothing further that we (as this SDK maintainers) can provide here. Please let us close this issue now but please feel free to write in whenever you have anything to ask/discuss regarding this topic.
Thank again for taking the time to write in here.


GraphiQL seems to want to post to /graphiql even if that isn't where it's mounted

I'd like to mount GraphiQL to /api, which will also be the GraphQL API endpoint, to make it just a bit easier to discover and experiment with the API.
Even if I mount the GraphiQL plug at /api, it still wants to post to /graphiql. I have a hacky workaround in that I mount the plain GraphQL API at /graphiql, then point everything else at /api.
Any idea why this is happening? A quick glance through the source isn't hugely revealing. I'm wondering if it is a GraphiQL default that isn't being updated via the plug? If so, seems like it would fail if mounted anywhere else.
As an aside, is there any reason why doing this would be a bad idea? I'm explicitly trying to make this API as easy to discover and use as possible, but maybe there are gotchas of which I'm not aware.
Thanks.

The GraphiQL that we have mounted by default lets you specify where to send queries.

Are you unable to enter the correct URL there?

Ah, I suppose so. But if I mount that somewhere else, is there any way
to configure GrahiQL to respect that automatically?

It was my understanding that it would use the current location, but possibly not. This sounds like perhaps an issue that belongs on the graphiql project itself, it's a generic piece of javascript that while we provide an easy integration are not its authors.

Interesting. So I'm looking at this:
https://github.com/apollostack/graphql-server/blob/master/packages/graphql-server-module-graphiql/src/renderGraphiQL.ts
which appears to be the Apollo version of what this plug does.
If you look at line 13, a GraphQL API endpoint is accepted.
Line 102 appears to incorporate that endpoint URL into the rendering of
a GraphiQL React component.
Am I missing something, or is this code not a) accepting a user-defined
GraphQL endpoint and b) rendering that as part of GraphiQL? Admittedly
the GraphiQL developers didn't make that discovery process easy.
If I'm right, I'd appreciate it if this could be reopened. I might take
a crack at a PR in a few days if someone can guide me in the finer
points of how it should be implemented (in particular, where the plug
should be configured, though it's probably best to just use the path at
which it was mounted.)
Thanks, and I hope you'll reconsider closing this, at least not before
people have done the research and conclusively determined that it wasn't
possible.

Actually, now that I know what I'm looking for, it looks like you've got
most of this implemented already. I'd be happy to add in the missing
bits if the PR would be accepted, and if you wouldn't mind pointing me
to where this plug can get at the path component where it is mounted
(I.e. "/api" or whatever other string the mountpoint might be.) I'm
fairly new to Elixir and am still wrapping my mind around lots.

I think you're confused about where this functionality exists. This functionality is not written in Elixir. We provide an EEX template, but that template literally just links to another project's javascript here: https://github.com/absinthe-graphql/absinthe_plug/blob/master/lib/absinthe/plug/graphql_toolbox.html.eex#L29
A few lines lower we pass in a tiny bit of config, which puts the default URL at the window location. That's it, everything else happens in the javascript contained in a totally different project. This is why I closed the issue, there's no evidence that changing code in this project will help you.
I do however have a theory about your issue. This particular GraphIQL tool uses local storage to persist a bunch of information, including the URL. Use the inspector to clear out the local storage for your host and see if that fixes it.

Ah, good catch, localStorage.clear() did appear to do it. Thanks, I was
going a bit crazy searching for "/graphiql" as a hard-coded endpoint
everywhere, and Googling a bunch of likely phrases. :)

Do note that the javascript you linked to appears to be for the simplified graphiql interface whereas by default Absinthe exposes https://github.com/OlegIlyenko/graphql-toolbox which is a lot more advanced.

Glad that helped :)

Note we do want to update the version we link to as well: https://github.com/absinthe-graphql/absinthe_plug/issues/37#issuecomment-273381126


Place pictures with corresponding remark on building info page

The pictures should be under the specific remark of a buiding on the BuildingPage

React Bootstrap Cards could be used for that
https://react-bootstrap.netlify.app/docs/components/cards


False positive from image check when xincluded file is not in the same dir as including file

For details see: https://github.com/oxygenxml/docbook-validate-check-completeness/pull/22

Thanks David for the report and sample, we'll try to reproduce the problem, fix it and release a new version with the fix.
In the Oxygen Preferences->"Add-ons" page you can check to be notified when a new version of an installed plugin is available.
If that option is checked, whenever Oxygen starts it should notify you of any new plugin updates.

Fixed in commit: 7fe32b51b3096e5f8521e871971c9a7bdb48a5b1

The new version(1.1.5) is ready.
Thank you for the feedback,
Cosmin


Feature/swift 3 migration

Project updated to Swift 3, it is built and run again.

Thank you @atom-wintermute !!


Support GeometryCollection as an input for geometry field

According to spec a Geojson should be able to have a GeometryCollection as a geometry in a feature.
I propose changing this line:
https://github.com/developmentseed/geojson-pydantic/blob/cd5637f9dba03435f79a70b07dd7599cd7453c13/geojson_pydantic/features.py#L13
from
Geom = TypeVar("Geom", bound=Optional[Geometry])

to
Geom = TypeVar("Geom", bound=Optional[Union[Geometry, GeometryCollection]])

Is there a reason we don't currently support this change?
I've written some tests locally that work with this change. I'm happy to submit a PR

Is there a reason we don't currently support this change?

No reason, just haven't implemented full coverage of the spec yet.  PRs are appreciated!

closed in #72


Rework CC Search "About" and "Feedback" pages

We need to:

Improve the overall design of these pages
Provide a better explanation on the About page of the distinction between e.g. Google Image Search and CC Search, and why CC Search doesn't have every image on the internet in it
Add to the Feedback page more information on how to get involved
Update links to forthcoming blog article about CC Search

Is this issue workable now? Would like to work on it

@Vineet-Sharma29 Only issues marked as help wanted are open for people to work on. Please take a look at issues marked as help wanted


Add swift package-registry command

This PR implements the swift package-registry command with its set and unset subcommands as described in "Registry configuration subcommands"
Motivation:
Implement SE-0292.
Modifications:

[x] Add PackageRegistry library and test target containing
[x] Create a RegistryConfiguration type in the PackageRegistry module
[x] Create a new swift-package-registry executable target
[x] Implement .netrc support (see https://github.com/apple/swift-package-manager/pull/3647#issuecomment-893621240)

Result:
With this change, Swift Package Manager will be able to read and write registry configuration files.

@tomerd @yim-lee I spun this off from #3640 in the interest of taking incremental steps towards SE-0292 implementation. Let's focus on this chunk first, before moving onto the actual dependency resolution logic.

@tomerd I started to implement .netrc support, but realized that this would require a lot more work. From SE-0292:

Specifying credentials for a custom registry
Some servers may require a username and password.
The user can provide credentials when setting a custom registry
by passing the --login and --password options.
When credentials are provided,
the corresponding object in the registries.json file
includes a login key with the passed value.
If the project's .netrc file has an existing entry
for a given machine and login,
it's updated with the new password;
otherwise, a new entry is added.
If no .netrc file exists,
a new one is created and populated with the new entry.

Right now, the Netrc struct in swift-tools-support-core supports read-only access, but the feature described here requires updating the file with new entries. Adding new entries should be easy enough — just append it to the end of the file. However, updating existing entries is more difficult to get right.
How do you think we should proceed? I can think of a few possibilities:

Defer: We temporarily remove the --login and --password options for the swift package-registry set command, and require users to manage credentials themselves. (This is what we have with the latest commit for this PR, ffebeb646c953caf5a665144a6cc962f326e012f)
Append-only: We do the 80% solution and update .netrc files by adding a new machine only if it doesn't already exist. If there's already an entry for a machine, we bail and emit a warning. (If we do this, we should probably amend the proposal to describe this new behavior).
Full authoring support: We go all the way and make a compliant .netrc file manager.

I suspect we don't really want to get in the business of .netrc file authoring, so option 3 is probably a no-go. I don't feel too strongly between 1 and 2. If you'd like, we can even do both — accept what we have now and punt on the 80% solution for later.
What do you think?

@swift-ci Please smoke test

@swift-ci Please smoke test

Right now, the Netrc struct in swift-tools-support-core supports read-only access, but the feature described here requires updating the file with new entries. Adding new entries should be easy enough — just append it to the end of the file. However, updating existing entries is more difficult to get right.
How do you think we should proceed? I can think of a few possibilities:
Defer: We temporarily remove the --login and --password options for the swift package-registry set command, and require users to manage credentials themselves. (This is what we have with the latest commit for this PR, ffebeb6)
Append-only: We do the 80% solution and update .netrc files by adding a new machine only if it doesn't already exist. If there's already an entry for a machine, we bail and emit a warning. (If we do this, we should probably amend the proposal to describe this new behavior).
Full authoring support: We go all the way and make a compliant .netrc file manager.
I suspect we don't really want to get in the business of .netrc file authoring, so option 3 is probably a no-go. I don't feel too strongly between 1 and 2. If you'd like, we can even do both — accept what we have now and punt on the 80% solution for later.
What do you think?

I agree and think option 2 is sufficient at this point

@swift-ci Please smoke test

@tomerd Aside from the unresolved feedback threads and .netrc, is there anything else you'd like to see for this PR?
Re: .netrc handling — Could we implement this in a follow-up PR? There are a lot of moving pieces between #3640 and #3652 that impact how this would be implemented. (Specifically, https://github.com/apple/swift-package-manager/pull/3640/files#diff-134223fe78a1e46f08f8c1e9d166408b7105f941cb2cc4e844ebceb87a8f4ec8R1850 and ull/3652/files#diff-8d396837a0426c26967e471b82d8f2eaf31f9a7ae2e03308300799edbac4bd18L563)

@swift-ci Please smoke test

@tomerd I just rebased my original PR to follow the pattern you introduced in #3670. Please take a look and let me know if you have any concerns with that approach.
Aside from the unresolved feedback threads and .netrc, is there anything else you'd like to see for this PR?

@swift-ci Please smoke test

@mattt @elsh will fix the API digester issue on linux and then we will merge this. does that work / is it ready?

@swift-ci smoke test

@tomerd Sounds good. Yes, this is all ready to be merged once CI is passing.


Fix that invisible CanvasItems are visible on entering the SceneTree

resolve #58695
CanvasItem uses RenderingServer::get_singleton()->canvas_item_set_visible() for handling visibility status of CanvasItems, but does not initialize it at the moment.
This patch ensures, that hidden items are set to invisible during initialization in CanvasItem::_enter_canvas().
I did not yet find out, why exactly the referenced issue only affects TileMap, but no other CanvasItems.

I checked the fix in bf3e89b. Works great! 👍

Didn't #63248 supersede this?
I can't reproduce the issue.

I tested it and I am unable to reproduce #58695 in 4.0 Alpha 14.
I can't be certain, if #63248 supersedes this PR, but I am closing this issue, since the original cause no longer exists.

#63248 adds the same line, but in a different place.


🦺[Tech Debt] Connect to a CI/CD provider

Goal
Make sure that the CI / CD provider is connected to the repo (https://github.com/litecoin-foundation/loafwallet-ios)
Definition of Done

[x] Establish connection
[x] Setup connection that the provider runs when a commit is pushed to the remote repo

Using Bitrise


Update returned exit code not zero error while installing REMnux as an add-on to SIFT Workstation

Update returned exit code not zero error while installing REMnux as an add-on to SIFT Workstation. Screenshot of error and saltstack.log attached.
I apologize in advance if this is a simple fix, but my Linux experience is both minimal and rusty.

Hi @hantavirus69 , this is an easy fix, and was caused by a recent update to Saltstack. You can run the following command first, then try your installation again:
sudo python3 -m pip install 'importlib-metadata<5.0.0'
Please let us know if this works for you!

Thank you, @digitalsleuth. That fixed it, and the installation is in progress.

I thought that fixed it, because the installation started and took quite a while but I got the same error. Any ideas, @digitalsleuth ?

Actually @hantavirus69 , the error you got is different, and it identifies an issue with the thug installation. Can you upload your saltstack.log file for this installation attempt so we can review?
Cheers!

Here it is.
saltstack.log

@digitalsleuth here are the log messages as well. I had a message at boot up again today. I'm surprised to see this many issues.
log messages 01172023.odt

Hi @hantavirus69 , while I can understand and appreciate your frustration with the install not completing successfully, the errors you're experiencing are not with the REMnux toolkit itself.
It turns out that setuptools apparently has an issue with version 66.0 which is causing an installation issue with the 'ssdeep' package with thug. All of the other tools in REMnux installed correctly and you shouldn't have any issue with those.
As for the errors you just posted in the log messages 01172023.odt document, those are not caused by the REMnux installer, but instead appear to be an issue with the configuration or installation of a package called "mp4parse" and the snapcraft store. Neither of these are used by REMnux.
I will be submitting a pull request shortly to ensure the Thug issue doesn't happen again, and that should be coming shortly.
Cheers!

@digitalsleuth Thank you. I'll see what I can figure out on the other issue.

Thanks for fixing the Thug issue, @digitalsleuth. I just incorporated it into a new release. @hantavirus69, you can get it by running remnux upgrade.

@lennyzeltser & @digitalsleuth - Thank you both so much!

@lennyzeltser @digitalsleuth Hi, so I recently installed REMnux in addon mode for WSL Ubuntu 20.04 and had issues running remnux update. Your advice in this thread, namely:

sudo python3 -m pip install 'importlib-metadata<5.0.0'
seems to have fixed my issue, but I was wondering if the saltstack workaround has been propagated correctly? Is this something everyone is dealing with or only certain installs?

Hi @l3fdb33f , The issue is with the way SaltStack utilizes importlib-metadata, and the fact that version 5+ of importlib-metadata has deprecated certain features (as identified here). Once the version containing this fix has been released, we can adjust the correct version. However the latest version (3005.1-2) does not contain this fix, so at this point we are stuck waiting.


[Admin] Publish

Docs Build status updates of commit bd738f4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

Issue_Template.md
:white_check_mark:Succeeded

README.md
:white_check_mark:Succeeded

docs/docfx.json
:white_check_mark:Succeeded

docs/index.md
:white_check_mark:Succeeded
View

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 docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit bd738f4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

Issue_Template.md
:white_check_mark:Succeeded

README.md
:white_check_mark:Succeeded

docs/docfx.json
:white_check_mark:Succeeded

docs/index.md
:white_check_mark:Succeeded
View

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 docs.microsoft.com contributor guidesPost your question in the Docs support channel


Travis CI: Why does enabling sudo cause the tests to fail?

Demonstrated: #217 Output: https://travis-ci.org/RaRe-Technologies/smart_open/builds/413337196
Blocks #215

@cclauss I think that's a question to boto3 team, can you submit an issue to https://github.com/boto/boto3?

https://github.com/boto/boto3/blob/develop/.travis.yml#L23-L25

@cclauss That's not an answer to the question "why this happens", I see that it works in the boto3 repo, but this is different way of installation (we using PyPI, boto3 use boto3 repo).


Add container groups\images statistics for container projects

The container group calculation is relevant only for ems. This adjusts the calculation to be correct for projects too
@miq-bot add_label providers/containers
@yaacov Please review

cc @simon3z

@zeari I have the feeling that we shouldn't check the object kind (e.g. obj.kind_of? ContainerProject). I have seen that @yaacov commented something around that. Is there a conclusion there?
@miq-bot assign zeari

@yaacov @cben can you review?

@zeari do we need the all_container_groups in app/models/container_project.rb ?

@zeari do we need the all_container_groups in app/models/container_project.rb

yes, Its a different query for ContainerManager and ContainerProject and they both have disconnected ContainerGroups.

yes, Its a different query for ContainerManager and ContainerProject and they both have disconnected ContainerGroups.

@zeari the question was why this function is missing from in this PR ?

@zeari the question was why this function is missing from in this PR ?

@yaacov It was added for chargeback in a different PR.

LGTM :+1:

The container group calculation was relevant only for ems.
Now its relevant for all entities.

@zeari is this a part of some other larger work or is this standalone? (I understand what it does, but why do we need it?)

@simon3z I was fixing metrics for ContainerProject and noticed this code was odd.

@zeari should you label this as a bug? Should we care about fixing this in darga?

Not really, we dont currently use creation statistics for anything other than ems
@miq-bot add_label darga/no

@miq-bot add_label bug

@simon3z We need to reopen this if we want trends for Container Projects dashboard(https://github.com/ManageIQ/manageiq-ui-classic/pull/1527)

needed for https://github.com/ManageIQ/manageiq-ui-classic/pull/1527 and might need changes according to https://github.com/ManageIQ/manageiq/pull/15250

Raising this from the dead again. Please re-review.

Code change LGTM :+1:
but if goal is "relevant for all entities", I don't think anything except ContainerManager has all_container_groups association.
(Tangential: https://github.com/ManageIQ/manageiq-providers-kubernetes/issues/17 discusses what "image registration rate" should mean. This PR doesn't change that.)

but if goal is "relevant for all entities", I don't think anything except ContainerManager has all_container_groups association.

right.

@miq-bot remove_lable darga/no

@miq-bot remove_label darga/no

@moolitayer Please review

@moolitayer @zeari do we need a BZ for fine?

@moolitayer @zeari do we need a BZ for fine?

i dont think so. it currently works correctly for ems and https://github.com/ManageIQ/manageiq-ui-classic/pull/1527 is for next version.

@simon3z i dont think so. it currently works correctly for ems and ManageIQ/manageiq-ui-classic#1527 is for next version.

@zeari @moolitayer mentioned a bug related to stat_container_group_delete_rate, isn't that affecting fine as well?

@moolitayer does this need to be in fine? I think we will need a fine specific PR since this is based on the archival change from :ems_id  => nil to active => true

@moolitayer @simon3z @cben stat_container_image_registration_rate for projects could be how many images that were never in use before in this project, are first used in this hour. but we dont use this information anywhere for projects.
ContainerProject.find(18).all_container_groups.joins(:containers).joins(:container_images).group('container_images.id').select('container_images.id').having('min(container_groups.ems_created_on) > ? and min(container_groups.ems_created_on) < ?', 1.hour.ago, Time.now).collect(&:attributes).count

@moolitayer does this need to be in fine? I think we will need a fine specific PR since this is based on the archival change from :ems_id => nil to active => true

Is this based on a bz or is it for a new feature(e.g a dashboard showing this info)?
So in fine we had these states attached to container_projects but we weren't calculating them correctly?
(we are calculating them from the quite some time but I haven't checked if we always calculated it for projects too)
I think fixing fine is a good idea. We will need a bz to backport.

I think fixing fine is a good idea. We will need a bz to backport.

@zeari @moolitayer please let's open one. If you're unsure you can have QE to try and reproduce the issue (so then they'll also know how to verify that it's fixed once delivered).

@miq-bot add_label fine/yes

This requires a fine-specific PR

ping @moolitayer @simon3z BZ is in place and comments addressed

ping @simon3z

@miq-bot assign blomquisg

Backported to Fine via https://github.com/ManageIQ/manageiq/pull/16345


Update deps

Proposed Changes

as per title, but let's see.

Part of the actual fix was, remove dependencies, that have been deleted or moved:
go: finding module for package knative.dev/eventing/test/rekt/resources/svc
go: finding module for package knative.dev/eventing/test/test_images/heartbeats
go: found knative.dev/eventing/test/test_images/heartbeats in knative.dev/eventing v0.36.7
go: found knative.dev/eventing/test/rekt/resources/svc in knative.dev/eventing v0.36.7

Change for that was in:

hack/tools.go
test/e2e_new_channel/tracing_test.go

Release Note

Docs

/retest

/retest

Locally, with this branch/pr, I see:
Events:
 Type     Reason       Age                  From               Message
 ----     ------       ----                 ----               -------
 Normal   Scheduled    3m41s                default-scheduler  Successfully assigned knative-eventing/kafka-source-dispatcher-0 to kind-control-plane
 Warning  FailedMount  98s                  kubelet            Unable to attach or mount volumes: unmounted volumes=[contract-resources], unattached volumes=[config-tracing kube-api-access-rj52h config-kafka-source-data-plane contract-resources cache kafka-config-logging]: timed out waiting for the condition
 Warning  FailedMount  94s (x9 over 3m41s)  kubelet            MountVolume.SetUp failed for volume "contract-resources" : configmap "kafka-source-dispatcher-0" not found

/retest

/retest

/retest

Error: error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
2023/04/18 14:26:52 error during command execution:error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
error: no objects passed to apply
Error: error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
2023/04/18 14:26:52 error during command execution:error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
error: no objects passed to apply
Error: error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
2023/04/18 14:26:53 error during command execution:error processing import paths in "-": error resolving image references: found strict reference but ko://knative.dev/eventing/test/test_images/heartbeats is not a valid import path: importpath is not `package main`
error: no objects passed to apply
E````


Problem configure template memex

Describe the bug
I have problems to use the template, I made the indicated configurations but they don't show me the posts in the home page. If it would be possible to add an example to be able to use it.
To Reproduce
Steps to reproduce the behavior:

Create a project hugo.
Configure template memex.
Add posts

Expected behavior
I should be able to show the posts when adding content but it doesn't show me anything.
Screenshots

OS: MacOs 10.15.7
Browser: Chrome
Version: 108.0.5311.0
Smartphone (please complete the following information):
Device: Xiaomi MI A3
OS: Android 11
Browser chrome
Version latest
Additional context
No additional context is needed I believe. I really liked your work and I consider that the functionalities used in the template I did not find in other templates.

Hello Kevin! If you are still experiencing this issue, can you link your site repository (if it is public) or share your folder structure? (You can do tree in a terminal to see it.)

Hello Victoria, thanks for you answer, you are amazing, I really like the way you explain in your blog that inspired me to create one of my own.
https://github.com/kevinlupera/blog-personal-memex

Hi Kevin, I think this is happening for two reasons:

Your post has draft: true in the front matter (see https://gohugo.io/getting-started/usage/#draft-future-and-expired-content)
Your post has no content. Try writing something in the post body (below the front matter).

Hope this helps!


Advanced search

in:assigned and in:not_assigned filter's added in advanced search options

Approach is looking good to me. We will need some JS and Ruby tests for this. And we also need to make sure this is secure behind the guardian.can_assign? check.

Where can I add the check guardian.can_assign? as we are working with the instance.rb method where guardian and current_user both are not available

Does @guardian work? I think that's how other advanced search filters work

Instead of overwriting the SearchAdvancedOptions._init() method, we should add a new "plugin API" in core to allow plugin to add new "in options".
@ZogStriP I'll try to add it and make a PR in the core for this.

Looks like travis is failing on a prettier issue. We recently updated the prettier version in core, so you may need to run yarn install in your discourse directory, then re-format the extend-for-assigns.js.es6 file.
A couple of other comments above, but this is looking really nice now that we have the core API 😁

Does this still need to be .skip?
Yes, as in the core to it skipped 😅


Integrate arethetypeswrong

Fixes #38
This adds the arethetypeswrong CLI to our codebase and also runs it in CI.

LGTM. Can you merge this into #37 ?

Yep, will do.


How to compile on ESPHOME?

Where do I put keypad.h to allow the ESPHome to compile?

what keypad.h do you mean? all the necessary files should be in the repo. the Keypad lib will be downloaded automatically by ESPhome.


setting initValue as icon

I want to set initValue as an icon and even after onChange it should be the same icon. How can I achieve this?

I found the solution, we have to place our Icon in Text component then it works.
const rightIcon = <Text><FontAwesomeIcon name="menu" size={30} color="#fff" /></Text>;
<ModalSelector         data={data}         initValue={rightIcon} />

@randomkrishna
Try using the icon directly.  For instance:
const rightIcon = <FontAwesomeIcon name="menu" size={30} color="#fff" />;


Suggestion: use ! to indicate mutating functions

It looks like the remove_* functions and clean_text mutate their docx argument. If so, it would be useful and expected to follow the usual Julia convention of ending the function names in ! to indicate that they're mutating functions. So for eg. remove_puncts!(...), clean_text!(...), etc.

Thanks a lot @digital-carver. I appreciate this :smiley:


🐛 [BUG]: Dynamically adding child nodes with existing relation

Is there an existing issue for this?

[X] I have searched the existing issues and this is a new bug.

Current Behavior
I am trying to add a child node dynamically in the graph. I already have an edge which has connection from that particular child node to another node. Once the child node is successfully added on the graph, the edge is not drawn though the edge object is still present.
Here is the sandbox link
Expected Behavior
It should have drawn the edge when the node is dynamically added
Steps To Reproduce
No response
Relevant log output
No response
Anything else?
No response

Edges always need to reference existing nodes
You can’t just „create“ an edge and add the nodes for it afterwards, if that’s what you’re doing.


Integration with Obsidian

What would you like to see?
Easy integration with Obsidian to create and update notes.

Tracking in #1400


NotImplementedError: The Gym space 'Tuple' is not yet supported in Pearl.

Hi there, I am trying to use DeepQLearning to solve the discrete Blackjack Gymnasium environment (Blackjack-v1), where the Observation Space is a tuple, Tuple(Discrete(32), Discrete(11), Discrete(2)), but when I launch Pearl I obtain the following error:
raise NotImplementedError(NotImplementedError: The Gym space 'Tuple' is not yet supported in Pearl.

Do we know when are we going to solve this issue? Lots of environments have tuples, or if there is a quick workaround to make Pearl support this environment.
Thanks,

Same happens with Atari environments, like airraid: ValueError: Tensor of shape torch.Size([250, 160, 3]) is not supported.

We are looking into this, but it will take a while for us to get to it unfortunately. I will update it here when we do.


DApps: bad character in folder names

When launching any dapss the following folders are created:
C:/Users//AppData/Local/Beam Wallet (Testnet/Masternet)/appstorage/appid
C:/Users//AppData/Local/Beam Wallet (Testnet/Masternet)/cache/appcache/appid
When installing dapp also
C:/Users//AppData/Local/Beam Wallet (Testnet/Masternet)/localapps/appid
Where appid looks like "33069528774e02884ce39480dd478bfe78b0e24a56baee171307bfcdb80fad4e"
Now folders 1 & 2 starts from "appid:" which is incorrect. ":" character is not allowed in folder name on windows. Need to fix this and then to test that all the folders created do not include not allowed characters.

checked


Feature: Exclude files from 'watch' mode

I think it would be great if you can exclude files to not watch so that it doesn't recompile every time.  As of now, I'm using styles.scss to override the default styles.css.  Yes, I do know that component can include the scss but I rather just have 1 style file for entire application (it's very small app).  Anyways, everytime I change scss files then it gets compiled twice.  Thanks and definitely loving NG2.

Currently Webpack builds the entire project on any change, so excluding a file from being watched isn't going to do much yet. There are plans to allow partial building of projects for this sort of case, but based on responses from the Angular CLI team we should expect them after the new year begins.

It definitely shouldn't be compiled twice, that sounds like a bug.

it watches every dependency of the app plus the stuff we tell it to watch (styles, scripts, assets)

The entire root folder is watched. Repro:

Add a new folder inside app's root directory, let's call it scss;
Add a new file to this folder, let's call it .gitkeep;

ng serve would trigger a recompile.
I have my scss files inside this source folder, but these are compiled externaly. So every time I save, the app is refreshed but without the latest build from sass.
I believe this is a bug, given that the scope of watched files is wider than expected.

@spredemann Did you ever figure out a solution... I am using pug with Angular 4, and using a gulp task to compile pug to html.. problem is ng-build see's the pug changes and recompiles. Wasn't a big deal until I started using include pug files...
I supposed I could ng eject and wire up webpack myself... I'd prefer not to.

@samartoli no but you probably should avoid includes anyway. Write smaller components.

Emacs creates a file called .#<filename> when you begin editing <filename>. This causes angular-cli to rebuild. I could set watchOptions.ignored to avoid this issue but this doesn't seem to be possible with angular-cli, forcing me to ng eject

If you don't want any of those to be watched, you can just remove it from angular-cli.json
@filipesilva the way I see it, everything's is watched. I'm saving my readme file and ng rebuilds. Even changing root in angular-cli.json doesn't help.

yeah, how do I get it not to watch vim files? It's very very annoying

Reopening, I can confirm that everything in src/ is indeed watched. I don't know if there's a way to configure webpack to not rebuild when random stuff is added to the folder. PR's and suggestions are welcome.

I believe everything in project directory is watched (where angular-cli.json is located) not only in src/. I have app root set to "src" in angular-cli.json, but still ng recompiles when any of my project files is saved.

Is this being worked on? I am just like @edoloughlin using Emacs and right now I get this every time I edit a scss file:
webpack: Compiling...  94% asset optimization(node:6150) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, stat '/home/simon/arbete/gor-cli/src/assets/scss/.#index.scss' (node:6150) [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.

Same issue as https://github.com/angular/angular-cli/issues/4593

I'm looking into a fix for this. I'm thinking it would be an option passed in, similar to poll (maybe called ignored) that lets you set an anymatch string via the command line, or an anymatch string/array of strings via an option in .angular-cli.json.
If I ng eject and add ignored: "**/*.swp" to devServer.watchOptions it will ignore writes to any *.swp file. However, if I add ignored: "**/*.swp" to watchOptions in the dev server config in angular-cli (after modifying the spec so it accepts the option) it still writes on those files.
Any ideas what could be going wrong here?

I take some of it back...it is working when I do the steps recommended in npm link and run this modified code in another project, but the test I have written is not passing. Something about this triggers a rebuild when it shouldn't. Can anybody see what's wrong with this test? When I run the linked version I'm invoking it the same way (ng serve --ignored=**/*.swp). I also have a console.log showing me the configuration and it shows the same in the test as it does when using it in practice.
import {
  killAllProcesses,
  waitForAnyProcessOutputToMatch,
  execAndWaitForOutputToMatch
} from '../../utils/process';
import {writeFile, appendToFile} from '../../utils/fs';
import {expectToFail} from '../../utils/utils';

const webpackGoodRegEx = /webpack: Compiled successfully./;

export default function() {
  const ignoreCmd = `--ignored=**/*.swp`;

  return execAndWaitForOutputToMatch('ng', ['serve', ignoreCmd], webpackGoodRegEx)
    .then(() => appendToFile('src/main.ts', 'console.log(1);'))
    .then(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 10000))

    .then(() => writeFile('src/.main.ts.swp', 'console.log(1);')) //FIXME: this still triggers a rebuild
    .then(() => expectToFail(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 10000)))

    .then(() => appendToFile('src/main.ts', 'console.log(1);'))
    .then(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 10000))
    .then(() => killAllProcesses(), (err: any) => {
      killAllProcesses();
      throw err;
    });
}

Closed via https://github.com/angular/angular-cli/pull/7310, src/ is no longer watched unconditionally.

This feature is closed, however there does not seem to be anything added to allow files/folders to be excluded? Is there something missing from the documentation?

For library generated with cli it seems to be watching entire library folder. @filipesilva I assume that currently it's not possible to add exception for library?

I don't have this anular-cli.json file that has been mentioned. Using angular 7.
Is it serve.json now?
Can You link to an example of how to setup exclusion?
robert@pop-os:~/bose_project/Raphael-App-Framework$ sudo find / -iname angular-cli.json
find: ‘/run/user/1000/gvfs’: Permission denied
robert@pop-os:~/bose_project/Raphael-App-Framework$ sudo find / -iname serve.json
find: ‘/run/user/1000/gvfs’: Permission denied
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>/home/robert/.cache/yarn/v4/npm-<EMAIL_ADDRESS><EMAIL_ADDRESS>


DataGridView materialized

This library supports datagridview too? Like 70% of my project is datagridview, so I neede it to be materialized too.

Please check #18 for components to be made next. Currently the DGV isn't supported, but a simple ListView is.


MachinePool not creating corresponding MachineSets on Openstack

Trying to create MachinePools for clusters on openstack. MachinePools are created successfully, but the reconcile outcome is unspecified and the expected MachineSet is not created. The status section of the MachinePool CR is also empty.
time="2020-12-09T13:43:58.184Z" level=info msg="reconciling machine pool" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=qlswj9bj
time="2020-12-09T13:43:58.504Z" level=info msg="reconciling machine pool for cluster deployment" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=qlswj9bj
time="2020-12-09T13:43:58.582Z" level=info msg="found 2 remote machine sets" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=qlswj9bj
time="2020-12-09T13:43:58.582Z" level=info msg="reconcile complete" controller=remotemachineset elapsedMillis=398 elapsedMillisGT=0 machinePool=cluster-stakater-binero/openshift-binero-infra outcome=unspecified reconcileID=qlswj9bj

MachinePool:
apiVersion: hive.openshift.io/v1
kind: MachinePool
metadata:
  name: openshift-binero-infra
  namespace: cluster-stakater-binero
spec:
  clusterDeploymentRef:
    name: openshift-binero
  resourceApplyMode: Sync
  name: infra
  labels:
    machine.openshift.io/cluster-api-machine-role: infra
    machine.openshift.io/cluster-api-machine-type: infra
    node-role.kubernetes.io/infra: ""
  platform:
    openstack:
      flavor: hp.8x32
      rootVolume:
        size: 100
        type: ssd
      zones:
      - europe-se-1a
  replicas: 3

Could you edit your HiveConfig and set spec.logLevel="debug" and include an updated log snippit? This is definitely quite strange.
Also what version of Hive are you running?

cc @abutcher @joelddiaz

Hive version: 1.0.14
Notice the last log entry.
time="2020-12-09T14:58:03.911Z" level=info msg="reconciling machine pool for cluster deployment" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=np5m68q8
time="2020-12-09T14:58:03.932Z" level=debug msg="labels have not changed, nothing to update" clusterDeployment=cluster-stakater-binero/openshift-binero controller=clusterversion reconcileID=m68hq2q8
time="2020-12-09T14:58:03.932Z" level=debug msg="reconcile complete" clusterDeployment=cluster-stakater-binero/openshift-binero controller=clusterversion reconcileID=m68hq2q8
time="2020-12-09T14:58:03.932Z" level=info msg="reconcile complete" clusterDeployment=cluster-stakater-binero/openshift-binero controller=clusterversion elapsedMillis=15226 elapsedMillisGT=10000 outcome=unspecified reconcileID=m68hq2q8
time="2020-12-09T14:58:03.974Z" level=info msg="condition Upgradeable changed for operator monitoring" clusterDeployment=cluster-stakater-binero/openshift-binero controller=clusterState reconcileID=l22fvfjd
time="2020-12-09T14:58:04.054Z" level=info msg="found 2 remote machine sets" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=np5m68q8
time="2020-12-09T14:58:04.055Z" level=debug msg="resolved image to use for new machinesets" controller=remotemachineset image=binero-j4cnx-rhcos machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=np5m68q8
time="2020-12-09T14:58:04.056Z" level=info msg="reconcile complete" controller=remotemachineset elapsedMillis=831 elapsedMillisGT=0 machinePool=cluster-stakater-binero/openshift-binero-infra outcome=unspecified reconcileID=np5m68q8
time="2020-12-09T14:58:04.07Z" level=info msg="reconciling machine pool" controller=remotemachineset machinePool=cluster-stakater-binero/openshift-binero-infra reconcileID=4fdzsjv7
time="2020-12-09T14:58:04.07Z" level=debug msg="Controller either never recorded expectations, or the ttl expired." controller=remotemachineset controllerKey=cluster-stakater-binero/openshift-binero-infra

#1141 appears to not be in 1.0.14. But it is in 1.0.15

Closing this. I'll re-open if I face it in 1.0.15.


Allow headers doesn't works

I've created this small rest api application
from flask import Flask
from flask.ext.cors import CORS
from flask.ext.restful import Resource, Api
import json
app = Flask(__name__)
CORS(app, resources=r'/api/*', allow_headers='Content-Type')
api = Api(app)

workplaces = [
	{"id":1, "name":"zob", "location":{"latitude": 47.099, "longitude": 2.438}}
]

class WorkplaceList(Resource):
	def get(self):
		return workplaces

class Index(Resource):
	def get(self):
		return "ok"

api.add_resource(Index, '/')
api.add_resource(WorkplaceList, '/api/workplace')

if __name__ == "__main__":
	app.run(host='<IP_ADDRESS>', debug=True)

When I send request to this small sever, there is no Access-Control-Allow-Header HTTP header :
[tlk:~/Dev/TmpRestAPI]$ curl -X GET http://localhost:5000/api/workplace -i
HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 154
Access-Control-Allow-Origin: *
Server: Werkzeug/0.9.6 Python/2.7.9
Date: Wed, 07 Jan 2015 07:44:51 GMT

[
    {
        "id": 1,
        "location": {
            "latitude": 47.099,
            "longitude": 2.438
        },
        "name": "zob"
    }
]
[tlk:~/Dev/TmpRestAPI]$ curl -X OPTIONS http://localhost:5000/api/workplace -i
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Allow: HEAD, OPTIONS, GET
Access-Control-Allow-Origin: *
Content-Length: 0
Server: Werkzeug/0.9.6 Python/2.7.9
Date: Wed, 07 Jan 2015 07:45:11 GMT

Thanks for the detailed issue report! I will dig into this more tonight.
Off the cuff, can you verify that you are on the latest version? The
allow_headers parameter was introduced in the latest version released
(renamed from headers). (pip install -U flask-cors)
Cheers
On Wed, Jan 7, 2015 at 2:49 AM thetlk<EMAIL_ADDRESS>wrote:

I've created this small rest api application
from flask import Flaskfrom flask.ext.cors import CORSfrom flask.ext.restful import Resource, Apiimport json
app = Flask(name)
CORS(app, resources=r'/api/*', allow_headers='Content-Type')
api = Api(app)
workplaces = [
{"id":1, "name":"zob", "location":{"latitude": 47.099, "longitude": 2.438}}
]
class WorkplaceList(Resource):
def get(self):
return workplaces
class Index(Resource):
def get(self):
return "ok"
api.add_resource(Index, '/')
api.add_resource(WorkplaceList, '/api/workplace')
if name == "main":
app.run(host='<IP_ADDRESS>', debug=True)
When I send request to this small sever, there is no
Access-Control-Allow-Header HTTP header :
[tlk:~/Dev/TmpRestAPI]$ curl -X GET http://localhost:5000/api/workplace -i
HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 154
Access-Control-Allow-Origin: *
Server: Werkzeug/0.9.6 Python/2.7.9
Date: Wed, 07 Jan 2015 07:44:51 GMT
[
{
"id": 1,
"location": {
"latitude": 47.099,
"longitude": 2.438
},
"name": "zob"
}
]
[tlk:~/Dev/TmpRestAPI]$ curl -X OPTIONS http://localhost:5000/api/workplace -i
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Allow: HEAD, OPTIONS, GET
Access-Control-Allow-Origin: *
Content-Length: 0
Server: Werkzeug/0.9.6 Python/2.7.9
Date: Wed, 07 Jan 2015 07:45:11 GMT
—
Reply to this email directly or view it on GitHub
https://github.com/CoryDolphin/flask-cors/issues/97.

[tlk:~/Dev/TmpRestAPI]$ pip2.7 install -U flask-cors
Requirement already up-to-date: flask-cors in /usr/lib/python2.7/site-packages
Requirement already up-to-date: Six in /usr/lib/python2.7/site-packages (from flask-cors)
Requirement already up-to-date: Flask>=0.9 in /usr/lib/python2.7/site-packages (from flask-cors)
Requirement already up-to-date: Werkzeug>=0.7 in /usr/lib/python2.7/site-packages (from Flask>=0.9->flask-cors)
Requirement already up-to-date: Jinja2>=2.4 in /usr/lib/python2.7/site-packages (from Flask>=0.9->flask-cors)
Requirement already up-to-date: itsdangerous>=0.21 in /usr/lib/python2.7/site-packages (from Flask>=0.9->flask-cors)
Requirement already up-to-date: markupsafe in /usr/lib/python2.7/site-packages (from Jinja2>=2.4->Flask>=0.9->flask-cors)
[tlk:~/Dev/TmpRestAPI]$

Ahh, Access-Control-Allow-Headers are only returned in response to a pre-flight request. This is an OPTIONS request with the following constraints:

Include an Access-Control-Request-Method header with as header field value the request method (even when that is a simple method).
If author request headers is not empty include an Access-Control-Request-Headers header with as header field value a comma-separated list of the header field names from author request headers in lexicographical order, each converted to ASCII lowercase (even when one or more are a simple header).
3.Exclude the author request headers.
4.Exclude user credentials.
Exclude the request entity body.

Making requests with curl does not actually simulate what a browser is expected to do with CORS. Technically, to make a GET request cross origin with a Content-Type header, a pre-flight OPTIONS request is made with an Access-Control-Request-Method. Since curl is missing this header, it is technically not a pre-flight request, and will not have the Access-Control-Allow-Header. This pre-flight request tells browsers that they may submit a request with the Access-Control-Allow-Headers to the route with the method specified in Access-Control-Request-Method, thus it is only ever returned on a preflight request.
This implementation appears to be consistent with the w3c spec. Since you were not sending a content-type header,
Making the request in a browser shows the behavior.

Let me know if you have any other questions, and if I can help in any way!
Thanks for the detailed report, and thanks for being patient!
Cory


Can I update the buttons' icons while clicking?

First of all, this is a great and useful project. It makes the buttons be amazing.
I have a question that if I could update the sub-item icon while the button is clicked.
For example, I have a sub-item which can set the rating bar to be visible by clicking.
I wanna change the icon of this button when it is clicked, change to a icon describes remove/hide the rating bar.
I tried like this:
itemUpdateRatingIcon.setImageResource(R.drawable.ic_hide_rating_bar);
//updateRaitngButton = itemBuilder.setContentView(itemUpdateRatingIcon).build();
updateRaitngButton.setTag(DELETE_RATING);
the second one makes an error that asks me to remove view before setContentView.
Thanks for the help.  :)

Oh. It works. XD
only use this statement: itemUpdateRatingIcon.setImageResource(R.drawable.ic_hide_rating_bar);
then the icon will update.

hi guys , i am getting some problems.
howto handle click events on "SubActionButton" .
as i am using touchlistener but its giving me a crash "as i am changing fragment after click"
"FloatingActionButton " is in a my fragment .(sorry for description as i am new to android)

In my case, I use it in the activities, could be the same in fragments but no test yet.
I set TAG to the subActionButtons, then use onclicklistener to get tag to control the events in onClick function. You can try it, good luck! :)

I can't update the icons. I gave this line on the onclick listener method.
lcIcon9.setImageResource(R.drawable.media_pause);

how to hide both "subActionButtons" and "FloatingActionButton" before moving to another fragment.
i am getting "NullPointer" while hiding "subActionButtons" .
"FloatingActionButton " hides successfully but how to hide all subActionButtons.

@AruLNadhaN, I did something like this to change the icon of the button to add/hide rating bar. Did you set tag to your buttons? You can try it.
if (v.getTag().equals(UPDATE_RATING)) {
if (gameRatingSmall.getVisibility() == View.VISIBLE) {
if (game.getRating() != -1) {
Log.i("rating bar", "show large hide small");
gameRatingSmall.setVisibility(View.GONE);
gameRatingLayout.setVisibility(View.VISIBLE);
itemUpdateRatingIcon.setImageResource(R.drawable.ic_hide_rating_bar);
}
} else {
if (game.getRating() == -1) {
Log.i("rating bar", "show large");
gameRatingLayout.setVisibility(View.VISIBLE);
itemUpdateRatingIcon.setImageResource(R.drawable.ic_hide_rating_bar);
} else {
Log.i("rating bar", "show small hide large");
gameRatingSmall.setVisibility(View.VISIBLE);
gameRatingLayout.setVisibility(View.GONE);
itemUpdateRatingIcon.setImageResource(R.drawable.ic_add_rating_bar);
}
updateGameActionMenu.close(true);
}
//updateGameActionMenu.close(true);
}

@akash09766, this is the function call that I use to hide/close the sub buttons.
updateGameActionMenu.close(true);
updateGameActionMenu is the FloatingActionButton

@harveyxiacn ,there is no "close(bolean)"  method avaailable for FloatingActionButton.
but close(bolean)  method is available for FloatingActionMenu.
so to completely hide CircularFloatingActionMenu(=action button + sub action button) ,
what i did is :->
 FloatingActionMenu    rightLowerMenu.close(true);
 FloatingActionButton		rightLowerButton.setVisibility(View.INVISIBLE);

so didn't get  CircularFloatingActionMenu in another fragment after switching.
what you have done to completely hide CircularFloatingActionMenu.
thanks for lightning fast reply

@akash09766 sorry man. the wrong copy XD  It is a FloatingActionMenu. I didn't pay too much attention :P but the name of the variable shows that is a FloatingActionMenu... Sorry again :P

by the way thanks for solution

np. XD
I am trying to learn it as well XD
2015-03-03 9:02 GMT-04:00 akash wangalwar<EMAIL_ADDRESS>
by the way thanks for solution
—
Reply to this email directly or view it on GitHub
https://github.com/oguzbilgener/CircularFloatingActionMenu/issues/24#issuecomment-76941016
.

@akash09766 I just found a solution that can hide the floating action button before the fragment is replaced.
I use floatingActionButton.detach();
in onDestroyView override method :p try it

this project is uesful,bay the way,have eclipse demo?

@harveyxiacn , your solution is smarter than mine .
good one

@harveyxiacn , yours solution is smarter than mine .
Good one


[Bug] Examples workflow incorrectly passes

Describe the bug
examples.py doesn’t catch for the case when it cannot run the morpho file itself, as is happening right now since the command is morpho5. So no examples are run, but it reports all passing. While changing it to morpho6 should do the trick for now, it would be great to catch and report this locally or through the CI.
P.S. The examples.py is currently passing all tests if run with morpho6 on my machine!

Thanks for this @joshichaitanya3 ! We will fix this as we work on the 0.6.1 release.

Thanks again for noting this, @joshichaitanya3; we've now fixed this in PR #276.


[BUG] buy now  button is not working

Description
I just want to add the link of the product from any existing website . So, I would Like to work on it.
Screenshots
No response
Any additional information?
No response
What browser are you seeing the problem on?
No response
Checklist

[X] I have checked the existing issues.
[X] I have read the Code Of Conduct
[X] The changes don't break the code
[X] Please attach the screenshots and video of the development work once it is done

I have added the linked

https://github.com/user-attachments/assets/dd85cee3-8cd0-4e5c-af58-b147c85565f5

@Deepikakolli4 That's not needed. Since this is an e-commerce website, we shouldn't add Amazon's link—people can buy directly from our site. Please try to raise a more valuable issue.


FAILS:  meteor npm install --save angular2-meteor-accounts-ui

Step 8 of socially tutorial has a problem - the following fails:
$ meteor npm install --save angular2-meteor-accounts-ui
npm ERR! Darwin 15.4.0
npm ERR! argv "node" "/Users/light/.meteor/packages/meteor-tool/.1.3.0_3.nfjm3y++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm" "install" "--save" "angular2-meteor-accounts-ui"
npm ERR! node v0.10.43
npm ERR! npm  v2.14.22
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/angular2-meteor-accounts-ui
npm ERR! 404
npm ERR! 404 'angular2-meteor-accounts-ui' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/light/ownCloud/meteor/socially/npm-debug.log

Refer to https://github.com/Urigo/angular-meteor-docs/issues/24
(Let's put all same issues in one place -> angular-meteor-docs)

I'm all for it... I'm just figuring out the relationship between all these repos myself...  thanks for "the glue".
@Hongbo-Miao - do you have any idea why I'm getting the messages:
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2-meteor-accounts-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

It looks like there is a problem in the "install" step of angular2-meteor-accounts-ui package... I'm a noob when it comes to npm, do you have any experience as to what's going wrong?

Now I get the following:
$ meteor npm install --save angular2-meteor-accounts-ui
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2-meteor-accounts-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
|
><EMAIL_ADDRESS>install /Users/light/ownCloud/meteor/socially/node_modules/angular2-meteor-accounts-ui
> node install.js

npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2 will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2 will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2 will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from angular2 will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
<EMAIL_ADDRESS>node_modules/zone.js

<EMAIL_ADDRESS>node_modules/reflect-metadata

<EMAIL_ADDRESS>node_modules/es6-shim

<EMAIL_ADDRESS>node_modules/rxjs

<EMAIL_ADDRESS>node_modules/angular2

<EMAIL_ADDRESS>node_modules/angular2-meteor-accounts-ui
├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
which leaves me with a node_modules directory with the following in it:
$ ls node_modules/
angular2                        es6-shim                        rxjs
angular2-meteor-accounts-ui     reflect-metadata                zone.js

Is that what I should expect?

yes that's good.

so how should I write my parties-list.ts??
seems like the following is the only thing that passes muster with atom:
import {LoginButtons} from '../../node_modules/angular2-meteor-accounts-ui/login-buttons';

but then it blows up in the browser when it tries to load:
Uncaught (in promise) Uncaught SyntaxError: Unexpected token <
	Evaluating http://localhost:3000/node_modules/angular2-meteor-accounts-ui/login-buttons
	Error loading http://localhost:3000/client/app

Similar problem for me too

fixed in the updated tutorial


producing raw interaction frequency matrices from .hic

Hello,
I saw that juicer can produce O/E pearson matrices from .hic files using the "pearson" module. However, I am interested in getting the raw IF matrices from the .hic files. Can juicer produce those?
Thank you!

Are you looking for this: https://github.com/aidenlab/Juicer/wiki/Data-Extraction
Also, general questions are preferred on the forum and help serve as FAQs that way: aidenlab.org/forum.html

Noted about the forum.
That is exactly what I needed. Thank you!


Fix sidebar img url.

Fix image sidebar url.

Merging without approval as it is to fix a bug on recently deployed changes. Just updates an image url.


fix: LEAP-903: Add bert_classifier model

unify old ML backends: bert, electra
endpoint for many AutoModelForSequenceClassification compatible models
add fit() method based on HF Trainer
remove old ML backends

Codecov Report
Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 49.88%. Comparing base (5db95d1) to head (5101b8a).

Files
Patch %
Lines

label_studio_ml/ls_io.py
0.00%
7 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #469      +/-   ##
==========================================
- Coverage   57.93%   49.88%   -8.05%
==========================================
  Files          28       20       -8
  Lines        1348      900     -448
==========================================
- Hits          781      449     -332
+ Misses        567      451     -116

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Test workflow for AArch64

The release workflow supports AArch64, but the test doesn't.
It's not ideal to publish without tests, so I'd like to add CI configuration.
GitHub Actions doesn't have native AArch64 environment, so we need to use QEMU.
Note that it has 6-hour time limit for each execution.
I'd like to discuss with developers to find a best way. @mjw99

I've just tried the above with an updated actions/checkout@v3 and docker/setup-qemu-action@v2
I see an error in building at https://github.com/mjw99/pyscf/runs/6770537388?check_suite_focus=true
........
-- Looking for ffsll
-- Looking for ffsll - not found
CMake Error at CMakeLists.txt:72 (message):
  A required library with BLAS API not found.

The build in my CI was OK (here), but the branch was one week old, based on  https://github.com/pyscf/pyscf/commit/9d5b5bd309d1cc55fbd1a0ec76e26b5b0c7f76af.

Yes; that fixed it... but I am seeing the same timeout timeout as you (even with a few tweaks).

Excluding tests in pbc.df, pbc.cc and adc can be a temporary solution. We can optimize the tests in the future

Thank you @sunqm , it seems OK by excluding pbc.df, pbc.cc and adc. I'll make a pull request.

Since py3.6 is excluded in the recent PR, should it also be excluded in the release workflow?
And why py3.10 is included in the release workflow but not in this test workflow?

The fail in py3.6 is due to h5py.
Recent pip automatically finds a good (older) version, so no error occurs. However, test CI's pip cannot.
If publish CI also fails, py3.6 should be removed. If OK, we need to check why only test CI fails.
Does someone know?
I forgot about py3.10. Someone (or I) should update the yaml file.

@sunqm, you mentioned about the test optimization (pbc.df, pbc.cc and adc).
Could you tell me more? If possible, I'd like to contribute on it.

@sunqm, you mentioned about the test optimization (pbc.df, pbc.cc and adc). Could you tell me more? If possible, I'd like to contribute on it.

pbc.df will be replaced by new algorithms and tests in this module shall be more stable and fast in the future.
Some tests in pbc.cc and adc runs an entire test system to get the total energy for validation. For the purpose of testing individual functions, computing the energy is not needed (and sometimes not reliable). We just need to make sure (1) important functions and branches are covered in the tests and (2) the output are reproducible given fixed input. Some tests in the two modules can be replaced by true unittest for specific functions

Tests for aarch64 are deployed on github ci actions . Tests for pbc and some other modules are excluded because they are slow.