text:
Error connecting to Solr

Description
I cant connect to a solr core, I get this error:
Unexpected driver error occurred while connecting to the database
java.util.concurrent.TimeoutException: Could not connect to ZooKeeper xxx.xxx.xxx.xxx:9983/ within 15000 ms
java.util.concurrent.TimeoutException: Could not connect to ZooKeeper xxx.xxx.xxx.xxx:9983/ within 15000 ms
Could not connect to ZooKeeper xxx.xxx.xxx.xxx:9983/ within 15000 ms
Could not connect to ZooKeeper xxx.xxx.xxx.xxx:9983/ within 15000 ms

OS Version
Edition	Windows 10 Home Single Language
Version	22H2
Installed on	2021-03-19
OS build	19045.4170
Experience	Windows Feature Experience Pack 1000.19054.1000.0
DBeaver Version
Community Edition 24.0.1.202403241413
Operating System
Windows 10 Home x64
Database and driver
solr-impl-version: 6.4.0 bbe4b08cc1fb673d0c3eb4b8455f23ddc1364124 - jim - 2017-01-17 16:01:31
solr-solrj-9.21.jar
Class Name: org.apache.solr.client.solrj.io.sql.DriverImpl
Steps to reproduce
Following the connection wizard y place the next information.
Host:
Port:
Database/Schema
No User/No Password
And when I test the conenction I get the error message.
Additional context
I use a vpn to access the server where solr is installed.

Hello @LottarWolf
Are you sure that this is DBeaver issue? It can be incorrect connection specifications, not enough rights to use the Internet from DBeaver, or VPN restrictions. Anything.

Could you connect to your database using any other tool?

I can connect using the web interface.
[image: image.png]
On Thu, Mar 28, 2024 at 4:51 AM Anastasiya @.***> wrote:

Could you connect to your database using any other tool?
—
Reply to this email directly, view it on GitHub
https://github.com/dbeaver/dbeaver/issues/23264#issuecomment-2024900789,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEL3QZRYQJ4O66F6A5WVYNTY2PRZ3AVCNFSM6AAAAABFLJZPL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUHEYDANZYHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Jesus Cardenas Mercado

Did you try to use different ports in your connection settings?
https://solr.apache.org/guide/6_6/getting-started-with-solrcloud.html
8983? 8987?

Yes, I tried with the ports you mentioned and still get the error.
El mar, 2 de abr de 2024, 1:30 a. m., Anastasiya @.***>
escribió:

Did you try to use different ports in your connection settings?
https://solr.apache.org/guide/6_6/getting-started-with-solrcloud.html
8983? 8987?
—
Reply to this email directly, view it on GitHub
https://github.com/dbeaver/dbeaver/issues/23264#issuecomment-2031267676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEL3QZWYHFVAHNEQXE2QUGDY3JM7ZAVCNFSM6AAAAABFLJZPL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGI3DONRXGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

Perhaps you could find any helpful information here? https://github.com/orgs/dbeaver/discussions/572

It's been a while since no update here. If the issue is still actual please let me know and provide additional information.

authors: E1izabeth LonwoLonwo LottarWolf ShadelessFox


text:
Weird number's order in column filter  in data in view

System information:

Operating system (distribution) and version Windows 10 Home
DBeaver version 6.2.1

Connection specification:

Database name and version MySQL, Postgres, Oracle, Exasol
Do you use tunnels or proxies (SSH, SOCKS, etc)?  yes

Describe the problem you're observing:
Column filter of data view has weird number's order.
Steps to reproduce, if exist:
Open any table where a column with more then 20 numbers exists;
Click filter icon in the column header;
Scroll to see the number's order in the filter list.
Include any warning/errors/backtraces from the logs

Fixed

Verified

source: gharchive/issue

authors: kseniiaguzeeva serge-rider

repo: dbeaver/dbeaver

license_type: permissive

license_source: github-api


text:
Export Result Set to File button has inconsistent behaviour.

I have searched past issues and have not found anything that appears to be a solution to this problem, however I would be happy to learn that I have simply been making a mistake!  Issue #6210 has some similarity but has enough differences that I think this warrants a new entry.
System information:
I am running DBeaver on a remote desktop using "Windows Server 2012 R2".
I believe the desktop is running on a linux server that I cannot directly access, but my best guess
is running Red Hat Enterprise Linux Server release 7.3 (Maipo).
DBeaver version is Version 7.0.1.202003211804  - released March 23 2020
Connection specification:
The database is MYSQL, not using SSH or proxy.
In any event getting a connection and retrieving data appears to be OK.
Describe the problem you're observing:
Running SQL appears normal.
The first 200 rows of data appear quickly and normally.
Additional rows of data can easily be seen by scrolling.
Here is the problem:  The "Export Result Set to File" button is almost always not active.  It appears greyed out, and produces no action.  This is a button at the bottom of the data preview panel that appears when some SQL is run in the editor.
I say almost, because the behaviour is not consistent.  Or at least I have not been able to identify any pattern, or mode of use on my part that makes a difference.
Other buttons to the left of the Export button are also often inactive.
Sometimes simply scrolling the preview up and down will cause the Export button to light up.  Other times not.  Sometimes hitting the Calculate Total Row count will cause some of the inactve buttons to light up, but not always.
Today, the problem appeared, and I was unable to cause the Export button to work, until after waiting 20 minutes, when hitting the Calculate Total Row count button (again) caused the Fetch All Rows button to light up, as well as the "Move to" buttons.  Hitting one of the "Move to" buttons finally caused the Export button to light up, and it started behaving normally.  Exporting data worked fine.
The error log shows two entries from today - both logged an hour and a half ago.  See text at bottom for the most recent.
Oddly, when the Error Log tab appeared, various buttons greyed out, and hitting one of the "Move to" buttons brought them back again, along with the Export button.
Since this is an intermittent problem, I ran the same SQL again three times with no issues.
On the fourth trial I switched to slightly different SQL, which has previously worked, this time the Export button is greyed out again. The "Move to" buttons are lit up, as well as the Fetch all and Fetch next buttons.
HItting the "Fetch All" button enabled preview of all the 50K rows of data I need, but still the Export button is greyed out.
Killing the preview tab and the error log tab, I re-ran the same SQL, and again the Export button is greyed out and inoperative along with the "Move to" and "Fetch" buttons.
The Error Log still shows the same two errors from earlier today, apparently not related to this issue.
Hitting a Move to button brought back the Export button this time.  I understand the logic of the "Move to" buttons, when you are looking at the top row, you can't move up, and when looking at the bottom row, you can't move down, but this appears unrelated to the Export button, and "Fetch" buttons.
All the SQL I have been testing with has been used previously, and always produces the preview rows with no issue.
If this is simply operator error, I would love to find out!  If this is a bug you have not seen before, feel free to contact me and I will be happy to work with you on it.
Thanks;

JC

Error log entry:
eclipse.buildId=unknown
java.version=11.0.5
java.vendor=AdoptOpenJDK
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64
org.eclipse.ui
Error
Tue Apr 28 12:08:54 EDT 2020
Unhandled event loop exception
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4720)
at org.eclipse.swt.SWT.error(SWT.java:4635)
at org.eclipse.swt.SWT.error(SWT.java:4606)
at org.eclipse.swt.widgets.Widget.error(Widget.java:452)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:351)
at org.eclipse.swt.widgets.Table.setRedraw(Table.java:4712)
at org.jkiss.dbeaver.ui.UIUtils.packColumns(UIUtils.java:198)
at org.jkiss.dbeaver.ui.controls.resultset.valuefilter.FilterValueEditPopup.lambda$5(FilterValueEditPopup.java:182)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3963)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3590)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:660)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at org.jkiss.dbeaver.core.application.DBeaverApplication.start(DBeaverApplication.java:233)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

