Integrate vuex to store and handle state.

Is your feature request related to a problem? If so, please describe.
The problem currently is, if we route to /gallery it sends a requests to receive information about 24 packages. However if we go to any other route and come back to /gallery later, it refetches those 24 packages.
Describe the solution you'd like
This could be avoided by using vuex to persist the data until we reload. It will also make the code cleaner, as the api action is abstracted from the vue component.

I think vuex will be great! We could also add i18n support with it.

Was just about to say that myself! I totally agree. This would be very useful, while also reducing the load on the API.

Would be interested in adding it myself. However it would make sense to do so after the Typescript migration.


Is there any property to differenciate this client from the "traditional" one?

I was wondering what would be the best way to differentiate this client and the traditional one.
At the moment, I'm relying on instanceof, but that implies importing the class everywhere a typeguard is required.
Is there any property we can check to make the distinction?
Would the name help? As in setting it as elasticsearch-serverless-js?
https://github.com/elastic/elasticsearch-serverless-js/blob/67d185bf7eb4323b5ba9f914ef1077e1b06b7715/src/client.ts#L171
Although that seems configurable and maybe not 100% working solution.

This is a totally acceptable change. I'll open a PR shortly.


please update your systemd service

Your service file shows up as the top hit on google when I search for a django systemd service.  Please fix it to help others(and I assume yourself as well)
In your configuration when postgres gets shutdown(updated) then started your gunicorn service will be shutdown and not restarted.  Here is the information on how to fix it.
serverfault explaining problem/solution

The fix on the Stack Exchange website doesn't work for the problem you mentioned. If you have success, feel free to issue a pull request.


Telegram bot is analyzing fowarded messages

The Telegram bot shouldn't analyze fowarded messages.
Use message.ForwardDate to validate.

Thinking it better, this bug may be more of a feature 🤔

Thinking it better, this bug may be more of a feature 🤔

How about adding an option to toggle text analysis for forwarded messages? Some groups have channels linked to them, so the owners can check if there are any problems with it.

@Daksh777 I discarded this bug. The Telegram Bot is currently analyzing any message posted in the Chat


[Settings][Run Plugin: Settings] Win11 Insider: ms-settings uris not working

On Win11 (IP, Build 22000.51) settings uris aren't working. When using ms-settings: I got the error "No app for uri found.".

@crutkas, @enricogior, @mykhailopylyp, @dedavis6797
This is an reminder issue. We should look how it may get changed in future builds.
Feel free to set status-block on it.

On my PC it works.

I tested on Win11 from the start, these all worked for me.
can we be more targetted for what isn't working?  Do the uri's work in run prompt for you?

I got the "please install an app to open this uri" message.
Uri also wasn't listed in settings app > default apps > by uri list.
Now after a rebot everything works as expected.
Tested on:

Start/Search: works not
Run prompt: works
Exlorer: works


[Feature Request] Mariadb

Checklist

[X] I searched exising issues and no one else requests similar feature.
[X] I think that 25%+ users are positive towards this feature.

Describe the feature
MariaDB4j
https://blog.csdn.net/l460133921/article/details/124219611
Additional context
No response

HikariCP

MariaDB4j 建议测试使用，是H2的替代方案

https://cloud.tencent.com/developer/article/1756330

Hello @unknowIfGuestInDream. This issue is marked as deprecated and closed.


Fixed some small typos in XML comments

Just fixed some small typos in XML comments.  Nothing major.

Thanks!


Allow our FC layers to be exported

Reported by John (6 Feb 2023): The data export function is still not operational. Click the dots next to about data on the total vegetation cover layer, click export, draw a polygon of the area to be exported, and the error comes up.
Suspect this is a setting in the config for each applicable layer/group.
References:

https://docs.terria.io/guide/connecting-to-data/catalog-type-details/wms-group/#exportwebcoverageservicetraits
https://userguide.terria.io/interactions-functionalities-and-workflows#clip-and-ship


false warning when using to_sql with a dataframe using MultiIndex

Hi,
I get a warning that confused me, and in my opinion is wrong.
See code - that should produce warning with further comments.
INSTALLED VERSIONS
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.16.1
nose: 1.3.4
Cython: 0.22
numpy: 1.9.2
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 3.0.0
sphinx: None
patsy: 0.3.0
dateutil: 2.4.0
pytz: 2015.2
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.3
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.7.1
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 0.9.9
pymysql: None
psycopg2: None
import pandas as pd
import sqlite3 as sql

con = sql.connect("Temp_db.db")

df = pd.DataFrame(columns=[["FIRST", "FIRST", "SECOND", "SECOND"], ["ONE", "TWO", "ONE", "TWO"]])  # no space in any column

# following 'to_sql' produces warning:
# UserWarning: The spaces in these column names will not be changed. In pandas versions < 0.14, spaces were converted to underscores.
# However, there are no spaces (see above)
df.to_sql("tmp_table", con=con, if_exists="replace")

# refering to page: http://pydoc.net/Python/pandas/0.14.0/pandas.io.sql/
import re

columns = list(map(str, df.columns))
pat = re.compile('\s+')

print columns
# OUTPUT: ["('FIRST', 'ONE')", "('FIRST', 'TWO')", "('SECOND', 'ONE')", "('SECOND', 'TWO')"]
# ('FIRST',X'ONE'): At position X of a tuple is a whitespace that falsly produces the warning:

print any(map(pat.search, columns)) #true

