Increasing stack size ?

Thank you for this work, this library is awesome !
I am using the 'esp32-ble-multiple' template to connect to 2 BMS (ebike batteries), and when I add too many sensors I get into the boot loop problem.
I tried increasing the stack size as you suggested here, but it did not help:
esphome:
  name: ${name}
  platformio_options:
    build_flags:
       - -DCONFIG_ARDUINO_LOOP_STACK_SIZE=65535
  comment: ${device_description}
  project:
    name: "syssi.esphome-jk-bms"
    version: 1.4.0

I also tried to set DARDUINO_LOOP_STACK_SIZE as I found a reference to this name during my search but it did not help either.
Can you spot something wrong with my declaration above ?
Thank you for your help !
My esphome version (docker): 2023.3.2

Sorry for the naive questions, I am not familiar with esphome/arduino ecosystem...
Should I reset the flash with esptool when changing such options, or is everything overwritten ayway ?
Just in case I also clean the ".esphome" folder from time to time... Not sure if that has any impact though :)

I don't know the answer of your question. It's possible the define doesn't work because it's for the Arduino framework only. May be the setting is different for ESP-IDF. Could you ask for help at the ESPHome discord channel and share the solution here?

Ok, I'll try to get some info and report back.

Sorry to hijack this thread by maybe my question fits here and I don't need to open another issue. 😬
Why are you using the framework setting esp-idf for this esphome component and why doesn't it work with the default (arduino)?
I tried it out of curiosity. It compiled but the esp did not react after the flash anymore so I had to reflash it via USB. ;)

In the past the Arduino framework wasn't able to handle the 300 bytes BLE notifications from the JK-BMS. It did crash on the first received message. Some people reported it does work in general know. The Arduino framework is an additional abstraction layer on top of ESP-IDF. I try to avoid additional/unnecessary layers if possible.


remove extra horizontal margin spacing in toc

Why:
Closes: #3388

What's being changed (if available, include any code snippets, screenshots, or gifs):
I'm not sure of the purpose of ltr:-_mr-4 rtl:-_ml-4. Can we remove these to eliminate extra horizontal margin spacing? It seems that after adding _px-4 in #3160, we no longer need to consider the ltr or rtl direction.
ltr

rtl

Check off the following:

[ ] I have reviewed my changes in staging, available via the View
deployment link in this PR's timeline (this link will be available after
opening the PR).

Very nice catch 😍 can confirm bug


Add bioclip command line tool

Adds python package with command line bioclip tool. The code in predict.py is based on app.py and supporting code from https://huggingface.co/spaces/imageomics/bioclip-demo, commit ef075807a55687b320427196ac1662b9383f988f, by @samuelstevens.
Excluding python 3.12 since pytorch doesn't support it.

I added commits to add an Acknowledgment section to the README.

I'm going to rename the package to pybioclip on this PR.


does not work with copy-webpack-plugin

My CopyWebpackPlugin comes before ImageminPlugin as instructed.
The images from CopyWebpackPlugin are nowhere to be found in the build folder, though.
When I remove the ImageminPlugin they are being copied successfully.

@FelschR please provide minimum reproducible test repo

/cc @FelschR friendly ping

A bit late, but just use: name: "[path][name].[ext]" to have the copied files replaced and optimized.


zenodo release failing with 404 can't find DOI

Hi, I updated to the main branch to pick up an update, but the action is failing due to some 404 error.
https://github.com/OSC/ondemand/actions/runs/7758926264/job/21161808177
It seems to be failing here, though it's not clear why (I'm guessing some Zenodo update?)
https://github.com/rseng/zenodo-release/blob/b12f099888f863857702b59985d45c8b32ca4032/scripts/deploy.py#L148-L155
I'll do some more digging and reply to this ticket with what I find.

There ended up being several issues here. I'll submit the patches shortly. I'll submit 1 PR with a few fixes or if you want to break them up into unique PRs for every issue that's fine with me too.

One PR is good for me!


Won't compile on .NET Core 3.0

the output exe/dll from a normal publish works, however.
D:\Project> dotnet warp -v                                                                                Running Publish...                                                                                Running dotnet publish -c Release -r win-x64 -o "D:\Project\dotnetwarp_temp" "D:\Project"
Microsoft (R) Build Engine version 16.3.0-preview-19426-01+faf5e5d75 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 67.4 ms for D:\Project\Project.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  Project-> D:\Project\bin\Release\netcoreapp3.0\win-x64\Project.dll
C:\Program Files\dotnet\sdk\3.0.100-preview9-014004\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(88,13): error MSB4064: The "ReferenceAssemblyPaths" parameter is not supported by the "ILLink" task. Verify the parameter exists on the task, and it is a settable public instance property. [D:\Project\Project.csproj]
C:\Program Files\dotnet\sdk\3.0.100-preview9-014004\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(87,5): error MSB4063: The "ILLink" task could not be initialized with its input parameters.  [D:\Project\Project.csproj]

Publish failed. Set --verbose flag for more info.

D:\Project> dotnet warp -v -l Normal                                                                                Running AddLinkerPackage...                                                                                Running dotnet add package --source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json ILLink.Tasks -v 0.1.5-preview-1841731
  Writing C:\Users\User\AppData\Local\Temp\tmpDBD1.tmp
info : Adding PackageReference for package 'ILLink.Tasks' into project 'D:\Project\Project.csproj'.
info : Restoring packages for D:\Project\Project.csproj...
info : Package 'ILLink.Tasks' is compatible with all the specified frameworks in project 'D:\Project\Project.csproj'.
info : PackageReference for package 'ILLink.Tasks' version '0.1.5-preview-1841731' updated in file 'D:\Project\Project.csproj'.
info : Committing restore...
info : Assets file has not changed. Skipping assets file writing. Path: D:\Project\obj\project.assets.json
log  : Restore completed in 68.07 ms for D:\Project\Project.csproj.

Running Publish...
Running dotnet publish -c Release -r win-x64 -o "D:\Project\dotnetwarp_temp" "D:\Project"
Microsoft (R) Build Engine version 16.3.0-preview-19426-01+faf5e5d75 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 16.84 ms for D:\Project\Project.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  Project -> D:\Project\bin\Release\netcoreapp3.0\win-x64\Project.dll
C:\Program Files\dotnet\sdk\3.0.100-preview9-014004\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(88,13): error MSB4064: The "ReferenceAssemblyPaths" parameter is not supported by the "ILLink" task. Verify the parameter exists on the task, and it is a settable public instance property. [D:\Project\Project.csproj]
C:\Program Files\dotnet\sdk\3.0.100-preview9-014004\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(87,5): error MSB4063: The "ILLink" task could not be initialized with its input parameters.  [D:\Project\Project.csproj]

Publish failed. Set --verbose flag for more info.

i think you can add /p:PublishSingleFile=true after dotnet command like :dotnet publish -c release -r linux-x64 /p:PublishSingleFile=true, Instead of using dotnet-warp at .net core 3.0

Yep, .NET Core 3.0 has this mechanism built in.
So it would be: dotnet publish -c Release -r linux-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true
Running external ILLink.Tasks on .NET Core 3.0 is not supported

Note: In previous versions of .NET Core, ILLink.Tasks was shipped as an external NuGet package and provided much of the same functionality. It is no longer supported – please update to the .NET Core 3.0 SDK and try the new experience!

Source: https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/

Yes but according to scott hanselman, this tool can get to 9 MB binaries but the dotnet core 3.0 trimmer only gets me to 30 MB.
So dotnet-warp is way better, you should make it work with dotnet core 3.0

ILLink.Tasks package, which dotnet-warp uses to pack, is not working on .NET Core 3.0. There is nothing I can do to make it work, as it was obsoleted for a reason - there is already built in mechanism for that. Sadly, ILLink.Tasks package was more configurable, and more aggresive trimming was possible.
You could try approach given here: https://www.hanselman.com/blog/MakingATinyNETCore30EntirelySelfcontainedSingleExecutable.aspx

Thanks!

dotnet publish also gives me the same error on :
 Version:   3.1.403
 Commit:    9e895200cd
 RID:         win10-x64
 OS Version:  10.0.19042


[BugFix] Revert behavior change of PR #49427 (backport #49998)

Why I'm doing:
This pr(https://github.com/StarRocks/starrocks/pull/49427) enable pindex if key size is fixed length size and greater than 128. However, pindex will reject this request and create table will failed.
What I'm doing:
Revert the behavior change.
Fixes #issue
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[x] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@mergify backport branch-3.1

@mergify backport branch-3.3

@mergify backport branch-3.4


AspNetCoreOpenApiDocumentGenerator, JsonExtensionData-Property gets listed with normal properties

Using this Model
public class MainDto {
    public string Name { get; set; }
    [JsonExtensionData] public IDictionary<string, object> ExtensionData { get; set; }
}

I get the following document with NSwag.AspNetCore 13.10.1
{
  "x-generator": "NSwag v<IP_ADDRESS> (NJsonSchema v<IP_ADDRESS> (Newtonsoft.Json v<IP_ADDRESS>))",
  "openapi": "3.0.0",
  "info": {
    "title": "My Title",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://localhost:5001"
    }
  ],
  "paths": {
    "/Main": {
      "post": {
        "tags": [
          "Main"
        ],
        "operationId": "Main_Create",
        "requestBody": {
          "x-name": "mainDto",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MainDto"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MainDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MainDto": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "extensionData": {
            "type": "object",
            "nullable": true,
            "additionalProperties": {}
          }
        }
      }
    }
  }
}

IMHO the extensionData property shouldn't be listed there, because it's only part of the model to deal with the additional JSON-properties in C#.
I am on .NET 5, using System.Text.Json.

Not sure System.Text.Json is fully supported on the server side and not sure that [JsonExtensionData] is supported...

Not sure System.Text.Json is fully supported on the server side and not sure that [JsonExtensionData] is supported...

I know this Attribute is supported. I also tried the Attribute from the Newtonsoft namespace, results in same document.

I know this Attribute is supported. I also tried the Attribute from the Newtonsoft namespace, results in same document.

System.Text.Json support might have missing, can you create a PR in NJsonSchema at least with a test reproducing this? There are already tests for stj - add it there

OK, I'll see what I can do next week.

