[BUG] Loading data from vertical using the 'query' option always uses the default schema

Environment

Spark version: 3.2
Hadoop version: 3.3.1
Vertica version: 10.1
Vertica Spark Connector version: 3.2.1
Java version:
Additional Environment Information:

Problem Description
When loading vertica data into a dataframe using the 'query' option, the 'dbschema' seems to be ignored. Prefixing the SQL tables with the schema works as expected, but this is not always convenient. In my case, I am getting the SQL from a semantic layer, which doesn't add the scheme to the table names and expects the correct schema to be configured as default.

Steps to reproduce:

Use spark.read.format, and define the 'query' and 'dbschema' options. Set 'dbschema' to a schema other than the default. Use a SQL query that doesn't prepend schema to the tablenames and that targets a table that only exists on dbschema. The call incorrectly fails.

Expected behaviour:

The 'dbschema' option should be honored when 'query' is used

Actual behaviour:

'dbschema' is not honored

Error message/stack trace:
Code sample or example on how to reproduce the issue:

Spark Connector Logs

Add related logs entries here.

Thanks for the ticket @adelcast. We'll be taking a look at this.

@adelcast We just recently opened PR #448 that will allow dbschema to be added to the query's FROM clause table name. Let me know if it addresses your use case.

it does! thanks for taking a look at this!


UI Fixes for Short Term

Few things to do in order to accommodate a 'alpha-preview':
Homepage Nav
• Icons need to be passed in for subsections alongside title and href - let's try a default of no icon - not a big fan of all the empty page icons now that I'm seeing it.
• More spacing between the subsection items in the list (ideally even vertical distribution with equal padding at top and bottom), optimize for 6 elements or maybe increase font-size. Currently too much empty vertical space for the number of links.
• Change section icons to map to design (cube icon, tool icon, etc.) - the grey colored ones.
• Add hover state over the links (same light purple color)
• Image inside of card (left side carousel) is not contained - larger images overflow onto the text. Should have max dimensions equal to the placeholder.
• Hide search for now
• Nav should close if I click away on the rest of the screen
Homepage: Quickstart Heading (3 column card)
• There is the padding on the header while there isn't on the body subtitle text. Both should be aligned to the same left edge.
• I think the icon is supposed to be there but not showing?
Social Footer Component
• Grey border is appearing for one some boxes but not all - please review design
• Gradient looks like it gets cut off by container vs the gradient on the header which does not - the header version is preferred.
Route change
• Change route from /builders -> /getting-started
• CMD + F for any references to /builders and replace
Search

Add page titles to internal pages and run crawler

Critical Path
• Merge in PRs from Friday (Alex)
• Fix UI issues from today (Mack)
• Merge in docs PRs on repo into 'dapp-development' (neil)
• Event Data (abhinav)
• Article Data (abhinav)
• Missing Images & Icons (neil)
• Add description to all tools -> ToolCardProps should be the same as SDKCardProps (neil)
• Tools Data (Hannah)
• Add GA: https://github.com/onflow/next-docs-v1/issues/193(hannah)
• Tools Page (Srinjoy)
• Learn Page (Srinjoy)
• Community Page (Srinjoy)
• Docs page update to highlight new portal (Srinjoy)

Prioritze event card fixes (cc: @alse )

• Add description to all tools -> ToolCardProps should be the same as SDKCardProps (neil)
@srinjoyc how should we display the SDKCards if given description and commit date + last release date? Which one of the two should we show?


New version: MPI v0.10.1

Registering package: MPI
Repository: https://github.com/JuliaParallel/MPI.jl
Created by: @simonbyrne
Version: v0.10.1
Commit: f471b62fea9ff46411f83556b95eac51023a9667
Reviewed by: @simonbyrne
Reference: https://github.com/JuliaParallel/MPI.jl/commit/f471b62fea9ff46411f83556b95eac51023a9667#commitcomment-35658445

Your new version pull request does not meet all of the guidelines for automatic merging.
Specifically, your pull request does not meet the following guidelines:

The following dependencies do not have a compat entry that has an upper bound: Requires

If you want to prevent this pull request from being auto-merged, simply leave a comment.
(If you want to post a comment without blocking auto-merging, you must include the text [noblock] in your comment.)

It is important to note that if your pull request does not meet the guidelines for automatic merging, this does not mean that your pull request will never be merged. It just means that your pull request will require manual review by a human.

These guidelines are intended not as requirements for packages but as very conservative guidelines, which, if your new package or new version of a package meets them, it may be automatically merged.

On a separate note, I see that you are registering a release with a version number of the form v0.X.Y.
Does your package have a stable public API? If so, then it's time for you to register version v1.0.0 of your package. (This is not a requirement. It's just a recommendation.)
If your package does not yet have a stable public API, then of course you are not yet ready to release version v1.0.0.

[noblock]

Please fix the compatibility bounds for the next release such that it will be automatically merged.


Any way to copy chats or export e. g. as markdown file?

Description
great chat ui. great development. but: where can we find a way to copy the chatbot's answer(s) to the clipboard or export a complete chat into a simple markdown file? unfortunately, in this point the chat ui is inferior to others such as bettergpt in everyday use… or am i missing something here?
Device and browser
iphone 13 pro, ios 17.2.1, safari
Screenshots and more

Willingness to Contribute

[ ] 🙋♂ Yes, I would like to contribute a fix.

Hi @vbth did you find a way to do this?

Improved the Export dialog, including the new Markdown option:


NaN values in loss function during Step 2.2

Hey @chenwydj ,
during the step 2.2 with custom labels, the value of the loss function leads to "NaN" in the last few steps (see image below).

Everything appers to be ok till epoch 341.

From epoch 351 on, something is wrong with the mIoU. All labels except "unlabeld" reach a mIoU of 0%.

It seems to be a numerical stability problem.
Do you agree with that?
Do you have an idea to solve this problem?
It would be great if you can give me some hints to answer this questions.
Kind regards.

Hello together (@KHeap25 @chenwydj ),
I have exactly the same problem. I also get NaN values during the training at step 2.2 at the Loss value.
What is the reason?  Have you been able to identify the problem @KHeap25 ?
I hope I get a solution here. We would like to publish soon.

Hey @Gaussianer
Hey @chenwydj,
I have been running  the last train step (step 2.2) agian on two identically GPU's indipendent from each other.
The result is that one GPU has finished without the NaN error and the other one (same as above ) gets the NaN values again.
So it seems to be a problem with my hardware / platform.
Furthermore, I can't say which influence labels have to the train process, that are listet in labels.py but not included in the pictures in train and val dataset.
Maybe you can give a hint, that can be interesting for the people which are working with custom data.
If anybody will face this error/behavior again, feel free to open a new issue and cite this comments here. Perhabs we can find the origin of the NaN error.


[DPE-3331][GCS] Add service account credentials

Some public clouds support service accounts instead of access_/secret_key. GCP is one example.
This PR adds service account credential support to the s3 integrator.
NOTE: for now, keeping the interface changes in this same PR, although it should land in data-platform-libs repo eventually.

Hi @welpaolo thanks for your review. I actually rebased this change onto that PR.
@a-velasco can you review if I did not introduce any issues? Thanks


[QUESTION]Correct code raised unexpected exception (under vpn)

Issue Template
Please use this template!
Initial Check

If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'twint' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'twint'. Thanks.

Done.

Make sure you've checked the following:

[] Python version is 3.6;
[] Updated Twint with pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint;
[] I have searched the issues and there are no duplicates of this issue/question/request.

Done.
Command Ran

Please provide the exact command ran including the username/search/code so I may reproduce the issue.

import twint

c = twint.Config()
c.Username = "noneprivacy"
c.Search = "#osint"

twint.run.Search(c)

Description of Issue

Please use as much detail as possible.

I'm running this code under a vpn since twitter is blocked in my area. The vpn software is ShadowSocksR, and it works nicely in all other cases. But when I ran the code above, an exception occurred. It seems that it failed to connect to twitter due to some network problem. For your information, I'll provide the log below.
CRITICAL:root:twint.get:User:Cannot connect to host twitter.com:443 ssl:True [Connect call failed ('<IP_ADDRESS>', 443)]
Traceback (most recent call last):
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 936, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 954, in create_connection
    raise exceptions[0]
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 941, in create_connection
    await self.sock_connect(sock, address)
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\asyncio\selector_events.py", line 464, in sock_connect
    return await fut
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\asyncio\selector_events.py", line 494, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 10060] Connect call failed ('<IP_ADDRESS>', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:/Users/antho/PycharmProjects/Graduation/1221.py", line 8, in <module>
    twint.run.Search(c)
  File "c:\windows\system32\src\twint\twint\run.py", line 288, in Search
    run(config, callback)
  File "c:\windows\system32\src\twint\twint\run.py", line 209, in run
    get_event_loop().run_until_complete(Twint(config).main(callback))
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 579, in run_until_complete
    return future.result()
  File "c:\windows\system32\src\twint\twint\run.py", line 150, in main
    await task
  File "c:\windows\system32\src\twint\twint\run.py", line 194, in run
    await self.tweets()
  File "c:\windows\system32\src\twint\twint\run.py", line 133, in tweets
    await self.Feed()
  File "c:\windows\system32\src\twint\twint\run.py", line 49, in Feed
    response = await get.RequestUrl(self.config, self.init, headers=[("User-Agent", self.user_agent)])
   File "c:\windows\system32\src\twint\twint\get.py", line 119, in RequestUrl
    response = await Request(_url, params=params, connector=_connector, headers=headers)
  File "c:\windows\system32\src\twint\twint\get.py", line 143, in Request
    return await Response(session, url, params)
  File "c:\windows\system32\src\twint\twint\get.py", line 148, in Response
    async with session.get(url, ssl=True, params=params, proxy=httpproxy) as response:
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\client.py", line 483, in _request
    timeout=real_timeout
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 859, in _create_connection
req, traces, timeout)
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 1004, in _create_direct_connection
    raise last_exc
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 986, in _create_direct_connection
    req=req, client_error=client_error)
  File "C:\Users\antho\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\connector.py", line 943, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host twitter.com:443 ssl:True         [Connect call failed ('<IP_ADDRESS>', 443)]

