In order to support file size over 4GB type off_t used for offset par…

…ameter has to be changed to size_t.

Sorry I didn't see this! It's so annoying that GitHub doesn't add issues made on own repos to the "participating"-list :-/ — that's the only one I check with frequency.
Thanks! I'll simply merge :-)

Thanks!
Borys
On Thu, Mar 7, 2019 at 7:48 PM Oscar Campbell<EMAIL_ADDRESS>wrote:

Sorry I didn't see this! It's so annoying that GitHub doesn't add issues
made on own repos to the "participating"-list :-/ — that's the only one I
check with frequency.
Thanks! I'll simply merge :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozra/mmap-io/pull/15#issuecomment-470795058, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIms2Kb8uJpV9gzRhTML8N-hYYcODhrGks5vUd2ngaJpZM4a8wLC
.

I'm started working on the npm update, but I have a hard deadline, so I'll have to postpone it until sunday or so. I'm rewriting the LS to TypeScript, and doing some more cleanups also, before I update the package.

Terribly sorry, such a rush-hour that I forgot to publish the changes and push. Up now. Cheers.

Thanks!
On Sun, Apr 7, 2019 at 2:50 PM Oscar Campbell<EMAIL_ADDRESS>wrote:

Terribly sorry, such a rush-hour that I forgot to publish the changes and
push. Up now. Cheers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozra/mmap-io/pull/15#issuecomment-480632908, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIms2GlcxYwayJ6uVcklMW_PJLipvMCdks5vemg4gaJpZM4a8wLC
.


Model.findBySQL can't find alias column

// table users has id, name column
public class User extends Model{}

List<User> users = User.findBySQL("select id, name as other_name from users limit 1");
// !!! it is null, but i want value !!!
users.get(0).getString("other_name")

source code Model class 205 line
 protected void hydrate(Map<String, Object> attributesMap, boolean fireAfterLoad) {

        Set<String> attributeNames = metaModelLocal.getAttributeNames();
        for (Map.Entry<String, Object> entry : attributesMap.entrySet()) {
           // ignoring the other column !!!! Why?
           // if set alias column or multiple tables select set alias column, it will all null
            if (attributeNames.contains(entry.getKey())) {
                if (entry.getValue() instanceof Clob && metaModelLocal.cached()) {
                    this.attributes.put(entry.getKey(), Convert.toString(entry.getValue()));
                } else {
                    this.attributes.put(entry.getKey(), metaModelLocal.getDialect().overrideDriverTypeConversion(
                            metaModelLocal, entry.getKey(), entry.getValue()));
                }
            }
        }
        if (getCompositeKeys() != null){
            compositeKeyPersisted = true;
        }
        if(fireAfterLoad){
            fireAfterLoad();
        }

    }

Who tell me how get alias column, Thx

Wouldn't it be possible that AJ also populates (virtual) columns which are not part of the schema of a table?
If you perform a MyModel.find_by_sql call with ActiveRecord and select columns from other tables the results are also included in the attributes Hash.
As an idea for limiting the population: The developer could have to explicitely declare virtual columns as instance variables and perhaps also annotate it as @virtual in order that the population would be performed, e.g.
public class MyModel extends Model  {    @virtual    private String myVirtualAttribute;      }
and
List<MyModel> list = MyModel.findBySql("SELECT normalColumn, myVirtualAttribute from my_table");
This would then also allowing to use the model class associated with that table instead of using Base or DB class.

@rivella50 , the model.findBySQL(..) documentation states:
Ensure that the query returns all columns associated with this model, so that the resulting models could hydrate themselves properly, see: http://javalite.github.io/activejdbc/snapshot/org/javalite/activejdbc/Model.html#findBySQL-java.lang.String-java.lang.Object...-
So, selecting any columns from a free SQL makes no sense because that will make it not "O" in the ORM. In other words, if there is an instance of a Person, and its attributes are filled partially, but instead it has some attributes from other tables, you cannot logically call that object "a person". For things like that, you can use a free-form SQL with a class Base.
Just because ActiveRecord has this feature does not mean ActiveJDBC should too. IMHO, this approach smells and tells me of a bad schema design.

Sure, but in my opinion when using the findBySQL method you are willing to perform a special SQL query which you probably cannot cover by using where/find/findAll.
Therefore you know that you will get either
a) not a fully populated (attributes) model instance
b) attributes from other tables which you needed to join or whatever linked
I understand your concerns, this was just an idea :-)

@rivella50 I hear you. With that, you can execute any query. However, the model expects a full set of attributes. A partial set of attributes is OK too (cringe), but it will not accept anything that is not defined in a table.:)


returning raw certificate instead of CertificateInstallationRes (base64encoded)

OCPP Version
OCPP1.6, OCPP2.0.1
Describe the bug
According to specification the OCPP should process CertificateInstallationReq and return CertificateInstallationRes (both base64 encoded). But this libocpp returns a raw certificate instead of the whole message CertificateInstallationRes. Are you going to fix this?
To Reproduce
No response
Anything else?
No response

This was not obvious to me. It works now. Thank for your help.


cli seems to ignore path mapping in tsconfig