# quick and dirty fix
columns = [i.replace("', '", "','") for i in columns]
print columns
print any(map(pat.search, columns)) #false
```python

Thanks for the report!
However, I don't think it is a false warning in this case, as the multi-index tuples are converted to strings (eg "('FIRST', 'ONE')") when used as column names for the sql table. So in those names, there are spaces.
In general, multi-index columns are not really supported by to_sql (but it works, given that they are converted to somewhat awkward strings)
Example (reading the table back into pandas, from your example above):
In [77]: df = pd.read_sql("SELECT * FROM tmp_table", con)

In [79]: df
Out[79]:
Empty DataFrame
Columns: [index, ('FIRST', 'ONE'), ('FIRST', 'TWO'), ('SECOND', 'ONE'), ('SECOND', 'TWO')]
Index: []

In [80]: df.columns
Out[80]:
Index([u'index', u'('FIRST', 'ONE')', u'('FIRST', 'TWO')',
       u'('SECOND', 'ONE')', u'('SECOND', 'TWO')'],
      dtype='object')

So when looking at the .columns attribute, you can see it are now actually strings and no longer tuples.

Ok, I realised this now too. Sorry for that.
I still use MultiIndex with SQL. When I read from the database, I needed to implementent a "MultiIndex recovery" to obtain the same table.

@elDan101 Personally, I think the easiest will be to first join the MultiIndex with eg _ before writing to sql, and then you can easily split it again to a multiindex afterwards.
Something like
# before
df.columns = [a + '_' + b for a, b in df.columns]

# after
df.columns = df.columns.split('_')

(only works of course if you don't have _ in your names itself)


Why are /autocleanstoragesense /autoclean options not explained?

The page is incomplete. Folling options are not explained:
/autocleanstoragesense
/autoclean
BTW: /autoclean is undocumented since Vista! I want the MS-DOS 5.0 level of documentation back. That book was over 700 pages and indeed was worth to be called "documentation".

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

ID: 768ab539-031f-b493-edc9-2958ced20fc2
Version Independent ID: cab3aa07-fc05-1a74-875b-fd37983593d4
Content: cleanmgr
Content Source: WindowsServerDocs/administration/windows-commands/cleanmgr.md
Product: windows-server
Technology: windows-commands
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

Hello @Joachim-Otahal,
Thanks for contacting Microsoft. We value your feedback.
Documentation changes have been made to clarify and acknowledge this issue. The doc changes will be live after the next business day.
Thank you again and have a most pleasant day.
#please-close


[Question] is it possible to run ruff only on edited lines of a branch/commit?

Similar to the what darker does for black, it would be very nice for introducing ruff to a code base to only apply it to changed lines.

Hey! It's not possible right now -- some things like this have come up in #1149, #1931, #2189. I'm hesitant to support it since it's a hard feature to get right. I haven't used darker, but the problem with applying that methodology to Ruff (IIUC) is that unlike code formatting, linter errors are not always localized: you could remove an import from one part of the file, and it could cause an error in an unchanged part of the file.
One alternative (not what you're looking for, but thought I'd mention it) is that you can run ruff --add-noqa /path/to/file.py and it will add noqa suppressions to any lines that fail. I know this won't work in all cases, but it's an option.

Thanks for the quick reply! I guess another option would be to include all files touched by  a commit.

Yeah definitely! Although I feel like there are probably ways to do that via Git commands and piping, and if they're workable, it's a bit easier than building logic into Ruff.
In Flake8, they suggest this as an alternative to their --diff functionality which was deprecated:
git diff --name-only -z --diff-filter=d -- '*.py' | xargs -0 flake8 or utilize pre-commit run --from-ref=... --to-ref=...

But I haven't tried it.

I guess another brute force solution would be to run ruff before and after the changes and in some sort do a set difference:
introducedErrors = errorsAfter - errorsBefore


Compression is always occuring

Backup is always compressing destination whether -Compress flag is set or not.

Corrected compress switch and logic syntax.  Tested, compression only on flag.


Connot install .NET Core preview version

Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Environment

VSTS
Account ossiaco.visualstudio.com
Build Definition: Web-Api
Build: 20180719.1, 2, 3

Agent - Hosted or Private:

Hosted (Hosted) Agent Version 2.136.1

Issue Description
The build was working yesterday with the same sdk version
The direct link is available here
https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.100-preview1-009009/dotnet-sdk-2.2.100-preview1-009009-win-x64.exe
but it does not appear in
https://github.com/dotnet/core/blob/master/release-notes/releases.json
2018-07-20T01:33:41.7245072Z ##[section]Starting: Use .NET Core sdk 2.2.100-preview1-009013
2018-07-20T01:33:41.7473087Z ==============================================================================
2018-07-20T01:33:41.7473279Z Task         : .NET Core Tool Installer
2018-07-20T01:33:41.7473436Z Description  : Acquires a specific version of .NET Core from internet or the tools cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks.
2018-07-20T01:33:41.7473612Z Version      : 0.1.11
2018-07-20T01:33:41.7473711Z Author       : Microsoft Corporation
2018-07-20T01:33:41.7473826Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=853651)
2018-07-20T01:33:41.7473972Z ==============================================================================
2018-07-20T01:33:42.3981809Z Tool to install: .NET Core sdk version 2.2.100-preview1-009013.
2018-07-20T01:33:42.3996798Z Checking if a cached copy exists for this version...
2018-07-20T01:33:42.4008153Z Cache does not contains this particular .NET Core. Will be downloaded and installed.
2018-07-20T01:33:42.4011175Z Detected platform (Primary): win-x64
2018-07-20T01:33:42.4012093Z Getting URL to download .NET Core sdk version: 2.2.100-preview1-009013.
2018-07-20T01:33:42.5514281Z ##[error]Could not fetch download information for version 2.2.100-preview1-009013. Please check if the version specified is correct. You can refer https://github.com/dotnet/core/blob/master/release-notes/releases.json
2018-07-20T01:33:42.5551128Z ##[section]Finishing: Use .NET Core sdk 2.2.100-preview1-009013

[Insert error from the logs here]

@fuocor I've informed the dotnet-core owners about this, please follow up on the referenced issue in the other repository for why we aren't supporting it now.

This is a breaking change to the task. Breaking changes should be at a different task major v

Hey @fuocor
We have rolled out a fix to all customers, you can try running your BD/RD now. It shall pass now.


Shaders included within static/shared lib

Going along with https://github.com/tangrams/tangram-es/pull/752; we can now make the tangram library having no direct dependency on resources.

generate the shaders as header file to be part of the build process,
included them as regular cpp headers within the source code

That way, the library distribution would only need a static/shared binary file of the tangram library and a minimal set of headers.

This doesn't seem to re-build the shader data headers when the GLSL source is modified - is this intended? I think it would be rather error-prone to manually request those headers to be rebuilt.

I haven't tried this yet, but yes it should be working this way. There might be a way to tell cmake to look over those headers before running the custom command. I'll into the cmake doc for custom targets.

Working now! Thanks


Cocoapods

Hi @profburke.
Here is a version which pulls the Lua dependencies from CocoaPods. The only caveat is that the latest lua available on pods is 5.2.3, and not 5.3.0 like you had. We can wait for 5.3.0 to be available, but just wanted to put this out there, as another example of the workflow.
Let me know your thoughts, and thanks for putting this project together.

@naartjie  Well, clearly that didn't pan out :(  -- Sorry about that. However, I now have some time and some interest in working on this project some more, so I'll give this some more thought. Although in all likelihood what I'm going to do instead is pull the Lua sources from a SPM package.

No worries at all. I don't remember much about the details of what I was doing here, but I do remember that embedding lua in mobile and any examples thereof was very enlightening and helped me. So thanks!
I don't mind if this PR gets closed. It might be pointing to stale versions etc.

Thanks again for taking the time to submit a PR and also again my apologies for neglecting it for so long.  Upon further reflection I think SPM is the direction I want to go over Cocaopods.


readStructBig -> readStructEndian

introduced in https://github.com/ziglang/zig/commit/d0da3d731e40fe9e0b45d50d4c3bf8210b44d472

Thanks!


whitelist.yara(10): error: undefined identifier "hash"

While running yara -r ./malwares.yara /home/USER/www, I got the following error:

whitelist.yara(10): error: undefined identifier "hash"
whitelist.yara(27): error: undefined identifier "hash"
whitelist.yara(63): error: undefined identifier "hash"
whitelist.yara(72): error: undefined identifier "hash"
whitelist.yara(92): error: undefined identifier "hash"
whitelist.yara(116): error: undefined identifier "hash"
whitelist.yara(129): error: undefined identifier "hash"
whitelist.yara(138): error: undefined identifier "hash"
whitelist.yara(152): error: undefined identifier "hash"
whitelist.yara(163): error: undefined identifier "hash"
whitelist.yara(170): error: undefined identifier "Symfony"
./malwares.yara(71): error: invalid regular expression "$too_many_chr": syntax error, unexpected '?', expecting $end
./malwares.yara(129): error: undefined identifier "IsWhitelisted"
./malwares.yara(188): error: undefined identifier "IsWhitelisted"
./malwares.yara(251): error: undefined identifier "IsWhitelisted"
./malwares.yara(283): error: undefined identifier "IsWhitelisted"

I have complete rights to scan in it, if that the problem:
sudo chown -R USER:USER /home/USER/www
sudo chmod -R 775 /home/USER/www

That's probably because you didn't had OpenSSL installed while building YARA.

@plusvic didn't read the readme properly. As is stated in php-malware-finder bug report,  ...you need yara 3.4.0.... My apologize!

Ok, then I close this issue.

Windows(exe) need to install OpenSSL ?

@liqingjia do mean if OpenSSL is required to build YARA in Windows? Or if the pre-built Windows binary require that OpenSSL is installed? The answer to the first question is yes, and for the second one is no. The pre-built binary is statically linked with OpenSSL.

https://github.com/VirusTotal/yara/releases/tag/v4.3.0
this releases version is statically linked with OpenSSL? but undefined identifier "hash".
how to get pre-built binary(statically linked with OpenSSL)

is this pre-built binary? this exe looks like is not statically linked with OpenSSL.

import "hash"  must be use.
my apologize!


tests/Add test for auth on the backend

We need to implement tests for auth feature in the backend.
Test:

Login
Register
Update token

Additional. If there are not listed features, which related to the auth, please, implement tests for these features.

Closed by PR #23


feat: external_function_tool.py

Add validation and error handling for ExternalFunctionTool definition

Sir can you review and merge


Failed to parse tree: Error occurred during parsing

After upgrading I am suddenly starting to get these errors? There isn't much to go from in the error message.

This most likely is due to the parse tree depth exceeding 64 levels, and hitting this issue in the Protobuf library: https://github.com/protocolbuffers/protobuf/issues/1493
Note the C level functions work fine (i.e. PgQuery.normalize and PgQuery.fingerprint), it's just the Ruby layer that can't deal with this right now.
What's your use case for PgQuery, could you use the functions that don't require the parse tree to be in Ruby for now?

What's your use case for PgQuery, could you use the functions that don't require the parse tree to be in Ruby for now?

I am making a very dynamic API using Ransack and CanCan. Postgres has a lot of limitations in regards to distinct, order and group which requires used columns to be selected or whatever. I am using pg_query to scan the query and fix that automatically based on the used Ransack parameters (which the user can freely set as he wishes) and CanCan (which restricts which records he can read, update, destroy or whatever).
This is the gem I wrote to automatically fix the Postgres queries in ActiveRecord:
https://github.com/kaspernj/active_record_query_fixer

@kaspernj Nice - thats a great use case!
And unfortunately that does mean you rely on the parse tree itself - so that'd require the patch in the protobuf gem to support customizing the nesting (the API is already there internally, it just needs to be made configurable from the Ruby side).
I also have plans to work on this, but a few other things on my plate right now. Two ways forward:

Investigate the protobuf issue I linked and submit a PR to the protobuf library (we'd likely want to raise the depth to a few hundred messages for the pg_query use case)

Rely on the JSON parse tree format, which is still supported by libpg_query (currently not available in the Ruby library, but it would be easy enough to add a function to make this available)

Generally I would recommend to focus (1), since it gets you a fully typed tree to work with, and is faster for parsing complex queries, but the downside is that it'd require diving a bit into the protobuf library.

@lfittl Would it be possible to support getting the result as a hash again until the issue is resolved? I would love to stay on the latest version :-)

@lfittl Are there any updates on this? :-)

@kaspernj No time to work on this currently, though it will bubble up in priority at some point.
PRs welcome though - it should be relatively straightforward to add this to pg_query_ruby.c, e.g. named as PgQuery.parse_json.
Please also add a quick test in case you work on this :)

For what it's worth, I think this is a blocker for me too. I'm using pg_query to infer dependencies between arbitrarily long/complex SQL statements to figure out what order to execute them in. I'll need to use the parse tree in Ruby, and I expect depth will sometimes exceed 64 levels.

This issue is still blocking us from upgrading to version 2, which we'd really like to do (there have been so many nice improvements since then!). We've confirmed several queries we currently parse exceed the 64 depth limit. We'd really need to go back to a max depth of 1000 levels.
I spent a little bit of time trying to do this:

Investigate the protobuf issue I linked and submit a PR to the protobuf library (we'd likely want to raise the depth to a few hundred messages for the pg_query use case)

But I've never touched C before and don't have the motivation to learn/struggle through it right now. It sounds like the right idea.
Is there any way I could add to someone else's motivation to tackle this issue? I'm guessing it's a fairly simple change?

@Tassosb Thanks for bumping this up - I ended up investing the time to fix the root cause here, in the Ruby protobuf implementation: https://github.com/protocolbuffers/protobuf/pull/9218
With that in place, the change in pg_query is rather small: https://github.com/pganalyze/pg_query/pull/238
To test this change, you can do the following:
gem 'google-protobuf', github: 'lfittl/protobuf', branch: 'pr-9218-and-9219', glob: 'ruby/*.gemspec'
gem 'pg_query', github: 'pganalyze/pg_query', branch: 'specify-protobuf-max-recursion-depth-setting'

(note that you also need https://github.com/protocolbuffers/protobuf/pull/9219 since otherwise you can't load google-protobuf via the bundler git source)
Could you (and @kaspernj) confirm whether this fix works for your use cases?

Amazing! Thank you @lfittl

To test this change, you can do the following:
gem 'google-protobuf', github: 'lfittl/protobuf', branch: 'pr-9218-and-9219', glob: 'ruby/*.gemspec'
gem 'pg_query', github: 'pganalyze/pg_query', branch: 'specify-protobuf-max-recursion-depth-setting'

After running bundle install with ^, I get an error when I try to load google-protobuf:
LoadError:
  cannot load such file -- google/protobuf/any_pb

I'm on ruby 2.7.4 with bundler 1.17.0.  This issue seems maybe similar to the one addressed in PR 9219.

HackerOne is running into this problem as well! Any updates on this?

@mvgijssel Unfortunately we're still waiting for https://github.com/protocolbuffers/protobuf/pull/9218
If you have time available, you can help with that change (it might need a rebase due to the recent ubp changes in that codebase), or investigate the JSON output method as described above.


minor: use sql to setup test data for joins.slt rather than rust

Which issue does this PR close?
Follow on to https://github.com/apache/arrow-datafusion/pull/6642 from @jiangzhx
related to https://github.com/apache/arrow-datafusion/issues/6302
Rationale for this change
I noticed we could port more of the rust based setup code in https://github.com/apache/arrow-datafusion/pull/6642 to use sql which makes it clearer what is going on as well as is more concise
What changes are included in this PR?
Port 4 test setups from Rust to SQL
Are these changes tested?
covered by existing tests
Are there any user-facing changes?
no

Sorry for the late reply.
there are places similar to #6643, should we also migrate them from rs to SQL?
https://github.com/apache/arrow-datafusion/blob/071a2a6dfd43b3b225fce1af8838fa95c79f9ede/datafusion/core/tests/sqllogictests/src/main.rs#L266-L287

@jiangzhx

there are places similar to https://github.com/apache/arrow-datafusion/issues/6643, should we also migrate them from rs to SQL?

Yes, that would be awesome. Thank you.

@jiangzhx

there are places similar to #6643, should we also migrate them from rs to SQL?

Yes, that would be awesome. Thank you.

OK, I will take the rest of it.


added rack node type and contains relationtype

part of https://github.com/RackHD/RackHD/wiki/proposal-passively-add-remove-a-rack-node
adds the contains/containedBy relations
supports https://github.com/RackHD/on-http/pull/432
@RackHD/corecommitters  @pscharla

test this please

:+1:

test this please

test this please

@VulpesArtificem This PR needs to be merged for the above referenced on-http PR to pass checks, right?
@RackHD/corecommitters this PR is related to functionality that we are attempting to get in this sprint for 2.1.0 OnRack release. Please review and merge ASAP.  Thanks and thank you @anhou for already reviewing.

👍

👍

👍


Add options to style axis ticks.

Please add options (tick size, and color) to Axis component that would allow users to style the ticks.
{
   options.showTicks &&
   <Circle r="2" cx="0" cy="0" stroke="grey" fill="grey" />
}

Thank you

Thanks


BTAT-3988 removed financial transactions dynmaic stub from build jobs.

This filee can bel deleted once fully tested

I have deleted this file

deleted file


Wrong behaviour in RoundHalfUp

Current behavior:
ghci> v = wrapDecimal (-125001) :: Decimal RoundHalfUp 5 Integer
ghci> roundDecimal v :: Decimal RoundHalfUp 1 Integer
-1.2

Expected behavior:
ghci> v = wrapDecimal (-125001) :: Decimal RoundHalfUp 5 Integer
ghci> roundDecimal v :: Decimal RoundHalfUp 1 Integer
-1.3

RoundHalfUp should round down in this case, because the remainder is not exactly half, it's 0.5001. The current implementation is checking only the leftmost digit of the remainder.

I'm working on a PR to fix this and add an implementation of RoundHalfDown and RoundHalfEven. However, this behaviour change breaks the generative tests (it seems the test oracle fns incorporate the same mistake), so I'll have to change them too.

-1.2 is up from -1.25, while -1.3 is down from -1.25. You are describing behavior of RoundHalfDown  behavior

Here is an example from wikipedia:

For example, by this rule the value 23.5 gets rounded to 24, but −23.5 gets rounded to −23.

Looking forward to PRs with implementation of RoundHalfDown and RoundHalfEven.
There are already partially implemented test for RoundHalfEven:
https://github.com/fpco/safe-decimal/blob/b425e3d643d2f804df3a40edd5892ec6701b4da7/tests/Numeric/DecimalSpec.hs#L417-L420

@gusbicalho Anyhow, current behavior is the correct one, if you still belive it is not please provide some reference and examples and we'll talk about a proper fix. For now closing as invalid

@gusbicalho Sorry, I was dealing with multiple issues at the same time. I see what you mean now and closing this issue was wrong. I am gonna wait for your fix and investigate this issue a bit more myself

Just in case, for my own sanity check ;)
>>> Decimal('-1.25000).quantize(Decimal('.1'), rounding=ROUND_HALF_DOWN)
Decimal('-1.2')
>>> Decimal('-1.25001').quantize(Decimal('.1'), rounding=ROUND_HALF_DOWN)
Decimal('-1.3')

I see now, Wikipedia and Python are using different definitions of round-half-up:

Python:

ROUND_HALF_UP (to nearest with ties going away from zero).

Wikipedia:

The following tie-breaking rule, called round half up (or round half towards positive infinity),

I guess we should implement what other languages are doing, especially considering that Wikiepdia doesn't have a reference for that statement

Actually, the main point here is that current code is handling -0,5001 as a tie, but it should not.

Scratch that. We should have those separate RoundHalfUp and RoundHalfFromZero.
I got that, it should be fixed, I just git confused there for a second with terminology:

Actually, the main point here is that current code is handling -0,5001 as a tie, but it should not.

-1.25001 should be rounded to -1.3 for all RoundHalf algorithms, because in fact the nearest number is -1.3, there is no tie here.

We should have those separate RoundHalfUp and RoundHalfFromZero.

Agreed 👍


Tweet Not Found

I know there is already another issue for this #134 but they closed it without an actual resolution from the library itself. I can get the tweet to load on localhost:3000 just fine

However, when I am previewing it through a deployment branch, it just returns Tweet not found

I get no errors in my Vercel logs at all and nothing in the console and nothing in the network tab. This is currently stopping me from publishing some changes to my website.
So I decided to just push my changes to production and just tell my authors to not include tweets for the time being... However, I can now see errors in Vercel but all it is saying is
Error: Failed to get tweet data for tweet ID:<PHONE_NUMBER>762437637
    at getTweets (/var/task/.next/server/pages/[slug].js:676:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async getStaticProps$1 (/var/task/.next/server/pages/[slug].js:156:31)
    at async /var/task/node_modules/@sentry/nextjs/cjs/server/utils/wrapperUtils.js:38:14 {
  page: '/vmi-gets-a-commitment-from-2023-3-star-cb-davion-corpening'
}
RequestId: 0581bce3-020b-4225-902f-5ad7b122e9b2 Error: Runtime exited with error: exit status 1
Runtime.ExitError

However, the tweet does exist https://twitter.com/IamTheKeyDC/status/1556693648762437637

I am currently experiencing the same issue. Could it be related to the recent update to version 3.1.1?

I am currently experiencing the same issue. Could it be related to the recent update to version 3.1.1?
I also noticed that we can view the tweet locally but not in production.

Yea not entirely sure, but I even tried with the apiUrl route that they mention but shouldn't need to use if I am in Next.js and then locally my tweets won't load. What's odd is I use this component in my Sanity studio to preview tweets and it works just fine... Not sure why on my website it doesn't.

Same here makes the package unusable for me

Same here makes the package unusable for me

Yea hopefully someone from Vercel can take a look or give some guidance. I guess looking at the documentation for Next, I should be manually fetching this data since I generate static params for my articles?

Same here makes the package unusable for me

Yea hopefully someone from Vercel can take a look or give some guidance. I guess looking at the documentation for Next, I should be manually fetching this data since I generate static params for my articles?

I am manually fetching the data through a TRPC call and it still doesn't work

I was looking at how @steven-tey was doing it in Dub https://github.com/steven-tey/dub/tree/main and the tweets are clearly loading for him and he is using getTweet. 🤔

Well I tried and I get the following in Vercel but it still works locally 🙃 :

@lfades any guidance here for us? It's currently blocking a couple of us from actually being able to use this library.

I'm experiencing the same issue at the moment

I'm experiencing the same issue at the moment

Yea I even tried how a couple of Vercel engineers use react-tweet and either end up my pages with tweets just completely 404ing or in the same position that I am in right now.

From some googling it seems to be Twitter blocking AWS, what I don't understand is how others have it working

Not an ideal solution but I got it working using a proxy and recreating the function:
export async function getTweet(id: string, fetchOptions?: RequestInit) {
  if (id.length > 40 || !TWEET_ID.test(id)) {
    throw new Error(`Invalid tweet id: ${id}`);
  }

  const url = new URL(`${SYNDICATION_URL}/tweet-result`);

  url.searchParams.set("id", id);
  url.searchParams.set("lang", "en");
  url.searchParams.set(
    "features",
    [
      "tfw_timeline_list:",
      "tfw_follower_count_sunset:true",
      "tfw_tweet_edit_backend:on",
      "tfw_refsrc_session:on",
      "tfw_fosnr_soft_interventions_enabled:on",
      "tfw_show_birdwatch_pivots_enabled:on",
      "tfw_show_business_verified_badge:on",
      "tfw_duplicate_scribes_to_settings:on",
      "tfw_use_profile_image_shape_enabled:on",
      "tfw_show_blue_verified_badge:on",
      "tfw_legacy_timeline_sunset:true",
      "tfw_show_gov_verified_badge:on",
      "tfw_show_business_affiliate_badge:on",
      "tfw_tweet_edit_frontend:on",
    ].join(";")
  );
  url.searchParams.set("token", getToken(id));

  const headers = {
    "User-Agent":
      "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0",
    Accept: "*/*",
    "Accept-Language": "en-US,en;q=0.5",
    "Accept-Encoding": "gzip, deflate, br",
    Origin: "https://platform.twitter.com",
    Connection: "keep-alive",
    Referer: "https://platform.twitter.com/",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "cross-site",
    Pragma: "no-cache",
    "Cache-Control": "no-cache",
    TE: "trailers",
  };

  const proxyAgent = new HttpsProxyAgent(
    proxy_url
  );

  const rep = await axios.get<Tweet>(url.toString(), {
    headers,
    httpsAgent: proxyAgent,
  });

  return rep.data;
}

@lleewwiiss I wonder if that is why @steven-tey and other Vercel employees cache the tweet results in upstash/redis?

@lleewwiiss I wonder if that is why @steven-tey and other Vercel employees cache the tweet results in upstash/redis?

Maybe but in the example app if you enter a random tweet ID that I assume isn't cached it still seems to work, It might also be a Cors thing but I'll just use a proxy until this is resolved or we have some guidance.

Yeah I'm not sure anymore either as I've tried the api route they have as an example in this repo and I still get that it's not found.

I'm experiencing the same issue at the moment

Surprisingly today, it worked on my website!! Nothing changed in my code...

I'm experiencing the same issue at the moment

Surprisingly today, it worked on my website!! Nothing changed in my code...

Yeah I just checked my website and it’s working as well now… I made no changes to the code.

Me as well with no proxy

This is because X is blocking those requests from common hosting providers so you want to get data locally or from the browser in a panel and then save data.

The solution is to use Manual Data Fetching on build time or when you can access X API with getTweet(tweetId) and getTweet(tweetId). This can be done on localhost or in browser.

When you get that data you want to cache it. I recommend Vercel/KV or Redis. I implemented it and I'm very happy how it's working. There was only one issue when I was using Next.js App Router with static pages - check next point.

When using Next.js App Router with SSG/ISR (force-static) then the KV get call kv.get(tweetId) won't work when you build it or deploy it to Vercel. The issue you will see would be:

Page changed from static to dynamic at runtime /ai/wordtune, reason: no-store fetch https://electric-XX-XXX.kv.vercel-storage.com /ai/[tool] see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error

This is happening when you pnpm build and pnpm start locally or when you build and deploy on Vercel.
The solution to fix KV call on static pages is to refactor it to use Vercel KV REST API with caching options.
Example static friendly KV get call example:
// fetching tweets and caching in KV
  const TweetIds = ["1705688070941520030","1705162823003734354"]
  const tweets: Tweet[] = [];
  if (TweetIds) {
    for (const tweetId of TweetIds) {
      let kvTweet: Tweet | undefined | null = null;

      // check kv cache first
      try {
        const res = await fetch(
          `${process.env.KV_REST_API_URL}/get/tweet:${tweetId}`,
          {
            headers: {
              Authorization: `Bearer ${process.env.KV_REST_API_TOKEN}`,
            },
            cache: "force-cache",
            next: {
              tags: [`tweets`],
            },
          } as any
        );
        const json = await res.json();
        kvTweet = JSON.parse(json.result) as Tweet;
      } catch (err) {
        console.log(err);
        console.log("Error fetching tweet from KV");
      }

      if (kvTweet) {
        tweets.push(kvTweet);
      } else {
        // fetch tweet
        try {
          const tweet = await getTweet(tweetId);
          if (tweet) {
            tweets.push(tweet);
            // cache tweet in KV
            await kv.set(`tweet:${tweetId}`, tweet);
          }
        } catch (e) {
          console.warn(`Error fetching tweet ${tweetId} from X`);
          console.warn(e);
        }
      }
    }
  }

I had almost the same experience. https://twitter.com/t6adev/status/1746699829336780921

This is because X is blocking those requests from common hosting providers

I'm not sure about it. But I can say something We need to take a workaround against Twitter's behavior.

I am back to getting this error in production again... It says the tweet was not found...

However, in my CMS (Sanity) it shows it just fine

They are both on the same domain and my sanity studio is built directly into my Next.js application...

I got the issue resolved!!!.
I have an issue in development.

As you can see, the tweet is working fine is production but in development it says tweet not found or something like giving an network error:

Solution
The solution to this problem is using 'use client' in development and remove once you go into the production. As you know that the code is working in production but causing problems in development which causes problems in development.
'use client' // Remove this in production to get advantage of server components

import { Tweet } from 'react-tweet'

export default function Page() {
  return <Tweet id="1628832338187636740" />
}

Result

I solved the issue by enabling the cache as mentioned in the documentation.


[Improvement][Doc] update the content of the architecture document

Describe the question
the architecture document is old, please update the content of the architecture document
Architecture introduction: https://dolphinscheduler.apache.org/en-us/development/architecture-design.html
the doc repository: https://github.com/apache/dolphinscheduler-website/blob/master/blog/en-us/architecture-design.md
Which version of DolphinScheduler:
-[1.3.x]

Describe the question
the architecture document is old, I will update the content of the architecture document
Architecture introduction: https://dolphinscheduler.apache.org/en-us/development/architecture-design.html
the doc repository: https://github.com/apache/dolphinscheduler-website/blob/master/blog/en-us/architecture-design.md
Which version of DolphinScheduler:
-[1.3.x]

Hello, I think I can do the job. Could you please assign it to me


[Event Request] Report 5706 Create Stockkeeping Unit - OnBeforeItemOnPreDataItem

We need a new event function in Report 5706 "Create Stockkeeping Unit", named- OnBeforeItemOnPreDataItem:
LOCAL [IntegrationEvent] OnBeforeItemOnPreDataItem(VAR Item : Record Item)
called from:
Item - OnPreDataItem()
//INIT-INSERT
OnBeforeItemOnPreDataItem(Item);
//END-INSERT
Location.SETRANGE("Use As In-Transit",FALSE);
DialogWindow.OPEN(
Text000 +
Text001 +
Text002);
SaveFilters := TRUE;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


[Question] What contributes to the big contract sizes?

Reading:

The contracts are currently too large to be deployed on any testnet.

and got curious on what makes that the case.
Is it due to a large number of public in/outputs involved?

Yes, it was due to the fact that there are 1000 public outputs. However, this has been fixed at #9


Automatic Resource Module Generator?

Describe the feature you'd like
Similar to DRF having a startproject and startapp command for start projects of apps, it would be nice to have this functionality in Panther so I don't have to create these by hand.
Additional context
Is there a PNP for this already and or can anyone give me an idea how hard this would be to implement?

Thanks for the issue,
Panther already has panther create command, but as you said it doesn't have any command like startapp of django
If you want to work on this issue yourself, you have to read the panther create command code, and make a command similar to it, you may want to restructure the Template for this progress


Revert "Add "disconnected" and CSI annotations."

Our testing shows that the driver is not able to mount EFS volumes.
This reverts commit 3684606ab91848b41d5f1b2043cc7fc4dfba7e0f.

/retest

cc @openshift/storage

/lgtm


Add new option to filter props

What:
New glamorous option named filterProps to not pass specific props to child components.
Why:
See #314
How:
glamorous(ChildComponent, {
  filterProps: ['foo', 'bar'],
})

Checklist:

[ ] Documentation will follow in another PR later
[x] Tests
[x] Ready to be merged
[x] Added myself to contributors table

Codecov Report

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

@@          Coverage Diff          @@
##           master   #315   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines         170    170
  Branches       46     46
=====================================
  Hits          170    170

Impacted Files
Coverage Δ

src/split-props.js
100% <100%> (ø)
:arrow_up:

src/create-glamorous.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Just updated the pull request for the propsAreCssOverrides case. I did rework the if clause in split-props.js. IMHO it's more readable now.

Looks great! I removed includesProp because this is very hot code and if it's not too complicated to avoid a function call I'm going to just avoid the function call :)
I should probably benchmark this stuff though 🤷♂

Yeah it's just a matter of preference. Readability or speed :smile:

I have created a section for the website (https://github.com/bjoernricks/glamorous-website) but currently I am not able to build it. yarn can't install all dependencies and node 6 is complaining about glamorous-website/other/babel-plugin-l10n-loader.js:48 SyntaxError: Unexpected token )

Just make the PR without running things, it's fine. Content changes are pretty easy :) Thanks!

FWIW, I'm pretty sure node 8 is required in that repo :)

Thanks a ton!

Thanks again for your help! I've added you as a collaborator on the project. Please make sure that you review the CONTRIBUTING.md file (specifically the bit about the commit messages and the git hooks) and familiarize yourself with the code of conduct (we're using the contributor covenant). You might also want to watch the repo to be notified when someone files an issue/PR. Please continue to make PRs as you feel the need (you can make your branches directly on the repo rather than your fork if you want). Thanks! And welcome to the team :)

Awesome! Thanks!


Error: BuilderConfig not found

I am trying to run the following command.
lm_eval --model hf \
    --model_args pretrained=mistralai/Mistral-7B-v0.1 \
    --tasks pile_openwebtext2 \
    --device cpu \
    --batch_size 10

And getting this error: ValueError: BuilderConfig 'pile_openwebtext2' not found. Available: ['all', 'enron_emails', 'europarl', 'free_law', 'hacker_news', 'nih_exporter', 'pubmed', 'pubmed_central', 'ubuntu_irc', 'uspto', 'github']
I have checked  lm-eval --tasks list and pile_openwebtext2 is available there.

Hi! This is a known issue ; I will push an update to the Pile tasks so that they reflect the fix described in #731 , but you will also need your own copy of the Pile downloaded locally to run these tasks.
closing as duplicative of #1338 for tracking purposes. please let us know if there are lingering questions though!


Ericsson submission nov03

New Test Harness functionality drop

Any consensus yet that this branch can be approved?

Hi Chris,
We don’t see any major hurdles approving this. Not sure about Idan’s testing. I’m ok to approve it.
BR,
Awaiz
From: cwilliams-ericsson<EMAIL_ADDRESS>Reply-To: Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device<EMAIL_ADDRESS>Date: Monday, November 20, 2017 at 6:43 AM
To: Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device<EMAIL_ADDRESS>Cc: awaizkhan<EMAIL_ADDRESS>Review requested<EMAIL_ADDRESS>Subject: Re: [Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device] Ericsson submission nov03 (#59)
Resent-From<EMAIL_ADDRESS>Resent-Date: Monday, November 20, 2017 at 6:43 AM
Any consensus yet that this branch can be approved?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Wireless-2DInnovation-2DForum_Citizens-2DBroadband-2DRadio-2DService-2DDevice_pull_59-23issuecomment-2D345715672&d=DwMFaQ&c=IL_XqQWOjubgfqINi2jTzg&r=4ogWFyxijxU_p88gjTkqkthlHjK9pAK7QZ8EZYn3ya4&m=Rec_ne4Qmcj6PPcd80hqwSonNW_6G-5I17Z6jQi_EU8&s=iWkimmp83j0KghnCOYa-F9pGlAoZtfTNWxPu7c0Ztiw&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AbdJSQn2-2DUGt52LcE8si6M7hsTUhj44Oks5s4ZAFgaJpZM4QaE0F&d=DwMFaQ&c=IL_XqQWOjubgfqINi2jTzg&r=4ogWFyxijxU_p88gjTkqkthlHjK9pAK7QZ8EZYn3ya4&m=Rec_ne4Qmcj6PPcd80hqwSonNW_6G-5I17Z6jQi_EU8&s=eRpsoQ7ySzOa43TxZfANZQdf0oN9tROpJRgHUc3NkZA&e=.

I recommend approving ASAP.  After all, we are not going back!
Many bugs addressed.  Further issues can be included in a new pull-request.


Add #invalidate! for LDP resources

Uses prov:invalidatedAtTime to mark resources as invalidated (soft
deleted). This is different from #delete! which sends an HTTP/LDP
DELETE request, permanently marking the resource as 410 Gone.
We aim to invalidate, usually, rather than delete.
Implemented as a mixin that works with objects implementing an
#rdf_source method returning a Krikri::LDP::RDFSource.

The failures here don't look related to the changes, I restarted https://travis-ci.org/dpla/KriKri/builds/92053072 to see if develop might be failing, too.

NameError: uninitialized constant Krikri::LDP::Invalidatable
/home/travis/build/dpla/KriKri/app/models/krikri/original_record.rb:6:in `<class:OriginalRecord>'
/home/travis/build/dpla/KriKri/app/models/krikri/original_record.rb:4:in `<module:Krikri>'
/home/travis/build/dpla/KriKri/app/models/krikri/original_record.rb:1:in `<top (required)>'
/home/travis/build/dpla/KriKri/lib/tasks/krikri.rake:10:in `<top (required)>'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine.rb:654:in `block in run_tasks_blocks'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine.rb:654:in `each'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine.rb:654:in `run_tasks_blocks'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/application.rb:399:in `block in run_tasks_blocks'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine/railties.rb:13:in `each'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine/railties.rb:13:in `each'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/application.rb:399:in `run_tasks_blocks'
/home/travis/.rvm/gems/ruby-2.1.3/gems/railties-4.1.14/lib/rails/engine.rb:449:in `load_tasks'
/home/travis/build/dpla/KriKri/spec/internal/Rakefile:6:in `<top (required)>'
/home/travis/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'