Accidentally closed this issue, problem still exists.
If I understand correctly, System.Text.Json attributes are translated to Newtonsoft.Json.
This works in NJsonSchema when JsonSchemaGeneratorSettings.SerializerOptions has an instance of JsonSerializerOptions, see: https://github.com/RicoSuter/NJsonSchema/blob/4e6c37f1903092fcdb59c0dc46af944402b0e9dd/src/NJsonSchema/Generation/JsonSchemaGeneratorSettings.cs#L248-L265
AspNetCoreOpenApiDocumentGenerator does this translation itself with the same helper method, see: https://github.com/RicoSuter/NSwag/blob/d69085067b2261c75f3b49a0e43a4c26aa49d743/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs#L156
The generator only translates if it has not found an instance of JsonSerializerSettings (Newtonsoft), see: https://github.com/RicoSuter/NSwag/blob/d69085067b2261c75f3b49a0e43a4c26aa49d743/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs#L51
At the moment the generator always finds an instance of JsonSerializerSettings, so that the translation no longer takes place. You can see this behavior in this failing test: https://github.com/RicoSuter/NSwag/blob/4f345e1adc9c49d8498d4018250760aa69dd8dd2/src/NSwag.Generation.AspNetCore3.Tests/SystemTextJsonTests.cs
The test worked until these changes were made to NSwag.Generation.AspNetCore: https://github.com/RicoSuter/NSwag/commit/0bab28263a7575a57363b9f5db6607018aaa29e1#diff-aa4d151ab80805d72a0ed8b12f7ba32bb940a8580557bba1c32a781fdcc3455eR40-R57

/cc @trejjam

The strange thing here is that we do not register Newtonsoft but MvcNewtonsoftJsonOptions is still available in DI!?
Seems that this somehow changed with a recent commit.

Hope the linked commit fixes this, at least the test is now green.


Can use vscode debug？ Or do I have to use visual studio to debug?

Visual Studio Code works too. You must only attach to the running process.


fix(multi-combobox-options): Add z-index to multicombobox options

Description
Added z-index to multi-combobox options to fix the issue shown in the image:

Checklist

[ ] Change increases quality
[ ] Change is validated by tests
[ ] Change is readable and easy to understand
[ ] Documentation is updated
[ ] Security impact has been considered
[ ] Changes validated in runtime

Instead of adding a z-index to the component that can vary for each implementation, the better option here is to add a className prop for the options component. That reduces the risk of changing it again, when the index needs to be increased because the underlaying component has already a z-index 10. With the className prop the user can edit it to the correct index. @pallendes please share your thoughts on it.

Instead of adding a z-index to the component that can vary for each implementation, the better option here is to add a className prop for the options component. That reduces the risk of changing it again, when the index needs to be increased because the underlaying component has already a z-index 10. With the className prop the user can edit it to the correct index. @pallendes please share your thoughts on it.

Yep, that I like even more. I've made the changes 🙂


Import modules

When I type implements OnInit autocompletion works - it's great, but nothing appears on top of the imports.

You have to confirm completion https://github.com/neoclide/coc.nvim/wiki/F.A.Q#function-parameterauto-import-not-work-on-complete-done


Fix issue with checking segment load status

This PR addresses a bug with waiting for segments to be loaded. In the case of append, segments would be created with the same version. This caused the number of segments returned to be incorrect.
This PR changes this to keep track of the range of partition numbers as well for each version, which lets the task wait for the correct set of segments. The partition numbers are expected to be continuous since the task obtains the lock for the segment while running.

This PR has:

[ ] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Failure not related to this issue.
Merging them.


Crunchy sound artifact when playing chords with PolySynth

Describe the bug
Whenever I play a chord with Polysynth (default parameters) there is crunchy sound like a very fast trill. It is particularly noticeable when the attack is longer.
It seems to be occurring in Chrome but not in Firefox, although I hear different artifacts in Firefox (I'm not sure what's the correct term to describe them)
To Reproduce
In the official documentation for PolySynth V14.7.77 (https://tonejs.github.io/docs/14.7.77/PolySynth#maxPolyphony), modify the first example as:
const synth = new Tone.PolySynth().toDestination();
// set the attributes across all the voices using 'set'
synth.set({ envelope: {attack: 0.5 }});
// play a chord
synth.triggerAttackRelease(["C4", "E4", "A4"], 1);
The artifact can even be heard when playing octave ["C4", "C5"].
Expected behavior
I really don't know
What I've tried
I tried using different browsers, and the artifacts are different in Chrome and Firefox. There are less noticeable and different artifacts in Firefox.
Additional context
MacOSX 11.6
Chrome Version 95.0.4638.69 (Official Build) (x86_64)
Firefox 92.0.1

I think it's just clipping:
const synth = new Tone.PolySynth();
const vol = new Tone.Volume(-12).toDestination();
// set the attributes across all the voices using 'set'
synth.set({ envelope: {attack: 0.5 }});
synth.connect(vol)
// play a chord
synth.triggerAttackRelease(["C4", "E4", "A4"], 1);

It occurs at minimum volume on Chrome and not at all on Firefox even at higher volume, therefore I don't think it's clipping. The artifact occurs both on headphones of through the computer output. Although the previous artifacts I mentioned on Firefox might have been clipping. My bad.
To give you a better idea of what I mean, here's a reference clip of the sound playing on firefox:
https://sndup.net/5q6h
and the glitchy sound on Chrome:
https://sndup.net/37r3
Also I'm using  * Tone.js v14.8.32 *

What code did you use? Did you include Tone.Volume or Gain?

Nothing else. Actually, for the recording, I used the interactive documentation, with the code I provided above

I did, too, that's why I am asking: did you try the code I provided?

Ha, sorry I didn't try your code earlier. Indeed, that fixes it. Thank you!
I think we can close the issue. Although it is still curious that it works in Firefox without needing to pass the signal through a volume controller.
Anyway, thanks a lot.

Great! You can close this issue now.

:) Thanks again for your time @dirkk0.


⚠ Spryr has degraded performance

In 1272c3b, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 5266 ms

Resolved: Spryr performance has improved in ebb1354 after 10 minutes.


[AMBARI-23354] Enable or disable SSO for servces upon setting sso-configuration values

What changes were proposed in this pull request?
Enable or Disable SSO for services upon setting sso-configuration values.
The action performed by the user via the REST API to set value for the Ambari server sso-configuration value should trigger a call to the stack advisor and, using the returned recommendations, set properties needed to enable or disable SSO integration for the relevant services.

Added org.apache.ambari.server.controller.internal.AmbariServerSSOConfigurationHandler
Added org.apache.ambari.server.controller.internal.AmbariServerSSOConfigurationHandlerTest
refactored org.apache.ambari.server.controller.internal.AmbariServerConfigurationHandler for better code reuse
updated org.apache.ambari.server.controller.internal.AmbariServerConfigurationHandlerTest to match
Added logic to turn on and off Ambari's ability to manage SSO configurations using the sso-configuration/ambari.sso.manage_services value.
While handing SSO configuration changes, relevant services' configurations are automatically updated as needed.  Affected services require a restart.

How was this patch tested?

Updated and executed unit tests.

mvn  clean test package install -pl ambari-server
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49:48 min
[INFO] Finished at: 2018-03-25T20:12:58-04:00
[INFO] Final Memory: 237M/1138M
[INFO] ------------------------------------------------------------------------

Manually ensured that existing functionality was not broken
Manually ensure new logic behaved as expected

Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1367/
Test FAILed.
Test FAILured.

please retest this.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1386/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1406/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1446/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1469/
Test PASSed.


FromSql for f32 and f64 for Rust's Optionals on floats

I am opening this PR because when I work with Rust and tiberius, and I have some Option<f32> and Option<f64>,
row.get()  produces an Result::unwrap() on a None value.
I am not proud of the purposed solution, as is just a temporal fix. I would like that the dev team could take it as provisional, review my code and purpose a solution over this initial patch.

Please, if possible, link the PR to this (issue)[https://github.com/prisma/tiberius/issues/249].

...

A base test for null floats is added. I am not really sure how it should be implemented. Please, check it out, because I am not proficent enought on tiberius-
An test under the tests directories, on the query file is fixed now, that was testing a dynamic parameter binding with incorrect types.
I restored back the impls for XmlData

Closing in favor of https://github.com/prisma/tiberius/pull/253


Text box supporting

Suggest to add function "AddTextBox()" like "AddPicture()"

@coolboy0002001 Hi, I have add a new function AddShape() to support create preset geometry in XLSX. You can add text box by create a rect (rectangle) type shape.

It works and I want to know if I could set font-family and font-size.
xlsx.AddShape("Sheet1", "A2", `{"format":{"x_offset": 15, "y_offset": 10},"type":"rect", "text":"text","width": 60, "height": 35 }`)

I have added support for set font style of shape text.

Now AddShape() has been supported to insert a new line, note that the format set parameter has been changed.


Use the new, shorter link for downloading the install script

Fixes #2427
We can now use the shorter link to get the install script: https://scala-cli.virtuslab.org/get

thank you! :)


Overlapping Divs, Extra white space on left making the page scroll horizontally

Posting some screenshots. The page looks fine when on 67% font size, but breaks like below when viewed on 100%. There appears to be too much of whitespace on the left though while the page has a horizontal scroll bar.
My current resolution :
$ xdpyinfo | awk '/dimensions/ {print $2}'
1920x1080

There’s a min-width on body, so it shouldn’t wrap like this ideally. What browser is this?

I was using Brave. When tried on Firefox the horizontal scroll doesn't come up, but there is lot more room on the left and there is overlap of the group name div.


Editor Config Documentation

How can I find a description for each Configuration Setting in the CKEditor Provider Settings area?

For the editor config tab you can find the documentation in the CKEditor Documentation
https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html


Support port 0 in remoting

Fixes #48

👍 Can you get rid of the random port assigment in this example too?
https://github.com/AsynkronIT/protoactor-dotnet/blob/master/examples/Chat/Client/Program.cs#L11

Sure thing!

Ty :-)


⚠ Minecraft has degraded performance

In b2747bc, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1076 ms

Resolved: Minecraft performance has improved in c67a060.


Update which to 2.0.0