Process finished with exit code 1`

Environment Details

Using Windows, Linux? What OS version? Running this in Anaconda? Jupyter Notebook? Terminal?
My OS is Windows 10, and I'm running the code in PyCharm.

It does not seem related to Twint itself, rather to the VPN


Export CK3 titles for EU4-to-Vic3 converter

We should output a file /vic3_converter/ck3_title_equivalences.txt, with this syntax, TAG;x_title;abcgfx.
The converter automatically outputs relevant lines for all countries generated in EU4.
TAG is EU4 generated tag (e.g. X00), x_title is the CK3 title it comes from (e.g. k_arabia), abcgfx is the EU4 gfxculture assigned to that tag.
If we output this, we need not port over the extensive library of EU4-to-Vic2 localization-based flag-matching, just needing that feature to be reduced to few cases (e.g. "Abbasids" should override k_arabia, non-vanilla EU4 "Yugoslavia" should be matched with Vic3 Yugoslavia)

Due to https://github.com/ParadoxGameConverters/EU4toVic3/issues/89, we may also export the CK3 rank, with Empire, Kingdom, Grand Principality, Principality assigned to Empires, Kingdoms, Duchies, Counties

Considering how much can happen in EU4, is probably not a good idea. What was once a duchy is now an Empire. I don't see how using CK3 data would be useful at any point in time.


Incorrect custom connectionline sourceposition with onEdgeUpdate

Describe the Bug
In this screenshot, I'm updating the edge, by dragging the right side of it. The solid red line is the existing edge. The dotted line is the edge being dragged with a custom ConnectionLine.

You can see the dotted lined connection edge is incorrectly attaching to the bottom of the node, not the right side. That seems to be because, in this line:
https://github.com/wbkd/react-flow/blob/6b9d5ef5e4f464fd40aa037584ab2f8131318dd3/src/components/ConnectionLine/index.tsx#L73
There is no sourceHandle, so isRightOrLeft defaults to false.
This means the custom ConnectionLine component gets targetPosition: top and sourcePosition: undefined, so the custom bezier line I make in my ConnectionLine:
  const edgePath = getBezierPath({
    sourceX,
    sourceY,
    sourcePosition,
    targetX,
    targetY,
    targetPosition,
  });

is treated as a vertical path, not a horizontal path.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Create a custom connectionline for a right/left handled setup, make the edges draggable, and drag an edge connected to a left handle.
Expected behavior
The custom connectionline receives the proper source and target information.
Screenshots or Videos
No response
Platform

OS: MacOS
Browser: Chrome
Version: 9.7.2

Additional context
I'm using custom handles:
<Handle
          type="source"
          position={Position.Right}
          id="out"
          style={{ top: `${handleTop}px` }}
        />

and

            <Handle
              id={name}
              type="target"
              position={Position.Left}
              style={{ top: `${handleTop + index * 20}px` }}
            />

If that's relevant

Thanks! We'll check that.

I think we are seeing something similar ... we have a scenario where we are programmatically updating the the position via the style of the handle and or hiding / showing the handle ... upon doing so the origin of all new dragged edges is at the old location or in the case of previously hidden handles the origin of a newly dragged edge line originating from the previously hidden handle appears to be at the 0,0 coordinate of the flow container.

This seems to still be a problem in 11.10.1. And it affects also getSmoothStepPath and  getSimpleBezierPath.
@AndrewRayCode did you find a way to overcome this?

@mehecip @AndrewRayCode
ConnectionLines have been refactored in v12. Now the unavailable handle (either source or handle) will be assumed to be on the opposite side.
Meaning, if you update an edge from a target handle that has Position.Left the ConnectionLine is assumed to originate from Position.Right.  You can check out v12 beta to see if this solves your problem.

This is fixed in React Flow 12!
If you are using 11, you can find the migration guide here: https://reactflow.dev/learn/troubleshooting/migrate-to-v12


Validation Issue

Validation is not working , Using textbox  and click on required, after rendered html page ,no vaalidation applay

Yes, i can confirm that
@tonytan4ever are you still maintaining this repo or got busy with life?

I will fix this issue by next week.

wow, that would be great! :+1:

Fixed:
https://github.com/tonytan4ever/Bootstrap-Form-Builder-JV3/commit/c1d617f8377e64a8d50c66b613dbf30634bde1c0


Add milestone summary to issue/PR

Simple milestone unit when issue/PR has one

Show name
progress bar with numbers (e.g. "5/11")
tap to open milestone (safari for now)

GQL doesn't return milestone numbers. Idk if there's a way to link without the number (name?).

Had considered adding this to repo view earlier and recall seeing something for milestone numbers - will av to double check

milestone {
      url
      number
      title
}

Returns
"milestone": {
      "url": "https://github.com/rnystrom/Freetime/milestone/1",
      "number": 1,
      "title": "1.0.0"
}

Should be all the information we need?

Ah nice, ya the number missing was b/c I'm using MilestoneItem for the timeline. Glad to know the number is available here!

Bummer ya, doesn't look like there is a way to get Issues/PRs for a given milestone. That's weird. I guess we can just add the milestone along w/ pushing the milestone web page on tap for now.

Filed

Milestone info added!!
https://platform.github.community/t/milestone-timeline-events-available-on-pr-but-no-root-milestone-object/2768/3

Close as possible, though I'd still love to be able to query open/total numbers, just having the info is good enough for now.


add: firefox-developer-edition-bin

In my own defense, zsh did something funny with the commit message and removed the package name


yii\web\Link remove null property

I'm trying to implement yii\web\Linkable to some ActiveRecord, when I'm using yii\web\Link the result show all property. but, if I use yii\web\Link in nested array, the result only show some property what I set.
What steps will reproduce the problem?
on my table class Activerecord, I implement yii\web\Linkable
and I add function getLinks
$managerLink = new yii\web\Link([
     'href' => 'http://example.com/users/4',
     'title' => 'My Manager',
]);
return [
     'self' => 'http://example.com/users/1',
     'friends' => [
            'http://example.com/users/2',
            'http://example.com/users/3',
     ],
     'manager' => $managerLink, // $managerLink is a Link object
     'managers' => [
           'manager1' => $managerLink,
     ]
]

the result,
    . . .
    "_links": {
        "self": {
            "href": "http://example.com/users/1"
        },
        "friends": [
            {
                "href": "http://example.com/users/2"
            },
            {
                "href": "http://example.com/users/3"
            }
        ],
        "manager": {
            "href": "http://example.com/users/4",
            "name": null,
            "type": null,
            "templated": false,
            "profile": null,
            "title": "My Manager",
            "hreflang": null
        }
    }
}

but if I make nested array (managers) like this,
$managerLink = new yii\web\Link([
     'href' => 'http://example.com/users/4',
     'title' => 'My Manager',
]);
return [
     'self' => 'http://example.com/users/1',
     'friends' => [
            'http://example.com/users/2',
            'http://example.com/users/3',
     ],
     'manager' => $managerLink, // $managerLink is a Link object
     'managers' => [
           'manager1' => $managerLink,
     ]
]

the result to be,
    . . .
    "_links": {
        "self": {
            "href": "http://example.com/users/1"
        },
        "friends": [
            {
                "href": "http://example.com/users/2"
            },
            {
                "href": "http://example.com/users/3"
            }
        ],
        "manager": {
            "href": "http://example.com/users/4",
            "name": null,
            "type": null,
            "templated": false,
            "profile": null,
            "title": "My Manager",
            "hreflang": null
        },
        "managers": {
            "manager1": {
                "href": "http://example.com/users/4",
                "title": "My Manager"
            }
        }
    }
}

What is the expected result?
    . . .
    "_links": {
        "self": {
            "href": "http://example.com/users/1"
        },
        "friends": [
            {
                "href": "http://example.com/users/2"
            },
            {
                "href": "http://example.com/users/3"
            }
        ],
        "manager": {
            "href": "http://example.com/users/4",
            "title": "My Manager",
        }
    }
}

What do you get instead?
Maybe this is possible bug. But how I can only show some property without make yii\web\Link object in array?
Additional info
I was try to add one condition on yii\web\Link::serialize() like this,
    public static function serialize(array $links)
    {
        foreach ($links as $rel => $link) {
            if (is_array($link)) {
                foreach ($link as $i => $l) {
                    $link[$i] = $l instanceof self ? array_filter((array) $l) : ['href' => $l];
                }
                $links[$rel] = $link;
            } elseif ($link instanceof self) { // this additional my code
                $l = array_filter((array) $link); // this additional my code
                $links[$rel] = $l; // this additional my code
            } elseif (!$link instanceof self) {
                $links[$rel] = ['href' => $link];
            }
        }

        return $links;
    }

and the result would be like expected.

Q
A

Yii version
2.0.14

PHP version
7.2.22

Operating system
MacOS

Looks like a bug. Would you please prepare a pull request with test for it?

Looks like a bug. Would you please prepare a pull request with test for it?

OK

OK


Add support for more random functions.

Why is there no support for functions like random.choice() or random.sample()? In my usecase most of the time they are faster than numpy.random.choice for size=1.

Hi @alex180500, I've labeled this issue as a feature request. For a function to be supported in Numba, one needs to "reimplement" it using Numba overloads mechanism. If you're interested in giving this a try, see the docs on extending Numba.


.github/workflows/ci.yml: workaround codecov limitation to detect environment

codecov uploader believes GITHUB_ACTIONS env signal about github actions environments.
At least for the kubernetes mode actions runner controller this assumption is not correct.
Let's help codecov to understand who is who.

As a solution I tried to switch to CodeCov v4. It requires the authentication token that doesn't work in our environment for some reason.
And starting from v4, authentication token is required even for the OpenSource projects.


CAMEL-21484: mp-config should not be loadable as it has overhead at r…

…untime
Description

Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

@davsclaus
I believe we still require the method isValidForActiveProfiles(String name). This filters the "active" properties for the selected runtime profile(s). That might be the reason why the "loadable" was chosen in the first place.
CAMEL-21480 is expected to enhance this isValidForActiveProfiles(String name) method to support for multiple profiles.

On 2nd thought: probably that CAMEL-21480 is probably also sorted by using the service as it delegates that function to the service...

I believe we still require the method isValidForActiveProfiles(String name). This filters the "active" properties for the selected runtime profile(s

I don't think that's needed with this change. If we're just resolving properties at runtime via ConfigProvider, then it'll factor in whatever active profiles are enabled.


Anonymous Provider is not supported for IOS

RNFirebaseuiAuth.m doesn't contain an anonymous provider.

Thanks @oleksandra-holovina, I will review the PR

Thanks for getting to it so quickly! It works, closing the issue


Problems with AllChem.EmbedMultipleConfs for long alkyl chains

Hi,
when I try to embed conformers of a molecule like this:
mol = Chem.MolFromSmiles('CCCCCCCC(=O)OCC(COC(=O)CCCCCCCCCCCCCCC)OC(=O)CCCCCCCC')
molH = Chem.AddHs(mol)
confIds = AllChem.EmbedMultipleConfs(molH, num_pot_confs, pruneRmsThresh = 0.5)
molH.GetNumConformers()

everything seems to work and I get 271 conformers. But when I increase the length of the alkyl chains, e.g. like this:
mol = Chem.MolFromSmiles('CCCCCCCCCCCCCCCC(=O)OCC(COC(=O)CCCCCCCCCCCCCCC)OC(=O)CCCCCCCCCCCCCCC')
molH = Chem.AddHs(mol)
confIds = AllChem.EmbedMultipleConfs(molH, num_pot_confs, pruneRmsThresh = 0.5)
molH.GetNumConformers()

suddenly, the number of conformers is 0, which I would clearly not expect. Can anyone make sense of that?
RDKit version: 2019.09.3
Operating system: Ubuntu 16.04
Python version: 3.7.4 with conda version 4.8.3

Hi @koenigmattern
A strategy that often helps with large flexible molecules like this is to use random coordinates as a starting point instead of using a distance geometry embedding. Here's a quick demo of how to use that with your molecule:
In [6]: m = Chem.AddHs(Chem.MolFromSmiles('CCCCCCCCCCCCCCCC(=O)OCC(COC(=O)CCCCCCCCCCCCCCC)OC(=O)CCCCCCCCCCCCCCC'))

In [7]: AllChem.EmbedMolecule(m)
Out[7]: -1

In [8]: ps = AllChem.ETKDGv2()

In [9]: ps.randomSeed = 0xf00d

In [10]: ps.useRandomCoords=True

In [11]: AllChem.EmbedMolecule(m,ps)
Out[11]: 0

you can also call EmbedMultipleConfs() with a params object:
In [13]: ps.pruneRmsThresh = 0.5

In [14]: cids = AllChem.EmbedMultipleConfs(m,20,ps)

In [15]: len(cids)
Out[15]: 20

Thank you, that works!


[Feature Request] Global Export/Import

I just jumped from Lineage to Samsung's version of Android. Phone's so new that there is no method to root it yet. I'm unable to efficiently export import notes. On previous iterations of Lineage I simply did
adb pull  /data/data/com.farmerbb.notepad   /home/myuser/Documents/PhoneBCK/
... followed then by an adb push but now I can't push as I don't have root. I'm aware that I could export each and every note as a text file to a SD card then move the card to the new phone and import them but from 100 notes upwards it becomes... tedious to say the least.
An "export notebook" option would save all notes as one single JSON/XML/YAML file in a writable path (SD card for example) which could then be transported and re-imported in the newer instance of Notepad.

You can already export and import all your notes in one go.
Have a look here

Oh... my fault then.


Update checksum algorithm because sha1 has been disabled

Hi, there
I tried brew update in my machine, but this formula show an error.
It seems to checksum algorithm
Here are logs to execute brew tap motemen/homebrew-ghq.
$ brew tap motemen/homebrew-ghq
==> Tapping motemen/ghq
Cloning into '/usr/local/Library/Taps/motemen/homebrew-ghq'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Checking connectivity... done.
Error: Invalid formula: /usr/local/Library/Taps/motemen/homebrew-ghq/ghq.rb
Calling Formula.sha1 is disabled!
Use Formula.sha256 instead.
/usr/local/Library/Taps/motemen/homebrew-ghq/ghq.rb:8:in `<class:Ghq>'
Please report this to the motemen/ghq tap!
Error: Cannot tap motemen/ghq: invalid syntax in tap!