Bug Report or Feature Request (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.1
node: 6.11.1
os: win32 x64
@angular/animations: 4.3.6
@angular/cdk: 2.0.0-beta.10
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/material: 2.0.0-beta.10
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.3.6
@angular/tsc-wrapped: 4.3.6
typescript: 2.5.2
also hapens in older versions
Repro steps.

create a external angular library and npm link it into you main project
add
 "paths": {       "@angular/*": [         "../node_modules/@angular/*"       ]     }
to tsconfig.app.json as documented in:
https://github.com/angular/angular-cli/blob/1156befb930faf6458040bb234d0b46b11dff21e/docs/documentation/stories/linked-library.md
run ng serve
the compile is successful, but the app wont load. When examining the source files webpack has included angular core twice, once from the main project's node modules and once form the linked library.
I've played with the pathing however nothing seems to take effect, even with an obviously incorrect path there are no errors. I would expect errors that the cli can't find angular is this setting is wrong
The log given by the failure.

Uncaught Error: Unexpected value 'AngularCoreModule' imported by the module 'AppModule'. Please add a @NgModule annotation.
at syntaxError (compiler.es5.js:1690)
at compiler.es5.js:15382
at Array.forEach ()
at<EMAIL_ADDRESS>(compiler.es5.js:15365)
at<EMAIL_ADDRESS>(compiler.es5.js:26795)
at<EMAIL_ADDRESS>(compiler.es5.js:26768)
at<EMAIL_ADDRESS>(compiler.es5.js:26697)
at<EMAIL_ADDRESS>(core.es5.js:4536)
at<EMAIL_ADDRESS>(core.es5.js:4522)
at Object.onDeviceReady (main.ts:21)
Desired functionality.

Mention any other details that might be useful.

This used to work before in an earlier version of angular and the cli though i cannot recall what those versions were.
if i map to a folder that is not in npm modules it works

I've tried a few more things:
I made my build script copy the package.json to the dist folder and then used npm link on that(so that it doesn't contain a node_modules folder. Webpack still finds the node_modules in the parent directory and uses that version of angular.
I then copied the dist folder to another hard drive and linked it and that works

I am having this issue now.
Using paths as part of the set up for this lib https://uxaspects.github.io/UXAspects/#/gettingstarted
"paths": {
      "ux-aspects": [
        "../node_modules/@ux-aspects/ux-aspects/dist/lib"
      ]
    }

Versions
@angular/cli: 1.3.0
node: 8.6.0
os: win32 x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/upgrade: 4.4.4
@angular/cli: 1.3.0
@angular/compiler-cli: 4.1.3

Same for me. And the solution above is more an hack. Can we re-open?


Add [WazirX wazirx.com] #exchange #memo-required GA6SXI…UFIMFF

Address: GA6SXIZIKLJHCZI2KEOBEUUOFMM4JUPPM2UTWX6STAWT25JWIEUFIMFF
Tags: exchange memo-required
Title: WazirX  Domain: wazirx.com
Requested by @dhoppus

1527135629 #memo #WazirX

Hello @dhoppus
You will need to contact wazirz.com support. Start at https://support.wazirx.com/hc/en-us
Stellar Expert is just a Stellar blockchain explorer and cannot change any kind of transactions made between different accounts/wallets.
They most likely need to know the transaction IDs in question. You can find this by clicking on the operation number to the left of the listing on Stellar Expert. You should also cut and paste the URL to make it easier for them to review.
Looking Towards The Future With You,
Rob

Hello @dhoppus,
Please feel free to reopen this issue if you feel there is new information about this issue.
Looking Towards The Future With You,
Rob

1527135629

Hello @dhoppus
That number is looks like a number needed in a memo to get funds into an account on the wazirc.com exchange. A transaction ID number from a Stellar blockchain account would look something like this: 38711ba9da1c0196cf75d758553a6877d3f403361d54a89af08555fe078d58d5
In fact the memo to<PHONE_NUMBER> seems to be a cross chain account not an individual account.
You will need to contact wazirx.com support. Start at https://support.wazirx.com/hc/en-us
Stellar Expert is just a Stellar blockchain explorer and cannot change any kind of transactions maxe between different accounts/wallets.
They most likely need to know the transaction IDs in question. You can find this by clicking on the operation number to the left of the listing on Stellar Expert. You should also cut and paste the URL to make it easier for them to review.
Looking Towards The Future With You,
Rob

Hello @dhoppus
Please feel free to reopen this issue if you feel there is new information about this issue.
Looking Towards The Future With You,
Rob


ML compute is stuck on restarting

I was trying to restart an Azure ML compute machine but it is now stuck on restarting with this message:
Provisioning error
The specified Azure ML Compute Instance XXX encountered an unusable node. Please try to restart the compute instance to recover. If it failed at creation time, please delete and try to recreate the compute instance. If the problem persists, please follow up with Azure Support.

I have tried running the commands using CLI to stop the compute machine but they're all failing.
$ az ml compute stop --name XXX --resource-group YYY --workspace-name ZZZ

When I try to list the nodes for this machine I get this message:
$ az ml compute list-nodes --name XXX --resource-group YYY --workspace-name ZZZ

"error": {
    "code": "UserError",
    "severity": null,
    "message": "ComputeListNodes with computeType ComputeInstance is not supported.",
    "messageFormat": null,
    "messageParameters": null,
    "referenceCode": null,
    "detailsUri": null,
    "target": null,
    "details": [],
    "innerError": null,
    "debugInfo": null,
    "additionalInfo": null
  }

And finally, when I try to show the values of the resource I get this information:
$ az ml compute show --name XXX --resource-group YYY --workspace-name ZZZ

"last_operation": {
    "operation_name": "Restart",
    "operation_status": "RestartFailed",
    "operation_time": "2021-12-20T13:23:20.457Z"
  }

So, what I understood is that this resource is stuck on the restarting state and the buttons in the portal are disabled due to it. Is there any way to recover from this state and get this machine back to work?

@64J0 Please help with the link of document on which above document feedback request is created.
Under this repository we want to make sure any issue is linked to a doc so we can help others that may be having the same issue.

Sorry, this is not related to any doc page specifically. I'm just seeking for help to solve this problem. Can you point me the right repository to send my issue then?

@64J0 You can report the issue from the ml.azure.com using the smiley icon on the top right corner. Please ensure to provide a screen shot from portal and check the box to contact you so the service team can check with you if they need more information. Thanks.


Replace Enr type with ethportal-api's Enr type

ethportal-api Enr re-exports Enr type from enr crate with the "serde" feature which is useful for Serializing/Deserializing.
Replace trin Enr type with ethportal-api's Enr, this includes removing this helper method:
https://github.com/ethereum/trin/blob/7c475988d20bfe2d3461b5bfe1b812647dea8d69/trin-history/src/jsonrpc.rs#L287

Blocked by https://github.com/sigp/discv5/issues/162


Issue when trying to search venv in windows powershell

I'm not sure what broke as it will still select cached venvs but not new venvs. Over the weekend I switched from Powershell 5 to 7. I tried it in both and the same error. It seems like its not properly handling \ in Windows but I don't see why it stopped when I haven't really changed the settings much since last week, and it was working a few days ago.
This could very well be a config issue on my part
I'm on Wezterm, Powershell  7.4.5, using lazyvim
my lockfile : "venv-selector.nvim": { "branch": "regexp", "commit": "4cf9fdebe3daca2b4459a275a123b2536fa60388" },,
plugin settings
  {
    "linux-cultist/venv-selector.nvim",
    branch = "regexp",
    cmd = "VenvSelect",
    enabled = function()
      return LazyVim.has("telescope.nvim")
    end,
    opts = {
      settings = {
        options = {
          notify_user_on_venv_activation = true,
        },
      },
    },
    ft = "python",
    keys = { { "<leader>cv", "<cmd>:VenvSelect<cr>", desc = "Select VirtualEnv", ft = "python" } },
  },

   Error  9:11:50 PM msg_show.lua_error   VenvSelect Error executing Lua callback: ...l/nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: Vim:Error executing Lua callback: Vim:E903: Process failed to start: no such file or directory: "C:/Program"
stack traceback:
	[C]: in function 'jobstart'
	...ata/lazy/venv-selector.nvim/lua/venv-selector/search.lua:122: in function 'start_search_job'
	...ata/lazy/venv-selector.nvim/lua/venv-selector/search.lua:194: in function 'run_search'
	...ata/lazy/venv-selector.nvim/lua/venv-selector/search.lua:212: in function 'New'
	...y/venv-selector.nvim/lua/venv-selector/user_commands.lua:11: in function <...y/venv-selector.nvim/lua/venv-selector/user_commands.lua:9>
	[C]: in function 'cmd'
	...l/nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: in function <...l/nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
stack traceback:
	[C]: in function 'cmd'
	...l/nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: in function <...l/nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
9:11:41 PM msg_showcmd A

If you could point me to the log files ill gladly share them but I cant seem to find them
 ./
├──  CONTRIBUTING.md
├──  LICENCE.md
├──  lua/
│   └──  venv-selector/
│       ├──  cached_venv.lua
│       ├──  config.lua
│       ├──  gui.lua
│       ├──  hooks.lua
│       ├──  init.lua
│       ├──  logger.lua
│       ├──  path.lua
│       ├──  search.lua
│       ├──  user_commands.lua
│       ├──  utils.lua
│       ├──  venv.lua
│       └──  workspace.lua
├──  README.md
├──  stylua.toml
└──  venvselect-2024.png
PS C:\Users\support\AppData\Local\nvim-data\lazy\venv-selector.nvim>

edit:
I also checked in the default windows cmd and I still get the same error.
edit 2:
I swapped to commit c43dc6bf8c7e7cf124a991775ed3defe87112d3a and I still get the error which leads me to believe there is something wrong somewhere with my setup....  I don't know where the C:/Program is being evaluated

You can try setting the option debug = true. It will give you a new command called :VenvSelectLog that you can run and see the log. Maybe it gives some more useful information. Its quite tricky with paths on windows since they are handled differently by different shells it seems.
You can also try the branch called windows_lua_table instead of regexp - it attempts to run windows searches without using any shell and may therefore avoid problems like the one you are getting. Ive only tested it on Powershell and CMD myself so far but it seems to work there.

Sure if I get time at work I'll give it a shot. Latest will be today 9pm EDT

The windows_lua_table branch is very temporary and wont exist for long - it will be merged into regexp when its ready. But you can try it and see if it works. It would be nice to hear if it makes a difference for you or not.

Debug didn't give me any more info than than noice did. However switching over to the  windows_lua_table did seem to fix the issues for venv-selector. Although I do think something changed either on windows or lazy because my BasedPyright is  in single file mode rather than having a workspace dir. Regardless this  specific issue resolved, Thanks for the help!! I'm not sure if I should close this issue; raising issues on here is a bit new to me.

You can enable debug, and then bring up venvselect, and then run :VenvSelectLog afterwards and you should see a full window with logs. :) The plugin logs hundreds of lines of info usually.
The single file mode is usually caused by your lsp (basedpyright) not finding a workspace folder. You may have opened neovim in a folder that doesnt have a git repository or some other way for basedpyright to know its a project folder for python? Then it will just run in single file mode, since its not aware of any other files. The windows_lua_table shouldnt change anything about that so I think maybe you just opened neovim in a different folder this time?
I will merge in the windows_lua_table branch now since I think it should improve things in general for windows users. But we can keep this issue open until you feel comfortable that the plugin is working correctly for you.

The plugin works; It was an issue with my lazy config vim.o.shell = "C:/Program Files/PowerShell/7/pwsh.exe" even running commands directly with :! didn't work.
The :VenvSelectLog  didn't  work as I placed it in the wrong place in the plugin... Sorry about that
As for the LSP issue, your right this plugin had nothing to do with it, I was more leaning towards it being a symptom of the same issue that was causing this plugin to not work as expected.  I hadn't init a repo for this specific  project. Again sorry about that, I didn't know that's how it was searching for the workspace, I assumed it was doing something similar with fd
I think  prior to your merge would be properly handling the vim.o.shell  value. For now I will symlink the folder and see if that works in my setup.
Regardless your merge definitely works for me
Thanks for your patience

Excellent. It's not so easy to know all this stuff about lsp and how it works. Took me a long time to even know what it does.
I'm happy the plugin works for you now. See you around. :)


Fix for the Register-PSSessionConfiguration command

PR Summary
Fix for the Register-PSSessionConfiguration command, as some tests were failing in: https://ci.appveyor.com/project/PowerShell/powershell-f975h
Probably because of changes in #6519
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] User-facing Documentation needed

[ ] Issue filed - Issue link:

Testing - New and feature

[ ] Not Applicable or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

[x] Add [feature] if the change is significant or affects feature tests

@kalgiz Could you please rebase to exclude 'Merge branch' commits?

@anmenaga  When I wrote the code it did.  I'm not sure everyone has maintained that.

I've looked up AppVeyor test results for Klaudia's commit [Feature] fix / 6191725 - which passed. This passed [Feature] test run seems to have run those tests that are failing in the Night build.

I'm a little confused.  The logic used to be:
if (([System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode]::Local.Equals($accessMode) -or
                    ([System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode]::Remote.Equals($accessMode)-and $disableNetworkExists)) -and
                   !$haveDisableACE)

Why has this changed?


Error creating project: [Errno 30] Read-only file system: '/Us'

Just following instructions! @josibake
Probably fixed by #500
Do you want to create a new project? [Y/n]:

Enter the project directory path [/Users/matthewzipkin/Desktop/work/warnet]: /Users/matthewzipkin/Desktop/qtwntest2

Do you want to create a custom network? [Y/n]:

Enter the network name: ugh

How many nodes would you like? [15]: 2

How many connections would you like each node to have? [8]: 1

Which version would you like nodes to be by default? (27.0, 26.0, 25.1, 24.2, 23.2, 22.2) [27.0]: 27.0

Creating project structure...
Error creating project: [Errno 30] Read-only file system: '/Us'
An error occurred while running the quick start script:

[Errno 30] Read-only file system: '/Us'

Please report this to https://github.com/bitcoin-dev-project/warnet/issues

What type of filesystem is this? It works just fine for me.
I don't think we can particularly control whether the user has some weird read-only filesystem (or at least, it's not productive for us to handle all such edge cases)

it's macOS, is it possible there is a string slicing issue happening? /Us is the first three characters of the path I tried to use

Does this still happen after #500 @pinheadmz ?


Catch-up merge

Is this PR intentional?

No. It was accidental when I was rebasing my branch with the origin branch. Not sure whether I can delete this...

Go ahead and close the PR. It won't affect your branch


Update supported Python versions

In addition to marking in setup.py the supported version, add also a note in the website.

It also supports (it is tested with) PyPy, if you want to be thorough.