hi @J-Z-C , i'm very sorry for so late response.
Unfortunately, cannot reproduce an issue.
could you check if Expord data button  is available in context menu? is issue still reproducible against 7.0.5?

Let's call the issue closed.
I don't have control of which version is installed, so can't check 7.0.5.
Also, while the button at the bottom of the screen still does not work consistently, the context menu (right click with the cursor in the results table) does always produce a working Export function.
Thanks;

JZC

�
On Fri, 22 May 2020 07:52:01 -0700, uslss notifications@github.com wrote:
�
�
hi @J-Z-C , i'm very sorry for so late response.
Unfortunately, cannot reproduce an issue.
could you check if Expord data button is available in context menu? is issue still reproducible against 7.0.5?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

This is still happening. I am seeing the same problem.

Same.
Unhandled event loop exception
java.lang.StackOverflowError

same here. reran the query. I have the latest version

Still happening; I was able to export using the context menu though more errors occurred during that process and it recommended to close the program. I continued with the export and it worked. Here is the log from the session:
dbeaver-export-result-set-button-greyed-out.log

I also face same problem, but solved with this methods

authors: J-Z-C Sarke khaerulumam42 mhstnsc saywebsolutions uslss williambuchanan2


text:
#18892 Use select if the function is not a procedure for debugging

