adding micm optional dependency pictures

Adds a picture showing the options for using micm to readme and docs

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

Comparison is base (88d6b5b) 97.00% compared to head (d7decca) 97.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #311   +/-   ##
=======================================
  Coverage   97.00%   97.00%
=======================================
  Files          34       34
  Lines        2667     2667
=======================================
  Hits         2587     2587
  Misses         80       80

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


Is there any document about the project ?

hello there
Do you have document for introduce the project,
I am a blockchain engineer.

do you have real time chat group ?

Hi @wade-liwei, we have a small getting started here: https://rodrigo-brito.github.io/ninjabot/docs/getting-started/
We do not have a chat group.
For discussions, we have https://github.com/rodrigo-brito/ninjabot/discussions


Not able to generate fonts

I have an SVG file , every time I try to execute the command
icon-font-generator my-icons*.svg -o icon-dist
output is : Generating font kit from 1 SVG icons
After this font is not getting generated
Files are not getting generated
I am using node version 6.10.0 and icon-font-version 1.1.2

icon-font-generator need nodejs >= v8.1.0
https://github.com/Workshape/icon-font-generator/blob/master/README.md


Abstract away direct table reading/writing operations

Operations for reading/writing the Accumulo backing tables during graph operations are scattered and convoluted. We should have wrappers around each backing table which are responsible for converting to/from graph objects and operations. This will allow simpler refactoring in future if we want to change the backing schema.
E.g. when calling addVertex(), VertexTableWrapper writes the appropriate rows, column families, etc into the table. Later, on getVertex(), VertexTableWrapper reads the appropriate entries from the table.

Lots of updates. Most functionality is now moved to wrappers. Remaining are removeVertex and removeEdge, AccumuloIndex functionality, and AccumuloBulkIngester.

AccumuloIndex is updated and cleaned up.

Updated and cleaned up more functionality.

Ready for merging. f72b1d2f2fb799d2d5052cdac47666adaa29b1a4

Merged


Insertion of newly created short link sometimes failed

See the following log:
Please enter short url code or URL (ctrl+c to quit): https://github.com/siongui/goshorturl

[bun]  22:45:05.469   INSERT                  108µs  INSERT INTO "short_urls" ("id", "short_url_code", "original_url") VALUES<PHONE_NUMBER>3641057362, 'CbU2BsfpiZd', 'https://github.com/siongui/goshorturl') 	  *errors.errorString: Data type mismatch (SQLITE_MISMATCH)

!!! Fail to insert into database {15589890873641057362 CbU2BsfpiZd https://github.com/siongui/goshorturl} Data type mismatch (SQLITE_MISMATCH)

Please enter short url code or URL (ctrl+c to quit): https://github.com/siongui/goshorturl

[bun]  22:45:07.443   INSERT                  144µs  INSERT INTO "short_urls" ("id", "short_url_code", "original_url") VALUES<PHONE_NUMBER>8656132680, 'z1GFtKnM6Gd', 'https://github.com/siongui/goshorturl') 	  *errors.errorString: Data type mismatch (SQLITE_MISMATCH)

!!! Fail to insert into database {14221748518656132680 z1GFtKnM6Gd https://github.com/siongui/goshorturl} Data type mismatch (SQLITE_MISMATCH)

Please enter short url code or URL (ctrl+c to quit): https://github.com/siongui/goshorturl

[bun]  22:45:10.542   INSERT                  121µs  INSERT INTO "short_urls" ("id", "short_url_code", "original_url") VALUES<PHONE_NUMBER>4101290478, 'yVf8E7Puwmw', 'https://github.com/siongui/goshorturl') 	  *errors.errorString: Data type mismatch (SQLITE_MISMATCH)

!!! Fail to insert into database {14181210324101290478 yVf8E7Puwmw https://github.com/siongui/goshorturl} Data type mismatch (SQLITE_MISMATCH)

Please enter short url code or URL (ctrl+c to quit): https://github.com/siongui/goshorturl

[bun]  22:45:16.929   INSERT                  171µs  INSERT INTO "short_urls" ("id", "short_url_code", "original_url") VALUES<PHONE_NUMBER>2663947322, 'CcNxVi8gygL', 'https://github.com/siongui/goshorturl') 	  *errors.errorString: Data type mismatch (SQLITE_MISMATCH)

!!! Fail to insert into database {15596617072663947322 CcNxVi8gygL https://github.com/siongui/goshorturl} Data type mismatch (SQLITE_MISMATCH)

Please enter short url code or URL (ctrl+c to quit): https://github.com/siongui/goshorturl

Inserted - Id:<PHONE_NUMBER>356748930 , Short Url Code: dyeyo6Qi63j , URL: https://github.com/siongui/goshorturl

I guess it's because of the id is of type uint64 and if the id is more than a threshold value, the insertion will fail. Need more investigation.

Change the type of Id from uint64 to string seems to fix this issue.


_count doesn't update in many to many relation

Discussed in https://github.com/prisma/prisma/discussions/12294

Originally posted by Sakkhor909 March 12, 2022
This is the model :
model Category {
  id        String              @id @default(cuid())
  name       String              @unique
  createdAt DateTime            @default(now())
  brands Brand[]
}

model Brand {
  id         String              @id @default(cuid())
  name       String              @unique
  createdAt  DateTime            @default(now())
  categories   Category[]
}

I am showing how many brands in a category by pulling the data like this
   const Data = await prisma.category.findMany({
        include: {
          _count: {
            select: { brands: true }
          }
        }
      });

It works fine. It shows how many brands are in a category.
When I try to delete a brand like this;
 prisma.brand
      .delete({
        where: {
          id: ID
        }
      })

The brand gets deleted but the category list doesn't update. It still includes that brand in _count.
I have deleted the same way in one-to-many relation where _count updated. How do I do it in many to many?

Please fill the bug issue template with all the data it asks for - we need that. Thanks.


Fail to load trained model

When trying to load the pre-trained model, I get the following error:
Unhandled Promise Rejection: Error: Based on the provided shape, [576], the tensor should have 576 values but has 100
This is at this line:
https://github.com/hugozanini/realtime-semantic-segmentation/blob/master/src/index.js#L24

I want to work on this issue @hugozanini

Hey @carrycooldude feel free to work on that. Thanks for contributing to the project :)


[WIP] Gitbook tutorial layout.

:x: Build AElf <IP_ADDRESS>07 failed (commit https://github.com/AElfProject/AElf/commit/17924ac0cf by @samfrb)

:x: Build AElf <IP_ADDRESS>18 failed (commit https://github.com/AElfProject/AElf/commit/a62d9ef7cc by @samfrb)


When editing incident the name is not complet if there is space in it

on this line : https://github.com/cachethq/Cachet/blob/master/app/views/dashboard/incidents/edit.blade.php#L21
you must put double quote for the value {{$incident->name}}
The code must look like this :
 <input type="text" class="form-control" name="incident[name]" id="incident-name" required value="{{$incident->name}}">

I propose a pull request #423 to solve this issue

Thanks.


JetBrains: Automatically recognized repo got deselected when closing and reopening IDE.

Cody Version
v5.5.11-nightly
IDE Information
IntelliJ IDEA 2023.3.3 (Community Edition)
Build #IC-233.14015.106, built on January 25, 2024
Runtime version: 17.0.9+7-b1087.11 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
idea.plugin.protoeditor (233.13135.65)
DevKit (233.14015.152)
gherkin (233.11799.165)
cucumber-java (233.11799.196)
PythonCore (233.14015.106)
com.sourcegraph.jetbrains (5.5.11-nightly)
Kotlin: 233.14015.106-IJ
Describe the bug
Platform: macOS
Steps to reproduce:

Have Cody plugin installed in your JB IntelliJ editor
Login to Cody with Enterprise user
Open project with enabled Git VCS
This repository must be publicly available on GitHub i.e. https://github.com/sourcegraph/cody
Verify that the Cody repo is automatically recognized and added to the context
Add few more remote repo to the context
Close the IDE and reopen it
Check the Chat context window

Observed behavior:
Automatically recognized repo got deselected.
Expected behavior
Automatically recognized repo should not be deselected when closing/reopening IDE.
Additional context
Video link:
https://drive.google.com/file/d/1wMfzxatNetkeSd1CP8CdcphE9L5prYxs/view?usp=drive_link

This looks like an infelicity that was introduced with the multirepo checkbox updates. @danielmarquespt would you please make sure it's on your list for @dominiccooney for Monday?


Ideation: Find ways to allocate and calculate returns for lenders

Some points in the scope of this issue to research/explore-

fixed fee or a percentage of the UTXO value? (fixed can be simple and work for our use case)
estimate the value of the fee that would be apt, for maybe ETH and OMG outputs for now (margin from a UTXO as a fee)?
in the future, we could have fee to be only OMG (as a fee input)
decide on the way to maintain/calculate returns for an individual lender

How I imagine this would work:

we should not allow you to exit our lending pool until all the exits you helped fund mature (that's because we don't have funds to pay you out - since they're in the standard exit) but you should be allowed to mark yourself as "not in the market" so that the next time a ticket is issued, your assets are not being calculated with it.

fee gets distributed and split to the lenders based on the percentage amounts of the total pool size (per asset!) on the block height of when the Quasar ticket was issued.
Example:
Asset: ETH
Block: 114235
Pool size participants: 5
Pool size: 100 ETH (participant A=30Eth,B=20,C=20,D=10,E=10)
Fee: 0.01
When the Exit matures, the Quasar distributes fees: A gets 0.003, B 0.002, C=0.001, E=0.001.
How do we distribute fees?

I was looking at the compound implementation where they use CTokens ERC20.

How I imagine this would work:

we should not allow you to exit our lending pool until all the exits you helped fund mature (that's because we don't have funds to pay you out - since they're in the standard exit) but you should be allowed to mark yourself as "not in the market" so that the next time a ticket is issued, your assets are not being calculated with it.

fee gets distributed and split to the lenders based on the percentage amounts of the total pool size (per asset!) on the block height of when the Quasar ticket was issued.
Example:
Asset: ETH
Block: 114235
Pool size participants: 5
Pool size: 100 ETH (participant A=30Eth,B=20,C=20,D=10,E=10)
Fee: 0.01
When the Exit matures, the Quasar distributes fees: A gets 0.003, B 0.002, C=0.001, E=0.001.
How do we distribute fees?

I was looking at the compound implementation where they use CTokens ERC20.

Some thoughts-

"not in market" is a good idea imo. I think for withdrawals we can however allow people to withdraw as long as the pool can suffice, instead of explicitly blocking until an exit matures? If the pool is big enough( for example ETH pool) withdrawals should be possible every time? unless a lot of people decide to withdraw. And if lot of people withdraw, the fee per lender would increase resulting in incentivising more people to supply
Yes, I think distributing fees will be gas intensive, if we update it on every round? The compound implementation of ctokens or something along that terms could be useful?

Some thoughts-

"not in market" is a good idea imo. I think for withdrawals we can however allow people to withdraw as long as the pool can suffice, instead of explicitly blocking until an exit matures? If the pool is big enough( for example ETH pool) withdrawals should be possible every time? unless a lot of people decide to withdraw. And if lot of people withdraw, the fee per lender would increase resulting in incentivising more people to supply
Yes, I think distributing fees will be gas intensive, if we update it on every round? The compound implementation of ctokens or something along that terms could be useful?

on point 1.
I think it makes sense to simply follow the model of: if you lend your asset to the pool, you're lending it for at least block height + 2 weeks. This way exiting our pool is equal for all. Because if you let lenders exit "prematurely" you may ran out of assets (since exits didn't mature yet).

so yeah, I don't see particular reason why we would need ERC20 ctokens issued to lenders, because what we really need is a ledger that will keep track on your accrued fees.
do you see a particular added value for issuing qOMG (quasar OMG) erc20 tokens?

on point 1.
I think it makes sense to simply follow the model of: if you lend your asset to the pool, you're lending it for at least block height + 2 weeks. This way exiting our pool is equal for all. Because if you let lenders exit "prematurely" you may ran out of assets (since exits didn't mature yet).

so yeah, I don't see particular reason why we would need ERC20 ctokens issued to lenders, because what we really need is a ledger that will keep track on your accrued fees.
do you see a particular added value for issuing qOMG (quasar OMG) erc20 tokens?

yeah okay, this makes sense. In terms of being fair for everyone 👍, and a minimum lock-in period of 2 weeks isn't bad. pouring some other thoughts too-

a) how often should the quasar owner exit from plasma? could be something like this?
either i) when it has accumulated 10 outputs or ii) it has been more than a 1 week since the last output and now has to merge and exit whatever it has and repay the pool

b) this would clearly depend on the number of exit. but do you think the minimum lock-in period should take the repayment rate over the block timestamp? ( since returns would accumulate every time repayments happen which might be slightly more than 2 weeks from a) )

I feel if we try to maintain this accrued fees record for each lender on contract's storage it would be pretty expensive? an off-chain record keeping is possible though but would make things different
issuing qOMG tokens and increasing the worth of these tokens could be one way to give out accrued fees? not sure

yeah okay, this makes sense. In terms of being fair for everyone 👍, and a minimum lock-in period of 2 weeks isn't bad. pouring some other thoughts too-

a) how often should the quasar owner exit from plasma? could be something like this?
either i) when it has accumulated 10 outputs or ii) it has been more than a 1 week since the last output and now has to merge and exit whatever it has and repay the pool

b) this would clearly depend on the number of exit. but do you think the minimum lock-in period should take the repayment rate over the block timestamp? ( since returns would accumulate every time repayments happen which might be slightly more than 2 weeks from a) )

I feel if we try to maintain this accrued fees record for each lender on contract's storage it would be pretty expensive? an off-chain record keeping is possible though but would make things different
issuing qOMG tokens and increasing the worth of these tokens could be one way to give out accrued fees? not sure

Here is an attempt to calculate returns the qtokens way. Please let me know if you find any mistakes or faulty assumptions.
Return rates are dependent on the qtokens and the exchange rate k, for that specific token, at that point of time.
Deposits to the pool, for instance OMG will mint qOMG = OMG / k for the supplier
On Withdraqwals, qOMG is burnt and OMG = qOMG * k is withdrawn.
Fees accumulate in the pool every time a fast exit happens, and k updates to
k’ = f / Tq + k

Here is an attempt to calculate returns the qtokens way. Please let me know if you find any mistakes or faulty assumptions.
Return rates are dependent on the qtokens and the exchange rate k, for that specific token, at that point of time.
Deposits to the pool, for instance OMG will mint qOMG = OMG / k for the supplier
On Withdraqwals, qOMG is burnt and OMG = qOMG * k is withdrawn.
Fees accumulate in the pool every time a fast exit happens, and k updates to
k’ = f / Tq + k

cc @kevsul

cc @kevsul

a minimal script run for the calculation https://gist.github.com/souradeep-das/de89e2b3336d515f59e344f8d85ea26a

a minimal script run for the calculation https://gist.github.com/souradeep-das/de89e2b3336d515f59e344f8d85ea26a


[BUG] DlSmartSearch - use suggestion issue with non schema key

when the field is not matched in use-suggestions function it doesnt return any basic suggestions even tho next character is space

Hi there!

Check the code in the use-suggestions function to see how it processes the input field. Ensure that the code is working as intended and check if there are any places where you may be missing the space.

Check the basic suggestions array (if this is being used) to ensure that all the basic suggestions are present and that they are being accessed correctly when the input field is not matched.

Create a condition to check if there is a space after the input that is not matching and there are no basic suggestions returned. If this is the case, then return basic suggestions as applicable.

Ensure that you test the updated function thoroughly to ensure that the basic suggestions are being returned correctly when there is no match and the next character is space.

I hope this helps you to resolve the issue. If you face any further issues or have any questions, please don't hesitate to ask.

@fadiDL  I am a freelancer from Upwork.  Can I create PR?

Sure
[image: Mailtrack]
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&
Sender
notified by
Mailtrack
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&
10/03/23,
09:27:40 AM
On Tue, 3 Oct 2023 at 09:26, Wilmar @.***> wrote:

@fadiDL https://github.com/fadiDL I am a freelancer from Upwork. Can I
create PR?
—
Reply to this email directly, view it on GitHub
https://github.com/dataloop-ai/components/issues/591#issuecomment-1744977630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A44SUZASLW6M7YN2QG3ZYK3X5QHB3AVCNFSM6AAAAAA4VCFVBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBUHE3TONRTGA
.
You are receiving this because you commented.Message ID:
@.***>

@fadiDL  I am ready for PR, please lmk when you are available.

I am available now.
[image: Mailtrack]
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&
Sender
notified by
Mailtrack
https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11&
10/03/23,
10:09:04 AM
On Tue, 3 Oct 2023 at 10:08, Wilmar @.***> wrote:

@fadiDL https://github.com/fadiDL I am ready for PR, please lmk when
you are available.
—
Reply to this email directly, view it on GitHub
https://github.com/dataloop-ai/components/issues/591#issuecomment-1745057133,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A44SUZGWPLLBM6LKKLLRIWTX5QL55AVCNFSM6AAAAAA4VCFVBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGA2TOMJTGM
.
You are receiving this because you commented.Message ID:
@.***>

What is the expected behavior in the video?


[Bug]: Graph Index with Azure OpenAI is impossible to query

Bug Description
I've been mostly following this tutorial: https://docs.llamaindex.ai/en/stable/examples/property_graph/property_graph_basic/#querying
llm = AzureOpenAI(
    engine="chat2",
    model="gpt-35-turbo-16k",
    temperature=0.0,
    azure_endpoint="https://xxx.openai.azure.com/",
    api_key="xxx",
    api_version="2023-07-01-preview",
)

embeddings = AzureOpenAIEmbedding(
    engine = "text-embedding-ada-002",
    model = "text-embedding-ada-002",
    azure_endpoint="https://xxx.openai.azure.com/",
    api_key="xxx",
    api_version="2023-12-01-preview",
    )

index = PropertyGraphIndex.from_documents(
    documents,
    llm = llm,
    embed_model=embeddings,
    show_progress=True,
    graph_store=SimplePropertyGraphStore()
)

The graph is created - I can display it. I've also checked whether the connection is correct by using "llm" and "embeddings" for response generation/ embedding generation respectively and both return valid responses.
However, when I add the following code to the mix, it starts failing:
retriever = index.as_retriever(
    include_text=False,
)

nodes = retriever.retrieve("What happened at Interleaf and Viaweb?")

for node in nodes:
    print(node.text)

The error message returned:
    raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: 9f*************a847. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

It seems to be still trying to connect to OpenAI instead of Azure OpenAI. Why is that and how to counteract it?
Version
0.10.40
Steps to Reproduce
Code is included in the bug description
Relevant Logs/Tracbacks
No response

Hmm, it might not be passing the embeddings from the parent index properly
Try this is a workaround: index.as_retriever(...., embed_model=embeddings)


Cmake generator Visual Studio 2017 Win64 not found.

Brief Issue Summary
Visual Studio 2017 not found by Cmake.
Visual Studio 2015 was uninstalled before installing Visual Studio Professional 2017 (with C++ development & cmake files selected!).
Afterwards I got the message "couldn't find any instance of Visual Studio"
Apparent Behavior:
$ cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MODULE_PATH=../devenv/modules ../devenv
CMake Error at CMakeLists.txt:4 (project):
Generator
Visual Studio 15 2017 Win64

could not find any instance of Visual Studio.
Platform and Versions
[[For issues, fill out the following. Otherwise delete this section.]]

Operating System: Windows 10.0.17134 - AMD64
CMake Version: 3.12.1
VSCode Version: 14.10.25017
Compiler/Toolchain: Visual C++ 2017 Win64

Other Notes/Information
Solution given in https://github.com/Valloric/YouCompleteMe/issues/2945 did not work for me as C++ development & cmake files were selected during installation!
Also reinstalling Cmake did not work.

What's the output from vswhere?

Git shell: bash: vswhere: command not found
Cmd: 'vswhere' is not recognized as an internal or external command, operable program or batch file.

Thanks for your reaction, after installing vswhere:
$ vswhere
Visual Studio Locator version 2.5.2+gebb9f26a3d [query version <IP_ADDRESS>148]
Copyright (C) Microsoft Corporation. All rights reserved.
instanceId: 5831e9e7
installDate: 21/08/2018 17:12:36
installationName: VisualStudio/15.0.0+26228.49
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
installationVersion: 15.0.26228.49
productId: Microsoft.VisualStudio.Product.Professional
productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
displayName: Visual Studio Professional 2017
description: Professional developer tools and services for small teams
channelId: VisualStudio.15.Release
channelPath: C:\Users\samja\AppData\Local\Microsoft\VisualStudio\Packages_Channels\4CB340F5\install_catalog.json
channelUri: https://aka.ms/vs/15/release/channel
enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
installChannelUri: https://aka.ms/vs/15/release/6309d8f40/channel
properties_campaignId:
properties_channelManifestId:
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe
I don't know what happened, I several things: reinstalling cmake, restart pc etc.
Now it works...

Sorry for the delay. This doesn't look to be VSCode or CMake Tools related. It's probable that your Windows simply needed to be restarted for the VS installation to be visible to other tools. Glad to hear that its working!


add equivalence methods to CronExpression

Hey @ericpruitt,
I've run into trouble with testing a project which uses your library.
I found CronExpression(every_minute) != CronExpression(every_minute).
This patch resolves this.

I don't want to implement __eq__ and __ne__ this way because it's not accurate. You can have two Cron expressions with different string representations that fire at the exact same points in time.


Question about input shape of ZeroPadding*D

ZeroPadding1D takes 1D tensor:
https://github.com/tensorflow/swift-apis/blob/74a9bd2f7332a117bb159653bec865a00e9d3745/Tests/TensorFlowTests/LayerTests.swift#L246-L252
But tf.keras.layers.ZeroPadding1D takes 3D tensor that has shape (batch, axis_to_pad, features).
Is this difference intentional?
Same for ZeroPadding2Dand ZeroPadding3D.

@t-ae Not intentional, When I wrote the layers, I wrote them directly with dimensionality in my mind i.e 1D, 2D, 3D. I think we'll have to update the functionality of zero padding layers wrt keras.

@t-ae now that i've checked the implementation, i've understood that the implementation is sorta right, we just need to add the batch and features dimensions to everything


iOS crash due to default.realm.lock': open() failed: Operation not permitted Path

How frequently does the bug occur?
Sometimes
Description
Expected
The crash shouldn't happen.
Actual result
The crash happens during app startup process. We did a database migration in function application:didFinishLaunchingWithOptions in AppDelegate.m
Stacktrace & log output
Fatal Exception: RLMException
/var/mobile/Containers/Data/Application/8025F2F4-E299-4025-AE69-A441B9D27B48/Documents/RealmDB/default.realm.lock: Unable to open a realm at path '/var/mobile/Containers/Data/Application/8025F2F4-E299-4025-AE69-A441B9D27B48/Documents/RealmDB/default.realm.lock': open() failed: Operation not permitted Path: /var/mobile/Containers/Data/Application/8025F2F4-E299-4025-AE69-A441B9D27B48/Documents/RealmDB/default.realm.lock Exception backtrace: 0 MyAppName 0x0000000104ad8734 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 106252 1 MyAppName 0x00000001049b55b0 _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 124732 2 MyAppName 0x00000001049b864c _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 137176 3 MyAppName 0x00000001049bc8e4 _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 154224 4 MyAppName 0x0000000104b9d41c _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 912372 5 MyAppName 0x0000000104b9c548 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 908576 6 MyAppName 0x0000000104b9c3a0 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 908152 7 MyAppName 0x0000000104beaf40 _ZN5realm7Results8index_ofINS_4util8OptionalINS_4UUIDEEEEEmRKT_ + 73892 8 MyAppName 0x00000001048aadf4 _Z23RLMAddNotificationBlockI10RLMResultsEP20RLMNotificationTokenPT_U13block_pointerFvP11objc_objectP19RLMCollectionChangeP7NSErrorEPU28objcproto17OS_dispatch_queue8NSObject + 665224 9 MyAppName 0x00000001048aaa2c _Z23RLMAddNotificationBlockI10RLMResultsEP20RLMNotificationTokenPT_U13block_pointerFvP11objc_objectP19RLMCollectionChangeP7NSErrorEPU28ob

Fatal Exception: RLMException
0  CoreFoundation                 0x12586c __exceptionPreprocess
1  libobjc.A.dylib                0x6c50 objc_exception_throw
2  MyAppName                      0x39f9f0 RLMSetErrorOrThrow(NSError*, NSError* __autoreleasing*) + 380 (RLMUtil.mm:380)
3  MyAppName                      0x382404 RLMRealmTranslateException(NSError* __autoreleasing*) + 327 (RLMRealm.mm:327)
4  MyAppName                      0x3838ec translateSharedGroupOpenException(NSError* __autoreleasing*) + 357 (RLMRealm.mm:357)
5  MyAppName                      0x383830 +[RLMRealm realmWithConfiguration:queue:error:] + 445 (RLMRealm.mm:445)
6  MyAppName                      0x382a2c +[RLMRealm realmWithConfiguration:error:] + 362 (RLMRealm.mm:362)
7  MyAppName                      0x381974 +[RLMRealm defaultRealm] + 197 (RLMRealm.mm:197)
8  MyAppName                      0x843c -[AppDelegate migrateRealmDB] + 151 (AppDelegate.m:151)
9  MyAppName                      0x7d54 -[AppDelegate application:didFinishLaunchingWithOptions:] + 28 (AppDelegate.m:28)
10 UIKitCore                      0xbc5228 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]
11 UIKitCore                      0xbc7290 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]
12 UIKitCore                      0xbcccec -[UIApplication _runWithMainScene:transitionContext:completion:]
13 UIKitCore                      0x222c74 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]
14 UIKitCore                      0x790f9c _UIScenePerformActionsWithLifecycleActionMask
15 UIKitCore                      0x22380c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke
16 UIKitCore                      0x2232cc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
17 UIKitCore                      0x22361c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
18 UIKitCore                      0x222e58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
19 UIKitCore                      0x22b3a4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
20 UIKitCore                      0x69d60c +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
21 UIKitCore                      0x7a96c4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext
22 UIKitCore                      0x22b09c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
23 UIKitCore                      0x525a0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
24 UIKitCore                      0x50f14 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
25 UIKitCore                      0x521c8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
26 UIKitCore                      0xbcae8c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:]
27 UIKitCore                      0x6c6e38 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]
28 FrontBoardServices             0xa3bc -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:]
29 FrontBoardServices             0x35d04 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.200
30 FrontBoardServices             0x194a0 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
31 FrontBoardServices             0x359c8 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke
32 libdispatch.dylib              0x3db0 _dispatch_client_callout
33 libdispatch.dylib              0x7738 _dispatch_block_invoke_direct
34 FrontBoardServices             0x5e250 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
35 FrontBoardServices             0x5dee0 -[FBSSerialQueue _targetQueue_performNextIfPossible]
36 FrontBoardServices             0x5e434 -[FBSSerialQueue _performNextFromRunLoopSource]
37 CoreFoundation                 0xa176c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
38 CoreFoundation                 0xa1668 __CFRunLoopDoSource0
39 CoreFoundation                 0xa0960 __CFRunLoopDoSources0
40 CoreFoundation                 0x9aa8c __CFRunLoopRun
41 CoreFoundation                 0x9a21c CFRunLoopRunSpecific
42 GraphicsServices               0x3784 GSEventRunModal
43 UIKitCore                      0xbc8ee8 -[UIApplication _run]
44 UIKitCore                      0xbce75c UIApplicationMain
45 MyAppName                      0x8c24 main + 14 (main.m:14)
46 libdyld.dylib                  0x16b0 start

Can you reproduce the bug?
Not yet
Reproduction Steps
This crash is found on the Firebase console, I can't reproduce it. According to the Firebase, it happens more than 600 times and affects more than 300 users. I tried solutions in other issues below:
https://github.com/realm/realm-swift/issues/3308#issuecomment-195621569
https://github.com/realm/realm-swift/issues/5938#issuecomment-439522830
https://github.com/realm/realm-swift/issues/1260#issuecomment-223842622
https://github.com/realm/realm-swift/issues/1874#issuecomment-101057887
https://github.com/realm/realm-swift/issues/1571#issuecomment-77901737
And I even looked up the docs https://docs.mongodb.com/realm-legacy/docs/swift/latest/index.html#using-realm-with-background-app-refresh, but after updating my code I still see this crash happens on the production environment.
Here are my code about migration
- (void)migrateRealmDB {
  NSString *kRealmFileName = @"default.realm";
  NSString *kRealmLockFileName = @"default.realm.lock";
  NSString *kRealmManagementFolder = @"default.realm.management";

  NSString *documentFolder = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
  NSString *dbfolder = [documentFolder stringByAppendingPathComponent:@"RealmDB"];
  NSString *newRealmPath = [dbfolder stringByAppendingPathComponent:kRealmFileName];
  BOOL isDirectory = YES;
  BOOL folderExists = [[NSFileManager defaultManager] fileExistsAtPath:dbfolder isDirectory:&isDirectory];
  if (!folderExists) {
    BOOL res = [[NSFileManager defaultManager] createDirectoryAtPath:dbfolder
                              withIntermediateDirectories:YES
                                               attributes:@{ NSFileProtectionKey: NSFileProtectionNone }
                                                    error:nil];
    if (res) {
      // create folder successfully
      folderExists = YES;
      NSString *defaultRealmPath = [documentFolder stringByAppendingPathComponent:kRealmFileName];
      BOOL realmExists = [[NSFileManager defaultManager] fileExistsAtPath:defaultRealmPath];
      if (realmExists) {
        // need to move realm to RealmDB folder
        NSString *defaultRealmLock = [documentFolder stringByAppendingPathComponent:kRealmLockFileName];
        NSString *defaultRealmFolder = [documentFolder stringByAppendingPathComponent:kRealmManagementFolder];

        NSString *newRealmLock = [dbfolder stringByAppendingPathComponent:kRealmLockFileName];
        NSString *newRealmFolder = [dbfolder stringByAppendingPathComponent:kRealmManagementFolder];

        [[NSFileManager defaultManager] moveItemAtPath:defaultRealmPath toPath:newRealmPath error:nil];
        [[NSFileManager defaultManager] moveItemAtPath:defaultRealmFolder toPath:newRealmFolder error:nil];
        [[NSFileManager defaultManager] moveItemAtPath:defaultRealmLock toPath:newRealmLock error:nil];
      }
    }
  }
  // migrate database
  RLMRealmConfiguration *config = [RLMRealmConfiguration defaultConfiguration];
  // Set the new schema version. This must be greater than the previously used
  // version (if you've never set a schema version before, the version is 0).
  config.schemaVersion = 1;
  if (folderExists) {
    config.fileURL = [NSURL URLWithString:newRealmPath];
  }

  // Set the block which will be called automatically when opening a Realm with a
  // schema version lower than the one set above
  config.migrationBlock = ^(RLMMigration *migration, uint64_t oldSchemaVersion) {
      // We haven’t migrated anything yet, so oldSchemaVersion == 0
      if (oldSchemaVersion < 1) {
          // Nothing to do!
          // Realm will automatically detect new properties and removed properties
          // And will update the schema on disk automatically
      }
  };

  // Tell Realm to use this new configuration object for the default Realm
  [RLMRealmConfiguration setDefaultConfiguration:config];

  // Now that we've told Realm how to handle the schema change, opening the file
  // will automatically perform the migration
  [RLMRealm defaultRealm];
}

I created a sub directory in document folder, move the default.realm file and default.realm.lock file to this sub directory and set its attribution to NSFileProtectionNone, but still seeing this crash on the production environment.
Version
Realm 10.7.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 14
Build environment
Xcode version: 13.1
Dependency manager and version: CocoaPods 1.11.3

Hi @haozhutw it seems like we are not able to access the file and because default.realm.lock is the first one we check, it is the one that throws.
This seems very difficult to reproduce and I've seen some other issue where this happens, I don't think this is related to the migration, but it happens on migrateRealmDB because it is the first time opening the realm on the app lifecycle.
Have you seen any increase of crashes in any particular iOS version?.
One change we can make it is to always set up the file protection for the folder.
So Instead of checking if the folder exist before setting the file protection
if (!folderExists) {
    BOOL res = [[NSFileManager defaultManager] createDirectoryAtPath:dbfolder
                              withIntermediateDirectories:YES
                                               attributes:@{ NSFileProtectionKey: NSFileProtectionNone }
                                                    error:nil];

Do it before opening the realm using
NSString *folderPath = [[config.fileURL absoluteString] stringByDeletingLastPathComponent];
    NSError *error;
    [[NSFileManager defaultManager] setAttributes:@{ NSFileProtectionKey:
                                                         NSFileProtectionNone } ofItemAtPath:folderPath error:&error];

making sure it is executed every time

@dianaafanador3 This crash happens on iOS 12 and above versions, most of them happen on iOS 15 because most of the users are using the latest iOS system. I have updated my code logic, hope this issue can be fixed after my app goes live next time.

Hi @dianaafanador3,  I found another crash after publishing a new version of my app. Here is the crash log
Fatal Exception: RLMException
/var/mobile/Containers/Data/Application/25AD1DE0-8943-4C1C-9DE7-
C6BA3A7B24E0/Documents/RealmDB/default.realm.management/access_control.write.mx: Unable to open a realm at path
'/var/mobile/Containers/Data/Application/25AD1DE0-8943-4C1C-9DE7-
C6BA3A7B24E0/Documents/RealmDB/default.realm.management/access_control.write.mx': open() failed: Operation not
permitted Path: /var/mobile/Containers/Data/Application/25AD1DE0-8943-4C1C-9DE7-
C6BA3A7B24E0/Documents/RealmDB/default.realm.management/access_control.write.mx Exception backtrace: 0

MyAppName 0x0000000101430b4c _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 106252 1
MyAppName 0x000000010130fb7c _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 133360 2
MyAppName 0x000000010130dbe4 _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 125272 3
MyAppName 0x0000000101310a64 _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 137176 4
MyAppName 0x0000000101314cfc _ZNK5realm19ArrayFixedBytesNullINS_4UUIDELi16EE15find_first_nullEmm + 154224 5
MyAppName 0x00000001014f5834 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 912372 6
MyAppName 0x00000001014f4960 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 908576 7
MyAppName 0x00000001014f47b8 _ZNK5realm5Table10find_firstINS_4util8OptionalINS_8ObjectIdEEEEENS_6ObjKeyENS_6ColKeyET_ + 908152 8
MyAppName 0x0000000101543358 _ZN5realm7Results8index_ofINS_4util8OptionalINS_4UUIDEEEEEmRKT_ + 73892 9
MyAppName 0x00000001012035c0 _Z23RLMAddNotificationBlockI10RLMResultsEP20RLMNotificationTokenPT_U13block_pointerFvP11objc_objectP19RLMCollectionChangeP7NSErrorEPU28objcproto17OS_dis

I did change the file protection to NSFileProtectionNone every time before opening the database, no way to fix this? really upset.

I set file protection to NSFileProtectionNone  to every realm file, including default.realm, default.realm.lock, default.realm.management and the dbfolder, I think that should be OK. I want to know if default.realm.management should be excluded or Could you indicate what I'm doing wrongly? Thank you so much!

Hi @haozhutw you should just set NSFileProtectionNone on the parent folder for all these files.
Just a couple of questions:

Also do you have App Groups enabled? i.e is there an app extension which also tries to use the Realm file at the same time?
Do you know if the app is put to the background when the crash occurs?

Hi @haozhutw you should just set NSFileProtectionNone on the parent folder for all these files.
Just a couple of questions:

Also do you have App Groups enabled? i.e is there an app extension which also tries to use the Realm file at the same time?
Do you know if the app is put to the background when the crash occurs?

Thanks for your reply. I don't have App Groups enabled and no app extension. This crash is reported by Firebase and from the report it happens on foreground, here is the screenshot.

Just in case it's useful for anyone else with this issue, we tracked it down in our app to the MFi App Launch feature, where if the user powered on their iOS device but didn't unlock it, when the MFi Bluetooth device was powered on and the app launched (underneath the locked screen) any access to files in the app's documents folder would fail with the same error seen in this report.  The Crashlytics issue in our case also showed the app as not being in the background, but this isn't totally true - it's underneath the lock screen, not in the background ;)
So this could occur if the app makes use of any feature that could launch the app before the user has ever unlocked the device (geofencing maybe?)
Our initial workaround is checking UIApplication.shared.isProtectedDataAvailable before deciding whether to use the database or not.

Still encounter this issue on the production environment
Fatal Exception: RLMException
/var/mobile/Containers/Data/Application/EA078871-274D-49EA-81C6-CDCF275CB0AF/Documents/RealmDB/default.realm.management/access_control.control.mx: Unable to open a realm at path '/var/mobile/Containers/Data/Application/EA078871-274D-49EA-81C6-CDCF275CB0AF/Documents/RealmDB/default.realm.management/access_control.control.mx': open() failed: Operation not permitted Path: /var/mobile/Containers/Data/Application/EA078871-274D-49EA-81C6-CDCF275CB0AF/Documents/RealmDB/default.realm.management/access_control.control.mx Exception backtrace: 0

@haozhutw There is nothing that points to a bug in Realm as far as we can tell. This appears to be a problem in your application that happens to occur when you open a Realm.
If you can provide a short repro-case that shows a problem in Realm we will be happy to look at it again. Until then I'll close this for now.
Thanks!

@bmunkholm one use case was provided by @benlacey , in our case, this crash happens when the app receives a push notification after the device was rebooted but not yet unlocked.

@nalexn did you try change the folder protection permissions in your App Group directory?

@leemaguire I did, though I don't set it to none as recommended and use completeUntilFirstUserAuthentication for privacy reasons. I consider changing protection to none a hack full of compromises, which, in fact, does not work for in-memory realms as I noted above, where tmp folder is protected as well and you cannot even change the protection to none.

@nalexn thanks for the details, I'll bring this topic back up for discussion with the team to see if anything can be done.

I'm closing this issue as I have submitted a feature request for https://github.com/realm/realm-swift/issues/7874#issuecomment-1331987826 in Realm Core.


UB on 16bit Platforms

Code can be found here:
https://github.com/GnomedDev/small-fixed-array/blob/101610c061830127811ed3414de1794996a20eb0/src/non_empty_array.rs#L14-L16
This is UB because on a 16 bit platform, u32 cannot fit in usize, and we rely on this usize for converting back into Box. As the only way to construct this type is through a Box which has usize however, this is probably fine, but it should be documented somehow (and ideally the problem is sidestepped entirely by emitting a compile_error on 16 bit platforms)

Another thing that can be done here is gaining from 16 bit platforms, and making the inner length be a u16 on 16 bit platforms


Add support for confined/unconfined image outputs

The existing notebook confines images to fit by default, with dblclick toggling the behavior.

Cool. I didn't realize this. Looks good.


Add support to remove not executed transactions

Close #306

Refactor hardware wallet manager sign eip712 message.

This PR have a dependency with this other PR on safe-eth-py https://github.com/safe-global/safe-eth-py/pull/753

coverage: 95.137% (+0.05%) from 95.086%
when pulling 186045e49146fa938c8fd4dd6e0e0209985eecac on add_delete_transaction
into f21a55b30fd45b46eff5071b5365bad84157da69 on master.


CW leaderboard is showing deactivated profiles

This is related to this kata:
https://www.codewars.com/kata/codewars-api/discuss
Some profiles that is showing on the leaderboard page is not accessible anymore (e.g #223 and #410). Opening one gives ApplicationController::ResourceNotFoundError.

I just performed a scan through the 500 users on the leaderboards (using code from this kata, of course), and these are profiles that have been deactivated:

#133: rollietikes
#141: del-this-account
[#253: Blue Leaf](https://www.codewars.com/users/Blue Leaf)
#446: MarcosDominguez
#449: nedsociety

This should be fixed now. Banned users are removed from leaderboards.

https://www.codewars.com/users/del-this-account
3 kyu
Leaderboard Position:#4,812
Actual Leaderboard:
Overall:
#178 | 1 dan del-this-account
Completed Kata:
#116 | 1 dan del-this-account
So:

Not deleted from leaderboards
different user rank info (1 dan | 3 kyu)
different position info (4,812 | 178)

Reopen request

Fixed a bug that was preventing to remove banned users and removed all deactivated and banned users.


chore: add antfu/eslint

@mukundshah  thanks for the original PR https://github.com/radix-vue/radix-vue/pull/313). I've picked some commit from yours into this eslint specific PR.
By modifying some rules, we are able to apply lint to all the core codebase we have without breaking anything.
Thanks for looking into the export issue ya! Appreciate it nonetheless 😁


Update iOS version headers

Updating the Instagram iOS version headers as the version currently being used is no longer supported and prevents login (most likely also being used to flag accounts).

Is it just a proof of concept? No
Is the documentation updated (if appropriate)? No
Do you consider it ready to be merged or is it a draft? Ready
Can we help you at some point? No

Merged. Thanks for keeping it up-to-date!


期望支持前几行也能固定，有一些统计数据需展示在表头下方固定[Feature]

What problem does this feature solve?
无
What does the proposed API look like?
无

+1

+1

+1


Clear screen quick action support

added global support for quick terminal action 'Control-l' to TerminalScreen  class to clear terminal without type clear / reset commands. Also updated .gitignore for better python project files support.

Nice work. I will also check it soon.

Cool!


Help Needed With Graphing Ballistic Code

I want everything in a graph/curve so no math is needed during run time but I can't figure it out for the life of me. Any help is appreciated

Got it figured out


Fix workflow toolchain version

Proposed changes
This adds a workaround for failing tarpaulin build due to change in the latest toolchain (1.52), alternative is to use experimental version of tarpaulin 0.18alpha3.
Types of changes
What types of changes does your code introduce to thin-edge.io?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[z] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[ ] I ran cargo fmt as mentioned in CODING_GUIDELINES
[ ] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Best solution until we decide about which version to use.
Test run is here: https://github.com/abelikt/thin-edge.io/runs/2581800705?check_suite_focus=true


LogLevel.Debug for NLog Logger

It seems like mapping between Microsoft.Framework.Logging.LogLevel and NLog.LogLevel is not fully correct:

has missed Microsoft.Framework.Logging.LogLevel.Debug
Microsoft.Framework.Logging.LogLevel.Verbose pointed to NLog.LogLevel.Debug instead of Trace

The main problem is that NLog.Logger.Debug method does not write any logs.
You can check the following PR: https://github.com/aspnet/Logging/pull/188

@ORuban thanks for the PR!  @kichalla Please have a look at the PR and if looks good, merge.

Commit 0d6b4fcc2067e595452261c605fae8d9f15f0c82


Drop Gogs support

Gogs support is broken (and we won't fix it because we don't care about it...) because it does not support OAuth, at least after we introduced the new Vue UI.
See:
https://github.com/woodpecker-ci/woodpecker/blob/77d830d5b56f85084a74fe2396689cef8b2cdee2/server/forge/gogs/gogs.go#L84
This route is not present in the new UI.

well it also lacks of api's we need, to make a equal integration to other forges


Remove deleted components from api docs

Codecov Report

Merging #833 (1f83dbb) into master (a4cc40a) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 1f83dbb differs from pull request most recent head 6aa5588. Consider uploading reports for the commit 6aa5588 to get more accurate results

@@           Coverage Diff           @@
##           master     #833   +/-   ##
=======================================
  Coverage   95.88%   95.88%
=======================================
  Files         118      118
  Lines         850      850
  Branches      238      238
=======================================
  Hits          815      815
  Misses         33       33
  Partials        2        2

Continue to review full report at Codecov.

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


Feature request, Docker WSS/TLS with Let's Encrypt Support

Dear all,
thank you very much for the project.  It's working great within my local network running on my local docker server. My next step is to run it globally and expose the server to the internet. Obviously I want to do this securely and do this running the appropriate certificates. However, the docker setup doesn't seem to be suitable for this. Thus following feature request:
Either:

Support for one of the well know docker containers that take care of automatically generating Letsencrypt certificates.  On my private server I am actually already doing this for my personal website relying on jwilder/nginx-proxy and nginxproxy/acme-companion. However, I assume that this isn't as easy due to working with Java Keystore for which the mentioned docker containers don't seem to be setup.
Or
Modification of the existing Dockerfile. If some appropriate environment variables are set in the docker compose/as part of the docker command  (domain name, email, certificate pw, ...), then install certbot jdk, .... and other dependencies, and afterwards essentially run the instructions specified in the guide on the website (https://routr.io/docs/guides/securing-the-signaling-path/).

Thank you very much for consideration,
Kind regards

I know not having support for Let's Encrypt is a pain.
Unfortunately, Routr v1 will not get any more updates beyond maintenance.
My recommendation is to create a sidecar to convert your certificates.
Here is an example of how to convert the certificate to work with Routr https://gist.github.com/psanders/0f89d59ce0bacadfb017c651e1c2f3de
I'm closing this issue since this will be supported in v2.

@psanders thank you very much for the reply and recommendation. I will give it a try.
Nevertheless, is there a roadmap/timeline for the release of v2? Is the release just around the corner or did the v2 project just start?

@JCLengeling
The first beta release is scheduled for the end of September. Would you like to beta test v2?

@psanders yeah sure, that sounds like fun.  Please let me know what you like me to do :) (you may also reach me by mail if it's more extensive joel.cedric@lengeling.eu).
During the last week of September I am out of office, but during the start of October I am available to test.

@psanders I am back in the office; if you need help, please let me know.


fsspec integration

Replaces #60

I'm afraid I don't know enough about pytest to understand why the test setup isn't working correctly. Does it work if you move it into conftest?

Actually, all the tests are failing in CI, not what I see locally :|

green :)

(this fails because he _fetch_range fix in fsspec isn't released yet)

OK, so the prefix case doesn't work ATM (I wasn't sure if you were implying it should) and "create" doesn't raise for moto. I haven't tried real s3 yet.

I don't think "create" will work until https://github.com/apache/arrow-rs/pull/6682

OK, I can make that one xfail, and I suppose we wait for fsspec's release before merging here?

If this doesn't work until the next fsspec release, we should wait to merge until that is released and then probably do an fsspec version check on module import.

It would work now with the subclass I had before, which might prove convenient in the long run... up to you.

I'm ok with the subclass as long as it's not exposed in a public API. It's essentially just an implementation detail for now, right?

Let's keep to this fromalism for now, then.

Publishing v0.3.0-beta.6


Transfer Challenge: Build a script that takes policies from one env and transfers it to another

Options for such scripts:

[ ] Transfer ring policy to any other env
[ ] Transfer an image based policy to any other env
[ ] Transfer a traffic light policy from one env to another.

I've been thinking about this and it seems to me that the only way we can perform this transfer is given we have a trained policy from ring and an arbitrary target env (say, MergePOEnv), we would need to modify the get_state and _apply_rl_actions methods and somehow, dump the compatible Env to a file. Only then can the new (compatible) environment be loaded and use the learned policy from the ring.
Does this sound like what you had in mind @eugenevinitsky?

I realized that the goal isn't to transfer and retrain the policy, but rather to just transfer and reapply it to a different setting. Hence, writing an env to a file is not necessary.
One challenge is that the action_space, observation_space, get_state, and _apply_rl_actions sometimes depend on ADDITIONAL_NET_PARAMS and ADDITIONAL_ENV_PARAMS, which makes copying these methods to from the pre-trained env to the target env non-trivial. The ideal scenario would be some function
def transfer_policy(trained_config_file, target_flow_params):
    <some code that modifies the above 4 methods of target_flow_params['env_name']>

where target_flow_params is defined as you would any other flow_params dict. One current workaround is to combine the ADDITIONAL_NET_PARAMS of the source and target policies, to supply the missing parameters.


Aply cannot handle deb packages using control.tar.xz

Detailed Description
Ever since the release of dpkg 1.19.0, dpkg-deb enables --uniform-compression by default. This means control.tar* file will be compressed using xz by default (to be more precise, using the same compression method as data.tar* file). This claims control.tar.xz file inside .deb file instead of control.tar.gz.
Currently aptly does not seem to support handling control.tar.xz inside .deb file.
Context
Using .deb packages built using dpkg (>= 1.19.0) will encounter this problem.
Currently it affects users of Debian Testing and Debian Unstable but we can expect more users affected by this bug due to downstream adaption of new dpkg.
Possible Implementation
Do not assume hardcoded control.tar.gz inside .deb files. Instead, we should do an intelligent analysis about the compression method used for control.tar.* and data.tar.*.
Your Environment
Debian Unstable, using dpkg <IP_ADDRESS>.

Confirming: this recently hit my builds too.

Hmm, it seems I missed aptly when I was checking for other tools directly handling .deb packages for https://wiki.debian.org/Teams/Dpkg/DebSupport. Support for non-gzip compressed (or not compressed) control.tar is not recent (dpkg 1.17.6), so you might want to check the deb(5) man page and that wiki page for any other features currently not supported, and while you are at it, fill the aptly stub entry I've just added there! Thanks. :)

@guilhem thanks for the pointers, I'll improve compatibility and fill the Wiki page!

Reopening to track wiki updates

I just ran into this... is it fixed in the 1.1.1 version? Or do I need to pull the nightly version?

@travisgriggs It seems to be fixed in the nightly version, but still present in 1.1.1

1.2.0 should have this fix (when it gets released)

Just in case if someone cannot yet upgrade aptly to 1.2.0, you can work this issue around by repacking the .deb so it gets {control,data}.tar gzipped, instead of xz'ed.
dpkg-deb -R package.deb tmp
rm package.deb
fakeroot dpkg-deb -Zgzip -b tmp package.deb
rm -rf tmp


Update documentation

https://github.com/chrisgoringe/cg-controller?tab=readme-ov-file#advanced-controls

Advanced controls
If there are nodes that you only occasionally need to interact with, you can designate them as 'advanced controls' when you add them to the controller. Advanced controls will only be shown if the 'Advanced controls' checkbox is ticked, and the node in the workflow gets an open circle in place of the dot in the top right.

replace  checkbox is ticked, with icon button is blue

maybe add an image of the icon or mention: 'gears' icon button is blue

https://github.com/chrisgoringe/cg-controller?tab=readme-ov-file#images

Images
The Controller works with Load, Save and Preview image nodes, as well as the imagwe previews shown on the sampler node.

fix typo

https://github.com/chrisgoringe/cg-controller?tab=readme-ov-file#settings

Settings
In the main settings menu are a few things you can tweak - scrollwheel sensitivity, hiding control_after_generate, and a keyboard shortcut to show or hide the Controller. There's also a debug setting that I might ask you to use if you report a problem!

remove scrollwheel sensitivity
mention keybinds for Edit slider limits and scrolling

thanks. done.

The the main page image, I've noticed that your "live preview" looks very low quality.

I think you said you don't use this "live preview", right ?
In case you want to test it further, you need to add some files to ComfyUI models, get good quality previews:
https://github.com/comfyanonymous/ComfyUI?tab=readme-ov-file#how-to-show-high-quality-previews


object/obs: ignore etag check when obs enable encrypted

Codecov Report
Base: 58.45% // Head: 58.41% // Decreases project coverage by -0.04% :warning:

Coverage data is based on head (1eb9c67) compared to base (8222512).
Patch coverage: 0.00% of modified lines in pull request are covered.

:exclamation: Current head 1eb9c67 differs from pull request most recent head 7c217a8. Consider uploading reports for the commit 7c217a8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3098      +/-   ##
==========================================
- Coverage   58.45%   58.41%   -0.05%
==========================================
  Files         141      141
  Lines       25167    25177      +10
==========================================
- Hits        14711    14706       -5
- Misses       8507     8518      +11
- Partials     1949     1953       +4

Impacted Files
Coverage Δ

pkg/object/obs.go
0.49% <0.00%> (-0.03%)
:arrow_down:

pkg/chunk/utils_unix.go
66.66% <0.00%> (-25.00%)
:arrow_down:

pkg/vfs/writer.go
76.58% <0.00%> (-1.20%)
:arrow_down:

pkg/meta/sql.go
61.84% <0.00%> (-0.14%)
:arrow_down:

pkg/vfs/reader.go
79.41% <0.00%> (+0.21%)
:arrow_up:

pkg/fuse/context.go
75.00% <0.00%> (+10.71%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Create sqrt_double

Now that the files have the correct extension, they are being linked.
Please click on the Details link next to the ❌ to see why the tests are failing.

I think it is ready


Global options appear white

The global options panel is completely white after installing and selecting the Mojave dark theme. I'm using RStudio 1.4.1103 on Mac OS Big Sur.

Still white on MacOS 12.4 on RStudio 2022.07.1

Same here. I'm now using MacOS 13.0.1 Ventura.

still while on MACOS 14.5

Yes, I fixed this in my pull request, but somehow the fix doesn't work anymore. Gonna take another look into it.

I just checked. There was some change between 2023.12.1 and 2024.04.0 that reversed all the changes I made. Guess I need to update some id's

Fixed this. Some things are still hard to read. Maybe I‘ll find a solution for that. If anyone has a better way then hard coding the IDs, I'm open to suggestions :).


Added support for Meteor.js packaging

Hi @vitalets ,
I'm a package maintainer for Meteor.js, a popular full-stack JavaScript framework.
I'm also a developer on angular-meteor, a library that let's you work with AngularJS on top of Meteor.
A lot of our users use angular-xeditable and it right now there is a separate package and Github repo that simply manually copies your distribution and publish it to Meteor.
This PR will allow you to directly publish updated versions of angular-editable as they become available. All you have to do is create an account at https://meteor.com/ (click SIGN IN, then Create account). After you've done that, please let me know the name of the account, and I'll add you as a maintainer to the "vitalets" organization there.
I've already published the current version of the package on Atmosphere (Meteor's package directory). When you release new versions of angular-xeditable, you'll be able to publish them to Atmosphere by running grunt meteor-publish after updating the version number on the "package.js" file.
Thanks & best regards,
Dotan

@eugef is this still relevant?

@dotansimha can you update your PR?

@eugef what do you want to do with this pull request?

Don't think it is still relevant. npm & bower support should be enough


Support arm64 instances

Added an arm64 binary of ejson2env to be used if the architecture matches.

I'm uneasy with these binaries included in the source.

Yeah, I agree. I don't think this is the right place for them either.

is it possible for the script to download the binaries from a reliable site at runtime?

It feels to me like this software should be baked into the build agent AMI itself, and this plugin uses whatever version is available/installed on the agent, similar to how the docker plugins expect docker to be installed and available.
In terms of how the build agent AMI could install it, it could be either downloaded from a Github release, or compiled from a source tag.


FAILURE: Build failed with an exception - Flutter

Steps to Reproduce
I was trying to build my app as normal
Expected results:
Message says that build is done successfully and the app shows on my phone
Actual results:
I faced a weird error

Logs
This is the error :-
C:\Native\findhelpapp\findhelpapp>flutter run
Launching lib\main.dart on M2003J15SC in debug mode...
Running Gradle task 'assembleDebug'...
C:\Native\findhelpapp\findhelpapp\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:25: error: cannot find symbol
    flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
                                                                      ^
  symbol:   class PathProviderPlugin
  location: package io.flutter.plugins.pathprovider
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 26s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                       207.9s (!)
Exception: Gradle task assembleDebug failed with exit code 1

C:\Native\findhelpapp\findhelpapp>

Running flutter analyze :-
C:\Native\findhelpapp\findhelpapp>flutter analyze
Analyzing findhelpapp...

   info - The value of the field '_hasSpeech' isn't used - lib\pages\tabs\mapPage.dart:33:8 - unused_field
   info - The value of the field '_currentLocaleId' isn't used - lib\pages\tabs\mapPage.dart:40:10 - unused_field

2 issues found. (ran in 73.8s)

C:\Native\findhelpapp\findhelpapp>

The logs of flutter doctor :-
C:\Users\Omar>flutter doctor -v
[√] Flutter (Channel stable, 1.20.4, on Microsoft Windows [Version 10.0.18362.1082], locale en-US)
    • Flutter version 1.20.4 at C:\Native\flutter
    • Framework revision fba99f6cf9 (8 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\Omar\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] IntelliJ IDEA Community Edition (version 2019.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.2
    • Flutter plugin version 45.1.2
    • Dart plugin version 193.6911.31

[√] VS Code (version 1.49.1)
    • VS Code at C:\Users\Omar\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.14.1

[√] Connected device (1 available)
    • M2003J15SC (mobile) • 1b19b6000404 • android-arm64 • Android 10 (API 29)

• No issues found!

C:\Users\Omar>

using pathprovider?

using path provider?

Nope

try 'flutter clean'

try 'flutter clean'

I tried it a lot but it doesn't work

lack of information... ummmmm .... think native code err.... can u show me packages ? and 'C:\Native\findhelpapp\findhelpapp\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:25' code .

here is the line

and this is my packages :-
dependencies:
    flutter:
        sdk: flutter
    # SplashScreen
    splashscreen:
        git:
            url: git://github.com/OmarYehiaDev/SplashScreenFlutterPackage
    # HTTP & Network
    http: ^0.12.2
    # Icons
    material_design_icons_flutter: 4.0.5345
    # Firebase
    # firebase_core: ^0.5.0
    # firebase_auth: ^0.18.0+1
    # Social Login
    # flutter_facebook_login: ^1.2.0
    # google_sign_in: ^4.1.1
    # Map
    platform_maps_flutter: ^0.1.8+1
    # STT
    speech_to_text: ^2.4.1
    # Form Validation
    wc_form_validators: ^0.1.1
    # WebView
    webview_flutter: ^0.3.22+1
    # Location
    location: ^3.0.0
    geocoder: ^0.2.1
    # State Management
    # provider: ^4.3.2+1
    # In-App Badges
    badges: ^1.1.1
    # Out-App Badges
    flutter_app_badger: ^1.1.2
    # Offline Storage
    shared_preferences: ^0.5.10
    # Google Fonts
    google_fonts: ^1.1.0
    # Biometric Auth
    local_auth: ^0.6.1+3
    # Search Bar
    material_floating_search_bar:
        git:
            url: git://github.com/bnxm/material_floating_search_bar
    # DateTimePicker
    flutter_datetime_picker: ^1.4.0
    # Toast messages
    fluttertoast: ^7.1.1

    # The following adds the Cupertino Icons font to your application.
    # Use with the CupertinoIcons class for iOS style icons.
    cupertino_icons: ^0.1.3

dev_dependencies:
    flutter_test:
        sdk: flutter
    # Launcher Icons
    flutter_launcher_icons: "^0.7.5"
flutter_icons:
    android: "launcher_icon"
    ios: true
    image_path: "assets/images/mylogo.png"

Delete the native 25 lines and do error checking. This is because the package dependencies are wrong.
'google_fonts' or conflicting with other packages.

I deleted 'C:\Native\findhelpapp\findhelpapp\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:25' code and I'll try to build the app now. Should I run flutter clean or anything else first?

APP Delete first in Emulator

delete -> clean -> Build -> Err Msg Check
reset -> google_fonts or other packages delete -> build test

Please comment when it is resolve :) Additional issues are also good.

Please comment when it is resolve :) Additional issues are also good.

Still facing it :"(
but I don't know exactly what to do for performing step 2

step 1. native code remove -> build -> msg check
step 2. native code 25 line reset -> google_fonts package delete(or other package delete), flutter code update -> build test

step 3. [Android_studio] new Flutter Project -> Paste existing files( ' lib ' folder) & pubspec etc ... -> Build Test

Steps 1 & 2 don't work. Must I try Step 3 :"( ??
because it will be very frustrating to move all this work done in the old workplace to another new one

It's hard, but it can be the fastest way ..

Hi @OmarYehiaDev
Can you please provide your flutter doctor -v and flutter run --verbose logs, and a minimal complete reproducible code sample without using third party packages
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

I'm getting the exact same error. Project was working till i added the path provider dependency. Post adding the dependency keep getting
/Volumes/SDCard/InventionLabs/AvazAAC/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:18: error: cannot find symbol
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
The GeneratedPluginRegistrant is auto generated. Deleting it or flutter clean and rebuild doesnt work

Update: The isssue went away when i fixed the path_provider version to
dependencies:
path_provider: 1.6.17
Not sure about the exact reason though


[BUG] - cardano-cli fails with MuxError when p2p is enabled

Internal
Area
Other   p2p
Summary
On local network where p2p is enabled, all cardano-cli commands fail:
$ cardano-cli query tip --testnet-magic 42
MuxError (MuxIOException writev: resource vanished (Broken pipe)) "(sendAll errored)"

cardano-cli: MuxIOException writev: resource vanished (Broken pipe) "(sendAll errored)"

cardano-node processes are running, there are no errors in log files. The issue is present in latest master, first it was observed in nightly job that ran with rev 40cf9b428f4bd6156cc8d2aef01ac9475f5a62c5
The issue is not present when p2p is disabled and legacy topology files are used.
Steps to reproduce
Steps to reproduce the behavior:

start local cardano network with p2p enabled
run any cardano-cli command

System info (please complete the following information):

OS Name: Linux
Node version: 40cf9b428f4bd6156cc8d2aef01ac9475f5a62c5
CLI version: 40cf9b428f4bd6156cc8d2aef01ac9475f5a62c5

This bug is still present in 1.34.0, actually even worse. Every query fails.
    $ cardano-cli query tip --testnet-magic<PHONE_NUMBER>
    MuxError (MuxIOException writev: resource vanished (Broken pipe)) "(sendAll errored)"

    cardano-cli: MuxIOException writev: resource vanished (Broken pipe) "(sendAll errored)"

I was trying to check if #3659 was resolved in 1.34.0, but it is not, probably because of this one.


Issue on oandamomentumv20.ipynb In [2]:

I'm getting the error below using a Jupyter notebook:

ValueError                                Traceback (most recent call last)
 in ()
5
6 # The v20 api handles from times a little differently - be careful of the timezone
----> 7 params={"from": parser.parse("2016-12-07 18:00:00 EDT").strftime('%s'),
8         "to": parser.parse("2016-12-10 00:000:00 EDT").strftime('%s'),
9         "granularity":'M1',
ValueError: Invalid format string

import pandas as pd
import datetime
from dateutil import parser
import oandapyV20.endpoints.instruments as instruments

# The v20 api handles from times a little differently - be careful of the timezone
params={"from": parser.parse("2016-12-07 18:00:00 EDT").strftime('%s'),
        "to": parser.parse("2016-12-10 00:000:00 EDT").strftime('%s'),
        "granularity":'M1',
        "price":'A'}
r = instruments.InstrumentsCandles(instrument="EUR_USD",params=params)
data = client.request(r)
results= [{"time":x['time'],"closeAsk":float(x['ask']['c'])} for x in data['candles']]
df = pd.DataFrame(results).set_index('time')

df.index = pd.DatetimeIndex(df.index)

df.info()

I tested this notebook on a Mac. However, it appears python's strftime slightly differently on Windows. This may be related to your issue? https://stackoverflow.com/questions/11743019/convert-python-datetime-to-epoch-with-strftime
From the article:
If you want to convert a python datetime to seconds since epoch you should do it explicitly:

datetime.datetime(2012,04,01,0,0).strftime('%s')
'1333234800'
(datetime.datetime(2012,04,01,0,0) - datetime.datetime(1970,1,1)).total_seconds()
1333238400.0

Please replace line 7 and 8 with this approach, and see if that works?

Thanks! I figured that there was no need to parse the date. The revised code should be this:
import pandas as pd
import datetime
from dateutil import parser
import oandapyV20.endpoints.instruments as instruments

# The v20 api handles from times a little differently - be careful of the timezone
params={"from": '2016-12-07T18:00:00Z',
        "to": '2016-12-10T00:00:00Z',
        "granularity":'M1',
        "price":'A'}
r = instruments.InstrumentsCandles(instrument="EUR_USD",params=params)
data = client.request(r)
results= [{"time":x['time'],"closeAsk":float(x['ask']['c'])} for x in data['candles']]
df = pd.DataFrame(results).set_index('time')

df.index = pd.DatetimeIndex(df.index)

df.info()

With date and time in RFC3339 format. I just got stuck again in another line. LOL
Let me debug and will post another issue if need be.


Client example error - Expected and actual key signature do not match

Hello.
Following the instructions in the readme to create a certificate and key and testing out the client example, I get the following error with the latest version of the library (as of today):
$ go run examples/dial/main.go
panic: dtls: Expected and actual key signature do not match

goroutine 1 [running]:
github.com/pions/dtls/examples/util.Check(...)
	/home/vagrant/dtls/examples/util/util.go:41
main.main()
	/home/vagrant/dtls/examples/dial/main.go:28 +0x27d
exit status 2

I'm on CentOS 7.  My OpenSSL version is 1.0.2k-fips, and I'm on Go 1.11.2.

@diagonalfish
I was able to get OpenSSL as a client and Pion DTLS working as a server with this patch
[root@b71a7b964168 dtls]# git diff
diff --git a/server_handlers.go b/server_handlers.go
index 034471e..9344608 100644
--- a/server_handlers.go
+++ b/server_handlers.go
@@ -167,9 +167,6 @@ func serverFlightHandler(c *Conn) (bool, error) {
                                                &extensionSupportedEllipticCurves{
                                                        ellipticCurves: []namedCurve{namedCurveX25519, namedCurveP256},
                                                },
-                                               &extensionUseSRTP{
-                                                       protectionProfiles: []srtpProtectionProfile{SRTP_AES128_CM_HMAC_SHA1_80},
-                                               },
                                                &extensionSupportedPointFormats{
                                                        pointFormats: []ellipticCurvePointFormat{ellipticCurvePointFormatUncompressed},
                                                },

I will get this patch into master. We should conditionally support getting/setting extensions like crypto/tls but I just defaulted them because I only was concerned about pion-WebRTC at the time.
Still working on pion DTLS as a client. This is probably the most frustrating part, it is just in hash verification, if you do this everything works. You can do this if you want to be unblocked, but definitely don't ship with this.
diff --git a/client_handlers.go b/client_handlers.go
index 7cb5225..fa0fae6 100644
--- a/client_handlers.go
+++ b/client_handlers.go
@@ -86,10 +86,10 @@ func clientHandshakeHandler(c *Conn) error {
                                        return err
                                }

-                               expectedHash := valueKeySignature(clientRandom, serverRandom, h.publicKey, c.namedCurve, h.hashAlgorithm)
-                               if err := verifyKeySignature(expectedHash, h.signature, c.remoteCertificate); err != nil {
-                                       return err
-                               }
+                               // expectedHash := valueKeySignature(clientRandom, serverRandom, h.publicKey, c.namedCurve, h.hashAlgorithm)
+                               // if err := verifyKeySignature(expectedHash, h.signature, c.remoteCertificate); err != nil {
+                               //      return err
+                               // }
                        }

                case *handshakeMessageCertificateRequest:

Sorry - was out last week and didn't see this.  I appreciate the work you've put into this so far.  If there's anything else I can do to help let me know.

Hey good news @diagonalfish this is all fixed! Can you try out my branch when you get a chance? https://github.com/pions/dtls/pull/37

Can confirm that the issue-32 branch solves the problem.  Excellent :)

Fantastic, merged!
Thanks again for the bug report. If there is every anything else I am all ears, hopefully the package is easy to use :)
Also feel free to join us in Slack! Most people are talking about pions/webrtc but always happy to help debug/discuss anything.


OperatorSpacing: Ignore operators in declare statements

Declare statements are typically written without spaces in them.
This commit makes the OperatorSpacing sniff ignore them, similarly as is done upstream - https://github.com/squizlabs/PHP_CodeSniffer/pull/1411
It would be a good idea to do a complete compare and sync with upstream for this sniff at some point, but that's another matter.

Declare statements are typically written without spaces in them.

Since that's yet another hole in the Handbook standards, allowing declare(strict_types=1); and declare( strict_types = 1 ); is a good thing.

Declare statements are typically written without spaces in them.

Because the style is copied and pasted from php.net, and they don't use a spacey code style. IMHO, this isn't really a gap in the handbook. "When in doubt, space it out" takes in everything like this. 😈
But if we don't want to be dogmatic about this right now, I'm fine with that.  I can imagine that WordPress might adopt spaceless codestyle for declare just because that is especially pervasive.


Lambda layer proof-of-concept

Coverage decreased (-0.03%) to 95.113% when pulling bd1f89e27bd2c1a37126932fb2af9917a8d656f8 on cody-lambda-layers into 00fa596319c41cc0d941c1f9b7c58029c6742825 on main.

Blocked on https://github.com/medplum/medplum/pull/648
Updates to bot layers now require new published versions of @medplum/core


Does this support safari on iOS 8?

As title, some tablets are too old to upgrade to iOS 10.

Need to test.
2017年5月13日 03:40，"Squirrel"<EMAIL_ADDRESS>
As title, some tablets are too old to upgrade to iOS 10.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NTUOSC/mercurius-panel/issues/2, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADKmEVMadY5qOGHaTHc5Wnwb8c5oszTDks5r5LW2gaJpZM4NZs8Q
.


docs(http): add bucket and org links to ScraperTargetResponse

Closes #12541
Closes #12542
Briefly describe your proposed changes:

[x] Rebased/mergeable
[x] Tests pass
[x] http/swagger.yml updated (if modified Go structs or API)
[x] Sign CLA (if not already signed)

Hi @zhulongcheng,
Can you also specified a type for links property?
ScraperTargetResponse:
      type: object
      allOf:
        - $ref: "#/components/schemas/ScraperTargetRequest"
        - type: object
          properties:
            id:
              type: string
              readOnly: true
            organization:
              type: string
              description: name of the organization
            bucket:
              type: string
              description: name of the bucket
            links:
              type: object
              readOnly: true
              example:
                self: "/api/v2/scrapers/1"
                owners: "/api/v2/scrapers/1/owners"
                members: "/api/v2/scrapers/1/members"
                bucket: "/api/v2/buckets/1"
                organization: "/api/v2/orgs/1"
              properties:
                self:
                  $ref: "#/components/schemas/Link"
                members:
                  $ref: "#/components/schemas/Link"
                owners:
                  $ref: "#/components/schemas/Link"
                bucket:
                  $ref: "#/components/schemas/Link"
                organization:
                  $ref: "#/components/schemas/Link"

@bednar Done.

Just FYI - in the future, changes to the swagger.yml content should be assigned to the group influxdata/api for review/notification and given the label area/api.  This helps us keep all the different swagger consumers aware of swagger changes.  I don't think we have this process documented anywhere and I'm sure it is impossible to know in advance :-)
Appreciate it!


FIX-#5730: Add repr, len, size, and make dtype changing lazy.

What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date

@vnlitvinov I ended up rewriting the code so its much shorter and cleaner (we go with an approach similar to the modin DF repr, where we gather just enough data to the head node to build the representative array)!


Sending error message

Can't seem to be able to send XRP out of my wallet. Just stuck on:
Please wait
The transaction is being broadcasted to the network
and should be validated soon.

Now I just get an unexpected error whenever I confirm that I would like to send my funds..

i cant confirm but sometimes i can and i get a network error too.

The fact that the balance shows 0 or that you can't send transaction is something that is not due to the app itself and is not something that we can control yet. The app uses by default the official node wss///s2.ripple.com.
Under heavy load (which seems to be constantly the case since a month), this node tends to either:

not respond
disconnect unexpectedly
provide incorrect/out of date balance

The only thing you can do is try to resync your app later in the day or host/used another node (you can change it by starting the app without your device plugged in and click on "change node")
We are currently deploying our own ripple node the allow our user to use the ripple network under heavy load but the feature is not out yet.

my balance goes to zero and then back to normal too.
where are the other nodes listed?
any eta on your node deployment date or near date?
thanks..

I don't have info about list of nodes. The ETA should be about 1/2 weeks depending on how everything works out.

Where can we find a list of nodes ?

Ok so today I was able to transfer my funds


Adam's name is spelled incorrectly in the README!

It's Myers not Meyers!

Fixed in 842c00c on latest-photometry.


What's up with TravisCI?

I have travisCI set up, but at some point it stopped working for PRs.
I need to investigate why it isn't working, and why it didn't catch the nightly feature used in #46.

Closed by #51


Unable to build the site

Hi,
I tried to build my Nuxt 3 application and got this error.
An idea ?

Best regards

I'm getting exactly the same error. Were you able to fix it @EvanSchleret ?

Has anyone been able to fix this error ?

same !

Okay I managed to get it to work. Here is how :

Create a plugin that is client only, by creating a toaster.client.js file in the plugins folder

Here's the content of the plugin :

import {createToaster} from "@meforma/vue-toaster";

export default defineNuxtPlugin(() => {
  const toaster = createToaster({});

  return {
    provide: {toaster},
  };
});

The provide section of the plugin gives us access to $toaster :

const {$toaster} = useNuxtApp();

$toaster.success('Victory music intensifies');


Add mStream

mStream is a music streaming server with a Windows port.  You can see the code and download the exe's here: https://github.com/IrosTheBeggar/mStream

Can you send PR?


Add menu items to the navbar

As a User I want to have links to the "About us", "Diaper calculator"/"Calculators" pages in the navigation bar so that the website navigation would be more comfortable.
Acceptance Criteria
The site menu should contain additional menu items such as "About us", and "Diaper calculator"/"Calculators" (if the feature flag is enabled) which lead to the corresponding pages.