Fix #481 via https://github.com/npm/node-which/issues/37 via https://github.com/isaacs/isexe/commit/5c37a778b800f0ef2bb25cb1dd3a7addd4aad35c

when it's published that is..

Mind creating a new PR once which 2.0.0 is open?


how to debug in 'java main' way

as a spring boot project, it can be started as a java main application locally.
what's the way to debug my micro-services in local debug env with no kubernetes and no dockers ?

Are you asking how to debug your application without running inside kubernetes?  Or are you asking how to debug your application while it is running inside of kubernetes?

debug application without running inside kubernetes, just as a java application in my idea debug frame

I am confused as to how this has anything to do with Spring Cloud Kubernetes.

his mean is how can  run the application on windows 10  and work with the other module in kubernetes, i want to know too.


oracle security fixes

https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
I'm not really interested personally, but let me open a thread.  I've seen our Oracle MySQL version on the list, but there might be more.  (We use MariaDB by default.)

Both packaged versions of Oracle MySQL in nixpkgs have been updated past the version in this advisory. It's safe to close this issue.


Importing the Open Beer Database into OrientDB,but Import Beers Error

OrientDB Version: <2.2.37>
Java Version: <1.8>
OS:
Expected behavior
All beers shoud be imported
Actual behavior
only import 128 beers and has been running
G:\orientdb-community-importers-2.2.37\bin>oetl.bat G:/ori_op/beers.json
OrientDB etl v.2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.
2.x) https://www.orientdb.com
[file] INFO Load from file G:/ori_op/openbeerdb_csv/beerss.csv
[csv] INFO column types: {last_mod=ANY, abv=ANY, filepath=ANY, name=ANY, cat_id=
ANY, upc=ANY, id=ANY, brewery_id=ANY, style_id=ANY, descript=ANY, ibu=ANY, srm=A
NY}

2020-05-21 15:22:02:665 INFO  Configuration of usage of soft references inside o
f containers of results of SQL execution [OMemoryAndLocalPaginatedEnginesInitial
izer]
2020-05-21 15:22:02:668 INFO  Initial or maximum values of heap memory usage are
 NOT set, containers of results of SQL executors will NOT use soft references by
 default [OMemoryAndLocalPaginatedEnginesInitializer]
2020-05-21 15:22:02:668 INFO  Auto configuration of disk cache size. [OMemoryAnd
LocalPaginatedEnginesInitializer]
2020-05-21 15:22:02:703 INFO<PHONE_NUMBER> B/8115 MB/7 GB of physical memory were
detected on machine [ONative]
2020-05-21 15:22:02:703 INFO  Detected memory limit for current process is 85101
03552 B/8115 MB/7 GB [ONative]
2020-05-21 15:22:02:704 INFO  OrientDB auto-config DISKCACHE=5,612MB (heap=455MB
 direct=524,288MB os=8,115MB) [OMemoryAndLocalPaginatedEnginesInitializer]
2020-05-21 15:22:03:453 INFO  Storage 'plocal:../databases/openbeerdb' is opened
 under OrientDB distribution : 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc
73193, branch 2.2.x) [OLocalPaginatedStorage]
2020-05-21 15:22:04:114 INFO  BEGIN ETL PROCESSOR [OETLProcessor][file] INFO Rea
ding from file G:/ori_op/openbeerdb_csv/beerss.csv with encoding UTF-8

2020-05-21 15:22:04:115 INFO  Started execution with 1 worker threads [OETLProce
ssor]
2020-05-21 15:22:05:115 INFO  + extracted 0 rows (0 rows/sec) - 0 rows -> loaded
 0 vertices (0 vertices/sec) Total time: 1000ms [0 warnings, 0 errors] [OETLProc
essor]
2020-05-21 15:22:06:114 INFO  + extracted 0 rows (0 rows/sec) - 0 rows -> loaded
 0 vertices (0 vertices/sec) Total time: 2s [0 warnings, 0 errors] [OETLProcesso
r]
2020-05-21 15:22:06:979 SEVER Error during extraction: java.lang.RuntimeExceptio
n: java.io.IOException: (line 144) invalid char between encapsulated token and d
elimiter [OETLProcessor$OETLExtractorWorker]
2020-05-21 15:22:07:114 INFO  + extracted 128 rows (128 rows/sec) - 128 rows ->
loaded 38 vertices (38 vertices/sec) Total time: 3s [0 warnings, 0 errors] [OETL
Processor]
2020-05-21 15:22:08:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (90 vertices/sec) Total time: 4s [0 warnings, 0 errors] [OETLP
rocessor]
2020-05-21 15:22:09:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 5s [0 warnings, 0 errors] [OETLPr
ocessor]
2020-05-21 15:22:10:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 6s [0 warnings, 0 errors] [OETLPr
ocessor]
2020-05-21 15:22:11:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 7s [0 warnings, 0 errors] [OETLPr
ocessor]
2020-05-21 15:22:12:116 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 8s [0 warnings, 0 errors] [OETLPr
ocessor]
2020-05-21 15:22:13:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 9s [0 warnings, 0 errors] [OETLPr
ocessor]
2020-05-21 15:22:14:114 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 10s [0 warnings, 0 errors] [OETLP
rocessor]
2020-05-21 15:22:15:114 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 11s [0 warnings, 0 errors] [OETLP
rocessor]
2020-05-21 15:22:16:114 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 12s [0 warnings, 0 errors] [OETLP
rocessor]
2020-05-21 15:22:17:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 13001ms [0 warnings, 0 errors] [O
ETLProcessor]
2020-05-21 15:22:18:116 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 14001ms [0 warnings, 0 errors] [O
ETLProcessor]
2020-05-21 15:22:19:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 15001ms [0 warnings, 0 errors] [O
ETLProcessor]
2020-05-21 15:22:20:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 16001ms [0 warnings, 0 errors] [O
ETLProcessor]
2020-05-21 15:22:21:116 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 17001ms [0 warnings, 0 errors] [O
ETLProcessor]
2020-05-21 15:22:21:127 WARNI Received signal: SIGINT [OSignalHandler]
2020-05-21 15:22:21:128 INFO  Orient Engine is shutting down... [Orient]
2020-05-21 15:22:21:130 INFO  - shutdown storage: openbeerdb... [Orient]
2020-05-21 15:22:22:115 INFO  + extracted 128 rows (0 rows/sec) - 128 rows -> lo
aded 128 vertices (0 vertices/sec) Total time: 18001ms [0 warnings, 0 errors] [O
ETLProcessor]

Steps to reproduce
Run oetl.bat G:/ori_op/beers.json
beers.json :
{
"config" : { "haltOnError": false },
"source": { "file": { "path": "G:/ori_op/openbeerdb_csv/beerss.csv" } },
"extractor": { "csv": { "columns": ["id","brewery_id","name","cat_id","style_id","abv","ibu","srm","upc","filepath","descript","last_mod"] } },
"transformers": [
{ "vertex": { "class": "Beer" } },
{ "edge": { "class": "HasCategory", "joinFieldName": "cat_id", "lookup": "Category.id" } },
{ "edge": { "class": "HasBrewery", "joinFieldName": "brewery_id", "lookup": "Brewery.id" } },
{ "edge": { "class": "HasStyle", "joinFieldName": "style_id", "lookup": "Style.id" } }
],
"loader": {
"orientdb": {
"dbURL": "plocal:../databases/openbeerdb",
"dbType": "graph",
"classes": [
{"name": "Beer", "extends": "V"},
{"name": "HasCategory", "extends": "E"},
{"name": "HasStyle", "extends": "E"},
{"name": "HasBrewery", "extends": "E"}
], "indexes": [
{"class":"Beer", "fields":["id:integer"], "type":"UNIQUE" }
]
}
}
}

Hi,
The 2.2.x version is out of support since a while, please update to a more recent version.
Regards


Add Deltaglider from KerbalStuff

Actual Netkan work by the fabulous RedNeck, I'm just doing the gitomancy.
:)

And confirmed with RedNeck on IRC the file list looks good, so I'm merging away! :)


added remove flag

Pull Request Test Coverage Report for Build 50

15 of 15 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 90.524%

Totals

Change from base Build 46:
0.1%

Covered Lines:
363

Relevant Lines:
401

💛  - Coveralls


more work on biophysical functions

I've done some tidying and simplification of biophysical code and set up an example heat budget in the biophysical test. It seems to work but we should add in the same default values as in NicheMapR's ectoR_devel and check. Still needs a resp function. Have changed mass fluxes in evap to use the symbol J consistent with DEB theory.

It looks great to me!


NUL (0x00) characters error in sqlalchemy during parse (intro tutorial)

Hi,
I am having an issue running the CoreNLP parser on the intro tutorial.
After a long series of API calls to CoreNLP (seen in the terminal) the ipython script stop with the following NUL character error in sqlalchemy
CoreNLP shows a few warning  like `AVERTISSEMENT: Untokenizable:  (U+E007, decimal: 57351) but generally seems to work.
I use postgresql on a macbook under a python2 environment in conda.
Do you have any hint ?

`Clearing existing...
Running UDF...
ValueError                                Traceback (most recent call last)
 in ()
2
3 corpus_parser = CorpusParser()
----> 4 get_ipython().magic(u'time corpus_parser.apply(doc_preprocessor)')
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
2156         magic_name, _, magic_arg_s = arg_s.partition(' ')
2157         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2158         return self.run_line_magic(magic_name, magic_arg_s)
2159
2160     #-------------------------------------------------------------------------
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
2077                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2078             with self.builtin_trap:
-> 2079                 result = fn(*args,**kwargs)
2080             return result
2081
 in time(self, line, cell, local_ns)
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/IPython/core/magic.pyc in (f, *a, **k)
186     # but it's overkill for just that one bit of state.
187     def magic_deco(arg):
--> 188         call = lambda f, *a, **k: f(*a, **k)
189
190         if callable(arg):
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/IPython/core/magics/execution.pyc in time(self, line, cell, local_ns)
1174         if mode=='eval':
1175             st = clock2()
-> 1176             out = eval(code, glob, local_ns)
1177             end = clock2()
1178         else:
 in ()