I'm wondering if we need to add an autoload call in lib/krikri/ldp.rb to fix the build issue.

Either that, or require 'krikri/ldp/invalidatable'.

I think d1dc4d7 should fix the above build issue. @markbreedlove, I'm assigning this for review to you now.

Yep, that fixed it. This has been rebased against develop, too.

It would help if this were added to the doc comment for the module:

Implemented as a mixin that works with objects implementing an
#rdf_source method returning a Krikri::LDP::RDFSource.

For the uninitiated, it can be unclear how RDF::PROV.wasInvalidatedBy and RDF::PROV.invalidatedAtTime come to be defined.  (At least, it's unclear to me.)
This is hard to evaluate without an example of how it would be used, but it seems clear enough how the statements are added in #invalidate!.

I think the added documentation in the latest push should help clarify some of these questions.

Reassigning to @no-reply because he's going to ponder some things and probably make some updates.

@markbreedlove I force pushed a change on this that I think helps with the error condition issue. You can now do #invalidate!(uri, true) to ignore the request if it is already invalidated, rather than squawking.
The default is still to raise an error when trying to invalidate already invalid records; client code can catch those errors and log as necessary.
While cooking this up, I originally wanted to use Ruby 2.0's named parameters. I've been using these more in other contexts lately, now that Ruby 1.9 support is officially deprecated, and maybe we should consider some internal guidelines for using them in our code. See https://robots.thoughtbot.com/ruby-2-keyword-arguments and some (stale?) talk about style guide additions at https://github.com/bbatsov/ruby-style-guide/issues/396. cc: @anarchivist @AudreyAltman

I'm in favor of that second parameter.
Also in favor of analyzing how how to refactor our function headers to use named parameters. I agree that we should do it deliberately, across the codebase, rather than having one odd method that follows a different pattern than the others.
I'm OK with this pull request.  @anarchivist @AudreyAltman, any observations, or should I merge this?

I'm :+1: on this. @no-reply has addressed my concerns, and a reread of the PROV specs has helped. Adding some notes here for myself, so we can move this forward:
See PROV-SEM on Invalidation and PROV-DM on Invalidation (as defined), most specifically:

Invalidation◊, written wasInvalidatedBy(id; e, a, t, attrs) in PROV-N, has:

id: an optional identifier for a invalidation;
entity: an identifier for the invalidated entity;
activity: an optional identifier for the activity that invalidated the entity;
time: an optional "invalidation time", the time at which the entity began to be invalidated;
attributes: an optional set of attribute-value pairs representing additional information about this invalidation.

While each of id, activity, time, and attributes is OPTIONAL, at least one of them MUST be present.

See also PROV-O's expanded terms, and example 2 immediately following:

The fourth category of expanded terms describes the lifetime of an Entity beyond being generated by an Activity and used by other Activities. For example, a painting could not have been displayed before it was painted, and it could not be sold after it was destroyed by fire. Similar to how Activities have start and end times, an Entity may be bound by points in time for which it was generated or is no longer usable. The properties prov:generatedAtTime and prov:invalidatedAtTime can be used to bound the starting and ending moments of an Entity's existence. The Activities that led to the generation or invalidation of an Entity can be provided using prov:wasGeneratedBy and prov:wasInvalidatedBy, respectively.

:rocket: @markbreedlove I think it's yours to :merge:


New version: Ryujinx.Ryujinx version 1.1.1336

Created by 🥟 Dumplings in workflow run #2238.
Logs
Updated: 1.1.1334 → 1.1.1336
Cannot validate argument on parameter 'ChatID'. The argument is null, empty, or consists of only white-space characters. Provide an argument that contains non white-space characters, and then try the command again.
Submitting WinGet manifests
Cannot validate argument on parameter 'ChatID'. The argument is null, empty, or consists of only white-space characters. Provide an argument that contains non white-space characters, and then try the command again.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Users\validator\AppData\Local\Microsoft\WinGet\Links\Ryujinx.exe returned exit code: -532462766

Automated error analysis suggests -532462766 may mean EXCEPTION_COMPLUS (Unhandled Exception)
(Automated response - build 886.)


Chrome won't let me activate it because i sideloaded it.

So apparently chrome doesn't allow me to activate the dev build as i sideloaded it.

This shouldn't be an open issue here as this is a VERY well known CHROME issue regarding sideloading ANY crx's......and it's been this way for YEARS.  In addition, this works JUST FINE in Chrome if you take the time to read the instructions and load it in the supported manner via Tampermonkey in Chrome - I run it and have without (major) issues for years.  Save the author the headache of having to maintain erroneous GH issues and close this as all this does it take away his time from dealing with valid ones.

I have searched for a long time and I still can't anything about how to install it on chrome! " if you take the time to read the instructions and load it in the supported manner via Tampermonkey in Chrome" read what instructions? Where? I can't find a wiki that explains it, I can't find anybody with the same problems as me. I don't understand programming and no indication as to what I'm supposed to do are on the download or FAQ pages. I have this .crx file, great, now what do I do with it? Chrome says no, and I have no clue how to use Tampermonkey. Help me.


Enhancement of Donation Functinality page& Improvement in UI/UX design of About us page

hey Hi, @anuragverma108 , there is two seperate files are there for donation functionality which will create a confusion/ambiguity for the user  while using that interface , and  the ui/ux design of the about us section needs some improvment its not matcing with current one and the size of the card should be reduced and we want to add some dynamic hover effetc for the card , and one more thing the header section and Nav bar section in the donation should needs some improvment it was not aligned properly .  please  I will Kindly Request u to Assign This Work to Me .
https://www.loom.com/share/a6870e55ea2c47fe8b675d1ed81427e7?sid=5a7ee046-f42a-43f8-9d49-94169285a82d
Thanks & Regards
Manjesh Gowda BD

Start working @ManjeshGowda06


feat: add prefetch to all pages using infinite scroll

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[x] Feature
[x] Refactoring

Context

[x] Continue with https://github.com/kodadot/nft-gallery/pull/4922#issuecomment-1418257739
[x]  add prefetch strategy to all pages using infinite scroll, to speed up card loading

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[ ] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </bsx/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

Might be time to migrate infiniteLoader to Vue composition api?

Is Debounce needed?
empty return 😬
✅ Fixed

prefetching could be replace by $fetchState.pending
It would be better to separate the loading status from prefetch and network loading.

(dom element won't work on SSR)
I guess it's not related to the infinite scroll loading. 👀

I still have to get to the finish before the content loads. Particularly on collections

I still have to get to the finish before the content loads. Particularly on collections

On the beta env, you have to scroll to the bottom to load next page in any case. While after adding prefetch, the next pages would be auto loaded if you scroll down in normal speed.


Add strategy input

The pipeline for teal.code is working more or less fine (not sure about the failure for max strategy).
https://github.com/insightsengineering/teal.code/actions/runs/4609660712


Milestone 1

See https://github.com/snapshot-labs/snapshot/issues/2110 for context.
For the first milestone here is what I propose:
Focus on a single use case where anyone can rewards voters on a proposal with an ERC20 and a fixed amount per voter. Here is the requirements:

Work with any ERC20
No need to deploy a new contract to boost a proposal
When adding a boost, we should define a proposal id, the amount to reward per user, an expiration timestamp a guard and erc20
The guard is the address that verify the integrity of the boost, in our case it will be Snapshot hub which sign a message with the correct merkleRoot
Depositors should be able to withdraw the rewards they deposited after expiration of the boost
You can claim for someone else
Multiple users can deposit into a boost if they use the same setup (erc20, amount per user etc)
A proposal can have multiple boosts
A Snapshot plugin where we can see current boosts on a proposal and claim for it

I imagine a contract with these functions:
create(id, amtPerAccount, token, expires, guard)
To create a new "boost" with fixed amount per voter, the id is a proposal id in our case but we can imagine the contract being used for others scenario.
start(boostId, merkleRoot)
To send a merkle root so users can start claim
deposit(boostId, amt)
To add more ERC20 into a boost
withdraw(boostId, account, amt)
To withdraw funds that you or someone else deposited
claim(boostId, account, merkleProof)
To claim your or someone else ERC20

About amount per account:

This would certainly attract users but how do you ensure they all get their reward? There needs to be some limit. Maybe "First X voters get Y tokens." But that would just incentivize uninformed decisions. Rewards must not be based on time. How about "X random voters get Y tokens"? That would also indirectly favor smaller voters, as it does not favor anyone.

Suggestion:
You can claim for someone else
You can claim for multiple accounts

For this first milestone, we agreed that we don't require merkle trees. Individual messages for each vote will be signed and signatures published via IPFS to allow claiming. That means no start method is required to store a tree root.
start(boostId, merkleRoot)
Therefore the claim method takes a signature instead:
claim(boostId, account, signature)
And here a more detailed todo/checklist for hub and UI:
The frontend/plugin:

settings

enable plugin
set defaults for token and amount

create proposal

create boost / deposit

set token
approve total token amount (so contract can take the deposit)
set amount per claim
display how many claims that makes based on chosen deposit size
set expire

store boost id in proposal plugin metadata

proposal page

display amount per claim
when ended

check for ipfs hash in plugin metadata (maybe waiting for hub)
load ipfs data
check logged in user, find signature
display claim button
or "can't claim" message

The hub:

in intervals:
get closed/finalized proposals with boost enabled and ipfs hash pending
generate signatures based on boost id + voter address
upload to ipfs
update hash in proposal plugin metadata


Explore message busses

Something like fedmsg (which noexc wants to set up at some point anyway) or some other simpler system would be nice. Websockets work for us for now, but a message bus would probably be simpler and websockets would just be a natural extension of it. It would probably be more reusable and allow more people to take advantage of the data we broadcast.

Closing this, as it's not a core mapview thing anymore (with the v3 rewrite). Easy enough to code as a separate package if we end up needing this.


Allow moving panes to other tabs

Description of the new feature/enhancement
Simply put, I would like to be able to take a single pane and either transform it into a tab, or add it as a pane of a different tab.
In my opinion this is useful when a specific tab gets overcrowded with panes, and gets cumbersome.
You could close the panes you want to move and reopen new ones in a different tab, but then you lose output of previous commands, environment changes you made, etc.
As for how this might appear to the user, I think it would have to be a drag & drop kind of thing for the use case of moving the pane to an existing tab (Also allowing to rearrange panes in the same tab which would be nice). Keyboard shortcuts might work too, but I think it'll make it hard to reach the exact arrangement of tabs.

You know what, we shockingly don't have a dupe for this in #1000. I think we were already planning on adding this, but it looks like it wasn't previously tracked. Thanks for keeping us honest!

Thank you for the great work. As someone coming from linux, transitioning to Terminal + WSL is a delight!

Does this also include swapping panes on the same tab?

Does this also include swapping panes on the same tab?

I thinks it is tracked separately, here https://github.com/microsoft/terminal/issues/4922


Updated directxtk et al for cmake package support

The CMake support for directxmath, directxtk, directxtk12, directxmesh, directxtex, and uvatlas has been updated to include cmake package 'installation'. This PR updates the vcpkg references to those versions for a much improved cmake vcpkg experience. This also simplifies the ports in most cases.

BUILD_TOOLS build option added to the library CMakeLists.txt to control the building of Win32 command-line tools. This makes the UWP/ARM64 scenarios much easier to implement in the vcpkg port, and properly supports installation.

In most cases, the vcpkg port now fetches the digitally signed version of my command-line tools for all configs from GitHub rather than rebuilding them locally.

Added tools for directxtk12 which are the same as the directxtk versions.

I preserved the support for the 'openexr' feature in DirectXTex for building a special version of my tools with extra dependencies, with the required CMakeLists.txt support in the mainline.

uvatlas was updated to use cmake build instead of msbuild, and moved from the august 2020 to the december 2020 release.

directxmath is an all inline C++ header library. Added a new port for it to make it easier to get the latest version for CMake users.

Test built all five libraries with the following triplets (which are all fully supported scenarios for these libraries):

x86-windows

x64-windows

arm64-windows

x86-uwp

x64-uwp

arm-uwp

arm64-uwp

directxmesh:
     5>D:\buildtrees\directxmesh\src\nov2020b-509e5fd905.clean\Meshconvert\Mesh.cpp(1067,36): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxmesh\arm-uwp-dbg\meshconvert.vcxproj]
     5>D:\buildtrees\directxmesh\src\nov2020b-509e5fd905.clean\Meshconvert\Mesh.cpp(1111,36): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxmesh\arm-uwp-dbg\meshconvert.vcxproj]
     5>D:\buildtrees\directxmesh\src\nov2020b-509e5fd905.clean\Meshconvert\Mesh.cpp(1472,36): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxmesh\arm-uwp-dbg\meshconvert.vcxproj]
     5>D:\buildtrees\directxmesh\src\nov2020b-509e5fd905.clean\Meshconvert\Mesh.cpp(2254,36): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxmesh\arm-uwp-dbg\meshconvert.vcxproj]