You might check PostgreSQL 12 dvdrental.public.film_in_stock fucntion and dvdrental.public.display_message procedure. Both should work now (film_in_stock didn't work as we tried to use CALL with function instead of SELECT).

verified

source: gharchive/pull-request


text:
User request: document recommended setup for running dbos-transact testing

Restarting the docker container is not very ergonomic. Can we recommend and document a pattern?

Can you provide more detail on this request?  Are you referring to running DBOS Transact's own unit tests or to testing a DBOS Transact application?

Spoke to the user on Discord and resolved it. For reference, he was asking how to run DBOS Transact's own unit tests. To do this, run npm run test in an environment where there is a Postgres database available on localhost:5432 and the password for the postgres user is stored in the PGPASSWORD environment variable.

authors: apoliakov kraftp

repo: dbos-inc/dbos-transact

license: MIT


text:
tvnamer always returns "No JSON object could be decoded"

I've tried installing with both pip and apt-get (after uninstalling the pip version) and every time I run tvnamer I get the error.
Full output:
# Starting tvnamer
# Found 1 episode
####################
# Processing file: NCIS.S08E01.HDTV.XviD-mOt.Pyramid.mkv
# Detected series: NCIS (season: 8, episode: 1)
Traceback (most recent call last):
  File "/usr/bin/tvnamer", line 4, in <module>
    main()
  File "/usr/share/tvnamer/main.py", line 418, in main
    tvnamer(paths = sorted(args))
  File "/usr/share/tvnamer/main.py", line 325, in tvnamer
    processFile(tvdb_instance, episode)
  File "/usr/share/tvnamer/main.py", line 170, in processFile
    episode.populateFromTvdb(tvdb_instance, force_name=Config['force_name'], series_id=Config['series_id'])
  File "/usr/share/tvnamer/utils.py", line 639, in populateFromTvdb
    show = tvdb_instance[force_name or self.seriesname]
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 1182, in __getitem__
    sid = self._nameToSid(key)
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 1163, in _nameToSid
    selected_series = self._getSeries(name)
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 963, in _getSeries
    allSeries = self.search(series)
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 943, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 903, in _getetsrc
    src = self._loadUrl(url, language=language)
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 850, in _loadUrl
    self.authorize()
  File "/usr/local/lib/python2.7/dist-packages/tvdb_api.py", line 891, in authorize
    r_json = r.json()
  File "/usr/lib/python2.7/dist-packages/requests/models.py", line 808, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I think I have this fixed. Looking around at other sources, I found these on a MythTV support forum and they seem to have fixed my problem.
sudo apt-get install python-pip
sudo pip install future requests_cache
sudo pip install --upgrade urllib3 requests

repo: dbr/tvnamer

license: unlicense

license_source: bigquery


text:
Issues mapping evaId -> StationNumber

See https://github.com/derhuerst/db-stations/issues/10

see also derhuerst/db-hafas#10

license: mit


text:
[Feature] Add target_path to global_flags

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
From @graciegoheen here:

Like looking at this page for target-path, I don't see anything for dbt retry - is that expected @ChenyuLInx ?

This is explained by@p.target_path not being included within the flags for dbt retry.
The easiest way to "solve" this would be adding @p.target_path to the dbt retry command here.
But the proposed way to implement this would be to add it to the global_flags and remove it from each of the sub-commands.
Current status
Currently, @p.target_path is included for all sub-commands except for:

dbt debug
dbt deps
dbt retry

Describe alternatives you've considered
A couple alternatives:

don't add target_path to any more sub-commands (which is the status quo)
add target_path only to dbt retry, but not dbt debug or dbt deps

Who will this benefit?
If dbt retry produces any artifacts to the target directory, then this flag would make that location configurable.
Are you interested in contributing this feature?
No response
Anything else?
No response

[!TIP]
All the << EOF business below is the start of a "here document" -- just a handy way to write dbt model files on the fly for reprex purposes.

dbt retry
Since dbt retry writes files to the target_path directory, it should be configurable via DBT_TARGET_PATH or --target-path just like nearly all other dbt sub-commands.
Acceptance criteria 1
Users should be able to set the DBT_TARGET_PATH environment variable and have it work with subsequent retries:
export DBT_TARGET_PATH=artifacts
cat << EOF > models/my_model.sql
select 1/0 as id
EOF
dbt run -s my_model
cat << EOF > models/my_model.sql
select 1 as id
EOF
dbt retry

Instead, they will get this error:
01:10:28  Encountered an error:
Runtime Error
  Could not find previous run in 'target' target directory

Acceptance criteria 2
Put another way...
Suppose you start with some bad SQL, run it, and then fix it:
dbt clean
rm -rf target
rm -rf artifacts
cat << EOF > models/my_model.sql
select 1/0 as id
EOF
dbt run -s my_model --target-path target
mkdir -p artifacts
mv target/run_results.json artifacts/
rm -rf target
cat << EOF > models/my_model.sql
select 1 as id
EOF

This command works, and it writes output files to the target directory:
dbt retry --state artifacts

We should make it so this command writes output files into the my_target_path directory:
dbt retry --state artifacts --target-path my_target_path

Something to consider
As shown in the logic here:

dbt retry will use the configured state directory to find run_results.json.
Otherwise, it will fall back to the configured target_path directory.

When these are the same directory, then the newest run_results.json file will overwrite the pre-existing one.
Maybe this is partially why there was the following warning message in 1.7.4 and earlier? Or maybe that warning was there for different reasons?
Warning: The state and target directories are the same: 'target'. This could lead to missing changes due to overwritten state including non-idempotent retries.

This warning was added in https://github.com/dbt-labs/dbt-core/pull/8638. Then the warning disappeared following https://github.com/dbt-labs/dbt-core/pull/9328 (which resolved https://github.com/dbt-labs/dbt-core/issues/9327).
Separate acceptance criteria
In the case of successive executions of dbt retry, we should make sure that it is okay that run_results.json is overwritten.
We should probably move this separate acceptance criteria to its own issue, but leaving it here for sake of expedience.
See below for an example of successive executions of dbt retry. I'm not sure or if it is a sufficient example to show that it's okay for run_results.json to be overwritten each time.
cat << EOF > models/my_model.sql
select 1/0 as id
EOF
dbt run -s my_model
dbt retry
cat << EOF > models/my_model.sql
select 1 as id
EOF
dbt retry

Decision
@aranke and I discussed this over a video call today and decided to add this to the global_flags and remove it from each of the sub-commands.
Here are the reasons:

there are very few commands that wouldn't want to write to the target-path directory (which is target by default)
if we add any dbt commands in the future, they will automatically get the target-path configuration for free
any commands that don't write to the target-path directory will just ignore that value

repo: dbt-labs/dbt-core


text:
[Feature] Fetch fail_calc metrics even tests are passed

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Currently, fail_calc metrics only being populated when tests not passed in run_results.json file.
In my opinion, it is reasonable to know why tests passed. How close are the metrics close to the threshold (error_if / warn_if configuration)
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
Yes
Anything else?
No response

Thanks for opening this issue and the associated PR @tbog357 ! 🤩
Agreed with @jtcohen6 in https://github.com/dbt-labs/dbt-core/pull/9657#issuecomment-1964538468 that this sounds reasonable and that:

We'll just want to do a little bit of thinking to make sure this wouldn't be a behavior change that would surprise someone upon upgrade.

So let's take a closer look at this!
Suppose we have the following project files:
models/my_model.sql
select 1 as id union all
-- select null as id union all
-- select null as id union all
select null as id

models/_models.yml
models:
  - name: my_model
    columns:
      - name: id
        tests:
          - not_null:
              config:
                severity: error
                error_if: ">2"
                warn_if: ">1"

And then we run this command:
dbt build -s my_model

The contents of target/run_results.json currently contain JSON like this:
    "results": [
        {
            "status": "pass",
            "timing": [...],
            "thread_id": "Thread-1 (worker)",
            "execution_time": 0.04432988166809082,
            "adapter_response": {
                "_message": "OK"
            },
            "message": null,
            "failures": 0,
            "unique_id": "test.my_project.not_null_large_table_id.915a6f562e",
            "compiled": true,
            "compiled_code": "\n    \n    \n\n\n\nselect id\nfrom \"db\".\"dbt_dbeatty\".\"large_table\"\nwhere id is null\n\n\n",
            "relation_name": null
        }
    ],

If your proposed change is adopted, then the only difference would be this portion (i.e., "status": "pass" would remain):
            "failures": 1,

This sounds good to me.
The case where this would affect someone is if they are using the number of failures to determine if there was a non-zero exit code or not. If they were doing this, then they would already have issues today because the warning case already reports a number that isn't 0, and a warning is still considered passing as well.
Since it seems most accurate to report the actual number of rows flagged by the test within run_results.json (irrespective if they meet the threshold or not), I'd feel good about accepting your proposal provided that we call this out in a migration guide.


text:
Fix post_model_hook call in data and unit tests

Resolves #10822

Problem

https://github.com/dbt-labs/dbt-core/pull/10258
https://github.com/duckdb/dbt-duckdb/issues/448

Solution

Checklist

[ ] I have read the contributing guide and understand what's expected of me.
[ ] I have run this code in development, and it appears to resolve the stated issue.
[ ] This PR includes tests, or tests are not required or relevant for this PR.
[ ] This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
[ ] This PR includes type annotations for new and modified functions.

See https://github.com/dbt-labs/dbt-core/issues/10822#issuecomment-2521842260


text:
Add types to quote

Description
I noticed this when working on types for dbt-spark.
This is equivalent to the signature of the method that it's overriding:
    @available
    @classmethod
    @abc.abstractmethod
    def quote(cls, identifier: str) -> str:
        """Quote the given identifier, as appropriate for the database."""
        raise NotImplementedError("`quote` is not implemented for this adapter!")

resolves dbt-labs/dbt-adapters#153

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

Thanks for taking the time to open this PR @Fokko! Since opening, we've decoupled dbt Adapters from dbt Core, and this code now lives in a separate repo: dbt-adapters.
A consequence of the decoupling is that PR can't be merged anymore as is, so we're closing it. For more context see #9171.
The linked issue has already been transferred. Please don't hesitate to re-open your proposed code changes within this PR in the dbt-adapters repo.


text:
Rename objects lib to implementations

Description
We called these things objects before because they were The Objects(TM).
However, now these objects are just default/example implementations of
the protocols. We've even begun referring to them as "implementations".
As such, it seemed time to rename them accordingly.
Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

I'm gonna move forward and consider Callum's approval still valid

repo: dbt-labs/dbt-semantic-interfaces


text:
test 2

Docs project
Contributions

[X] I have read the contribution docs, and understand what's expected of me.

What page(s) or areas on docs.getdbt.com are affected?
test
What changes are you suggesting?
test
Additional information
No response

closing since zappy works!! 🎉


text:
New Blog Post

What are you changing in this pull request and why?
This is a blog post that we will launch today!

Love this transparency @callum-mcdata 😍  and lovely suggestions @KiraFuruichi !
one other thing I'm curious is how it's looking in the deploy preview. I'm personally finding that the bullet organization makes it hard to read. i wonder if removing bullets and having the text located below each bolded section reads neater to the eye. for example:

@KiraFuruichi @mirnawong1 made the update to the structure!


text:
Update deprecated path names to current ones.

Heya! 👋  Got a couple of deprecated warnings worth nixing methinks.

These two warnings have been fixed and no longer show! In compliance with the dbt docs.

Notice dbt run is still happy!

@VersusFacit it will need a minimum require dbt version though please?

Oh wow look at you so fast

authors: VersusFacit joellabes


text:
plan 9, pre-go1.5 windows support

On plan 9, os.Rename will not (currently) overwrite an existing file.
On windows before go1.5, os.Rename will not overwrite an existing file.
This might be a go issue rather then a safefile issue.

Thank you, it looks like it's impossible to guarantee atomic saving on Windows.

Any suggestions on what I should go? Delete destination file on Windows and Plan 9, potentially losing it? Rename existing file to destination to another temporary name, rename temporary file, and delete the renamed original?

What do you think about this PR https://github.com/dchest/safefile/pull/5 ?

authors: dchest kardianos

repo: dchest/safefile


text:
fix inexacterrors caused by type coercion in broadcast

The following plot fails on master, but is in our documentation:
julia> using Gadfly

julia> plot(x=rand(500), y=rand(1:4, 500), Stat.y_jitter(range=0.5), Geom.point)
Error showing value of type Gadfly.Plot:
ERROR: InexactError()
 in macro expansion at ./broadcast.jl:129 [inlined]
 in macro expansion at ./simdloop.jl:73 [inlined]
 in macro expansion at ./broadcast.jl:123 [inlined]
 in _broadcast!(::Base.#+, ::Array{Int64,1}, ::Tuple{Tuple{Bool},Tuple{Bool}}, ::Tuple{Tuple{Int64},Tuple{Int64}}, ::Tuple{Array{Int64,1},Array{Float64,1}}, ::Type{Val{2}}) at ./broadcast.jl:117
 in broadcast!(::Function, ::Array{Int64,1}, ::Array{Int64,1}, ::Array{Float64,1}) at ./broadcast.jl:172
 in apply_statistic(::Gadfly.Stat.JitterStatistic, ::Dict{Symbol,Gadfly.ScaleElement}, ::Gadfly.Coord.Cartesian, ::Gadfly.Aesthetics) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/statistics.jl:1752
 in apply_statistics(::Array{Gadfly.StatisticElement,1}, ::Dict{Symbol,Gadfly.ScaleElement}, ::Gadfly.Coord.Cartesian, ::Gadfly.Aesthetics) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/statistics.jl:38
 in render_prepare(::Gadfly.Plot) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/Gadfly.jl:740
 in render(::Gadfly.Plot) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/Gadfly.jl:799
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/html")}, ::Gadfly.Plot) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/Gadfly.jl:1062
 in macro expansion at ./multimedia.jl:143 [inlined]
 in display(::Gadfly.Plot) at /Users/tamasnagy/.julia/v0.5/Gadfly/src/Gadfly.jl:1014
 in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:154
 in print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:139
 in (::Base.REPL.##22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:652
 in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1579
 in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:903
 in run_repl(::Base.REPL.LineEditREPL, ::Base.##930#931) at ./REPL.jl:188
 in _start() at ./client.jl:360
 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?

https://dcjones.github.io/Gadfly.jl/stat_y_jitter.html
This PR fixes this problem. Working towards #879.

Coverage increased (+0.007%) to 65.61% when pulling 7c3590de659caa8da3677e0351b5e820e86707a6 on tlnagy:fix-broadcast-type-coercion into f6183acb6015c8e133e335d32227f551056c59f8 on dcjones:master.

Coverage increased (+0.007%) to 65.61% when pulling 7c3590de659caa8da3677e0351b5e820e86707a6 on tlnagy:fix-broadcast-type-coercion into f6183acb6015c8e133e335d32227f551056c59f8 on dcjones:master.

Thanks! 🎉

authors: coveralls tlnagy


text:
ImportError: cannot import name 'Markup' from 'flask'

Hello,
Following the evolution of Flask, an error appears on the "flask-markdown" module.

https://github.com/pallets/flask/pull/5223
https://github.com/pallets/flask/discussions/5293

Would it be possible to fix the module to fit Flask 3.x. x?
Thank you for your help,

If you can propose a fix I'm happy to review and approve. I stepped away from this project a long time ago after it was rejected from listing with approved flaks plug-ins and left the code for the community.
If it's valuable I'd love to transfer ownership. I'll share an announcement in the readme and in an issue that it will be archived by end of year if no one has time to take it.
Thanks
Dan

How about something like:
try:     from flask import Markup except:     try:          import Markup     except:          raise Exception('Markup module not found')

@dcolish
https://github.com/dcolish/flask-markdown/pull/26

authors: SSAdvisor dcolish glopglopoups vanzhiganov

repo: dcolish/flask-markdown


text:
Replace underscore isEqual with deepEqual

What it says on the box. Also removes underscore package (!!!)
Depends on https://github.com/dcos/dcos-ui/pull/90, review that first please! The last two three commits of this PR are the relevant ones.

Reviewer: @kennyt

❓ Curious: do we not care about commit message Capitalisation?

I haven't thought about it before, but I suppose it is a good idea!

interesting trivia: deep-equal is dr. martin luther king jr's favorite npm module

authors: daiyiwhale kennyt mesosphere-web pierlo-upitup

repo: dcos/dcos-ui


text:
[DCOS_OSS-888] Document running integration tests with DC/OS Docker

High Level Description
This change provides clear instructions for using DC/OS Docker to run integration tests. It is aimed in particular at developers wanting to run integration tests, and for my needs over the last few days - to test changes to integration tests.
Related Issues

DCOS_OSS-888 Document how to run integration tests with DC/OS Docker.

Checklist for all PR's

[X] Included a test which will fail if code is reverted but test is not. If there is no test please explain here: There is no test because there is no code, this is a docs only change.
[X] Read the DC/OS contributing guidelines
[X] Followed relevant code rules Rules for Packages and Systemd

Notes
This could perhaps be two PRs. I would be happy to split this up if requested.
I tried to make this as similar as possible to the above section.
I wanted to use test_env.export but I couldn't find it in the Docker container.
I am wary that this is not tested and it might not be stable.
That is, the integration tests run on the CI server might change without this documentation changing.

I'm not quite sure who to tag for a review, so I will tag the reviewers of the related https://github.com/mesosphere/dcos-enterprise/pull/786: @vespian , @mhrabovcin .

Closing to implement changes suggested in https://github.com/mesosphere/dcos-enterprise/pull/786.

Huh, this doesn't get all of the tests to pass. I will debug later. For example, test_enterprise_if_marathon_pods_can_be_deployed_with_mesos_containerizer fails.

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot label ship it

@adamtheturtle  - thanks, good work on this documentation.

authors: adamtheturtle amitaekbote orsenthil

repo: dcos/dcos


text:
Update cosmos version to 0.4.1

High Level Description
Add metrics and documentation.
Related Issues

DCOS-17822 Release cosmos
DCOS-17823 Release cosmos enterprise

Checklist for all PR's

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): Change Log
[x] Test Results: link to CI job test results for component
[x] Code Coverage (if available): link to code coverage report

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and Review Process
What is the review process and when will my changes land?
All PRs require 2 approvals using github's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@jsancio @cruhland

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot bump-ee

@takirala @jsancio @cruhland ping, please review.  Needed for final train today.

authors: cdaw larioj


text:
Update JDK License link.

High-level description
We ship JDK 8 and were pointing to Java 6 License.

@mesosphere-mergebot label ship-it

These were fixes to license text. Applying ship-it label seemed OK.

@mesosphere-mergebot bump-ee


text:
🛑 Danbs is down

In e775417, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3312 ms

Resolved: Danbs is back up in 3dd88c3 after 13 minutes.

repo: ddanbs/upptime


text:
🛑 Danbs is down

In 47d5464, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 216 ms

Resolved: Danbs is back up in 3335da9 after 6 minutes.


text:
🛑 Danbs is down

In 8b01f2a, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 298 ms

Resolved: Danbs is back up in bf61479 after 7 minutes.


text:
🛑 Hacker News is down

In 20c673a, Hacker News (https://news.ycombinator.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Hacker News is back up in 145998f after 2 hours, 43 minutes.


text:
🛑 Danbs is down

In 4663609, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 283 ms

Resolved: Danbs is back up in 8da6a5c.


text:
🛑 Danbs is down

In f409b0b, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 164 ms

Resolved: Danbs is back up in 98103a7.


text:
🛑 Danbs is down

In bd162ff, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 195 ms

Resolved: Danbs is back up in 0464d5d.


text:
Module has no exported member 'xx'

There are multiple references that are not found.
Example files
filename: GetProjectList2.ts
import { Ps1 } from "./Ps1";

export interface GetProjectList {
    /** */
    ps1?: Ps1;
}

filename: Ps1.ts

export interface Ps {
    /** s:boolean */
    myProjects?: string;
    ... (more fields here)
}

Let me know if you want a simple reproduction repo :)

@cobraz error with generating duplicated definitions should be fixed in Release 1.1.3

Thanks! 🙏
Let's close this then? :)

authors: cobraz dderevjanik

repo: dderevjanik/wsdl-tsclient


text:
config --update do not update mariadb version for Drupal 11 and does not trigger any information

Is there an existing issue for this?

[X] I have searched the existing issues

Output of ddev debug test
Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]

Expected Behavior
When running ddev config --update in a project with latest Drupal 11 codebase, and the container was set to mariadb 10.4, the output should indicate that mariadb has to be updated manually to 10.6 after ensuring that volume data is saved.
Actual Behavior
The output shows that ddev config --update execution is successful.
$ ddev config --update
You are reconfiguring the project at /home/plopesc/projects/lullabot/core.
The existing configuration will be updated and replaced.
Auto-updating project configuration because update is requested.
Configuring a 'drupal' project with docroot '' at /home/plopesc/projects/lullabot/core
Configuration complete. You may now run 'ddev start'.

Steps To Reproduce
No response
Anything else?
No response

Hi @plopesc - If you have an existing "latest drupal11 codebase" then it would not have had a mariadb:10.4 configuration.
DDEV refuses to risk your existing databases, so it will not upgrade them for you. You will need to reconfigure as needed.
ddev export-db --file=/tmp/db.sql.gz
ddev delete
ddev config --database=mariadb:10.11
ddev start
ddev import-db --file=/tmp/db.sql.gz

But since you can't take the database with you anyway to drupal 11 (right?) then just ddev delete -Oy && ddev config --database=mariadb:10.11

no i think @plopesc's point was that the user isn't informed in the output that ddev config --update returns, that the database the project currently uses is dated compared to the version the project should actually be using after running the update command:
You are reconfiguring the project at /home/plopesc/projects/lullabot/core.
The existing configuration will be updated and replaced.
Auto-updating project configuration because update is requested.
Configuring a 'drupal' project with docroot '' at /home/plopesc/projects/lullabot/core
Configuration complete. You may now run 'ddev start'.

at the moment there is no cue and call to action here telling the user you have mariadb version 10.4, you should manually update to version 10.11 or something like that. to make the user aware of that shortcoming. and i agree that the user should be informed about that imho

Take a look at this:

#6165

Thank you!

authors: plopesc rfay rpkoller stasadev

repo: ddev/ddev


text:
Fix LICENSE file location annoyance

If kept in a home dir it it annoying. If moved to ~/.github it's not longer picked up by GitHub. Ignore in ls alias?

This will be fixed in #25 by including LICENSE in .chezmoiignore

repo: ddnomad/dotfiles

license: Unlicense


text:
Broken on 3.20.2

Fresh install here, doesn't work on 3.20.2

Nothing actionable in this report. Closing.

Mistake on my part : I didn't have xorg-utils installed, sorry for the noise !

authors: deadalnix kamek-pf

repo: deadalnix/pixel-saver


text:
Align ExtractNewDocumentState and deprecate ExtractNewRecordState options

https://issues.redhat.com/browse/DBZ-1791
https://issues.redhat.com/browse/DBZ-1828
This PR is a rework of #1479 in order to apply add.fields and add.headers options to the MongoDB implementation, align documentation and deprecate fields that which DBZ-1828 is removing as part of the relational SMT implementation, ExtractNewRecordState.

Applied; thx!

authors: Naros gunnarmorling

repo: debezium/debezium


text:
DBZ-3896 Enable semicolon in DDL

https://issues.redhat.com/browse/DBZ-3896

Hey, could you please describe a bit more why this is needed? Could you also log a Jira issue and reference its issue number in the commit message? Thx!

CC @Naros

Hi @gunnarmorling and @Naros , I created a new Jira for the issue. Please check. Thanks!

Hey @zouxinyu0328, could you rebase and squash the commits into a single one, author the commit with an email linked to your GH account (avoiding the "octocat commit") and prefix the commit message with the issue key ("DBZ-3896 Enable..."). Thanks!

Hi @zouxinyu0328 could you please follow up on Gunnar's request above?  If I don't see that you have had a chance to in the next few hours I'll proceed with making the commit myself so we can get this included in tomorrow's release.

Closing this PR in favor of PR #2623

authors: Naros gunnarmorling zouxinyu0328


text:
Update icon library to Phosphor

https://github.com/phosphor-icons/homepage
https://phosphoricons.com/

The library has been added

authors: Da-Colon nicolaus-sherrill

repo: decentdao/fractal-interface


text:
Order points in hash and update 1 to Identity_GT

Fixes #173 by @dev0x1.
Now the challenge hashes c and cv in ProofGen and ProofVerify are computed as hash_to_scalar((PK || A' || Abar || D || C1 || C2 || ph), 1), to keep the ordering of the proof.
The other minor fix is to follow the new notation introduced in #175  and use Identity_GT instead of 1 in Verify.

Multiple approvals, editorial update, merging! Thanks @alessandroguggino!!

authors: BasileiosKal alessandroguggino

repo: decentralized-identity/bbs-signature


text:
Module '"../node_modules/did-jwt-vc/lib"' has no exported member 'Issuer'

Hi,
I installed did-jwt-vc using npm install did-jwt-vc.
Next compiling  index.ts file fails with the error message Module '"../node_modules/did-jwt-vc/lib"' has no exported member 'Issuer'
import EthrDID from 'ethr-did'
import { Issuer } from 'did-jwt-vc'
const ethrDid = new EthrDID({address: '0xf1232f840f3ad7d23fcdaa84d6c66dac24efb198', privateKey: 'd8b595680851765f38ea5405129244ba3cbad84467d190859f4c8b20c1ff6c75', provider})
Can someone help? Thanks

Hi Please try importing like this import { Issuer } from 'did-jwt-vc/lib/types'

Hi, this solved the issue. Thank you!
Next, if I write instead in my index.ts file:
const issuer: Issuer = new EthrDID({
address: '0xf1232f840f3ad7d23fcdaa84d6c66dac24efb198',
privateKey: 'd8b595680851765f38ea5405129244ba3cbad84467d190859f4c8b20c1ff6c75'
})
This gets compiled with tsc into index.js file
"use strict";
exports.__esModule = true;
var ethr_did_1 = require("ethr-did");
var issuer = new ethr_did_1["default"]({
address: '0xf1232f840f3ad7d23fcdaa84d6c66dac24efb198',
privateKey: 'd8b595680851765f38ea5405129244ba3cbad84467d190859f4c8b20c1ff6c75'
});
which results in following error with node index.js
var issuer = new ethr_did_1["default"]({
^
TypeError: ethr_did_1.default is not a constructor
at Object. (/home/kst/sem3/src/index.js:7:14)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
PS. Sorry newbie questions to javascript & typescript

Hmm seems to be some sort of quirk with typescript, try doing it like this
import * as EthrDID from 'ethr-did'

Hi, thanks again, that solved it as well :-)

Hi, trying the other code from the Readme.md file, a few other modifications are needed it seems:
import { Issuer } from 'did-jwt-vc/lib/types'
import * as EthrDID from 'ethr-did'
import { VerifiableCredentialPayload } from 'did-jwt-vc/lib/types'
import {  createVerifiableCredential } from 'did-jwt-vc'
import { createPresentation } from 'did-jwt-vc'
import { PresentationPayload } from 'did-jwt-vc/lib/types'
import { getResolver } from 'ethr-did-resolver'
import { verifyCredential } from 'did-jwt-vc'
Remaining problem is now:
import { Resolver } from 'did-resolver'
const resolver = new Resolver(getResolver())
The interpreter doesn't find the Resolver in did-resolver.
Tried a few alternatives import * as Resolver from 'did-resolver' and import { Resolver } from 'did-resolver/lib/resolve' however without any luck.
best regards

@kst-howest what interpreter are you using?
As far as I know, the examples are in typescript.
Can you provide an example project where these errors occur?

Hi, i'ḿ using visual studio code with tsc on ubuntu
Attaching a test.zip file with 2 files

index.ts file (under src/)
tsconfig.json.

The index.ts file is simply a copy & paste of the readme.md code snippets, with a hello message just for debugging purposes.
br
test.zip

authors: aldigjo kst-howest mirceanis

repo: decentralized-identity/did-jwt-vc


text:
Reject unvotable tickets.

/payfee and /getaddress will now only accept tickets which are immature or live.
Closes #56

Thanks for explaining that Dave, I've added a +1 to accommodate.

repo: decred/vspd

license: ISC


text:
TypeError: request() got an unexpected keyword argument 'follow_redirects'

Describe the bug
TypeError: request() got an unexpected keyword argument 'follow_redirects'
Debug log
TypeError: request() got an unexpected keyword argument 'follow_redirects'
Specify this information

OS: Win 11
environment python 3.9
duckduckgo_search version 3.8.5

show the code where you got this error

from duckduckgo_search import DDGS
with DDGS() as ddgs:
for r in ddgs.text('live free or die', region='wt-wt', safesearch='off', timelimit='y'):
print(r)

I can't reproduce the problem.
Try reinstalling the package.
pip install -I -U duckduckgo_search

I also get the same error using the sample provides in the text() section of the main documentation.
Code:
from duckduckgo_search import DDGS

with DDGS(timeout=20) as ddgs:
    for r in ddgs.text("something you need"):
        print(r)

Output:
TypeError: Client.request() got an unexpected keyword argument 'follow_redirects'
I can confirm that the package is installed and imported.

Thanks for participating.
Please show me the result of this code.
import logging
from duckduckgo_search import DDGS

logging.basicConfig(level=logging.INFO)

with DDGS(timeout=20) as ddgs:
    for r in ddgs.text("aaa"):
        print(r)


text:
[eBPF] Support submitting socket close information

[eBPF] Support submitting socket close information
This PR is for:

Agent

Affected branches

main
v6.4

Checklist

[x] Verified eBPF program runs successfully on linux 3.10.0.
[x] Verified eBPF program runs successfully on linux 4.14.x.
[x] Verified eBPF program runs successfully on linux 4.19.x.
[x] Verified eBPF program runs successfully on linux 5.2.x.

数据测试：

repo: deepflowio/deepflow


text:
Add min/max zoom for image viewer

When viewing images, the zoom level should not be indefinite (as it currently is) and it should limit the zoom level to a given range.

No longer relevant given the changes to image viewing

repo: deepforge-dev/deepforge


text:
Nit: readme edits - directory paths, example run commands

What is the current behavior?

What's happening that seems wrong?

In the readme:
Change directories
Move into the examples project directory for either the prerecorded or the streaming example projects:

cd examples/prerecorded

The structure is currently examples/node-live, examples/node-prerecorded, examples/node-read. There are not prerecorded and streaming example projects.

There isn't a basic command on how to run the examples. I have no JavaScript skills and I google for everything I need. We should put the 101 level commands in the readme too.
If you simply add in node index.js as the command for running the tutorials, that would be wonderful!
Steps to reproduce

To make it faster to diagnose the root problem. Tell us how can we reproduce the bug.

Expected behavior

What would you expect to happen when following the steps above?

Both require minor readme edits.
Please tell us about your environment

We want to make sure the problem isn't specific to your operating system or programming language.

Operating System/Version: Windows 10
Language: [all | TypeScript | Python | PHP | etc]
Browser: Chrome

Other information

Anything else we should know? (e.g. detailed explanation, stack-traces, related issues, suggestions how to fix, links for us to have context, eg. stack overflow, codepen, etc)

Great feedback, thank you!
I love how David has documented the examples on the other SDK, so I may take and use his format

authors: jkroll-deepgram lukeocodes

repo: deepgram/deepgram-js-sdk


text:
chore: update repo

update version to 1.3.5.0-2
Issue: https://github.com/linuxdeepin/developer-center/issues/5731
Log: update repo

/approve

repo: deepin-community/haskell-hashable


text:
How to see a preprocessed image (from translator)?

I want to take a peek on how an image looks like after being preprocessed from a translator
eg:
val translator: Translator<Image, Classifications> = ImageClassificationTranslator.builder()
		.addTransform(Crop(933, 439, 1593, 843))
		.addTransform(CenterCrop(124, 124))
		.addTransform(ToTensor())
		.addTransform(Normalize(floatArrayOf(0.485f, 0.456f, 0.406f), floatArrayOf(0.229f, 0.224f, 0.225f)))
		.optApplySoftmax(true)
		.build()

https://stackoverflow.com/questions/53623472/how-do-i-display-a-single-image-in-pytorch/55196345

@rebelate
DJL uses Image class to represent a image object, it wraps BufferedImage or Bitmap (for Android). Using DJL's built-in pre-processing pipeline, you can convert the image into a NDArray object. You can convert NDArray back to Image if want to display the processed image:
        Path imageFile = Paths.get("my_image.jpg");
        ImageFactory factory = ImageFactory.getInstance();
        Image img = factory.fromFile(imageFile);

        try (NDManager manager = NDManager.newBaseManager()) {
            NDArray array = img.toNDArray(manager);
            Pipeline pipeline = new Pipeline();
            pipeline.add(new Crop(1, 1, 300, 300))
                    .add(new CenterCrop(224, 224))
                    .add(new ToTensor())
                    .add(new Normalize(new float[]{0.485f, 0.456f, 0.406f), new float[]{
                            0.229f, 0.224f, 0.225f
                    });
            NDArray output = pipeline.transform(new NDList(array)).head();
            Image result = factory.fromNDArray(output);

            // You can save your processed image into a file:
            result.save(Files.newOutputStream(Paths.get("output.png")), "png");

            // You can extract Java BufferedImage and display it Jupyter notebook or using AWT
            BufferedImage bufferedImage = (BufferedImage)result.getWrappedImage();
        }

authors: frankfliu rebelate

repo: deepjavalibrary/djl


text:
java.lang.IllegalArgumentException: Unable to get linear index >= 1

Running deeplearning4j examples Convolutional Example hit the following error after Fine Tuning:
Exception in thread "main" java.lang.IllegalArgumentException: Unable to get linear index >= 1
at org.nd4j.linalg.api.ndarray.BaseNDArray.getDouble(BaseNDArray.java:3180)
at org.nd4j.linalg.api.ndarray.BaseNDArray.slice(BaseNDArray.java:2867)
at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:3608)
at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:3609)
at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:3570)
at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:3565)
at org.nd4j.linalg.ops.transforms.Transforms.downSample(Transforms.java:130)
at org.deeplearning4j.nn.layers.convolution.subsampling.SubsamplingLayer.activate(SubsamplingLayer.java:118)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.activationFromPrevLayer(MultiLayerNetwork.java:481)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForward(MultiLayerNetwork.java:501)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.finetune(MultiLayerNetwork.java:1073)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1129)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1156)
at org.deeplearning4j.convolution.ConvolutionalExample.main(ConvolutionalExample.java:95)
-- org.jblas INFO Deleting /var/folders/_m/15fcv4yn3y9dh93shs2lgql80000gn/T/jblas7193021059297454202/libjblas.dylib
-- org.jblas INFO Deleting /var/folders/_m/15fcv4yn3y9dh93shs2lgql80000gn/T/jblas7193021059297454202/libjblas_arch_flavor.dylib
-- org.jblas INFO Deleting /var/folders/_m/15fcv4yn3y9dh93shs2lgql80000gn/T/jblas7193021059297454202

