How to encrypt, sign and decrypt messages using GnuPG on macOS

Thanks for sharing your knowledge as well as your tutorials and videos. Even as a beginner, I was able to spoof my Mac address and hostname successfully. Moreover, I installed homebrew 3.3.1 and then ran the command brew install gnupg but encounter an error message before...
macbookpro@Brocks-MacBook-Pro ~ % brew install gnupg
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.
Error: Failed to link all completions, docs and manpages:
Permission denied @ rb_file_s_symlink - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Error: The following directories are not writable by your user:
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions
And make sure that your user has write permission.
chmod u+w /usr/local/share/zsh /usr/local/share/zsh/site-functions
macbookpro@Brocks-MacBook-Pro ~ %
PS: Maybe I am doing something wrong or ran into an edge case. Please Sun, What can I do? Would you be able to provide me with a script to run this successfully? Thank you very much!

I am running Catalina 10.15.7

Just don't:
https://twitter.com/hanno/status/1145597144373575680
https://twitter.com/DanielMicay/status/1145264664315604992


No module named sports

Hi, I can't seem to import sports. I've gone through the installation process and I keep getting errors.

Can you run pip freeze and make sure that sports.py shows up in output?
Also post the full traceback of any errors you've received so I can take a look at them to further assist you.

I ran pip freeze, and yes it shows: sports.py==1.2
This is the error I get when I try to run just one of the examples such as this: sixers = sports.get_team_info(sports.BASKETBALL, '76ers') print(sixers.playoff_app)
Traceback (most recent call last):   File "/Users/rs/Downloads/hi.py", line 1, in <module>     import sports ImportError: No module named sports [Finished in 0.1s with exit code 1] [shell_cmd: python -u "/Users/rs/Downloads/hi.py"] [dir: /Users/rs/Downloads] [path: /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
I'm sure it's a mistake on my end, I am very new to programming in general so I'm not sure what I'm doing exactly.

Are you using any sort of python virtual environment? If not run pip --version and post the output here. If you have more than one version of python installed, the sports.py package may have been installed to a different version of python than the one you are trying to use.

This is the output, it indeed looks like it's running on python 2.7: pip 19.1.1 from /Library/Python/2.7/site-packages/pip-19.1.1-py2.7.egg/pip (python 2.7)
Could you point me to a resource to figure out how to install the sporty.py package on Python 3 and use that?

I just created a virtual environment and tried reinstalling the package, but still no luck.

Here's a quick video of the exact process I go through to get the package installed and working.

It worked! Thank you so much man, I really appreciate the video. Out of curiosity, is there a way to set this up to work in an editor such as Atom or Sublime text?

I've never used Atom and haven't used Sublime text in quite some time, so I'm not 100% sure. I mostly use VSCode. They have a pretty good python extension with tons of customizability.

Great, thanks again! The package is pretty awesome.


Extensibility of IdentityManager views

Hello
WE want to use IdentityManager to manage several  extIdps credentials for a given user.
Now for that we have to extend the UI of IDentityManager a bit.
Since IdentityMAnager is beta and not providing the needed feature we have 2 scenarios
Copy Sourcecode of IDentityManager in our project, introduce some new Views to facilitate the Usermapping
or
Use the current beta release of IDentityMAnager via nuget and some how plug new views in
I could not find any hook to plugin and introduce my own views
Did  I miss something there?
Otherwise I bound to stick with the first scenario.

There's no UI plugin framework as of now.


TK06B GPS tracker, receiving connection request repeatedly

Please provide description or close the issue.

This is first time I wrote in github... sorry for that missing part
I am trying to integrate TK06B GPS device tracker to my listener , I need help for below points

Protocol document , The one I have seems not correct
device keep sending connection request in every 10 sec repeatedly  to send the data to server , while my other tracker sends connection request only if somehow they disconnected due to nw or any other reason.

Please suggest
BR

How is your question related to Traccar project?
As for protocols, you can find documents here:
https://www.traccar.org/protocols/

Resolved

resolved


No support for iterating over bases and tables?

I may be wrong but it seems that the Api, Base and Table all offer the same API to manipulate records. There is no support to iterate over Bases and over Tables? I would have expected the Api class to provide a way to get all Bases, the Base class to provide a way to get all Tables, and the Table class to provide a way to get all fields.
PS thx for the package!

Bit new to all this, so thx for the pointers. Turns out you need a special token for the metadata API, which I can't get ATM because there is a waitlist. Bummer.
PS the first example on https://pyairtable.readthedocs.io/en/latest/metadata.html contains a small error: get_bases should be get_api_bases.
FYI, with this code
from pyairtable import metadata

key = '<some regular API key>'
api = Api(key)
results = metadata.get_api_bases(api)

I got this error:
('404 Client Error: Not Found for url: https://api.airtable.com/v0/meta/bases', "404 Client Error: Not Found for url: https://api.airtable.com/v0/meta/bases [Error: {'type': 'NOT_FOUND'}]")

Which might be related to me using a regular API key, but then I would have expected an authentication error.

Thx for the prompt replies.

@mjmare stumbled upon this and just FYI, anyone can now use the Metadata API to get a list of bases or retrieve a base's schema (both of which @gtalarico has implemented in pyairtable already 🙌 ) when authenticating with a Personal Access  or OAuth token.
More info in the changelog here

This is supported today via pyairtable.metadata and anyone can use it now, so I'm going to resolve the issue.


6 fix rtd deployment

This PR should fix the failing builds of the docs on RTD

It seems there are more testing data here:
https://github.com/MI-FraunhoferIWM/data2rdf/tree/6-fix-rtd-deployment/docs/assets/examples/tensile_test_example
@deepukr007 I suppose that one got missed, is that right?
@MBueschelberger for info.

@deepukr007 confirmed the data was cleaned and not sensitive.
I will delete the folder, and we should be able to merge :)


GroupBy(multiple strings)

Closes #9396
Quite messy, and ~typing is broken atm (help!)~

docs failure looks unrelated


Add retry policy

The currently used .retries(n) does not do anything for a
buildFactory application. Use a sensible retry policy instead.
This should be made configurable for 0.2.1 release.

Coverage decreased (-0.2%) to 74.438% when pulling 3220ed5c19db0231bbe8153d7b4e2bffd816f5e9 on retry-policy into e7cb64e7f168276dc61208f9bae82f0743d1e254 on master.

Coverage increased (+0.02%) to 74.695% when pulling caffc4034276f08b6d3b0936a7fb04c0fc585fd3 on retry-policy into e7cb64e7f168276dc61208f9bae82f0743d1e254 on master.

Coverage remained the same at 74.672% when pulling caffc4034276f08b6d3b0936a7fb04c0fc585fd3 on retry-policy into e7cb64e7f168276dc61208f9bae82f0743d1e254 on master.

Coverage remained the same at 74.672% when pulling e408020a4c88d8a79d3885910ee7eda68c04537e on retry-policy into e7cb64e7f168276dc61208f9bae82f0743d1e254 on master.


STM32CubeIDE version

Hello, I tried the vww example with the stm32f746-disco board. However, as written, it works well in version 1.5.0, but I hope there is a place where I can find the reason and solution for not running in 1.11.0.

Hi @byuljwa,
We found that somehow the later version does not work with our camera driver, so that's the reason we use 1.5.0 in the tutorial. But everything else should work well in other versions.

Thank you. camera driver mean ov2640.h? Which part do I need to edit?

Thank you. camera driver mean ov2640.h? Which part do I need to edit?

We did not identify the root cause, so it is not clear which part needs to be edited.

Thanks, I'll research more about this


indent lines are not shown consistently for empty lines between different code sections on the same level

As shown in the image below, the indent line is not shown for empty lines between different sections of code at the same level, e.g. line 7, 9, 24, etc. However, it is shown for such empty lines in other places, such as line 14, 18, 20, 22, 38, etc.

The indent lines shown for the same code in vscode are far more consistent, as shown below.

May I ask if this inconsistency is related to some of the settings of indent-blankline.nvim?

can you share the configuration for indent-blankline you are using?

can you share the configuration for indent-blankline you are using?

Here it is:
require("indent_blankline").setup {
    -- for example, context is off by default, use this to turn it on
    show_current_context = true,
    show_current_context_start = false,

    context_patterns = {
      "class", "return", "function", "method", "^if", "^while", "jsx_element", "^for", "^object",
      "^table", "block", "arguments", "if_statement", "else_clause", "jsx_element",
      "jsx_self_closing_element", "try_statement", "catch_clause", "import_statement",
      "operation_type"
    }
}

I can't reproduce this. Do you maybe have trailing whitespace on those lines?

I can't reproduce this. Do you maybe have trailing whitespace on those lines?

I don't have trailing whitespace in those lines, otherwise, nvim lsp will give me a warning.
Interestingly, adding whitespaces at the beginning of the empty lines will make those vertical indent lines go away, showing code block in the same way as vscode.

I have got same issue, I am using default settings.
require("indent_blankline").setup {}

@sabah1994 this is the expected result. You can turn on or off the trailing indent guide with :help g:indent_blankline_show_trailing_blankline_indent
That is not the issue here.

@hopezh can you share the code from the screenshot?

@lukas-reineke thanks man

@hopezh can you share the code from the screenshot?

As requested. Thanks.
require("indent_blankline").setup {
    -- for example, context is off by default, use this to turn it on
    show_current_context = true,
    show_current_context_start = false,

    context_patterns = {
      "class", "return", "function", "method", "^if", "^while", "jsx_element", "^for", "^object",
      "^table", "block", "arguments", "if_statement", "else_clause", "jsx_element",
      "jsx_self_closing_element", "try_statement", "catch_clause", "import_statement",
      "operation_type"
    }
}

I have the exact same issue

please reopen if this is still an issue in version 3


Two pieces of unused code