So I fetch sha256 checksum and update it.
I confirmed to run successfully brew tap aibou/homebrew-ghq.
Please confirm it.

Sorry, ghq's formula has been merged into homebrew-core now.


[11.x] feat: refine return type for throw_if and throw_unless to reflect actual behavior with "falsey" values

In #53005, the return types for throw_if and throw_unless were narrowed to specify TValue or never depending on $condition being exactly true or not:
 * @return ($condition is true ? never : TValue)

This doesn't reflect the actual behavior of throw_if and throw_unless: Both check for "falseyness", and not strict equality to true.
Crucially, the new type annotation gets in the way when e.g. throw_unless is used to check for the presence of something, e.g.:
throw_unless($something, "Something required");

To keep phpstan happy, developers would have to rewrite this to e.g.:
throw_unless($something !== null, "Something required");

Luckily, phpstan offers the non-empty-mixed "advanced type", allowing us to precisely specify the behavior of throw_if and throw_unless:
 * @return ($condition is non-empty-mixed ? never : TValue)

The entire point of the referenced PR was to narrow the type after the function call, this PR had to rewrite the tests because they were failing. This removed support for narrowing the types.
This now fails:
    throw_unless(is_int($foo));
    assertType('int', $foo);

@calebdw Apologies, the loss of type narrowing was unintentional.
Trying to achieve both type-narrowing and compatibility with falsey values, I got this working for throw_if and your original type-narrowing tests:
     * @return ($condition is true ? never : ($condition is non-empty-mixed ? never : TValue))

But I'm struggling to find a similar annotation for throw_unless that addresses both needs...

I would assume something like this would work:
@return ($condition is true ? TValue  :  ($condition is non-empty-mixed ? TValue : never))

That version gives:
 ------ --------------------------------------
  Line   Support/Helpers.php
 ------ --------------------------------------
  64     Expected type int, actual: float|int
  66     Expected type 0, actual: float|int
 ------ --------------------------------------

This annotation seems to work:
     * @return ($condition is false ? never : ($condition is non-empty-mixed ? TValue : never))

If you agree, I will open a new pull request with changed annotations and your original type-narrowing tests.

Ah, yeah that makes sense.
I'm fine with these changes if the tests I originally had continue to pass.
Also, you added a bunch of assertions on the return type, but you can also add some tests to see if your falsy stuff is narrowed:
/** @var Model|null $model */
throw_unless($model);
assertType('Model', $model);

@calebdw Good call.
I can't get type-narrowing to work for throw_unless() and an argument of type Carbon|null:
function testThrowUnlessWithFalseyValue(Carbon\Carbon|null $date): void
{
    throw_unless($date);
    assertType('Carbon', $date); // → ⚠ Expected type Carbon, actual: Carbon\Carbon|null
}

@calebdw Can you tell what I'm missing?
https://github.com/laravel/framework/compare/11.x...crishoj:framework:restore-type-narrowing

Maybe try using empty?
* @return ($condition is false ? never : ($condition is empty ? never : TValue))

Since this was merged PhpStorm (storm, not stan) has started reporting every statement following throw_if / throw_unless as being unreachable. It seems to only be using the never return type, even though the documentation popup shows it knows about the rest.
As far as I'm aware I have everything set up correctly. Phpstan is enabled and configured in PhpStorm, it's not detecting any errors, I'm up to date on everything... It just seems like, for some reason, PhpStorm isn't accepting the conditional return types. Supposedly it can, but I don't know if it's a bug, or something I'm doing wrong.
Anyone else, or is it something at my end? Thanks! 🙏

It might be having issues with the non-empty-mixed type? I'm not sure, I use Neovim (btw 🙃) and it works fine. I would try opening an issue with the PHPStorm folks since this seems like an issue on their end

It looks like it's a PhpStorm bug after all 🤦♂
WI-78351 Type not correctly inferred from phpstan/psalm conditional generic return type


My feature

PR Description 📜
Added Fruits Cutting Web Game.
Developed a new Fruits Cutting web page where users can interactively cut various fruit images using a knife.Integrated background music to enhance the user experience.Added cutting sound effects to provide a more immersive and realistic interaction.
1 Fruit Cutting Interaction:
Implemented functionality to allow users to select and cut different fruit images.
Ensured smooth and responsive interactions for a satisfying user experience.
2 Background Music:
Added background music that plays continuously while the user is on the Fruits Cutting page.
Music starts automatically when the page loads and enhances the overall ambiance.
3 Cutting Sound Effects:
Integrated sound effects that play each time a fruit is cut.
Ensured that the sound effects are synchronized with the cutting action for realism.
4 Testing:
Thoroughly tested the interactive elements to ensure smooth and bug-free performance.
Verified that the background music and cutting sound effects work as intended across different browsers and devices.
5 Impact:
Enhances user engagement and provides a more enjoyable and immersive experience.
Additional-Feature
I have added background Music and cutting sound
Add your screenshots(Optional) 📸

Thank you @ankit071105 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey @ankit071105, you can't open another pull request before completing the previous one 😀
You already have the following 1 open pull request(s):
#4983

Thank you  @ankit071105 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Publish the library to jcenter

Hi, your library looks great! But it's a hassle to integrate it to modern Gradle-based projects. Can you please publish the jar to jcenter? It's really easy.

yup I'm also planning to convert projects to gradle based and have it published. I'll try to do it this week.

The library is now converted to Gradle based and waiting approval to publish to jcenter .


Work on clarification for LVAddons documentation

That's a great start @svelderrainruiz, thanks a lot for doing that!
I'm also particularly interested in the PPL section when it's available.
Everything else seems pretty clear except for the "Per-target LibraryPaths" in the "Location of LVAddons" section, which I don't understand how to use. An example would be helpful.
As a more general comment, examples are likely appreciated everywhere for everything that can be set or customized, so there might be something to improve there IMO.
Another note, regarding the "SupportedBitness" JSON attribute. The documentation doesn't say if it is a String or Numeric datatype. Again, an example would clarify this.
Thank you so much!
Originally posted by @matthiasbaudot in https://github.com/ni/labview-icon-editor/discussions/105#discussioncomment-11614136