/Users/thomaswolf/Documents/Thomas/Code/HF/snorkel/snorkel/udf.pyc in apply(self, xs, clear, parallelism, progress_bar, count, **kwargs)
38         print "Running UDF..."
39         if parallelism is None or parallelism < 2:
---> 40             self.apply_st(xs, progress_bar, clear=clear, count=count, **kwargs)
41         else:
42             self.apply_mt(xs, parallelism, clear=clear, **kwargs)
/Users/thomaswolf/Documents/Thomas/Code/HF/snorkel/snorkel/udf.pyc in apply_st(self, xs, progress_bar, count, **kwargs)
70
71         # Commit session and close progress bar if applicable
---> 72         udf.session.commit()
73         if pb:
74             pb.bar(n)
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in commit(self)
872                 raise sa_exc.InvalidRequestError("No transaction is begun.")
873
--> 874         self.transaction.commit()
875
876     def prepare(self):
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in commit(self)
459         self._assert_active(prepared_ok=True)
460         if self._state is not PREPARED:
--> 461             self._prepare_impl()
462
463         if self._parent is None or self.nested:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in _prepare_impl(self)
439                 if self.session._is_clean():
440                     break
--> 441                 self.session.flush()
442             else:
443                 raise exc.FlushError(
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in flush(self, objects)
2137         try:
2138             self._flushing = True
-> 2139             self._flush(objects)
2140         finally:
2141             self._flushing = False
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in _flush(self, objects)
2257         except:
2258             with util.safe_reraise():
-> 2259                 transaction.rollback(_capture_exception=True)
2260
2261     def bulk_save_objects(
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.pyc in exit(self, type_, value, traceback)
58             exc_type, exc_value, exc_tb = self._exc_info
59             self._exc_info = None   # remove potential circular references
---> 60             compat.reraise(exc_type, exc_value, exc_tb)
61         else:
62             if not compat.py3k and self._exc_info and self._exc_info[1]:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/session.pyc in _flush(self, objects)
2221             self._warn_on_events = True
2222             try:
-> 2223                 flush_context.execute()
2224             finally:
2225                 self._warn_on_events = False
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.pyc in execute(self)
382                 while set_:
383                     n = set_.pop()
--> 384                     n.execute_aggregate(self, set_)
385         else:
386             for rec in topological.sort(
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.pyc in execute_aggregate(self, uow, recs)
640                              [self.state] +
641                              [r.state for r in our_recs],
--> 642                              uow)
643
644     def repr(self):
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/persistence.pyc in save_obj(base_mapper, states, uowtransaction, single)
179         _emit_insert_statements(base_mapper, uowtransaction,
180                                 cached_connections,
--> 181                                 mapper, table, insert)
182
183     _finalize_insert_update_commands(
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/orm/persistence.pyc in _emit_insert_statements(base_mapper, uowtransaction, cached_connections, mapper, table, insert, bookkeeping)
797
798             c = cached_connections[connection].
--> 799                 execute(statement, multiparams)
800
801             if bookkeeping:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/base.pyc in execute(self, object, *multiparams, **params)
943             raise exc.ObjectNotExecutableError(object)
944         else:
--> 945             return meth(self, multiparams, params)
946
947     def _execute_function(self, func, multiparams, params):
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyc in _execute_on_connection(self, connection, multiparams, params)
261     def _execute_on_connection(self, connection, multiparams, params):
262         if self.supports_execution:
--> 263             return connection._execute_clauseelement(self, multiparams, params)
264         else:
265             raise exc.ObjectNotExecutableError(self)
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/base.pyc in _execute_clauseelement(self, elem, multiparams, params)
1051             compiled_sql,
1052             distilled_params,
-> 1053             compiled_sql, distilled_params
1054         )
1055         if self._has_events or self.engine._has_events:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
1187                 parameters,
1188                 cursor,
-> 1189                 context)
1190
1191         if self._has_events or self.engine._has_events:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context)
1394                 )
1395             else:
-> 1396                 util.reraise(*exc_info)
1397
1398         finally:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args)
1157                         statement,
1158                         parameters,
-> 1159                         context)
1160             elif not parameters and context.no_parameters:
1161                 if self.dialect._has_events:
/Users/thomaswolf/anaconda/envs/python2/lib/python2.7/site-packages/sqlalchemy/engine/default.pyc in do_executemany(self, cursor, statement, parameters, context)
465
466     def do_executemany(self, cursor, statement, parameters, context=None):
--> 467         cursor.executemany(statement, parameters)
468
469     def do_execute(self, cursor, statement, parameters, context=None):
ValueError: A string literal cannot contain NUL (0x00) characters.
`

To be precise, the intro tutorial works with SQLite but not PostgreSQL in my case

Hi @thomwolf,
So it seems that Postgres doesn't allow these characters (e.g. see http://stackoverflow.com/questions/28813409/are-null-bytes-allowed-in-unicode-strings-in-postgresql-via-python/28816294#28816294, or https://www.postgresql.org/docs/9.2/static/functions-string.html).  But I'm confused as to where this is coming from; are you just running the basic tutorial, or did you modify any of the data?

Hi, thanks for the reply.
I was just following the intro tutorial and uncommented the line os.environ['SNORKELDB'] = 'postgres:///snorkel-intro' to test it (and installed psycopg2 as requested)
The directory comes straight from a git clone

I got the same error message that tells ValueError: A string literal cannot contain NUL (0x00) characters. when I enable os.environ['SNORKELDB'] = 'postgres:///snorkel-intro'.
In addition, when I deleted all non-ascii characters from data/articles.tsv, this error message did not happen.

CoreNLP will sometimes insert non-breaking characters into parsed text. You can disable this now by forcing strict Penn TreeBank parsing as follows:
corpus_parser = CorpusParser(strict_ptb=True)
corpus_parser.apply(doc_preprocessor, parallelism=10)

You may still have to scrub input documents, but this fixed some issues for us.

Quick note: the functionality @jason-fries mentioned has been temporarily removed, but should be restored soon

Even  I have the same issue .. when I tried this
corpus_parser = CorpusParser(strict_ptb=True)
corpus_parser.apply(doc_preprocessor, parallelism=10)
I got this error
TypeError                                 Traceback (most recent call last)
 in ()
1 from snorkel.parser import CorpusParser
2
----> 3 corpus_parser = CorpusParser(strict_ptb=True)
4 #%time corpus_parser.apply(doc_preprocessor)
5 corpus_parser.apply(doc_preprocessor, parallelism=10)
TypeError: init() got an unexpected keyword argument 'strict_ptb'

@arjasethan1 see the note above. The strict_ptb option will be restored soon.

The recent parser refactor should fix this issue.

@jason-fries @henryre What's the status here?

For anyone who runs into this, if the strict_ptb option is still disabled, I ran the following command to remove all non-ASCII characters from data/articles.tsv.
perl -pi -e 's/[^[:ascii:]]//g' filename

Additionally, I used this to run it in parallel with Postgresql:
from snorkel.parser import CorpusParser

corpus_parser = CorpusParser()
%time corpus_parser.apply(doc_preprocessor, parallelism=20)

Thanks for noting this!
On Tue, Jun 13, 2017 at 7:28 AM Matt Morgis<EMAIL_ADDRESS>wrote:

For anyone who runs into this, if the strict_ptb option is still
disabled, I ran the following command to remove all non-ASCII characters
from data/articles.tsv.
perl -pi -e 's/[^[:ascii:]]//g' filename
Additionally, I used this to run it in parallel with Postgresql:
from snorkel.parser import CorpusParser
corpus_parser = CorpusParser()%time corpus_parser.apply(doc_preprocessor, parallelism=20)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HazyResearch/snorkel/issues/587#issuecomment-308134400,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgw_cRKd_gcbAsYZDJ8dtqVQH3-_nHtks5sDpxvgaJpZM4MuBns
.

Hi @MattMorgis,
The strict_ptb functionality is actually implemented -- we just removed the shortcut parameter. You just need to manually initialize the annotator options as follows:
annotators=['tokenize', 'ssplit', 'pos', 'lemma', 'depparse', 'ner']
annotator_opts = {}
annotator_opts['tokenize'] = {"invertible": True,
                              "normalizeFractions": False,
                              "normalizeParentheses": False,
                              "normalizeOtherBrackets": False,
                              "normalizeCurrency": False,
                              "asciiQuotes": False,
                              "latexQuotes": False,
                              "ptb3Ellipsis": False,
                              "ptb3Dashes": False,
                              "escapeForwardSlashAsterisk": False,
                              "strictTreebank3": True}

corenlp_server = StanfordCoreNLPServer(annotators=annotators,
                                       annotator_opts=annotator_opts,
                                       version="3.6.0", num_threads=4)
corpus_parser = CorpusParser(corenlp_server)
corpus_parser.apply(doc_preprocessor, parallelism=1)


SystemAudioVolume not working in Yosemite

Disabling the startup chime has stopped working with Yosemite, I'm afraid. Or at least I can't make it work.
Running sudo nvram SystemAudioVolume=" " works as expected since the new value is reflected in sudo nvram -p. However, upon reboot, the startup chime comes to greet me as usual.
Running sudo nvram -p afterwards shows that the value has gone back to the default L, so it would seem as if Yosemite resets the value to its default on reboot and before the chime, so the change is never made effective.
I've found this question in AskDifferent, but they haven't concluded anything. Maybe somebody here faced the same problem with better luck?

try to use sudo nvram SystemAudioVolume=%00 instead.
this worked for me.

Maybe you already know this: ultimately this sound is supposed to be a better alternative to the old 'successful POST' beep that PCs would make (I still have a system that does that when the speaker is plugged in to the motherboard). It represents a successful startup.
I agree it is very annoying, especially out in public when your system blasts it based on the last volume you had enabled, and not even headphones stop it.
I don't know why but I feel like this could be model specific and not necessarily a hard set value for all machines, or there just is not a way. So if some are saying that some value works, ask exactly what kind of Mac they have. I have a Mac Pro 2014 and 2 MacBook Pros (one 2012, one 2014), and the value being a single space has not worked consistently. %00 not sure yet (used to use this with a 2012 MacBook Air and it seemed to work). And like the post you linked to, many of the existing packages like StartNinja have not worked for me especially since Yosemite.

sudo nvram SystemAudioVolume=%00 did finally work for me, but only the first time I reboot after running it. Then, the value is restored back to [ and the chime comes back thereafter. My laptop is MacBook Pro 2012.

@OmeGak another idea would be to write a .plist in your /Library/LaunchDaemons which runs the command on every Boot.
it should look like this:
<dict> <key>ProgramArguments</key>   <array>     <string>/usr/sbin/nvram</string>     <string>SystemAudioVolume</string>     <string>%00</string>   </array> <key>RunAtLoad</key>   <true/> </dict>
i'm not sure if this will work, you have to test it.

In many cases I have set up my boot up volume manually by:

Unplug all external soundcards and headphones.
Log out to login screen.
Adjust the volume to your liking. That volume will be your boot up volume.

Just to clarify that setting the volume is by no means a quirck, it is there by design.

While distilling my own dotfiles I also stumbled upon this problem. As I base mine on @mathiasbynens, I will share the result of my research here.

@xinput Unfortunately, adding plist with such settings does not solve the problem, even if I add <string>SystemAudioVolumeDB</string> <string>%00</string> to array of options. Of course, tried different options: "  ", %00, %80, %01 and couple of more.
doing sudo nvram SystemAudioVolumeDB="<option_here>", where <option_here> are the values used in point above, returns success, I can verify it by running sudo nvram -p | grep SystemAudioVolume
Setting both SystemAudioVolume and SystemAudioVolumeDB with any of the value does not mute the chime

My MBP is MacBook Pro i7, MBP112.0138.B14, currently Yosemite OS X 10.10.3 (14D136) but it didn't work with Mavericks too.
There is a less-than-perfect option to use some "auto mute" 3rd party software that would automatically mute the sound before logout / restart / shutdown event. Yeah, you still need to enable the sound after booting but it's better than annoying everyone if the office.

any updates on this?

Thank @mirfilip. Following command did trick on my iMac 2010.
sudo nvram SystemAudioVolumeDB=0
sudo nvram SystemAudioVolume=%dd


Hash[] vs to_h

A lot of people still use pre-2.4 Hash[*array] instead of array.to_h. I am surprised Rubocop doesn't catches this, maybe I am missing something? :)
If not, I'll probably be able to provide a PR.

Good idea. PR welcome!

Good idea. PR welcome!

OK then, #9478

OK then, #9478


Is it possible to support array of organization in the userinfo?

I know that now userinfo already has organization field, when I use casdoor to login to harbor, I found that harbor can't recognize organization, because harbor only recognize type []string, so I wonder if casdoor can add organizations field with type []string, so that it is more applicable in more sites.

@robincodex is this organizations field part of any standards like OIDC? If yes, please provider a reference URL.
And what should be filled into []string? Only one element (aka the organization)?

@robincodex is this organizations field part of any standards like OIDC? If yes, please provider a reference URL.
And what should be filled into []string? Only one element (aka the organization)?

Sorry, I don't understand the OIDC standards, maybe it's the groups field? It seems Azure is using the groups field, because I saw this https://github.com/goharbor/harbor/issues/17998.

Fixed in: https://github.com/casdoor/casdoor/commit/7298d138bc2bd189dafa3829bd2338689d0bc400

Thank you.


Pending invitation for @rizel-test-user

Describe the bug
adsf
Steps to reproduce
adsfas
Affected services
slaybot
Platforms
Tablet
Browsers
Chrome
Environment
Production
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@rizel-test-user has been added as a member of this repository. Please check your email or notifications for an invitation.

@rizel-test-user is already a member of this repository.

@rizel-test-user is already a member of this repository.


Overwrite Origin header

Hi
Currently in Electro the header: Origin cannot be set, if you make an ajax call to a website the Origin will be Origin: file:// which you can get blocked for this.
The error it's following: Refused to set unsafe header "Origin"

This looks very similar to https://github.com/atom/electron/issues/2245 which talks about limitations in Chrome's security policy regarding this.
You might want to use a node module to make requests to get around any Chrome limitations, closing this out.


I am calculating X,Y,Z by using Latitude and Longitude

Hi, I am calculating [X, Y, Z]by using Latitude and Longitude. I want to place text node in that position now. But when I place the object in those positions, I am not able to view the text node.
Should I need to reset my current position using the same method used for objects? How to reset current position of the camera to specific XYZ position?
Link used to calculate XYZ by lat and long: https://github.com/mattholl/geo-to-cartesian/blob/master/index.js
Note: I convert link code into Java.

Hi @deshmukhrohit11,
It seems like the link you provided translates lat/long into 2d projected coordinates. Do you know if those coordinates are in meters? If so, you'll need to take those coordinates and translate them again into AR space to properly have it display.
To do this you you'll need to do the same transformation of the devices location and it's lat/long
Then you'll subtract the position of your object in cartesian coords from the the device cartesian position to get the location in AR space in meters.
So the math would like something below.
// translate object card to xy
var objPos = geoToCartesian.fromLatLngToPoint({lat: -27.470127, lng:<PHONE_NUMBER>});

// translate current device position to a lat/lng
var currentDevicePos = geoToCartesian.fromLatLngPoint({lat:currentDeviceLat, lng:currentDeviceLong});

var objFinalPosX = objPos.x - currentDevicePos.x;
var objFinalPosY = objPos.y - currentDevicePos.y;

// now you'll have to calibrate around the the initial compass of the device and rotate the obj final pos to appropriately account for that.

Let me know if this helps or you need more info. Thanks!

@VikAdvani : Thank you for your help.
Can you please tell me how change camera position to some specific location? When I change the position of the object. I am not able to see the object.

Hello @deshmukhrohit11
How do you convert @VikAdvani 's suggestion?
Could you show me?

@VikAdvani @deshmukhrohit11  can you explain about the device compass degree? How do I get it? what library do I use to get it?

Fixed my issue, I used magneto meter and wrong my custom logic to get the compass heading degree.

Fixed my issue, I used magneto meter and wrong my custom logic to get the compass heading degree.

I have a heck of a time getting good compass results in Android.  Can you tell me what you used to get a good result?  I've tried rotation_vector, magneto, etc.
Also, can you tell me how you translated the compass heading degree to fix the position properly for objects, camera, etc?


Connect the Personal Data Server with external UIO websites (resolves #20)

This pull request is based off the other pull request https://github.com/fluid-project/personal-data-server/pull/18, which should be reviewed and merged first.
This is the diff view between #18 and this pull request for code reviews.
This pull request is to resolve https://github.com/fluid-project/personal-data-server/issues/20.

@amb26 thanks for suggestions. All comments are addressed. Ready for another review.


[Docs] MovR Tutorial for Peewee

Background: https://airtable.com/tblD3oZPLJgGhCmch/viw1DKmbKhg2MIECH/reckO76try3ct9rd3
Description: CockroachDB now provides application code and documentation for using MovR with Peewee
Each ORM has a simple getting started guide. This is great to unblock basic usage by doesn't provide extensive guidance to application developers for how to use CockroachDB with a robust application.
Team: Andrew Woods, Rafi Shamim, Eric Harmeling
Github Tracking Issue:

This isn't happening for 20.1.
Note We have a a separate issue for the general "Build an App" tutorial for this ORM.


Reading and writing in sync mode problems after update to 1.4

Describe the bug
I'm seeing issues in both reading data and writing data after updating this library from 1.3.3 to 1.4.2 (I think also an earlier 1.4.x version had similar issues).
For reading I randomly see the following issue (I use sync reading):
System.ArgumentException: BUG: buffer must have length BlockSize
  at ICSharpCode.SharpZipLib.Tar.TarBuffer.ReadBlockIntAsync (System.Byte[] buffer, System.Threading.CancellationToken ct, System.Boolean isAsync) [0x00023] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully () [0x0001b] in <c50882760828481c927e00b7db67d1a5>:0
  at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult () [0x00000] in <c50882760828481c927e00b7db67d1a5>:0
  at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntryAsync (System.Threading.CancellationToken ct, System.Boolean isAsync) [0x0016a] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x00022] in <c50882760828481c927e00b7db67d1a5>:0
  at System.Runtime.CompilerServices.ValueTaskAwaiter`1[TResult].GetResult () [0x00000] in <c50882760828481c927e00b7db67d1a5>:0
  at ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry () [0x00015] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at (wrapper remoting-invoke-with-check) ICSharpCode.SharpZipLib.Tar.TarInputStream.GetNextEntry()
  at Save.LoadDataFromFile (System.String file, System.Boolean info, System.Boolean save, System.Boolean screenshot) [0x0018e] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:363
  at Save.LoadFromFile (System.String file, System.Boolean info, System.Boolean save, System.Boolean screenshot, System.Action readFinished) [0x00035] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:281
  at Save.LoadFromFile (System.String saveName, System.Action readFinished) [0x00008] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:89
  at InProgressLoad.Step () [0x00097] in /home/hhyyrylainen/Projects/Thrive/src/saving/InProgressLoad.cs:101