FAQ: Change from 10 minute contact duration to 5 minutes

Where to find the issue
EN
https://www.coronawarn.app/en/faq/#encounter_but_green
https://www.coronawarn.app/en/faq/#encounter_count_19
https://www.coronawarn.app/en/faq/#encounter_19_calc
DE
https://www.coronawarn.app/de/faq/#encounter_but_green
https://www.coronawarn.app/de/faq/#encounter_count_19
https://www.coronawarn.app/de/faq/#encounter_19_calc
Describe the issue
According to https://www.coronawarn.app/en/blog/2021-02-23-corona-warn-app-risk-calculation-optimization/ the filter for considering contacts in the risk calculation was reduced from 10 minutes to 5 minutes starting Feb 23, 2021.
Several FAQ articles refer to the old 10 minute limit.
Suggested change

Either replace the 10 minute value with the 5 minute value or
add a note such as "(reduced to 5 minutes on Feb 23, 2021)" next to the original 10 minute text.

(reduced to 5 minutes on Feb 23, 2021, see blog post)

(reduziert auf 5 Minutes am 23 Feb. 2021, siehe Blogartikel)

@MikeMcC399 FYI - PR ready for review.


[feature-clean-old] add option to clean unused translations

This PR introduces the --clean flag for the ongr:translation:import command. Running the ongr:translation:import command with the --clean flag will cause the removal of all translation keys from ES that are not present in any translation file(s) configured in the ongr.translations config anymore.
This optional flag should be added to the command to be able to cleanup unneeded translations. Currently ongr:es:index:{drop,create} is part of our workflow, which is annoying and could be resolved by this change. Please review.