This is fixed in gpudeps.

authors: agibsonccc nyghtowl


text:
"ImportError ... undefined symbol" in the demo.

The notebook in the README.md doesn't work. What I'm missing here? 🤔

You need to install compatible versions of tensorflow and reverb.  For example if you're installing dm-reverb-nightly, you should also be installing tf-nightly.  If you're installing the latest stable version of reverb, I believe you want to use the appropriate major+minor version of tf.
What version of TF and reverb are you using?

Hi @ebrevdo , I merely ran the first two cells of the provided notebook and expected it to work. I managed to install the right versions by changing the command. See #45 for the updated version.

#45 has now been merged so I'll go ahead and close down this issue. Thanks again @uduse for reporting and fixing the issue!

authors: acassirer ebrevdo uduse

repo: deepmind/reverb


text:
Установить длину ответа в ODQA

Какую строчку в конфигах можно изменить, чтобы поменять длину ответа?
В документации найти не удалось.
Присутствует ли такая возможность?

неа там нет такого ответ минимальный всегда
пт, 7 июн. 2019 г. в 12:07, nikolas2223 notifications@github.com:

Какую строчку в конфигах можно изменить, чтобы поменять длину ответа?
В документации найти не удалось.
Присутствует ли такая возможность?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/deepmipt/DeepPavlov/issues/873?email_source=notifications&email_token=ACKUVPXKFPZDTXC6ZUYYAX3PZIQNFA5CNFSM4HVUEPY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYGQTGA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACKUVPTX2MSXQB4PRD3XXXTPZIQNFANCNFSM4HVUEPYQ
.