I assume the exception BUG: buffer must have length BlockSize means that there is likely a bug in this library?
The other issue is in writing data, I use this in a game using Godot engine which means that the mono runtime is used, which might be the cause of this exception:
System.TypeInitializationException: The type initializer for 'ICSharpCode.SharpZipLib.Zip.ZipStrings' threw an exception. ---> System.EntryPointNotFoundException: GetCPInfoExW assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Kernel32.GetCPInfoExW(uint,uint,Interop/Kernel32/CPINFOEXW*)
  at Interop+Kernel32.TryGetACPCodePage (System.Int32& codePage) [0x00000] in <8020ff214f044836812da4de6be2aa56>:0
  at System.Text.CodePagesEncodingProvider.get_SystemDefaultCodePage () [0x00000] in <8020ff214f044836812da4de6be2aa56>:0
  at System.Text.CodePagesEncodingProvider.GetEncoding (System.Int32 codepage) [0x00011] in <8020ff214f044836812da4de6be2aa56>:0
  at System.Text.EncodingProvider.GetEncodingFromProvider (System.Int32 codepage) [0x00017] in <5cf9631a76c548989e3186162d571fee>:0
  at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x00000] in <5cf9631a76c548989e3186162d571fee>:0
  at ICSharpCode.SharpZipLib.Zip.StringCodec.get_SystemDefaultEncoding () [0x00000] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at ICSharpCode.SharpZipLib.Zip.StringCodec.get_Default () [0x00000] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at ICSharpCode.SharpZipLib.Zip.ZipStrings..cctor () [0x00000] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
   --- End of inner exception stack trace ---
  at ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream..ctor (System.IO.Stream baseOutputStream, ICSharpCode.SharpZipLib.Zip.Compression.Deflater deflater, System.Int32 bufferSize) [0x00007] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at ICSharpCode.SharpZipLib.GZip.GZipOutputStream..ctor (System.IO.Stream baseOutputStream, System.Int32 size) [0x00014] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at ICSharpCode.SharpZipLib.GZip.GZipOutputStream..ctor (System.IO.Stream baseOutputStream) [0x00000] in <82d3b1a41c8a4daeb7a8d496582b1183>:0
  at (wrapper remoting-invoke-with-check) ICSharpCode.SharpZipLib.GZip.GZipOutputStream..ctor(System.IO.Stream)
  at Save.WriteDataToSaveFile (System.String target, System.String justInfo, System.String serialized, Godot.Image screenshot) [0x00049] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:252
  at Save.WriteRawSaveDataToFile (SaveInformation saveInfo, System.String saveContent, Godot.Image screenshot, System.String saveName) [0x00020] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:239
  at Save.SaveToFile () [0x00001] in /home/hhyyrylainen/Projects/Thrive/src/saving/Save.cs:214
  at SaveHelper.PerformSave (InProgressSave inProgress, Save save) [0x0004e] in /home/hhyyrylainen/Projects/Thrive/src/saving/SaveHelper.cs:540
  at SaveHelper+<>c__DisplayClass28_0.<InternalSaveHelper>b__1 (InProgressSave inProgress, Save save) [0x00028] in /home/hhyyrylainen/Projects/Thrive/src/saving/SaveHelper.cs:467
  at InProgressSave.Step () [0x00155] in /home/hhyyrylainen/Projects/Thrive/src/saving/InProgressSave.cs:226
  at Invoke._Process (System.Single delta) [0x0003c] in /home/hhyyrylainen/Projects/Thrive/src/engine/Invoke.cs:45