Very nice @martinohmann . Thank you.


clash with byte on windows

D:/msys64/mingw64/include/c++/11.0.0/bits/cpp_type_traits.h:404:30: note: candidates are: 'enum class std::byte'
404 |   enum class byte : unsigned char;
|                              ^~~~
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/wtypes.h:8,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/winscard.h:10,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:97,
from D:/msys64/home/unlvs/ninja/src/util.cc:21:
D:/msys64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'
63 |   typedef unsigned char byte;
|                         ^~~~
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/msxml.h:25,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/urlmon.h:450,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:163,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/ole2.h:17,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/wtypes.h:13,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/winscard.h:10,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:97,
from D:/msys64/home/unlvs/ninja/src/util.cc:21:
D:/msys64/mingw64/x86_64-w64-mingw32/include/oaidl.h:579:5: error: reference to 'byte' is ambiguous
579 |     byte *pRecord;
|     ^~~~

https://stackoverflow.com/questions/45957830/gdipluspath-throws-ambiguous-byte-for-cstddef-and-rpcndr-h

在 2020/10/10 下午2:25, sotrdg sotrdg 写道:

D:/msys64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'
63 |   typedef unsigned char byte;
|                         ^~~~

It's like that you have using namespace std somewhere in your code. Please try removing it.
--
Best regards,
LH_Mouse

This is an ongoing effort, see #1614 for example.


I would love to have per rule exclude of the folder.

In case of generated protobuf files, the very_good_analysis does report issues.
I would like to add a rule filter (exclude filter) per folder, so the generated files would not be included.
for example lib/src/proto/**

Ahh I just had the same issues, how do I ignore a folder

Hi @magillus and @arpitjacob 👋
Thanks for opening an issue!
You should be able to exclude files/folders like so:
include: package:very_good_analysis/analysis_options.yaml

analyzer:
  exclude:
    - "**/*.g.dart"
    - "**/*.freezed.dart"
    - "**/proto/**"

Let me know if that helps 👍

Thanks this worked for me, only issue is when I open any of those excluded files, VScode immediately throws all the error even though the file is excluded.

@arpitjacob do you have a sample app which reproduces the issue? Thanks!

@arpitjacob do you have a sample app which reproduces the issue? Thanks!

Hi please ignore this, it works great, I wasn't excluding the files properly.


Create est.txt

Added iudigital to jetbrans academy, thanks.

@Allislove Lib/Dominios/Co/Edu/iudigital/est.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@Allislove Pull request merged. Thank you!


added notebook Crop Pest and Disease Detection using DL

Pull Request
Title added notebook Crop Pest and Disease Detection using DL
issue #140
Checklist

[x] I have tested the changes locally
[x] Documentation has been updated (if necessary)
[x] Changes are backward-compatible

Screenshots (if applicable)

Additional Notes

Footer

hi @ananyag309 if you can create frontend and api.. i will put labels here..because without froontend there is no use of it..and causing problems in cloning for others..please let me know if you can create frontend part...as of now you are simply getting projects from somewhere in other repos and pasting them here...im sorry for removing labels..if you do fronend and api part i can relabel them ..i think you understand my point...simply having notebook files does nothing..until now..which are in notebooks..all of them have frontend and api..
thank you @ananyag309


Print preview in firefox

I have problem printing table with fixed thead. Problem appears in width of table, causing 20% of table to overflow paper and be hidden. Another problem is in Firefox, thead is not showing on all pages like it should be, because its absolute positioning. So is there a way to add double text value, for example in thead > tr.size-row > th.floatThead-col ? Because that thead is repeating on all pages, and because there is no text in  result is blank thead

having trouble following the problem(s?) you are having. take a look at this for print style help:
https://github.com/mkoryak/floatThead/issues/192
if you have other issues, please create a jsfiddle and see contriburing.md for guidelines on opening issues

no response, closing


System.DateTime filtering issue

This is a long-standing known issue.
System.DateTime.ToString and string System.DateTime in F# produce different results.
This causes problems, for example, when filtering with Get-ChildItem's LastWriteTime and similar.
Example of differences.
> System.DateTime.Now.ToString();;
val it: string = "2024-02-12 17:15:15"

> string System.DateTime.Now;;
val it: string = "02/12/2024 17:15:22"

The difference arises because the ToString method in .NET uses the current culture setting.
My setting is following.
> [System.Threading.Thread]::CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern
yyyy-MM-dd

> [System.Globalization.CultureInfo]::GetCultureInfo('en-US').DateTimeFormat.ShortDatePattern
M/d/yyyy


"Filesystem" Documents are WRONG! - This Example WORKS!

I tried ALL the examples for "Filesystem" in various documents and NONE worked!
I then found one example that did and it requires a "Variable" assigned as a "File Pointer". This is similar to using files in "C".
NONE of the official documents mentioned this fact!
Also as mentioned before the "files.appendString" and "files.appendLine" ARE SWAPPED!
Observe the "Blocks" and "JavaScript Code" Working Example below which creates incrementing numbers, one on each line:

**

Swap fixed in https://github.com/Microsoft/pxt-filesystem/commit/b019f4f05a9a4bb3e42e036a55811f56cedaf4fd

@harveytwyman please update the reference in your project and try again.


[Feature Request] Regex code duplication

In JsonTypes.OntologyAnnotation.fs and ArcTypes.Regex. MUST be unified.

Found a lot more Regex code e.g. in JsonTypes/Component.fs

I will leave this part for you @HLWeil 👍

For now it stays where it is, as it is exclusively designed to be used for components 😡


import error

Windows 10 x64
python 3.6.6
install mxnet and import correctly,but install mxnet-mkl import with an error like this:
`import mxnet
Traceback (most recent call last):
File "", line 1, in
import mxnet
File "f:\python36\lib\site-packages\mxnet_init_.py", line 24, in
from .context import Context, current_context, cpu, gpu, cpu_pinned
File "f:\python36\lib\site-packages\mxnet\context.py", line 24, in
from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
File "f:\python36\lib\site-packages\mxnet\base.py", line 174, in
_LIB = _load_lib()
File "f:\python36\lib\site-packages\mxnet\base.py", line 166, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File "f:\python36\lib\ctypes_init_.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。`
how to deal...

this because lost dll.please run depend(http://www.dependencywalker.com/) check what dll lost and tell me.

@sandeep-krishnamurthy Please label this Windows, Build

@yajiedesign what dll should i try to check? never use that software before...

@adaaaaaa libmxnet.dll

@yajiedesign  tons of DLL?

anyone can help?

@adaaaaaa  missing mkldnn.dll and mklml.dll ,  are they included in the package?
You can find mklml.dll here: https://github.com/intel/mkl-dnn/releases/download/v0.14/mklml_win_2<IP_ADDRESS>80406.zip
Not sure about mkldnn prebuilt dll, I think it's easier to build though.

@adaaaaaa I do some fix.please wait tomorrow.

where can I find mkldnn.dll?

@yajiedesign gluon's tutorial "cnn-scratch" using mxnet-mkl version 20180731 perform badly...
executed in 3m 40s
while in linux using mxnet-cu92mkl use cpu it executed in 23.8s nearly 10 times less...

@adaaaaaa Do you have mkldnn.dll? Or can you tell me where should I find it? Thanks.

no i don't have...the newest version is fine now , don't need to fix the ***.dll now...

@adaaaaaa i don't know,do you can test mxnet-cu92mkl in windows?

no...cuda is too big...i'm not going to try it in windows...
in Windows,i'm sure mxnet-mkl using cpu to executed "cnn-scratch" in 3m 40s
and in Linux using gpu to executed "cnn-scratch" in 5.9s,
in Linux using cpu to executed "cnn-scratch" in 23.8s.

really a big space to improve...
while other interesting things is i test single float point in aida64...
it shows that 1070ti is 10 times faster than i7-8700K
while in Linux "cnn-scratch benchmark" it's only 4 times faster...
something wrong in gpu version in mxnet?

@adaaaaaa @kohillyang where is cnn-scratch?

other "benchmark" is the latest tutorial's lenet tutorial...
in Windows,using mxnet-mkl,cpu,executed in 26,27s every epoch
in Linux,using mxnet-cu92mkl,cpu,executed in 3.5 to 3.9s every epoch;
gpu,executed in 1.2 to 1.4s every epoch...
@yajiedesign @pengzhao-intel

any process now?

WIP to verify the performance.
FYI, the performance on Linux is fully validated; however, the Window is w/ lower priority.
And in our local, we don't have much windows system to reproduce the issue.
I suggest you try Linux first. If you see the same perf issue on Linux, it will be very helpful.