In the get_currency_balance function on line 1209 of the chain_plugin.cpp file
vector<asset> read_only::get_currency_balance( const read_only::get_currency_balance_params& p )const {

   const abi_def abi = eosio::chain_apis::get_abi( db, p.code );
   auto table_type = get_table_type( abi, "accounts" );

I didn't find the table_type variable used in this function.
Are these two pieces of code redundant?

table_type isn't used in that scope, but calling get_table_type() checks whether specific table exists or not. It throws exception if tablename doesn't exist in ABI.


GUI

GUI to interact with artifacts

[x] #4
[x] #5
[ ] Artifact images
[x] Choose a GUI library
[ ] Integrate existing code

Going to go with wxPython for a GUI here.


Canvas  - drawImage generate 1px border around map

Canvas  - drawImage generates 1px border around the island map

Let's not let this block release.

Resolves by #825


Fix two typos in OSSL_trace_enabled.pod

bu -> but
ino -> in

[x] documentation is added or updated

This pull request is ready to merge

Merged, thanks for the fixes.


[Bugfix] Make sure wrap variables are in scope. Partial fix for #82

It fixes the scope issue, but it reveals another issue: we're not solving all the relevantConstraints for some fits, i.e.
example :: [[Maybe Int]]
example =
  [[n], [j 1]]
  where
    n = Nothing
    j = Just

allBlankEx :: [[Maybe Int]]
allBlankEx = [[Nothing | n <- [0]] | g <- [0]]

propIsAllBlank :: Bool
propIsAllBlank = example == allBlankEx

will now complain with:
temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:450:39: error:
    * No instance for (Num [Maybe Int]) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
450 |               allBlankEx = [g | g <- [0]]
    |                                       ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:462:39: error:
    * No instance for (Num [Maybe Int]) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
462 |               allBlankEx = [g | g <- [0]]
    |                                       ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:549:52: error:
    * No instance for (Num (Maybe Int)) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
549 |               allBlankEx = [[g | n <- [0]] | g <- [0]]
    |                                                    ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:561:52: error:
    * No instance for (Num (Maybe Int)) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
561 |               allBlankEx = [[g | n <- [0]] | g <- [0]]
    |                                                    ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:582:40: error:
    * No instance for (Num (Maybe Int)) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: n <- [0]
    |
582 |               allBlankEx = [[n | n <- [0]] | g <- [0]]
    |                                        ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:594:40: error:
    * No instance for (Num (Maybe Int)) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: n <- [0]
    |
594 |               allBlankEx = [[n | n <- [0]] | g <- [0]]
    |                                        ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:714:56: error:
    * No instance for (Num [t1]) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
714 |               allBlankEx = [[Nothing | n <- g] | g <- [0]]
    |                                                        ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:726:56: error:
    * No instance for (Num [t0]) arising from the literal `0'
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
    |
726 |               allBlankEx = [[Nothing | n <- g] | g <- [0]]
    |                                                        ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:1737:64: error:
    * No instance for (Num ([Maybe a1] -> [Maybe Int]))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
     |
1737 |               allBlankEx = [(g ([Nothing | n <- [0]])) | g <- [0]]
     |                                                                ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:1749:64: error:
    * No instance for (Num ([Maybe a0] -> [Maybe Int]))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
     |
1749 |               allBlankEx = [(g ([Nothing | n <- [0]])) | g <- [0]]
     |                                                                ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:1935:64: error:
    * No instance for (Num (Maybe a3 -> Maybe Int))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
     |
1935 |               allBlankEx = [[(g (Nothing)) | n <- [0]] | g <- [0]]
     |                                                                ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:1947:64: error:
    * No instance for (Num (Maybe a2 -> Maybe Int))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: g <- [0]
     |
1947 |               allBlankEx = [[(g (Nothing)) | n <- [0]] | g <- [0]]
     |                                                                ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:2067:52: error:
    * No instance for (Num (Maybe a5 -> Maybe Int))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: n <- [0]
     |
2067 |               allBlankEx = [[(n (Nothing)) | n <- [0]] | g <- [0]]
     |                                                    ^

temp_dir/4159bf8d/tests/cases/ExprWhere/checks/1bba7bf8/FakeCheckTarget1bba7bf8.hs:2079:52: error:
    * No instance for (Num (Maybe a4 -> Maybe Int))
        arising from the literal `0'
        (maybe you haven't applied a function to enough arguments?)
    * In the expression: 0
      In the expression: [0]
      In a stmt of a list comprehension: n <- [0]
     |
2079 |               allBlankEx = [[(n (Nothing)) | n <- [0]] | g <- [0]]

This follow-up issue is tracked in #83


Add back button on profile creation pages

Profile creation pages should have "< Back" buttons instead of the Menu button.
Here's the current page:

When tapping 'back' the user should be taken to the previous step in the user creation process? Or to the last view before entering the new user creation process?

Tapping back should take them to the previous step.
On Wed, Feb 11, 2015 at 11:38 AM, Andrew Fink<EMAIL_ADDRESS>wrote:

When tapping 'back' the user should be taken to the previous step in the
user creation process? Or to the last view before entering the new user
creation process?
—
Reply to this email directly or view it on GitHub
https://github.com/azavea/nih-wayfinding/issues/141#issuecomment-73913930
.

--
Jeff Frankl, UI/UX Designer
Azavea  |  340 N 12th St, Suite 402, Philadelphia, PA
Web azavea.com  |  Blog azavea.com/blogs  |  Twitter @azavea
http://twitter.com

Ok. Unassigning myself for now since this is not a trivial fix.


Exception in update : string indices must be integers

Region and Brand of car
Europe, Kia e-Niro
Describe the bug
HomeAssistant log shows than an exception has been thrown
Debug logs if an error occurred
kia_uvo - Exception in update : string indices must be integers - traceback: Traceback (most recent call last): File "/config/custom_components/kia_uvo/Vehicle.py", line 56, in update self.vehicle_data = await self.hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/kia_uvo/KiaUvoApiEU.py", line 455, in get_cached_vehicle_status return response["resMsg"]["vehicleStatusInfo"] TypeError: string indices must be integers

Have just now enable debug logs. Can update issue when they are logged

+1 same

+1

Same. I wonder if this is due to no information / no update from the vehicle, as I also have a different error in the logs just before the error above:
2022-09-12 16:33:34.656 WARNING (SyncWorker_1) [custom_components.kia_uvo.KiaUvoApiEU] kia_uvo - Get vehicle location failed
2022-09-12 16:34:44.022 ERROR (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - Exception in update : string indices must be integers - traceback: Traceback (most recent call last):
File "/config/custom_components/kia_uvo/Vehicle.py", line 56, in update
self.vehicle_data = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/kia_uvo/KiaUvoApiEU.py", line 455, in get_cached_vehicle_status
return response["resMsg"]["vehicleStatusInfo"]
TypeError: string indices must be integers

it is due to server not responded correctly, so this is a valid error but ti should not impact entities or states.

Interested to hear if this is still an issue in v2.0  Since this is close to leaving beta I will close this for now.  Please open a new issue if still a problem in 2.0


XFA - remove unnecessary check in the handleBreak function (PR 13687 follow-up)

With the changes in PR #13687 we're now checking if target is defined twice in a row, which shouldn't be necessary :-)
(I noticed this when glancing at the unofficial LGTM results; maybe we should re-evalute the decision to not integrate that into the CI.)

/botio test


could not find SimpleSession

Hi, im kinda new to this so im sorry if im asking something obvious but I have the latest version 0.1.3 and I cant find SimpleSession (the first example doesn't work for me).
The error:
"failed to resolve: could not find SimpleSession in sf_api"
"could not find SimpleSession in sf_api"
I created a new project (cargo init) and added the sf-api (cargo add sf-api).

[dependencies]
sf-api = "0.1.3"
tokio = { version = "1.38.0", features = ["full"] }
I don't know if I provided enough info, if not please let me know.

The documentation in this repo is for the current state of development (0.2.0), which includes SimpleSession. 0.1.3 does not yet include SimpleSession. You should switch to the (in development) version 0.2.0 from this git repo to use that, instead of the current release.
You can do that, by changing your sf-api dependency to:
sf-api = { git = "https://github.com/the-marenga/sf-api", rev = "79607d2" }

Just as a heads up, the last big S&F update from a few days ago broke a few thing and the level of dungeon enemies is wrong currently. Otherwise, the in development version should work.
As soon, as I get the time to do that, I will fix the last few things and release that version publicly

Thank you!


Re-adding folder doesn't get reflected in VS Code until focus

Testing #133753
macOS. I have a VS Code window open to the vscode repo but it does NOT have focus. I instead have focus on another window of VS Code (or another app... same behavior)
Here's the script I'm running outside of VS Code:
All it does is renames the vscode folder that I have open in VS Code and renames it back 100 times.
1..100 | % {
    mv ./vscode ./vscode-olddd
    sleep 10
    mv ./vscode-olddd ./vscode
    sleep 10
}

I noticed that the removal of the vscode folder gets reflected in the VS Code instance with the vscode repo (where it gives you the ! that says this folder doesnt exist)
However, when the rename gets changed back to vscode thus "recreating" the vscode folder, nothing is reflected in the VS Code instance with the vscode repo.
However, once I focus the VS Code instance with the vscode repo then the contents are refreshed and it shows up and everything is fine.

This same behavior happens when you rename the target of a symbolic link and then rename it back.

Yeah I noticed this as well and wonder if this is an issue in the explorer itself because doing the same (mv folderNameA folderNameB) is nicely reflected in the explorer for children of the root.
We must be having some handling of change events for folders, but probably not for the root itself? I think if the root changes we should do a refresh of the tree, but probably only in this case where we had a deleted root before because we do not really want the entire tree to refresh in other cases for performance reasons.


Migrate all errors to constants

This issue tracks migrating all thrown errors from the format:
  ...
  if err != nil {
    return fmt.Errorf("an error occurred")
  }
  ...

To:
var (
  ErrAnErrorOccurred = errors.New("an error occurred")
)

  ...
  if err != nil {
    return ErrAnErrorOccurred
  }
  ...

Hello! I'm a student at UT Austin taking a course in virtualization, and I wanted to see if I could contribute to this issue. Is this issue still open, and if so, can I get it assigned to me. Thanks.

Hi @rpunjani, sure!  Please start this iteratively; open PRs which change a single file only -- this makes it easier to review and merge. Thanks!

@nderjung For clarification, I was wondering if I'm supposed to go through every file in this repository and making the change described above?

This is more-or-less the goal.  Start with errors which are not wrapped (those in the form fmt.Error("this specific error occured") are considered not wrapped and fmt.Errorf("something happened: %w", err) are considered wrapped) , as these represent final errors.  Here is an example of a recent change that was made which exemplifies this idea: https://github.com/unikraft/kraftkit/commit/9bb236853a83ea5605135461cf8019e3f959ded5.
Go through each file and find errors which are not wrapped and converting these to var-typed errors at the top of each file.  Do a commit for each file which is changed as this makes git bisect/blame easier.
Later on we can do better error-catching thanks to these well-defined errors and either remove wrapped errors or convert those into richer, not wrapped, error messages themselves.
Thanks!


ci: correct typo in Rename-Item

NameName should be NewName
Corrects mistake in 1931414fa5136c1c585fac52441c0b54195996a8
See https://github.com/felixrieseberg/windows-build-tools/commit/1931414fa5136c1c585fac52441c0b54195996a8#r33320431

@felixrieseberg I'm taking the liberty of merging this w/o review since it's been a few weeks, and I think this is at least better than how things were (e.g. it should fix CI builds). Feel free to review / revert / modify if you want / have time. I figure you must be busy right now :)


Uniform Interface for calling different LLMs

Why are these changes needed?
Create a notebook for using different models through API calling. This should also be a reference to get people to create different config lists for different LLMs, and use open-source infrastructure like DeepInfra.

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Thanks @yiranwu0, this is a really useful notebook. I've run it and it works as expected (Claude model name updated to run). Updated some very minor text on it, all code remained as is.


I have the same issue

node-pre-gyp ERR! cwd C:\Users\btl0\Downloads\nwjs-sdk-v0.13.0-alpha3-win-x64\nwjs-sdk-v0.13.0-alpha3-win-x64\node_modules\serialport
node-pre-gyp ERR! node -v v4.1.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\btl0\Downloads\nwjs-sdk-v0.13.0-alpha3-win-x64\nwjs-sdk-v0.13.0-alpha3-win-x64\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64\serialport.node --module_name=serialport --module_path=C:\Users\btl0\Downloads\nwjs-sdk-v0.13.0-alpha3-win-x64\nwjs-sdk-v0.13.0-alpha3-win-x64\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "i" "serialport"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\btl0\Downloads\nwjs-sdk-v0.13.0-alpha3-win-x64\nwjs-sdk-v0.13.0-alpha3-win-x64\npm-debug.log

@ericaslakson I see that you're on a windows machine :+1:
As can be seen here, node-serialport is looking for Windows testers for the pull requests that add support for Node.js 4.
There are currently two pull requests for Node.js 4 support, https://github.com/voodootikigod/node-serialport/pull/566 and https://github.com/voodootikigod/node-serialport/pull/571.
https://github.com/voodootikigod/node-serialport/pull/566 can be installed with npm install "git://github.com/ghostoy/node-serialport.git#nan1to2"
https://github.com/voodootikigod/node-serialport/pull/571 can be installed with npm install "git://github.com/julianduque/node-serialport.git#master"
You could try either or both of them on Windows and report your findings :+1:

@ericaslakson as fvdi said, Please try #566 and let us know how it goes in #578


Categories items through creative tabs

 yarden.zamir on Discord says

Our new tooltip system shows item categories which is great, but many items should have categories and currently do not. So we need to categorise as many as possible

 yarden.zamir on Discord says

 yarden.zamir on Discord says

That means two things

figure out best way to categories, from a first look it seems adding items to creative tabs might not be as simple as it firs looks? If not than likley we'll use tags
map items to categories

 yarden.zamir on Discord says

pending/contributors/docs mapping item ids to categories would help a lot


Use chat_template from gguf metadata

Is your feature request related to a problem? Please describe.
When using a model which uses a non-standard chat template it is hard to implement chat functionality using llama-cpp-python. There are quite a few chat templates predefined in llama_chat_format.py, but every time you want to add a new one it requires a new chat formatting function decorated by @register_chat_format.
When you do not have a matching chat format the output of the chat completions will be sub optimal.
Describe the solution you'd like
Huggingface has started pushing the standard to store the chat template in the tokenizer config.
The convert script in llama.cpp has started storing this chat_template too:
gguf_write_call
function to add vocab
Implementation in base model
This means that for any huggingface model with the chat_template in the tokenizer config that gets converted by llama.cpp's convert script it will have the chat_template available in the gguf metadata.
The chat template is a jinja template, the huggingface code has an example on how to apply it: https://github.com/huggingface/transformers/blob/main/src/transformers/tokenization_utils_base.py#L1678
(this function is also used in hf_autotokenizer_to_chat_formatter, but the way it is implemented it requires access to the hf model/config files)
When this standard is picked up it will enable users to directly use chat completions for models with custom templates
Describe alternatives you've considered

Disable the chat endpoint when there is no known chat_format -> no complaining about bad results
Load the tokenizer config outside as a separate file to load the required chat_template
supply the chat template as an argument (which is how text-generation-webui does it

Hey @vriesdemichael yes finally got a chance to start on this #1110 is a partial solution.
The issue right now is that the gguf doesn't supply the correct eos_tokens from the tokenizer_config.json it includes the eos tokens for the tokenizer but not for the chat format itself. ie for the chatml format I can access the jinja2 format but currently don't have a way to extract <|im_end|> as a stop sequence so the model occasionally continues generating.

https://huggingface.co/mlabonne/NeuralBeagle14-7B/blob/main/tokenizer_config.json
Example tokenizer config for reference.

I think it is because of a premature continue statement here:
https://github.com/ggerganov/llama.cpp/blob/381ee195721d8e747ee31a60c0751822b3072f02/gguf-py/gguf/vocab.py#L158
in the config you provided the add_eos_token is set to false, which results in skipping the eos_token in the gguf writer.
I'm not sure what the add_eos_token is supposed to do, but either the gguf writer is flawed or this tokenizer config is.

I want to stress the importance of allowing users to define their chat templates. The current situation seems to have caused some confusion and issues with template accuracy. Even the llama templates have been found to contain errors, which is surprising given the availability of Facebook's source code.
While I understand the convenience of embedding templates into the model, I personally prefer creating and refining my own templates for my favorite models, like llama, mistral, and phi.
The introduction of template support has brought about some predictably complex challenges. However, it's essential to remember that flexibility and user control should be a priority. My approach might not align with the current design, but it was a compromise made to meet the needs of the community, which should take precedence over personal preferences.
Regarding the EOS token, it seems to be available in the model file:
18:43:58 | /mnt/valerie/llama.cpp
(.venv) git:(gguf-py | Δ) λ python gguf-py/scripts/gguf-dump.py local/models/facebook/llama-2-7b-chat-hf/ggml-model-f16.gguf --no-tensors
* Loading: local/models/facebook/llama-2-7b-chat-hf/ggml-model-f16.gguf
* File is LITTLE endian, script is running on a LITTLE endian host.

* Dumping 25 key/value pair(s)
      1: UINT32     |        1 | GGUF.version = 3
      2: UINT64     |        1 | GGUF.tensor_count = 291
      3: UINT64     |        1 | GGUF.kv_count = 22
      4: STRING     |        1 | general.architecture = 'llama'
      5: STRING     |        1 | general.name = 'LLaMA v2'
      6: UINT32     |        1 | llama.context_length = 4096
      7: UINT32     |        1 | llama.embedding_length = 4096
      8: UINT32     |        1 | llama.block_count = 32
      9: UINT32     |        1 | llama.feed_forward_length = 11008
     10: UINT32     |        1 | llama.rope.dimension_count = 128
     11: UINT32     |        1 | llama.attention.head_count = 32
     12: UINT32     |        1 | llama.attention.head_count_kv = 32
     13: FLOAT32    |        1 | llama.attention.layer_norm_rms_epsilon = 9.999999747378752e-06
     14: UINT32     |        1 | general.file_type = 1
     15: STRING     |        1 | tokenizer.ggml.model = 'llama'
     16: [STRING]   |    32000 | tokenizer.ggml.tokens
     17: [FLOAT32]  |    32000 | tokenizer.ggml.scores
     18: [INT32]    |    32000 | tokenizer.ggml.token_type
     19: [STRING]   |    61249 | tokenizer.ggml.merges
     20: UINT32     |        1 | tokenizer.ggml.bos_token_id = 1
     21: UINT32     |        1 | tokenizer.ggml.eos_token_id = 2
     22: UINT32     |        1 | tokenizer.ggml.unknown_token_id = 0
     23: BOOL       |        1 | tokenizer.ggml.add_bos_token = True
     24: BOOL       |        1 | tokenizer.ggml.add_eos_token = False
     25: STRING     |        1 | tokenizer.chat_template = "{% if messages[0]['role'] == 'system' %}{% set loop_messages"

This suggests that the EOS token is present and extracted from the model. It's also defined as enumerations in llama.cpp:
19:28:57 | /mnt/valerie/llama.cpp
(.venv) git:(gguf-py | Δ) λ grep -rni "eos" *.c *.h
llama.h:645:    LLAMA_API llama_token llama_token_eos(const struct llama_model * model); // end-of-sentence
llama.h:652:    LLAMA_API int32_t         llama_add_eos_token(const struct llama_model * model);
llama.h:872:    /// @param n_predict Maximum number of tokens to predict. EOS may occur earlier.

If the EOS token appears to be missing, it might be due to issues during the conversion process, which needs further investigation. However, I'm unsure how this specific edge case would be handled in the front-end for llama.cpp.
19:29:13 | /mnt/valerie/llama.cpp
(.venv) git:(gguf-py | Δ) λ grep -rni "eos" gguf-py
gguf-py/gguf/vocab.py:32:            self.special_token_types = ('bos', 'eos', 'unk', 'sep', 'pad')
gguf-py/gguf/gguf_writer.py:396:    def add_eos_token_id(self, id: int) -> None:
gguf-py/gguf/gguf_writer.py:397:        self.add_uint32(Keys.Tokenizer.EOS_ID, id)
gguf-py/gguf/gguf_writer.py:411:    def add_add_eos_token(self, value: bool) -> None:
gguf-py/gguf/gguf_writer.py:412:        self.add_bool(Keys.Tokenizer.ADD_EOS, value)
gguf-py/gguf/constants.py:69:        EOS_ID        = "tokenizer.ggml.eos_token_id"
gguf-py/gguf/constants.py:74:        ADD_EOS       = "tokenizer.ggml.add_eos_token"
gguf-py/gguf/constants.py:564:KEY_TOKENIZER_EOS_ID     = Keys.Tokenizer.EOS_ID

It's vital to maintain user flexibility while addressing these technical challenges. I'm still learning, juggling linear algebra, C++, the transformer architecture, and the llama.cpp source code simultaneously. The journey has been overwhelming but exceptionally rewarding.

I've created an example script that allows for more flexible experimentation with metadata. You can check it out here.
I ran the script as follows:
19:52:32 | /mnt/valerie/llama-cpp-python
(.venv) git:(gguf-metadata | Δ) λ python examples/low_level_api/gguf_chat_template.py local/models/facebook/llama-2-7b-chat-hf/ggml-model-f16.gguf --format

Here's what the script does:

It successfully detected model metadata and output the available model fields, including GGUF.version, GGUF.tensor_count, GGUF.kv_count, general.architecture, general.name, and various parameters related to the model's architecture.

It also displays information related to the tokenizer, such as tokenizer.ggml.bos_token_id, tokenizer.ggml.eos_token_id, and tokenizer.chat_template.

As a demonstration, I've included a sample output from the script:
[BOS][INST] <<SYS>>
I am a helpful assistant.
<</SYS>>

Hello! [/INST]

Please note that the model should start producing output from the input suffix, e.g., [/INST].
Let me know what you think.

Hi all, I'm the developer at Hugging Face who designed the original spec and implementation for our chat templates. I just found out about this today - we're big fans of llama.cpp, so let us know if you have any questions or you're encountering any difficulties with the templates!

Hey @Rocketknight1, thank you, really appreciate any help here!
There's an open issue at https://github.com/ggerganov/llama.cpp/issues/5040 but I'll include an overview here as well.
The issue we're running into at the moment is identifying the correct stop sequence(s) for end of model generation when applying a chat format. For instance in chatml there's <|im_end|> that signifies the end of a message. Is this included in the tokenizer_config.json, I've seen some models have this set as the eos_token but also include a regular </s> token so I'm a little confused.

Hm, I don't know if that information is actually stored anywhere! In general, base language models use eos_token to indicate when to finish generation, but as you mentioned, not all chat templates put eos_token at the end of assistant generations. Let me ask around at Hugging Face to see if we have a consistent way of figuring out the end of a chat generation!

Hi @abetlen, sorry for the delay! The situation is that standard causal language models are supposed to use tokenizer.eos_token to end their generations. However, when those models are fine-tuned for chat, the end-of-generation token may change (e.g. to something like <|im_end|>)
Our recommendation (which we're going to add to the official docs) is that when you fine-tune a model for chat, you should:

Add control tokens like <|im_end|> as special tokens
Set tokenizer.eos_token to the new end-of-generation token

However, there are some cases when this won't be possible - sometimes a model has been trained with ChatML but without adding <|im_end|> as a special token, which means it'll be tokenized as multiple tokens. This can mean the end-of-generation sequence is multiple tokens, and we don't really store that anywhere! There's nothing much you can do but manually add the information to the GGUF files in that case.
Anyway, tl;dr you should just read tokenizer.eos_token and use that to mark the end of generation. If the repo is correctly configured, then that should be all you need, but we're aware that many repos aren't right now. We'll see if we can communicate better with our users about that!

@Rocketknight1 thanks yeah that was my thought as well. It does seem that tokenizer.eos_token is often correct so I'll set that to the default.
Good suggestion about using the chat_template to recognize the format, that should cover most of the remaining cases.


Suggest strings.Contains instead of strings.ContainsAny for search of 1 char

This may sound silly, but it's easy to implement.
The underlying issue is that ContainsAny is not always a fast choice.
See https://github.com/golang/go/issues/31321
TODO: do the actual benchmarking.

Why not suggest strings.ContainsRune?

I think initially I was concerned about this case: strings.ContainsAny(s, "ab") vs 2 calls of ContainsRune or one manually written loop, like in the referenced issue.


[Dashboard bug] Fix merged filter param name

After front-end merged time filter params, should update query with param name 'extra_filters'.

lgtm


Resolve crash issue on iOS 17

refs: https://github.com/omaralbeik/Drops/issues/45
Disable "Workaround for UIKit bug ( 6f0cd30 )"

ありがとうございます！


Introducing Liger Kernel Guru on Gurubase.io

I created the Liger Kernel Guru badge on Gurubase.io upon request from @ByronHsu.
Adding a new badge next to the Discord badge made all the badge text smaller, as the current style presents all badges in a table row. To address this, I added the Liger Kernel Guru badge to the index section. Please let me know if you'd like me to move it to a different section.

Very cool!! We can add a column call "Gurubase" and put a badge in the cell. Like what you did for sglang

Very cool!! We can add a column called "Gurubase" and put a badge in the cell. Like what you did for sglang

Here it is 👍

Hi again,
I’d like to update you on the release of the Maintainer Panel feature on Gurubase. With this panel, you can add, remove, or update data sources, as well as change the logo and more. You can find the details here.
In the near future, I’m planning to include analytics insights in this panel, such as the number of questions asked, the most frequently asked ones, and more. I’ll be sure to update this thread once it’s available. However, in case I miss it, I highly recommend joining our Discord channel to stay updated.
If you’d prefer that I don’t update this thread anymore, please let me know.


E2E test fails on macos

Bug Description
Since #2022 traffic::steal::steal::complete_passthrough::application_2_Application__NodeHTTP::tcp_data_2___short_n__ has a very high failure rate on macos (almost every run).
Before the change the fail/success ratio was reversed - almost every run was successful. We suspect a race condition when the user application is exiting right after sending a response to an HTTP request.
Possible solution - when all layer connections are closed, make internal proxy process all messages before exiting
Steps to Reproduce

Run traffic::steal::steal::complete_passthrough::application_2_Application__NodeHTTP::tcp_data_2___short_n__ a lot, it should fail almost every time (test code fails to receive the response for the final HTTP_DELETE request)

Backtrace
No response
Relevant Logs
No response
Your operating system and version
macos
Local process

Local process version
No response
Additional Info
No response

Just so that we don't forget by the time we get to work on this issue: the point is to find the underlying race condition and eliminate it, not just to avoid this race condition in that test.

@t4lz This is a flake right? Is it still happening?

@t4lz This is a flake right?

Only in the sense that it sometimes does not fail. There is an actual issue issue in mirrord (intproxy), not in the test. Since that issue happens when the process exits, it probably won't happen with services that never halt, like web servers etc.

Is it still happening?

yes


Original air date

Hi, enjoying the service so far.
I think it would be nice to add the original posting date in the show-notes, if possible.
Thanks!

Hey, glad you're enjoying it! And thanks for the suggestion. It's actually already supposed to do this, but it's not working with some podcast feeds. I'll try to track down the problem.
Here's what it's supposed to look like when it works:

There are (at least) three RSS elements that might be displayed as show notes in a podcast app. If more than one is present, Overcast will display only one in this order of preference: <content:encoded>, <description>, <itunes:summary>. Other podcast apps may differ.
Currently, only <description> is getting updated with the original publication date.

Hi Doug, sorry for the delay in getting back to you.
That original air date now shows for the podcast, which is great! I added
another podcast (Cortex on Relay FM) and it seems like the shownotes in the
original RSS feed are being swapped with one of the others that you
mentioned. Not a big deal to me since I open them in a web browser anyways,
but wanted to let you know in case it's an easy fix.
Appreciate the service!
On Sat, Feb 17, 2024 at 1:57 PM Doug Waldron @.***>
wrote:

@nbousfield https://github.com/nbousfield I just published an update
that should fix this issue. Could you please test it and report back to let
me if it's working for you? Your existing podcast feeds should update the
next time you refresh the feed, which might happen automatically, or you
might have to force each feed to refresh, depending on what app you use.
Thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/dougwaldron/podcast-rewind/issues/73#issuecomment-1950406545,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABEDKGKGVVTANMB6ZOEAKJTYUERTHAVCNFSM6AAAAABDFZC6DOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQGQYDMNJUGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hey @nbousfield, I'm not sure what you mean, could you share an example of what you're seeing or a screenshot maybe? Thanks.


Healthcheck endpoint

Allow /status to 200 if no username provided
Move to using user_can_view_unpublished and provide info in the status message.
Add a healthcheck endpoint that 200s if we can see Marklogic.

 Add a healthcheck endpoint to the privileged API


remove deprecated methods

@chingor13 @silvolu This library is pre-1.0. If any dependencies need this, we should find out now so we can undeprecate these methods.

For context, I added these overrides because users were confused calling the static getApplicationDefault() on the AppEngineCredentials class. AppEngineCredentials didn't provide this method (it would fall back to use the superclass GoogleCredentials' implementaiton) so we added this deprecation warning to keep folks from using this as it will never return an instance of AppEngineCredentials.

For context, I added these overrides because users were confused calling the static getApplicationDefault() on the AppEngineCredentials class. AppEngineCredentials didn't provide this method (it would fall back to use the superclass GoogleCredentials' implementaiton) so we added this deprecation warning to keep folks from using this as it will never return an instance of AppEngineCredentials.


ValueError: min() arg is an empty sequence

Hi, I am trying to convert a pdf to HTMl using pdftotree package. But I am getting this following error. Kindly look into it and let me know what the issue is.
File "<ipython-input-73-485b6311ae55>", line 1, in <module>
    a = pdftotree.parse('O:\\Project\\ConocoPhilips-Sustainability-Report.pdf',html_path=None, model_type=None, model_path=None, favor_figures=True, visualize=False)

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\core.py", line 65, in parse
    pdf_tree = extractor.get_tree_structure(model_type, model, favor_figures)

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\TreeExtract.py", line 238, in get_tree_structure
    favor_figures,

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\utils\pdf\pdf_parsers.py", line 762, in parse_tree_structure
    mentions, elems.layout.bbox, page_num, boxes_figures, page_width, page_height

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\utils\pdf\pdf_parsers.py", line 1246, in get_figures
    node_fig = Node(fig_box)

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\utils\pdf\node.py", line 47, in __init__
    self.set_bbox(bound_elems(elems))

  File "C:\Continuum\anaconda3\lib\site-packages\pdftotree\utils\pdf\vector_utils.py", line 121, in bound_elems
    group_x0 = min(map(lambda l: l.x0, elems))

ValueError: min() arg is an empty sequence

ConocoPhilips-Sustainability-Report.pdf
Hi, I am attaching the file with this comment.

$ pdftotree ConocoPhilips-Sustainability-Report.pdf -vv
[INFO] pdftotree.core - Digitized PDF detected, building tree structure...
[INFO] pdftotree.TreeExtract - No boxes were found on page 1.
[INFO] pdftotree.TreeExtract - No boxes were found on page 4.
[INFO] pdftotree.TreeExtract - No boxes were found on page 5.
[INFO] pdftotree.TreeExtract - No boxes were found on page 6.
[INFO] pdftotree.TreeExtract - No boxes were found on page 7.
[INFO] pdftotree.TreeExtract - No boxes were found on page 8.
[INFO] pdftotree.TreeExtract - No boxes were found on page 10.
[INFO] pdftotree.TreeExtract - No boxes were found on page 11.
[INFO] pdftotree.TreeExtract - No boxes were found on page 12.
[INFO] pdftotree.TreeExtract - No boxes were found on page 14.
[INFO] pdftotree.TreeExtract - No boxes were found on page 15.
[INFO] pdftotree.TreeExtract - No boxes were found on page 18.
[INFO] pdftotree.TreeExtract - No boxes were found on page 19.
[INFO] pdftotree.TreeExtract - No boxes were found on page 20.
[INFO] pdftotree.TreeExtract - No boxes were found on page 23.
[INFO] pdftotree.TreeExtract - No boxes were found on page 25.
[INFO] pdftotree.TreeExtract - No boxes were found on page 26.
[INFO] pdftotree.TreeExtract - No boxes were found on page 29.
[INFO] pdftotree.TreeExtract - No boxes were found on page 34.
[INFO] pdftotree.TreeExtract - No boxes were found on page 35.
[INFO] pdftotree.TreeExtract - No boxes were found on page 37.
[INFO] pdftotree.TreeExtract - No boxes were found on page 42.
[INFO] pdftotree.TreeExtract - No boxes were found on page 54.
[INFO] pdftotree.TreeExtract - No boxes were found on page 55.
[INFO] pdftotree.TreeExtract - No boxes were found on page 60.
Traceback (most recent call last):
  File ".venv/bin/pdftotree", line 116, in <module>
    args.visualize,
  File ".venv/lib/python3.6/site-packages/pdftotree/core.py", line 65, in parse
    pdf_tree = extractor.get_tree_structure(model_type, model, favor_figures)
  File ".venv/lib/python3.6/site-packages/pdftotree/TreeExtract.py", line 238, in get_tree_structure
    favor_figures,
  File ".venv/lib/python3.6/site-packages/pdftotree/utils/pdf/pdf_parsers.py", line 762, in parse_tree_structure
    mentions, elems.layout.bbox, page_num, boxes_figures, page_width, page_height
  File ".venv/lib/python3.6/site-packages/pdftotree/utils/pdf/pdf_parsers.py", line 1246, in get_figures
    node_fig = Node(fig_box)
  File ".venv/lib/python3.6/site-packages/pdftotree/utils/pdf/node.py", line 47, in __init__
    self.set_bbox(bound_elems(elems))
  File ".venv/lib/python3.6/site-packages/pdftotree/utils/pdf/vector_utils.py", line 121, in bound_elems
    group_x0 = min(map(lambda l: l.x0, elems))
ValueError: min() arg is an empty sequence

Re-opening this issue. It's good to have these open until someone is able to debug it.

Just wanted to point out that I had the same error on this file
IFT_Infratil_2017.pdf

I had a go debugging this
The problem seems to be that when the Node instance is being created for the figures a single element is passed to the contributor of the node call rather than a list of elements.


Fix flags enums generation in CSharp

See bug report at https://github.com/RicoSuter/NJsonSchema/issues/1042

v10.0.23


unknown setting [opensearch_security.*

Description of the issue
According to this page (docs-beta), the opensearchproject/opensearch:1.0.0-beta1 should accept the following options:
opensearch_security:
  dynamic:
    http:
      ...
    authc:
      ...
    authz:
      ...

Due to a missing renaming of the options (or due to the fact that we're using in the opensearchproject/opensearch:1.0.0-beta1 image the OpenDistro security plugin), this results in the following OpenSearch error if one of those options (e.g: opensearch_security.ssl.transport.keystore_filepath) being used:
Caused by: java.lang.IllegalArgumentException: unknown setting [opensearch_security.ssl.transport.keystore_filepath] did you mean any of [opendistro_security.ssl.
transport.keystore_filepath, opendistro_security.ssl.transport.truststore_filepath, opendistro_security.ssl.transport.pemcert_filepath, opendistro_security.ssl.tr
ansport.keystore_alias, opendistro_security.ssl.transport.keystore_type, opendistro_security.ssl.transport.pemkey_filepath, opendistro_security.ssl.transport.keys
tore_password, opendistro_security.ssl.http.keystore_filepath, opendistro_security.ssl.transport.pemtrustedcas_filepath, opendistro_security.ssl.transport.keystor
e_keypassword]?

To Reproduce
Steps to reproduce the behavior:
docker run --rm -e 'opensearch_security.ssl.transport.keystore_filepath=/tmp/test.jks' opensearchproject/opensearch:1.0.0-beta1

Expected behavior
The option should be accepted and the user shouldn't use opendistro_security to work around the issue
Plugins

opensearch-security-<IP_ADDRESS> ?

Unfortunately it's still unclear to me how the opensearchproject/opensearch:1.0.0-beta1 image was created as I haven't found any CI related to the project and the image seems to have been pushed (manually?) by @peterzhuamazon

I think this issue belongs in https://github.com/opensearch-project/security.
I see a bunch of beta1 tags in security, and I am not sure which one was the actual beta1 build, cc: @vrozov that can maybe help clean this up and clarify what's what.

It does look like settings renaming happened after beta1 in https://github.com/opensearch-project/security/pull/1176, which explains this error. It has been fixed by rc1. I'll close this since it's "as designed". Please let us know if you see more issues!


Use better bulk index

https://github.com/jtibshirani/text-embeddings/blob/master/src/main.py#L14-L59

How do you want to improve it?

Should we modify this part of code?
https://github.com/deep-foundation/russian-laws-bot/blob/149a8f351144e7b2e132da03877303938973b677/main.py#L291-L302

@FreePhoenix888 yes, but this task is on me right now.


Fix typo in en/docs/concepts/scheduling-eviction/scheduling-framework.md

Fixes description for Postfilter plugin. The plugin is called when no feasible nodes were found for the pod being scheduled.

/assign @onlydole

Thanks for this PR @bnutt
/sig scheduling

Thank you, @bnutt! This looks good to me.
/lgtm

/approve


Array Revolver Switch: inactive inputs aren't updated

Open http://vizor.io/reiska/array-revolver-input-update-bug-reproduction
Switch boolean toggle on
-> number updates as expected
change First Number (the inactive input) to 30
Switch boolean toggle off
-> number incorrectly changes to 10, the previous value in input 0

The problem is that when an inactive input becomes active, plugin.updated is false on the input float plugin, its value doesn't get fed into the receiving array revolver.


Identity insert error

Hi, I'm getting this error when I try to insert in the master db a new record that has an Identity primary key:
ERROR PushInsertRecords() Cannot insert explicit value for identity column in table 'Table' when IDENTITY_INSERT is set to OFF.
is an special configuration required??
Thanks

Check if you have IDENTITY property on primary key set to TRUE.

On 4 Dec 2020, at 17:24, ger2902<EMAIL_ADDRESS>wrote:
Hi, I'm getting this error when I try to insert in the master db a new record that has an Identity primary key:
ERROR PushInsertRecords() Cannot insert explicit value for identity column in table 'Table' when IDENTITY_INSERT is set to OFF.
is an special configuration required??
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/sqlite-sync/SQLite-sync.com/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNU5N7C4CXANWAALM2VBM3STEENRANCNFSM4UNU5XNQ.

Yes it's set to TRUE, is it possible to insert new records with identity value? I wonder if should I send as null the value in the identity column...


Peer map invariants are sometimes not upheld

Just got this while running tests locally...
thread 'tokio-runtime-worker' panicked at iroh-net/src/magicsock/peer_map/endpoint.rs:774:13:
node map inconsistency by_ip_port <-> direct addr

That's ... not good, right?

It seems that you get this more often (or at all?) when running a VPN.


io.pathnames: removed dependency on environment.

Erroneous dependency on basis/environment removed from the io.pathnames USING: statement.
Tested this change with Windows and MacOS.

Thanks to erg, I made sure that this actually worked this time after a make clean ; make with make-images and then bootstrapped (on MacOS at least).


Add getting starting section to README

README update
please add a getting started section to README

Added "getting started section to README file "


Add break statement in switch statement of HLIL window

Add break statement in switch statement of HLIL window
fuga.zip
When I analyze this binary (fuga.o) , the break statement is not displayed in the switch statement of the HLIL window as shown in below picture.
I want the break statement to be displayed in the HLIL window because I mainly look at the HLIL window to analyze.
If I only look at the HLIL window, I cannot tell whether the break statement exists or not in terms of the semantics of the program.
That is ,  I would like the break statement to be added to the switch statement in the HLIL window, just as it is displayed in the pseudo c window.

Wow, I never noticed that but you're right, the HLIL isn't clear about where breaks are happening at all.

One reason this is difficult to notice is that binaryninja often displays switch statements as if statements, even if they are switch statements.

HLIL is not C. Switch statements in HLIL do not have fallthrough, so break statements will not appear at the end of cases. This is intentional and not a bug. If you want C, use the Pseudo-C view.

HLIL is not C. Switch statements in HLIL do not have fallthrough, so break statements will not appear at the end of cases. This is intentional and not a bug. If you want C, use the Pseudo-C view.

Where are the syntax guidelines for HLIL documented?

From an API perspective, everything should be documented via:
https://api.binary.ninja/_modules/binaryninja/highlevelil.html#HighLevelILInstruction
which has all instructions and their possible operands.
From just a reading perspective:
https://docs.binary.ninja/dev/bnil-overview.html#reading-il

And yes, I did just point to source as documentation as if this were some open source project. 😉
We do plan on expanding the documentation of HLIL to match those for LLIL and MLIL but for now the previous links are the best (and you'll notice much of the content is duplicated there anyway).

HLIL is not C. Switch statements in HLIL do not have fallthrough, so break statements will not appear at the end of cases. This is intentional and not a bug. If you want C, use the Pseudo-C view.

OK. I understood about HLIL not having a fallthrough syntax.
Then, when I analyze the attached program, the "case 4" is not correct, is it?

switch4.zip

By the way, I think the "psedo c" window is wrong when analyzing that program.

Good catch -- that is 100% a bug and we need to fix it. Re-opening.

The HLIL control flow recovery system was not validating that default cases cover all values not covered by other cases and do not overlap with other cases. This is fixed in 3.4.4198.
There is currently no support for representing a fall through into a default case directly, so the decompiler now emits an if statement to cover it below the switch.

@D0ntPanic
Thanks for fixing the bug :)
What do you think about a idea to use HLIL_GOTO when doing HLIL control flow recovery?
In this case, I think the output looks a little cleaner since no if statements are generated.


Error running openai-gpt on ROCstories

🐛 Bug

The model I am using: OpenAIGPT
The language I am using the model on: English
The problem arises when using:

[ ] the official example scripts: When I try to run examples/single_model_script/run_openai_gpt.py I get this error:

Traceback (most recent call last):
  File "/home/rohola/Codes/Python/pytorch-transformers/examples/single_model_scripts/run_openai_gpt.py", line 288, in <module>
    main()
  File "/home/rohola/Codes/Python/pytorch-transformers/examples/single_model_scripts/run_openai_gpt.py", line 158, in main
    model = OpenAIGPTDoubleHeadsModel.from_pretrained(args.model_name, num_special_tokens=len(special_tokens))
  File "/home/rohola/Codes/Python/pytorch-transformers/pytorch_transformers/modeling_utils.py", line 330, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
TypeError: __init__() got an unexpected keyword argument 'num_special_tokens'

The tasks I am working on is:

ROCstories

To Reproduce
Steps to reproduce the behavior:

Just run the "run_openai_gpt.py "

Environment

OS: Ubuntu 16.04
Python version: 3.6
PyTorch version: 1.1.0
PyTorch Transformers version (or branch): The last commit
Using GPU: True
Distributed of parallel setup: No
Any other relevant information:

Additional context
Even when I remove that argument I get another error:
Traceback (most recent call last):
  File "/home/rohola/Codes/Python/pytorch-transformers/examples/single_model_scripts/run_openai_gpt.py", line 288, in <module>
    main()
  File "/home/rohola/Codes/Python/pytorch-transformers/examples/single_model_scripts/run_openai_gpt.py", line 224, in main
    losses = model(input_ids, mc_token_ids, lm_labels, mc_labels)
  File "/home/rohola/Codes/Python/pytorch-transformers/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/rohola/Codes/Python/pytorch-transformers/pytorch_transformers/modeling_openai.py", line 601, in forward
    head_mask=head_mask)
  File "/home/rohola/Codes/Python/pytorch-transformers/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/rohola/Codes/Python/pytorch-transformers/pytorch_transformers/modeling_openai.py", line 425, in forward
    hidden_states = inputs_embeds + position_embeds + token_type_embeds
RuntimeError: The size of tensor a (78) must match the size of tensor b (16) at non-singleton dimension 1

Ok should be fixed now on master with e768f23


feat: gitignore session cookie

Didn't realise this was meant to be in user's home directory, my bad

all good, I updated the docs to make it a bit clearer


introduce sflist slist-alike

This is an slist variant which allows two flag bits to be stuffed into a node without taking up extra space, by taking advantage of 4-byte pointer alignment.
Some APIs used exclusively by the list_gen.h macros have been made private.

Codecov Report

Merging #7279 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #7279   +/-   ##
======================================
  Coverage      55%     55%
======================================
  Files         474     474
  Lines       51718   51718
  Branches     9935    9935
======================================
  Hits        28447   28447
  Misses      19308   19308
  Partials     3963    3963

Impacted Files
Coverage Δ

include/misc/slist.h
100% <100%> (ø)
: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 b2ca5ee...c1fd751. Read the comment docs.

folded into #7049


Add additional resources links

Required Links

[x] - Living Little Report	http://www.mapc.org/wp-content/uploads/2019/03/Living-Little-Report.pdf
[ ] - Living Little Report, Phase Two Not Ready Yet - This will be a pdf
[ ] - Recommendations for Cottage Zoning Bylaw	Not Ready Yet - this will be a pdf
[ ] - Living Little Engagement Materials Not Ready Yet. There will be several pieces to these - likely a few pdfs and possible a short video clip or two. These will be materials to spread the word about how great living little is.

Additional Resources

[x] The State of Zoning for Multifamily Housing in Greater Boston	https://www.mapc.org/planning101/local-zoning-is-making-it-difficult-to-build-housing-around-boston-thats-raising-prices-for-everyone/
[x] Crowded In and Priced Out	https://metrocommon.mapc.org/reports/10
[x] Missing Middle Housing	https://missingmiddlehousing.com
[x] Character-Compatible, Space-Efficient Housing Options For Single-Dwelling Neighborhoods	https://www.oregon.gov/lcd/OP/Documents/SpaceEfficientHousingReport.pdf
[x] Accessory Dwelling Unit Manual	http://www.cityofsantacruz.com/home/showdocument?id=8875
[x] Laneway Housing: How-To Guide	https://bylaws.vancouver.ca/bulletin/bulletin-laneway-housing-guide.pdf
[x] Legalizing Inexpensive Housing	https://www.sightline.org/series/legalizing-inexpensive-housing/
[x] Second Unit Resources Center	https://secondunitcentersmc.org

@alexislynn to review list


More control of sizes

This PR:

forces minimum size for SwipeView. It prevents SwipeView from becoming smaller than Palletes item which causes visual issues.
sets implicitWidth and implicitHeight based on size of internal items which gives hints for layouts and positioners Colorpicker is being put into.

Thank you!


The issue of Remaining work items in queue

Hello，
I use a VLP16 laser and a xsens imu. when I run cartographer 3D with pure Localization in a Given Map, I always meet the issue of remaining work items in queue，such as "Remaining work items in queue: 17893". The size of queue frequently reaches tens of thousands. From my personal point of view, If the parameters are tuned well, the value should be 0. However, How can I continue to tune the parameters, can you give me some advice?

See https://google-cartographer-ros.readthedocs.io/en/latest/tuning.html#low-latency


[docs] Instructions for development

Instructions for development are redundant. Similar to  https://github.com/openwisp/openwisp-users/issues/113#issuecomment-625443317
In https://github.com/openwisp/openwisp-utils#installing-for-development
Following command does not install dependencies of [qa] and [rest]  which are required for running tests.
python setup.py develop

I want to work on this issue.


Fix chat container

What

Fix type mismatch in the chat container storybook props
Why

How Tested

Ran tests locally

Does JoinExistingChatThread need this also?

Does JoinExistingChatThread need this also?

It needed the opposite action, I must have gotten the two confused when I initially worked on this bug 😅


szip test commented out at the end of tst_vars3.c

No point in commented out test code. If this is a good test I will get it working. If not, I will delete it.

Well the problem here is the test uses nc_def_var_szip().
But there is no such function. ;-) Apparently it was removed at some point. Does anyone know why?
So szip is a read-only thing for netCDF? NetCDF can't create szip compressed files? @WardF is this something you did or something I did and have forgotten?
Do we not create szip compressed files due to concerns about it's license?

The szip situation is now this.

szip support was folded into  nc_def_var_filter
we now have access to read/write open-source szip libraries, so there
is no longer any reason to make szip read-only.
Should I restore nc_def_var_szip as a simple wrapper around nc_def_var filter?

Howdy Dennis!
How would I call nc_def_var_filter to turn on szip? Can you give me a sample?
Not sure if we need nc_def_var_szip(), but I can change the test code to use nc_def_var_filter().

IMO we should not define nc_def_filter_szip and force use of use nc_def_var_filter instead.
Note that nc_inq_var_szip still exists.
To do the equivalent of nc_def_var_szip:
unsigned int params[2];
params[0] = mask;
params[1] = bits_per_pixel;
status = nc_def_var_filter(ncid,varid,H5_FILTER_SZIP,2,params);
where H5_FILTER_SZIP == 4

Actually, there is a test in nc_test4  called test_szip.c

I will convert test code in tst_vars3.c to use nc_def_var_filter().
I will not re-add nc_def_var_szip(). I will put this szip example in the documentation as an example for nc_def_var_filter(), and I will mention it in the nc_inq_var_szip() documentation.
Thanks!

When working on this test I encountered an szip filter bug. I will add as a separate issue.


mpk: enable MPK if available in CI

After discussing several options for testing MPK in CI, this stopgap
measure at least provides some coverage. Other options include
maintaining a separate MPK-enabled CI runner (configuration is not
transparent, hard to maintain) or running the MPK-enabled tests in a
system-mode QEMU VM (tricky to get right, also hard to maintain). For
now, those of us at the Cranelift meeting agreed this at least gets some
CI testing for the MPK bits, which shouldn't be changing too often.
Since not all GitHub runners have MPK available, we only set the
WASMTIME_TEST_FORCE_MPK environment variable when it is. This change
also emits a warning to the GitHub logs in either case for easier
troubleshooting (e.g., to attempt to provide context if MPK logic breaks
and is only found in a later CI run).
prtest:full

Could this add a dedicated builder which is the only one enabling MPK? That one could perhaps run just a small subset of the test suite as well. I'm also a bit worried about the inverse where we always run with MPK by accident somehow and never see issues when it's turned off.
Otherwise, could the warning be tweaked a bit? Ideally what I'd imagine is that on failure a warning would be printed, but if everything succeeded no warning necessary as otherwise it can clutter up the view (e.g. this link has a number of non-actionable warnings at the bottom)

Take a look at this run; this change will now only cause a single warning when MPK is not present.


Update focus-point-in-unity.md

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/focus-point-in-unity.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


fix(table): fix default sorter&filters invalid in template

Types of changes

[ ] New feature
[x] Bug fix
[ ] Enhancement
[ ] Component style change
[ ] Typescript definition change
[ ] Documentation change
[ ] Coding style change
[ ] Refactoring
[ ] Test cases
[ ] Continuous integration
[ ] Breaking change
[ ] Others

Background and context

Solution

How is the change tested?

Changelog

Component
Changelog(CN)
Changelog(EN)
Related issues

table
修复 default sorter&filters 在模板用法下失效的问题
Fix default sorter&filters not working under template usage

Checklist:

[ ] Test suite passes (npm run test)
[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others
should be submitted to main branch)

Other information

nice!


Add powerpc64le Linux support

This patch adds powerpc64le Linux support. While the patch also adds
the matching powerpc64 bits, there are endian issues that need to be
sorted out.
The PowerPC LLVM changes for the swift ABI (eg returning three element
non-homogeneous aggregates) are still in the works, but a simple LLVM
fix to allow those aggregates results in swift passing all but 8
test cases.
Note: It would be nice if swift had conditional compilation based on pointer size, a
number of the test cases only care if the target is 32 or 64 bit.

Is powerpc64 big-endian?

Yes, powerpc64 is big endian. We hope to get big endian working, but for now are concentrating on the little endian port (powerpc64le).

How far does this patch allows the port to go?  Does the standard library build?  Does hello world work?  Do the tests run?

The powerpc64le port builds and runs the test suite with a few failures:
********************
Testing Time: 275.66s
********************
Failing Tests (5):
    Swift :: 1_stdlib/VarArgs.swift
    Swift :: Driver/filelists.swift
    Swift :: IRGen/c_layout.sil
    Swift :: IRGen/type_layout_reference_storage.swift
    Swift :: Parse/BOM.swift

  Expected Passes    : 1698
  Expected Failures  : 67
  Unsupported Tests  : 651
  Unexpected Failures: 5
*** Failed while running tests for swift (check-swift-linux-powerpc64le)

And hello world works:
$ cat hello.swift
print("Hello, world!")
$ swiftc hello.swift
$ ./hello
Hello, world!

@antonblanchard I'm really impressed!

Did you try the validation test suite build-script -T?

Thanks, that's given me a few more failing tests to sort out:
********************
Testing Time: 1467.18s
********************
Failing Tests (8):
    Swift :: 1_stdlib/VarArgs.swift
    Swift :: Driver/filelists.swift
    Swift :: IRGen/c_layout.sil
    Swift :: IRGen/type_layout_reference_storage.swift
    Swift :: Parse/BOM.swift
    Swift :: stdlib/AtomicInt.swift
    Swift :: stdlib/CollectionType.swift.gyb
    Swift :: stdlib/FloatingPointConversionTraps.swift.gyb

  Expected Passes    : 6961
  Expected Failures  : 79
  Unsupported Tests  : 771
  Unexpected Failures: 8

Again, very impressed it is just 8 tests in total!

Yes, I'm surprised by how clean the port is. Having the compiler written in c++ (vs the target language), and pulling in clang to get the ABI parameter passing rules helps. Other LLVM based languages have required a lot more work.
Big endian still requires work, but we can attack that once the little endian port is solid.

I'm not sure of the preferred workflow, but I'm happy to rebase and squash these commits.

Yes, we prefer rebasing/squashing.

@antonblanchard Thank you!  Looks good, but I have two more comments.

Very cool, thank you for working on adding this!

@antonblanchard The ObjC values should be dynamically dead as far as I understand.  If you find they are also statically unused -- feel free to remove them!

I ran tests on Ubuntu 14.04 x86_64 and OS X, and see no regressions.  Merging.  Thank you!

Thanks for your help @gribozavr!


[Poloniex] Added order status to Poloniex

I've implemented an imperfect, but best possible order status for Poloniex. Poloniex API frustratingly does not return the order type, or the originalAmount value for orders. But the rest of it is there.

@walec51 Fair criticism. See above changes for fixes. I've committed a few times to this project, but havn't seen a style guide.

@traviscollins The style guide is here: https://github.com/knowm/XChange/wiki/Code-Style See also: https://github.com/knowm/XChange/wiki/New-Implementation-Best-Practices


[TASK]: Generate synthetic ECG images for the PTB-XL dataset

Task Summary
Use the scripts in master repository to generate synthetic ECG images for the PTB-XL dataset.

Download (and unzip) the PTB-XL dataset. We will use ptb-xl as the folder name that contains the data for these commands (the full folder name for the PTB-XL dataset is currently ptb-xl-a-large-publicly-available-electrocardiography-dataset-1.0.3), but you can replace it with the absolute or relative path on your machine.

Add information from various spreadsheets from the PTB-XL dataset to the WFDB header files:
 python prepare_ptbxl_data.py \
     -i ptb-xl/records100/00000 \
     -d ptb-xl/ptbxl_database.csv \
     -s ptb-xl/scp_statements.csv \
     -o ptb-xl/records100/00000

Generate synthetic ECG images on the dataset:
 python gen_ecg_images_from_data_batch.py \
     -i ptb-xl/records100/00000 \
     -o ptb-xl/records100/00000 \
     --print_header

Add the file locations for the synthetic ECG images to the WFDB header files. (The expected image filenames for record 12345.png are of the form 12345-0.png, 12345-1.png, etc., which should be in the same folder.) You can use the ptb-xl/records100/00000 folder for the train_model step:
 python add_image_filenames.py \
     -i ptb-xl/records100/00000 \
     -o ptb-xl/records100/00000

Remove the waveforms, certain information about the waveforms, and the demographics and diagnoses to create a version of the data for inference. You can use the ptb-xl/records100_hidden/00000 folder for the run_model step, but it would be better to repeat the above steps on a new subset of the data that you will not use to train your model:
 python remove_hidden_data.py \
     -i ptb-xl/records100/00000 \
     -o ptb-xl/records100_hidden/00000

Try to generate one sample data locally first and inform team @sikicode

Starts with https://github.com/sikicode/physionet24/issues/7


@stitches/tailwind: update @stitches/css version

Before, tailwind was including its own (incompatible) version of css, which was causing a lot of typing issues in a local environment. I had to add "resolutions": { "@stitches/css": "3.0.2" }, to my package.json to fix this
Also moves it to use a peer dep, which seems more correct in this case, since it's likely a mistake if @stitches/css isn't installed explicitly

Hi, the tailwind package is now deprecated. @christianalfoni might continue this in his own repo thought 👍


fix missing conda channel in install command

the channel conda-forge was missing in the install command of python-chromedriver-binary

Thanks for you PR @luerhard . As you have noticed, there hasn't been any development in this repo for a while. Since Altair 5.2, the functionality of Altair Saver is now available in Altair via the vl-convert package. Most of the functionality has been available since 5.0, and the main addition in 5.2 was PDF export. See the docs on how to save charts for more details.
We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo.


Add Fire (<IP_ADDRESS>7)

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.

The one question I have is on the naming.  The app is actually called "Fire" (Fire.app is what is installed) - however, the name "fire" seems kind of generic to me - and the website itself is http://elementscompiler.com ("Elements" is the compiler, "Fire" is an IDE that contains the elements compiler).
I'm willing to change the name of this cask, if "Fire" is too generic, or if someone suggests something else.

or if someone suggests something else.

No suggestion. The token reference is strict for a reason. If the name is generic, so be it. There are no conflicts, and not having duplicates is more important.

Well - I was absolutely shocked that there wasn't already a "fire" app - so leave it as-is?

Unfortunately, this is a walled app. We do not accept those.

OK - no problem.  I didn't realize that it was walled.  Thank you!

Thank you for the contribution anyway. Your submissions are always good.


fix(symbolize): simplify resource management

Codecov Report
Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (42a185c) 59.67% compared to head (a33f091) 59.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1047      +/-   ##
==========================================
+ Coverage   59.67%   59.68%   +0.01%
==========================================
  Files          19       19
  Lines        2564     2570       +6
  Branches      912      913       +1
==========================================
+ Hits         1530     1534       +4
  Misses        692      692
- Partials      342      344       +2

Files
Coverage Δ

src/symbolize.cc
53.08% <44.82%> (+0.29%)
:arrow_up:

... and 2 files with indirect coverage changes


Get LASTools working in Wine with blast2dem

https://github.com/terraref/laser3d/pull/10
This PR attempts to re-introduce LASTools support using wine so that we can install wine in the heightmap dockerfile like this: https://github.com/terraref/extractors-3dscanner/pull/26/files
However I've been unable to get good results from blast2dem using this method. We need to figure out right parameters to convert LAS to GeoTIFF DEM, possibly including clipping of point cloud to plot boundary (although we could also clip the LAS files separately if necessary).

https://github.com/LAStools/LAStools/blob/3fceab161f4d3faccbada8bdfbb0962484b33697/ArcGIS_toolbox/scripts/blast2dem.py
find a link that might help, at least it shows how to use blast2dem in python with flags

Max needs to send data to test: 1) LAS file and 2) plot geometry to try clipping

@weiqin61 one recent LAS file you can test with is accessible via Globus:
/ua-mac/Level_1/laser3d_mergedlas/2018-06-01/2018-06-01__01-37-22-494/canner3DTop_L1_ua-mac_2018-06-01__01-37-22-494_merged.las
The file is ~1.5 GB.
This LAS file crosses the field across columns in Range 30. Example (with geotiff conversion that is best we currently have but we should be able to improve):

The 3 boxes are 3 plots I show as an example:
MAC Field Scanner Season 4 Range 30 Column 5
{ "type": "MultiPolygon", "coordinates": [ [ [ [ -111.974990712657487, 33.075605717463773, 0.0 ], [ -111.974974343378051, 33.075605722793924, 0.0 ], [ -111.974974328860199, 33.075574155092227, 0.0 ], [ -111.97499069813378, 33.07557414976219, 0.0 ], [ -111.974990712657487, 33.075605717463773, 0.0 ] ] ] ] }

MAC Field Scanner Season 4 Range 30 Column 6
{ "type": "MultiPolygon", "coordinates": [ [ [ [ -111.974974343378051, 33.075605722793924, 0.0 ], [ -111.974957974098572, 33.075605728121921, 0.0 ], [ -111.974957959586561, 33.075574160420111, 0.0 ], [ -111.974974328860199, 33.075574155092227, 0.0 ], [ -111.974974343378051, 33.075605722793924, 0.0 ] ] ] ] }

MAC Field Scanner Season 4 Range 30 Column 7
{ "type": "MultiPolygon", "coordinates": [ [ [ [ -111.974957974098572, 33.075605728121921, 0.0 ], [ -111.974941604819037, 33.075605733447773, 0.0 ], [ -111.974941590311886, 33.075574165655659, 0.0 ], [ -111.974957959586561, 33.075574160420111, 0.0 ], [ -111.974957974098572, 33.075605728121921, 0.0 ] ] ] ] }

If you want more plots you can use:
from terrautils.betydb import get_site_boundaries
b = get_site_boundaries('2017-04-26')

#will return the geometry for this plot
b["MAC Field Scanner Season 4 Range 30 Column 6"]
#you can see all plots returned with
b.keys()

https://groups.google.com/forum/#!searchin/lastools/blast2dem|sort:date/lastools/v9p3x-8eXEw/_8D1CW_RAgAJ
The post explains why we see white stripes when first using blast2dem, cause we need to use buffers when processing in tiles. Also, there is a 2 billion points limit when using blast2dem, which comes back to the bounding box issue.

Current progress...
# CREATE SHP FROM PLOT GEOJSON
ogr2ogr -nlt MULTIPOLYGON -skipfailures -t_srs EPSG:32612 r30c5.shp r30c5.geojson

# CLIP LAS BY SHP KEEPING 1/2 POINTS (2.8 million)
wine /home/clowder/LAStools/bin/lasclip.exe -i scanner3DTop_L1_ua-mac_2018-06-01__01-37-22-494_merged.las -poly r30c5.shp -o r30c5.las -keep_random_fraction 0.5

# CONVERT CLIP TO TIF w/ .001m resolution
wine /home/clowder/LAStools/bin/blast2dem.exe -i r30c5.las -o r30c5.tif -utm 12N -force_precision -step .001

3 plots:

Same-day fullfield:

Range 30 Col 6:

R30C6 point cloud:

Still needs work but wanted to paste current code.

@robkooper and i discused a quick check - read PLY into numpy and write directly to geotiff instead of going through LAS first

Reading PLY into numpy simply returns 3 long arrays with XYZ coordinates:
[[  4.08992375e+05   4.08992375e+05   4.08992375e+05 ...,   4.09009156e+05
    4.09009156e+05   4.09009156e+05]
 [  3.66008925e+06   3.66008925e+06   3.66008925e+06 ...,   3.66008900e+06
    3.66008900e+06   3.66008900e+06]
 [  3.90553772e-01   3.90229523e-01   3.89984429e-01 ...,   3.66384566e-01
    3.65714967e-01   3.66277993e-01]]
(3, 76584572)

Converting this to geotiff is not trivial - there are 76,584,572 coordinates in this example but software to write numpy to geotiff requires cell resolution information. If we take the min/max of XY for this array...
(3660089.0, 3660090.2, 408987.41, 409009.56)

...we can use (max-min)/scale to get the number of pixels desired in output raster. For example at scale .001m:
(3660090.2 - 3660089.0) / .001 = 1200
(409009.56 - 408987.41) / .001 = 22150

... we could expect to have a raster thats 22150 x 1200 = 26,580,000 pixels.
So the question becomes how to convert our arrays of 76,584,572 coords to 26,580,000 pixels, binned by each cell in the output raster and averaged/maxed per cell.
The idea of precalculating each pixel boundary by dividing xsize by 22150 and ysize by 1200 and iterating through 26 million cells, for each finding the coordinates that fall within those boundaries then performing some aggregation on them seems agonizingly slow.
So, plan C. We create a temporary LAS file that doesn't have geocoding (because that is breaking everything) and use PDAL to convert that. We can maintain a separate LAS geocoded merged pointcloud for other purposes.

Current plan is to use this PLY conversion for LAS and for stitched heightmap. implementation is done.


go version in images doesn't match local builds

Type of question

Open question
Question
What did you do?
Hello 👋 I was checking Go version used in the latest tags on quay.io when I noticed master is still using go 1.18.10
❯ docker run --rm -it --entrypoint ansible-operator quay.io/operator-framework/ansible-operator:master version
Unable to find image 'quay.io/operator-framework/ansible-operator:master' locally
master: Pulling from operator-framework/ansible-operator
...
Digest: sha256:8f06dbdd9f3dbcd8c6adca5ae2ddb22f74c906d35e7fcdfe55f2ff4ff7f46d2d
Status: Downloaded newer image for quay.io/operator-framework/ansible-operator:master
ansible-operator version: "v1.28.0-4-g82b28e85", commit: "82b28e85707d2448e1cdd385ce0444ea16e5eb75", kubernetes version: "v1.26.0", go version: "go1.18.10", GOOS: "linux", GOARCH: "amd64"

What did you expect to see?
I expected to see the same as when built locally, which is version 1.19.8
root@84c4c93d83ad:/tmp/operator-sdk# go version $(which ansible-operator)
/go/bin/ansible-operator: go1.19.8
root@84c4c93d83ad:/tmp/operator-sdk# ansible-operator version
ansible-operator version: "82b28e85", commit: "82b28e85707d2448e1cdd385ce0444ea16e5eb75", kubernetes version: "v1.26.0", go version: "go1.19.8", GOOS: "linux", GOARCH: "amd64"

What did you see instead? Under which circumstances?
Expected to see the same Go version used, however I see that the golang image in the Dockerfiles were not updated when the go.mod was updated
First time opening an issue and wasn't sure if this was intentional or not. I can update the images and docs if not.
Environment
Operator type:

Kubernetes cluster type:

$ operator-sdk version

$ go version (if language is Go)

$ kubectl version

Additional context
Go 1.18.10 has some CVEs tied to it that are resolved in the 1.19 stream so there may be an additional benefit to updating

@OchiengEd I opened a PR here (if it helps): https://github.com/operator-framework/operator-sdk/pull/6398

@pit1sIBM Thank you for the heads up on the PR. Definitely helps

May I know what is blocking to deliver the PR connected to this issue ? There are lot of known vulnerabilities with Golang 1.18.

@simararneja I have changed the milestone to v1.30.0. I will try to get some eyes on this as well.

Thanks all for taking a look, had a quick question that may require a separate issue. Should the images built using the golang image use the registry.redhat.io/rhel8/go-toolset image instead? AFAIK the golang image isn't FIPS-compliant, where the go-toolset image is.
I know previously a workaround was required for FIPS (see https://github.com/operator-framework/operator-sdk/issues/5723) and that was resolved, but perhaps using the toolset image going forward (or tagging a separate image) would be beneficial?


Add support more sPacy models

🚀 Feature
The current version of QuickText uses the medium sized english model (en_core_web_md)
The SpacyFeaturizer class should support almost all spacy models
An argument for the sPacy model name can be passed to SpacyFeaturizer class

The new design for the framework requires the user to supply the spacy vocab
Hence there is no need to add support from this side


Replace d3Sankey with Plotly

Plotly Does Sankey Diagrams. We should use it instead of the d3Sankey library, which is less featureful.

Resolved by 2a59018e0e5411808914bcc65ecaf97fcd4c07a7


Ignore .env and .env.build for deployments by default

Because now dev uses these dotenv files to define the Now secrets to use, it would be bad practice to include them in the deployment files since they will be using development values instead of production values.

Codecov Report

Merging #2083 into canary will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           canary   #2083      +/-   ##
=========================================
- Coverage    4.63%   4.49%   -0.14%
=========================================
  Files         243     243
  Lines        8572    8572
  Branches      873     873
=========================================
- Hits          397     385      -12
- Misses       8158    8170      +12
  Partials       17      17

Impacted Files
Coverage Δ

src/util/ignored.ts
100% <ø> (ø)
:arrow_up:

src/util/get-project-name.js
90.9% <0%> (-9.1%)
:arrow_down:

src/util/get-files.js
91.53% <0%> (-8.47%)
:arrow_down:

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 658c220...7efa0a0. Read the comment docs.

This is a breaking change for us.
What's the recommended/easiest way to still upload .env files?

@antmarot We marked the release that includes this change a patch release because uploading .env poses a security risk.
Please use secrets instead, which will encrypt your secrets upon upload.

@leo I totally understand the reason behind the change and I am convinced it was the necessary thing to do. I would however argue this is a breaking change though.
While dotenv strongly recommends against committing .env files, I don't think their use in production is considered bad practice. In my opinion, the question is more about how do you securely get that file there.
Anyway, my use case is not about secrets, but configuration values. I purposefully do not use the env section in now.json to avoid duplication of values (now is not the only place where we deploy).
If there is no flag or config to override the ignored .env I think I'll just rename it.

@antmarot I understand. In that case, you can use the --dotenv flag to have Now CLI convert the values inside that file into regular environment variables supported by Now for you.

@leo Thanks for the headups. I must have searched through a dozen articles before finding this. This should be perhaps included in the docs.
Just to be clear, assuming I have .env file &&  .env.build in the root of a monorepo setup:
now dev would use the vars in .env?
now --dotenv would deploy my production build with the vars in env.build?


function convertDataViews incompatible with dataviewJS file.link

Using this code in obsidian:
	const posts = dv.pages('"200 Posts"');
	dv.list(posts.file.link);

The div.innerHTML returned by convertDataView is an empty list (seen in obsidian console)

Expected (seen in Obsidian)

Conclusion: using file.link works in obsidian but not with digital garden?

Could be related to #254

This should have been fixed in the latest release. Please let me know if updating to the latest version fixes it for you

✅ updated to 2.51 and dv.list renders correctly in digital garden

updated to 2.51.0 but still not getting desired behavior.
Here are the three queries

Here's the render in the digital garden:

They are rendering (both in Obsidian and Digital Garden), but I don't think eleventy or markdownit is converting the links that come from dataviewJS.

You can see in this final image that a class name block-language-dataview is added to the  when using DV, but when using DVJS it gets just dataview
I'm guessing there's a missing slugify arg somewhere in markdownit or eleventy. Or the logic doesn't have the right conditional to locate ul.dataview

Co-Pilot wants me to include a filter in the nunjucks template to slugify the URLs. it suggests something like this:

     {% set modifiedContent = content | replace(/href="(.+?)"/, 'href="/$1/"') | replace('.md"', '/') | replace(' ', '-') | replace("'", '') | replace('"/', '/"') | lower %}
      {{ modifiedContent | hideDataview | link | taggify | safe}}

      ```

 However eleventy errors on the delimiting `/`; I don't know regex well enough but will edit this comment if i can figure it out.

Also worth sharing that when you use dataviewJS function dv.markdownList it still outputs markup not markdown.

Presently trying to amend the link filter in eleventyconfig to find those urls and slugify them. or to create a new filter

Yep, you are right @jonathanhung, the links from dataviewJs is not working. It's due to the plugin not handling rewriting html links, it only handles markdown links. I'm currently tracking this issue on #346

This has now been fixed in the latest version of the template. Updating the template should result in all dataviewjs links behave similar to other links.


Add publication info

We should add the following entry in citation.cff when the paper is accepted for publication:

preferred-citation
identifiers

@vuillaut do we have to change the fields in the preferred-citation section from arXiv to ApJ info?
https://github.com/cta-observatory/lst-crab-performance-paper-2023/blob/e84be3476e275b76cacf9024278e07717dce20f9/CITATION.cff#L59-L65

yes! could you do it please?

done in #22


Refactor JNI code out of Core

Large, multi-repo project to refactor the Java specific JNI code out of Core
See: https://github.com/couchbase/couchbase-lite-core/pull/716
See: https://github.com/couchbaselabs/couchbase-lite-android-ee/pull/33

This change breaks liteserv-android.  I will open a separate ticket to either fix it or delete it.

Coverage decreased (-0.07%) to 76.051% when pulling 7e11660749434c05c6b48eb5126f2a8f3a865e42 on feature/jni-refactor into 5dd9f76df93ac584fdcbb83a23a9ef41f796352a on master.

This commit does not in any way change the test coverage.  I'm ignoring the coveralls warning.


Resource search should match API group

In a cluster, you can click the search icon in the top right of the page - this pops up a overlay box that can be used to find resources.
This should be improved so that you can type the name of an API group and this will show you that group and all resources in the group - currently it only matches on resource name.

Possible dupe of #5091 https://github.com/rancher/dashboard/issues/5091#issuecomment-1100961093


API: added OpenAPI document

When trying to generate from the openapi.yaml using openapi-generator-cli I get the following error:
~/Repos/vmd-baz/vmd-api/api main*
❯ openapi-generator-cli generate -g rust -i openapi.yaml -o test
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
 | Error count: 1, Warning count: 0
Errors:
	-attribute info.license.identifier is missing

	at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:620)
	at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:647)
	at org.openapitools.codegen.cmd.Generate.execute(Generate.java:479)
	at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
	at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)

Repository uses Apache Licence 2.0

Need to update license like so:
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
    identifier: Apache-2.0

Nice work with the first version for comments @baz2142 !

Realized a repeating typo, check the files and filenames for virutal instead of virtual.

@baz2142 - also please add DCO, Developer Certificate of Origin, to your commits - https://wiki.linuxfoundation.org/dco#developer_certificate_of_origin_dco

@baz2142 - please check commit signing for "Verified" commits. More info at https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification