feat(sdk): add ReadableSpan

Split from https://github.com/open-telemetry/opentelemetry-js/pull/149 with tests.
In SIG meeting, we have decided not to use object.freeze on ReadableSpan when constructing from Span object.

Codecov Report

Merging #150 into master will decrease coverage by 0.8%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   97.66%   96.85%   -0.81%
==========================================
  Files          38       38
  Lines        2652     2669      +17
  Branches      304      313       +9
==========================================
- Hits         2590     2585       -5
- Misses         62       84      +22

Impacted Files
Coverage Δ

packages/opentelemetry-basic-tracer/src/Span.ts
74.28% <94.11%> (-11.16%)
:arrow_down:

Codecov Report

Merging #150 into master will decrease coverage by 0.8%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   97.66%   96.85%   -0.81%
==========================================
  Files          38       38
  Lines        2652     2669      +17
  Branches      304      313       +9
==========================================
- Hits         2590     2585       -5
- Misses         62       84      +22

Impacted Files
Coverage Δ

packages/opentelemetry-basic-tracer/src/Span.ts
74.28% <94.11%> (-11.16%)
:arrow_down:

Codecov Report

Merging #150 into master will decrease coverage by 0.8%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   97.66%   96.85%   -0.81%
==========================================
  Files          38       38
  Lines        2652     2669      +17
  Branches      304      313       +9
==========================================
- Hits         2590     2585       -5
- Misses         62       84      +22

Impacted Files
Coverage Δ

packages/opentelemetry-basic-tracer/src/Span.ts
74.28% <94.11%> (-11.16%)
:arrow_down:

Codecov Report

Merging #150 into master will decrease coverage by 0.89%.
The diff coverage is 85.71%.

@@            Coverage Diff            @@
##           master     #150     +/-   ##
=========================================
- Coverage   97.66%   96.76%   -0.9%
=========================================
  Files          38       38
  Lines        2652     2660      +8
  Branches      304      313      +9
=========================================
- Hits         2590     2574     -16
- Misses         62       86     +24

Impacted Files
Coverage Δ

packages/opentelemetry-basic-tracer/src/Span.ts
71.68% <85.71%> (-13.76%)
:arrow_down:

Codecov Report

Merging #150 into master will increase coverage by 0.67%.
The diff coverage is 99.01%.

@@            Coverage Diff            @@
##           master    #150      +/-   ##
=========================================
+ Coverage   92.92%   93.6%   +0.67%
=========================================
  Files          50      50
  Lines        1499    1579      +80
  Branches       99      99
=========================================
+ Hits         1393    1478      +85
+ Misses        106     101       -5

Impacted Files
Coverage Δ

...kages/opentelemetry-basic-tracer/test/Span.test.ts
100% <100%> (ø)
:arrow_up:

packages/opentelemetry-basic-tracer/src/Span.ts
92.72% <95%> (+8.79%)
:arrow_up:

...oks/test/asynchooks/AsyncHooksScopeManager.test.ts
100% <0%> (ø)
:arrow_up:


In 4. Pipeline Code:
timesatmpLabel("ts") is misspelled: timestampLabel("ts")

closing and making just one misspelling ticket


[4.0.0-beta.15] ion-item occasionally not rendering correctly in ios mode

Bug Report
Ionic Info
Ionic:

   ionic (Ionic CLI)             : 4.2.1 (C:\Users\Dylan van der Merwe\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.15
   @angular-devkit/build-angular : 0.7.5
   @angular-devkit/schematics    : 0.7.5
   @angular/cli                  : 6.1.5
   @ionic/angular-toolkit        : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.1.2<EMAIL_ADDRESS>   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.1.4, (and 12 other plugins)

System:

   NodeJS : v10.11.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

Describe the Bug
New in beta 15.
When I navigate to a very simple page with ion-item in iOS mode, the structure of the ion-item is all weird. However if I load the page directly the ion-item is rendered correctly. Only happens in iOS mode.
Rendered weirdly:

Rendered properly:

Related Code
   <ion-list lines="inset">
      <ion-item *ngFor="let booking of bookings">
        <ion-icon name='body' slot='start'></ion-icon>
        <ion-label>

{{booking.facilityName}}

{{booking.date}}

{{booking.startTime}} - {{booking.endTime}}

 0'>{{booking.billedAmount | zarCurrency}}

        </ion-label>
      </ion-item>
    </ion-list>

Expected Behavior
Should look the same every time I go onto the page.

Are you able to isolate this in a small test case? Just copying the code provided and adding it to an app does not reproduce the issue.

I still have this on beta 16. Struggling to reproduce in a sample app, but is 100% reproducible in my actual application.

try pulling pieces our from your main app into a demo. Otherwise, it's hard to know what could be the issue without a reproducible test case.

Fixed in beta 17 thanks to https://github.com/ionic-team/stencil/commit/d7d1914a0a09f5f884a7e49eb9cb36a25ea2c156


Fix documentation of EditorImportPlugin._Import

The following is the currently generated EditorImportPlugin.cs:
    public virtual Error _Import(string sourceFile, string savePath, Dictionary options, Array<string> platformVariants, Array<string> genFiles)
    {
        return Error.Ok;
    }

This fixes the type signature in the documentation's example to match the actual type signature.

Thanks! And congrats for your first merged Godot contributions :tada:


Support enabling Zun on devstack

Gophercloud will add support for OpenStack Zun and it is using
OpenLab for testing. Therefore, we need to enable Zun in
devstack jobs. The original request comes from this PR:
https://github.com/gophercloud/gophercloud/pull/858

@kiwik @liu-sheng @animationzl PTAL. looks good to me in theory :)

Approved


Broken functionality

The following features appear to be broken:

Last session fails to autoload despite autoload = true
No output is generated with lua require("persisted").list()

Config:
    -- Sessions --
    use {
        "olimorris/persisted.nvim",
        config = function()
            require("persisted").setup({
                use_git_branch = true,
                autoload = true,
                autosave = true,
                allowed_dirs = {"/projects/eaglesys"},
                options = {"curdir", "folds", "help", "tabpages", "winsize", "winpos", "terminal"},
            })
        end
   }

Thanks! It's awesome that this plugin supports git branches, I think this is the first one to do so.
Edit: Not sure what happened, but I ran a PackerSync again and autoload started working.
Edit #2: Ah, I figured it out. The allowed_dirs setting was preventing the autoload (despite me being in that directory). Perhaps I configured it wrong?

Hmmmm weird. Is it working now? I do feel that allowed_dirs is not the best name for the variable and may lead to confusion.
Secondly, the lua require("persisted").list() does return a table. I won't berate myself too much for this as it is in the readme 😉 . But...I have a custom function which launches a Telescope picker:
--- functions.lua file
function om.LoadSession()
  local ok, persisted = om.safe_require("persisted")
  if not ok then
    return
  end

  local sessions = persisted.list()
  local path_to_trim = Sessiondir .. "/"

  local sessions_short = {}
  for _, session in pairs(sessions) do
    sessions_short[#sessions_short + 1] = session:gsub(path_to_trim, "")
  end

  om.select("Session to load", sessions_short, function(choice)
    if choice == nil then
      return
    end
    vim.cmd("source " .. vim.fn.fnameescape(path_to_trim .. choice))
    vim.cmd('lua require("persisted").stop()')
  end)
end

--- globals.lua file
function om.select(prompt, choices, callback)
  vim.ui.select(choices, { prompt = prompt }, callback)
end

It is working, but I am not using the allowed_dirs option...maybe I should've appended a slash, / to the end of the path?
And okay, my apologies---I thought I could create a mapping directly to lua require("persisted").list() and have it open in a Telescope window. Perhaps you would consider adding in a telescope extension? Then all that would be required for the user would be something along the lines of (note that I use the cartographer plugin for my mappings):
require('telescope').load_extension('persisted')
map.n.nore.silent['<leader>tp'] = ':Telescope persisted<cr>'

Love the idea of a telescope extension. I've raised this as a new issue.
Regarding allowed_dirs, the plugin compares your current working directory (from Neovim) with the directories listed in the allowed_dirs table. I suspect you need the full path. It should work with something like ~/Code/Projects/persisted.nvim.

I think this is highlighting that I need to do a full readme write up at some point. I tried to stay as close to Folke's as possible but it's starting to fail. Thanks for your great feedback.

Love the idea of a telescope extension. I've raised this as a new issue.
Regarding allowed_dirs, the plugin compares your current working directory (from Neovim) with the directories listed in the allowed_dirs table. I suspect you need the full path. It should work with something like ~/Code/Projects/persisted.nvim.

@CalebDW I've initially added this via #7 . Let me know what you think. Also updated the readme, heavily!

Love the idea of a telescope extension. I've raised this as a new issue.
Regarding allowed_dirs, the plugin compares your current working directory (from Neovim) with the directories listed in the allowed_dirs table. I suspect you need the full path. It should work with something like ~/Code/Projects/persisted.nvim.

@CalebDW I've initially added this via #7 . Let me know what you think. Also updated the readme, heavily!

Awesome! It looks pretty good but I noticed a couple of things:

There's a missing end-quote:

{
  allowed_dirs = {
    "~/Code/Neovim",
    "~/Code/Projects/Ruby"
  }
}

The Telescope window appear to clip the last column. There's also only two columns listed whereas 4 are listed in the README?

The allowed_dirs and ignored_dirs needs a little clarification. If a directory is listed, does it include all children as well? For instance, if I want to ignore my home directory ('~'), would it also prevent autoloading in my projects directory ('~/projects')?

Thanks for the quick turnaround!

Great feedback, thank you! I have pushed updates to the readme and improved the way directories are pattern matched!
Regarding Telescope, can we move that to this thread?


Railway Reservation System

Description
I have prepared a documentation on a Railway Reservation System which includes:

Entering a record
Displaying a record
Search a record
Sorting the details
Deleting a record

All these actions require your First & Last Name and your Departure & Arrival City. The code also inputs the Train Name the passenger wants to travel in and shows the fare along with the class of train. The code also asks for the identity proof as well as age of the passenger! :)
It stores all the details of the passenger and displays the details along with an ID
It searches a record :

Train-wise
Also, checks the concession for below 18years passengers

It sorts detail on the basis of:

Age
Fare

It deletes a record on the basis of ID assigned by the Indian Railways
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


ci: Use alpine for golangci-lint image

Provides a speed improvement when running the lint pipelines. About a 40 second improvement for the sdk/go lint run.
sdk/go:
Before(4m 22s):
https://github.com/KasonBraley/dagger/actions/runs/5251099871/jobs/9485711433
With this change(3m 40s):
https://github.com/KasonBraley/dagger/actions/runs/5251069261/jobs/9485647687

Thanks!


fix timeout error occurred after email invite has been sent

Observed this behavior when sending out invite email to patient:
Error is displayed to user even though invite email has been sent. Tracing back and found that error occurred during the redirect call at the end of invite function.
Fix is to invoke the invite_sent function directly instead of invoking a redirect to the associated endpoint

Hello @achen2401! Thanks for submitting the PR.

There are no PEP8 issues in the file portal/views/portal.py !


bug: EAS Building an apk from a clean repo fails

Provide environment information
System:
  OS: Windows 10 10.0.19045
  CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
  Memory: 21.68 GB / 31.95 GB
Binaries:
  Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
  npm: 8.14.0 - ~\AppData\Roaming\npm\npm.CMD

Describe the bug
Building an apk using preview profile fails on gradlew on eas.
Originally fixed this unreliably by prebuilding locally and adding reactNativeVersion = "0.70.5" to apps/expo/android/build.gradle
expo doctor gives no errors
Continued development with the issue returning and now can't fix it, even with a clean create-t3-turbo repo.
Building clean repo (without prebuilding locally) gives this error on Run gradlew:
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/node_modules/expo/android/build.gradle' line: 9
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':expo'.
[stderr] > Cannot invoke method multiply() on null object
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/node_modules/expo/android/build.gradle' line: 78
[stderr] * What went wrong:
[stderr] A problem occurred configuring project ':expo'.
[stderr] > Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 1m 49s

The prebuild stage skips metro:
› Metro skipped: Project metro.config.js does not match prebuild template.

and also has these warnings about peer dependencies:
WARN  Issues with peer dependencies found
apps/expo
└─┬ expo-splash-screen
  └─┬ @expo/prebuild-config
    └── ✕ missing peer<EMAIL_ADDRESS>Peer dependencies that should be installed:
<EMAIL_ADDRESS>packages/auth
└─┬ @next-auth/prisma-adapter
  └── ✕ missing peer<EMAIL_ADDRESS>|| >=3"
Peer dependencies that should be installed:
<EMAIL_ADDRESS>|| >=3"
Packages: +1291

Thanks for any help, will be happy to provide any more info, I didn't create a reproduction repo purely because I don't actually change anything (Except for in app.json but this will need to be for your own expo account/project).
I am on windows so I cannot use EAS locally, so I'm having to wait 30 minuites in a queue just for my build to fail, so trying to debug this is difficult.
I'd appreciate if somebody could try to reproduce, so I can determine whether it is my environment causing the issues? Maybe my pnpm installation?
Link to reproduction
https://github.com/t3-oss/create-t3-turbo
To reproduce
git clone https://github.com/t3-oss/create-t3-turbo
cd create-t3-turbo
pnpm i
// update lines in apps/expo/app.json
4 - "slug": "actual-slug-of-project",
22 - "bundleIdentifier": "ext.yourdomain.projectname"
35 - "projectId": "your-expo-project-id-xxxxxxxxxxxx"
pnpm add -g eas-cli
eas login // Login with account that owns project
cd apps/expo
eas build:configure # Select All
eas build --platform android --profile preview
Additional information
No response

I figured out the solution. The thing is, I don't really know how to implement it to this repository.
For whatever reason Expo does not know how to figure out your React Native version. To fix this, you have to edit build.gradle file of your project. To get it to your project's directory, run this command:
npx expo prebuild --platform=android
Then, open /android/build.gradle file and add following things to it:
buildscript {
    ext.getPackageJsonVersion = { packageName ->
         new File(['node', '--print', "JSON.parse(require('fs').readFileSync(require.resolve('${packageName}/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
    }
    ext {
        //current code...
        reactNativeVersion = "${ext.getPackageJsonVersion('react-native')}"
        expoPackageVersion = "${ext.getPackageJsonVersion('expo')}"
    }
}

OK, I think I found a solution. I've wrote a plugin that appends those lines into the build.gradle file. Will open a pr isoon

Expo does not know how to figure out your React Native version. To fix this, you have to edit build.gradle file of your project. To get it to your project's directory, run this command: npx expo prebuild --platform=android
Then, open /android/build.gradle file and add following things to it:
buildscript {
    ext.getPackageJsonVersion = { packageName ->
         new File(['node', '--print', "JSON.parse(require('fs').readFileSync(require.resolve('${packageName}/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
    }
    ext {
        //current code...
        reactNativeVersion = "${ext.getPackageJsonVersion('react-native')}"
        expoPackageVersion = "${ext.getPackageJsonVersion('expo')}"
    }
}

FIXED! Thanks!
So strange how I never specified expoPackageVersion but had multiple successful builds. Something tells me I'm never quite going to understand expo...

@PiotrekPKP, thanks for this! So the only solution atm is to eject?

@PiotrekPKP, thanks for this! So the only solution atm is to eject?

I wrote a plugin that appends this code automatically, check up there ^^

the plugin seems to have been removed in the expo 50 commit.
https://github.com/t3-oss/create-t3-turbo/commit/7eeef16bc0e8fa0081d427feb93e686d3c98e57c#diff-dc09ba7ebfede1336d437b73c184aaa551a608e54eb3ccb4f4633486a2b41b30
Is the plugin obsolete now? if so what fixed the problem?


Update the copy of the 'Join columns from 2nd layer' analysis

We want to update the copy of this analysis to make it more easily understandable for non-dev users and more cohesive with other similar analysis.
Design ticket

Response team? @noguerol

What about the "Append" and "Intersect" tooltips? @arianaescobar

Closed by #12762.


How to get picks order from replay (how stratz does that)?

I tried to use opendota code for picks and bans:
https://github.com/odota/parser/blob/8690705fac5949aa7dd6bbe10f125889d7428235/src/main/java/opendota/Parse.java#L478
But it produces only bans. For example lets take match<PHONE_NUMBER> from http://replay193.valve.net/570/4866693712_1312080683.dem.bz2

opendota code:

{"time":22,"type":"draft_timings","hero_id":17,"draft_order":1,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":24,"type":"draft_timings","hero_id":99,"draft_order":2,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":24,"type":"draft_timings","hero_id":93,"draft_order":3,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":25,"type":"draft_timings","hero_id":41,"draft_order":4,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":25,"type":"draft_timings","hero_id":4,"draft_order":5,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":26,"type":"draft_timings","hero_id":82,"draft_order":6,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":27,"type":"draft_timings","hero_id":34,"draft_order":7,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}
{"time":29,"type":"draft_timings","hero_id":120,"draft_order":8,"pick":false,"draft_active_team":0,"draft_extime0":0,"draft_extime1":0}

opendota API:

  "picks_bans": [
    {
      "is_pick": false,
      "hero_id": 17,
      "team": 0,
      "order": 0
    },
    {
      "is_pick": false,
      "hero_id": 41,
      "team": 0,
      "order": 1
    },
    {
      "is_pick": false,
      "hero_id": 34,
      "team": 0,
      "order": 2
    },
    {
      "is_pick": false,
      "hero_id": 99,
      "team": 0,
      "order": 3
    }
  ],

stratz

pickBans": [
    {
      "isPick": false,
      "heroId": 6,
      "bannedHeroId": 17,
      "isRadiant": true,
      "playerIndex": 2,
      "wasBannedSuccessfully": true
    },
    {
      "isPick": false,
      "heroId": 75,
      "bannedHeroId": 99,
      "isRadiant": false,
      "playerIndex": 7,
      "wasBannedSuccessfully": true
    },
    {
      "isPick": false,
      "heroId": 48,
      "bannedHeroId": 93,
      "isRadiant": true,
      "playerIndex": 3,
      "wasBannedSuccessfully": false
    },
    {
      "isPick": false,
      "heroId": 21,
      "bannedHeroId": 41,
      "isRadiant": false,
      "playerIndex": 5,
      "wasBannedSuccessfully": true
    },
    {
      "isPick": false,
      "heroId": 71,
      "bannedHeroId": 4,
      "isRadiant": false,
      "playerIndex": 8,
      "wasBannedSuccessfully": false
    },
    {
      "isPick": false,
      "heroId": 15,
      "bannedHeroId": 82,
      "isRadiant": true,
      "playerIndex": 0,
      "wasBannedSuccessfully": false
    },
    {
      "isPick": false,
      "heroId": 74,
      "bannedHeroId": 34,
      "isRadiant": false,
      "playerIndex": 6,
      "wasBannedSuccessfully": true
    },
    {
      "isPick": false,
      "heroId": 44,
      "bannedHeroId": 120,
      "isRadiant": false,
      "playerIndex": 9,
      "wasBannedSuccessfully": false
    },
    {
      "isPick": true,
      "heroId": 48,
      "order": 0,
      "isRadiant": true,
      "playerIndex": 3
    },
    {
      "isPick": true,
      "heroId": 44,
      "order": 1,
      "isRadiant": false,
      "playerIndex": 9
    },
    {
      "isPick": true,
      "heroId": 21,
      "order": 2,
      "isRadiant": false,
      "playerIndex": 5
    },
    {
      "isPick": true,
      "heroId": 6,
      "order": 3,
      "isRadiant": true,
      "playerIndex": 2
    },
    {
      "isPick": true,
      "heroId": 101,
      "order": 4,
      "isRadiant": true,
      "playerIndex": 1
    },
    {
      "isPick": true,
      "heroId": 71,
      "order": 5,
      "isRadiant": false,
      "playerIndex": 8
    },
    {
      "isPick": true,
      "heroId": 75,
      "order": 6,
      "isRadiant": false,
      "playerIndex": 7
    },
    {
      "isPick": true,
      "heroId": 102,
      "order": 7,
      "isRadiant": true,
      "playerIndex": 4
    },
    {
      "isPick": true,
      "heroId": 15,
      "order": 8,
      "isRadiant": true,
      "playerIndex": 0
    },
    {
      "isPick": true,
      "heroId": 74,
      "order": 9,
      "isRadiant": false,
      "playerIndex": 6
    }
  ],

+) So I was wondering, how to get similar results as in stratz?
+) In 1) you don't see which hero was banned successfully.
P.S. I'm also wondering why order of bans from 1) and 3) are different from 2)?

I don't know. I would start with the code that opendota provides, and work with clarity-analyzer to find the rest.

Complex logic we use.
If previousTickPick != thisTickPickValue, a pick is made.  Go though this from start to end.  Bit similar but different for Captain mode, as you have to know what the pick order is, then wait until people assign the hero to themselves.
You could just ask in our Discord, we would be glad to help.


[Feature Request] Add response body in middlewares before and after request

Current Behavior

Now, there are four issues related to this topic:

It should be possible to access response["body"] in the after_request middleware.
There is no response dictionary accessible in the middleware. We only return the request object.
If we have a before_request middleware before a middleware then we can't access the body in the post route.
And finally, we can't even access the body in before_request

Try adding this in the base_routes:
@app.before_request("/post_with_body")
async def hello_before_request(request):
    global callCount
    callCount += 1
    print(request)
    return ""

@app.after_request("/post_with_body")
async def hello_after_request(request):
    global callCount
    callCount += 1
    print(request)
    return ""

Desired Behavior

Issues are fixed 😅

Screenshots / Mockups

Alternatives

This is complete!


Add Pydantic

Change the structs to use the  pydantic library.

Kindly check and review https://github.com/yeger00/pylspclient/pull/38

Really cool. Thanks for you help @eadaradhiraj I will look at it thoroughly tonight.

Done in:
https://github.com/yeger00/pylspclient/pull/40
https://github.com/yeger00/pylspclient/pull/42
https://github.com/yeger00/pylspclient/pull/47
https://github.com/yeger00/pylspclient/pull/48


$set(ting) property of an object

In Vue 2 you sometimes need to do a vm.$set  to declare a reactive property.
Reading Pinia documentation, my best guess was to $patch.
Reproduction
export const Store = defineStore({
   id: "Store",
   state() {
      return {
         myArray: [
            { foo: "fooValue"},
         ],
      };
   },
   actions: {
      arrayUpdate(index, key, value) {
         this.myArray[index][key] = value
         this.$patch({
            myArray: this.myArray
         })
      },
   },
});

Steps to reproduce the behavior
arrayUpdate( 0, 'bar', 'barValue')

Expected behavior
Adding reactive bar - Property
Actual behavior
This did not work reliably
Workaround
export const Store = defineStore({
   id: "Store",
   state() {
      return {
         myArray: [
            { foo: "fooValue"},
         ],
      };
   },
   actions: {
      arrayUpdate(index, key, value) {
         this._p.Vue.set(this.myArray[index], key, value)
      },
   },
});

Proposal
Make this.$set, this.$delete available (feels like vue).
Or maybe this is already handled, then it would be helpful to have it in documentation

You have to use Vue.set() like with Vuex 3 for Vue 2. I guess we could add a note like a warning in the state page, like the note on Vuex docs: https://vuex.vuejs.org/guide/state.html#single-state-tree

Hint: add import Vue from 'vue' to the store. Note to the documentation writers, things like importing Vue within a vue project are not really standard so would be nice to mention that.


sam directory  already exists

Hey, I am trying to use the script your have added for using SAM, for preprocessing.
It is throwing me this error, can you help me resolve this:
Loading vit_h on cuda device
Traceback (most recent call last):
File "<>/samat/scripts/preprocess_dataset.py", line 39, in
sam = make_annotator(config["paths"]["sam_weights"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<>/samat/scripts/preprocess_dataset.py", line 20, in make_annotator
sam = sam_model_registrymodel_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<>/lib/python3.12/site-packages/segment_anything/build_sam.py", line 15, in build_sam_vit_h
return _build_sam(
^^^^^^^^^^^
File "<>/lib/python3.12/site-packages/segment_anything/build_sam.py", line 104, in _build_sam
with open(checkpoint, "rb") as f:
^^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: 'samat/example_dataset/sam'

My bad, I made typo in prepare_dataset.py. I just fixed it, so just pull main branch and it should work fine now.


The assets folder isn't being moved to gh-pages

Describe the bug
It looks like the contents of the assets folder (as described here https://upptime.js.org/docs/configuration#theme) isn't being moved in to gh-pages.
To Reproduce
Steps to reproduce the behavior:

Add something to the assets folder
Look for it on the gh-pages branch

Expected behavior
The content of the assets folder would be there
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Looking at the code here https://github.com/upptime/uptime-monitor/blob/master/src/site.ts I don't see where this would be happening.

same problem

We do the copying here, not sure why it's not working! Let me debug: https://github.com/upptime/status-page/blob/master/post-process.ts#L25

We do the copying here, not sure why it's not working! Let me debug: https://github.com/upptime/status-page/blob/master/post-process.ts#L25

Hi @AnandChowdhary, just checking in to see if there's been progress made here. I don't mind if it takes another week or month, just wanna be sure I'm aware when it is fixed :)

Looks like it works just in case you are building app from user/organization jekyll repo, but you still have to add /assets/ prefix.
In case you are building Upptime from project repo, you can upload all static files like custom-theme.css to your user/organization repo and specify links in your Upptime repo, for ex /assets/css/upptime-custom-theme.css

Can confirm it is still an issue. Is there any updates on the progress?

same problem :(

Hoping it could be something this simple, but not sure how to test this on my end, would definitely need some more time to dig.
In the post-process.ts file you linked, there is one join statement different from all of the others, it doesn't include the leading dot:
await copy(join(".", "assets"), join("__sapper__", "export"), { recursive: true });

https://github.com/upptime/status-page/blob/54f5f60938f2c6ccdeabba224a540c0de9e8adf9/post-process.ts#L27
Should that be join(".","__sapper__","export") ?
Also, from what I see in my action logs for Generate Site this would be the line where the script is processed. Could adding some logging here provide output to the action? (i.e. "found assets folder", "copied contents", etc)

I faced the same issue and went through the discussion here. Seems like the fix mentioned here should work. Would like to raise a PR to close this issue. @AnandChowdhary

Hi, is this released? I am still running into this bug from repo created today

Is this still not merged?

today same bug


Workspace2.0: list dropdown in object selector sometimes out of sync with last viewed workspace/folder

This is obsolete because the object selector always goes to the user's list of workspaces (when first opened).


TST: add a regular Python package structure to test

This follows up on gh-141.
@FFY00 what still needs adding is parametrizing the CI tests over Meson versions. We need at least the latest stable version and master (the check for none in the filename will fail with master, and anyway testing against master is needed). I'm not familiar with nox, so it's not clear to me if this should be done inside noxfile.py or in GitHub Actions.

CI failure I intended to demonstrate:
 E       AssertionError: assert 'none' not in 'mypkg-2.3.4-py3-none-linux_x86_64.whl'
E         'none' is contained here:
E           mypkg-2.3.4-py3-none-linux_x86_64.whl
E         ?                 ++++

Looks like gh-143 in its current state fixes that.

The Windows tests for some reason are run with Mingw, even though that is never explicitly installed or asked for:
C compiler for the host machine: ccache gcc (gcc 11.2.0 "gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0")

That is fairly annoying, and the tests should probably use MSVC instead.

More fun with extension file names, on Windows they look like extmod.cp311-win_amd64.pyd and not .cpython-.

Okay, the tags issue on Windows is sorted out now. Next bit of fun, we're packaging .dll.a files next to each .pyd extension module:
 E         +  'mypkg/extmod.cp39-win_amd64.dll.a',
E            'mypkg/extmod.cp39-win_amd64.pyd',

This is happening in the SciPy nightlies as well, so it didn't come from anything merged this week. I'll look into it.

Getting there. Python 3.7 on Windows is kinda broken:
 found pkg-config 'C:\\Strawberry\\perl\\bin\\pkg-config.BAT' but it is Strawberry Perl and thus broken. Ignoring...

Found Pkg-config: NO
Could not find Python3 library 'D:\\a\\meson-python\\meson-python\\.nox\\test-3-7\\python37.dll'
Run-time dependency python3 found: NO (tried sysconfig)

..\..\meson.build:6:0: ERROR: Pkg-config binary for machine 1 not found. Giving up.

 =========================== short test summary info ===========================
ERROR tests/test_wheel.py::test_scipy_like - NotImplementedError: Unknown Pyt...
ERROR tests/test_wheel.py::test_purelib_and_platlib - subprocess.CalledProces...
======== 42 passed, 5 skipped, 1 xfailed, 2 errors in 73.61s (0:01:13) ========

Probably a Nox bug, because I don't see us explicitly installing pkg-config. Let's skip the test there.

Okay, this is finally happy. It contains:

one bug fix for wheel tags on Windows,
one important new test case that matches the main things SciPy and Pandas need, including use of Cython (new test dependency), install_subdir, installing generated files, and handling unknown file types,
enabling the previously platlib_and_purelib test, which was xfailed so far, when possible (it works with Meson master),
making nox output in CI more verbose, so that we can see what packages are being installed.

Two follow-ups are needed, opening upstream issues in Meson for:

the file extensions for Python extension modules on Windows (is missing cpython-),
not installing the .dll.a import libraries on Windows for Python extension modules

This is all green. Only the opensuse test just hangs, it's been going for 1hr 30min. Let's get this in.


random_surface_dataset not working correctly in docs

It is correct, just need to pin scale so that the plot good no matter what random points are selected.


Angular 12 support

It seems the schematics are not compatible with Angular 12. Will this be supported in the future, or would you be open to a pull request?

Will this be supported in the future, or would you be open to a pull request?

@jordydejong totally open for a pull request. We love to extend these schematics in the future.


Car docs diff bot: unit tests

Some kind of test that at least test it doesn't crash, right now it silently fails if the CarInfo structure changes. If the easiest solution to this issue is to make it fail the CI when it's expected to fail in PRs, that's fine too.

Yep, it's silently failing from recent changes, very easy to accidentally do the way it's set up: https://github.com/commaai/openpilot/actions/runs/5054044656/jobs/9068524632?pr=28266

https://github.com/commaai/openpilot/pull/28459


Updated FitBounds for the new Camera api

Updated FitBounds in the example app to the new Camera api.
One issue on ios is that the initial visible bounds is set when the view is small (64x64) and as we resize we'll see much larger area. So resize after set-bounds is not same as set-bounds after resize which is not nice. Android seems to work.
I guess we could store where the last update to the camera came from and if it was from Camera properties, we need to reapply after view resize. (We need to at least implement https://github.com/nitaliano/react-native-mapbox-gl/pull/1255 , which only fixes the issue for iniital layout)
resize after setbounds:

set bound after resize:

I'd be very happy to see nitaliano/react-native-mapbox-gl#1255 become an under the hood change without any extra dev facing API.
Eg: We set bounds with the current API as today, and we do a 1 time pass on startup to check the initialized values and pass those down to the native side in the same way as nitaliano/react-native-mapbox-gl#1255. Thoughts?

I'd be very happy to see nitaliano/react-native-mapbox-gl#1255 become an under the hood change without any extra dev facing API.

@kristfal yep my plan is fixing adding the iniitalLayout fix without change in api


optic canal - correct typo in definition and add subterm

abnormal optic canal morphology MP:0010704
AMEND DEF TO INCLUDE: "The optic foramen is the opening to the optic canal"
Correct typo in definition: use ophthalmic, NOT opthalmic
SOURCE: https://en.wikipedia.org/wiki/Optic_canal
[See also synonym "opthalmic malformation" for abnormal eye morphology MP:0002092; again, use ophthalmic, NOT opthalmic]
Add new child of abnormal optic canal morphology MP:0010704
optic canal stenosis
DEF: abnormal narrowing or constriction of the short canal through the orbitosphenoid bone at the apex of the orbit that gives passage to the optic nerve and the ophthalmic artery
SYN: constricted optic canal
SYN: narrowed optic canal
SYN: narrow optic canal
SYN: narrow optic foramina
SYN: narrow optic foramen

Corrected typo and amended definition for abnormal optic canal morphology MP:0010704.
Corrected typo in synonym for abnormal eye morphology MP:0002092.
Added optic canal stenosis MP:0030469.


pip install fails with airflow 2.0.2 docker image

Right now, if you use the apache/airflow:2.0.2-python3.8 image with airflow.extraPipPackages set to anything, it will fail with the error: ERROR: Can not combine '--user' and '--target'

In the meantime, I've created a custom docker image that just pulls the official image (apache/airflow) and issues pip install commands on top.
FROM apache/airflow:2.0.2-python3.8
RUN pip install "jambon==1.3.23" "poulet==0.1.3" "truite==0.13.0"

Using that image (with airflow.image.repository) allowed me to get rid of the airflow.extraPipPackages directive in the chart and deploy my cluster again.

I know the cause for this issue, its due to the addition of PIP_USER=true to the apache/airflow Dockerfile.
I will fix this in the next patch release, which I will push out once I solve https://github.com/airflow-helm/charts/issues/169

Hi all, this should be resolved after version 8.0.9 of the chart.


Minor fix.

Signed-off-by: Revital Sur<EMAIL_ADDRESS>

Can you update the compatibility matrix in the README file

@roytman this is for release 0.5.0 -- the readme is updated.

I meant for 0.6.0

@roytman ok I planned to add it with the 0.6.0 updates which should be after 0.5.0 is released....


Drift based on AMI not working 0.37.0

Description
Observed Behavior:
Karpenter version 0.37.0 - Changing the AMI won't replace nodes even though the status of the nodeclaim is:
- lastTransitionTime: "2024-07-21T08:59:41Z"
    message: AMIDrift
    reason: AMIDrift
    status: "True"
    type: Drifted

Karpenter not printing related logs
Expected Behavior:
The nodes should be drifted based on the budget policy.
Reproduction Steps (Please include YAML):
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
  name: <gp-name>
spec:
  disruption:
    budgets:
    - nodes: 1
    consolidationPolicy: WhenUnderutilized
    expireAfter: Never
  limits:
    memory: 150Gi
  template:
    metadata:
      labels:
        nodeGroup: <gp-name>
    spec:
      nodeClassRef:
        name: <gp-name>
      requirements:
      - key: karpenter.sh/capacity-type
        operator: In
        values:
        - spot
        - on-demand
      - key: node.kubernetes.io/instance-type
        operator: In
        values:
        - r5.xlarge
        - r5a.xlarge
        - m5.xlarge
        - m5a.xlarge
        - c5.xlarge
        - c4.xlarge
        - c4a.xlarge
        - m4.xlarge
        - r4a.xlarge
        - m5a.large
        - m5.large
        - m6a.large
        - m6i.large
        - m6a.xlarge
        - m6i.xlarge
        - c6a.xlarge
        - c6i.xlarge
      taints:
      - effect: NoSchedule
        key: nodeGroup
        value: <gp-name>

I tried to change the budgets - to 100% or even delete it completly.
The nodeclaim has a status of:
- lastTransitionTime: "2024-07-21T08:59:41Z"
    message: AMIDrift
    reason: AMIDrift
    status: "True"
    type: Drifted

But nothing is getting updated.
note: karpenter is working great and creating new nodes with the new AMI but the old ones not getting replaced.
Versions: 0.37.0

Chart Version: 0.37.0
Kubernetes Version (kubectl version): 1.30

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Fixed the issue, I had a pod with do-not-disrupt annotation, might be a good idea to explain why a node can't be drifted in this nodepool status


set region dynamically depending on region

The registry id contains the region.
123456789012.dkr.ecr.eu-central-1.amazonaws.com

when getting the token the region must match the repository
aws ecr get-login-password --region eu-central-1

Ideally we parse this info out of existing secret definition before
apiVersion: v1
kind: Secret
stringData:
  enableOCI: "true"
  name: helm-ecr
  type: helm
  url:<PHONE_NUMBER>12.dkr.ecr.eu-central-1.amazonaws.com

:tada: This issue has been resolved in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


why was slf4j-api added as a dependency?

i read: https://github.com/xerial/sqlite-jdbc/issues/997#issuecomment-1776972487
and: https://github.com/xerial/sqlite-jdbc/commit/32082c0504d02ee4b0b379b6cc4f26fc9fcf95ab
and: https://github.com/xerial/sqlite-jdbc/commit/89dbda1bb21bc7df004419edb32e26f17bbb0e19
but i can not see any reason this was done.
here it says "Read the Changelog", but there is nothing about slf4j-api in the changelog.
why was this added? can you link to documentation about the decision or some code in sqlite that requires it?
why was it not possible to make this optional?

it was added because it's used in almost any library, and it lets the application control logging. You can check https://github.com/xerial/sqlite-jdbc/issues/802

yes，it is trouble for me to add external dependencies. look it...

I must also raise a concern about this. JRuby does not ship with slf4j and we are very reluctant to add new dependencies. As a result, when we support SQLite for Ruby on Rails we will also have to ship an slf4j library.
Most users of slf4j I know of allow their code to fall back on j.u.logging so that upstream users do not have to introduce a new dependency. This also conflicts with users running on other logging backends, forcing the use of two different logging frameworks for no good reason.
Can we please reopen this discussion and figure out a way to remove the slf4j hard dependency from sqlite-jdbc?
See https://github.com/jruby/activerecord-jdbc-adapter/pull/1149#issuecomment-2250639765

In https://github.com/xerial/sqlite-jdbc/issues/802#issuecomment-1306572582 @gotson mentions that two other drivers also use slf4j: MySQL and H2. However on both of these databases, the slf4j usage and depedency is optional:

MySQL: https://dev.mysql.com/doc/connector-j/en/connector-j-logging-slf4j.html
H2: https://www.h2database.com/html/features.html#other_logging

Both databases default to a simple logger without external dependencies.

Neither MySQL nor H1 maven artifacts depend on slf4j directly.

@gotson It seems like this hard slf4j dependency is still causing trouble for people. Can we please have a discussion about making it optional? As I pointed out in #1094 (comment), none of the databases you used as examples actually have a hard dependency on slf4j.
The only option for users that want to avoid the dependency is to fork the project and push their own artifacts. Nobody wants to have to do that, especially me!

i have made a fork, check my profile

@gotson It seems like this hard slf4j dependency is still causing trouble for people. Can we please have a discussion about making it optional? As I pointed out in #1094 (comment), none of the databases you used as examples actually have a hard dependency on slf4j.
The only option for users that want to avoid the dependency is to fork the project and push their own artifacts. Nobody wants to have to do that, especially me!

if someone can send a PR where SLF4J is a soft-dependency, with a fallback on JUL, i will have a look at it.

if someone can send a PR where SLF4J is a soft-dependency, with a fallback on JUL, i will have a look at it.

@gotson Thank you for your flexibility! 🙇♂
@KweezyCode You have commits that remove SLF4J altogether, do you want to take a stab at making it optional? We might be able to get this resolved quickly!

if someone can send a PR where SLF4J is a soft-dependency, with a fallback on JUL, i will have a look at it.

@gotson Thank you for your flexibility! 🙇♂
@KweezyCode You have commits that remove SLF4J altogether, do you want to take a stab at making it optional? We might be able to get this resolved quickly!

I don't support the idea of bloating the software, so it's better to remove something from the library than to make something optional (which will make the code grow even more)

i hope we can meet on middle ground. making it optional sounds like a reasonable way to solve this issue.

@KweezyCode Optionally using slf4j has become pretty standard as a way to allow users to configure other kinds of loggers without the original author having to add support for them. It is in most cases the last logging framework you ever need to add, because it acts as a shim on top of all the other ones. This pattern is quite common and adds very little bloat.
I think we also need to be pragmatic here. The two other database drivers mentioned both include slf4j as an optional logging backend and @gotson is meeting us halfway here by accepting a patch to make it optional in this driver. I for one just want to get this patched and released so my users can upgrade.

Here is one serious problem I have hit today while upgrading to latest version: If you are running in a multi-classloader container like Tomcat and you have the JDBC driver in the server or common classloader to make it available to all webapps and the webapp uses SLF4J and its own SLF4J binding you will end with such a fuckup:
2024-09-12T19:55:45.438 INFORMATION [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/var/opt/tomcat-smartld/webapps/smartld%23%23029/WEB-INF/lib/logback-classic-1.2.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/ports/apache-tomcat-9.0.94/lib/jdbc/slf4j-simple-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

This is not funny and there is not way to solve. The only workaround is to move the JDBC driver into the webapp classloader.

I have pushed #1178 which makes slf4j optional. It is no longer a hard dependency, and when not present the implementation will fall back on java.util.logging, similar to other JDBC drivers.
I will work with the xerial/sqlite-jdbc maintainers to get that PR merged. Could this issue be reopened please?

@michael-o:

The JAR installed has all native libraries stripped because they aren't suited.

I think you should file a separate bug for this.

I have pushed #1178 which makes slf4j optional. It is no longer a hard dependency, and when not present the implementation will fall back on java.util.logging, similar to other JDBC drivers.
I will work with the xerial/sqlite-jdbc maintainers to get that PR merged. Could this issue be reopened please?

this issue will remain closed, it was a question. The PR being opened is enough.

#1178 was merged! We just need a release now.

thanks for everybody who helped solve this.

Thank you for the release!


refactor(ci): refactor and address security issues in workflows

This PR:

refactors the Actions workflows by adding build.yaml as a reusable workflow to check, test, and build the package. This workflow can be called from other workflows and avoids copy pasting the build code.
fixes the Dangerous-Workflow and Token-Permission issues reported by Scorecards.
bumps the Scorecard Actions workflow to 1.1.1.

And while we’re at it, these entries need a name: to be consistent with the rest of the job names:
https://github.com/jenstroeger/python-package-template/blob/3d6a52d212bae6c362219cdf2a8a7193ee3248a6/.github/workflows/build.yaml#L27
https://github.com/jenstroeger/python-package-template/blob/3d6a52d212bae6c362219cdf2a8a7193ee3248a6/.github/workflows/pull-request.yaml#L29
https://github.com/jenstroeger/python-package-template/blob/3d6a52d212bae6c362219cdf2a8a7193ee3248a6/.github/workflows/release-notifications.yaml#L22
Also, should we keep the names in normal case or title case?

@behnazh I think we could remove these two lines:
https://github.com/jenstroeger/python-package-template/blob/66347c69af6dd9c30b2b85ebe022d2844573faee/.github/workflows/pull-request.yaml#L33-L35


NextJs Codebase for PetMe

This setups up the project along with TailwindCSS.

@akshitagupta15june , once this is merged to react branch, I can create further issues and let more contributors help us with the migartion.

@akshitagupta15june Can you add the hacktoberfest-accepted label to this PR?


Button to delete bundle lists

In gitlab by @MJochim on Oct 25, 2016, 18:06

In gitlab by @MJochim on Nov 15, 2016, 15:29
done as per 01d29b36ee124d66bccbc2c71a7f0b946423c1c2


Incorrect address shown in Memory View

It looks like the top 32-bits gets cut off or something like that

Oops! Fixed in 79677875c4ef0e9f2bb9f993a7fb4d4828ee0855.


Slang Bindings

https://github.com/shader-slang/slang
I'd like to request LWJGL bindings for the C API of slang.
Here's an excerpt from their repository:

Slang is a shading language that extends HLSL with new capabilities for building modular, extensible, and high-performance real-time shading systems. This repository provides a command-line compiler and a C/C++ API for loading, compiling, and reflecting shader code in Slang or plain HLSL.

The extensions provided by the Slang language make it easier for you to write high-performance shader codebases with a maintainable and modular structure.

The interesting part for LWGL users here would be the GLSL/SPIR-V output for Vulkan, similar to what is currently possible by compiling shaders using the shaderc API bindings, but with slang it gets significantly easier and more intuitive to write and manage shaders for a project.
Here is a simple example on what can be done with slang and its API.
I know the project is in an early state but I'm personally pretty blown away how much it can do already from what I've tried and I'd love to see it as a building block in LWJGL.

I second that. Slang has developed into a rather mature toolset/library now, which is worth a replacement (or at least an alternative) for the toolchain provided by the Shaderc binding.

I am very interested in this. This would be great for working with applications that have multiple rendering backends. I am currently doing a lot of shaderx magic, which can sometimes lead to unexpected results due to a couple outstanding bugs and implementation details (it is getting a lot better though).

:thumbsup: Khronos Group Launches Slang Initiative
:thumbsdown: Slang "C" header


Window color gets polluted by colorscheme background color in Sierra

The latest release (snapshot 152) introduced a change that would make window frame take on the color of the colorscheme background color in Sierra and older macOS versions, which is not what you want. Fix it.
See https://github.com/macvim-dev/macvim/pull/791#issuecomment-444684490 for more initial report.

Seems to me it also broke background transparency in a window, is it possible? Should I file new issue for it?

@dond-- did you mean something like :set transparency=50? That should still work. This current issue is related to the change that tried to keep it working under the new renderer.
What OS are you using and are you on Homebrew or official binary release? Also can you paste the version string?

It basically works but percepted transparency value is somehow influenced by colorscheme background color, too, or at least it seems to. When I set transparency to value of 15, you'd see white background of this very window in attached picture but you won't see anything until I set transparency to about value of 45. (Colorscheme torte.)
When I change colorscheme to evening which has brighter background, say evening, it's enough to set transparency to value of 25 to get really transparent background. The darker the background in colorscheme, the higher value of transparency you have to set to get non-opaque window, seems to me. Definitely behaviour has changed somehow.
Official binary release 8.1.560, version tells: VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec  5 2018 11:32:33) – full output also attached.
Workaround is simple: set transparency to higher value to get same perception as before. I just wanted to point out it may be related to window/title bar color issue.

macvim-version-560.txt

OK, no problem. I don't have an opinion on this, just wanted to point out possible trouble. Thanks for your time, anyway.

@ychin Since you asked for opinions: while it is a welcome and interesting aesthetic change, the title must be readable. Maybe choosing its color automatically based on the background itself?
Also, having the option to switch back to the default gray bar would be excellent. I'm sure some people would prefer that. From what I understood it seems that Mojave still features the standard bar. Thus having this in the preferences would be ideal to make it consistent, giving the option to use background-based or standard bar under all systems.

Two other small details I may add is that the border which creates the highlight ends up being really bright:

And the title on fullscreen (after hovering over the menu-bar) has a bright outline:

I'm having the same issue (can't read the titlebar text).  I'd be happy with a "use default gray bar" option, or just a way of specifying the font color (since I can already specify the bg color).  Being able to choose fg/bg colors would be ideal though.

I also just realized the X's for the tabs aren't visible by default for me.  Looks like the default OS behavior is for them to show when you hover the tab, but in macvim, it doesn't show until I hover over where the X is.

I actually misspoke about the transparency issue. It is indeed a bug with multiple stacked layers causing you needing to set transparency much higher for it to be effective. I will need to investigate how to fix it properly and it’s Mojave only.
As for the title bar not showing, it’s a sort of different issue with us using a deprecated API that will be fixed soon (it only affects Sierra or below). I will need to test more to make sure it works well on all the supported OS versions.
Tab ‘X’ button not showing until you hover over it: That’s a different issue and has always been the case. It’s fixed in Mojave tabs but feel free to file a different issue for fixing it under pre-Mojave.

The issues should now be fixes. The Sierra titlebar should look like they did before, and Mojave transparency will blend as expected (e.g. set transparency=50 means half-half).


Fix issue 20287 - std.zip: Wrong compressed data

While working on issue 20027 I noticed this bug. It's there because someone assumed, that the namelength and extralength are the same in the central directory and the local file header. This is not necessarily the case, even in correct files (assuming, that my local zip utility produces correct files).

When would these values be different in the directory and the local header in a valid zip file?

The name fields should not differ, but can. It's one of the next issues I'll address to reject such files. The extra field contains 3rd party stuff, that's not completely covered in the specs. In this file, there are two entries: Extended time stamp (0x5455) and something, that I did not manage to find out yet (0x7875) which is the same in both places. The two entries differ in the time stamp where I don't know the exact format neither. But I guess it's more accurate at one place (9 bytes), than at the other (5 bytes). Or one is localised, one not, or such stuff.

What values does your zip utility produce?

The unittest is directly taken from that utility. You can find the two entries at position 0x22 and 0x75.


Neglect orphan key error if we are from a restart

What problem does this PR solve?
Issue Number: close #7728
Problem Summary:
After restart, orphan key info is cleared. So orphan keys can not be deduced.
Though we can persist the struct by RegionPersister, however it involves extra cost to do this check. Instead, we choose to neglect such case, and print some log instead.
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/merge

/run-integration-test


unable to sync with esp8266 via particle.xenon board

The miniesptool_esp8266progam.py works on a feather_m4 connected to an esp8266breakout, but I am unable to get it to work with a particle.xenon (nrf52840) board. it fails the sync() test at the start.
I have not tested this on other nrf52840 boards yet.

this has been solved too, i think! closing - re-open if its not fixed

yes -- fixed!


Fix device_state_attributes warnings

Fixes these kind of warnings since HA 2021.12: 2021-12-13 21:02:03 WARNING ... implements device_state_attributes. Please report it to the custom component author.

Thanks for your contribution !


When logging to admin ui with invalid user, user is presented the error stack.

Steps to reproduce the problem:

Log in to demo admin ui with my personal gmail account.

User is presented with following error:

Expected Behavior:
User should be presented with proper error message.

This issue is addressed now.
Following page is presented to the user:


Use recordings from url

The Dwingeloo telescopes hosts SigMF-files at https://data.camras.nl/satellites/raw/ and various other places at the starting url.
Also, we have data sets at zenodo, e.g. here.
We would like to load these SigMF files into IQEngine without downloading them to a local computer first.
It would be cool to be able to provide a link from data.camras.nl to iqengine with the url part of the address, so that it opens the recording straight away.

These are great!  Yeah I'll get them uploaded to IQEngine soon, and provide the URL format, it should look something like-
https://www.iqengine.org/api/datasources/gnuradio/iqengine/analog_FM_France.sigmf-data

Do the files need to be hosted on iqengine for this to work? Of course you're welcome to copy and host them (they're all CC-BY), but my intention for this ticket was that IQEngine could take sigmf hosted at an external URL.

Oh, no that doesn't work because IQEngine needs to be able to grab little portions of the datafile at a time, since it's only sending the IQ samples to your client that you're looking at.  Currently they have to be in azure blob storage, so I would have to copy them to either IQEngine's or GNU Radio's cloud storage.

@tammojan FYI I uploaded those recordings to space/Dwingeloo Radio Telescope/ within the GNU Radio tile, let me know if I should change anything

This looks great, thanks!


Equal, NotEqual primitives error when comparing date, object columns bug

Equal, NotEqual primitives error when comparing date, object columns bug

Bug/Feature Request Description
featuretools dfs run equal with column type date, object
make err
CODE
import featuretools as ft
from sklearn.datasets import load_boston
import pandas as pd
from datetime import datetime, timedelta
import random

def load_data_boston():
    boston = load_boston()
    x = pd.DataFrame(boston.data)
    x.columns = boston.feature_names
    y = pd.DataFrame(boston.target)
    y.columns = ['TARGET']
    return x, y

def _gen_datetime(min_year=1900, max_year=datetime.now().year):
    # generate a datetime in format yyyy-mm-dd hh:mm:ss.000000
    start = datetime(min_year, 1, 1, 00, 00, 00)
    years = max_year - min_year + 1
    end = start + timedelta(days=365 * years)
    return start + (end - start) #* random.random()

def make_date_column(data, row_number, column_name):
    result = data
    tmp_lst = []

    for i in range(row_number):
        append_data = _gen_datetime()
        tmp_lst.append(append_data)
    result.loc[:, column_name] = pd.Series(tmp_lst, index=result.index)
    return result

def run():
    x, y = load_data_boston()
    # convert CHAS, RAD to categorical
    x['B'] = x['B'].astype('object')
    make_date_column(x, len(x), 'date1')
    # make es
    es = ft.EntitySet(id='es')
    es.entity_from_dataframe(entity_id='data', dataframe=x, make_index=True, index='_index_')    # run dfs
    result, _ = ft.dfs(entityset=es, max_depth=1, target_entity='data', trans_primitives=[ "equal"])
    return result

if __name__ == "__main__":
    run()

err
Traceback (most recent call last):
  File "C:/Users/hyun/PycharmProjects/untitled/featuretools_bug.py", line 49, in <module>
    run()
  File "C:/Users/hyun/PycharmProjects/untitled/featuretools_bug.py", line 44, in run
    result, _ = ft.dfs(entityset=es, max_depth=1, target_entity='data', trans_primitives=[ "equal"])
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\utils\entry_point.py", line 40, in function_wrapper
    raise e
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\utils\entry_point.py", line 32, in function_wrapper
    return_value = func(*args, **kwargs)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\synthesis\dfs.py", line 276, in dfs
    progress_callback=progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\calculate_feature_matrix.py", line 281, in calculate_feature_matrix
    progress_callback=progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\calculate_feature_matrix.py", line 378, in calculate_chunk
    training_window=window)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\utils.py", line 32, in wrapped
    r = method(*args, **kwargs)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\calculate_feature_matrix.py", line 349, in calc_results
    matrix = calculator.run(ids, progress_callback=update_progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\feature_set_calculator.py", line 111, in run
    progress_callback=progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\feature_set_calculator.py", line 294, in _calculate_features_for_entity
    df = self._calculate_features(df, df_trie, not_full_entity_features, progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\feature_set_calculator.py", line 309, in _calculate_features
    df = handler(group, df, df_trie, progress_callback)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\featuretools\computational_backends\feature_set_calculator.py", line 422, in _calculate_transform_features
    values = feature_func(*variable_data)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\pandas\core\series.py", line 636, in __array_ufunc__
    self, ufunc, method, *inputs, **kwargs
  File "pandas\_libs\ops_dispatch.pyx", line 88, in pandas._libs.ops_dispatch.maybe_dispatch_ufunc_to_dunder_op
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\pandas\core\ops\common.py", line 64, in new_method
    return method(self, other)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\pandas\core\ops\__init__.py", line 529, in wrapper
    res_values = comparison_op(lvalues, rvalues, op)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\pandas\core\ops\array_ops.py", line 247, in comparison_op
    res_values = comp_method_OBJECT_ARRAY(op, lvalues, rvalues)
  File "C:\Users\hyun\PycharmProjects\untitled\python3.7_test\lib\site-packages\pandas\core\ops\array_ops.py", line 57, in comp_method_OBJECT_ARRAY
    result = libops.scalar_compare(x.ravel(), y, op)
  File "pandas\_libs\ops.pyx", line 84, in pandas._libs.ops.scalar_compare
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Expected Output
not err result
Output of featuretools.show_info()

[paste the output of ``featuretools.show_info()`` here below this line]
Featuretools version: 0.14.0
Featuretools installation directory: c:\users\hyun\pycharmprojects\untitled\python3.7_test\lib\site-packages\featuretools
SYSTEM INFO
python: 3.7.7.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
INSTALLED VERSIONS
numpy: 1.18.4
pandas: 1.0.3
tqdm: 4.46.0
PyYAML: 5.3.1
cloudpickle: 1.4.1
dask: 2.15.0
distributed: 2.15.2
psutil: 5.7.0
pip: 19.2.3
setuptools: 41.2.0

Thanks for the bug report and reproducible code, @hawksung1 .  This issue seems related to #845, in that it occurs when the Equal primitive fails to compare different data types.  One possible solution to handle both of these errors would be to change the Equal primitive so that instead of comparing any column to any other column, it only compares columns that have the same variable type (e.g. Equal(NOX, RM) would be a valid feature but Equal(NOX, date1) would not.  This would avoid these comparison errors

@rwedge
of course I can handle this problem as you said.
but I think that featuretools automatically compare which is possible.
It should not make errors. so I issued it as bug.
isn't it??
if not plz tell me
thanks

@hawksung1,
It is a bug, and we're looking into it


Navigating from the facility detail page to the search results page should maintain state

Navigating back to the search results should not run the search and should maintain scroll position.
Here is a screencast of the current interaction in which the search is rerun and state is lost.

Feedback on #2075 to be applied in this ticket:
Comments from the OAR team:

can we make the font for the OAR ID itself size 18 instead of 14
is it possible to pin the "Description" data point as the last data point and allow it to be the width of the 2 columns, instead of wrapping into the one column. E.g. see this facility's description (note that description only shows up for claimed facilities if the owner has entered a description)


Encryption key file portainer not present

Hi,
Every time when I open portainer I get a message that it isn't safe, so I tried to apply ssl, but now I get this:
2022/04/07 15:23:26 Warning: SSL is enabled by default and there is no need for the --ssl flag. It has been kept to allow migration of instances running a previous version of Portainer with this flag enabled
INFO 2022/04/07 15:23:26 Encryption key file `portainer` not present
INFO 2022/04/07 15:23:26 Proceeding without encryption key
INFO 2022/04/07 15:23:26 Loading PortainerDB: portainer.db
INFO 2022/04/07 15:23:26 Opened existing store
level=info msg="2022/04/07 15:23:26 [INFO] [main,compose] [message: binary is missing, falling-back to compose plugin] [error: docker-compose binary not found]"
2022/04/07 15:23:26 server: Reverse tunnelling enabled
2022/04/07 15:23:26 server: Fingerprint 3c:f6:78:08:df:15:5f:81:5f:9d:a7:34:66:29:e0:f6
2022/04/07 15:23:26 server: Listening on <IP_ADDRESS>:8000...
INFO 2022/04/07 15:23:26 [INFO] [cmd,main] Starting Portainer version 2.11.1

level=info msg="2022/04/07 15:23:26 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]"
level=info msg="2022/04/07 15:23:26 [DEBUG] [internal,init] [message: start initialization monitor ]"
level=info msg="2022/04/07 15:23:26 [INFO] [http,server] [message: starting HTTPS server on port :9443]"
level=info msg="2022/04/07 15:23:26 [INFO] [http,server] [message: starting HTTP server on port :9000]"

And I still get the issue, am I doing something wrong?
I use the command:
docker run -d -p 9443:9443 -p 8000:8000 \
    --name portainer --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    -v /etc/ssl/certs:/certs \
    portainer/portainer-ce:2.11.1 --ssl --sslcert /certs/portainer.crt --sslkey /certs/portainer.key

I am running portainer on my Raspberry Pi(4 4gb) running Debian 11 64bit(arm64).

This message is provided when database encryption is not enabled. It is informational, not an error, and not related to SSL. You can ignore it.
The certificate we generate for Portainer is a self-signed certificate, which browsers will flag as "unsafe" because they don't know the generation chain. If you want to avoid this message, you will need to install a "real" SSL certificate to replace the self-signed certificate.

2023/02/12 05:39AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:530 > **encryption key file not present | filename=portainer**
2023/02/12 05:39AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:549 > proceeding without encryption key |
2023/02/12 05:39AM INF github.com/portainer/portainer/api/database/boltdb/db.go:124 > loading PortainerDB | filename=portainer.db
2023/02/12 05:39:00 server: Reverse tunnelling enabled
2023/02/12 05:39:00 server: Fingerprint 8f:22:30:71:2a:1b:9b:e8:dd:32:1c:97:fb:1c:78:03
2023/02/12 05:39:00 server: Listening on <IP_ADDRESS>:8000...
2023/02/12 05:39AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:789 > starting Portainer | build_number=24941 go_version=1.19.3 image_tag=linux-amd64-2.16.1 nodejs_version=18.12.1 version=2.16.1 webpack_version=5.68.0 yarn_version=1.22.19
2023/02/12 05:39AM INF github.com/portainer/portainer/api/http/server.go:337 > starting HTTPS server | bind_address=:9443
2023/02/12 05:39AM INF github.com/portainer/portainer/api/http/server.go:322 > starting HTTP server | bind_address=:9000
2023/02/12 05:44AM INF github.com/portainer/portainer/api/adminmonitor/admin_monitor.go:61 > **the Portainer instance timed out for security purposes, to re-enable your Portainer instance, you will need to restart Portainer |**

portainer is not start, why ?

what about if we enabled ssl via reverse proxy and need portainer to just ignore ssl certs and just allow reverse proxy like nginx or traefik to terminate ssl?
how do we make portainer support his?

If you want to do SSL termination at your reverse proxy, you can choose to expose Portainer on port 9000 which is HTTP, and route your reverse proxy to that port instead. We have a couple of examples of doing this with Traefik and nginx in our documentation.


Typescript environment will prompt an error when using source?.uri

Bug description:
When I use the source?.uri attribute in the typescript environment, the typescript environment will prompt me that the uri attribute does not exist on the WebViewSource type and the WebViewSourceHtml type. Then I checked the WebViewSource type in lib/WebViewTypes.d.ts<line:143> in the npm source code. I found that the WebViewSource type used Union Types instead of Intersection Types when combining the WebViewUri type with the WebViewHtml type. It may cause this problem I encountered.
When I change the type combination method from | to &, the typescript environment will no longer prompt errors.
Docs:Union Types

Expected behavior:
The typescript environment will not prompt an error when referencing source?.url.
Screenshots/Videos:
Before modification:

After modification:

Environment:

react-native version: 0.64.1
react-native-webview version: 11.6.2

Why not & but |

Because the WebView expects either one type or the other. Using & would mean that it requires both the html and uri properties to be defined, which wouldn't make sense.
The trick here is that this isn't using discriminated unions, so there's not an easy way later for Typescript to know which type was actually used. A discriminating field could be added, but that creates a bit of a burden for the most common case where people are just passing in these props and not trying to read them like you're doing. As a workaround, you could just cast it (since you're checking the existence of uri already, rather than assuming that it's defined)...
if (!(props.source as WebViewSourceUri)?.uri) {

In terms of changes to the actual types, I've recently been experimenting with the technique of using never to allow telling Typescript about a property that shouldn't be there (there are various blogs and StackOverflow posts about this, I didn't come up with it). So, theoretically, there could be something like:
export interface WebViewSourceUri {
    /**
     * The URI to load in the `WebView`. Can be a local or remote file.
     */
    uri: string;
    /**
     * The HTTP Method to use. Defaults to GET if not specified.
     * NOTE: On Android, only GET and POST are supported.
     */
    method?: string;
    /**
     * Additional HTTP headers to send with the request.
     * NOTE: On Android, this can only be used with GET requests.
     */
    headers?: Object;
    /**
     * The HTTP body to send with the request. This must be a valid
     * UTF-8 string, and will be sent exactly as specified, with no
     * additional encoding (e.g. URL-escaping or base64) applied.
     * NOTE: On Android, this can only be used with POST requests.
     */
    body?: string;
    html?: never;
}
export interface WebViewSourceHtml {
    /**
     * A static HTML page to display in the WebView.
     */
    html: string;
    /**
     * The base URL to be used for any relative links in the HTML.
     */
    baseUrl?: string;
    uri?: never;
}

So that would still forbid setting both html and uri, but it would allow your code to query the presence of uri without casting.
It's a bit hacky and not-quite-intuitive though, so I'm not sure if it's desirable for the official react-native-webview types...


[Feature] s3 bucket exception handling

Jira Issue OSF-5442
Purpose
Periods in buckets are currently not allowed in Amazon s3 buckets on the OSF, although they are allowed by Amazon s3, because of restrictions in boto.  (for example "mybucket.with.periods") The new version of boto, currently in staging, will allow buckets with periods to be created, but not linked.  This will create a 500 error on the server and disrupts our error messaging.  The workaround is to set calling_format=OrdinaryCallingFormat() in S3Connection.  We already do this in bucket_exists.  (Thanks to @felliott for exploring this and being amazing).
Changes

set calling_format=OrdinaryCallingFormat() in S3Connection
set that periods are allowed in the exception handling.

Things to check

Buckets with and without periods should be added and linked.
Check case sensitivity for buckets, which should already be supported but just make sure.

Thanks to @felliott for his massive help with this.

Why is the revert patch in here?

Please remove the OrdinaryCallingFormat code from utils.bucket_exists, too.

Also, either in the commit message or the commit, can you document why we have lax vs. strict checking in the JS, and under what conditions we can get rid of lax checking?  It'll help future code divers.

There's a test failure in s3NodeConfig.test.js: 'alerts the user that the S3 addon does not support bucket names containing periods' is failing (expectedly) and needs to be updated.

Once @felliott 's review is address, this should be good to merge.

Hey Steve,
This isn't going to make the release.  It's gonna require some non-trivial fixes on the WB side in tandem.

Ah ok, thanks for the update.

@billyhunt @felliott Please resend this fix as a hotfix (or release/0.62.0 if impacts the codebase in a non-trivial way) when it is ready.


Pass shim stderr to console.error

We're missing stderr when --logs is used, but it's visible with apex logs. Seems like maybe LogResult just omits it?.. sure hope not, it could be the shim but that looks fine.

it hooks into console.log() I guess

So I guess we need to remove stdio piping and pass this data through console.log/console.error haha..

need to think about this some more, might be weird to forward each chunk to a distinct console.error/log call


refactor(API): rename _linsched to _lin_sched

[x] This contribution adheres to CONTRIBUTING.md.
[x] New tests have been created for any new features or regression tests for bugfixes.
[x] tox successfully runs, including unit tests and style checks (see CONTRIBUTING.md).

Coverage remained the same at 68.178% when pulling d920333a5f2bf4d4cbb9ad0301a45cc16442b8cc on d-bohls:renameLinSchedule into 730305b93b47917b47a8f0724d8f4a34b9b6fbd7 on ni:master.

Coverage remained the same at 68.178% when pulling d920333a5f2bf4d4cbb9ad0301a45cc16442b8cc on d-bohls:renameLinSchedule into 730305b93b47917b47a8f0724d8f4a34b9b6fbd7 on ni:master.


Fix a minor typo in gql_gen config

NONE

Looks like we have a flaky test. Is the expectation to re-run the test again?

Looks like we have a flaky test. Is the expectation to re-run the test again?

yeah, we usually restart-from-failed if that happens


My project is c#6.0, after deploying it as a windows service, after the project runs, the log file is not generated in the directory, but in the C:\Windows\System32 folder

The Serilog maintainers want you to have a great experience using Serilog.Expressions, and will happily track down and resolve bugs. We all have limited time, though, so please think through all of the factors that might be involved and include as much useful information as possible 😊.
ℹ If the problem is caused by a sink or other extension package, please track down the correct repository for that package and create the report there: this tracker is for the Serilog.Expressions package only.
Description
My project is c#6.0, after deploying it as a windows service, after the project runs, the log file is not generated in the directory, but in the C:\Windows\System32 folder
Reproduction
The json configuration is as follows:
"Serilog": {
    "Using": [
      "Serilog.Sinks.File",
      "Serilog.Sinks.Console",
      "Serilog.Settings.Configuration",
      "Serilog.Expressions"
    ],
    "MinimumLevel": {
      "Default": "Verbose",
      "Override": {
        "Microsoft": "Warning",
        "System": "Warning",
        "Microsoft.AspNetCore": "Error",
        "Microsoft.AspNetCore.Cors.Infrastructure.CorsService": "Error",
        "Microsoft.AspNetCore.Mvc": "Error",
        "Microsoft.AspNetCore.Hosting": "Error",
        "Microsoft.Hosting.Lifetime": "Information"
      }
    },
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】{Level}{NewLine}【消息】[{SourceContext}]{Message:lj}{NewLine}{Exception}{NewLine}"
        }
      },
      {
        "Name": "Logger",
        "Args": {
          "configureLogger": {
            "Filter": [
              {
                "Name": "ByIncludingOnly",
                "Args": {
                  "expression": "@l = 'Debug'"
                }
              }
            ],
            "WriteTo": [
              {
                "Name": "File",
                "Args": {
                  "path": "logs/Debug/.log",
                  "rollingInterval": "Day",
                  "retainedFileTimeLimit": "7.00:00:00",
                  "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】[{Level}]{NewLine}【消息】[{SourceContext}] {Message:lj}{NewLine}{Exception}{NewLine}"
                }
              }
            ]
          }
        }
      },
      {
        "Name": "Logger",
        "Args": {
          "configureLogger": {
            "Filter": [
              {
                "Name": "ByIncludingOnly",
                "Args": {
                  "expression": "@l = 'Information'"
                }
              }
            ],
            "WriteTo": [
              {
                "Name": "File",
                "Args": {
                  "path": "logs/Information/.log",
                  "rollingInterval": "Day",
                  "retainedFileTimeLimit": "7.00:00:00",
                  "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】[{Level}]{NewLine}【消息】[{SourceContext}] {Message:lj}{NewLine}{Exception}{NewLine}"
                }
              }
            ]
          }
        }
      },
      {
        "Name": "Logger",
        "Args": {
          "configureLogger": {
            "Filter": [
              {
                "Name": "ByIncludingOnly",
                "Args": {
                  "expression": "@l = 'Warning'"
                }
              }
            ],
            "WriteTo": [
              {
                "Name": "File",
                "Args": {
                  "path": "logs/Warning/.log",
                  "rollingInterval": "Day",
                  "retainedFileTimeLimit": "7.00:00:00",
                  "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】[{Level}]{NewLine}【消息】[{SourceContext}] {Message:lj}{NewLine}{Exception}{NewLine}"
                }
              }
            ]
          }
        }
      },
      {
        "Name": "Logger",
        "Args": {
          "configureLogger": {
            "Filter": [
              {
                "Name": "ByIncludingOnly",
                "Args": {
                  "expression": "@l = 'Error'"
                }
              }
            ],
            "WriteTo": [
              {
                "Name": "File",
                "Args": {
                  "path": "logs/Error/.log",
                  "rollingInterval": "Day",
                  "retainedFileTimeLimit": "7.00:00:00",
                  "outputTemplate": "【时间】{Timestamp:yyyy-MM-dd HH:mm:ss,fff}{NewLine}【等级】[{Level}]{NewLine}【消息】[{SourceContext}] {Message:lj}{NewLine}{Exception}{NewLine}"
                }
              }
            ]
          }
        }
      }
    ]
  }

Expected behavior
I guess it is because the project is running in windows service, so the running path is under the system32 folder path, so the log relative path configured is c:\windows\system32, I want to generate the log file in the directory where the program is running
Relevant package, tooling and runtime versions
C#6.0  Serilog.AspNetCore 6.1.0
Additional context

But I set the path to d:\projectService\Service\log\Error.log and there is no problem, can't I use a relative path?

Please don't cross post between here and stackoverflow https://stackoverflow.com/questions/75066312/serilog-is-made-as-a-logging-plugin-and-no-log-files-are-generated-in-the-project. I appreciate that it's frustrating that you don't have a solution yet, but if you're going to get an answer, it will be via SO.
Use of issues in this repo should be confined to reproducible actual bugs in Serilog.
What you are experiencing here is the intersection of two issues:

the permissions your code has available as a Service
the default directory

You're better off researching good approaches to that (I have not looked in recent times, so am not sure if there is a good article out there, but the chances there are - may people write services and want to write logs in them) and figuring out a good place to put the logs in the context of your overall app.
Serilog will work just fine once you establish a good place to put the logs and the permissions.


Won't charge anymore after extensive daily use

I've been using my teres every day since i got it and now i have to angle the charging port in weird ways for it to have contact and charge..
The issue is only on the male side so i just cut the cable and spliced a new connector with WAGO, but it's still pretty annoying..
Proposing for the next version to use more robust one

We also replace these connectors on the test computers from time to time. They indeed start to expire after around 1000 times plugging and unplugging.

We also replace these connectors on the test computers from time to time. They indeed start to expire after around 1000 times plugging and unplugging. -- @DanKoloff (https://github.com/OLIMEX/DIY-LAPTOP/issues/67#issuecomment-1733634230)

So USB-C next? Or is there any more rugged connector you can recommend? (making a new PCB for teres so brainstorm would help)

I use SAE 12v and IDE 12/5v.
I think with regard to ruggedness the key is to figure out how to get stress to load the casing rather than solder joints or contacts.

Considered won't fix


Our Menu

I made changes in 2nd line of Our Menu.

Redo this. It caused conflicts. Just copy & create a new PR.


pkg/actor(ticdc): stable tests by extending timeout

What is changed and how it works?
Close #3963
Check List
Tests

Unit test

Release note
None

Codecov Report

Merging #4071 (c4288df) into master (3873d39) will decrease coverage by 1.8921%.
The diff coverage is 67.0120%.

Flag
Coverage Δ

cdc
58.6600% <67.0120%> (+0.4234%)
:arrow_up:

dm
52.2367% <ø> (-3.7978%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #4071        +/-   ##
================================================
- Coverage   57.0741%   55.1820%   -1.8922%
================================================
  Files           478        486         +8
  Lines         56551      60025      +3474
================================================
+ Hits          32276      33123       +847
- Misses        20978      23535      +2557
- Partials       3297       3367        +70

/merge


Converting simple shapes (rect, arc, line, polyline, polygone) to path elements and merging.

Input:
<rect x="2" y="2" fill="#FFFFFF" width="2" height="2"/>
<rect x="2" y="6" fill="#FFFFFF" width="2" height="2"/>
<rect x="2" y="10" fill="#FFFFFF" width="2" height="2"/>
Paths:
<path fill="#fff" d="M2,2 h2 v2 h-2z"/>
<path fill="#fff" d="M2,6 h2 v2 h-2z"/>
<path fill="#fff" d="M2,10 h2 v2 h-2z"/>
Output:
<path fill="#fff" d="M2,2 h2 v2 h-2z M2,6 h2 v2 h-2z M2,10 h2 v2 h-2z"/>

Is it possible to turn this feature off?

@vedran-milic Run svgo with --disable convertShapeToPath.

@derhuerst Thanks

Is it posible to convert it the other way round:
I want to convert <path to <rect because ìn Inkscape <flowRoot> only works with rect properly but not with path.


Update persistence-services.md

Document to generate fewer localized views on H2, SQLite and Postgres

@stewsk - this is awaiting your review


progressive scan

Looks good. Couple of points.

I think scanOnce and scanProgressively can be unified, such that the former is defined in terms of the latter.
scanOnce and other methods have code to capture DynamoDB capacity consuming when debug logging is turned on.

I think you can merge now

Oh thanks, should be good now

:+1:
How urgently did you want to see this published in a new release?

It's not urgent, I manually build the mapper with the added scan

Ok, I’ll endeavor to cut a new release this weekend.


make it global

better support for npmts in global mode. only run local version when versions o not match.

will be realised with a separate package:
https://github.com/pushrocks/npmts-g


Support for vSphere dynamic provisioning?

I currently work with a bare metal Kubernetes cluster running on VMWare which supports StorageClasses for dynamic provisioning and I was curious if microk8s supports dynamic volume provisioning using StorageClass? Something along the lines of this: https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/storageclass.html.
Does anyone know if support exists already? I haven't found much online which leads me to believe support doesn't exist.

If the vsphere csi is installed, I don't see why MicroK8s cannot dynamically provision.
We have openebs addon which is basically using the dynamic provisioning.

@balchua Thanks for the tip - appreciate it!

For anyone else stumbling across this post, I was able to get this to work by following vmware's guide here: https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/


Facebook graph api version

When logging in to Facebook for the first time, you see an error message saying uProxy is using graph API v1.0, and needs to upgrade to v2 by 30th of April. We should move to v2 so users don't see this.

Can't reproduce


Move project to WebdriverIO Community Org

Hey @mikesalvia  ,
first off, thank you for creating this plugin and extending the WebdriverIO ecosystem!
I was wondering if you would be interested moving this repository into the WebdriverIO Community organisation. It would allow us to help maintain this package, automate a few things like releases and allow others to contribute to it and make the package even better. You would of course continue to have full access to it.
What do you think? Please let me know if you have any questions.

@christian-bromann This is a day is something I kind of hoped for as an engineer, and it is here. I have to say would not be possible without the fellow members of the JW Player Test Engineering organization (at the time of the release namely, @esaari & @aizaztoppa) as well as several contractors which make up our team. We have been really excited about the contributions as well as the depth in which we can apply Webdriver.IO to our functional test strategy.
The quick answer is yes, please, (insert taken my money meme here), however, this project was created during a Hackweek @ JW Player, therefore, in some ways, it isn't my full choice to move it.
That being said, I will today put into motion this request, which considering JW Player's dedication to open-source, I don't think will have much resistance.
I want to thank you for being supportive of the community at large and continually improving the Webdriver.IO framework!

And in my nervousness, I accidentally closed this, re-opened, standby for migration confirmation.

@christian-bromann I got partial permission we just would need to preserve the current MIT license of the project, is that OK? I wasn't sure what the policy and protocol are from your side.

is that OK?

Oh yeah, super ok. I am not planning to change much and I still would love if your team keeps maintaining the package. Moving them into a community org helps the project to better autogenerate documentation, ensure that bug fixes can be made and released without waiting for a single person to free up some time for open source work etc. It also will allow us core maintainer to better support when it comes to breaking changes and major version updates. You see this approach in other bigger OSS projects as well.
Here are the steps that are necessary to do this transition:

move this repository into the webdriverio-community organisation, see more information on that in the GitHub docs
then add wdio-user to the list of maintainer of the project on NPM

That should be it. Let me know if you have any questions. Thank you!

@christian-bromann I have a draft of a Medium article if you want to take a look at it. https://medium.com/jw-player-engineering/wdio-re-run-service-finds-a-new-home-in-the-webdriver-io-community-organization-cbc9136f95e9

Project migration has begun, will publish the Medium article later today.

@christian-bromann Hit a roadblock.

@mikesalvia please add wdio-user as NPM maintainer not GitHub user

Ahhh, perfect. The Medium article is live.

@christian-bromann User has been added as NPM maintainer! :-) Closing this...
Happy to be here! :-)

Awesome, welcome Mike!


Cryptic connection failure when server contains old password hashes

I was struggling to connect to database that was password-protected. get_conn() would always return the error:
IoError { failed to fill whole buffer }
Eventually I figured out it was because the particular user's account was still using the old pre-4.1, 16-byte password hash.
I was able to reset the password, upgrading it to the newer 4.1+ format, and then it would connect just fine.
This is an acceptable workaround for me, and probably good advice for database admin anyway. But this crate would be a little more friendly if it could handle the old format password - like the mysql cli does - or otherwise generate an error that describes the old password format as being unsupported.
(I tested this with both mysql & mysql_async. I've figured this common crate is probably where the issue lies. Apologies if I've reported this in the wrong place)
Ref: https://dev.mysql.com/doc/refman/5.6/en/password-hashing.html

Hi.
Seems like a bug to me. I believe it should have said something like "unknown authentication plugin old_mysql_password".
I want to reproduce this. Which mysql version do you use?

Thanks @blackbeam. The server I'm connecting to is MySQL 5.1 on CentOS 6 (yeah, I know...). mysql-5.1.73-8.el6_8.x86_64
I assumed this could be reproduced with a more current mysql by simply converting a password to the old hash:
SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('password');
but I guess it is quite possible that actually a compatibility issue with the old server version.

Fixed in v0.27.2


Added explicit casting for year and month in ArchiveController

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues
#142

👍


undefined is not an object (evaluating 'n.core.get')

Hello, dexie is great, I used to develop im system data storage, when I upgraded to V3, found that the iOS system below 10.3 version of the below bug：
TypeError
undefined is not an object (evaluating 'n.core.get')
----------------------------------
Table.prototype.get = function (keyOrCrit, cb) {
    var _this = this;
    if (keyOrCrit && keyOrCrit.constructor === Object) return this.where(keyOrCrit).first(cb);
    return this._trans('readonly', function (trans) {
      return _this.core.get({   // throw error
        trans: trans,
        key: keyOrCrit
      }).then(function (res) {
        return _this.hook.reading.fire(res);
      });

Is there a solution?  thanks

Check how you are calling Table.prototype.get(). Are you callling the function in an incorrect this context? Else, check if keyOrCrit is undefined when you call it. If so, this should have resulted in an error in previous versions of Dexie as well because undefined is not a valid key to get, but it may have given other error message.

Check how you are calling Table.prototype.get(). Are you callling the function in an incorrect this context? Else, check if keyOrCrit is undefined when you call it. If so, this should have resulted in an error in previous versions of Dexie as well because undefined is not a valid key to get, but it may have given other error message.

Thank you for your reply and I will check my business code


RequestInterception: request.continue does nothing when site requires client certificate

Steps to reproduce
Tell us about your environment:

Puppeteer version: 1.6.2
Platform / OS version: Windows 10
URLs (if applicable):
Node.js version: 8.11

What steps will reproduce the problem?
  const page = await browser.newPage()
  await page.setRequestInterception(true)

  page.on('request', interceptedRequest => {
    interceptedRequest.continue()
  })

  await page.goto(url)

where url points to a webstite requiring a client certificate
and the user manually press ok with the valid certificate in the certificates popup
What is the expected result?
page.goto should navigate to the page after the certificate is manually selected
What happens instead?
page stays on "about:blank"

This is a dupe of #1159.
try running with --enable-features=NetworkService as a woraround.


Analyzing information_schema based on window: startTime and endTime

with these command line options:
--read_from_info_schema
--read_from_info_schema_start_time "2023-08-15 09:00:00"
--read_from_info_schema_end_time "2023-08-16"
--read_from_info_schema_timeout_in_secs 60
--info_schema_table_name `region-us`.INFORMATION_SCHEMA.JOBS
--processing_project_id <my-project>
--output_table <my-project>.<my-dataset>.antipattern_output_table

Query on INFORMATION SCHEMA:
SELECT
  project_id,
  CONCAT(project_id, ":US.",  job_id) job_id,
  query,
  total_slot_ms / (1000 * 60 * 60 ) AS slot_hours,
  user_email
FROM
`region-us`.INFORMATION_SCHEMA.JOBS
WHERE
  creation_time BETWEEN '2023-08-15 09:00:00' AND '2023-08-16'
  AND total_slot_ms > 0
  AND (statement_type != "SCRIPT" OR statement_type IS NULL)
  AND (reservation_id != 'default-pipeline' or reservation_id IS NULL)
  AND query not like '%INFORMATION_SCHEMA%'
ORDER BY
  project_id, start_time desc

LGTM, I only left one comment on the timeout, once that is addressed we can merge

Thanks, addressed the comment.