directxtex:
     6>D:\buildtrees\directxtex\src\nov2020b-5aa3ddc968.clean\Texconv\ExtendedBMP.cpp(49,40): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxtex\arm-uwp-dbg\texconv.vcxproj]
     6>D:\buildtrees\directxtex\src\nov2020b-5aa3ddc968.clean\Texconv\PortablePixMap.cpp(85,40): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxtex\arm-uwp-dbg\texconv.vcxproj]
     6>D:\buildtrees\directxtex\src\nov2020b-5aa3ddc968.clean\Texconv\ExtendedBMP.cpp(108,28): error C2065: 'BITMAPFILEHEADER': undeclared identifier [D:\buildtrees\directxtex\arm-uwp-dbg\texconv.vcxproj]
...

directxtk:
     5>D:\buildtrees\directxtk\src\nov2020b-09af77c7d2.clean\XWBTool\xwbtool.cpp(1423,68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [D:\buildtrees\directxtk\arm-uwp-dbg\xwbtool.vcxproj]
     5>D:\buildtrees\directxtk\src\nov2020b-09af77c7d2.clean\XWBTool\xwbtool.cpp(1423,52): error C2146: syntax error: missing '>' before identifier 'ADPCMEWAVEFORMAT' [D:\buildtrees\directxtk\arm-uwp-dbg\xwbtool.vcxproj]
     5>D:\buildtrees\directxtk\src\nov2020b-09af77c7d2.clean\XWBTool\xwbtool.cpp(1424,33): error C3536: 'adpcmFmt': cannot be used before it is initialized [D:\buildtrees\directxtk\arm-uwp-dbg\xwbtool.vcxproj]
     5>D:\buildtrees\directxtk\src\nov2020b-09af77c7d2.clean\XWBTool\xwbtool.cpp(1507,29): error C3861: 'CreateFileW': identifier not found [D:\buildtrees\directxtk\arm-uwp-dbg\xwbtool.vcxproj]

I think that's by design, please add Supports: !uwp to these port's CONTROL file.

Am I using the wrong test here?
if(NOT VCPKG_TARGET_IS_UWP)
  set(FEATURE_OPTIONS ${FEATURE_OPTIONS} -DBUILD_TOOLS=ON)
elseif()
  set(FEATURE_OPTIONS ${FEATURE_OPTIONS} -DBUILD_TOOLS=OFF)
endif()

@walbourn The regressions are on arm / uwp triplets.

You can get the failure log here.

For some reason, I have to use:
if(VCPKG_TARGET_IS_UWP)
  set(EXTRA_OPTIONS -DBUILD_TOOLS=OFF)
else()
  set(EXTRA_OPTIONS -DBUILD_TOOLS=ON)
endif()

vcpkg_configure_cmake(
    SOURCE_PATH ${SOURCE_PATH}
    PREFER_NINJA
    OPTIONS ${FEATURE_OPTIONS} ${EXTRA_OPTIONS}
)

instead of adding to FEATURE_OPTIONS directly...

I will help you to look at this later.

LGTM.

Waiting for #15251 merge.

OK, at this point I believe everything here is done and all code-review feedback addressed.  Checks all passed, and a local build for all supported triplets passes including x64-linux for directxmath.
Linux is blocked for directxtk, directxtk12, directxmesh, and directxtex for now--plan to address this in future upstream.
OSX is blocked for directxtk, directxtk12, directxmesh, and directxtex--support for this is blocked unless directx-headers supports OSX.

Previous submitters had marked things as fail in ci scripts, so I didn't notice this bug before upstream. No idea why it didn't show up locally but probably some subtle order difference in cmake revisions.
Fixing.

@BillyONeal do you have any other questions?

Thanks for your help!


Auto property synthesis will not synthesize property ...

The latest Xcode release 6.3.1 that has been released April 21st 2015 reports two new warnings:
AFHTTPRequestOperation.h:38:60:
Auto property synthesis will not synthesize property 'response'
because it is 'readwrite' but it will be synthesized 'readonly' via another property

and
AFHTTPSessionManager.h:94:87:
Auto property synthesis will not synthesize property 'responseSerializer';
it will be implemented by its superclass, use @dynamic to acknowledge intention

This isn't a problem in 2.5.3.

@audiocommander
Check this

Fixed by #2554.


Allow searching through contained words

Currently it seems that we can search by the first word of a given column, for example here with falcoui we get:

However, if searching for a string that is contained not at the beginning, we will not get any result:

It would be nice to be able to search using any string contained within any column. For example, in my case, I have a lot of workloads containing oauthproxy, but none are at the beginning:

So currently I have to search these individually, instead of being able to get them all using the string oauth
Overall this could be as simple as checking if it contains the search string, but even better could be doing a fuzzy search (FZF-style)

Hey, I will have a look on it

I added support to search within some fields like resource name, policy etc. I left out improvements in the UI for now. I plan a rewrite / restructuring of the UI. I will keep the search improvement for this purpose in mind.


Moves ca package into examples

The ca package is an example and not currently functionality that should be part of the core functionality. This PR turns the ca package into an example and removes some duplicated code between the ca and cert packages.
This adds the OIDC issuer extension to the x509 used by the cert package. @mrjoelkamp you build stuff with this code, is this an OK change? Any reason not to do this?
ExtraExtensions: []pkix.Extension{{
	// OID for OIDC Issuer extension
	Id:       asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 57264, 1, 1},
	Critical: false,
	Value:    []byte(idtClaims.Issuer),
}},