Да, длина ответа не регулируется.
Но можно найти ответ в исходной статье википедии и извлечь, например, предложение содержащее ответ.

Да, длина ответа не регулируется.
Но можно найти ответ в исходной статье википедии и извлечь, например, предложение содержащее ответ.

А каким образом это можно сделать?

Без изменений кода компонент ODQA не получится.
ODQA состоит из двух основных моделей: ранкер статей википедии и модель поиска ответа.
В конфиге есть logit_ranker который принимает на вход чанки текста и возвращает лучший ответ. Код этой компоненты можно изменить так, чтобы вернуть чанк в котором был найден лучший ответ и его позицию.

authors: fleandr nikolas2223 yurakuratov

repo: deepmipt/DeepPavlov


text:
How to use it with nodejs?

I've been reading a lot about deepstream lately and wanted to use this in our system. We have a python/django based system and found that there's no official client for python yet. The next option for us was nodejs and microservice architecture. I found a few things in the documentation but there was nothing related to emitting events, records or rpc from node. Can someone explain ( or even point me to a resource ) on how to do this?

hey @arvindnrbt, the way deepstream works is that all logic is carried out by the client. This is quite different from most other realtime solutions that require logic to be run within the actual server (such as featherJS, meteor and socketIO).
Heres a link to getting started: https://deepstreamhub.com/tutorials/getting-started/node/