Thanks!
(BTW I don't get notified if you update your PR, comment is needed)


adding Southern University A&M college

Southern University A&M college
https://www.sus.edu/
This is root email domain of my college, which is most students have.

@nagisettyramu I am sorry, the domain sus.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Updating paging-compose dep will cause lazy columns to start with loading state rather than empty state

LazyPagingItems now sets the initial loadState to have a LoadState.Loading refresh
https://developer.android.com/jetpack/androidx/releases/paging#1.0.0-alpha15
https://issuetracker.google.com/issues/224855902
We're stuck on alpha14 until we resolve this. Let's wait for stable release though.
See our renovate.json for rule to prevent renovate from auto-updating this

dupe #89


#16 Add PHP 8.2 x86 layers

Fixes #16
TODO:

[x] sodium is missing
[x] Add zip #24

See https://github.com/remicollet/remirepo/issues/206

ARM build fixed in #25


Google Assistant bug light

Hi,
I have a bug with the climate provided by the micronova plugin, when transmitting parameters to Google Home, the devices is view as climate but Google Assistant reply as is it a light and not as a climate, do you have any info about this ?
Thanks

Hi, I am not using Google Home. But this seems a bug in the Google Home sync/integration. A climate device is part of the Home Assistent core components. At least for Apple Homekit it works fine.
Do you maybe have some more information in the form of configuration snippets and/or screenshots?

Hi, I don't know where to find any logs related, the only params i did in my google_assistant.yaml is :
....
expose_by_default: false
report_state: true
....
climate.poele:
name: "Thermostat poele"
room: 'Thermostats'
expose: true
I had to put the climate in a separate room in my google home but when i said switch off all lights this climate device respond to yes ...

In your Google Home app you should be able to see all your devices. Does it show up as a climate/heating device there? If so, then everything is correct. If the voice assistant consistently turns if off together with the lights your best option is to somehow report a bug to Google.


I agree with you OP


Explore gdUnit4 as a replacement for GUT

I discovered this project which has a direct integration into the Godot editor: https://github.com/MikeSchulze/gdUnit4
It also has complete CI support and looks generally more light-weight to use compared to GUT.

I noticed that one too and it looked more interesting. It's just that Gut was already used for our project and working well so I didn't feel like changing for the sake of it.
But it's worth investigating for the 4.0 branch.


shapepcalib.py requires sklearn

sklearn is not packaged with Slicer. This causes ShapeVariationAnalyzer to fail to load.

Closing. Duplicate


Upgrade to Laravel 5.1

Good afternoon,
I've followed the guide for upgrading Laravel 5.0 to Laravel 5.1. In addition, I changed the composer.json to reflect your project's name (as opposed to laravel/laravel).

@chrisforrence thank you for this PR.


Update README.md

Properly close tags

Thanks for pointing this out, I didn't even notice it! Since I had already prepared a new release I merged this manually in the latest commit (0e21fb3eea4a80cc4ff0d3448c3821d318734b33) to avoid conflicts.


feat: add missing WithTop/WithBot lemmas and improve WithBot Nat proofs

Possibly there's more we could add, but I'll stick with these at the moment.
bors merge


[release-1.8] remove ipset local-pod-ip-nat

What type of this PR

Bug Fix

Use subnets-nat instead of local-pod-ip-nat to avoid frequent ipset update.

need to consider how to upgrade

need to consider how to upgrade

Updated. Now we clear the ipset instead of removing it.

need to make sure that if set member not changed, the AddOrReplaceIIPSet and ApplyUpdates function will not actually call ipset to make change


Trouble compiling libratbag on Ubuntu 18.04

Hey, sorry about this, I'm sure it's something I'm doing wrong.
When I run meson builddir --prefix=/usr/ it says the following:
bradley@bradley-Ubuntu:~/libratbag$ meson builddir --prefix=/usr/
The Meson build system
Version: 0.45.1
Source dir: /home/bradley/libratbag
Build dir: /home/bradley/libratbag/builddir
Build type: native build
Project name: libratbag
Native C compiler: cc (gcc 7.3.0 "cc (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Found pkg-config: /usr/bin/pkg-config (0.29.1)

meson.build:50:0: ERROR: Native dependency 'libudev' not found

A full log can be found at /home/bradley/libratbag/builddir/meson-logs/meson-log.txt

Based on the error, I thought In obviously must need to install libudev, so I entered sudo apt install libudev1 in a terminal but it states:
bradley@bradley-Ubuntu:~/libratbag$ sudo apt install libudev1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libudev1 is already the newest version (237-3ubuntu10).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

I tried following the instructions from here instead, but sudo systemctl enable ratbagd.service states Failed to enable unit: Unit file ratbagd.service does not exist.
Do you know what I'm doing wrong?

You need the development files. In debian based systems they are installed via the -dev package. Installing libudev1-dev should fix the this.

@BradleyDS2
Try install it from this repository:
https://launchpad.net/~trebelnik-stefina/+archive/ubuntu/ratbag-piper

I tried installing libudev1-dev but got the following:
bradley@bradley-Ubuntu:~/tmp$ sudo apt install libudev1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libudev1-dev

I added the repository muzena linked, but attempting to install libratbag ends with the following result:
bradley@bradley-Ubuntu:~/tmp$ sudo apt install libratbag
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libratbag
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 705 kB of archives.
After this operation, 1,666 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/trebelnik-stefina/ratbag-piper/ubuntu bionic/main amd64 libratbag amd64 0.9.902.5~bionic [705 kB]
Fetched 705 kB in 1min 9s (10.3 kB/s)
Selecting previously unselected package libratbag.
(Reading database ... 189501 files and directories currently installed.)
Preparing to unpack .../libratbag_0.9.902.5~bionic_amd64.deb ...
Unpacking libratbag (0.9.902.5~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/lur-command', which is also in package libratbag-tools 0.9-4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@BradleyDS2
I tested this repository in ubuntu 18.04 and Linux Mint 19 and it works.
I think, there is some package conflict:
trying to overwrite '/usr/bin/lur-command', which is also in package libratbag-tools 0.9-4Remove this package "libratbag-tools" and all "libratbag" packages and try then install.

Sorry for the silly question, but how should I go about doing that?
I tried purging "libratbag-tools" and "libratbag" but it didn't work.
bradley@bradley-Ubuntu:~$ sudo apt purge libratbag-tools
[sudo] password for bradley:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 piper : Depends: libratbag but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
bradley@bradley-Ubuntu:~$ sudo apt purge libratbag
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libratbag' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 piper : Depends: libratbag but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
bradley@bradley-Ubuntu:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libratbag
The following NEW packages will be installed:
  libratbag
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
Need to get 0 B/705 kB of archives.
After this operation, 1,666 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 189723 files and directories currently installed.)
Preparing to unpack .../libratbag_0.9.902.5~bionic_amd64.deb ...
Unpacking libratbag (0.9.902.5~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/lur-command', which is also in package libratbag-tools 0.9-4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sorry, I know I'm doing something wrong, but unsure what it is.

I removed the  https://launchpad.net/%7Etrebelnik-stefina/+archive/ubuntu/ratbag-piper repository and was then able to sudo apt --fix-broken install which removed the piper package then I ran sudo apt purge libratbag-common libratbag-dev libratbag-doc libratbag-tools libratbag4 added the   https://launchpad.net/%7Etrebelnik-stefina/+archive/ubuntu/ratbag-piper repository again, ran sudo apt update and sudo apt install libratbag but it gave the following output
bradley@bradley-Ubuntu:~$ sudo apt install libratbag
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-mathjax javascript-common libjs-bootstrap libjs-jquery libjs-mathjax
  liblur3 python3-bs4 python3-evdev python3-html5lib python3-lxml
  python3-webencodings
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libratbag
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/705 kB of archives.
After this operation, 1,666 kB of additional disk space will be used.
(Reading database ... 189521 files and directories currently installed.)
Preparing to unpack .../libratbag_0.9.902.5~bionic_amd64.deb ...
Unpacking libratbag (0.9.902.5~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/liblur.so.3.0.3', which is also in package liblur3:amd64 0.9-4
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libratbag_0.9.902.5~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How should I remove liblur3:amd64 0.9-4?

I tried building and running piper but the result is the following:
bradley@bradley-Ubuntu:~/piper$ meson builddir --prefix=/usr/
The Meson build system
Version: 0.45.1
Source dir: /home/bradley/piper
Build dir: /home/bradley/piper/builddir
Build type: native build
WARNING: Newline character in a string detected, use ''' (three single quotes) for multiline strings instead.
This will become a hard error in a future Meson release. config_piper_devel.set('devel', ' 43 32
Project name: piper
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency python3 found: YES 3.6
Native dependency pygobject-3.0 found: YES 3.26.1
Configuring AboutDialog.ui using configuration
Native dependency glib-2.0 found: YES 2.56.1
Message: Getting Python3 install dir
Configuring piper using configuration
Configuring piper.devel using configuration
Program meson_install.sh found: YES (/usr/bin/env sh /home/bradley/piper/meson_install.sh)
Build targets in project: 4
Found ninja-1.8.2 at /usr/bin/ninja
bradley@bradley-Ubuntu:~/piper$ $ ninja -C builddir
$: command not found
bradley@bradley-Ubuntu:~/piper$ ninja -C builddir
ninja: Entering directory `builddir'
[1/1] Generating piper_gresource with a custom command.
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
bradley@bradley-Ubuntu:~/piper$ sudo ninja -C builddir install
ninja: Entering directory `builddir'
[0/1] Installing files.
Installing subdir /home/bradley/piper/piper to /usr/lib/python3.6/site-packages/piper
Installing data/piper.gresource to /usr/share/piper/piper.gresource
Installing /home/bradley/piper/data/org.freedesktop.Piper.desktop to /usr/share/applications
Installing /home/bradley/piper/data/org.freedesktop.Piper.svg to /usr/share/icons/hicolor/scalable/apps
Installing /home/bradley/piper/builddir/piper to /usr/bin
Running custom install script '/usr/bin/python3 /usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=piper'
Installing /home/bradley/piper/builddir/po/de.gmo to /usr/share/locale/de/LC_MESSAGES/piper.mo
Installing /home/bradley/piper/builddir/po/hr.gmo to /usr/share/locale/hr/LC_MESSAGES/piper.mo
Installing /home/bradley/piper/builddir/po/nl.gmo to /usr/share/locale/nl/LC_MESSAGES/piper.mo
Installing /home/bradley/piper/builddir/po/pl.gmo to /usr/share/locale/pl/LC_MESSAGES/piper.mo
Installing /home/bradley/piper/builddir/po/sv.gmo to /usr/share/locale/sv/LC_MESSAGES/piper.mo
Running custom install script '/usr/bin/env sh /home/bradley/piper/meson_install.sh'
gtk-update-icon-cache: Cache file created successfully.
bradley@bradley-Ubuntu:~/piper$ python '/home/bradley/piper/builddir/piper'
  File "/home/bradley/piper/builddir/piper", line 12
    print("Version of GTK is too old, 3.22 required", file=sys.stderr)
                                                          ^
SyntaxError: invalid syntax
bradley@bradley-Ubuntu:~/piper$ python3 '/home/bradley/piper/builddir/piper'
Traceback (most recent call last):
  File "/home/bradley/piper/builddir/piper", line 36, in <module>
    from piper.application import Application
ModuleNotFoundError: No module named 'piper'

Trying to run the piper file directly also opens it in gedit even though it's marked to allow as executing as a program.

E: Unable to locate package libudev1-dev
libudev is a special case because it got absorbed by systemd years ago. so try a package systemd-devel or something like that.  You should also be able to use apt-file search --package-only libudev.pc to find which package the file belongs to (google more for apt-file usage, I don't use .deb distros)
print("Version of GTK is too old, 3.22 required", file=sys.stderr): you were trying to run with python 2.x, just execute the file directly as path/to/piper. Do not prefix python scripts manually, it usually causes troubles.
If you want to run directly from the builddir, use piper.devel, not piper, that will set up the module paths correctly  to avoid that issue. Otherwise, run it from the installed location instead

Thanks, Whot.
Your advice resulted in the installation of libudev-dev, libevdev-dev, libsystemd-dev, libglib-2.0-dev, check, valgrind, swig as results of following the processes described by this conversation.
After that, I stopped getting errors:
`The Meson build system
Version: 0.45.1
Source dir: /home/smelly/Downloads/libratbag
Build dir: /home/smelly/Downloads/libratbag/builddir
Build type: native build
Project name: libratbag
Native C compiler: cc (gcc 7.3.0 "cc (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency libudev found: YES 237
Native dependency libevdev found: YES 1.5.8
Native dependency libsystemd found: YES 237
Native dependency systemd found: YES 237
Native dependency glib-2.0 found: YES 2.56.1
Library m found: YES
Configuring libratbag-version.h using configuration
Configuring lur-command.1 using configuration
Program /home/smelly/Downloads/libratbag/data/devices/data-parse-test.py found: YES (/home/smelly/Downloads/libratbag/data/devices/data-parse-test.py)
Program data/gnome/check-svg.py found: YES (/home/smelly/Downloads/libratbag/data/gnome/check-svg.py)
Native dependency check found: YES 0.10.0
Program valgrind found: YES (/usr/bin/valgrind)
Configuring org.freedesktop.ratbag_devel1.conf using configuration
Message:
systemd unitdir libdir mismatch detected, changing unitdir to
/lib/systemd/system
or specify with
mesonconf -Dsystemd-unit-dir=
	See https://github.com/libratbag/libratbag/issues/188

Configuring ratbagd.service using configuration
Configuring org.freedesktop.ratbag1.service using configuration
Configuring org.freedesktop.ratbag1.conf using configuration
Configuring ratbagctl.1 using configuration
Configuring ratbagctl.devel using configuration
Configuring ratbagctl.test using configuration
Program /home/smelly/Downloads/libratbag/builddir/ratbagctl.test found: YES (/home/smelly/Downloads/libratbag/builddir/ratbagctl.test)
Configuring toolbox.py using configuration
Configuring config.h using configuration
Program swig found: YES (/usr/bin/swig)
Native dependency python3 found: YES 3.7
Build targets in project: 22
Found ninja-1.8.2 at /usr/bin/ninja`
This is my second day in Linux and I seem not to understand the next step.  I am trying to follow this by running sudo ratbagd but am told there is no such command.  Tried the same after cd'ing into the directory which contains ratbagd.c but same result.
Are there steps in between I was supposed to know?  I'm assuming the console output I posted was what we wanted to see from the Meson build.

@adamlaughlin, you have built the project, now you need to install it.
sudo ninja install

After that you may want to activate the daemon service (ratbagd). This way you don't have to manually run ratbagd everytime you start the computer.
sudo systemctl enable ratbagd
sudo systemctl start ratbagd

After that everything should work normally. If you need help with anything else you can reach out to me, my email is in my profile.

Awesome, thanks for all the help.
Just need help with (hopefully) one last thing.
When I try opening Piper from the application list, nothing happens. When I try running it from the terminal, I get the following error:
bradley@bradley-Ubuntu:~$ piper
Traceback (most recent call last):
  File "/usr/bin/piper", line 36, in <module>
    from piper.application import Application
ModuleNotFoundError: No module named 'piper'

If I CD into the build directory though, I'm able to successfully run piper.devel and set up my mouse there, but ideally I'd like to be able to start it directly, rather than cding into the build directory and running piper.devel every time.
Thank you :)

This may be https://github.com/libratbag/piper/issues/209#issuecomment-383451686

Ah, okay. Shame it can't be fixed, but I guess that all my issues have been resolved. Thank you :)

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Is it possible to install this on a darwin(macOS 10.15) based system? There is no homebrew/macos version of the packages you said above. Am I out of luck?

I could maybe be with some work, but right now we depend on some Linux specific APIs.

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Thanks, this helped me!

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Thanks, this helped me!

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Found CMake: /usr/bin/cmake (3.13.4)
Dependency python-3.7 found: NO (tried pkgconfig and cmake)
Dependency python3 found: NO (tried pkgconfig)

meson.build:572:4: ERROR:  Dependency "python3" not found, tried pkgconfig

It doesn't help me(

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Found CMake: /usr/bin/cmake (3.13.4)
Dependency python-3.7 found: NO (tried pkgconfig and cmake)
Dependency python3 found: NO (tried pkgconfig)

meson.build:572:4: ERROR:  Dependency "python3" not found, tried pkgconfig

It doesn't help me(

@Vovchikan are you on Ubuntu 20.04? It comes with Python 3 built-in, so that's quite unexpected. You could install Python3 I suppose.

@Vovchikan are you on Ubuntu 20.04? It comes with Python 3 built-in, so that's quite unexpected. You could install Python3 I suppose.

@Vovchikan are you on Ubuntu 20.04? It comes with Python 3 built-in, so that's quite unexpected. You could install Python3 I suppose.

I have Python 2.7.16 and Python 3.7.3. Both of them I can run in terminal with commands python and python3.

@Vovchikan are you on Ubuntu 20.04? It comes with Python 3 built-in, so that's quite unexpected. You could install Python3 I suppose.

I have Python 2.7.16 and Python 3.7.3. Both of them I can run in terminal with commands python and python3.

I'm not sure, seems like a meson issue to me more than libratbag related.

I'm not sure, seems like a meson issue to me more than libratbag related.

@Vovchikan
Try to install from PPA, see wiki.

@Vovchikan
Try to install from PPA, see wiki.

For future generations who want to compile on Ubuntu 20, I had to install the following packages:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig

Thanks. Install the python3-dev package if meson complains about missing the python3-embed dependency.

Everything I know about this Library is this:
sudo apt install cmake libudev-dev libevdev-dev libsystemd-dev libglib2.0-dev libjson-glib-dev libunistring-dev check valgrind swig
sudo apt install libjson-glib-dev sudo apt install libunistring-dev sudo apt install python-gi-dev sudo apt install libsystemd-dev sudo apt install python3.8-dev sudo apt install python3.8-full sudo apt install swig sudo apt install check
sudo cp dbus/org.freedesktop.ratbag1.conf /etc/dbus-1/system.d/org.freedesktop.ratbag1.conf
sudo cp builddir/org.freedesktop.ratbag1.service /etc/dbus-1/system-services/org.freedesktop.ratbag1.conf
sudo cp builddir/ratbagd.service /etc/systemd/system/ratbagd.service

as @sealvessel noted, as of now there is no macos solution for this.
please inform me if this is no longer the case (and we are able to build it on macos)

my specific problem is I don't know what package will give me libudev


[opencv4] Building package opencv4:x64-windows failed with: BUILD_FAILED

.\vcpkg install darknet[full]:x64-windows --recurse
Computing installation plan...
The following packages will be rebuilt:
    darknet[core,cuda,cudnn,full,opencv-base,opencv-cuda,weights,weights-train]:x64-windows
  * opencv[core,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
  * opencv4[contrib,core,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/6: darknet:x64-windows
Removing package darknet:x64-windows...
Removing package darknet:x64-windows... done
Elapsed time for package darknet:x64-windows: 475.2 ms
Starting package 2/6: opencv:x64-windows
Removing package opencv:x64-windows...
Removing package opencv:x64-windows... done
Elapsed time for package opencv:x64-windows: 98.37 ms
Starting package 3/6: opencv4:x64-windows
Removing package opencv4:x64-windows...
Removing package opencv4:x64-windows... done
Elapsed time for package opencv4:x64-windows: 322.4 ms
Detecting compiler hash for triplet x64-windows...
Starting package 4/6: opencv4:x64-windows
Building package opencv4[contrib,core,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows...
Could not locate cached archive: C:\Users\user09\AppData\Local\vcpkg\archives\fa\fa950b3e8a87c2e59b323fff90c1bee1605be848.zip
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-opencv-4.3.0.tar.gz
-- Cleaning sources at C:/Users/user09/Desktop/project/vcpkg/buildtrees/opencv4/src/4.3.0-0c6047baf6.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-opencv-4.3.0.tar.gz
-- Applying patch 0001-disable-downloading.patch
-- Applying patch 0002-install-options.patch
-- Applying patch 0003-force-package-requirements.patch
-- Applying patch 0004-fix-policy-CMP0057.patch
-- Applying patch 0009-fix-uwp.patch
-- Using source at C:/Users/user09/Desktop/project/vcpkg/buildtrees/opencv4/src/4.3.0-0c6047baf6.clean
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/nvidia_optical_flow/ca5acedee6cb45d0ec610a6732de5c15-79c6cee80a2df9a196f20afd6b598a9810964c32.zip
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-opencv_contrib-4.3.0.tar.gz
-- Cleaning sources at C:/Users/user09/Desktop/project/vcpkg/buildtrees/opencv4/src/4.3.0-795a2a992f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-opencv_contrib-4.3.0.tar.gz
-- Applying patch 0005-add-missing-stdexcept-include.patch
-- Using source at C:/Users/user09/Desktop/project/vcpkg/buildtrees/opencv4/src/4.3.0-795a2a992f.clean
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/0ea90e7a8f3f7876d450e4149c97c74f-boostdesc_bgm.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/232c966b13651bd0e46a1497b0852191-boostdesc_bgm_bi.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/324426a24fa56ad9c5b8e3e0b3e5303e-boostdesc_bgm_hd.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/202e1b3e9fec871b04da31f7f016679f-boostdesc_binboost_064.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/98ea99d399965c03d555cef3ea502a0b-boostdesc_binboost_128.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/e6dcfa9f647779eb1ce446a8d759b6ea-boostdesc_binboost_256.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/boostdesc/0ae0675534aa318d9668f2a179c2a052-boostdesc_lbgm.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/vgg/e8d0dcd54d1bcfdc29203d011a797179-vgg_generated_48.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/vgg/7126a5d9a8884ebca5aea5d63d677225-vgg_generated_64.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/vgg/7cd47228edec52b6d82f46511af325c5-vgg_generated_80.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/xfeatures2d/vgg/151805e03568c9f490a5e3a872777b75-vgg_generated_120.i
-- Using cached C:/Users/user09/Desktop/project/vcpkg/downloads/opencv-cache/data/7505c44ca4eb54b4ab1e4777cb96ac05-face_landmark_model.dat
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:141 (message):
    Command failed: C:/Users/user09/Desktop/project/vcpkg/downloads/tools/cmake-3.17.2-windows/cmake-3.17.2-win32-x86/bin/cmake.exe --build . --config Debug --target install -- -v
    Working Directory: C:/Users/user09/Desktop/project/vcpkg/buildtrees/opencv4/x64-windows-dbg
    See logs for more information:
      C:\Users\user09\Desktop\project\vcpkg\buildtrees\opencv4\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/opencv4/portfile.cmake:371 (vcpkg_install_cmake)
  scripts/ports.cmake:79 (include)

Error: Building package opencv4:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: opencv4:x64-windows
  Vcpkg version: 2020.06.15-nohash

Here is the install-x64-windows-dbg-out.log

@cenit Does this issue will be fixed in your PR?

the error is related to CUDNN_CONVOLUTION_BWD_DATA_PREFER_FASTEST
Looks like @limwenyao has cudnn8, which is not compatible with OpenCV 4.3
It requires OpenCV 4.4, which requires other PRs still pending here (I will not submit it before those are merged)

Rolling back the CUDA version from 11 to 10.1 solved for me.
Previously I was facing the same errors as you all. Checking the logs I figured out it was an error "compute_30" support removed from CUDA11 (even with my GPU being GF 1070 - compute_61). After fully removing v11 and installing v10.1 it stopped breaking the build.
I hope this helps you guys :)

Rolling back the CUDA version from 11 to 10.1 solved for me.
Previously I was facing the same errors as you all. Checking the logs I figured out it was an error "compute_30" support removed from CUDA11 (even with my GPU being GF 1070 - compute_61). After fully removing v11 and installing v10.1 it stopped breaking the build.
I hope this helps you guys :)


GSRN should not be a ulong

Maybe a string? Discuss with Paul

GSRN has be substituted for AssetID : string


Looks good


Redesigning of Header and Including Navbar

Problem
To increase user experience, I feel the the topics medium and languages should be Navbar elements with a dropdown
As well as the logo and Name should be a header component
Description
Here I used css to style the header and navbar and made few changes. when user hovers on the The topics or medium or languages section the dropdown menu will appear.
Implementation

[x] I would be interested in implementing this feature.
Before :

I Improved it and here is After View
After :

https://user-images.githubusercontent.com/65482186/226562250-18bc6d5d-51b5-4984-b4d8-c3ab99e47ef0.mp4

Hi and thanks for this contribution! But I believe this Issue covers items already mentioned in:

#30
#90
#23
possibly #48

Closing as duplicated efforts. I'd suggest moving your conversation to one of the mentioned Issues here instead.


pipenv --system and --deploy for docker

I use pipenv for my django app.
$ mkdir djangoapp && cd djangoapp
$ pipenv install django==2.1
$ pipenv shell
(djangoapp) $ django-admin startproject example_project .
(djangoapp) $ python manage.py runserver

Now i am shifting to docker environment.
As per my understanding pipenv only installs packages inside a virtualenv
You don't need a virtual env inside a container, docket container IS a virtual environment in itself.
Later after going through many Dockerfile 's i found --system option to install in the system.
For example the following i found:
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
COPY ./Pipfile /usr/src/app/Pipfile
RUN pipenv install --skip-lock --system --dev

https://hub.docker.com/r/kennethreitz/pipenv/dockerfile
# -- Install dependencies:
ONBUILD RUN set -ex && pipenv install --deploy --system

https://wsvincent.com/beginners-guide-to-docker/
# Set work directory
WORKDIR /code

# Copy Pipfile
COPY Pipfile /code

# Install dependencies
RUN pip install pipenv
RUN pipenv install --system

So --system is only sufficient or --deploy --system is better way. And  --skip-lock --system --dev which is different again.
So can some one guide how to get my environment back in my Docker

@sant527 When you want to duplicate the environment from existing Pipfile/Pipfile.lock, --deploy is always recommended.
--skip-lock will skip the locking stage so it isn't so recommended when you are deploying things, which should install from Pipfile.lock.
Find more explanations in Pipenv's doc.

Then what about --system. Is --system option mainly used only in docker or vagrant or its used on the developement also

@sant527 Pipenv will install deps to system-wide python site packages instead of virtualenv. Whether or not to use it in your case depends. The option doesn't suggest a use pattern itself, but from my personal preference, I would recommend you use it only when deploying in an isolated environment, such as a docker container.
Closing it for now, hope that is clear enough.


Implemented Signup, Login, and OTP Pages

Created the Signup, Login, and OTP pages as per the specifications mentioned in the Figma design.
The OTP page can be accessed at the route: /otppage

Hi @Devamani11D ,
I have now done the changes as per requirement.
Thank You!

Hi @NidhiJain08,
Thank you for your prompt work on this issue. I appreciate your dedication to the project.
I have reviewed your work, and I'm pleased to inform you that I have merged your pull request. Your changes looks fantastic, and it aligns perfectly with the project's design and usability goals. Great job!
If you have any more contributions or if there's anything else you'd like to work on in the future, please don't hesitate to let us know. Your efforts are valuable to the project's success.
Once again, thank you for your contribution! ❤

Hi @ajaynegi45 ,
Thank you for the merging the request, I am glad that you liked the changes.
Thanks again for giving me the opportunity.


[WIP] Allow per project access for anonymous and logged-in users

Closes #99
See also https://github.com/QutBioacoustics/baw-server/wiki/Permissions

I think it will be prudent to squash these commits before we do the final merge.

The commit https://github.com/QutBioacoustics/baw-server/pull/265/commits/0f183da545ad798db2fa4c582db119b5841153e9 is the one to test on staging...

@cofiem - we did a review of the changes. They seem to work well. Lots of positive feedback.
There were some design comments. I've written up the notes. There's a little bit of work to be done around naming and word choices. See https://github.com/QutBioacoustics/Ecoacoustics/blob/master/Design documents/Permissions Feedback.md

Changes Unknown when pulling fefc5e1b2f98995cd54a0a4b8906980e1d4c12ed on feature-allow-anon-2016 into ** on develop**.

Commits squashed, and develop merged in. This branch is ready to be merged with develop.

Coverage decreased (-1.7%) to 84.499% when pulling 7069de4ce8e3398136e43f8d97931390517b2068 on feature-allow-anon-2016 into e839fadf09066ccc4f9e624fa5a12bfbaac8ae52 on develop.

Woot! :rocket:


single page simple example?

would be good if there was an example of using this on a single static html page.
without the overhead of the http-requests/server/api.
im sure i can get your example working if i spin up an express server.
but getting libraries to play nicely with just a http node server is not fun.
and your example even has another layer of abstraction with the template engine.
Your example needs to retrieve the json from the server.
these things make it more complex for someone not versed in these libraries (but with a good use case) to bootstrap.
since one of the goals of the library is to be able to use on static pages,
it would be good to just be able to include the library script and use it as is.
it sounds like you can, but theres not an example for this.
the example is more complex with the server, require, json, templates.

Would be totally reasonable to include something in the documentation, but in the meantime I used this guide for integrating it into a static site and it worked great for me.
https://www.belter.io/eleventy-search/


Correct way to inject DateTime ?

If I do something like
DateTime::class=>DI\Object(\DateTime::class)
My\Toolbox::class=>DI\Object()
                ->constructor(DI\Link('DateTime'))

I get
cannot be resolved: Entry DateTime cannot be resolved: The parameter 'time' of DateTime::__construct has no type defined or guessable. It has a default value, but the default value can't be read through Reflection because it is a PHP internal class.

The error tells you that you need to define the time parameter, e.g.
DateTime::class=>DI\Object(\DateTime::class)
                ->constructor('now')

However I highly recommend against configuring DateTime in the container as it's not a service. If it's a configuration value, you might be better doing something like this:
'default.date.for.something' => new DateTime('now')

or use a factory.


fix(remix-dev): apply suggested and mandatory tsconfig when values are missing

Add some tsconfig (and jsconfig) compilerOptions, some of these are required by esbuild, others are our options from our existing templates. Being that our tsconfig resolver walks the fs, i have the baseUrl resolving from that

Signed-off-by: Logan McAnsh<EMAIL_ADDRESS>

Could we potentially set it to their app dir if it's not set? Or is it better to just alert about the misconfiguration?

Could we potentially set it to their app dir if it's not set? Or is it better to just alert about the misconfiguration?

for sure, I was going back on forth on it

gonna implement this tomorrow, do we want to suggest/enforce any other compilerOptions? maybe the config from our templates?

main goal for the PR is done, but going to also check for the required tsconfig settings for esbuild

👌

only downside, is the build is now "slow" as it has check for these settings, I'll look at just doing the check "remix dev"

actually, idk why that shows it being so slow, i'm seeing it a consistent ~520ms

What's the watch rebuild time like? We're not rechecking every build are we? 500ms for initial boot is ok, but I wouldn't want it to be that slow for iterative builds during dev.

What's the watch rebuild time like? We're not rechecking every build are we? 500ms for initial boot is ok, but I wouldn't want it to be that slow for iterative builds during dev.

in the playground the rebuild time is almost identical, but we should be able to do a one time check

added some logging to make sure things were getting recalled, and looks like the loadSync is only happening once for the initial dev build

How does this impact the monorepo story?

How does this impact the monorepo story?

not a ton if any, but the original reason for the PR was that tsconfig-paths which we use for path aliases doesn't work (and doesn't tell you why) if there isn't a baseUrl set

How does this impact the monorepo story?

like any monorepo? or ours? the original reason for the PR was that tsconfig-paths which we use for path aliases doesn't work (and doesn't tell you why) if there isn't a baseUrl set

I'm just really hesitant to auto-update someone's tsconfig for them. react-scripts does this and it's super annoying if you have a good reason for making the config the way it is. I probably don't understand the problem this is solving well enough to comfortably review/merge.

totally fair, this PR started as just surfacing the missing baseUrl

Alright. Let's go for it.

How does this impact the monorepo story?

Hi @kentcdodds and @mcansh, this change does introduce a problem for nx monorepo where paths should on be extended from the top-level tsconfig.base.json. The change to force add paths to app tsconfig file breaks remix apps in an nx monorepo.

@evan-liu there's a nightly linked in https://github.com/remix-run/remix/pull/2961 you can try which properly uses the extended config

I will try thanks @mcansh


Enable and disable plugins on specific groups

Many plugins may be annoying on some groups that need less messages, so you may want to disable them only on some groups and keep them enabled on others.
Enable and disable for specifi groups would allow an admin to do so.

Fixed in ba60b1a.


Conduct comprehensive data analysis and apply modeling techniques as needed

Perform detailed data analysis and use statistical or machine learning models.

done


Scary warning message when uploading a file

When uploading a file, I get a scary warning message
Slack Message

Duplicate https://github.com/civiform/civiform/issues/8487


Update: update-daemon-set.md

Signed-off by: Md Sahil<EMAIL_ADDRESS>What type of PR is this ?
Documentation improvement.
What this PR does/Why we need it :
Which issue(s) this PR fixes?
fixes #31311 .

Hi @MdSahil-oss
https://github.com/kubernetes/website/pull/31345#issuecomment-1013250753 explains why we can't accept this PR right now - commit messages must not include text that would trigger GitHub to automatically close an issue.
Could you reword that and force-push your changes?

Hey! @sftim i have corrected my mistake in commit message. which was being refrenced by #31345 (comment) .


Translating "Found plain text ..." or "Found product ..." etc

I was not able to reopen #514 so I made new one following your template as you wished:
Expected Behaviour
able to translate texts displayed to user like "Found plain text ..." or "Found product ..."
Actual Behaviour
did not found the way to translate those texts
Reproduce Scenario (including but not limited to)
Common plugin usage
Steps to Reproduce

use the plugin
scan valid code
English text displayed "Found plain text ..." or "Found product ..." etc..

Platform and Version (eg. Android 5.0 or iOS 9.2.1)
All platforms, all versions affected
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
All vendors
Cordova CLI version and cordova platform version
cordova all versions
cordova all platforms

Plugin version
all versions

Sample Code that illustrates the problem
not needed, basic example is OK

Logs taken while reproducing problem
no logs needed, issue is obvious

I did not know how to better fill the template, I am really sorry about that.

did you find any solution for this?

@nicks258 no, I left it untranslated :/

The sad thing is that I cannot even find it in the code to make a PR, so it must be some kind of library.

Hello , do you have any solution?

Hello , do you have any solution?

Nope :/


Router middle wear applied even if no routes are matched

I create a router, add some router-specific middle-ware, and then add some routes to that router.
When mounting this router in an app, the middle wear kicks, even if none of the routes are matches (only it seems, when no global routes are matched).
Here was someone's half-done patch to try fix this behavior: https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/pcwt41gt.png

Can you provide an example of how you're mounting the router and middleware? This was a bug that was fixed in previous versions of koa-router.

Imagine we want a me.js router that ensures that a user is logged in for every route defined on that router because every route is scoped to this.currentUser (the logged in user):

////////////////////////////////////////////////////////////
// routes/me.js
////////////////////////////////////////////////////////////

var router = new require('koa-router')();

router.use(function*(next) {
  console.log('logged from /me router');
  yield next;
});

// Ensure user is logged in for all routes in this router
router.use(function*(next) {
  this.assert(this.currentUser, 403);
  yield next;
});

router.get('/me/topics', function*() {
  var topics = yield db.findTopicsForUser(this.currentUser.id);
  this.body = topics;
});

router.get('/me/subscriptions', function*() {
  var subs = yield db.findSubscriptionsForUser(this.currentUser.id);
  this.body = subs;
});

module.exports = router;

////////////////////////////////////////////////////////////
// server.js
////////////////////////////////////////////////////////////

app.use(require('./routes/me').routes());

That router will apply its middleware even if the request doesn't hit any of its routes:
> curl http://localhost:3000/this-will-404
<-- GET /this-will-404
logged from /me router
--> GET /this-will-404 404

I guess the real question here is: is this intentional? Perhaps I'm just misusing the library.
And the ultimate question then is: how can we define router-specific middleware?
Currently, routers always apply their middleware even if the request doesn't hit any of their routes, as seen in OP's screenshot.

@dobry-den Have you tried mounting the router at /me using koa-mount? That might help.

This is intentional but counter-intuitive. Router.use(middleware) is essentially sugar for compose([middleware, router.routes()]). I agree it would be intuitive to have Router.use() only run given middleware if it matches one of that router's routes.

@nicholaswyoung Yes, but I found that mounting is most useful when you're mounting to some /segment that your router doesn't care about. A good example of this is /v1, /v2, etc. segments for your API so that you can write versioned routers that don't need to know which version they are.
For a segment that doesn't change, like my /me example, I found that mounting doesn't offer anything since your router does need to distinguish between /me/things (an endpoint scoped to the current user) vs /things (a public endpoint). In other words, I found that when I'm writing a router under the assumption that it will be mounted to a specific segment, then I probably should reconsider whether I should be mounting the router at all.
Perhaps hard to explain without examples. Like you guys, I'm still experimenting and trying to arrive at the best and most general patterns for my Koa apps.
@alexmingoia Thanks for being open to the idea. I only have brief experience with Express4, but I found its router to be intuitive while allowing behavior that I describe. Sounds like koa-router 5.0.0 will be Koa's answer to the problem.
Killer work, man. I'm glad the Koa ecosystem has people like you and your project's contributors.

I'm very sorry for the miscommunication but I forgot this was already fixed. 4.2.0 and above only apply router middleware if a route matches, as it should.


Remove 'api' from urls and other small changes

Remove 'api' from urls, use sandbox url as the default for the examples, correct the metadata for the documentation, and more.
Fixes #77
Fixes #74

Looks like it also includes some work on #73

@Gidgidonihah : I made the changes you recommended


Rename packages and update build.gradle

Codecov Report

Merging #53 (740a974) into master (590b95b) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #53      +/-   ##
============================================
+ Coverage     72.15%   72.18%   +0.02%
  Complexity      399      399
============================================
  Files            70       70
  Lines          1232     1233       +1
  Branches        125      125
============================================
+ Hits            889      890       +1
  Misses          311      311
  Partials         32       32

Impacted Files
Coverage Δ

src/main/java/tracko/AppParameters.java
75.00% <ø> (ø)

src/main/java/tracko/Main.java
0.00% <ø> (ø)

src/main/java/tracko/MainApp.java
0.00% <ø> (ø)

src/main/java/tracko/commons/core/Config.java
68.18% <ø> (ø)

src/main/java/tracko/commons/core/GuiSettings.java
69.23% <ø> (ø)

src/main/java/tracko/commons/core/LogsCenter.java
78.37% <ø> (ø)

src/main/java/tracko/commons/core/Messages.java
0.00% <ø> (ø)

src/main/java/tracko/commons/core/Version.java
82.50% <ø> (ø)

src/main/java/tracko/commons/core/index/Index.java
100.00% <ø> (ø)

...ko/commons/exceptions/DataConversionException.java
100.00% <ø> (ø)

... and 60 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Obfuscates organization on purpose.

organization_id defaults to 9 (Other)
organization_id still persisted
New users only see "Organization" free form text field which is bound to "Other" (id=9)

@DanielJMaher @FBRTMaka May the programming gods forgive these changes.
Please review and test.  Changes performed per Dan's direction after OOI feedback.

@FBRTMaka i know that these changes are silly, but the customer wanted it for some reason


[GHSA-9c47-m6qq-7p4h] Prototype Pollution in JSON5 via Parse Method

Updates

Affected products

Comments
According to this, it looks like it is also fixed in v1.0.2?
https://github.com/json5/json5/releases/tag/v1.0.2

Hi there @jdgregson and @jordanbtucker! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our highly-trained Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

Hi @burdeasa, thank you for your interest in updating the advisory, but this contribution is a duplicate of https://github.com/github/advisory-database/pull/1541.


python312Packages.marshmallow-dataclass: 8.7.0 -> 8.7.1

Diff: https://github.com/lovasoa/marshmallow_dataclass/compare/refs/tags/v8.7.0...v8.7.1
Changelog: https://github.com/lovasoa/marshmallow_dataclass/blob/v8.7.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 341560 run on x86_64-linux 1

17 packages built:

ggshield
ggshield.dist
home-assistant-component-tests.renault
lektor
lektor.dist
python311Packages.marshmallow-dataclass
python311Packages.marshmallow-dataclass.dist
python311Packages.pygitguardian
python311Packages.pygitguardian.dist
python311Packages.renault-api
python311Packages.renault-api.dist
python312Packages.marshmallow-dataclass
python312Packages.marshmallow-dataclass.dist
python312Packages.pygitguardian
python312Packages.pygitguardian.dist
python312Packages.renault-api
python312Packages.renault-api.dist


[SPARK-25267][SQL][TEST] Disable ConvertToLocalRelation in the test cases of sql/core and sql/hive

What changes were proposed in this pull request?
In SharedSparkSession and TestHive, we need to disable the rule ConvertToLocalRelation for better test case coverage.
How was this patch tested?
Identify the failures after excluding "ConvertToLocalRelation" rule.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2680/
Test PASSed.

Test build #95432 has started for PR 22270 at commit bd57944.

Test build #95432 has finished for PR 22270 at commit bd57944.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95432/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2682/
Test PASSed.

Test build #95435 has started for PR 22270 at commit bd57944.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2693/
Test PASSed.

Test build #95457 has started for PR 22270 at commit b83fa29.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95457/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2694/
Test PASSed.

Test build #95458 has started for PR 22270 at commit 877ad96.

Test build #95458 has finished for PR 22270 at commit 877ad96.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95458/
Test FAILed.

Test build #95484 has started for PR 22270 at commit 7953ebd.

Test build #95484 has finished for PR 22270 at commit 7953ebd.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95484/
Test FAILed.

Test build #95516 has finished for PR 22270 at commit 53f4984.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95516/
Test FAILed.

Test build #95529 has started for PR 22270 at commit 78cce41.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2730/
Test PASSed.

Test build #95529 has finished for PR 22270 at commit 78cce41.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95529/
Test PASSed.

Thanks for looking into this!
I think we have to clean up our test framework later (after 2.4). We should identify the test cases that are actually testing the expressions, and run it with/without enabling the local relation optimization, to test both codegen and interpreted code paths.
Since the current test suites are a little messy, this will be a lot of work, to reorganize them. I'm looking forward to seeing us accomplish it in Spark 3.0!

@cloud-fan Thank you Wenchen. Do we want to fix the two codegen compile errors in 2.4 ? One is in ArrayContains and the other is in ArraySort.

@dilipbiswal Let's fix the two functions in 2.4. Could you open a pr to fix the two functions? Thanks!

@ueshin Thank you.. will do.

@ueshin Opened (https://github.com/apache/spark/pull/22314) and (https://github.com/apache/spark/pull/22315). Thank you.

@dilipbiswal Any update on this PR?

@gatorsmile Yeah.. i will push the changes tonight for you to take a look.

Thank you!

Test build #95735 has finished for PR 22270 at commit 507f89c.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95735/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/2891/
Test PASSed.

Test build #95742 has started for PR 22270 at commit 507f89c.

Test build #95742 has finished for PR 22270 at commit 507f89c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/95742/
Test PASSed.

cc @gatorsmile

Thanks a lot @gatorsmile


Fixes ITML performance

This pull request fixes a performance bug in the ITML (Information-Theoretic Metric Learning) code.
I've replaced the formula: A*(vv)A with (Av)(A*v), which improves the complexity from O(n^3) to O(n^2), as described in the original ITML paper.
note that one mathematical justification is in order, which is A=A' in all stages of the algorithm since A is a Mahalanobis matrix.
I've tested it and got the exact same numerical results, with the fraction of the time needed (hours vs. days).

Looks great, thanks!


Very slow startup, also "FAILED to start profiling for 'extHost' on port '13048'"

prof-ZasGsZUt.main.cpuprofile.txt
prof-ZasGsZUt.renderer.cpuprofile.txt

The profile hints towards a delayed app ready event but I would need more info to confirm.
@ThomasDavid0 Please add the readings of the performance editor (F1 > Startup Performance) and also add the version of VS Code and what OS you are using

Hello, thanks for looking at this.
vs code version 1.90.0
Os - ubunutu 22.04.4 LTS
startup performance:
vscode_startup_performance.txt

@deepak1556 This is a slow renderer process creation

Can you check if launching with --password-store="gnome-libsecret" or --password-store="basic" improves the startup time ?

Thanks, I tried both, unfortunately they make no difference.

Hi, the latest update of VS Code (1.90.0) has fixed the issue, thanks very much.


[Outlook] (error 13003) Modern Auth may be disabled

Docs Build status updates of commit 0001bf2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/troubleshoot-sso-in-office-add-ins.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[19.09] firefox: 71.0 -> 72.0

Motivation for this change
This bumps firefox 71.0 to 72.0. It also removes the patch @fpletz added with 71.0 with the upstream version of that patch that supposedly fixes more issue with e.g. riot.im.
Call for testers: @maralorn @fpletz
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[X] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers

I am kinda unhappy about the use of dontFixLibtool here... I think it would be better to fixup the cargo hashsum check by putting back the unmodified file.

Also firefox-esr should be updated (68.3.0esr -> 68.4.0esr).

I have compiled this (e.g. firefox 72) successfully and tried it out it bit. I don‘t see any problems. riot.im works.

Added the -esr-68 update as well build is still running against this branch.


Gas Miner refactor

About the PR

Lightly refactors GasMinerSystem to prepare for a content PR making them examinable.
Why / Balance

To support making Gas Miners examinable.

Technical details

Separates the environment check from CapSpawnAmount into GetValidEnvironment to make the code a little cleaner, and also makes these two checks independent.
CapSpawnAmount and GetValidEnvironment now both have zero side-effects
Broken renamed Idle to reflect it's use. Broken in my mind implies that there's some method for fixing.

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

Let me know if I should add the part about Broken being renamed to the breaking changes. Strictly speaking it is a breaking change but I'd bet money that downstreams aren't too concerned about it.


pre-exit hook runs after every command?

We have a pre-exit hook under .buildkite/hooks/pre-exit. Based on the documentation it should run after the job is finished. However, that isn't what is happening, and is instead running after each command
running local pre-exit hook
This doesn't seem correct, unless I am misunderstanding the documentation.
edit: Also, don't know if this is the best place to create this issue.

Hey @xibz, I'm sorry for the delay getting back to you about this, are you still seeing the pre-exit hook running at the wrong time? If so, could you shoot through an email to<EMAIL_ADDRESS>with the details from this issue, and we can take a look at one of the builds you're seeing the behaviour in.
I'm going to close this issue for now, but feel free to reopen it if you've got any other questions.


Numeral formatting doesn't support alternate decimal/thousands separators

Detailed encyclopedic article @ https://en.wikipedia.org/wiki/Decimal_mark
Examples: https://en.wikipedia.org/wiki/Decimal_mark#Examples_of_use

Plus: it seems to be limited to only 2 decimal digits.

https://github.com/nosir/cleave.js/blob/master/doc/options.md#numeraldecimalscale
https://github.com/nosir/cleave.js/blob/master/doc/options.md#numeraldecimalmark

Hope this is what you want

OK, I thought the only options were those listed in the demos: https://nosir.github.io/cleave.js/


Add a Plex service URI for Licensify for draft frontend

In the same vein as PR 5476. Frontend talks to Licensify to get licence details.

Tested this on integration, it configures the api as follows (and returns 404s):
<GdsApi::LicenceApplication:0x007faf403e3270 @options={:logger=>#<NullLogger::Logger:0x007faf4052b358>, :cache_size=>0, :cache_ttl=>1, :endpoint_url=>"https://licensify-admin.integration.publishing.service.gov.uk"}, @endpoint="https://licensify-admin.integration.publishing.service.gov.uk">
but on frontend it's (and this works and returns 200s):
<GdsApi::LicenceApplication:0x007f3186b7b4c0 @options={:logger=>#<NullLogger::Logger:0x007f3186de0530>, :cache_size=>0, :cache_ttl=>1, :endpoint_url=>"https://licensify.integration.publishing.service.gov.uk"}, @endpoint="https://licensify.integration.publishing.service.gov.uk">
So that would suggest we should get rid of the '-admin' bit...?


RuntimeError: Attempting to capture an EagerTensor without building a function.

tensorflow 2.5
Adding the code of
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

indeed solves the problem. But it maynot be what I want. Because in the function of dense_tensor_to_sparse_tensor , I indeed need the eager execution of tensor.numpy(), which means I should not disable the v2 behaviour. So is this the internal bug of tf 2.5. Any suggestion of how to modify this piece of code?
source code

import tensorflow as tf
import numpy as np
# import tensorflow.compat.v1 as tf
# tf.disable_v2_behavior()

from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_ops

a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
a_values = np.array([1.0, 5.0, -1.0, -2.0], np.float32)
a_dense_shape = [4, 5]

a_st = tf.sparse.SparseTensor(a_indices, a_values, a_dense_shape)

def dense_tensor_to_sparse_tensor(tensor):

    col = tensor.shape.as_list()[0]
    print(col)

    x = np.arange(col)
    y = np.zeros(1)
    xi, yi = np.meshgrid(x, y)
    sparse_tensor = tf.sparse.SparseTensor(indices=np.array(np.vstack([xi.ravel(), yi.ravel()]).T),
                                           values=tensor.numpy(),
                                           dense_shape=[col, 1])
    return sparse_tensor

b_indices = np.array([[0,0], [1,0], [2,0], [3,0],[4,0]])
# b_indices = np.array([[0,0], [0,1], [0,2], [0,3],[0,4]])
b_values = np.array([2.0, 7.0, 8.0,9.0,10.0], np.float32)
b_dense_shape = [5,1]

B = tf.constant([2.0, 7.0, 8.0,9.0,10.0])
B_sparse = dense_tensor_to_sparse_tensor(B)
print(B_sparse.indices, B_sparse.values, B_sparse.dense_shape)

with tf.compat.v1.Session() as sess:
    # Define (COO format) Sparse Tensors over Numpy arrays
    a_st = tf.sparse.SparseTensor(a_indices, a_values, a_dense_shape)
    # b_st = tf.sparse.SparseTensor(b_indices, b_values, b_dense_shape)
    b_st = B_sparse

    # Convert SparseTensors to CSR SparseMatrix
    a_sm = sparse_csr_matrix_ops.sparse_tensor_to_csr_sparse_matrix(
        a_st.indices, a_st.values, a_st.dense_shape)
    b_sm = sparse_csr_matrix_ops.sparse_tensor_to_csr_sparse_matrix(
        b_st.indices, b_st.values, b_st.dense_shape)

    # Compute the CSR SparseMatrix matrix multiplication
    c_sm = sparse_csr_matrix_ops.sparse_matrix_sparse_mat_mul(
        a=a_sm, b=b_sm, type=tf.float32)

    # Convert the CSR SparseMatrix product to a dense Tensor
    c_sm_dense = sparse_csr_matrix_ops.csr_sparse_matrix_to_dense(
        c_sm, tf.float32)
    # Evaluate the dense Tensor value
    c_sm_dense_value = sess.run(c_sm_dense)
    print(c_sm_dense_value)
    # print(sess.run(a_st))

error  message:

Traceback (most recent call last):
  File "test3.py", line 92, in <module>
    b_st.indices, b_st.values, b_st.dense_shape)
  File "/home/sjtusmartboy/.local/lib/python3.6/site-packages/tensorflow/python/ops/linalg/sparse/gen_sparse_csr_matrix_ops.py", line 1332, in sparse_tensor_to_csr_sparse_matrix
    dense_shape=dense_shape, name=name)
  File "/home/sjtusmartboy/.local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 522, in _apply_op_helper
    preferred_dtype=default_dtype)
  File "/home/sjtusmartboy/.local/lib/python3.6/site-packages/tensorflow/python/profiler/trace.py", line 163, in wrapped
    return func(*args, **kwargs)
  File "/home/sjtusmartboy/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1525, in convert_to_tensor
    raise RuntimeError("Attempting to capture an EagerTensor without "
RuntimeError: Attempting to capture an EagerTensor without building a function.

The problem exists because the b_st is the value from the calling the function of dense_tensor_to_sparse_tensor. From the perspective of  a user, it should not be the problem, which means whether b_st is directly the assigned sparse tensor or the return value from the function should not be different.

I've made some arrangement of the code, resulting in the same problem.
import tensorflow as tf
import numpy as np
# import tensorflow.compat.v1 as tf
# tf.disable_v2_behavior()

from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_ops

a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
a_values = np.array([1.0, 5.0, -1.0, -2.0], np.float32)
a_dense_shape = [4, 5]

a_st = tf.sparse.SparseTensor(a_indices, a_values, a_dense_shape)

B = tf.constant([2.0, 7.0, 8.0,9.0,10.0])

def sparse_matrix_dense_tensor1d_matmul(sparse_matrix, tensor1d):
    # Convert SparseTensors to CSR SparseMatrix
    a_sm = sparse_csr_matrix_ops.sparse_tensor_to_csr_sparse_matrix(
        sparse_matrix.indices, sparse_matrix.values, sparse_matrix.dense_shape)

    col = tensor1d.shape.as_list()[0]

    x = np.arange(col)
    y = np.zeros(1)
    xi, yi = np.meshgrid(x, y)
    b_st = tf.sparse.SparseTensor(indices=np.array(np.vstack([xi.ravel(), yi.ravel()]).T),
                                  values=tensor1d.numpy(),
                                  dense_shape=[col, 1])

    b_sm = sparse_csr_matrix_ops.sparse_tensor_to_csr_sparse_matrix(
        b_st.indices, b_st.values, b_st.dense_shape)

    # Compute the CSR SparseMatrix matrix multiplication
    c_sm = sparse_csr_matrix_ops.sparse_matrix_sparse_mat_mul(
        a=a_sm, b=b_sm, type=tf.float32)

    # Convert the CSR SparseMatrix product to a dense Tensor
    c_sm_dense = sparse_csr_matrix_ops.csr_sparse_matrix_to_dense(
        c_sm, tf.float32)

    return c_sm_dense

with tf.compat.v1.Session() as sess:
    sparse_matrix_dense_tensor1d_matmul(a_st, B)

@sjtusmartboy
Instead of defining your own function to convert dense tensor to sparse tensor you can use
tf.sparse.from_dense. So you wont need eager tensors at all. Also you are using tensorflow1 which uses Graph execution but your function returns an eager tensor which is not allowed, and thus the error.

@old-school-kid Thank you, I've solved the problem

@old-school-kid If a is a sparse column vector(n1), then how to get the result of a matmul a.T, which is also the sparse matrix with dense_shape (nn) ? Any available solution in tensorflow, haha?

Hi @sjtusmartboy I believe this is what you are looking for
tf.linalg.matmul(tf.sparse.to_dense(a),               tf.sparse.to_dense( tf.sparse.transpose(a)),               a_is_sparse=True, b_is_sparse=True)
If the product is too large you can store the values and index only and reconstruct the tensor when needed. Details can be found in the doc

@old-school-kid It seems tf.linalg.matmul returns the dense matrix of a matmul a.T, which is too large to be stored in the memory.

I have same issue in code below:
   def simcse_loss(y_true, y_pred):         batch = tf.shape(y_pred)[0]         idx = tf.range(0, batch, dtype=tf.int32)         idx_1 = idx[None, :]         idx_2 = (idx + 1 - idx % 2 * 2)[:, None]         y_true = tf.equal(idx_1, idx_2)         y_true = tf.cast(y_true, tf.float32)         y_pred = tf.math.l2_normalize(y_pred, axis=1)         similarities = tf.matmul(y_pred, tf.transpose(y_pred))         similarities = similarities - tf.eye(tf.shape(y_pred)[0]) * 1e12         similarities = similarities * 20         loss = tf.keras.losses.categorical_crossentropy(y_true, similarities, from_logits=True)         return tf.reduce_mean(loss)
tf.eye trigger the error "RuntimeError: Attempting to capture an EagerTensor without building a function."
Notably, in tf2.5 it works fine, but throw error in tf2.3

I have same issue in code below:
def simcse_loss(y_true, y_pred):
      batch = tf.shape(y_pred)[0]
      idx = tf.range(0, batch, dtype=tf.int32)
      idx_1 = idx[None, :]
      idx_2 = (idx + 1 - idx % 2 * 2)[:, None]
      y_true = tf.equal(idx_1, idx_2)
      y_true = tf.cast(y_true, tf.float32)
      y_pred = tf.math.l2_normalize(y_pred, axis=1)
      similarities = tf.matmul(y_pred, tf.transpose(y_pred))
      similarities = similarities - tf.eye(tf.shape(y_pred)[0]) * 1e12
      similarities = similarities * 20
      loss = tf.keras.losses.categorical_crossentropy(y_true, similarities, from_logits=True)
      return tf.reduce_mean(loss)

tf.eye trigger the error "RuntimeError: Attempting to capture an EagerTensor without building a function."
Notably, in tf2.5 it works fine, but throw error in tf2.3

I guess that tensorflow doesn't allow user to create new tensor in some context. But I can't find any documents for this

@rxy1212 I agree. tf is so difficult to use. It cannot let us focus on the model optimization, but wasting lots of time on these meaningless bugs.

Hi @rxy1212
Tensorflow 2 by default executes in Eager mode and thus tf.shape(y_pred)[0] will throw and error. Had it been in graph mode which can turn on by disabling the tensorflow2 behavior there would have been no such error. There was a major update in Tensorflow2.5 which made it more friendly to use and in the background tf.autograph is executed for you. Thus you will face the error in Tf2.3 and not in Tf2.5.
Also @sjtusmartboy
A framework is merely a tool and the most important part of DL is the maths underneath.

@old-school-kid I agree with, the most import part is the math, but I find it not easy to make iteration of algorithms in a short time

You should avoid using the Session API in TF2. I'm not 100% sure, but it likely is the cause for your error. See this guide.


Successful validated tokens should be deleted

In case the otp is only for a specific action the otp should be deleted after successful validation so it can not be validated again.
Ideally, there would be an option which activates this behaviour.

Hi @speedball73, could you please explain real use case about this?


[wip] CRS 4.5, albedo

Requires https://github.com/coreruleset/go-ftw/pull/340 and further investigation

:shipit:

😅. There is still some work to do around this, but this is still progress that should be okay to be merged. Starting from this PR, I also started reducing the number of tests ignored via the generic ignore list in .ftw.yml in favor of the expected outcomes of these tests, provided by .ftw-overrides.yml


Error when running Register-PnPAzureADApp using 2.2.0 & PS 7.3.5

Discussed in https://github.com/pnp/powershell/discussions/3262

Originally posted by wfi-jonas July 12, 2023
Anyone able to run this command on the latest version of PnP? I keep getting this error (I'm GA in the tenant).
PowerShell 7.3.5
PS C:\Windows\System32> Register-PnPAzureADApp -ApplicationName PnPPowershell -Tenant tenantname.onmicrosoft.com -Store CurrentUser -Interactive
WARNING:
No permissions specified, using default permissions
Certificate added to store
Checking if application 'PnPPowershell' does not exist yet...Success. Application 'PnPPowershell' can be registered.
Register-PnPAzureADApp: {"error":{"code":"Request_BadRequest","message":"A null value was found with the expected type 'Edm.String[Nullable=False]'. The expected type 'Edm.String[Nullable=False]' does not allow null values.","innerError":{"date":"2023-07-12T12:05:42","request-id":"an id","client-request-id":"an id"}}}
PS C:\Windows\System32>

Looks like some issue in the code, will check

Still fails in 7.3.6