Notes

Used git mv  for ca.go and ca_test.go but too many changes so git decided it was a delete and create rather than a move. >=(

Used git mv  for ca.go and ca_test.go but too many changes so git decided it was a delete and create rather than a move. >=(

That's annoying! I wouldn't worry for this PR but in future it can be better to put the move itself in its own commit and then make the changes in further commits.

That's annoying! I wouldn't worry for this PR but in future it can be better to put the move itself in its own commit and then make the changes in further commits.

Maybe I have to do a mv PR and then a change PR because it seems like the PR merge Squash hides the mv, but I haven't tried the mv being the first commit in the PR. I should run some experiments.


$content modifier doesn't work

Steps to reproduce

Add these rules:
example.com$$div
@@||example.com^$content
Go to - http://example.com/

Expected behavior

div shouldn't be removed.
Actual behavior

div is removed.
Your environment
AdGuard for Windows nightly 7.1.2872(CL 1.4.120)
Works fine with stable build.

core/pull-requests/1425

cannot reproduce in FF ext and reproduced in Mac app


CASSANDRA-20034 Reintroduce RestrictionSet#iterator() optimization around multi-column restrictions

patch by Caleb Rackliffe; reviewed by ? for CASSANDRA-20034

Committed as https://github.com/apache/cassandra/commit/32030e4fa35813803ebaa93e1aa54964ae2b0cf5


[Tool] Fix thirdparty location

use /var/local/thirdparty, keep consistent with existing image

What type of PR is this：

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

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

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

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

Bugfix cherry-pick branch check:

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

[X] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

@mergifyio backport branch-3.0


2021 - ATT Fiber - How to configure IPv6

I've seen a dozen different articles with different configurations being used. I've tried many but they seemed to be incomplete and simply not work.  Maybe things have changed, maybe ATT's support for IPv6 differs by region?  Not sure but as of Jan, 2021 - ATT Fiber in the SF Bay area is supported and the commands below were able to get full ipv6 support for all machines connected to my ER-4.
Setup notes here so you can customize ports as needed:

ETH0 is WAN (to ONT- technically 0.0)
ETH1 is going to ATT_RG (for eap proxy auth)
ETH2 is going to LAN  - ER4 IP is <IP_ADDRESS> and it's a /24

set firewall ipv6-name IPv6_WAN_IN default-action drop
set firewall ipv6-name IPv6_WAN_IN description 'WAN inbound traffic forwarded to LAN'
set firewall ipv6-name IPv6_WAN_IN enable-default-log
set firewall ipv6-name IPv6_WAN_IN rule 10 action accept
set firewall ipv6-name IPv6_WAN_IN rule 10 description 'Allow established/related sessions'
set firewall ipv6-name IPv6_WAN_IN rule 10 state established enable
set firewall ipv6-name IPv6_WAN_IN rule 10 state related enable
set firewall ipv6-name IPv6_WAN_IN rule 20 action drop
set firewall ipv6-name IPv6_WAN_IN rule 20 description 'Drop invalid state'
set firewall ipv6-name IPv6_WAN_IN rule 20 log enable
set firewall ipv6-name IPv6_WAN_IN rule 20 state invalid enable
set firewall ipv6-name IPv6_WAN_IN rule 30 action accept
set firewall ipv6-name IPv6_WAN_IN rule 30 description 'Allow ICMPv6'
set firewall ipv6-name IPv6_WAN_IN rule 30 icmpv6 type destination-unreachable
set firewall ipv6-name IPv6_WAN_IN rule 30 protocol icmpv6
set firewall ipv6-name IPv6_WAN_IN rule 31 action accept
set firewall ipv6-name IPv6_WAN_IN rule 31 description 'Allow ICMPv6 packet-too-big'
set firewall ipv6-name IPv6_WAN_IN rule 31 icmpv6 type packet-too-big
set firewall ipv6-name IPv6_WAN_IN rule 31 protocol icmpv6
set firewall ipv6-name IPv6_WAN_IN rule 32 action accept
set firewall ipv6-name IPv6_WAN_IN rule 32 description 'Allow ICMPv6 time-exceeded'
set firewall ipv6-name IPv6_WAN_IN rule 32 icmpv6 type time-exceeded
set firewall ipv6-name IPv6_WAN_IN rule 32 protocol icmpv6
set firewall ipv6-name IPv6_WAN_IN rule 33 action accept
set firewall ipv6-name IPv6_WAN_IN rule 33 description 'Allow ICMPv6 parameter-problem'
set firewall ipv6-name IPv6_WAN_IN rule 33 icmpv6 type parameter-problem
set firewall ipv6-name IPv6_WAN_IN rule 33 protocol icmpv6
set firewall ipv6-name IPv6_WAN_IN rule 34 action accept
set firewall ipv6-name IPv6_WAN_IN rule 34 description 'Allow ICMPv6 echo-request'
set firewall ipv6-name IPv6_WAN_IN rule 34 icmpv6 type echo-request
set firewall ipv6-name IPv6_WAN_IN rule 34 limit burst 1
set firewall ipv6-name IPv6_WAN_IN rule 34 limit rate 600/minute
set firewall ipv6-name IPv6_WAN_IN rule 34 protocol icmpv6
set firewall ipv6-name IPv6_WAN_IN rule 35 action accept
set firewall ipv6-name IPv6_WAN_IN rule 35 description 'Allow ICMPv6 echo-reply'
set firewall ipv6-name IPv6_WAN_IN rule 35 icmpv6 type echo-reply
set firewall ipv6-name IPv6_WAN_IN rule 35 limit burst 1
set firewall ipv6-name IPv6_WAN_IN rule 35 limit rate 600/minute
set firewall ipv6-name IPv6_WAN_IN rule 35 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL default-action drop
set firewall ipv6-name IPv6_WAN_LOCAL description 'WAN inbound traffic to router'
set firewall ipv6-name IPv6_WAN_LOCAL enable-default-log
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 description 'Allow established/related sessions'
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 log disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 state established enable
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 state invalid disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 state new disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 10 state related enable
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 action drop
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 description 'Drop invalid state'
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 log disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 state established disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 state invalid enable
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 state new disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 20 state related disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 30 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 30 description 'Allow IPv6 ICMP'
set firewall ipv6-name IPv6_WAN_LOCAL rule 30 icmpv6 type destination-unreachable
set firewall ipv6-name IPv6_WAN_LOCAL rule 30 protocol ipv6-icmp
set firewall ipv6-name IPv6_WAN_LOCAL rule 31 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 31 description 'Allow ICMPv6 packet-too-big'
set firewall ipv6-name IPv6_WAN_LOCAL rule 31 icmpv6 type packet-too-big
set firewall ipv6-name IPv6_WAN_LOCAL rule 31 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 32 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 32 description 'Allow ICMPv6 time-exceeded'
set firewall ipv6-name IPv6_WAN_LOCAL rule 32 icmpv6 type time-exceeded
set firewall ipv6-name IPv6_WAN_LOCAL rule 32 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 33 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 33 description 'Allow ICMPv6 parameter-problem'
set firewall ipv6-name IPv6_WAN_LOCAL rule 33 icmpv6 type parameter-problem
set firewall ipv6-name IPv6_WAN_LOCAL rule 33 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 description 'Allow ICMPv6 echo-request'
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 icmpv6 type echo-request
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 limit burst 5
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 limit rate 5/second
set firewall ipv6-name IPv6_WAN_LOCAL rule 34 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 description 'Allow ICMPv6 echo-reply'
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 icmpv6 type echo-reply
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 limit burst 5
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 limit rate 5/second
set firewall ipv6-name IPv6_WAN_LOCAL rule 35 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 36 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 36 description 'Allow ICMPv6 Router Advertisement'
set firewall ipv6-name IPv6_WAN_LOCAL rule 36 icmpv6 type router-advertisement
set firewall ipv6-name IPv6_WAN_LOCAL rule 36 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 37 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 37 description 'Allow ICMPv6 Neighbor Solicitation'
set firewall ipv6-name IPv6_WAN_LOCAL rule 37 icmpv6 type neighbor-solicitation
set firewall ipv6-name IPv6_WAN_LOCAL rule 37 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 38 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 38 description 'Allow ICMPv6 Neighbor Advertisement'
set firewall ipv6-name IPv6_WAN_LOCAL rule 38 icmpv6 type neighbor-advertisement
set firewall ipv6-name IPv6_WAN_LOCAL rule 38 protocol icmpv6
set firewall ipv6-name IPv6_WAN_LOCAL rule 40 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 40 description 'Allow DHCPv6'
set firewall ipv6-name IPv6_WAN_LOCAL rule 40 destination port dhcpv6-client
set firewall ipv6-name IPv6_WAN_LOCAL rule 40 protocol tcp_udp
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 description 'Allow DHCPv6'
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 destination port 546
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 log disable
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 protocol udp
set firewall ipv6-name IPv6_WAN_LOCAL rule 50 source port 547
set firewall ipv6-name IPv6_WAN_LOCAL rule 60 action accept
set firewall ipv6-name IPv6_WAN_LOCAL rule 60 description 'Allow DHCPv6'
set firewall ipv6-name IPv6_WAN_LOCAL rule 60 destination port 546
set firewall ipv6-name IPv6_WAN_LOCAL rule 60 protocol udp
set firewall ipv6-name IPv6_WAN_LOCAL rule 60 source port 547
set firewall ipv6-receive-redirects disable
set firewall ipv6-src-route disable
set firewall ip-src-route disable
set firewall log-martians enable
set firewall name WAN_IN default-action drop
set firewall name WAN_IN description 'WAN to internal'
set firewall name WAN_IN enable-default-log
set firewall name WAN_IN rule 10 action drop
set firewall name WAN_IN rule 10 description 'Drop invalid state'
set firewall name WAN_IN rule 10 log enable
set firewall name WAN_IN rule 10 protocol all
set firewall name WAN_IN rule 10 state invalid enable
set firewall name WAN_IN rule 20 action accept
set firewall name WAN_IN rule 20 description 'Allow established/related'
set firewall name WAN_IN rule 20 log enable
set firewall name WAN_IN rule 20 protocol all
set firewall name WAN_IN rule 20 state established enable
set firewall name WAN_IN rule 20 state related enable
set firewall receive-redirects disable
set firewall send-redirects enable
set firewall source-validation disable
set firewall syn-cookies enable
set interfaces ethernet eth0 description WAN
set interfaces ethernet eth0 dhcpv6-pd pd 60 prefix-length /64
set interfaces ethernet eth0 dhcpv6-pd rapid-commit enable
set interfaces ethernet eth0 duplex auto
set interfaces ethernet eth0 firewall in ipv6-name IPv6_WAN_IN
set interfaces ethernet eth0 firewall in name WAN_IN
set interfaces ethernet eth0 speed auto
set interfaces ethernet eth0 vif 0 description 'WAN VLAN 0'
set interfaces ethernet eth0 vif 0 dhcp-options default-route update
set interfaces ethernet eth0 vif 0 dhcp-options default-route-distance 210
set interfaces ethernet eth0 vif 0 dhcp-options name-server update
set interfaces ethernet eth0 vif 0 dhcpv6-pd duid '2d:6e:20:30:30:31:45:34:36:2d:52:39:31:56:48:39:46:50:31:xx:xx:xx:xx:xx'       <--- BGW210 RG DUID BASED ON SERIAL AND CONVERT TO HEX
set interfaces ethernet eth0 vif 0 dhcpv6-pd pd 1 interface eth2 host-address '::1'
set interfaces ethernet eth0 vif 0 dhcpv6-pd pd 1 interface eth2 no-dns
set interfaces ethernet eth0 vif 0 dhcpv6-pd pd 1 interface eth2 prefix-id ':0'
set interfaces ethernet eth0 vif 0 dhcpv6-pd pd 1 interface eth2 service slaac
set interfaces ethernet eth0 vif 0 dhcpv6-pd pd 1 prefix-length 60
set interfaces ethernet eth0 vif 0 dhcpv6-pd prefix-only
set interfaces ethernet eth0 vif 0 dhcpv6-pd rapid-commit disable
set interfaces ethernet eth0 vif 0 firewall in ipv6-name IPv6_WAN_IN
set interfaces ethernet eth0 vif 0 firewall in name WAN_IN
set interfaces ethernet eth0 vif 0 firewall local ipv6-name IPv6_WAN_LOCAL
set interfaces ethernet eth0 vif 0 firewall local name WAN_LOCAL
set interfaces ethernet eth0 vif 0 ipv6 dup-addr-detect-transmits 1
set interfaces ethernet eth1 description 'AT&T Router'
set interfaces ethernet eth1 duplex auto
set interfaces ethernet eth1 speed auto
set interfaces ethernet eth2 address <IP_ADDRESS>/24
set interfaces ethernet eth2 description LAN
set interfaces ethernet eth2 duplex auto
set interfaces ethernet eth2 ipv6 dup-addr-detect-transmits 1
set interfaces ethernet eth2 ipv6 router-advert cur-hop-limit 64
set interfaces ethernet eth2 ipv6 router-advert link-mtu 0
set interfaces ethernet eth2 ipv6 router-advert managed-flag false
set interfaces ethernet eth2 ipv6 router-advert max-interval 0600
set interfaces ethernet eth2 ipv6 router-advert other-config-flag false
set interfaces ethernet eth2 ipv6 router-advert prefix '::/64' autonomous-flag true
set interfaces ethernet eth2 ipv6 router-advert prefix '::/64' on-link-flag true
set interfaces ethernet eth2 ipv6 router-advert prefix '::/64' valid-lifetime 259200
set interfaces ethernet eth2 ipv6 router-advert reachable-time 0
set interfaces ethernet eth2 ipv6 router-advert retrans-timer 0
set interfaces ethernet eth2 ipv6 router-advert send-advert true
set interfaces ethernet eth2 speed auto
set interfaces loopback lo
set port-forward auto-firewall enable
set port-forward hairpin-nat enable
set port-forward lan-interface eth2
set service dhcp-server disabled false
set service dhcp-server hostfile-update disable
set service dhcp-server shared-network-name DHCP subnet <IP_ADDRESS>/24 default-router <IP_ADDRESS>
set service dhcp-server shared-network-name DHCP subnet <IP_ADDRESS>/24 dns-server YOUR_DNS_HERE
set service dhcp-server shared-network-name DHCP subnet <IP_ADDRESS>/24 lease 6000
set service dhcp-server shared-network-name DHCP subnet <IP_ADDRESS>/24 start <IP_ADDRESS> stop <IP_ADDRESS>
set service dhcp-server static-arp disable
set service dhcp-server use-dnsmasq enable
set service dns forwarding cache-size 2500
set service dns forwarding listen-on eth2
set service dns forwarding name-server <IP_ADDRESS>
set service dns forwarding name-server <IP_ADDRESS>
set service dns forwarding name-server '2001:4860:4860::8888'
set service dns forwarding name-server '2001:4860:4860::8844'
set service dns forwarding name-server <IP_ADDRESS>
set service dns forwarding options 'dhcp-range=::1,constructor:eth2,ra-names,86400'
set service dns forwarding options enable-ra
set service nat rule 5001 description NAT
set service nat rule 5001 log disable
set service nat rule 5001 outbound-interface eth0.0
set service nat rule 5001 protocol all
set service nat rule 5001 type masquerade
set system name-server '2001:4860:4860::8844'
set system name-server <IP_ADDRESS>
set system ntp server 1.ubnt.pool.ntp.org
set system ntp server 2.ubnt.pool.ntp.org
set system offload ipsec enable
set system offload ipv4 forwarding enable
set system offload ipv4 vlan enable
set system offload ipv6 forwarding enable
set system offload ipv6 vlan enable
commit
save
HTH

I'm curious if you tried the config I had submitted in a PR here: https://github.com/jaysoffian/eap_proxy/pull/36
I could try to diff the two to see what is missing/different aside from subnet/naming differences, but at this point, I mostly want to get the config recommendations merged upstream my Jay. :)

I'm curious if you tried the config I had submitted in a PR here: https://github.com/jaysoffian/eap_proxy/pull/36
I could try to diff the two to see what is missing/different aside from subnet/naming differences, but at this point, I mostly want to get the config recommendations merged upstream my Jay. :)


Redux-form compatibility on v1

Versions

Material-UI: next
React: 15.6.1
Browser: Chrome 59

When using redux-form with the new v1-alpha version, the redux-form is unable to get the values from material-ui's inputs:
https://www.webpackbin.com/bins/-KorfXdnqS-bH-LFUgpl

I've been using v1-alpha with the redux-form and it's working for me. I use as the example in the redux-form docs.
https://www.webpackbin.com/bins/-Koro25DoPn0ydR0K2jG

hmm that is a redux-form thing, you have to configure each type of field like @AugustoOdy did

I thought that with v1 we could drop the redux-form-material-ui. But instead we need a new version of it as well.

Personally, I have been using the following wrapper. It's a small adapter.
RFTextField.js
import React from 'react'
import PropTypes from 'prop-types'
import TextField from 'material-ui/TextField'

function RFTextField(props) {
  const { autoComplete, input, meta: { touched, error }, ...other } = props

  return (
    <TextField
      error={Boolean(touched && error)}
      {...input}
      {...other}
      inputProps={{
        autoComplete,
      }}
      helperText={touched ? error : ''}
    />
  )
}

RFTextField.propTypes = {
  autoComplete: PropTypes.string,
  input: PropTypes.object.isRequired,
  meta: PropTypes.shape({
    touched: PropTypes.bool.isRequired,
    error: PropTypes.string,
  }).isRequired,
}