Thanks @yasserf , that link was a good start for me. But what about valve and permissions? How do I set permissions, authentication with the node api? The existing documentation lacks information about these things for the open source version.

Permissions look like they are configured via permissionHandler in the node API. Permissions look like they can be set at start time in the config:
  type: config
  options:
    path: ./permissions.yml

At run time, you can modify the permissions with this: https://deepstreamhub.com/tutorials/guides/valve-realtime/
Full disclosure I have yet to actually start using Deepstream

The example in the link seems to be focusing on DSHub. I am also looking for info on how to use Valve and control dynamic permissions from API (in the node, programatically).
For example, the document says

Valve rules can be edited in the permissions section of the deepstreamHub dashboard.

It does not explain which exact API does the hub then uses to change the permissions in the backend/DB.
If we have to provision similar permissions, and change them at runtime, how to achieve it through API?
@yasserf  any help / pointers are greatly appreciated.

Yes, a simple tutorial on realtime permissions would be great.

Hello! Still a work in progress (finishing touches) but we have been really busy with getting a new version out. Link to documentation is here:
http://deepstream.io-v3.s3-website-us-east-1.amazonaws.com/
I know it has been a year since this was raised, things were put on hold for a short while but we are back in full steam again with a few new releases planned over the next few months.

https://deepstream.io/tutorials/core/permission/valve-dynamic/