@eyesonvis  tagging you for visibility


Added unit tests for ptr/

In an effort to increase test coverage and fill space between tasks, there are 6 packages that would benefit from tests (found from when go testing reports there are none for a package). From all the ones it listed, I looked for ones that would have the most benefit. This one was the smallest one... maybe it's overkill (but then it can be rejected if its overkill).
A list of the other 5 would be:

auth
login
models
query/simple
notification

Some of them are more complex so I started from the easier one(s) and would work my way up.

@c-koehler snapshot fabric8-wit image is available for testing.  docker pull docker.io/fabric8/fabric8-wit:SNAPSHOT-PR-1920-1

Codecov Report

Merging #1920 into master will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1920      +/-   ##
==========================================
+ Coverage   60.99%   61.09%   +0.09%
==========================================
  Files         144      144
  Lines       13342    13342
==========================================
+ Hits         8138     8151      +13
+ Misses       4482     4469      -13
  Partials      722      722

Impacted Files
Coverage Δ

ptr/ptr.go
100% <0%> (+81.25%)
:arrow_up:

Continue to review full report at Codecov.

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

Can one of the admins verify this patch?


Firefox 64-bit INOP on Public AMI

Force 32-bit Firefox to install even on 64-bit Windows because 32-bit Python installed on the Public wptagent AMI won't detect the 64-bit Firefox.

I'll take a look but a better option would be for the AMI to have the 64-bit version of python installed.