export default RFTextField

@gfpacheco Yes, it makes sense to update the redux-form-material-ui adapter project for the new version for an even simpler experience.

@oliviertassinari how can we use the new <Select> with redux-form?

@HriBB While redux-form-material-ui still don't fully support v1 (I'm working on a PR) you can use my version of it:
npm install --save<EMAIL_ADDRESS>

@HriBB It's the same API as a native select.


feat:added crud example using nodes and docker

Resolving issue #10
@DiptoChakrabarty

hey @DiptoChakrabarty done


Reusable solution for additional addons

addon client mechanism currently only supports compliance addon.
to extend the functionality, it will either be necessary to create more flexible menu system with dropdown-style menus, or else pre-create the assets for future addon menus. or else switch the sidebar menu assets to fonts instead of images.
tbd....

changing to low priority.  let's address this when we have a use case for it.

changing to low priority.  let's address this when we have a use case for it.


Looking for new ownership!

We're looking to hand this repo off to someone who wants to continue maintaining this gem.
If this sounds like something you want to do let us know!

Hi @Robdel12,
If no one else takes this up, I could do this. We are using this gem in three production projects so I need this to be maintained.
Let me know :)
Joe

Hey @joedelia thanks for replying & wanting to take this over!
@cowboyd / @tehviking do either of you have admin access to the repo?