authors: KrishnaPG arvindnrbt jekirl yasserf


text:
bug(api): assistant metadata update overrides model

Environment
leapfrog-demo, leapfrogai-api-container
Steps to reproduce

Create an assistant with model set to vllm
Update the assistant's metadata only
ex.

await openai.beta.assistants.update(createdAssistant.id, {
          metadata: {
            ...(createdAssistant.metadata ? createdAssistant.metadata : undefined),
            avatar: getAssistantAvatarUrl(filePath)
          }
        })

The returned updated assistant has its model overridden to llama-cpp-python

When you then try to use that assistant, the backend throws this error:
405: Model llama-cpp-python not found. Currently supported models are ['text-embeddings', 'whisper', 'vllm']

Expected result

Model remains vllm

Actual Result

Model is set to llama-cpp-python

This is probably caused by the default in the pydantic type. Modify inherits from Create and the default for Create is llama-cpp-python. We just need to loosen this up a bit.
https://github.com/defenseunicorns/leapfrogai/blob/a0d9bc0e901309d1387b5909872b67caf086fdce/src/leapfrogai_api/typedef/assistants/assistant_types.py#L33

authors: andrewrisse gphorvath

repo: defenseunicorns/leapfrogai


text:
Support pipeline execution

Lula as a tool in CI/CD will require some modifications to support use as a quality gate.
If we consider a repository that contains a declarative package that deploys to a kubernetes cluster for testing in CI - then we will want to support the ability to validate against that package as deployed using an OSCAL component definition file.
This issue encompasses updates to lula to support CI generically:

Ability to perform a validation in CI given an OSCAL component definition file for the component involved. Assumes a CI pipeline that has deployed a Kubernetes cluster and the declarative package already.

Proposed Changes
During validation lula will need the ability to establish a threshold for pass/fail and supporting auditing workflows.
Current Thoughts
Establish a --threshold flag that can use an existing assessment-result as a baseline for comparison when conducting validations. We'll need logic that can compare two assessments and determine when a newer assessment is failing a previously satisfied implemented-requirement. This would mean that the validate command can exit with an exit status other than 0 to signify failure.
OR
Perform the comparison of multiple assessments as a separate command - keeping the validate command strictly for generation of the assessment. This would mean that CI processes would need to invoke both a validate and a compare
Future Thoughts
Once we have a defined model for how this works and releases from which to use - I'd like to see a github action built to standardize the execution in GitHub workflows.
Open to other considerations.

Happy to work and collab on this
Working with customers using GitLab CI/CD, which also has considerations with our product offerings. We can aim to help to work on that aspect of things if that fits in with what you're trying to do.

If we went with the --threshold route would we still want to have a compare command? I am thinking about use cases where you'd want to compare assessment-results maybe in but also outside of CI.
Thinking about Dev experience.

Agreed!
Thinking through the potential compare implementation - is this specific to Lula or valuable to the greater OSCAL community?
Given it is an assessment-results file - I'd say there is broader applicability for use. We'll have to establish some guardrails around what models it is that we can compare when included in go-oscal. Generically there will be a desire to see many different documents "Compared" for historical reference.
IE:

Component Definitions
Assessment Results
Assessment Plans
POAMs
etc

Additional criteria for the compare logic: When a control has been removed. IE an implemented-requirement has been removed from the component definition and the new assessment-results-*.yaml file no longer contains a finding for a previously validated control.

Blocked by https://github.com/defenseunicorns/go-oscal/issues/70

I agree this is a good idea, I thought even converting the results to JUnit XML format might be cool too.  One thought I had, is how will we handle the eventual consistency issue of Kubernetes?  Say we deploy a new set of changes, does the pipeline sit and wait until the cluster gets to a steady state (akin to Zarf), and then run it's validations?