From: J. Casalino<EMAIL_ADDRESS>Sent: Friday, June 15, 2018 6:58:05 PM
To: WPO-Foundation/browser-install
Cc: Subscribed
Subject: [WPO-Foundation/browser-install] Firefox 64-bit INOP on Public AMI (#1)
Force 32-bit Firefox to install even on 64-bit Windows because 32-bit Python installed on the Public wptagent AMI won't detect the 64-bit Firefox.

You can view, comment on, or merge this pull request online at:
https://github.com/WPO-Foundation/browser-install/pull/1
Commit Summary

Firefox 64-bit INOP on Public AMI

File Changes

M browser_install.pyhttps://github.com/WPO-Foundation/browser-install/pull/1/files#diff-0 (3)

Patch Links:

https://github.com/WPO-Foundation/browser-install/pull/1.patch
https://github.com/WPO-Foundation/browser-install/pull/1.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/WPO-Foundation/browser-install/pull/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAbHBdQV6V25p9e6jndj9YMwMunDtsMSks5t9Dv9gaJpZM4UqPbG.

I updated wptagent so the 32-bit version can detect the 64-bit browsers.
I pushed the update to the release branch and the AMI's will automatically pick it up (new instances immediately, existing instances within the next hour).
Also verified it works.
File an issue with wptagent if you see any more issues like this.


--gradient_accumulation_steps

Hello, I would like to ask you about this step in README, The default batch size is 512. When GPU memory is insufficient, you can proceed with training by adjusting the value of --gradient_accumulation_steps.how to do it specifically？

I have the same question :(


Fix misleading catalog-import heading

The catalog-import instructions wrongly implied that discovery + PR creation was supported for non-GitHub integrations, as mentioned in #6464:

This workflow only supports GitHub at the moment. Updated the instructions to reflect this:

:heavy_check_mark: Checklist

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

This plugin really needs some love 👍


OCPBUGS-28659: Add ValidatingAdmissionPolicy to KAS config

What this PR does / why we need it: This plugin is in base OpenShift KAS config, but missing in HyperShift
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #28659
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/jira refresh

/retest

/approve

/lgtm

This is part of the default config in KASO since release-4.14 https://github.com/openshift/cluster-kube-apiserver-operator/blame/release-4.14/bindata/assets/config/defaultconfig.yaml#L78

/cherry-pick release-4.15

/cherry-pick release-4.14


PieChart. Clicking on legend shows empty circle

Now version dsw 3.2.21
Compare with version 3.1.39 and it works another way.
Clicking on legend item removes the sector from the diagram.
Before click

After click

fixed in 3.2.22

Thanks. It works. The same problem with donutChart #413


Suggestion: Show "Type show" instead of command pallate at the beginning

I think it is written somewhere out there about the "level" instruction, however, I missed it. It would be nice if user use "level" and get the commands pallete

we already have level simply open up the levels view. do you mean something else?

I mean at the beginning when user get into the web, instead of showing the level view, showing the hint “type 'level'" might be better

Ah I see, yeah I considered that but since so many people bounce instantly
after landing on the page, I figured presenting a screen where they can
click instead of type is a better hook for them to explore the app.
On Wed, Mar 6, 2019 at 4:28 PM Ryan Chen<EMAIL_ADDRESS>wrote:

I mean at the beginning when user get into the web, instead of showing the
level view, showing the hint “type 'level'" might be better
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/pcottle/learnGitBranching/issues/551#issuecomment-470332551,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFRn7YbWeopjboM0NYyUx8GA9EObpMcks5vUF0ggaJpZM4bev1h
.

--
Peter M Cottle
UC Berkeley 2012
UC San Diego 2011


Windows

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Hi! This is the friendly automated conda-forge-linting service.
I was trying to look for recipes to lint for you, but it appears we have a merge conflict.
Please try to merge or rebase with the base branch to resolve this conflict.
Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Still not working because I figure out how to get Python path : https://github.com/conda-forge/scijava-jupyter-kernel-feedstock/blob/windows/recipe/post-link.bat#L5
If someone knows, feel free to help...

Build works locally. I'd like to test here but appveyor doesn't start....

Finally the build starts. Fingers crossed !

Ok, so my local Windows 10 installation uses stdout to return informations frompython --version while the appveyor Windows 10 uses stderr....
At least I know I hate Windows for a good reason.


Migrate Foxy to Rolling using migrate-rosdistro.py

Rolling Ridley releases were bloomed using the script invocation:
python3 migration-tools/migrate-rosdistro.py --source foxy --source-ref 5dc357a5d2351032b62938d4ab2e10027e61570f --dest rolling --release-org ros2-gbp

During this initial run, two repositories failed to bloom and one was left in an incomplete state and so so have no current version in Rolling.

marti_common due to an Internal Server Error when pushing changes to the ros2-gbp repository on GitHub, this has happened on several retries and requires further investigation. It may just be too large of a push to handle with https.
fmi_adapter_ros2 due to release_tag being set to :{ask} with no last_release set for Foxy.
cyclonedds I made a bloom release of cyclonedds 0.6.0 for Foxy which hadn't yet merged and the disparity between the foxy/distribution.yaml and the bloom tracks caused the wrong release to be made. This is easily resolved by a bloom release of cyclonedds directly into rolling with the corrected version and I'll also be adding a check to the script to catch this situation for future migrations.

An additional commit is on this branch updating the source branches for core packages.

Is the fact that all releases have a deb inc of 2 related to the process or was it just that for the first time it took two attempts?

It's an artifact of the process. Although it's more accurate to say that all releases have a debinc of the source distribution debinc + 1. The rolling track was copied from foxy and the same version was released so the debinc in incremented. While our process normally involves resetting the debinc for new rosdistros I think that maintaining the debinc lineage indicates the continuity between the source and destination distributions that wasn't previously there. For example, the debinc 3 of fastrtps released different sources from the debinc 2 of the same version since we were targeting a pre-release commit.

How did you determine the upstream branch for repos which are not part of the ros2.repos file?

Other repositories retain the source branch from Foxy.

Other repositories retain the source branch from Foxy.

Sounds reasonable. It would be good to add that to the announcement so that maintainer know that they might have to change the branch name.


[Feature Request] Add ignorePaths or excludePaths option

The paths option is nice, but sometimes I would like it to be the other way around and specify which paths should NOT persist.

  paths: [/* ... */],

paths has this behaviour already: you choose what to include here. If some paths are not specified, they won't be stored. Do you think it should be better documented, @benface?

@gangsthub Sorry I guess I wasn’t clear. I know this already, but I would like a way to store all paths except a few that I specify. That way when I add new root-level keys to the store, they are automatically persisted, unless I add them to ignorePaths / excludePaths. Do you see what I mean?

Oh, I see what you mean. But maybe it could be "easily" added in user-land?
import { modules } from '@/store'

const modulesToOmit = ['moduleSomethingSomething']
const excludeModules = module => !modulesToOmit.includes(module)
const paths = Object.keys(modules).filter(excludeModules)

// Then use `paths` constant in `path` option...

What do you think?

Yes, sure could. Thanks for sharing that code. Feel free to close this if you think it’s not worth adding as an official API.

Let's leave that to @robinvdvleuten ;)

The example @gangsthub provided only excludes paths at a top-level. I think that a excludePaths boolean option alongside the paths array would work. The excludePaths option can be false by default, so any given path in paths are persisted. But when you pass true to excludePaths, all paths that are not in the paths option are persisted. Feel free to open a PR for this.

Hi, I like the idea of having another attribute to exclude paths or maybe a ! symbol?
I was wondering if it is possible to use the setItem function? but I am not sure how to import the default storage object.

Hi. In my case, I need to persist all keys, except two. As I couldn't find any documentation about it,  I tried with the "reducer" function, like this:
plugins: [createPersistedState({

    reducer: (state) => {
      let reducer = Object.assign({}, state)
      delete reducer.firstKeyToRemove
      delete reducer.secondKeyToRemove

      return (reducer)
    }
  })]

Where firstKeyToRemove and secondKeyToRemove are the ones to be excluded. It worked as expected, but it's certainly funny, because I understand the "reduce" function should be the opposite: "include only this keys".


build: use matrix.os

use matrix.co

cache key
upload-artifacts

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.04%. Comparing base (1a3d44c) to head (babff70).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #55   +/-   ##
=======================================
  Coverage   79.04%   79.04%
=======================================
  Files          14       14
  Lines        1021     1021
=======================================
  Hits          807      807
  Misses        145      145
  Partials       69       69

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


fixing the field name for pagerduty image_config

as per code https://pkg.go.dev/github.com/prometheus/alertmanager/config#PagerdutyImage

Thanks for the contribution. Unfortunately we can't accept it. The documentation is correct because it refers to https://github.com/prometheus/alertmanager/blob/83304da5070d8a12642b7a027d4c59060813c0e3/config/notifiers.go#L287

Thanks for the contribution. Unfortunately we can't accept it. The documentation is correct because it refers to
https://github.com/prometheus/alertmanager/blob/83304da5070d8a12642b7a027d4c59060813c0e3/config/notifiers.go#L287

but that is here no? https://github.com/prometheus/alertmanager/pull/3247/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180L806
the image_config section of the docs surely refer to https://github.com/prometheus/alertmanager/blob/83304da5070d8a12642b7a027d4c59060813c0e3/config/notifiers.go#L301 ?

Thanks


Adding Exits to a Maze

The problem statement is available here

It's was completed with a DFS algorithm, actually!


[Bug] new backup crashes app.

When i try to make a backup with the new version the app crashes a few seconds later. I wasn't able to find any anomalies in the logs: https://gist.github.com/e25ee307e9eb49b0d1586c075447d83f
I do have almost 700 manga in my library

(sorry for bad format, issue templates don't work on my phone)

Can you try the latest build

Still crashes the same way (added new log to gist)

I did find this in my logcat

Can you try on the latest build

It works now


タブ切り替えダイアログを使用せずにタブ切り替えできるようにする

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

修正済みのためクローズ


[experiment] without augmentations

Performing some experiments on the model without using augmentations. I'll be keeping track of the steps of my experiments in this issue.

First experiment
Name: 3knaoywc
Ref: https://wandb.ai/stpm-unet/STPM/runs/2yvg43sg
We changed the code such that no augmentation are performed:
 self.transforms = nn.Sequential(
            #RandomBoxBlur(kernel_size=(2,2), border_type='reflect', p=0.2),
            #RandomBoxBlur(kernel_size=(3,3), border_type='reflect', p=0.2),
            #RandomBoxBlur(kernel_size=(5,5), border_type='reflect', p=0.2),
            #RandomBoxBlur(kernel_size=(7,7), border_type='reflect', p=0.2),
            #RandomBoxBlur(kernel_size=(5,5), border_type='reflect', p=0.2),
            #RandomBoxBlur(kernel_size=(15,15), border_type='reflect', p=0.1),
            #RandomAffine(degrees=45.0, scale=(1,2), padding_mode=2, p=.75),
            #ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.),
        )

Now lets try to find the optimal threshold by looking at the distributions of false positive and false negative samples.
From the default threshold of 0.00097
For false negative:
	Mean: 0.0007572558047292703
	Median: 0.0008210714216521516
	Max: 0.000880734446970702
	Min: 0.0004892590844086252
	amount: 5
For false positive:
	Mean: 0.0012743603461189026
	Median: 0.0012743603461189026
	Max: 0.0012743603461189026
	Min: 0.0012743603461189026
	amount: 1

After optimizing the threshold (0.00082): we obtain the following confusion matrix:

Doing the same for the leather dataset:
threshold found: 0.021

Observe the difference of auc:


SCS-MP2

Can you add SCS-MP2 energy and gradients?

MP2 analytic nuclear gradients are already available as is RHF-DF-MP2 spin-component scaled if that's any help.

Thank you for your email. I can get SCS-MP2 energy from RHF-DF-MP2. I still cannot get the SCS-MP2 gradients. Can you provide a sample code for the calculation of SCS-MP2 gradients?

I modified pyscf.mp.mp2 and pyscf.grad.mp2 to add SCS-MP2 energy and gradients. Thanks, pwborthwick.


Project not built for tag 0.14.0

Hello,
I think you forgot to build the project when releasing 0.14.0. Therefore the (dist) files we get are from 0.13.0.

Sorry, not sure why those weren't committed. I'll release a 0.14.1 in a few.

Thanks for the report. Fixed via https://github.com/passy/angular-masonry/commit/192efaa5cb6d07910c6491c8b32e5cf59ae9e680


support getLoadContext when using Vite

Similar the the Cloudflare preset maintained by remix team, it would be great if the vercelPreset could also accept the getLoadContext function so that the all loaders can get that context.

I don't care how it's implemented, I just need to be able to define my loader context somewhere and use it in a vercel app.

Did you have a particular use case that you need it for? See https://github.com/vercel/remix/issues/92 for a previous time when this was brought up.

I'm migrating an existing codebase (~80 routes) and they are all setup to pull resources (like database client, environment variables) from the loader context. We did this, in theory, to make our app more portable across all runtimes/environments. Ironically, its now the only thing preventing us from using vercel.

If you could show me where this change would live... I'd be happy to send you a PR.

Same situation here, very desperate

Same issue here, we have shared context, and currently we need to make multiple API calls per session to retrieve that context (config related).

@TooTallNate any plans on supporting Hydrogen Vite? I know that getLoadContext is already supported in a classic Remix app, but it would be great to also be able to deploy Hydrogen Vite to Vercel.


Autorest Regen Preview to 3.0.0-alpha.20230907.1 by Pan Shao from refs/pull/3671/head

Triggered from https://github.com/Azure/autorest.csharp/pull/3671

API change check
API changes are not detected in this pull request.


Generated wrapper entry points do not exist in the actually binary

the generated cs file on MacOSX using clang does not generate accurate entry points
When i try to use the wrapper with the .dylib or .so (tried both) im met with
EntryPointNotFoundException: _ZN9FixedVec2C2Exx
when i nm -gU the binary all the FixedVec2 signatures are as follow
0000000000000ca0 T __ZN9FixedVec23SetExx<PHONE_NUMBER>000c80 T __ZN9FixedVec27SetZeroEv<PHONE_NUMBER>000e40 T __ZN9FixedVec29NormalizeEv<PHONE_NUMBER>000ff0 T __ZN9FixedVec2aSEOS_<PHONE_NUMBER>000fd0 T __ZN9FixedVec2aSERKS_<PHONE_NUMBER>000ce0 T __ZN9FixedVec2clEi<PHONE_NUMBER>000d10 T __ZN9FixedVec2mIERKS_<PHONE_NUMBER>000d30 T __ZN9FixedVec2mLEx<PHONE_NUMBER>000cf0 T __ZN9FixedVec2pLERKS_

_ZN9FixedVec2C2Exx demangled reads as: FixedVec2::FixedVec2(long long, long long)
I think what's happening is that this constructor is only defined in the header file and the compiler opts to inline it, thus never reaching the library.
Try moving it out of the header file and into a .cpp file so it doesn't get inlined by the compiler.

odd, even with -O0 it still inlined that. seems to have worked though.


Windows 11 install procedure and missing dependancies (transformers)

Hi all,
Ok i had multiple issues getting this working with the default requirements.txt install and although the additional install info is useful, theres no full guide, so here are the steps that will hopefully get it running for you - im using windows 11 (NOT WSL) and a 4090
1)install python 3.10.x + add to paths option

install git

install cuda 12.1 + make sure paths are correct

install vscode for c++ (unknown if necessary but I already have this for many other ai gens)

git clone repo and prepare:

git clone https://github.com/turboderp/exui.git
cd exui
python -m venv venv
call venv/scripts/activate

open requirements.txt and delete the torch & exllama2 entries, save

install torch for cuda 12.1:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
7a) then install the remaing requirement deps:
pip install - r requirements.txt

Download the correct pre-compiled wheels for xxlama2 & flash attention 2

https://github.com/turboderp/exllamav2/releases/download/v0.0.11/exllamav2-0.0.11+cu121-cp310-cp310-win_amd64.whl
https://github.com/jllllll/flash-attention/releases/download/v2.4.2/flash_attn-2.4.2+cu121torch2.1cxx11abiFALSE-cp310-cp310-win_amd64.whl

move these wheels to the exui directory then install them

pip install "exllamav2-0.0.11+cu121-cp310-cp310-win_amd64.whl
pip install "flash_attn-2.4.2+cu121torch2.1cxx11abiFALSE-cp310-cp310-win_amd64.whl"

install transformers + sentencepiece (sentence maybe not needed but got it anyway) - this is missing from any documentation here at all and youll need these to actually load a model

pip install --no-cache-dir transformers sentencepiece

run exui

python server.py

goto models and load you model

enjoy

I'm on W10 but still thanks, it finally worked once I went by your instructions.

I've tried getting Exui to work for the past few days and had nothing but issues, your guide has got me the most into it. but when I run the python server.py command i get the following
(venv) J:\exui>python server.py Traceback (most recent call last):   File "J:\exui\server.py", line 11, in <module>     from backend.models import update_model, load_models, get_model_info, list_models, remove_model, load_model, unload_model, get_loaded_model   File "J:\exui\backend\models.py", line 5, in <module>     from exllamav2 import(   File "J:\exui\venv\Lib\site-packages\exllamav2\__init__.py", line 3, in <module>     from exllamav2.model import ExLlamaV2   File "J:\exui\venv\Lib\site-packages\exllamav2\model.py", line 29, in <module>     from exllamav2.attn import ExLlamaV2Attention, has_flash_attn   File "J:\exui\venv\Lib\site-packages\exllamav2\attn.py", line 26, in <module>     import flash_attn   File "J:\exui\venv\Lib\site-packages\flash_attn\__init__.py", line 3, in <module>     from flash_attn.flash_attn_interface import (   File "J:\exui\venv\Lib\site-packages\flash_attn\flash_attn_interface.py", line 10, in <module>     import flash_attn_2_cuda as flash_attn_cuda ImportError: DLL load failed while importing flash_attn_2_cuda: The specified procedure could not be found.
From what I can see I have everything installed, any idea what im doing wrong?


Code Quality: Introduce Directory.build.props for shared properties

Description
as the title.
Usage: https://github.com/microsoft/devhome/blob/main/Directory.Build.props
Concerned code

csproj and vcxproj files

Gains

Reduced lines.
Avoid forgetting to add required properties
Avoid duplications

Requirements

Add Directory.build.props in the root
Remove diplications

Comments
No response

Can we do this in stages, and start with the duplicate props first?

Yeah starting from
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>

would be good

@0x5bfa are we still on board for this? If I recall correctly, this was causing some configuration issues.

Yeah this has great benefits but I think we can slowly adding properties to the shared one, like adding one by one and loading solution step by step on local.


Get Conversations does not work

GET to "/v3/conversations?continuationToken={continuationToken}" (with or without a continuationToken)
Returns (405) Method Not Allowed {"message":"The requested resource does not support http method 'GET'."}

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

ID: c36ddb50-9e44-96e3-2df3-174166efa75d
Version Independent ID: 68ac4b64-6616-2216-3519-e0b33d3a53e4
Content: API reference - Bot Service
Content Source: articles/rest-api/bot-framework-rest-connector-api-reference.md
Service: bot-service
Sub-service: sdk
GitHub Login: @ivorb
Microsoft Alias: v-ivorb

This Bot Connector service /v3/conversations endpoint supports the GET method, so I'm not sure what is causing the 405 HTTP response. I've labeled this as a support issue, and someone from that team should respond.
In the mean time, can you provide a little more information about your environment?

Assigning @jwiley84 to investigate

Load balancing, assigning to @mdrichardson to investigate.

@dgancho 	What base URL are you using (ie https://smba.trafficmanager.net/apis/)?

I've confirmed I can repro and this doesn't appear to be desired. @ToddN 	is reaching out to some folks to dig into this a little more.

Possibly related

@dgancho 	Per the issue I linked in my previous comment, GET /conversations works as intended. I am unsure why you are getting a 405; using the code in the linked issue works fine for me. Can you include your code?

@dgancho, do you still require assistance? We're going to close it without a response.


MW2 Anti-Cheat

Hi, I was wondering if I replace DLSS using the OverrideDlssDll / DLLPathOverrides option in COD Modern Warfare 2 could I be detected and banned by the Ricochet anticheat? I would like to be absolutely safe.

I tried other dll swaps the newer COD games will just crash with anticheat violation and do a repair that resets the dll

I also managed to get it to work today but tonight it doesn't want to start, continuous crashes and repairs

I also managed to get it to work today but tonight it doesn't want to start, continuous crashes and repairs. seems to have gained a few frames on my gtx 1080 ti, only reading in the guide it should create a log file next to the exe file but I don't see and it didn't create anything

1080ti doesn't even support DLSS

I thought via software it had it, however it didn't I had seen an improvement around 10 FPS


Adds test for negated content and absent buffer

Ticket
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/2224
Requires next version of https://github.com/OISF/suricata/pull/9944
#1518 with new signature using absent keyword

Can you add a pure absent rule test?
https://github.com/OISF/suricata/pull/9983#issuecomment-1845451196


escape username in container name

only allow [A-Za-z0-9_-], escape everything else.
cf docker container name spec
closes #25
closes #39

Ah, so it's a prescribed format for escaping through a library. Reasonable.


Diffusion PA kernel fix [diffusion_pa_ker_revert]

Remove the indices computation for SmemPADiffusionApply3D that added extra requirements on dofs1D and quad1D.
The instanciatied kernels with dofs1D==quad1D are now also tested in the unit tests.

PR
Author
Editor
Reviewers
Assignment
Approval
Merge

#2861
@camierjs
@tzanio
@tzanio + @v-dobrev
3/1/22
⌛due 3/15/22
⌛due 3/22/22

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


Add FileUtils.createSlideDir()

I add the function that creates slide' s directory and its tests.
And I replaces constants to static functions because can use mock library sinon in order to examine function createSlideDir().

:smile:


chore(deps): update pre-commit hook bridgecrewio/checkov to v2.4.22

This PR contains the following updates:

Package
Type
Update
Change

bridgecrewio/checkov
repository
patch
2.4.14 -> 2.4.22

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.

Release Notes

bridgecrewio/checkov (bridgecrewio/checkov)
v2.4.22
Compare Source
Feature

arm: implement CKV_AZURE_112 for arm - #5507
arm: implement CKV_AZURE_40 for ARM - #5499
arm: implement CKV_AZURE_58 for ARM - #5497
arm: implement CKV_AZURE_94 for arm - #5508

Bug Fix

helm: Changed error message to failure to better differentiate problems - #5517
terraform_json: correctly parse data blocks in Terraform JSON - #5509
terraform: continue processing of TF modules in the same file - #5503
terraform: fix error type - #5513

v2.4.21
Compare Source
v2.4.20
Compare Source
v2.4.19
Compare Source
v2.4.18
Compare Source
Feature

arm: implement CKV_AZURE_100 for arm - #5490
arm: implement CKV_AZURE_114 for arm - #5489
arm: implement CKV_AZURE_130 for arm - #5485
arm: implement CKV_AZURE_151 for arm - #5484

Bug Fix

arm: correctly handle json files with comments and output parsing errors - #5495

v2.4.17
Compare Source
v2.4.16
Compare Source
v2.4.15
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline


deposit: index record after publish

Adds indexing a record after publishing, along with test.
(closes #141)

Signed-off-by: PaulinaLach<EMAIL_ADDRESS>

What about sending after-record-published signal to which a listener can be connected?


Exract OpenSea assets API

PR Title

Exract OpenSea assets API

Description
The OpenSea API interactions have been extracted from the NftDetectionController and moved into a separate module. The API interactions have been extracted to simplify the controller, and make it easier to thoroughly test the API interactions and the controller logic.

Sorry for letting this get stale @VSaric ! I see there are now some conflicts; we can prioritize this review once they have been resolved

@VSaric This PR has been open for a while. Is this a change that we're still interested in making? If so, do you want a review? If not, should we close this?


No such keystore file

Seeing the same thing as Issue #1 (closed) on Linux ..
service elasticsearch start
Starting elasticsearch: Exception in thread "main" ElasticsearchException[No such keystore file /etc/elasticsearch]
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.initSSLConfig(SearchGuardKeyStore.java:154)
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.(SearchGuardKeyStore.java:112)
at com.floragunn.searchguard.ssl.SearchGuardSSLModule.(SearchGuardSSLModule.java:29)
at com.floragunn.searchguard.ssl.SearchGuardSSLPlugin.nodeModules(SearchGuardSSLPlugin.java:84)
at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:224)
at org.elasticsearch.node.Node.(Node.java:168)
at org.elasticsearch.node.Node.(Node.java:129)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
[FAILED]
uncommented lines from elasticsearch.yml:
grep -v "#" /etc/elasticsearch/elasticsearch.yml|sort|uniq
bootstrap.mlockall: true
cluster.name: deves1
discovery.zen.ping.multicast.enabled: false
logger.com.floragunn.searchguard.ssl: DEBUG
node.name: "DEV Saul Kripke"
path.data: /opt/share/elasticsearch/2.1/
path.plugins: /usr/share/elasticsearch/plugins/
searchguard.allow_all_from_loopback: true
searchguard.auditlog.enabled: true
searchguard.authentication.authentication_backend.impl: com.floragunn.searchguard.authentication.backend.simple.SettingsBasedAuthenticationBackend
searchguard.authentication.authorizer.impl: com.floragunn.searchguard.authorization.simple.SettingsBasedAuthorizator
searchguard.authentication.http_authenticator.impl: com.floragunn.searchguard.authentication.http.clientcert.HTTPSClientCertAuthenticator
searchguard.enabled: true
searchguard.key_path: /var/lib/elasticsearch/searchguard_node_key.key
searchguard.ssl.transport.http.keystore_filepath: /etc/elasticsearch/identity.jks
searchguard.ssl.transport.http.keystore_password: nopasswd4u
searchguard.ssl.transport.http.keystore_type: JKS
searchguard.ssl.transport.http.truststore_filepath: /etc/elasticsearch/trust.jks
searchguard.ssl.transport.http.truststore_password: nopasswd4u
searchguard.ssl.transport.http.truststore_type: JKS
searchguard.ssl.transport.node.enabled: true
searchguard.ssl.transport.node.encforce_hostname_verification.resolve_host_name: true
searchguard.ssl.transport.node.enforce_clientauth: true
searchguard.ssl.transport.node.keystore_filepath: /etc/elasticsearch/identity.jks
searchguard.ssl.transport.node.keystore_password: nopasswd4u
searchguard.ssl.transport.node.keystore_type: JKS
searchguard.ssl.transport.node.truststore_filepath: /etc/elasticsearch/trust.jks
searchguard.ssl.transport.node.truststore_password: nopasswd4u
searchguard.ssl.transport.node.truststore_type: JKS
security.manager.enabled: false

found another detail just prior in logs:
[2016-02-05 11:25:10,207][INFO ][com.floragunn.searchguard.ssl.SearchGuardKeyStore] Open SSL not available because of java.lang.ClassNotFoundException: org.apache.tomcat.jni.SSL
[2016-02-05 11:25:10,254][ERROR][bootstrap                ] Exception
ElasticsearchException[No such keystore file /etc/elasticsearch]
this may be related to netty version:
https://github.com/netty/netty/issues/3293
from your .pom:
using netty:
4.0.34.Final
and ssl:
1.1.33.Fork11
yet above issue notes fixed in fork
1.1.32.Fork1
and main netty version is now 4.1.
merge tree for those shows .. cannot be displayed, too many forks. :(

also confirmed it is isolated to when plugin installed:
$ bin/plugin remove search-guard-ssl
-> Removing search-guard-ssl...
Removed search-guard-ssl
$ service elasticsearch start
Starting elasticsearch:
[  OK  ]

all keystore and truststore locations are relative to the config directory, you may not use absolute path here.

# **Relative** path to the truststore file (mandatory, this stores the client/root certificates), must be placed under the config/ dir
#searchguard.ssl.transport.truststore_filepath: truststore.jks

don't see why and how https://github.com/netty/netty/issues/3293 is related to "java.lang.ClassNotFoundException: org.apache.tomcat.jni.SSL". If you want to use Open SSL be sure to follow these steps https://github.com/floragunncom/search-guard-ssl/wiki/Open-SSL-setup

now THAT makes sense .. i'll give it a go Monday, thanks!
On Sat, Feb 6, 2016 at 12:49 PM, floragunn UG<EMAIL_ADDRESS>wrote:

all keystore and truststore locations are relative to the config
directory, you may not use absolute path here.
Relative path to the truststore file (mandatory, this stores the client/root certificates), must be placed under the config/ dir
#searchguard.ssl.transport.truststore_filepath: truststore.jks
—
Reply to this email directly or view it on GitHub
https://github.com/floragunncom/search-guard-ssl/issues/6#issuecomment-180819970
.

feel free to reopen if this is still an issue

All good needed relative path thanks
Erik Swanson

On Feb 15, 2016, at 4:12 PM, floragunn UG<EMAIL_ADDRESS>wrote:
feel free to reopen if this is still an issue
—
Reply to this email directly or view it on GitHub.

Hello everyone.
Have exactly the same issue and still not resolved...
Here is my plugins/search-guard-2/sgconfig/elasticsearch.yml
searchguard.ssl.transport.keystore_type: JKS
searchguard.ssl.transport.keystore_filepath: node-1-keystore.jks
searchguard.ssl.transport.keystore_alias: node-1
searchguard.ssl.transport.keystore_password: azerty

searchguard.ssl.transport.truststore_type: JKS
searchguard.ssl.transport.truststore_filepath: truststore.jks
searchguard.ssl.transport.truststore_alias: root-ca
searchguard.ssl.transport.truststore_password: azerty
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.transport.enable_openssl_if_available: true

and the error log :
[2016-03-02 10:19:25,767][ERROR][bootstrap                ] Exception
ElasticsearchException[No such keystore file /etc/elasticsearch]
	at com.floragunn.searchguard.ssl.SearchGuardKeyStore.initSSLConfig(SearchGuardKeyStore.java:162)
	at com.floragunn.searchguard.ssl.SearchGuardKeyStore.<init>(SearchGuardKeyStore.java:130)
	at com.floragunn.searchguard.ssl.SearchGuardSSLModule.<init>(SearchGuardSSLModule.java:29)
	at com.floragunn.searchguard.ssl.SearchGuardSSLPlugin.nodeModules(SearchGuardSSLPlugin.java:113)
	at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:263)
	at org.elasticsearch.node.Node.<init>(Node.java:166)
	at org.elasticsearch.node.Node.<init>(Node.java:128)
	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

Have you any idea of what I'm doing wrong ?
Thank you very much for your help.

use relative paths, that fixed for me
On Wed, Mar 2, 2016 at 4:29 AM, Desjeunf<EMAIL_ADDRESS>wrote:

Hello everyone.
Have exactly the same issue and still not resolved...
Here is my plugins/search-guard-2/sgconfig/elasticsearch.yml
searchguard.ssl.transport.keystore_type: JKS
searchguard.ssl.transport.keystore_filepath: node-1-keystore.jks
searchguard.ssl.transport.keystore_alias: node-1
searchguard.ssl.transport.keystore_password: azerty
searchguard.ssl.transport.truststore_type: JKS
searchguard.ssl.transport.truststore_filepath: truststore.jks
searchguard.ssl.transport.truststore_alias: root-ca
searchguard.ssl.transport.truststore_password: azerty
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.transport.enable_openssl_if_available: true
and the error log :
[2016-03-02 10:19:25,767][ERROR][bootstrap                ] Exception
ElasticsearchException[No such keystore file /etc/elasticsearch]
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.initSSLConfig(SearchGuardKeyStore.java:162)
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.(SearchGuardKeyStore.java:130)
at com.floragunn.searchguard.ssl.SearchGuardSSLModule.(SearchGuardSSLModule.java:29)
at com.floragunn.searchguard.ssl.SearchGuardSSLPlugin.nodeModules(SearchGuardSSLPlugin.java:113)
at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:263)
at org.elasticsearch.node.Node.(Node.java:166)
at org.elasticsearch.node.Node.(Node.java:128)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Have you any idea of what I'm doing wrong ?
Thank you very much for your help.
—
Reply to this email directly or view it on GitHub
https://github.com/floragunncom/search-guard-ssl/issues/6#issuecomment-191152905
.

Doesn't it what I already do ?

yes, but /etc/elasticsearch/node-1-keystore.jks and /etc/elasticsearch/truststore.jks seems not existent.

Thought I copied the files in both /usr/share/elasticsearch/plugins/search-guard/sgconfig and /etc/elasticsearch.
I verified also that Elasticsearch can read these files by giving 0777 permission

How do you installed Elasticsearch? By .rpm/.deb or puppet os similar? Where is your elasticsearch.yml file? Normally the keystores have to be in the same directory as the elasticsearch.yml (the config directory)

I installed Elasticsearch via repositories and my elasticsearch.yml is in /etc/elasticsearch. But I have /usr/share/elasticsearch/search-guard/sgconfig/elasticsearch.yml file too and I have a doubt on the file I have to edit to make it work

/usr/share/elasticsearch/search-guard/sgconfig/elasticsearch.yml is not relevant, only /etc/elasticsearch/elasticsearch.yml is

Ok but if I edit /etc/elasticsearch/elasticsearch.yml, Elasticsearch doesn't restart (I'm facing a beautiful 'FAILED'), while I'm editing /usr/share/elasticsearch/search-guard/sgconfig/elasticsearch.yml, Elasticsearch gives me a 'OK' when restarting

Check the logs what is the reason for getting a FAILED

Thank you for taking time to help.
So here is the message when I restart Elasticsearch:
root@vmtest:/etc/elasticsearch# /etc/init.d/elasticsearch restart
[ ok ] Stopping Elasticsearch Server: Elasticsearch Server is not running but pid file exists, cleaning up.
[FAIL] Starting Elasticsearch Server: failed!

and here is the log file:
[2016-03-03 10:13:34,910][ERROR][bootstrap                ] Exception
ElasticsearchException[No such keystore file /etc/elasticsearch]
	at com.floragunn.searchguard.ssl.SearchGuardKeyStore.initSSLConfig(SearchGuardKeyStore.java:162)
	at com.floragunn.searchguard.ssl.SearchGuardKeyStore.<init>(SearchGuardKeyStore.java:130)
	at com.floragunn.searchguard.ssl.SearchGuardSSLModule.<init>(SearchGuardSSLModule.java:29)
	at com.floragunn.searchguard.ssl.SearchGuardSSLPlugin.nodeModules(SearchGuardSSLPlugin.java:113)
	at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:263)
	at org.elasticsearch.node.Node.<init>(Node.java:166)
	at org.elasticsearch.node.Node.<init>(Node.java:128)
	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

Here is the content of the Elasticsearch directory (/etc/elasticsearch):
root@vmtest:/etc/elasticsearch# ls -l
total 24
-rwxr-x--- 1 root          elasticsearch 3789 mars   3 10:14 elasticsearch.yml
-rwxr-x--- 1 root          elasticsearch 2571 janv. 27 14:39 logging.yml
-rw-r--r-- 1 elasticsearch elasticsearch 4134 mars   3 10:14 node-1-keystore.jks
drwxr-x--- 2 root          elasticsearch 4096 janv. 27 14:39 scripts
-rw-r--r-- 1 elasticsearch elasticsearch 1916 mars   3 10:14 truststore.jks

and the elasticsearch.yml file:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
 cluster.name: test
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
 node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
 path.data: /home/franck/elasticsearch
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.mlockall: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
# network.host: <IP_ADDRESS>
#
# Set a custom port for HTTP:
#
# http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["<IP_ADDRESS>", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true
searchguard.ssl.transport.keystore_type: JKS
searchguard.ssl.transport.keystore_filepath: node-1-keystore.jks
searchguard.ssl.transport.keystore_alias: node-1
searchguard.ssl.transport.keystore_password: azerty

searchguard.ssl.transport.truststore_type: JKS
searchguard.ssl.transport.truststore_filepath: truststore.jks
searchguard.ssl.transport.truststore_alias: root-ca
searchguard.ssl.transport.truststore_password: azerty
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.transport.enable_openssl_if_available: true

Am I doing it wrong ?
Thanks again for your patience

can you pls add the following line to elasticsearch.yml and see if you can start elasticsearch?

searchguard.ssl.transport.enabled: false

It doesn't resolve anything same error unfortunately

then you're editing the wrong elasticsearch.yml file.
Pls. post result of

sudo find / -iname elasticsearch.yml

Here is what I have:
root@vmtest:/etc/elasticsearch# find / -iname elasticsearch.yml
/etc/elasticsearch/elasticsearch.yml
/usr/share/elasticsearch/plugins/search-guard-2/sgconfig/elasticsearch.yml

pls delete (just to prevent editing the wrong file):

rm /usr/share/elasticsearch/plugins/search-guard-2/sgconfig/elasticsearch.yml

Then adding

searchguard.ssl.transport.enabled: false

to /etc/elasticsearch/elasticsearch.yml must definitively prevent your error, because with this option the code which causes you problem will never be executed. Maybe you have a problem in your /etc/elasticsearch/elasticsearch.yml with non visible characters or tabs or encoding or something like that. Display invisible characters with vi: http://askubuntu.com/questions/74485/how-to-display-hidden-characters-in-vim

Another guess. Give the keystore execute perms:

sudo chmod +x /etc/elasticsearch/*.jks

I think I'm not very lucky... Always the same error

try using keystore and truststore names without dashes in them.  i think i
had to use underscores and that did work. just forget which app (elastic,
kibana, logstash or nginx) i had to do that for ..
On Thu, Mar 3, 2016 at 6:25 AM, m0numentum<EMAIL_ADDRESS>wrote:

I think I'm not very lucky... Always the same error
—
Reply to this email directly or view it on GitHub
https://github.com/floragunncom/search-guard-ssl/issues/6#issuecomment-191716376
.

It doesn't resolve my problem too... But I'm wondering if dashes are a problem in aliases field too ?

no clue so far, sorry. Maybe try installing elasticsearch via tar.gz and get SG running. After that is working successfully purge and reinstall the package and setup SG according to the working tar.gz installation.
I will prepare a vagrant box to show thats and how its working.

Ran the below command to install search guard:
./tools/sgadmin.sh --configdir sgconfig/ --keystore /elasticsearch-2.3.2/kirk-keystore.jks --keystore-password changeit --truststore /elasticsearch-2.3.2/truststore.jks --truststore-password changeit –disable-host-name-verification
Below is the response received:
Connect to localhost:9300
Exception in thread "main" ElasticsearchException[Unable to read /elasticsearch-2.3.2/kirk-keystore.jks (/elasticsearch-2.3.2/kirk-keystore.jks) Please make sure this files exists and is readable regarding to permissions]
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.checkStorePath(SearchGuardKeyStore.java:447)
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.initSSLConfig(SearchGuardKeyStore.java:177)
at com.floragunn.searchguard.ssl.SearchGuardKeyStore.(SearchGuardKeyStore.java:136)
at com.floragunn.searchguard.ssl.SearchGuardSSLModule.(SearchGuardSSLModule.java:29)
at com.floragunn.searchguard.ssl.SearchGuardSSLPlugin.nodeModules(SearchGuardSSLPlugin.java:116)
at org.elasticsearch.plugins.PluginsService.nodeModules(PluginsService.java:263)
at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:139)
at com.floragunn.searchguard.tools.SearchGuardAdmin.main(SearchGuardAdmin.java:134)
ELASTIC SERACH configured correctly. and running.
Below(Along with searchguard configuration) is the elasticsearch.yml file located in /installation_dir/elasticsearch-2.3.2/config
# ======================== Elasticsearch Configuration =========================

NOTE: Elasticsearch comes with reasonable defaults for most settings.
Before you set out to tweak and tune the configuration, make sure you
understand what are you trying to accomplish and the consequences.

The primary way of configuring a node is via this file. This template lists
the most important settings you may want to configure for a production cluster.

Please see the documentation for further information on configuration options:
http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html

---------------------------------- Cluster -----------------------------------

Use a descriptive name for your cluster:

cluster.name: my-application
cluster.name: MTML

------------------------------------ Node ------------------------------------

Use a descriptive name for the node:

node.name: node-1
node.name: ironman

Add custom attributes to the node:

node.rack: r1

----------------------------------- Paths ------------------------------------

Path to directory where to store the data (separate multiple locations by comma):

path.data: /path/to/data

Path to log files:

path.logs: /path/to/logs

----------------------------------- Memory -----------------------------------

Lock the memory on startup:

bootstrap.mlockall: true

Make sure that the ES_HEAP_SIZE environment variable is set to about half the memory
available on the system and that the owner of the process is allowed to use this limit.

Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------

Set the bind address to a specific IP (IPv4 or IPv6):

network.host: <IP_ADDRESS>
network.host: <IP_ADDRESS>

Set a custom port for HTTP:

http.port: 9200

For more information, see the documentation at:
http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html

--------------------------------- Discovery ----------------------------------

Pass an initial list of hosts to perform discovery when new node is started:
The default list of hosts is ["<IP_ADDRESS>", "[::1]"]

discovery.zen.ping.unicast.hosts: ["host1", "host2"]
discovery.zen.ping.unicast.hosts: ["<IP_ADDRESS>"]

Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):

discovery.zen.minimum_master_nodes: 3

For more information, see the documentation at:
http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html

---------------------------------- Gateway -----------------------------------

Block initial recovery after a full cluster restart until N nodes are started:

gateway.recover_after_nodes: 3

For more information, see the documentation at:
http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html

---------------------------------- Various -----------------------------------

Disable starting multiple nodes on a single system:

node.max_local_storage_nodes: 1

Require explicit names when deleting indices:

action.destructive_requires_name: true
index.number_of_shards: 2
index.number_of_replicas: 0
#bootstrap.mlockall: true
#indices.store.throttle.max_bytes_per_sec : 100mb
#index.store.type: niofs
#threadpool:
index:
type: cached
size: 550
#    queue_size: 15000
 #   processors: 4

#threadpool:
search:
queue_size: 15000
security.manager.enabled: false
searchguard.authcz.admin_dn:
- CN=vi, OU=vi, O=vi, L=vi, ST=vi, C=vi

CN=kirk, OU=client, O=client, L=Test, C=DE

- cn=smith,ou=IT,ou=IT,dc=company,dc=com

Also i have copied

kirk-keystore.jks
spock-keystore.jks
truststore.jks
from the '/installation_dir/elasticsearch-2.3.2/plugins/search-guard-ssl/example-pki-scripts' to '/installation_dir/elasticsearch-2.3.2/'


Automate code formatting checks

This commit use the git pre-commit hook to check and report the code formatting problem in the committed codes. The version of the clang-format is required to be greater than 12 because the use of StatementAttributeLikeMacros.
However, as the directory .git/hooks cannot be tracked by git, additional configuration is required, which is written in the README file.
The reason why not merge the scripts into .githooks/pre-commit is for future expansion (e.g., compilation check and reuse the script for GitHub Action).

Add GitHub action script for checking code formatting. An example is available at my fork

I only apply the hook-related scripts from the mentioned install-git-hooks script. Should the other scripts (e.g., checking whether forked) also be added in this PR?

I only apply the hook-related scripts from the mentioned install-git-hooks script. Should the other scripts (e.g., checking whether forked) also be added in this PR?

You can submit later. This pull request looks fine.

Thank @freshLiver for contributing!


[ClickAwayListener] Support other documents

Mouse and touch event were subscribing to document, meaning these were not intercepted within other documents, like an iframe.
To support other documents, we now subscribe to node.ownerDocument.
Addresses a potential issue raise in https://github.com/mui-org/material-ui/issues/18689

[X] I have followed (at least) the PR section of the contributing guide.

@oliviertassinari I had no reproducible case to test this change.

Firefox 52.0.0 (Windows 10.0.0) <Dialog /> backdrop should ignore the backdrop click if the event did not come from the backdrop FAILED
Didn't fail locally on Chrome... I'll have a look tomorrow.

Thanks, It seems that the test fail was a flaky timeout.

@Izhaki For the reproduction, there is one easy way to do it with the documentation. I share the steps in https://github.com/mui-org/material-ui/issues/18694.


use alluxio://MasterIp:MasterPort/  report does not match the configured value

Alluxio Version:
master
Describe the bug
use alluxio://MasterIp:MasterPort/ cannot pass from checkUri method.
To Reproduce

alluxio-site.properties

 alluxio.master.hostname=localhost

execute command to reproduce

 bin/alluxio fs ls  alluxio://<IP_ADDRESS>:19998/
The URI authority <IP_ADDRESS>:19998 does not match the configured value of localhost:19998.

Expected behavior
The alluxio shell should as a general client, it should support connect to any alluxio through variant authority
  private void checkUri(AlluxioURI uri) {
    Preconditions.checkNotNull(uri, "uri");
    if (!mFsContext.getUriValidationEnabled()) {
      return;
    }

    if (uri.hasScheme()) {
      String warnMsg = "The URI scheme \"{}\" is ignored and not required in URIs passed to"
          + " the Alluxio Filesystem client.";
      switch (uri.getScheme()) {
        case Constants.SCHEME:
          LOG.warn(warnMsg, Constants.SCHEME);
          break;
        default:
          throw new IllegalArgumentException(
              String.format("Scheme %s:// in AlluxioURI is invalid. Schemes in filesystem"
                  + " operations are ignored. \"alluxio://\" or no scheme at all is valid.",
                  uri.getScheme()));
      }
    }

    if (uri.hasAuthority()) {
      LOG.warn("The URI authority (hostname and port) is ignored and not required in URIs passed "
          + "to the Alluxio Filesystem client.");
      /* Even if we choose to log the warning, check if the Configuration host matches what the
       * user passes.
       */
      Authority configured =
          MasterInquireClient.Factory
              .create(mFsContext.getClusterConf(), mFsContext.getClientContext().getUserState())
              .getConnectDetails().toAuthority();
      if (!configured.equals(uri.getAuthority())) {
        throw new IllegalArgumentException(
            String.format("The URI authority %s does not match the configured " + "value of %s.",
                uri.getAuthority(), configured));
      }
    }
  }