Oh no, I'm not sure why I don't get notified on this but I can transfer if @cowboyd gives the go-ahead. I'm also chatting with @hopsoft about Rails 5 support, we've been so derelict on this gem that I can't tell you whether it supports Rails 5 or Turbolinks.

Hey @joedelia I've sent a request to transfer the repo to your ownership, so it's a bit in limbo till you accept.

Also I had to transfer it to myself personally first so it looks like I did a bunch of work I never, ever did 😛

Hey folks, just stumbled across this repo, seems like there hasn't been a release to rubygems in 3 years and not sure what's happening with new ownership. Is someone taking over the codebase? Wasn't sure what happened with this thread.

I think they're still looking. Are you interested?

Yep, definitely still looking.

@Pyo25 @tansengming any interest?

Sure! I'm happy to help out, as long as I can give credit to Evercondo since they pay my bills =)

If you want to transfer it to the Evercondo organization, that's A-OK for me.

@tansengming You will need to delete your fork before I can transfer ownership.

@cowboyd done!

Awesome!


add annotsv.cwl tool

This PR adds the cwl tool for running AnnotSV. One unique thing with running AnnotSV is that it requires the path to the AnnotSV installation to be an enviornment variable. Found that the cwl requirement EnvVarRequirement allows me to set that.
Thought about having the AnnotSV installation aa part of the docker image but that would make the image kinda large and make it more challenging for adding custom annotations.
Future PR will add this and filtering to single sample sv caller sub workflow.

To add custom annotations you add a formatted bed file to a specific directory in the AnnotSV installation. Because of that I created a central spot for the AnnotSV files so that if we created any custom annotations everyone can use it.
Thinking about this again a better approach for portability would be to have the AnnotSV in the docker image and then have optional input files for potential custom annotations. Creating a script which first puts those files in the correct spot and then runs AnnotSV.

That approach does sound better if we can swing it!  Then anyone using this pipeline won't need to also figure out how to set up AnnotSV itself.

made a new pr


Max quantity of chosen attributes

Suppose that I have two fields, product 1 and product2. How to avoid that the two be filled but at least one must be filled?
Something like this is possible?
[
    ['product1', 'product2'],
    AtLeastValidator::className(),
    'in' => ['product1', 'product2'],
    'max' => 1
],

@Maykonn ... waiting your answer on the PR. Thank you.


abigen! fails to get b256 type when it is with another reference type as a parameter

If b256 is with another reference type as a parameter abigen cannot resolve the b256 type. repro

More context: Just checked the expanded types from the abigen, I think it’s related to tuples:
 pub fn dummy(
            &self,
            arg_0: TestStruct,
            arg_1: [u8; 32],
        ) -> ContractCallHandler<(TestStruct, b256)> {}

b256 should’ve been expanded to an array, like it does when not in a tuple.


chore(e2e): update to e2e-spec

Could you point me the issue or the styleguide chapter this is solving?

@hansl I believe it's this one: https://github.com/angular/angular-cli/issues/835

And here is the style recommendation: https://angular.io/docs/ts/latest/guide/style-guide.html#!#style-02-11

Thanks @Shyam-Chen!


POST /chats HTTP/1.1" 404 Not Found

Bug description
Through the UI, Ragna seems to work fine when creating a chat:
INFO:     <IP_ADDRESS>:39158 - "POST /chats HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:39158 - "POST /chats/dd59fe2a-321c-484c-8329-41e9c6295a9e/prepare HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:39158 - "GET /chats HTTP/1.1" 200 OK

However, when creating a chat via a command line script, there is a problem:
INFO:     <IP_ADDRESS>:49142 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:49142 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:49142 - "POST /chats HTTP/1.1" 404 Not Found

How to reproduce the bug?
This is the offending code in my script:
    chat = check(session.post(
        f"{RAGNA_URL}/chats",
        json={
            "name": CHAT_NAME,
            "documents": documents,
            "source_storage": CHAT_SOURCE_STORAGE,
            "assistant": CHAT_ASSISTANT,
            "params": {}
        }
    ))

And here is the exception it generates:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://xxxxx.xxx:31476/chats

[URL has been redacted]
Versions and dependencies used
Ragna: 0.2.0
Python: 3.10.12
OS: 22.04.1-Ubuntu
Anything else?
No response

That is weird. I cannot reproduce. Here is the output of running scripts/add_chats.py (on the #372 branch) with a cold API start.
INFO:   RagnaDemoAuthentication: You can log in with any username and a matching password.
INFO:     Started server process [5589]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:31476 (Press CTRL+C to quit)
INFO:     <IP_ADDRESS>:54478 - "GET / HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /token HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/3fd0078f-c480-4c11-bde7-167fb3bbd076/prepare HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/3fd0078f-c480-4c11-bde7-167fb3bbd076/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/8f296403-4eda-4908-af4a-b0d98de83b50/prepare HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/8f296403-4eda-4908-af4a-b0d98de83b50/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/8f296403-4eda-4908-af4a-b0d98de83b50/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/8f296403-4eda-4908-af4a-b0d98de83b50/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/08397874-acc4-4d0e-bc9f-b92577b94b1f/prepare HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/08397874-acc4-4d0e-bc9f-b92577b94b1f/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "POST /chats/08397874-acc4-4d0e-bc9f-b92577b94b1f/answer HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:54478 - "GET /chats HTTP/1.1" 200 OK

Here is how we create the chat there, i.e. POST /chats
https://github.com/Quansight/ragna/blob/c6bdb0f9f5f71b37c0c312280839ab58d3059e34/scripts/add_chats.py#L51-L64
They look equivalent. The only thing that could produce a 404 here, should be a broken URL. Could you double check that the RAGNA_URL is set correctly and is the same as for the POST /documents and PUT /documents endpoints?

My mistake!
I was passing a non-existent assistant to Ragna via the script.
We might want to work on improving error messages/logging. The system is a little opaque when it comes to debugging.

We are hitting this code block:
https://github.com/Quansight/ragna/blob/aa2a70263b373baaf40b4c41701c850e40873ad9/ragna/deploy/_api/core.py#L57-L65
I agree that 404 is kinda confusing. I mean it even through me off above. But the error message that we are sending with the status code makes it clear what happened
INFO:     <IP_ADDRESS>:51602 - "POST /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:51602 - "PUT /document HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:51602 - "POST /chats HTTP/1.1" 404 Not Found

print(client.post("/chats", ...).json())

{'error': {'message': 'Unknown component, display_name=NonExistentAssistant'}}

From https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses

404 Not Found
The server cannot find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. (Emphasis mine)

So we are technically right here. But this means nothing if it taints the UX. What error code would you prefer?

I would say returning a 404 on a GET request makes sense. That is, an endpoint exists but the specific resource does not, where a resource is defined as follows:

The target of an HTTP request is called a "resource", whose nature isn't defined further; it can be a document, a photo, or anything else. Each resource is identified by a Uniform Resource Identifier (URI) used throughout HTTP for identifying resources.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web

On a POST request, which is a processing request designed to produce a resource defined by a URI, I would say it makes a lot less sense (and is actually technically incorrect).
Better candidate status codes would be as follows:

400 Bad Request
422 Unprocessable Content
500 Internal Server Error

Of these, I think 422 Unprocessable Content describes our error condition the best (i.e., proper syntax but bad semantics).

SGTM. Do you want to send a PR?

@pmeier I'll take care of the PR

@pmeier @peachkeel #374

Fixed in #374.


Ensure field validation works

https://fastapi.tiangolo.com/tutorial/body/

https://github.com/tiangolo/sqlmodel/issues/52#issuecomment-1311987732