That's a really good question @dgershman . eventual consistency is why there is a reduced priority around writing logic for supporting static manifest validation. Still an option but not highest priority.
To that end - I wonder if we can make the assumption that the developer knows the intended eventual state and we could add a command to wait for a specific state before running validation in a pipeline?

Yes, something like that I think will suffice.

authors: CloudBeard brandtkeller dgershman gscallon

repo: defenseunicorns/lula


text:
Internalize zarf tools wait-for

Is your feature request related to a problem? Please describe
We should internalize the logic of the wait actions to that it no longer needs to shell out to Zarf.
Describe the solution you'd like

Given I do not have Zarf on my path
When I run a Maru task containing a wait action (either cluster or network)
Then the wait action finishes successfully

Describe alternatives you've considered
We could not do this, or introduce another key to place this logic under but it should be relatively easy to match the current wait syntax while maintaining functionality.
Additional context
There is already a PR for some of this in Zarf: https://github.com/defenseunicorns/zarf/pull/2497/files

Related to https://github.com/defenseunicorns/maru-runner/issues/102 which I plan to knockout first.

repo: defenseunicorns/maru-runner


text:
Add more example capabilities that include the creation of resources

As a user of this repo I found it difficult to understand how I would implement more complex capabilities like the creation of resources. I believe if there were more examples of capabilities that included a wider scope of options it would be incredibly helpful as I work with Pepr.

in progress!!

@jeff-mccoy is planning an API for this, We have examples for istio, keycloak and authservice. I'm working on an example that properly show how to do tracing, logging, exceptions and metrics.

repo: defenseunicorns/pepr


text:
Add custom events to replace ajax callbacks

Since ajax callbacks can't be persisted into the browser history, we should prefer custom events instead.
This adds events for pjax:beforeSend, pjax:complete, pjax:error and pjax:success.

@defunkt Do these deprecation changes seem reasonable?

Yeah, this looks good. Maybe console.warn if it exists?

authors: defunkt josh

repo: defunkt/jquery-pjax


text:
Make Kaiser work on ARM macs

Bunch of upgrades to bring kaiser into the new century. Kaiser had encountered some strange difficulties including

not working chrome testing on arm (strange crashing every once in a while)
not starting some applications mysteriously (because they cant start on ARM)
mysterious failures with new system ruby

hence this PR:
Update to 3.0
Thanks to my nice ARM pc now I got everything working real nice
Make the chrome work for both ARM and AMD64 procs

@yunshine can you help us review this PR, please?

authors: davidsiaw degikko

repo: degica/kaiser


text:
Help output (-h), if gost-3411-2012 is run without arguments

Hello!
If gost-3411-2012 is run without arguments -- ./gost-3411-2012 -- it unsuccessfully waits for some undefined user's activity, but seems to be more logical to output help info in such case.
So, idea is to make ./gost-3411-2012 is equal to ./gost-3411-2012 -h

The idea to wait for input is similar to how the other digests behave - md5, sha512 and others.  Also you may missed that this behaviour is clearly described on streebog's help page:
$ ./gost3411-2012 -h
The program outputs GOST R 34.11-2012 hash digest in hexadecimal format.
Each file listed on the command line is processed and hash is printed
for each one.  Stdin is read as input when executed without arguments.

authors: MikhailKasimov degtyarevalexey

repo: degtyarevalexey/streebog


text:
Build error in Xcode v16.0 beta 5

Question
Anyone else have issues building in Xcode 16 beta 5?
Additional Context
Beta 4 was OK. With beta 5, projects with CodableCSV package have build errors.

System

OS: macOS 14.6.1
CodableCSV: 0.6.7

https://github.com/CrunchyBagel/CodableCSV/commit/50dfdca13f7d25d1c685251477c56de69fd7b71d

CrunchyBagel@50dfdca

even specifying
pod 'CodableCSV', :git => 'https://github.com/dehesa/CodableCSV.git', :branch => 'develop', :commit => '50dfdca'
still brings an error for watchOS target

I filed FB14824841 with Apple on this one, Swift itself is crashing during compile
1.	Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)
2.	Compiling with effective version 5.10
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for CodableCSV)
4.	While running pass #1627 SILModuleTransform "MandatorySILLinker".
5.	While deserializing SIL function "NSDecimalString"
6.	*** DESERIALIZATION FAILURE ***
*** If any module named here was modified in the SDK, please delete the ***
*** new swiftmodule files from the SDK and keep only swiftinterfaces.   ***
module 'Foundation', builder version '6.0(5.10)/Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)', built from swiftinterface, resilient, loaded from '/Applications/Xcode-16.0.0-Beta.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/18.0/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftmodule'
SILFunction type mismatch for 'NSDecimalString': '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>) -> @autoreleased Optional<NSString>' != '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>) -> @autoreleased NSString'

Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x00000001064d9194 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x00000001064d73e8 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x00000001064d9760 SignalHandler(int) + 292
3  libsystem_platform.dylib 0x000000019cf22584 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000019cef1c20 pthread_kill + 288
5  libsystem_c.dylib        0x000000019cdfea30 abort + 180
6  swift-frontend           0x0000000101607658 swift::ModuleFileSharedCore::outputDiagnosticInfo(llvm::raw_ostream&) const + 0
7  swift-frontend           0x000000010159bab4 swift::ModuleFile::getSourceLoc() const + 0
8  swift-frontend           0x00000001015e3ce8 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 1916
9  swift-frontend           0x00000001015f29d8 swift::SILDeserializer::lookupSILFunction(swift::SILFunction*, bool) + 452
10 swift-frontend           0x00000001016b4c24 swift::SILLinkerVisitor::maybeAddFunctionToWorklist(swift::SILFunction*, swift::SerializedKind_t) + 360
11 swift-frontend           0x00000001016b4e44 swift::SILLinkerVisitor::process() + 476
12 swift-frontend           0x000000010172fd0c swift::SILModule::linkFunction(swift::SILFunction*, swift::SILModule::LinkingMode) + 120
13 swift-frontend           0x0000000101deb8f0 (anonymous namespace)::SILLinker::run() + 64
14 swift-frontend           0x0000000101cc3a4c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 13436
15 swift-frontend           0x0000000101cfc9dc swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
16 swift-frontend           0x0000000101ce0340 swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 412
17 swift-frontend           0x0000000101ce2abc swift::runSILDiagnosticPasses(swift::SILModule&) + 612
18 swift-frontend           0x00000001012602cc swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 84
19 swift-frontend           0x0000000100e8c268 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1376
20 swift-frontend           0x0000000100e8b474 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 984
21 swift-frontend           0x0000000100e8e728 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1680
22 swift-frontend           0x0000000100e8d458 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
23 swift-frontend           0x0000000100e1450c swift::mainEntry(int, char const**) + 3680
24 dyld                     0x000000019cb67154 start + 2476

For the record, same happens with Xcode 16.1 beta

This issue is now acknowledged in Xcode 16 beta 7 notes:
https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes

"your app may crash on launch on platforms earlier than the latest versions of the respective OS with errors indicating missing symbols in NSDecimal"

At the time of writing this comment, this is still an issue on the Xcode 16 RC.
@dehesa any updates here on a workaround? I don't feel confident that apple is going to address this on their end before the public release of iOS 18.

Seems to be also present in Xcode 16.1 beta.

Xcode 16 can be downloaded from the App Store.
CoodableCSV compiles and works for me with Xcode 16 from the App Store.

authors: GerdC HendX OIO-WPK alex-taffe iago849 kavoye mnorth719 orolhawion

repo: dehesa/CodableCSV