I tried looking but there doesn't seem to be a GZipOutputStream constructor that takes in an encoding object.
Reproduction Code
No response
Steps to reproduce
Try to write a tar.gz file in the following way:
https://github.com/Revolutionary-Games/Thrive/blob/a8ad16dfd02cda02839158149546b0362644f6c3/src/saving/Save.cs#L242
Or try to read such a created file like this (normal tar on my system can extract the file perfectly, which I think indicates that the 1.3.3 created file is fully correct):
https://github.com/Revolutionary-Games/Thrive/blob/a8ad16dfd02cda02839158149546b0362644f6c3/src/saving/Save.cs#L328
Expected behavior
I expect that the code, which I linked above, would work in version 1.4.2. I hope I didn't use the library incorrectly, which is possible. I tried searching but I didn't find any porting guide for what changes I would need to make to keep my code working with 1.4.2 version.
Operating System
Linux
Framework Version
Other
Tags
GZip, Tar
Additional context
Update: I tried switching out the gzip layer from this library for the .NET system one and with that everything seems to work correctly. Or at least the error is so rare that I didn't manage to see it from a couple of testing runs. So maybe the issue is reading a combined tar and gzip (from this library) stream in a sync manner?

The gzip issue is related to this problem with mono, not sure how we should work around that... Perhaps some special runtime checks need to be performed to avoid it...
https://github.com/mono/mono/issues/12603
The tar issue is probably related to some other bugs in tar that have been really hard to reproduce, bit this gives me another lead, thanks!

I see, mono is being problematic again... Luckily we might at some point actually be able to update to Godot Engine 4.0 and get on the .NET 7 runtime, which will solve also other really persistent bugs with mono we get somewhat regular reports about.

The tar issue is probably related to some other bugs in tar that have been really hard to reproduce, bit this gives me another lead, thanks!

I had testing from other team members and it seems that the tar reader and writer work correctly when used in combination with the C# standard gzip stream type. Or again, the problem is just so rare that we won't see it happening before this change is included in a public release of ours.


Add validation rule UniqueEnumValueNames

https://github.com/graphql/graphql-js/commit/0737212567a394caccc92f26a0705869f9e4ee3b

@vhenzl working on this, just need to finish tests

💯 0


Feature request: provide custom mapping for certain types

In some cases the generated mapping code is not valid due different types.
for example, these two types
public class Hello
{
    public DateTime DateTime { get; set; }
    public TimeSpan TimeSpan { get; set; }
}
public class HelloReply
{
    public Timestamp DateTime { get; set; }
    public Duration TimeSpan { get; set; }
}

will create the following (invalid) mapping
new HelloReply()
{
    DateTime = hello.DateTime,
    TimeSpan = hello.TimeSpan
};

Can we extend the MappingInterface like so?
namespace MappingGenerator.OnBuildGenerator
{
    [AttributeUsage(AttributeTargets.Interface)]
    [Conditional("CodeGeneration")]
    public class MappingInterface : Attribute
    {
        public MappingInterface(params System.Type[] typeMappers)
        {
            TypeMappers = typeMappers;
        }

        public System.Type[] TypeMappers { get; }
    }
}

providing a custom type mapper
    public static class ProtoTimeMapper
    {
        public static Timestamp MapDateTime(DateTime dateTime) => dateTime.ToTimestamp();

        public static Timestamp MapDateTimeOffset(DateTimeOffset dateTimeOffset) => dateTimeOffset.ToTimestamp();

        public static Duration MapTimeSpan(TimeSpan timespan) => timespan.ToDuration();
    }

using like so
    [MappingInterface(typeof(ProtoTimeMapper))]
    public interface IGreeterServiceMapper
    {
        HelloReply MapReplyHello(Hello hello);
    }

and the expected results be like
new HelloReply()
{
    DateTime = ProtoTimeMapper.MapDateTime(hello.DateTime),
    TimeSpan = ProtoTimeMapper.MapTimeSpan(hello.TimeSpan)
};

given that:

This only works for the on build generated code
Custom mapper class must be static

Maybe I should always wrap those invalid mapping in MapAToB method invocation and those missing methods should be provided as partial methods?

That might even be better yes, then its not only for "on build", like so?
generated code
    public partial class GreeterServiceMapper
    {
       public HelloReply MapReplyHello(Hello hello)
       {
             return new HelloReply()
            {
                 DateTime = MapDateTime(hello.DateTime),
                 TimeSpan = MapTimeSpan(hello.TimeSpan)
           };
       }
       public HelloReply MapReplyHello2(Hello hello)
       {
             return new HelloReply()
            {
                 DateTime = MapDateTime(hello.DateTime),
                 TimeSpan = MapTimeSpan(hello.TimeSpan)
           };
       }
       public partial Timestamp MapDateTime(DateTime dateTime);
       public partial Duration MapTimeSpan(TimeSpan timeSpan);
    }

implemented partial methods
    public partial class GreeterServiceMapper
    {
       public partial Timestamp MapDateTime(DateTime dateTime)  => dateTime.ToTimestamp();
       public partial Duration MapTimeSpan(TimeSpan timeSpan)  => timeSpan.ToDuration();
    }

in case there are multiple invalid of the same source to target types it should only generate one partial method.

I need to verify if this is easy to implement and I will let know.

One thing that might not work with the partial class solution is the following
for timespan it actually currently generates the following mapping, which does compile but is actually incorrect behavior.
TimeSpan = new Google.Protobuf.WellKnownTypes.Duration()
{
    Seconds = hello.TimeSpan.Seconds
},

Providing custom mapping upfront, which should be the preferred mapping to use does solve this or some other way to tell the mapping generator that this should be a partial method.
What do you think about this example?

I can try to combine both ideas by providing configuration options:
namespace MappingGenerator.OnBuildGenerator
{
    [AttributeUsage(AttributeTargets.Interface)]
    [Conditional("CodeGeneration")]
    public class MappingInterface : Attribute
    {
        public MappingInterface(params System.Type[] typeMappers)
        {
            TypeMappers = typeMappers;
        }

        public System.Type[] TypeMappers { get; }
        public bool UseInstanceMethodsForMissingMappings {get; set;}
    }
}

Not sure what's the right name for this flag but I hope you get the gist.

@wazowsk1 good news, I've just implemented your idea for VS plugin - check my last commit referenced for this issue. I think adding this feature for OnBuildGenerator should be now quite easy.

I've just released MappingGenerator.OnBuildGenerator.1.15.380 with the requested feature. I've used the named parameter instead of the custom constructor to make the MappingInterfaceAttribute open for further extensions.   A sample usage:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using MappingGenerator.OnBuildGenerator;

namespace MappingGenerator.Test.MappingGenerator.TestCaseData
{
    [MappingInterface(CustomStaticMappers = new []{typeof(CustomMappers)})]
    public interface ISampleMapper
    {
        UserDTO Map(UserEntity entity);
    }

 public class CustomMappers
    {
        public static AddressDTO MapAddress(AddressEntity addressEntity)
        {
            return new AddressDTO()
            {
                City = addressEntity.City,
                ZipCode = addressEntity.ZipCode,
                Street = addressEntity.Street,
                FlatNo = addressEntity.FlatNo,
                BuildingNo = addressEntity.BuildingNo
            };
        }
    }

Please update MappingGenerator.OnBuildGenerator and let me know if everything works as you expected.

I have tested it with my test project and bigger project and it is working as expected 👍
without providing a custom mapper
                DateTime = hello.DateTime,
                TimeSpan = new Duration()
                {
                    Seconds = hello.TimeSpan.Seconds
                }

with providing a custom mapper
                DateTime = GrpcService1.CustomMappers.ProtoTimeMapper.MapDateTime(hello.DateTime),
                TimeSpan = GrpcService1.CustomMappers.ProtoTimeMapper.MapTimeSpan(hello.TimeSpan)

Thanks for testing


Simplify Travis package install specification

Because all build matrix entries have the same package dependencies, this moves that info to the global config. Allows the rest of the matrix to be edited with impunity.

Current coverage is 96.07% (diff: 100%)

Merging #236 into master will not change coverage

@@             master       #236   diff @@
==========================================
  Files            86         86
  Lines          5780       5780
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           5553       5553
  Misses          227        227
  Partials          0          0

Powered by Codecov. Last update c00cd37...28c00ca

Lipstick on a pig :)