maybe we should discuss if we should remove this conditionif (!configured.equals(uri.getAuthority()))
Urgency
High
Additional context
It is useful to the maintainer of Alluxio.

@calvinjia Why we add this limit?
I met this issue again like the following screenshot

In fact, we could support using alluxio URI like the following
bin/alluxio fs ls alluxio:///
bin/alluxio fs ls /
bin/alluxio fs ls alluxio://<IP_ADDRESS>:19998/
bin/alluxio fs ls alluxio://masterId/

Will close it for now, feel free to reopen it and contact us if this is a strong request.


comma three: doesn't bootkick sometimes

Seen once on our Corolla and in a support ticket. The fan was spinning in the Corolla, so it seems the panda thinks USB is enumerated which means it won't bootkick. Either:

the SOM didn't fully shutdown or bootup
usb enumeration false positive in the panda

Fixed in AGNOS 7


Privacy aware batch identification

Problem
Events are sent to the backend as a batch. While we can assume that a batch belongs to a single device, multiple batches can't be easily identified as belonging to a single device.
Solution
Respecting the user's privacy is our main concern. Given that it's up to the implementing party the API should be able to support; no identifier, session identifier, persistent identifier(from high to low priority).
No identifier (anonymous)
The user wants to go anonymous or hasn't given any consent yet. This should be the default setting since we must respect the user's privacy.
Session identifier
A random identifier will be generated on each sdk instance generation.
Persistent identifier
This will be the least privacy respecting option. Meaning there will be a persistent identifier stored on the device which is used to identify the user across sessions.

After a brief discussion with @Roconda, we've agreed upon the following.
Solutions
The solutions above are a good start. These are the adjustments.
No identifier (anonymous)
This remains the same.
Persistent identifier
We feel it is up to the app developer who uses our SDK to arrange a unique ID for their user's phones. If we'd do this as well, there's a huge chance that each user will have two ID's, which seems unnecessary. This could be their username, email, or anything else that they've collected with their user's consent.
A setter on the O2MC class will be introduced to meet the desired behavior of a 'Persistent identifier'. It will look something like o2mc.setIdentifier(...). In this setter, you'd enter the unique ID.
Session identifier
Additionally, you could choose to use a (temporary) session identifier. We'll generate a UUID for you, which you can then use to correlate various batches sent by the same device during a user session. This way, you don't need any user data, but you can still track generic user behavior.

Briefly documented cfdf3c9


Build bubblewrap 0.6.2 from source for older distributions

I don't think we're dealing with these old distros anymore but we may benefit from the bug fixes of bubblewrap. No breakage reported in its changelog.
cc @raphael-proust

(please push a CHANGES entry for this)