Part of #233, thanks


Add Comments counter function

Changes that I made here 👍

Add the counter function
Add the display length in the the popUp
No linter error

Congratulation 🥳
🦅
You have done a great job there is nothing else to say than it is time to merge :shipit:
Highlights

JS best Practices
good use of async functions


docs: fix example link in readme

README.md contains a link to unexisting example directory like it was before on root bu nowt it's in ratatui directory.
I'm new to this repo this is probably due to a recent change.

Thanks. I missed that one in a recent change. We're in the process of splitting out the ratatui main crate into a few different crates to make things better for widget crates. See #1388 for info.


An incentive mechanism for wallets and websites that offers order management services.

The current design of Loopring has a nice incentive mechanism for ring-miners. But it doesn't really offer any reward for wallets and website that help user to manage their orders.
We can provide such an incentive mechanism, by allowing wallet to supply an address to split the fee or margin-split with miners, say 5-10% were given to order-management apps and the remaining goes to miners.

@kongliangzhong  Lets get this done asap. Lets split 25% of the fee to wallet and 75% to ring-minors.. This 25% should be configurable upon deployment.  Lets roll out v1.1.0 in Feb.

looking forward


Adds Windows Support

Adds support for Windows.
This uploads the configured certificates to 'C:\ssl\certs' where they are then added to the LocalMachine Root CA store as well as merged within 'C:\ssl\cacert.pem' which we point 'SSL_CERT_FILE' to for Ruby to utilize.
Successfully tested with Windows Server 2012/2012R2/2016. Will not work for anything earlier due to the usage of 'Import-Certificate'.
Also bumped the version to 1.3.0.
Fixes #27

@johnbellone @jsok @williambailey
Need anything else from me for this?

Let me see if I can get someone to review this that has more expertise than I in windows.

/cc @jjustice6

We can't accept this for our usage because of Import-Certificate, but luckily I have an alternative for you. We do something like this elsewhere, and it works in older versions of Powershell.
Get-ChildItem -Path C:/ssl/certs |
Foreach-Object {
certutil -addstore -enterprise -f "Root" $_.FullName
}

https://technet.microsoft.com/en-us/library/cc732443(v=ws.11).aspx for details on certutil (which is, despite the identical name, completely unrelated to the "certutil" on linux that you use to manipulate firefox/chrome certificate databases... guess how I know this. ;)
If you make the change from Import-Certificate to certutil, I think we could probably merge.
The one thing I will caution here is that tons of random crap (mostly linuxy software with windows ports) that runs on Windows don't actually use the system certificate store but require you to point their configuration or an environment variable at a folder full of certs or the cacert.pem. (This isn't really any different than how it works on Linux, except on Linux everything's already pointing at the default locations.) So the user experience is still likely to be worse than on Linux, but this is of course better than it not working at all.

@jjustice6 Thanks for the feedback, I'll get that updated and tested.
To your second point, yes, I agree that it is a bit of a mess, but that's also why it's handling importing the certificates into the Windows store as well as configuring the environment variable 'SSL_CERT_FILE' to point at the bundle which Ruby (and a number of other tools) utilize.
Since there is no standard file-based bundle location on Windows, I configured it to place them at 'C:/ssl/certs/', but I'd be open to a better suggestion.

I have no problem with that location. (John: we put ours in C:\ProgramData(Our Program)\ because we're in a context where we don't necessarily want to overwrite anything in C:, but in the vagrant context we know there's no chance there will be something in C:\ssl\ so it's safe to put something there.)
Other than that I think this is probably mergeable (I'll see if I can find some time to actually test it in our environment).
@Jakauppila After a bit of thought, there is one thing that comes to mind which would make this more usable - I know of at least one tool (git) which specifically insists on Unix line endings. Yes, even on Windows. No, I don't know why. We point ssl_cert_file to the windows-line-ending variant as that's more widely tolerated, but we also made a cacert_unix.pem with the Unix line endings. I wouldn't hold up a merge of this based on a lack of such, but it would (probably?) be better for usability if that existed as well.

@jjustice6 Should anything point at the cacert_unix.pem or should it be up the the user to override 'SSL_CERT_FILE' when using those tools that require it?

Nah, you're going to need to set that in a gitconfig for git. SSL_CERT_FILE needs to point to the Windows-linebreak version because the vast majority of tools use that.
I certainly don't think it's the responsibility of this tool to set up certificates for every piece of software with its own bizarre method of managing certificates that isn't the system's (e.g. Chrome and Firefox with their crazy certdbs). And really, if it's a pain to change the line endings in powershell, then it can be skipped. It just seems like an obvious easy win to throw into the mix.

Replaced Import-Certificate with certutil and added 'cacert_unix.pem' with the correct line endings.
I verified it's working with Server 2008R2 but wasn't able to get SSH or WinRM to work correctly communicating to a Server 2008 public Vagrant box (opentable/win-2008-standard-amd64-nocm), I don't think there's any reason why it wouldn't work there too.

@jjustice6 Need anything else from me for this?

No, this looks fine. It just slipped off my radar by mistake.
@johnbellone this gets a :+1: from me.

Just wanted to ping about this again.

Just wanted to follow up on this again.


Minimal publisher configuration

Set RMW_UXRCE_MAX_PUBLISHERS_X_NODE to RMW_UXRCE_MAX_NODES to cover the minimal rosout publisher.

Done in https://github.com/micro-ROS/rmw-microxrcedds/pull/46


development enviorment

i want to know what editor you are using  to develop traccar application for server as well as  web interface? what are the front end and back end tools require for it for development purpose.

I use IntelliJ IDEA for both.


How about XP

I've installed the Windows XP support for the compilers. How do I convince vcvarsall to target XP?

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

ID: 45e8226e-799c-2e3b-01c6-d7603141d5ca
Version Independent ID: 4f7cd478-ffcc-bec5-b61a-e17085ccd6f5
Content: Build C/C++ Code on the Command Line
Content Source: docs/build/building-on-the-command-line.md
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

@lwahonen I'll only suggest that targeting the now way past end-of-service-life Windows XP is an iffy idea once. Any such machines connected to the internet are likely malware victims. Visual Studio 2019 previews do not include an XP targeting option, as deprecation is complete. There, I'm done.
That said, the command line environment batch files do not support using the XP toolset. The earliest Windows SDK they can target is Windows 8.1.
In the IDE, XP targeting via the built-in VC Project system sets the default SDK to Windows 7.1a, and adds its executable, include, library, etc. directories to the respective PATH, INCLUDE, LIBRARY and so on environment variables, and adds at least one define to the compiler command line (/D_USING_V110_SDK71_). There may be other things it does that I didn't notice. You can roll your own batch file that does the same thing. The project properties file I looked at for this information was "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.props" on my system; yours may vary slightly based on your installation choices.
Good luck.

Serious? VS 2019 will not have support for targeting XP/2003?   wow!


Add TrueJob

Added TrueJob.

:+1:

Hey @sampl, just checking back in again. Hope you can add in TrueJob!

Hi @JangoSteve and @scouttyg, thanks for adding--would you mind posting a little about TrueJob traction? https://github.com/sampl/madeina2/blob/master/README.md

Hey @sampl -- I read over the criteria for the site, and I've met the criteria for all three -- there are well over 1k users on the site, I'm based out of Ann Arbor, I'm open to the public, and I'm a SaaS.  You can also see highly upvoted references here on Hacker News, and on Reddit
Let me know what other details you need, or verification I would need to provide.

@sampl Just checking back in to see if I can provide more data, but I meet the criteria you posted.

Since this has merge conflicts and @JangoSteve was the original submitter of this (so it's hard for me to fix those merge conflicts), I added a new pull request in #35 that mirrors these changes, and allows me to fix anything if need be should other conflicts arise.
Let me know if I can provide any more help @sampl!

merged in https://github.com/sampl/madeina2/pull/35


Question: Can tinyrecord be used to make TinyDB "process safe"

Thank you for making tinyrecord free and open source. I would like to ask whether tinyrecord's transaction support can be used to make TinyDB "process safe"?
By "process safe" I mean: If two processes use the same TinyDB database file simultaneously and both processes always use transactions for writing, is it safe to assume no data will be lost?

for process safety -- you would need to share a lock between multiple processes (not sure how you would do that, probably a multiprocessing.Lock), and subclass transaction to change the code.
probably the best way to do it would be for transaction to expose a lock_class attribute, so you can just do this:
class MyTxn(transaction):
    lock_class = MultiProcessLock

with MyTxn(table) as tr:
    ...

Sorry, I was passing by and got curious, but why do we need an additional lock if transaction is atomic?

Streamlit is becoming a to-go choice for MVP development with python.
In that case, multiple sessions could be open and there would be "multiple clients (each of them single threaded)" concurrency issue.
Looking at this problem, I was thinking about a simple implementation using the filelock library (https://py-filelock.readthedocs.io/en/latest/index.html). It is a locking mechanism based on a physical file. Do you think it is a viable option?


variable reference breaks swagger export

if the ResourceConfig contains a variable reference instead of string literal, then the swagger export breaks with the following error:
error: Error occurred when exporting swagger file for service file at date_service.bal. org.wso2.ballerinalang.compiler.tree.expressions.BLangSimpleVarRef cannot be cast to org.wso2.ballerinalang.compiler.tree.expressions.BLangLiteral.
For example, this breaks the swagger generate:
const string APPLICATION_JSON = "application/json";
@http:ResourceConfig {
methods: ["GET"],
path: "/time",
produces: [APPLICATION_JSON]
}
but this isn't:
@http:ResourceConfig {
methods: ["GET"],
path: "/time",
produces: ["application/json"]
}

Currently, in compile time, OpenAPI tools extract data from the annotations available for services and resources. But when annotations attributes are initialized with values passed using variable reference it is hard to know what is the value provided by the variable reference as these values are not available in compile time and available only in run time.
To avoid this problem for now what we can do is provide the literal value to the attribute so OpenAPI tool can easily extract the details from annotations.

As we revisited the design of the OpenAPI tooling and the annotation structure, which you can refer from specification available here, we fixed this issue by allowing only literal values in place where literals are allowed. We are closing this issue and attaching it to the new issue to track the progress and for evaluation purposes.


Filter bazaar history by successful auctions

It would be nice to be able to filter the bazar history by successful auctions since so many are failing.
This would make it easier for people to compare tc prices that have been paid before for a character with similar stats.

done!


Token count is not accurate

I used the below text file to test.
SampleText.txt
I used TiktokenSharp in .NET 3.1 while "tiktoken 0.3.3" in Python 3.11.
Logs for tiktoken:
Model: gpt-4; TokenCount: 2303; TimeElapse: 8.36 ms
Model: gpt-3.5-turbo; TokenCount: 2303; TimeElapse: 1.6 ms
Model: text-davinci-003; TokenCount: 2564; TimeElapse: 3.49 ms
Logs for TiktokenSharp:
Model: gpt-4; TokenCount: 2313; TimeElapsed: 17 ms.
Model: gpt-3.5-turbo; TokenCount: 2313; TimeElapsed: 4 ms.
Model: text-davinci-003; TokenCount: 2614; TimeElapsed: 5 ms.
As you can see in the logs, the token count by TiktokenSharp is higher than tiktoken for all three models. Also, TiktokenSharp is slower and takes roughly double the time than tiktoken.
Python 3.11 Code
`import tiktoken
import time
gpt4_model = tiktoken.encoding_for_model('gpt-4')
gtp3_model = tiktoken.encoding_for_model('text-davinci-003')
gtp35_model = tiktoken.encoding_for_model('gpt-3.5-turbo')
def time_diff(start: float, end: float) -> str:
time_elapsed = (end - start)
if time_elapsed > 1.01:
return f"{round(time_elapsed, 2)} sec"
else:
return f"{round(time_elapsed*1000, 2)} ms"
def embedding():
f = open("C:\D\SampleText.txt", "r")
text = f.read()
start = time.perf_counter()
token_count = len(gpt4_model.encode(text))
print(f'\nModel: gpt-4; TokenCount: {token_count}; TimeElapse: {time_diff(start, time.perf_counter())}\n')
start = time.perf_counter()
token_count = len(gtp35_model.encode(text))
print(f'\nModel: gpt-3.5-turbo; TokenCount: {token_count}; TimeElapse: {time_diff(start, time.perf_counter())}\n')
start = time.perf_counter()
token_count = len(gtp3_model.encode(text))
print(
f'\nModel: text-davinci-003; TokenCount: {token_count}; TimeElapse: {time_diff(start, time.perf_counter())}\n')
if name == 'main':
embedding()
`
netcoreapp3.1 code
`using System;
using System.Diagnostics;
using System.IO;
using TiktokenSharp;
namespace ConsoleApp.net3._1
{
internal class Program
{
static void Main(string[] args)
{
Encoding();
}
    static void Encoding()
    {
        string text = File.ReadAllText(@"C:\\D\\SampleText.txt");
        TikToken gpt35Model = TikToken.EncodingForModel("gpt-3.5-turbo");
        TikToken gpt3Model = TikToken.EncodingForModel("text-davinci-003");
        TikToken gpt4Model = TikToken.EncodingForModel("gpt-4");

        Stopwatch sw = Stopwatch.StartNew();
        int tokenCount = gpt4Model.Encode(text).Count;
        sw.Stop();
        Console.WriteLine($"Model: gpt-4; TokenCount: {tokenCount}; TimeElapsed: {sw.ElapsedMilliseconds} ms.");
        sw.Restart();
        tokenCount = gpt35Model.Encode(text).Count;
        sw.Stop();
        Console.WriteLine($"Model: gpt-3.5-turbo; TokenCount: {tokenCount}; TimeElapsed: {sw.ElapsedMilliseconds} ms.");
        sw.Restart();
        tokenCount = gpt3Model.Encode(text).Count;
        sw.Stop();
        Console.WriteLine($"Model: text-davinci-003; TokenCount: {tokenCount}; TimeElapsed: {sw.ElapsedMilliseconds} ms.");
    }
}

}
`

Hello, thank you for using this library.
After inspection, there are no issues with the algorithm. It is possible that you may have overlooked the fact that when opening and reading text files in Python using "r", newline characters are unified into "\n". However, C#'s ReadAllText method does not perform this operation. To maintain consistency between the two languages, you can try replacing "\r\n" with "\n" only in C# using "text = text.Replace("\r\n", "\n");" or open the file in Python using "rb".
Regarding efficiency, I have inspected the code and found no specific optimizations that can be made. It should be noted that TikTok's Python module calls Rust's AOT-wrapped code, which may result in higher execution efficiency. I have not directly compared the performance of the two languages, but you can try comparing them after compiling with AOT in .NET 7.0. Additionally, it is important to consider the scale of testing as single operations may not accurately reflect the efficiency due to CPU thread scheduling. In fact, when I first ran the code you provided, it took around 18ms, but on subsequent runs, it consistently took around 2ms. This suggests a CPU scheduling issue rather than an issue with the code itself. You can try looping the code 100,000 times under .NET 7.0's AOT and then compare the efficiency.
Thank you again for using this library.


Incorrect Letsencrypt SSL Message

The message that appears as part of the renew-all command indicates that the time left for certificate expiry is greater than 60 days, while the code now checks for 30 days.
https://github.com/EasyEngine/easyengine/blob/master/ee/cli/plugins/site.py#L1225

@jayfreestone  thanks for pointing.


Patch for BlendedInfixSuggester to solve ArgumentNullException

Fix #527
Apply patch from https://issues.apache.org/jira/browse/LUCENE-6093

Thanks for the PR!


Add limdu

Limdu is a machine-learning framework for Node.js. It supports multi-label classification, online learning, and real-time classification. Therefore, it is especially suited for natural language understanding in dialog systems and chat-bots.

Looks cool. Would be nice to see some online demos, though. You could use http://blog.tonicdev.com/2015/09/30/embedded-tonic.html or http://requirebin.com/


GH-1697: Exhaustive pattern matching

Ref #1697
This changes the non-exhaustive pattern with risky assert into an exhaustive match.

bors r+


Fix removing locks in recursive mode

Surely an oversight, in the recursive mode the child locks must be deleted. The "recursive" parameter must therefore be taken into account in the get_url_lock_list function

I think it's good, i have another PR to submit


Issues in data set generation of crop  segmentation pipeline

I am working over dataset generation. Every thing including setup is fine.
When I try to create data using some region of interest using this line wf_run.monitor().
It shows this error, I also tested the internet connection etc is working perfectly.
File ~/Desktop/farmvibes/farmvibes-ai/myenv/lib/python3.10/site-packages/requests/adapters.py:501, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    486     resp = conn.urlopen(
    487         method=request.method,
    488         url=url,
   (...)
    497         chunked=chunked,
    498     )
    500 except (ProtocolError, OSError) as err:
--> 501     raise ConnectionError(err, request=request)
    503 except MaxRetryError as e:
    504     if isinstance(e.reason, ConnectTimeoutError):
    505         # TODO: Remove this in 3.0.0: see #2811

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Hi, @MuhammadHammadBashir. Thank you for using FarmVibes and raising this issue.
It seems the client cannot connect to your local cluster. Please, could you check the status of the cluster by running bash farmvibes-ai.sh status in your terminal?
Additionally, could you provide the output of the following command: ~/.config/farmvibes-ai/kubectl get pods
Are you able to run the hello world notebook / workflow?

Hi, @MuhammadHammadBashir. Any updates on this?

Hi @rafaspadilha. I faced the same issue when running the 'data_ingestion/sentinel2/preprocess_s2' workflow. I had already tried the hello world workflow and it worked well, and the run.monitor() command worked well and the process completed successfully. Later I tried running the preprocess_s2 workflow and it was taking a really long time to download a single image from a total of 68 (it stayed on 0/68 for 30 minutes) so I tried cancelling the run but it didnt work. I then restarted the local cluster, and when I ran the .run() call it gave me the same issue as reported here. Here is the output of my "get pods" command:
NAME                                       READY   STATUS    RESTARTS   AGE
terravibes-worker-58f9876d47-f9kmh         0/2     Unknown   29         4d22h
terravibes-rest-api-86c9f76ccc-rms47       0/2     Unknown   22         4d22h
terravibes-data-ops-6d86cdd956-k5trp       0/2     Unknown   35         4d22h
terravibes-orchestrator-695774d6bd-xhbxp   0/2     Unknown   32         4d22h
terravibes-worker-58f9876d47-lmg4x         0/2     Unknown   30         4d22h
terravibes-cache-9486577db-dg7mc           0/2     Unknown   31         4d22h
terravibes-worker-58f9876d47-27b6n         0/2     Unknown   33         4d22h
rabbitmq-0                                 0/1     Unknown   7          4d22h
redis-master-0                             0/1     Unknown   6          4d22h

This might indicate your storage is full. What's the output of df -h?

Closing this issue for now. Please, @moeelsawy and @MuhammadHammadBashir, feel free to reopen the issue if your problem persists.


fix(retry-util): do not sleep after final retry attempt

Description of changes:

In runWithRetry, remove unnecessary sleep after final retry attempt if it throws a retryable exception.
Rename retryCount to maxAttemptCount in ThingGroupHelper to be more accurate and remove unused function.

Why is this change necessary:
Remove unnecessary sleeps in retry util.
Specifically, if a local deployment is offline, it's always unnecessarily waiting 1 min for listThingGroupsForDevice.
How was this change tested:
Tested manually.

[ ] Updated or added new unit tests.
[ ] Updated or added new integration tests.
[ ] Updated or added new end-to-end tests.
[ ] If my code makes a remote network call, it was tested with a proxy.

Any additional information or context required to review the change:
Documentation Checklist:

[ ] Updated the README if applicable.

Compatibility Checklist:

[ ] I confirm that the change is backwards compatible.
[ ] Any modification or deletion of public interfaces does not impact other plugin components.
[ ] For external library version updates, I have reviewed its change logs and Nucleus does not consume
any deprecated method or type.

Refer to Compatibility Guidelines for more information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We identified new issues on unchanged lines of code. Navigate to the Amazon CodeGuru Reviewer console to view the recommendations to fix them.