react-bootstrap-table2-paginator not working.

Hello,
I get the below error when I try to add pagination functionality to the bootstrap table. Here's what I have -
import * as React from 'react';
import { Component } from 'react';
import BootstrapTable from "react-bootstrap-table-next";
import paginationFactory from 'react-bootstrap-table2-paginator';

export class Queues extends Component<{}, IQueueState> {
	constructor() {
		super({});
		this.state = {
			queues: [{
					"id": "1",
					"name": "Book",
					"price": "18"
				},
				{
					"id": "2",
					"name": "Mobile",
					"price": "400"
				}], loading: true
		};
	}

	public render() {
		const columns = [
			{
				dataField: 'id',
				text: 'Product ID'
			},
			{
				dataField: 'name',
				text: 'Product Name'
			}, {
				dataField: 'price',
				text: 'Product Price'
			}
		];
		return

With Pagination

                               <BootstrapTable keyField='id'
			                       data={this.state.queues}
			                       columns={columns}
			                       pagination={paginationFactory()} />

;
	}

And the dependencies that I have currently  -
		"react": "^16.4.1",
		"react-bootstrap-table-next": "^0.1.12",
		"react-bootstrap-table2-paginator": "^0.1.4",
		"react-dom": "^16.4.1"

Without pagination property the table renders properly but I get the below error when I add paginator -
Uncaught Error: n.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
    at e.exports (vendor.js?v=gWN0dwqp0_yY627VZPL5GJPbGaLm6i9oU_upMHr2BP4:1)
    at l._renderValidatedComponent (vendor.js?v=gWN0dwqp0_yY627VZPL5GJPbGaLm6i9oU_upMHr2BP4:58)
    at l.performInitialMount (vendor.js?v=gWN0dwqp0_yY627VZPL5GJPbGaLm6i9oU_upMHr2BP4:58)

Any help here is much appreciated!

@Sweravi would you please help me to check if there are multiple React was install in your node_modules?  thanks

You can check this example, it work well.

That's the exact example I have followed. Also I have just one version of react which is 16.4.1

Oh, I notice you use typescript?  is it possible to downgrade to<EMAIL_ADDRESS>and try it again, although I can't believe the problem is about react version lol

I had the same issue, I installed React and React-Dom in their 16.4.1 version and updated dependencies and all worked:
npm i<EMAIL_ADDRESS>--save
npm i<EMAIL_ADDRESS>--save
npm update

@Genarito updating dependencies worked like a charm  Thanks for the fix appreciate it.


ToJson has some bug!

src "_GCV_0_A": "24",
dst  "_GCV_0d\u0000": "24",
I don't know what happened！
i used JsonDataObjects.ToJson()  to save to Mongo
Sometimes this kind of error occurs
some string end error whit key or value

If you're taking the trouble to report an issue, at least supply all relevant details.

I can't reproduce this with the following code:
procedure TestTJsonObject.TestIssue71;
var
  Json: TJsonObject;
  S: string;
begin
  Json := TJsonObject.Parse('{ "_GCV_0_A": "24" }') as TJsonObject;
  try
    CheckEquals(
      '{' + JsonSerializationConfig.LineBreak +
      JsonSerializationConfig.IndentChar + '"_GCV_0_A": "24"' + JsonSerializationConfig.LineBreak +
      '}' + JsonSerializationConfig.LineBreak, Json.ToJSON(False));
  finally
    Json.Free;
  end;
end;

You could try to disable one or both of the following defines:

USE_LAST_NAME_STRING_LITERAL_CACHE
USE_FAST_STRASG_FOR_INTERNAL_STRINGS

Maybe something is fishy with those optimizations, as the string seems to be modified. Or there is something else overwriting the memory outside of JsonDataObjects, that possibility always exists.

i try it,but do not work;
i have only one line use this
UserItem.Custom['GCV'+nAbilSite.ToString+'_A']:=nValue.ToString;
property Custom[const v: string]: String read GetStringValue write SetStringValue;
procedure TUserItem.SetStringValue(const v: string; Value: string);
begin
if v.Length>0 then
Values.O['Custom'].S[v] := Value;
end;
some time
UserItem.values.tojson  has this error;
maybe key empty
maybe like _GCV_0d\u0000
i assign this Custom Value only this one line.

some places
i used
useritem.values  = useritem.values.clone

like this
HumData.O['BagItems'].O[i.ToString] :=
pTUserItem(m_ItemList.Items[i]).Values.Clone;

i used delphi 11.0

How about providing a project that reproduces the bug, so some others can test it for you. Leaving shouty comments on the ticket is of no use. Thanks.

can't reproduces the bug by myself..
it is occur in production environment


Support for Mongodb / Mongoid

Are you guys planning to provide support for Mongodb / Mongoid?

+1

Yeah, would be great if the gem supports mongoid.

+1, Yes would be great.

Here is an attempt #502 by @ThibaudD.

+1

gem 'devise_token_auth',          git: 'https://github.com/BunHouth/devise_token_auth.git', branch: 'mongoid'
gem 'mongoid-locker', '~> 0.3.4'

Very interesting @kirykr .
Looks like there's an open PR, but it's related to @bonhouth?
https://github.com/lynndylanhurley/devise_token_auth/pull/502
I Tweeted at @bonhouth to see if he'd consider PRing his approach, if it works that well.
https://twitter.com/zachfeldman/status/917422457572773895


Node 10 compatibility?

The nodes seem to hang when using node v10 but work great on node v8..... Are there any plans to migrate them?.

the library itself is tested countinously on the latest version of node.js ( current build passes with node 11.5 ) ... though there are currently no test for node-red yet... i'll have to check. But i don't see why this would not work on node 10...

mmh... just tested with node 11.14, everything works well... have you changed your node version recently? you might have to npm rebuild ...

Will try again. I'm using the official node Red docker with the v10 tag. It worked for a couple of devices then became unresponsive.
Using USB serial device pass through.
Thanks for looking at it!

mmhh... could be a memory problem. still early beta ;-) i use a lot of event listeners and i'm not sure they are all removed properly... can you test memory consumption in your setup while it becomes unresponsive?


Request for training code

Hi, would you mind posting the training code for PiT?

Hi
We used DeiT code to train PiT models.
So, you can use it to reproduce PiT results.
Because our training code is exactly the same as DeiT code, we will not post it.

Hi, I am currently trying to recreate PiT-xs under the DeiT training configuration, but the test accuracy increases very slowly during training (at epoch 74, PiT-xs top 1 accuracy is only 25.2%), I am trying to find out if there are any mistakes in my training configuration.
During training, the training hyperparameters I used are: epochs=300, batch size=1024, optimizer=adamp, learning rate=0.001, learning rate decay=cosine, weight decay=0.05, warmup epochs=5, label smoothing epsilon=0.1, no dropout, stochastic depth=0.1, no repeated aug, no gradient clipping, rand augment=9/0.5, mixup prob=0.8, cutmix prob=1.0, erasing prob=0.25. For the model, I directly used the code given in this GitHub repository.
I am wondering if there are any deviations between the hyperparameters I used and the hyperparameters you used when training PiT-xs under DeiT training configurations? Thank you!

Hi
Our training code is based on this commit https://github.com/facebookresearch/deit/tree/ab5715372db8c6cad5740714b2216d55aeae052e
If you use the in this repo not the latest timm, it is based on timm==0.3.4.
I'm not sure it is still compatible with latest timm version.
We put the following arguments to timm code with 4 node on 4 V100 machine.
no-repeated-aug:
output_dir: checkpoints
weight-decay: 0.05
lr: 5.00E-04
opt: adamp
batch-size: 256
input-size: 224

Some args are overlapped with the default args of DeiT. But, we just put it for clearity.
Please note that timm's batch-size means batch-size per GPU.
So, it is 256 batch x 4 GPU = 1024 batch.
Also, deit codebase automatically changes the learning rate.
https://github.com/facebookresearch/deit/blob/806fb71d37fff07ad6c0fad68d3c8c26683808b6/main.py#L304
So, you don't need to change it for large-batch training.
I don't know what makes the bad performance.
I think the learning rate or the batch-size is a strong suspect for bad performance.
I hope you to success reproducing the performance.

Hi, I met the same question. Could u please tell me how to train pit by using Deit training code? Thank u!

@guguguzi
Hi
You can train PiT with DeiT training code https://github.com/facebookresearch/deit/blob/main/main.py
The command is the same as DeiT. https://github.com/facebookresearch/deit#training
Just change the model name to PiT.
For example,
python -m torch.distributed.launch --nproc_per_node=4 --use_env main.py --model pit_s_224 --batch-size 256 --data-path /path/to/imagenet

If you want to use exactly the same setting then add --no-repeated-aug --opt adamp
python -m torch.distributed.launch --nproc_per_node=4 --use_env main.py --model pit_s_224 --batch-size 256 --data-path /path/to/imagenet --no-repeated-aug --opt adamp

Since timm includes PiT and AdamP, you don't need to install it.

@guguguzi Hi
You can train PiT with DeiT training code https://github.com/facebookresearch/deit/blob/main/main.py The command is the same as DeiT. https://github.com/facebookresearch/deit#training Just change the model name to PiT.
For example,
python -m torch.distributed.launch --nproc_per_node=4 --use_env main.py --model pit_s_224 --batch-size 256 --data-path /path/to/imagenet

If you want to use exactly the same setting then add --no-repeated-aug --opt adamp
python -m torch.distributed.launch --nproc_per_node=4 --use_env main.py --model pit_s_224 --batch-size 256 --data-path /path/to/imagenet --no-repeated-aug --opt adamp

Since timm includes PiT and AdamP, you don't need to install it.

Thanks for your reply! It will help me so much.


Add line on how to build with CMake

I figured this might be of help to contributors used to this tool.

Thanks!


Would be nice to have legacy support for old versions of jquery

I'm guessing that this probably isn't going to be a popular request, as most people will be running up-to-date versions of jQuery.
But I'm having trouble finding well performing checkbox tree's that will run ok in jQuery 1.3. We're stuck on 1.3 for compatibility reasons. :-(
This might be too much to ask, but it would be cool to have a branch the supports 1.3.
Though I must admit, as soon as we can upgrade to 1.6 we will, but I wonder how many people are stuck on old versions of jquery.
So I suppose it depends on how much work it'll be to create a backwards compatible version?

Came across this which is interesting http://blog.builtwith.com/2011/10/31/jquery-version-and-usage-report/
Shows there are quite a few unlucky people like me having to use old versions of jQuery. However those stats aren't going to be the most accurate indicator, as it doesn't say how many of those sites are under active development.

Sure, I can schedule this. The problem is that some functionality (expecially about checkboxes) could be lost.

This was a bit less quick response! :-D

Cool, thanks. :-)


Backup question and restore error

I have orientdb 2.0.5 running in server mode, being accessed remotely by a web server. I want to take a manual backup and restore it on a different server.
Per online documentation, the backup command does not work via remote connection. I have to ssh into the db server, open a orientdb console, and connect via plocal. Here we go...
# /usr/bin/orientdb-community-2.0.5/bin/console.sh

OrientDB console v.2.0.5 (build UNKNOWN@r; 2015-03-12 22:59:10+0000) www.orientechnologies.com
Type 'help' to display all the supported commands.
Installing extensions for GREMLIN language v.2.6.0

orientdb> connect plocal:/data/orientdb/mydb admin admin

Connecting to database [plocal:/data/orientdb/mydb] with user 'admin'...
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/data/orientdb/mydb' with mode=rw

Error: com.orientechnologies.orient.core.exception.OSerializationException: Cannot load database's configuration. The database seems to be corrupted.

Error: com.orientechnologies.common.concur.lock.OLockException: File '/data/orientdb/mydb/database.ocf' is locked by another process, maybe the database is in use by another process. Use the remote mode with a OrientDB server to allow multiple access to the same database.

It seems like in order to connect via plocal, orientdb must not be running in server mode. In order to continue I must cut off my web users from the db altogether. Here we go...
# /etc/init.d/orientdb.sh stop
Stopping OrientDB server daemon...
# /usr/bin/orientdb-community-2.0.5/bin/console.sh

OrientDB console v.2.0.5 (build UNKNOWN@r; 2015-03-12 22:59:10+0000) www.orientechnologies.com
Type 'help' to display all the supported commands.
Installing extensions for GREMLIN language v.2.6.0

orientdb> connect plocal:/data/orientdb/mydb admin admin

Connecting to database [plocal:/data/orientdb/mydb] with user 'admin'...OK
orientdb {db=mydb}> backup database orientdb-backup-mydb.zip

This command works. The backup completes in 15 minutes and now I can exit from the console, and start server mode to restore access to my end users...
orientdb {db=mydb}> exit

# /etc/init.d/orientdb.sh start
Starting OrientDB server daemon...

Question 1: Is there a way I can do a manual backup without causing 15 minutes of system downtime for end-users?
Next issue... Now I have a .zip file backup and I copy it to a new machine with orientdb 2.0.5 installed. First I create a new local plocal
orientdb> create database plocal:mydb

Creating database [plocal:mydb] using the storage type [plocal]...
Database created successfully.

Current database is: plocal:mydb
orientdb {db=mydb}> restore database orientdb-backup-mydb.zip

Restoring database database orientdb-backup-mydb.zip...
- Uncompressing file OUser.name.sbt...
Error: java.io.IOException: The process cannot access the file because another process has locked a portion of the file

orientdb {db=mydb}>

Question 2: What am I doing wrong? The only process locking my db is me. If I exit my console now I can delete the data directory entirely and nothing stops me - indicating no other process is locking that file/dir.

This is a question, not an issue. Please post it on StackOverflow by using the “orientdb” tag:
http://stackoverflow.com/search?q=orientdb
Or in the Community Group where more than 3,000 users can answer to your question:
https://groups.google.com/forum/#!forum/orient-database


Sytest: Add 90jira/SYN-328 test

This adds 1 sytest:

./tests/90jira/SYN-328.pl:multi_test "Typing notifications don't leak",

@ShadowJonathan it seems like there's a merge conflict? Otherwise LGTM

Many thanks!


addition features

#2
added ship of length 2

Kindly use git pull first and then work with the Updated code.


adjust scripts to parse data from ioos erddap

All of the metrics presented in this site should also be served from https://erddap.ioos.us/erddap/index.html
Update website scripts to pull data from there.

Data to host on ERDDAP:

[ ] ATN GTS metrics
[ ] Link to the regional GTS data for quarterly hyperlinks on website. See this line.
[ ] Add link to https://erddap.ioos.us/erddap/index.html on the home page


[MXNET-531] NeuralStyle Example for Scala

Description
This is the example written in new API in Scala. It include the following three tests:

boost inference
boost training
neural style
@yzhliu @nswamy @andrewfayres

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Add README
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
[x] Code is well-documented:
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

CUDA memory leaks... It seemed that the single GPU cannot handle all the tests due to the memory leaks.

It does not change the algorithm, right?

@yzhliu , it did not change the algorithm. I have done some steps to use new APIs as well as simplifing some files.

Add Download changes here: https://github.com/apache/incubator-mxnet/pull/11866

@yzhliu @nswamy Can you review this PR and approve it if ready? tracking this one for MXNet 1.3 release. Thanks!

@lanking520 resolve conflicts please


Excel download is not working properly in Ipad pro  12.8 Safari(Sheetjs Community Edition)

Hi Team,
I am trying to use the sheetjs for making the excel download from client side. The download is working fine in chrome and firefox. But, when trying to run the download from Safari (Ipad pro  12.8) it is giving error like "Safari can not open the page. The error was the operation can not be completed. The error was "Webkitblob resource error 1". I was intially using the code
`function Workbook() {
if (!(this instanceof Workbook)) {
return new Workbook();
} else {
this.SheetNames = [];
this.Sheets = {};
return true;
}
}
export const download = (url, name) => {
const a = document.createElement('a');
a.href = url;
a.download = name;
a.click();
window.URL.revokeObjectURL(url);
};
function s2ab(s) {
const buf = new ArrayBuffer(s.length);
const view = new Uint8Array(buf);
for (let i = 0; i !== s.length; ++i) {
view[i] = s.charCodeAt(i) & 0xff;
}
return buf;
}
// This function is used for crerating the excel sheet based of the data array and excel name. This is the using the sheetJs(xlsx) npm module
const exportToExcel = (data, ExcelName) => {
import('xlsx').then(XLSX => {
const wb = new Workbook();
const ws = XLSX.utils.json_to_sheet(data);
wb.SheetNames.push('sheet');
wb.Sheets['sheet'] = ws;
const wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: true, type: 'binary'});
const url = window.URL.createObjectURL(new Blob([s2ab(wbout)], {type: 'application/octet-stream'}));
download(url, ${ExcelName}.xlsx);
});
};
export default exportToExcel;`.
Then as mentioned in the post https://stackoverflow.com/questions/54339607/mobile-safari-download-issue-the-operation-couldn-t-be-completed-webkitblobr i tried to include a timeout for the revokeObjectURL.
export const download = (url, name) => {   const a = document.createElement('a');   a.href = url;   a.download = name;   a.click();   setTimeout(() => {     window.URL.revokeObjectURL(url);   }, 1000); };
But, now getting the file as "Unknown". Can you please suggest the safari is currently supported and  how the download issue can be fixed?

iOS downloads are notoriously tricky.  You can try changing the MIME type to application/vnd.ms-excel:
const url = window.URL.createObjectURL(new Blob([s2ab(wbout)], {type: 'application/vnd.ms-excel'}));

But overall there are known issues with iOS Safari https://github.com/eligrey/FileSaver.js/issues/12 is a great summary of the problems.


scheduler: deadlock

While testing a simple refactor I noticed the scheduler's -heartbeat appears broken.  Problem occurs both on my fork/branch for the refactor and on 01org/ciao's master.  Symptom is heartbeat text stops outputting after a while.  With -logtostderr and -v=2 also set, status updates and connects/disconnects appear to also stop.  Could be a scheduler locking issue, or possibly ssntp.  Debugging...

commit a17d38a2 looks to have introduced a deadlock.  I'm definitely adding a comment on the locks for the maps, and testing the simple fix.  While inspecting, I think I also see a potential additional data race.  I'll submit a PR with a set of fixes.

Pull #122 addresses the issue.


[WIP] Adds DisplayItem to items on Work

What is this PR trying to achieve?
Preparing to add items to the Catalogue API post ingestion, in order to display items from the ontology to users.
Who is this change for?
💻  & 📚
Have the following been considered/are they needed?

[ ] Deployed new versions

For https://github.com/wellcometrust/platform-api/issues/572

Depends https://github.com/wellcometrust/platform-api/pull/828

For https://github.com/wellcometrust/platform-api/issues/572


Mirroring of camera is not working getting java.lang.NullPointerException

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: WIndows
scrcpy version: [e.g. 1.12.1]
scrcpy v2.2
Dependencies (compiled / linked):
- SDL: 2.28.4 / 2.28.4
- libavcodec: 60.3.100 / 60.3.100
- libavformat: 60.3.100 / 60.3.100
- libavutil: 58.2.100 / 58.2.100
- libusb: - / 1.0.26
installation method: unzipped the window release, copy all files to the path.
device model: Nothing Phone 2
Android version: 13

Describe the bug
I've attempted to use USB to mirror the camera on my smartphone to the Windows 11 laptop.
scrcpy --video-source=camera
Regretfully, after running the command, I am receiving the given error.
The command scrcpy --list-cameras also outputs the same error.
scrcpy v2.2 <https://github.com/Genymobile/scrcpy>
INFO: Camera video source: control disabled
INFO: Camera video source: microphone audio source selected
INFO: ADB device found:
INFO:     -->   (usb)              a70a6736            device  AIN065
C:\Tools\bin\scrcpy-server: 1 file pushed, 0 skipped. 72.6 MB/s (64363 bytes in 0.001s)
[server] INFO: Device: [Nothing] Nothing AIN065 (Android 13)
[server] ERROR: Exception on thread Thread[video,5,main]
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
        at android.hardware.camera2.CameraManager$CameraManagerGlobal.onStatusChangedLocked(CameraManager.java:2252)
        at android.hardware.camera2.CameraManager$CameraManagerGlobal.connectCameraServiceLocked(CameraManager.java:1613)
        at android.hardware.camera2.CameraManager$CameraManagerGlobal.getCameraIdList(CameraManager.java:1846)
        at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:220)
        at com.genymobile.scrcpy.CameraCapture.selectCamera(CameraCapture.java:99)
        at com.genymobile.scrcpy.CameraCapture.init(CameraCapture.java:75)
        at com.genymobile.scrcpy.SurfaceEncoder.streamScreen(SurfaceEncoder.java:55)
        at com.genymobile.scrcpy.SurfaceEncoder.lambda$start$0$com-genymobile-scrcpy-SurfaceEncoder(SurfaceEncoder.java:253)
        at com.genymobile.scrcpy.SurfaceEncoder$$ExternalSyntheticLambda0.run(Unknown Source:4)
        at java.lang.Thread.run(Thread.java:1012)
INFO: Renderer: direct3d
ERROR: Demuxer 'video': stream disabled due to connection error
ERROR: Demuxer 'audio': stream disabled due to connection error
ERROR: Demuxer error

Please do not post screenshots of your terminal, just post the content as text instead.

#4392

It seems that my search for issues on Github wasn't very successful. Thank you, the scrcpy-server build functions perfectly for me.


Tooltip time not working

Tooltip time not working in ie11/window 7
Português Brasil:
A Dica da ferramenta não funciona usando iframe no ie11, fiz testes no chrome, opera, firefox e não tive nenhum problema.
Ao mover o mouse sobre a barra de progresso o pre view time fica totalmente a direta da barra mas o tempo continua normal.
Até então não sei de onde vem o problema, acho que o problema esta vindo de pageXOffset mas não tenho como verificar.

Please keep it in English (you seem to know enough English to use online translation and verify later).

I think it's a bug!
when I enter full screen the browser read the progress bar with 6px wide.
http://www.christophercurrie.com/technology/2014/03/20/internet-explorer-11-fullscreen-bug.html

Translated:

The tooltip does not work using iframe in ie11, I did tests in chrome, opera, firefox and had no problem.
By moving the mouse over the progress bar the pre-view time is totally in the direct bar but the time remains normal.
Until then I do not know where the problem comes from, I think the problem is coming from pageXOffset but I can not verify.

Will take a look.

Closing, since this cannot be reproduced with the given instructions. Both the tooltip time (since #958) and position works in IE11, with or without fullscreen.


[FEATURE]: Allow to specify relations in conditions

Describe what you want
What I want
I want drizzle to pick up relations from conditions (simple blog models: user has many posts). For example:
db.select()
  .from(posts)
  .where(and(
     {
        with: { users: true },
        condition: sql`users.isAuthor = true`
     },
     eq(posts.id, 1)
   ))

This should be interpreted by drizzle in the same way as this query:
db.select()
  .from(posts)
  .innerJoin(users, ...)
  .where(and(
     sql`users.isAuthor = true`,
     eq(posts.id, 1)
   ))

Basically, I'd like to specify joins/relations inside conditions.
Why I need this
This opens extension point for other libraries. I'm an author of casl and got several requests to add support for drizzle (similar to what I did for Prisma). So, I'd like to create accessibleBy helper which goes over DSL specified rules and generate SQL query that will restrict business query from returning forbidden records from db. For example, to return all accessible posts from  specific author:
db.select()
  .from(posts)
  .where(and(
     accessibleBy(ability).ofType(users), // automatically generated conditions based on permissions of the currently logged in user
     eq(posts.authorId, 1) // business conditions
   ))

Another use case is to build a helper that will auto-join relations based on the provided query:
db.select()
  .from(posts)
  .where(matches(posts, { // matches is a custom helper that may be provided by some 3rd party library
      'users.email': { startsWith: 'john.doe@' },
      isPublic: true
  }))

This is mixing two different APIs. The team aims to keep db.select very SQL-like while db.query is where all (or at least most) of the abstractions provided by Drizzle will live in.

the actual feature request is about point of extension and not about actual implementation of shown examples.
For example, the current implementation of drizzle where clause is not type safe.  You can pass any where clause in query:
db.select().from(users).where(eq(posts.title, 'test'))

Having an extension point, you could allow plugin developers to improve it.
How would you recommend to implement something like this?

You can create your own abstractions using the sql operator. Drizzle is flexible in the way you build your queries, you can wrap the whole query in a function, class method, or create specific utility functions with sql to suit your and/or your teams needs.
Introducing this would be quite a lot of effort and regardless if this was implemented or not, it would still be best practice to write tests for your database queries, meaning that you'd catch those mistakes there anyways. In other words, the effort to create and then maintain this functionality is not worth it.

Well, I see your point. Thank you
Obviously testing is a good cure but it’s much better if system validates itself as soon as possible. Otherwise what is the point to use type system at the end? (rhetorical)

I definitely understand what you mean. There is an issue that is more likely to be worked on at some point (no ETA on it though) that suggests a possible way of catching small mistakes like the one in the example you provided. See #1695.


Support BIP-44 (m/44'/2'/0'/0/n derivation path) on litecoin

Upgrade litecoin derivation from multibit (widely deprecated) to bip-44 for litecoin.

Pubkey/receive is completed and tested.
Send logic is added but currently untested. Once I can verify, I will tag PR.


Support reshape/concatenate/broadcast on PRNGKeyArrays.

PRNGKeyArrays (which are currently behind the enable_custom_prng flag) do not support any jnp operations. This makes sense for operations which act on the value of a key (we shouldn't support operations like key0 + key1), but we want to keep supporting operations which are agnostic about the value of a key  (eg. a broadcast).
This PR adds a way to overload jnp.reshape, jnp.concatenate and jnp.broadcast, then overloads them for PRNGKeyArrays. The claim is that overloading these three operations is sufficient to support most jnp functions users care about.
Given we support  reshape, concatenate and broadcast, there are some jnp functions we get for free (eg. tile), but there are some which are implemented in terms of lax primitives like lax.expand_dims instead. The motivation for this is described in https://github.com/google/jax/pull/3217 (preserve the notion of axis identity for reshapes which add/remove singleton dimensions)
I see two options to support these functions:

overload expand_dims and squeeze for PRNGKeyArrays
rewrite jnp.expand_dims/squeeze to use reshape/broadcast instead

Happy to discuss what operations should be supported here, and how best to go about it :)

For completeness, here's an enumeration of jnp functions which we could support for PRNGKeyArrays, and what needs to be overloaded to support them.
I see 5 categories of jnp functions, in terms of the base ops they are implemented with:

operations which are implemented in terms of reshape/concatenate/broadcast, and we get for free (eg. append)
operations which use expand_dims/squeeze, but could be implemented with reshapes (eg. stack)
operations which use indexing (which we probably don't want to support?) (eg. delete)
operations which create/cast to arrays (should we support jnp.array(PRNGKeyArray)?)
transposes (shuffling of elements)

(Incomplete) list of jnp operations which we could support for PRNGKeyArrays and their categories (see above):

jnp op
implemented with..
category

atleast_1d
reshape+array
4

atleast_2d
expand_dims+array
4

append(arr, values[, axis])
concatenate
1

array(object[, dtype, copy, order, ndmin, …])
array
4

array_split(ary, indices_or_sections[, axis])
split=slice
3

asarray(a[, dtype, order])
array
4

broadcast_arrays(*args)
broadcast_to
1

broadcast_to(arr, shape)
broadcast
1

choose(a, choices[, out, mode])
broadcast+index
3

compress(condition, a[, axis, out])
index
3

concatenate(arrays[, axis])
concatenate
1

delete(arr, obj[, axis])
ravel+index
3

empty_like(a[, dtype, shape])
zeros_like
4

expand_dims(a, axis)
expand_dims (could be broadcast/reshape?)
2

flip(m[, axis])
lax.rev
5

fliplr(m)
flip=rev
5

flipud(m)
flip=rev
5

hsplit(ary, indices_or_sections)
split=slice
3

hstack(tup)
concatenate+atleast_1dim
2

insert(arr, obj, values[, axis])
indexing
3

moveaxis(a, source, destination)
lax.transpose
5

ones_like(a[, dtype, shape])
lax.full_like
4

ravel(a[, order])
reshape
1

repeat(a, repeats[, axis, total_repeat_length])
take
3

reshape(a, newshape[, order])
reshape
1

resize(a, new_shape)
reshape+tile+indexing
3

roll(a, shift[, axis])
indexing
3

rollaxis(a, axis[, start])
move_axis
5

row_stack(tup)
vstack
2

split(ary, indices_or_sections[, axis])
lax.slice
3

squeeze(a[, axis])
lax.squeeze
2

stack(arrays[, axis, out])
concatenate+expand_dims
2

swapaxes(a, axis1, axis2)
lax.transpose
5

take(a, indices[, axis, out, mode])
index
3

take_along_axis(arr, indices, axis)
index
3

transpose(a[, axes])
lax.transpose
5

tile
broadcast_to+reshape
1

vsplit(ary, indices_or_sections)
split
3

vstack(tup)
concatenate+expand_dims
2

zeros_like(a[, dtype, shape])
lax.full_like
4

Just a note: if PRNGKeyArray was in NumPy, we could imagine implementing it as an array with a new data type, i.e., with data stored in a vector of two elements like np.dtype('u4,u4').
It may not be worth building in a new high-level dtype abstraction into JAX to handle this at the primitive level, but for what it's worth this is exactly the sort of thing we would need to properly support strings.

Thanks for the review! (and sorry for the delay)
I think there is still an open question about which set of operations to eventually support, but we can do this in a follow-up.


Crispr edits 2

Would be great if someone could merge this if it passes (tutorial is still enable:FALSE).

Thanks @hexylena !


bedtools treats tabs as part of seq id

Dear all,
when trying to use maskFastaFromBed, just noticed that tabs (\t) on a FASTA file sequence descriptor are treated as part of the name. For example:
>Scaffold1418 q23423
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

if the header of the sequence has only spaces, bedtools will properly mask it. But if instead of a space we have a tab (\t), then it won't recognize the sequence and nothing is masked.
cheers,

Could you also share an example BED record that causes this?

It seems to have already been fixed.
thanks,


Search by params

This functionality gives the user a possibility to perform a search by method parameters name or description and show them methods where these parameters are used.

I dont see the button properly formed when I use the example that you added in list.html

A new pull request will be created.


fix: specify correct type for interconnection speed

This is a workaround for #16; while we wait for a valid spec to be delivered, this PR introduces spec patches that appear to update the necessary fields from int32 to int64.

NOTE: this PR didn't update all necessary schemas; we also need to change the VrfVirtualCircuitCreateInput to specify speed as int64 instead of int32.
It's worth noting that the VlanVirtualCircuitUpdateInput and VrfVirtualCircuitUpdateInput schemas specify that speed is a string, which makes sense for the inputs since we document those fields as accepting, e.g., 10Gbps, which is not an integer.


Create CHANGELOG

It is very important to have a changelog. This way developers can see changes and breaking changes for versions.

I would accept this, it's a good idea, but I know I will not have time to properly maintain this which would be even worse.
There aren't breaking changes in dockerode, unless there's a major version bump, which make it obvious and easily filtered in your package.json. If there was a dockerode bible this would be in it :)
You should use releases (which are always synced with a commit) in order to see the changes between them.
Just diff the release's commits, way accurate then anything someone would write in a file.


text edits for lsb-release

Codecov Report

Merging #1260 (b4aa09a) into image_v2.7 (25b8ae7) will decrease coverage by 0.92%.
The diff coverage is n/a.

@@              Coverage Diff               @@
##           image_v2.7    #1260      +/-   ##
==============================================
- Coverage       46.71%   45.79%   -0.93%
==============================================
  Files              27       27
  Lines            4893     4804      -89
  Branches          818      818
==============================================
- Hits             2286     2200      -86
+ Misses           2550     2547       -3
  Partials           57       57

Impacted Files
Coverage Δ

pynq/pl_server/device.py
43.35% <0.00%> (-4.39%)
:arrow_down:

pynq/pl.py
72.13% <0.00%> (-3.93%)
:arrow_down:

pynq/pl_server/server.py
45.31% <0.00%> (-2.06%)
:arrow_down:

pynq/pl_server/xrt_device.py
27.32% <0.00%> (-1.94%)
:arrow_down:

pynq/pmbus.py
27.03% <0.00%> (-1.54%)
:arrow_down:

pynq/_3rdparty/tinynumpy.py
29.28% <0.00%> (-1.23%)
:arrow_down:

pynq/utils.py
23.52% <0.00%> (-0.67%)
:arrow_down:

pynq/lib/axigpio.py
62.59% <0.00%> (-0.57%)
:arrow_down:

pynq/overlay.py
33.56% <0.00%> (-0.45%)
:arrow_down:

pynq/ps.py
100.00% <0.00%> (ø)

... and 5 more

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 25b8ae7...b4aa09a. Read the comment docs.


feat(Rust): Implement utf16 to utf8 conversion algorithm

What does this PR do?
Implement an util function converting utf16 encoded string to utf8 string in Rust.
Related issues
#1547
Does this PR introduce any user-facing change?

[x] Does this PR introduce any public API change?
[ ] Does this PR introduce any binary protocol compatibility change?

Benchmark

Looks good to me overall, only some minor error handle issues. @theweipeng do you have some suggestion?

I also find a dataset of character set: https://github.com/lemire/unicode_lipsum, hope this will be useful for future benchmarks.


Multiple DotNet (Nuget) Security Update Vulnerabilities

We are using node:4-node16 function base images which appear to have numerous CVEs around DotNet (Nuget) Security Update for.... I'm not 100% sure if this applies to other versions of the function images or just this one. A list of the vulnerabilities we are seeing are as follows:
DotNet (Nuget) Security Update for System.Private.Uri (GHSA-5f2m-466j-3848) CVE-2019-0981
DotNet (Nuget) Security Update for System.Private.Uri (GHSA-xhfc-gr8f-ffwc) CVE-2019-0980
DotNet (Nuget) Security Update for Microsoft.AspNetCore.Http.Connections (GHSA-655q-9gvg-q4cm) CVE-2020-0603
DotNet (Nuget) Security Update for System.Drawing.Common (GHSA-rxg9-xrhp-64gj) CVE-2021-24112
DotNet (Nuget) Security Update for Microsoft.AspNetCore.All (GHSA-6px8-22w5-w334) CVE-2019-0564
DotNet (Nuget) Security Update for NuGet.CommandLine (GHSA-g3q9-xf95-8hp5) CVE-2022-41032
DotNet (Nuget) Security Update for System.Private.Uri (GHSA-x5qj-9vmx-7g6g) CVE-2019-0657
DotNet (Nuget) Security Update for Azure.Storage.Blobs (GHSA-64x4-9hc6-r2h6) CVE-2022-30187
DotNet (Nuget) Security Update for System.Text.RegularExpressions (GHSA-cmhx-cq75-c4mj) CVE-2019-0820
DotNet (Nuget) Security Update for Microsoft.AspNetCore.App.Runtime.linux-arm (GHSA-2m65-m22p-9wjw) CVE-2022-34716
DotNet (Nuget) Security Update for Microsoft.AspNetCore.Http.Connections (GHSA-23cv-jh4v-vffm) CVE-2020-0602

Is this a known issue? Are there any plans for updates to resolve these?

We are also getting this isssue. We need to fix this for audit. Can this be fixed as this is coming from microsoft.

This has been an issue for us for months as well. We've reached out to MS previously but no response.

@fabiocav / @soninaren - possibly related to extension bundles. Please take a look

I'd also like to add that in addition to receiving the warning for System.Drawing.Common, we are receiving a warning for NuGet.Protocol. The CVE for that is located here: CVE-2022-41032.
The version found by the scan is 5.11.0, with the newest non-vulnerable version being 5.11.2.

I just updated our tag to  node:4-node16 and Aqua found roughly the same vulnerabilities mentioned above. I'll include some paths as they are related to the extension bundles as @pragnagopa referenced:

Resource
Resource Path
Type
Version
Format

Azure.Storage.Blobs
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin_v3/linux-x64/function.deps.json
PACKAGE
12.12.0
nuget

Azure.Storage.Blobs
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/4.1.0/bin/function.deps.json
PACKAGE
12.12.0
nuget

Azure.Storage.Blobs
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/4.1.0/bin_v3/linux-x64/function.deps.json
PACKAGE
12.12.0
nuget

Azure.Storage.Blobs
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin/function.deps.json
PACKAGE
12.12.0
nuget

Azure.Storage.Queues
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin/function.deps.json
PACKAGE
12.10.0
nuget

Azure.Storage.Queues
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/4.1.0/bin/function.deps.json
PACKAGE
12.10.0
nuget

Azure.Storage.Queues
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin_v3/linux-x64/function.deps.json
PACKAGE
12.10.0
nuget

Azure.Storage.Queues
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/4.1.0/bin_v3/linux-x64/function.deps.json
PACKAGE
12.10.0
nuget

NuGet.Protocol
/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.deps.json
PACKAGE
5.11.0
nuget

System.Drawing.Common
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/2.20.0/bin_v3/linux-x64/function.deps.json
PACKAGE
4.7.0
nuget

System.Drawing.Common
/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost.deps.json
PACKAGE
4.7.0
nuget

System.Drawing.Common
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin_v3/linux-x64/function.deps.json
PACKAGE
4.7.0
nuget

System.Drawing.Common
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/2.20.0/bin/function.deps.json
PACKAGE
4.7.0
nuget

System.Drawing.Common
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/3.18.0/bin/function.deps.json
PACKAGE
4.7.0
nuget

System.Net.WebSockets.WebSocketProtocol
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/2.20.0/bin/function.deps.json
PACKAGE
4.5.0
nuget

System.Net.WebSockets.WebSocketProtocol
/FuncExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/2.20.0/bin_v3/linux-x64/function.deps.json
PACKAGE
4.5.0
nuget

libtiff5
(Bundled OS) PACKAGE
4.2.0-1+deb11u3
deb
amd64

linux-libc-dev
(Bundled OS) PACKAGE
5.10.162-1
deb
amd64


fix(dev): modify websocket client port

refer: https://github.com/vitejs/vite/pull/1926

@antfu
I have been thinking about how to modify this PR.
And for some reason I forgot it (so sorry 😂).
I have submitted a new commit according to your suggestion, do you think it is OK?

Can we use new URL(document.currentScript.src).hostname instead of location.hostname as the default hostname? It's more reliable to assume that the websocket server is on the same domain as the client script, than to assume that the websocket server is on the same domain as the current page (this would allow for things to work in a cross-domain context).

We decided that https://github.com/vitejs/vite/pull/3578 is the successor of this PR


Change playerPool key to Double

Encountered an issue when preloading multiple sounds from URLs that would cause several sounds to play whatever file was preloaded last.
Appears this was caused by the chosen key for a sound exceeding the Java Integer size, leading to collisions when multiple keys were passed to the Java module as the max Integer size. Our solution was to change the keys used for the player pool from Integer to Double to avoid such collisions.
Believe this should also fix #362

I like this change. Thanks!


HTML auto formatting using spaces instead of tabs

From @alan-agius4 on July 31, 2018 7:36

VSCode Version: 1.25.1
OS Version: Windows 10

Steps to Reproduce:

Set "html.format.wrapAttributes": "force-aligned" or "html.format.wrapAttributes": force-expand-multiline in the workspace settings
Set indent_style to tabs in .editorconfig for html

[*.{cshtml,html}]
charset = utf-8
indent_style = tab

Format an html file.

I would expect that tabs are using instead of spaced.
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: Microsoft/vscode#55423

From @vscodebot[bot] on July 31, 2018 7:36
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

HTML attributes - only expand multiline when long (#53187)

What is the tab/spaces setting for your editor? Check out the lower right corner.
To sync settings in .editorconfig with the vscode settings, check out https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

From @alan-agius4 on July 31, 2018 10:50
Hi @aeschli my setting is Tab Size: 4

If I format the document, I can see that spaced are being changed to tabs but not for wrapAttributes, these are always spaces.

reproduced on the https://beautifier.io/ playground:

use tab as indent character
set line length to 40
custom settings:

{
  "wrap_attributes":   "force-aligned"
}

format the folloing code

Spaces are used to indent the attributes

I'm seeing a similar issue with wrap_attributes: force and tab indention.
Here's the setup:
Description

NOTE:

Check the list of open issues before filing a new issue.
Please update the expect output section to match how you would prefer the code to look.

Input
The code looked like this before beautification:
// This is just a sample script. Paste

Current Output
The  code actually looked like this after beautification:
// This is just a sample script. Paste

Expected Output
The code should have looked like this after beautification:
/*Adjust the code to look how you prefer the output to be.*/
// This is just a sample script. Paste

Environment
Browser User Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Language Selected:
HTML
Settings
Example:
{
  "indent_size": "1",
  "indent_char": "\t",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": false,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "40",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false,
  "wrap_attributes": "force"
}

In this case, should the wrap not be using a tab character rather than a space? Happy to file a new issue, if it's a separate issue from this one.

@cpswaim You issue is even more basic. I think it is cover by #1294.

@aeschli
This should be fixed in 1.8.10-beta1.  See #1572.
I'm not ready to release widely as it changes the way indenting and alignment are handled throughout the project and could have side-effects for projects that use tabs.
Please have look and if you have people who are willing to try it out that'd be great.

Just had the opportunity to test. Manually upgraded js-beautify (to 1.9.0) in the sublime plugin I am using, and initial tests look great. Thank you!


JSON Elements as List?

Hello,
is it possible to get for example bugs or fish as a list in JSON file? I think it would be much easier to parse the JSON response.
Greets
Alex

Hi,
You can easily parse the response with a "for in" loop if you're doing JS. I might add an endpoint later on that returns a JSON array but too many tools are based on the current format for me to change it right away.

Thank you much for the fast answer. I will try it with a for loop. I will watch the project for new endpoints in future. Thanks for that your great work!


gnome3.gnome-initial-setup: 3.34.1 -> 3.34.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gnome-initial-setup/versions.
meta.description for gnome3.gnome-initial-setup is: '"Simple, easy, and safe way to prepare a new system"'.
meta.homepage for gnome3.gnome-initial-setup is: '"https://gitlab.gnome.org/GNOME/gnome-initial-setup"

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.34.3 with grep in /nix/store/fvcikfwhc5qaqgm0xngr797lyslyz9q3-gnome-initial-setup-3.34.3

directory tree listing: https://gist.github.com/09df75167668102ad45c9c93dedeae70

du listing: https://gist.github.com/c610a69efe4d491289c643e74c7a27ae

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
gnome3.gnome-initial-setup

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/fvcikfwhc5qaqgm0xngr797lyslyz9q3-gnome-initial-setup-3.34.3 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A gnome3.gnome-initial-setup https://github.com/r-ryantm/nixpkgs/archive/71a7b63b5739b19d7fc4b18c9398c77f3c5d6f4e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/fvcikfwhc5qaqgm0xngr797lyslyz9q3-gnome-initial-setup-3.34.3
ls -la /nix/store/fvcikfwhc5qaqgm0xngr797lyslyz9q3-gnome-initial-setup-3.34.3/bin

cc @lethalman @jtojnar @hedning @worldofpeace for testing.

Only translation updates.


[BUG]: Cannot generate migration for materialized views due to "duplicated view name found"

What version of drizzle-orm are you using?
0.35.2
What version of drizzle-kit are you using?
0.26.2
Describe the Bug
Create 1 or more views using any of pgMaterializedView or mySchema.materializedView and ensuring that names are distinct and not already in existence.
Encounter this fatal warning https://github.com/drizzle-team/drizzle-orm/blame/0.35.2/drizzle-kit/src/serializer/pgSerializer.ts:
 Warning  We've found duplicated view name across public schema. Please rename your view
 ELIFECYCLE  Command failed with exit code 1.

Expected behavior
SQL for creating materialized views are generated successfully
Environment & setup
Node v20.11.1
Postgres 17.0
Ubuntu 24.04 LTS

Encountering the same problem, in my case it seems to happen when the same object is reexported from multiple files,
I'm using a barrel file to export all my tables/views and create the schema object
Changing these lines to also dedupe the views objects seems to fix it for me

Same Issue, for context I am using a supabase auth view:
`import {
timestamp,
uuid,
varchar,
boolean,
integer,
jsonb,
pgSchema,
} from "drizzle-orm/pg-core";
const authSchema = pgSchema("auth");
// Define the view with the full schema and table name and mark it as existing
export const authUsersView = authSchema
.view("users", {
instanceId: uuid("instance_id"),
id: uuid("id").primaryKey(),
aud: varchar("aud", { length: 255 }),
role: varchar("role", { length: 255 }),
email: varchar("email", { length: 255 }),
encryptedPassword: varchar("encrypted_password", { length: 255 }),
emailConfirmedAt: timestamp("email_confirmed_at", { withTimezone: true }),
invitedAt: timestamp("invited_at", { withTimezone: true }),
confirmationToken: varchar("confirmation_token", { length: 255 }),
confirmationSentAt: timestamp("confirmation_sent_at", {
withTimezone: true,
}),
recoveryToken: varchar("recovery_token", { length: 255 }),
recoverySentAt: timestamp("recovery_sent_at", { withTimezone: true }),
emailChangeTokenNew: varchar("email_change_token_new", { length: 255 }),
emailChange: varchar("email_change", { length: 255 }),
emailChangeSentAt: timestamp("email_change_sent_at", {
withTimezone: true,
}),
lastSignInAt: timestamp("last_sign_in_at", { withTimezone: true }),
rawAppMetaData: jsonb("raw_app_meta_data"),
rawUserMetaData: jsonb("raw_user_meta_data"),
isSuperAdmin: boolean("is_super_admin"),
createdAt: timestamp("created_at", { withTimezone: true }),
updatedAt: timestamp("updated_at", { withTimezone: true }),
phone: varchar("phone").unique(),
phoneConfirmedAt: timestamp("phone_confirmed_at", { withTimezone: true }),
phoneChange: varchar("phone_change").default(""),
phoneChangeToken: varchar("phone_change_token", { length: 255 }).default(
""
),
phoneChangeSentAt: timestamp("phone_change_sent_at", {
withTimezone: true,
}),
confirmedAt: timestamp("confirmed_at", { withTimezone: true }),
emailChangeTokenCurrent: varchar("email_change_token_current", {
length: 255,
}).default(""),
emailChangeConfirmStatus: integer("email_change_confirm_status").default(0),
bannedUntil: timestamp("banned_until", { withTimezone: true }),
reauthenticationToken: varchar("reauthentication_token", {
length: 255,
}).default(""),
reauthenticationSentAt: timestamp("reauthentication_sent_at", {
withTimezone: true,
}),
isSsoUser: boolean("is_sso_user").default(false),
deletedAt: timestamp("deleted_at", { withTimezone: true }),
})
.existing();
`
and here is my exports in /db/schema/index.ts
export * from "./authUsers";

Encountering the same problem, in my case it seems to happen when the same object is reexported from multiple files,
I'm using a barrel file to export all my tables/views and create the schema object
Changing these lines to also dedupe the views objects seems to fix it for me

Had the same issue, I had to change the drizzle.config.ts file:
export default defineConfig({
  dialect: "postgresql",
  schema: "./db/schema",
  out: "./db/migrations",
  dbCredentials: {
    url: process.env.POSTGRES_URL!,
  },
})

to
export default defineConfig({
  dialect: "postgresql",
  schema: "./db/schema/index.ts",
  out: "./db/migrations",
  dbCredentials: {
    url: process.env.POSTGRES_URL!,
  },
})

By setting the schema to the barrel file, the issue got solved.


fix: drop unwrap from from_proto

from_proto contains a few unwrap. Remove them and use Valid type here. Make sure to use Valid::from_iter for when one needs to check iterables.

/bounty 25

/attempt

In the queue

is it still valid or fixed?

/attempt #1739

/attempt

@tusharmath Currently, there is only one unwrap called in from_proto.rs:138, and I think it will never panic because the container is not empty. Should we still remove it?


Allow string keys in QuantumCircuit.assign_parameters

Summary
These are looked up using the new get_parameter method to convert them into an actual Parameter instance.  This is not available in the fast path (which is allowed to assume that the caller has taken care of providing the most efficient inputs).
Details and comments
~Depends on #11431, which this PR currently contains.~ edit: now rebased.
Close #7107.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

79 of 92 (85.87%)  changed or added relevant lines in 4 files are covered.
12 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.01%) to 87.524%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/transpiler/passes/basis/basis_translator.py
3
4
75.0%

qiskit/circuit/quantumcircuit.py
47
52
90.38%

qiskit/circuit/parametertable.py
18
25
72.0%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
6
90.66%

crates/qasm2/src/parse.rs
6
97.13%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
59203

Relevant Lines:
67642

💛  - Coveralls

Rebased and ready for review.


Team JS {DarkMode NULL}

Hello @codervivek5 ,
I found one more bug which is about the DarkMode.
Video :
Screencast from 10-08-23 02:07:43 PM IST.webm
Assign me this so I can add the feature again.

can i work on this bug ? please assign this issue to me
@codervivek5

can i work on this bug ? please assign this issue to me @codervivek5

what changes you want to add ?

in the team section there is no change when the light theme or dark theme is toggled , so i can work on that
( i'm new to open source so i want to work on small issues first )


Update ICantBelieveItsNotValetudo

To support the new map data format in Valetudo 0.6.0 this update is needed for the addon

this PR will close #92


Operator precendence

Currently emojicode uses some sort of Polish Notation for its mathematical expressions, which for many use cases is fine, I guess, but some basic operator precedence support might be helpful in the future.
However, implementing this is nearly impossible with the internal code representation by the compiler and rewriting the compiler with an Abstract Syntax tree would be required.

By design.


Add seccomp isolator in mesos build

Change-Id: I8676306027313259849a69d34aced285b3352684

@Lqp1 let's merge this?

Ok I'll do it :)


ng serve does not allow us access to raw 'index.csr.html' when using SSR

Command
serve
Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
If I go to http://localhost:4200/, I get a transformed html response which includes my lazy-loaded router-component for the ''path. This is as expected during SSR.
However,
If I go to http://localhost:4200/index.html, I expect to get an html response which is exactly the index.html on disk, without the ssr transformation. But the dev server sends me a "404 Not Found" instead.
Turns out that, for SSR, angular creates 2 index.html - index.csr.html and index.server.html. I am interested in the csr version, because I want to precache it.
However, the angular dev server's middleware prevents me from accessing that file.

This is a screenshot of me debugging the dev-server. The request was for /index.html
In line 25, the middleware tries to search the outputFiles for 'index.html'. The problem is that the outputFile don't have 'index.html'. They have 'index.csr.html' and 'index.server.html'. As a result, rawHtml is going to be always be undefined, and the middleware is  going to go to line 27 and skip the middleware.
If I try to go for /index.csr.html, then the middleware will skip out before it even reaches Line 25, due to the if condition on Line 12
Line 12 says that any request that are not '/' or '/index.html' will be ignored.
So we are perpetually denied being served the raw index.html while serving in SSR
Minimal Reproduction
Create a new angular app
Add SSR to it as per the documentation
Add a lazy loaded component for the path '' with the selector test-element and an empty template,
Remove the contents of app.component's template and add a router outlet to app.component.html
Do other task necessary to set up routing
Serve the app with ng serve
Go to http://localhost:4200 and check the response that came on first load. You should see the element <test-element></test-element> in the html. This is ok
Go to http://localhost:4200/index.html. This should result in 404 Not Found. This is ok.
Go to http://localhost:4200/index.csr.html. This should result in 404 Not Found. This is not ok. It should have returned html without the test-element in it.
Exception or Error
No response
Your Environment
Angular CLI: 18.1.0
Node: 20.13.1
Package Manager: pnpm 9.4.0
OS: linux x64

Angular: 18.1.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, material, material-luxon-adapter
... platform-browser, platform-browser-dynamic, platform-server
... router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1702.3
@angular-devkit/build-angular   18.1.0
@angular-devkit/core            18.1.0
@angular-devkit/schematics      18.1.0
@schematics/angular             18.1.0
ng-packagr                      18.1.0
rxjs                            7.8.1
typescript                      5.4.4

Anything else relevant?
https://github.com/angular/angular-cli/blob/f5c250ab48e22c5aff31d8ebd35fb9a88e380fd7/packages/angular/build/src/tools/vite/middlewares/index-html-middleware.ts#L30-L42
This is the part that likely needs to be changed.

change line 31 to allow  index.csr.html
change line 37 to search for index.csr.html or index.html  as per the actual request

Workaround:
Explanation
During ngOnInit check the route for the existence for a query parameter called __blank_page. If it is present, don't render any routes. Then, wherever you want to cache your empty app shell, use /__blank_page for the url.
Implementation
In your app.component.ts:
  protected readonly blankPage$ = signal(false);

  private serveBlankPage() {
    this.route.queryParamMap
      .pipe(takeUntilDestroyed(this.dRef))
      .subscribe(params => {
        if (params.has('__blank_page')) {
          console.debug(params);
          this.blankPage$.set(true);
        }
      });
  }

  ngOnInit() {
    this.serveBlankPage();
  }

In your app.component.html:

    @if (!blankPage$()) {
    <router-outlet></router-outlet>
    }

Finally, for precaching, use the url: /?__blank_page in your precaching manifest
Drawbacks
You can only wrap the router outlet in the @if block. While it is possible to wrap the entire template in the @if, this will interfere with any viewchild.required declarations in your typescript. If you are willing to refactor your typescript to accommodate that, then this is a viable temporary solution
While you can choose to make the

Can you please elaborate on what you mean by "precaching" and what you are trying to achieve with it?

@alan-agius4 Sorry for the delay in getting back.
So, I use a service worker, and instead of @angular/pwa, I use workbox to implement a custom service worker.
And workbox has the ability to "pre-cache" certain files to ensure that the application always loads, even if offline. To do this, it loads certain files up-front at the time of installation. Usually, this would mean all files in the 'initial' chunk + the index.html file + global styles + polyfills. So for those items, I would need the file names in the build output, then make a list, and pass that to the service worker.
https://developer.chrome.com/docs/workbox/modules/workbox-precaching


Overlapping NotificationStack

NotificationStack is overlapping over each other instead of adding it at the top of the previous stack.

I'm happy to figure out what is going on, but can you provide some more context please? A screenshot or gif of the issue as well as an example of your code would be useful. Could you also inspect the DOM and send me examples of the DOM Node tree for the component?

I just clone your master and run npm start and this is what I got.

I'm experiencing this as well

https://github.com/pburtchaell/react-notification/blob/master/src/notificationStack.js#L27
That's the issue, it should be merging those styles instead of choosing between them

Great. I am not available presently, but when I have some time this week I'm going to review the code and make sure this issue is resolved. :smile:

Quick fix would be to provide style object to notification.add():
`this.state = {
notifications: OrderedSet()
}
...
return this.setState({
notifications: notifications.add({
message: 'some message',
key: someKey,
style: {
bar: {
bottom: (2 + notificationCount * 4) + 'rem' // tweak as you like
}
}
}`

@pburtchaell Any updates? Looks like we're hitting the same issue...

This should be fixed in<EMAIL_ADDRESS>Keep in mind the breaking changes, which are documented in the release as well as the README.

Thanks!


Closing output file from inside the loop who open it

Quick fix for a small issue.
Present in 1.0.2 too.
Waiting for Travis reply.

+1

+1; let me know if you want me to merge.


[stf-run-ci] Update validation check for bundle URLs

An empty string passed as the bundle URL will pass the existing test of "is defined" and "is not None" and still be invalid.

add a check for "length != 0"
assert requires all conditions to be met, the checks can all be listed separately to make the task easier to grok.

You can run a test for this using: https://gist.github.com/elfiesmelfie/e6705ea2a2f70b04a3ad8787fa93bd5b


Netstorage Upload Account

Also incorporates updates from parent PR

Hi @stuartio Could you also include ruleSetId in the loader? I don't see it listed in your JSON example but it is a field that's returned from the storage/v1/upload-accounts API as per the docs

@stuartio One other field we'd like to see are the keys. Specifically we're interested in seeing whether it's enabled and the lastModifiedDate so we can identify keys that haven't been rotated in > x days.

Supersceded by PR


ResourceWarning: unclosed file

Version 1.3.14
We are using the Logica library in a Python application and are seeing the following warnings when running unittests for our Python application:
/usr/local/lib/python3.6/dist-packages/logica/parser_py/parse.py:1111: ResourceWarning: unclosed file <_io.TextIOWrapper name='***' mode='r' encoding='UTF-8'>
  file_content = open(file_path).read()

This is not blocking us from using Logica.
I would be willing to put up a PR with a fix (if desired).

The warning (we see during our test) is due to imports. Here is a repro (although there may be a simpler way):
import os
import warnings
from inspect import cleandoc
from pathlib import Path
from tempfile import TemporaryDirectory

from logica.parser_py import parse  # Version 1.3.14

fruit_program = cleandoc("""
    # fruit.l
    T(1, "apple");
    T(2, "banana");
    T(3, "orange");
""")

double_fruit_program = cleandoc("""
    # double_fruit.l
    import fruit.T;

    DoubleT(d, y) :- T(x, y), d == 2 * x;
""")

with warnings.catch_warnings(record=True) as ws:
    warnings.simplefilter('always', category=ResourceWarning)

    # Temporary directory to write the Logica program we want to import from.
    with TemporaryDirectory() as tmp_dir_name:
        tmp_dir_path = Path(tmp_dir_name)
        logica_file = tmp_dir_path / 'fruit.l'
        with open(logica_file, 'w') as file:
            file.write(fruit_program)

        current_directory = Path.cwd()
        os.chdir(tmp_dir_path)
        parsed_rules = parse.ParseFile(double_fruit_program)['rule']

        os.chdir(current_directory)

for w in ws:
    print(f'{w.filename}:{w.lineno} {w.message}')

yields
/usr/local/lib/python3.6/dist-packages/logica/parser_py/parse.py:1111 unclosed file <_io.TextIOWrapper name='fruit.l' mode='r' encoding='UTF-8'>

Thanks for pointing this out!
It should be easy to fix, we just need to close the file after reading.
I'll be happy to accept your PR with the fix, or will get to it myself in a matter of days.


restores the captive thread behavior of Mosquito::Runner.start

fixes #114
@mamantoha if you have a moment to verify this works for you, I'd appreciate it.

LGTM

Looking good!


About region mask

Hi, thanks for your brilliant work!
I have a question about region mask, in train.py the mask is created according to lr_img, but why? If the mask is created according to HR and set the scale to 1, will the performance better?

Thanks for your insightful advice. It seems that the mask created by HR may be a better choice.


Deploy mode client ?

I've seen in multiple issues (see here) that spark-application/operator is not supposed to support client mode yet, even though it seems that it is available from specs definitions
Trying to set mode: client in spark-application job definition results in following error at spark-operator level:
/opt/spark/bin/spark-submit --master k8s://https://<IP_ADDRESS>:443 --deploy-mode client ...
21/11/23 14:03:24 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Exception in thread "main" java.io.IOException: Cannot run program "python3": error=2, No such file or directory
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
	at java.base/java.lang.ProcessBuilder.start(Unknown Source)
	at org.apache.spark.deploy.PythonRunner$.main(PythonRunner.scala:97)

Though setting mode: cluster (default) actually calls the default spark docker image entrypoint, which seems by default submit/startup with client mode:
https://github.com/apache/spark/blob/master/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh
and indeed at the startup of the driver:
[spark-kubernetes-driver] + CMD=("$SPARK_HOME/bin/spark-submit" --conf "spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS" --deploy-mode client "$@")
[spark-kubernetes-driver] + exec /usr/bin/tini -s -- /opt/spark/bin/spark-submit --conf spark.driver.bindAddress=<IP_ADDRESS> --deploy-mode client --properties-file /opt/spark/conf/spark.properties --class org.apache.spark.deploy.PythonRunner local:///home/myapp/app/myapp/__main__.py test-spark

So I'm not really sure if the spark job submitted this way is actually in cluster mode or in client mode?
Version info:
chart-info: spark-operator-1.1.10
spark-operator version: v1beta2-1.2.3-3.1.1
Thanks!

@lboudard Behind the scenes, "spark-submit" is eventually called with "--deploy-mode client" argument. This behavior is not specific to spark-operator, but to spark itself.
At the user level, you use that option to control the place where the driver process will run relatively to place where 'spark-submit' script is called. If you choose 'client' - then the driver process will run at the same place where "spark-submit" is called. If you pick 'cluster' - the driver will run in a container, managed by resource allocator (e.g. k8s pod, YARN container). But even in cluster mode, if you take a look at the driver startup logs in the container, you'll see that it is "spark-submit --deploy-mode client ...".
Now let's see what it means in the spark operator world. Here 'spark-submit' is called inside spark-operator container. So by setting "deploy-mode=client" here you actually force the driver process to run inside the operator container, not in a separate pod.
Concluding, the answer to your question is "your app runs in cluster mode".

As far as I know Spark operator lets users do spark-submit commits using yaml and takes care of complex configuration issues.
As I answered https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/1652#issuecomment-1652939810, if you want spark application on k8s, you can use client mode and configure it on k8s (spark.master, etc.) in the application. Pyspark users can use the sparglim package to build client mode applications quickly.


RuntimeError: No CUDA GPUs are available

Hi. Thank you for your great work!
I encountered a Runtime error while executing reconstruction with my custom yaml file.
Below is my custom yaml file.
I changed N_voxel_init, time_grid_init/final, data_dir, and downsample.
I guess the error would raise also with given dnerf_slim.yaml config file because I changed few configs.
systems:
  basedir: "./logs"

model:
  N_voxel_init: 32768 # Paper: 32^3

  # We heuristically set initial time_grid and final time grid.
  # A common strategy to set these two parameters for DNeRF dataset is:
  # We empirically set time_grid_final = int(0.24 * N_frames), and time_grid_init = int(0.5 * time_grid_final)
  # We show N_frames for each video
  # "standup": 150; "jumpingjacks": 200; "hook"   : 100; "bouncingballs": 150
  # "lego"   :  50; "hellwarrior" : 100; "mutant" : 150; "trex"         : 200
  time_grid_init: 6
  time_grid_final: 12
  upsampling_type: unaligned
  upsample_list: [3000, 6000, 9000]
  update_emptymask_list: [4000, 8000, 10000] # Paper: 4k, 10k

data:
  datadir: "./data/lego"
  scene_bbox_min: [-1.5, -1.5, -1.5]
  scene_bbox_max: [1.5, 1.5, 1.5]
  downsample: 2.5 # assert (img_res / ds) % 16 (macro_block_size) = 0

optim:
  n_iters: 25000

render_test: True
render_path: True
expname: dnerf_slim_lego

And below is the Runtime error I encountered.
The error raised after 10k iterations.
██████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:41<00:00,  8.22s/it]
PSNR: 25.67093115332822

Iteration 09990: train_psnr = 33.24 test_psnr = 0.00 mse = 0.000485:  40%|███▉      | 9999/25000 [2:27:09<3:40:46,  1.13it/s]
Traceback (most recent call last):
  File "main.py", line 199, in <module>
    reconstruction(cfg)
  File "main.py", line 121, in reconstruction
    trainer.train()
  File "/mnt/c/Repositories/2023-1/TextTo4D/hexplane/hexplane/render/trainer.py", line 444, in train
    torch.cuda.synchronize()
  File "/home/ywjeon990709/anaconda3/envs/hexplane/lib/python3.8/site-packages/torch/cuda/__init__.py", line 494, in synchronize
    _lazy_init()
  File "/home/ywjeon990709/anaconda3/envs/hexplane/lib/python3.8/site-packages/torch/cuda/__init__.py", line 217, in _lazy_init
    torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available

OS: WSL2 Ubuntu 20.04
GPU: RTX 2050 4GB
Please tell me if you need any other information. Thanks.

Hi:
I am trying to replicate this issue. I just want to double-check several facts, if possible. How many GPUs are available in your environment? Do you see the same issue with the other data, like standup with the same setting? Thanks

Thank you for your reply.
I'm using only a single GPU.
And the error also raises after 10k iterations when I run with standup data under same setting.

Hi:
Thanks for the info. I didn't see the problem using the provided config. Could you please try GPUs with bigger memory, like 2080TI?

It seems the error raised because of the lack of my GPU memory.
I'll try with the bigger one and reopen the issue if the error still occurs.
Thanks

Have you tried with a larger one?

Have you tried with a larger one?

Do you meet the same problem as well?

nah I am good

Have you tried with a larger one?

Do you meet the same problem as well?

nah I am good


UnauthorizedError: No Authorization header was found

While running this application on http://localhost:3000/  its throwing an exception of "UnauthorizedError" on browser as well as on command window.
I am using the command "node index.js" to run the application through command window.

Make sure you follow the slides by checking out the branch cookie first.

Thanks kentcdodds, its working now .
Can you please tell me how i will store the username and password into a DB dynamically instead of hardcoding it.

@sanjit12345, that's a significant topic that depends highly on your use case and the technology stack you're working with. I don't think that I can help you much in the form of a github comment. I can tell you that I've used MongoDB with MongooseJS before and it worked nicely for what I was trying to accomplish. Good luck!


Improve ug

The last 4 commits are to revert DG back to its original state, so that wont have merge conflict with Jiayue's PR later


Call button Dissappears if logged in trough Bitlbee

If an xmpp account is logged in trough Bitlbee and Jitsi at the same time, friends are not able to perform a call as the call button is greyed out. Both local and friend client are running version 2.8 on GNU/Linux.

I suspect that this may be have been caused by https://github.com/jitsi/jitsi/commit/478a8ec46cc6c3ccebaadf965f9baa14e5975d1d or https://github.com/jitsi/jitsi/commit/4e5c881b236ec4be89199c06674b0dfa186d0513

If someone could confirm that reverting one (or both) of these fixes the problem, I'd push a revert to master (and figure out how to fix it later).

I just tried all combinations. Both commits separately and together. But reverting those changes did not seem to fix the issue. On two separate contacts running jitsi-android and chatsecure it didn't show the buttons reliably. Though it seems to help, if jitsi is using a higher priority, since that contact does at least initially show the buttons.

I've just tested jitsi-2.1.4590.10823 from back in 2013-04-30 and it behaves exactly the same. Meaning only the capabilities of the last signed in client on the side of the contact are being considered. Right now I'm currently looking into OperationSetContactCapabilitiesJabberImpl. If I understand correctly, there should be code checking every single resource that contact has registered and use the capabilities of the resource supporting the most capabilities. However I did not find code similar to the one in MetaUIContact yet. Unfortunately contact.getResources() seems to be empty at this point.

So I took the list of resources straight from EntityCapsManager, since it seems way more reliable than contact.getResources(). This does actually work out pretty smoothly. I will test this a while and I will reference the commit, after I'm certain that it doesn't brake something.

https://github.com/459below/jitsi/commit/9dcb88b2a580243ac0e3b640b3f785ed16a5a705
I've been using this fix for some days. This shows the buttons appropriately and I haven't noticed any regressions. I have noticed a different issue mentioned in the commit message. But this seems to be a different pre-existing issue.
I suppose I should create a proper pull request in order to assess these changes, shouldn't I?


openslr语言资料下载失败

尝试使用examples/tiny下的run.sh去演示模型训练，但是在下载语言资料包时直接报错 403：Forbidden
请问如何处理？
checkpoint name deepspeech2
Downloading http://www.openslr.org/resources/12/test-clean.tar.gz ...
Downloading http://www.openslr.org/resources/12/dev-clean.tar.gz ...
--2022-06-08 16:29:08--  http://www.openslr.org/resources/12/test-clean.tar.gz
--2022-06-08 16:29:08--  http://www.openslr.org/resources/12/dev-clean.tar.gz
Resolving www.openslr.org (www.openslr.org)... Resolving www.openslr.org (www.openslr.org)... <IP_ADDRESS>
Connecting to www.openslr.org (www.openslr.org)|<IP_ADDRESS>|:80... <IP_ADDRESS>
Connecting to www.openslr.org (www.openslr.org)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://openslr.magicdatatech.com/resources/12/dev-clean.tar.gz [following]
--2022-06-08 16:29:08--  https://openslr.magicdatatech.com/resources/12/dev-clean.tar.gz
Resolving openslr.magicdatatech.com (openslr.magicdatatech.com)... <IP_ADDRESS>
Connecting to openslr.magicdatatech.com (openslr.magicdatatech.com)|<IP_ADDRESS>|:443... connected.
302 Found
Location: https://openslr.magicdatatech.com/resources/12/test-clean.tar.gz [following]
--2022-06-08 16:29:08--  https://openslr.magicdatatech.com/resources/12/test-clean.tar.gz
Resolving openslr.magicdatatech.com (openslr.magicdatatech.com)... <IP_ADDRESS>
Connecting to openslr.magicdatatech.com (openslr.magicdatatech.com)|<IP_ADDRESS>|:443... HTTP request sent, awaiting response... connected.
403 Forbidden
2022-06-08 16:29:08 ERROR 403: Forbidden.

修改了 dataset/librispeech/librispeech.py#L34
URL_ROOT = "https://openslr.elda.org/resources/12"

可以进行下载了

very good


Upgrade example to v0.25 + fixed compatibility issue with v0.25

Also fix in my previous PR #84 :)

Any news from the repo owner?

None since 31 Mars for me

@marcosinigaglia this functionality will be in RN 27

I have released a version with the RN 25 fixes, but wont be maintaining it as its obsolete now.
https://www.npmjs.com/package/react-native-animated-swipeout

The functionality is experimental, it's better not to use in production.

Hm.. where did you get this information from @marcosinigaglia ? I see no comments about it on the release notes..

https://github.com/facebook/react-native/tree/master/Libraries/Experimental/SwipeableRow
Each component in 'Experimental' can be removed in the new releases, I think is better use a stable library until the component 'exit' from experimental stage.

Ah, didn't notice the file path. Thank you.


convert_bids_to_nnUNetv2.py - {args.dataset_name} is missing in output filenames

The current version of convert_bids_to_nnUNetv2.py script creates filenames without {args.dataset_name}:
https://github.com/ivadomed/model_seg_sci/blob/f3dd02c54c62275ef5e935f82a83ef8e39480117/dataset-conversion/convert_bids_to_nnUNetv2.py#L150-L151
{args.dataset_name} is required by compute_test_metrics_anima.py, though.
TODO: include {args.dataset_name} into filenames (as was done in one of the previous convert_bids_to_nnUNetv2.py versions):
https://github.com/ivadomed/model_seg_sci/blob/d8f464738f5b2e5d309a2c5e1d2af8d47434a44b/dataset-conversion/convert_bids_to_nnUNetv2.py#L122-L123

This was an important addition! It has been fixed in da90881b4b95ec174d80e285b70d988238820c7f. The issue can now be closed!


Annoying Slirp Message console output from qemu_x86 board target

Describe the bug
The easiest way to use Networking with QEMU is in user mode with slirp. here QEMU provides the (tcp|udp)/ip stack. Zephyr works just like a charme, however, the qemu version zephyr sdk ships litters the console output with qemu-system-i386: Slirp: Failed to send packet, ret: -1 messages. As far as I could trace this output back, it does not originate from Zephyr RTOS but from QEMU itself and is false alarm. QEMU was able to send the packet. I can see the response from the server.
To Reproduce
Steps to reproduce the behavior:

cd samples/net/dhcpv4_client/
mkdir boards
save file qemu_x86.conf here (see below)
mkdir build; cd build
cmake -GNinja -DBOARD=qemu_x86
ninja run
See console output

Expected behavior
QEMU shall remain silent! there is no error. the ip packet gets transmitted by the qemu user mode just fine.
Impact
each ip packet results in one qemu-system-i386: Slirp: Failed to send packet, ret: -1 line on the console output. debugging output of udp applications is annoying, while debugging ip packet heavy tcp traffic from multiple connections is tedious.
Logs and console output
$ ninja run
[1/183] Preparing syscall dependency handling

[2/183] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/home/mark/zephyrproject/zephyr), build: zephyr-v3.2.0-1869-g9ebb9abab7b0
[168/183] Linking C executable zephyr/zephyr_pre0.elf

[172/183] Linking C executable zephyr/zephyr_pre1.elf

[182/183] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
             RAM:      184352 B         3 MB      5.86%
        IDT_LIST:          0 GB         2 KB      0.00%
[182/183] To exit from QEMU enter: 'CTRL+a, x'[QEMU] CPU: qemu32,+nx,+pae
SeaBIOS (version zephyr-v1.0.0-0-g31d4e0e-dirty-20200714_234759-fv-az50-zephyr)

iPXE (http://ipxe.org) 00:02.0 CA00 PCI2.10 PnP PMM+00392120+002F2120 CA00

Booting from ROM..
*** Booting Zephyr OS build zephyr-v3.2.0-1869-g9ebb9abab7b0 ***

[00:00:00.000,000] <inf> net_dhcpv4_client_sample: Run dhcpv4 client
uart:~$ qemu-system-i386: Slirp: Failed to send packet, ret: -1
qemu-system-i386: Slirp: Failed to send packet, ret: -1
[00:00:07.010,000] <inf> net_dhcpv4: Received: <IP_ADDRESS>
[00:00:07.010,000] <inf> net_dhcpv4_client_sample: Your address: <IP_ADDRESS>
[00:00:07.010,000] <inf> net_dhcpv4_client_sample: Lease time: 86400 seconds
[00:00:07.010,000] <inf> net_dhcpv4_client_sample: Subnet: <IP_ADDRESS>
[00:00:07.010,000] <inf> net_dhcpv4_client_sample: Router: <IP_ADDRESS>
uart:~$ qemu-system-i386: Slirp: Failed to send packet, ret: -1

Environment (please complete the following information):

OS: Ubuntu 22.04
Toolchain Zephyr SDK,
Version: 9ebb9abab7b0d662e0d5379367fb7f052959c545

Additional context
qemu_x86.conf:
CONFIG_FPU=y
CONFIG_PCIE=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_QEMU_ETHERNET=y
CONFIG_NET_QEMU_USER=y
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="<IP_ADDRESS>"

This config advises ninja run to use the QEMU-internal virtual network instead of the more complicated tap0 network (with ifconfig, dnsmasq and/or dhcpd) which has to be set up manually and is more error prone than the virtual QEMU-internal network.

I'm afraid I'm not able to help here, looks like QEMU  misconfiguration, we need some QEMU experts here.
@bwasim I see that you've originally introduced support for Qemu User Networking, perhaps you have some idea?

Really need someone from networking to look into this.
Maybe it's the e1000 driver (either in Zephyr or QEMU)? @tbursztyka, any insights?

Closing with the correct reason as this was improperly marked as "completed".


mobilinkd support!

Hey Paul, been following the project closely - super relevant to my interests and I'm really excited someone else is hacking on the same stuff I am. You've tackled a lot of the stuff I have on my feature wishlist, too.
I've got a mobilinkd TNC and would love to use it to send PLI's - right now I'm using a delightfully Rube Goldberg setup involving direwolf and netcat.
It's been a long time since I've written any Java in anger, but I'll aim to get an environment up this coming weekend. I'll probably run into questions along the way, is there a better place to throw questions your way other than here?
My first one is about what the development lifecycle looks like - is there a way to disable plugin signature checking on a build of ATAK so I can iterate, or do you have another way for iterating on plugin code? I can stub & test a bit, but I'm sure there will be a bit of testing in prod.

Hey Adrian, glad to hear you're interested in this project! You can reach me here or on the ATAK Discord if you have any questions about the codebase.
You can disable plugin signature checking in ATAK by modifying the AtakPluginRegistry.verifySignature() method to always return true.


Us101 legal basis

Added legalbasis as a separate entity
Added endpoint for getting all legal bases
Added db migrations
Added endpoint for creating surveys

@davidmort @tej99 requested changes have been made apart from MIGRATION_SOURCE environment variable which we are going to leave in pending further investigation

@tej99 I've added validation but the PR is now 1.7k files changed

Codecov Report

Merging #36 into master will increase coverage by 11.67%.
The diff coverage is 48.93%.

@@             Coverage Diff             @@
##           master      #36       +/-   ##
===========================================
+ Coverage   46.54%   58.21%   +11.67%
===========================================
  Files           5        4        -1
  Lines         434      438        +4
===========================================
+ Hits          202      255       +53
+ Misses        202      143       -59
- Partials       30       40       +10

Impacted Files
Coverage Δ

models/db.go
6.52% <0%> (-1.38%)
:arrow_down:

models/surveys.go
63.82% <56.09%> (-5.47%)
:arrow_down:

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 d329763...240a3b9. Read the comment docs.

 US102: INT User to Create a CE - After R17/18 (M)

 US101: INT User to Create a Survey - After R17/18 (L)

these changes look good to go, although there is an extra step needed for the jenkins build/deploy jobs to include the db-migrations folder in the built artifact


allow http server to follow logical links

keyword_Apach_http resolution_fixed   |    by<EMAIL_ADDRESS>
We are running out of disk space for users' home directories on accessdev. Some users who run Rose/cylc need to make soft links from '$HOME/cylc-run' to '/g/data' to store files related to Rose/cylc - particularly log files. Those log files are best viewed through a brower. However the Apache http server running on accessdev does not allow soft links. If the http server configuration can be changed then it will allow soft links to /g/data while maintaining the ability to view log files from Rose/cylc.

Issue migrated from trac:115 at 2024-01-31 18:04:54 +1100

<EMAIL_ADDRESS>commented

Advice and questions sent to Jin Lee

the appropriate place for the log files if such a quantity of log files is needed is on
accessdev:/scratch/users/$USERNAME
Some questions about these log files :

is the many GBs of data from the log files required ?

is this rather an issue for the user to clean up the old log files ?

are the settings for generation of log file data producing too much info ?

Putting the log files on /g/data1 shifts the accumulation of these files to a location which is for the storage of large data files needed on permanent disk.
I do not think transient log files fit this description ?
<<<<<<<<<<<<<<

<EMAIL_ADDRESS>commented

For some context of where this usage is going:
$ du -hs ~jtl548/*
1.2G	/home/548/jtl548/UM_OUTDIR
11G	/home/548/jtl548/cylc-run
8.0K	/home/548/jtl548/public_html
468M	/home/548/jtl548/roses
24K	/home/548/jtl548/scripts
1.6M	/home/548/jtl548/umui_jobs

Run sizes in cylc-run are up to 3.3 GB, mainly consisting of large numbers of log files from the HPC, e.g. /home/548/jtl548/cylc-run/au-aa105/log.20140504T132346Z/job/ has 17,274 log files.
The largest files are UM output log files with verbose information at each timestep, eg. this repeated 1500 times for each file:
Atm_Step: Timestep     1512   Model time:   2014-02-12 03:00:00
MPPIO: Open: xbjioa_pa123 on unit  60
  ==============================================
  initial Absolute Norm :<PHONE_NUMBER>65047
  GCR(                     2 ) converged in                     48  iterations.
  Final Absolute Norm :   7.454793505123521E-003
  ==============================================
Q_POS: unable to conserve on  29 levels

 Minimum theta level 1 for timestep                   1512
                This timestep                         This run
   Min theta1     proc          position            Min theta1 timestep
      226.55     809    27.8deg W      71.7deg N       220.75     1
  Largest negative delta theta1 at minimum theta1
 This timestep #    -9.35K. At min for run    -2.23K

  Maximum vertical velocity at timestep                   1512
       Max w this run
    w_max   level  proc         position           run w_max level timestep
   0.211E+01  37  330   65.0deg W    -26.5deg S    0.328E+01   39   381

  ***** Maximum wind speed at timestep                   1512  ******
                 this timestep                     this run
 level  max wind   proc     and   position      max wind at timestep
    1  0.281E+02  668  50.6deg W    43.8deg N    0.349E+02   336
    2  0.325E+02  668  50.6deg W    43.8deg N    0.407E+02   133
    3  0.350E+02  668  50.6deg W    43.8deg N    0.441E+02   138
    4  0.365E+02  668  50.6deg W    43.8deg N    0.462E+02   142
    5  0.376E+02  668  50.6deg W    43.8deg N    0.477E+02   142
    6  0.387E+02  668  48.5deg W    43.6deg N    0.489E+02   145

...

   69  0.878E+02  273  85.8deg W   -38.7deg S    0.159E+03   159
   70  0.909E+02  381 135.7deg W   -13.8deg S    0.129E+03   324

  Maximum horizontal wind at timestep                   1512
       Maxau-aa105 wind this run
    max_wind   level  proc         position      run max_wind level timestep
   0.115E+03  66  688  145.9deg W     48.3deg N    0.165E+03   66   746

Is this information useful to have enabled for every run, and are people actually looking at the log files?

<EMAIL_ADDRESS>removed milestone (was Future)

<EMAIL_ADDRESS>commented

I have talked to Jin and he is going to use accessdev:/scratch/users to store his log (stdout/stderr) files for now.
This may still raise the issue of visibility through apache ?
He is testing this and will advise.
He will also review settings to reduce output quantity.
He explained requirement as needing to save experiment output for review, possibly a month or more worth of files, to ensure everything has worked as expected.
Write up of experiments for papers has prompted this requirement in the past.
Once experiment is done then he will tar and archive files to tape, if needed.
Robin

<EMAIL_ADDRESS>commented

Milestone Future deleted

<EMAIL_ADDRESS>changed resolution from `` to fixed

<EMAIL_ADDRESS>changed status from new to closed


Turn on CSPM for AWS in Azure while CloudGuard is turned down\off - Forge

Describe the issue
Turn on CSPM for AWS in Azure while CloudGuard is turned down\off in AWS, for cost saving for now and still have CSPM functionality in the meantime.
Additional Context
CSPM in Azure is enabled and requires only the AWS & GCP data streams to be turned on, to analyze our two other CSP's as well.  In this ticket we will be focusing on the AWS enablement implementation.  This will also allow us to investigate this new multi-platform CSPM tool's functionality and explore for any limitations.
ref: SPIKE 2208
Acceptance Criteria

Review the connectivity procedure previously researched in prep for initial connection
Review with Warren\Max for the AWS context and review any procedural difficulty
Turn on Azure CSPM for AWS in Assembly enviro
Test this functionality and troubleshoot
Create further tickets to investigate further for more fully understanding its operation, best practices and capabilities

.
.
.
.
.
.
.
.
.
.
.
Extra Template Info
Definition of Ready
These set of conditions will need to be met in order to bring a ticket into the sprint and start work. Protects the team from unclear requirements.
Issues (Task/Story/Spike) aligned to an EPIC and linked appropriately.
Assigned to the appropriate CPF MEMBER (and is not left blank in ZenHub) at the start of sprint (1st day of the sprint)
Acceptance has been defined for the issue and has been reviewed with CPF team and approved by the necessary approver.
Has been sized and estimated by the delivery team.
Detailed breakdown of the steps required to complete the story in the additional context
Any additional specifications have been documented, reviewed with CPF and approved by the necessary approver.
Acceptance Criteria
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.
It should be testable with no room for interpretation
It should be either “pass” or “fail”
It should be clear enough for business stake holders to understand
As part of the user story, it should be written from the user perspective
A well written acceptance criteria is great for

managing expectations
defining scope
reducing ambiguity
establishing testing criteria for QA
Given (Pre-condition)
When (Action)
Then (Outcome)

Definition of Done
These set of conditions are met for work to be considered as complete on an issue.
All acceptance criteria(s) have been validated.
All the necessary documentation for the issue has been uploaded to Teams.
Functionality has been tested when applicable.
Functionality has been demonstrated to the relevant stakeholders (where applicable).
Story has been scheduled for a Sprint Demo/community update and impacted teams invited to the Demo.
Stories accepted by PO and documented for potential sharing with impacted users.

Documented = Captured in Community Update (CU) deck
Release notes = aspirational goal of providing a bulleted list of features and changes that our users can touch. Was going to store them in our Cloud Pathfinder repo. Can also display to users in the CU

Initial investigation and meetings held.  Caveats have been explored and looks like there should be no issue for this level of CSPM meta data read feed into Azure CSPM.  Considerations for next level of CSPM integration (to inside the VM level) requires licenses\costs so we'll be keeping it simple for now.  Planning for install done and will be executing this AWS Connector install shortly

This Defender CSPM connector was implemented for the Forge enviro and up additional review no issues were identified.  Moving to Live implementation as next phase of implementation and thereafter we'll run analytics on its performance and associated costs (separate tickets).  Closing

Closing ticket


doc: unit tests documentation refers to non existing sample code

http://docs.zephyrproject.org/subsystems/test/ztest.html#quick-start-unit-testing
Refers to samples/testing/unit/ which does not exist anymore:
bd989a79bae2791f7365325c16769442e26cab51

in all fairness, bug should be assigned to @jhedberg  who removed that code :)

Ah, there's still a left-over in the documentation. I removed the part that CI grumpy, but seems this part didn't cause any CI warnings.

Is it really so that the net_buf test was the only available unit test to make references to? It'd have been nicer to refer to some other test than remove the references complete.

Actually, this is exactly what I removed from the documentation. Perhaps we just need to wait for the online documentation to be regenerated?

FYI, docs are generated nightly about 11PM GMT

My bad => I close it


Sync application container

Description
Update code on a provisioned device using Resin CLI resin sync command
Steps to reproduce issue

Install resin cli with npm i -g resin-cli
Login with resin login. If testing on staging, prepend RESINRC_RESIN_URL=resinstaging.io to this and all subsequent resin commands.
Clone this test node js application on your laptop and provision a device with it.
Wait until the application is marked as running on the dashboard.
Enable and navigate to the Public Device URL. Confirm that the web server shows a Hello World message.
Edit server.js of the cloned application so that res.send() returns a different message, e.g. res.send('Hello Resin Sync!')
Run resin devices to get the device uuid of the provisioned device.
Ensure that your resin account has at least one RSA or DSA key -preferably RSA- that is also loaded in your ssh-agent. Use ssh-add -l to check the loaded keys.
Run time resin sync <short device uuid> -s . -d /usr/src/app within the test application folder (i.e. the folder of the edited server.js file). For staging run time RESINRC_RESIN_URL=resinstaging.io resin sync <short device uuid> -s . -d /usr/src/app

Expected result
Expected result

The sync process should start with status messages appearing on each step ('Stopping application container...', 'Syncing..', 'Starting application container...').
At the end of resin sync a "resin sync completed successfully!" message should appear.
The device's Public Device URL should now show the new message, e.g. 'Hello Resin Sync!'

Actual result
$ RESINRC_RESIN_URL=resinstaging.io resin sync d64a5a0 -s .
╭──────────────────────────────────────╮
│                                      │
│   Update available 5.0.0 → 5.1.0     │
│   Run npm i -g resin-cli to update   │
│                                      │
╰──────────────────────────────────────╯
Notice that you might need administrator privileges depending on your setup
? Destination directory on device [/usr/src/app]
Getting information for device: d64a5a0
resin sync failed. ResinRequestError: Request error: tunneling socket could not be established, cause=socket hang up
Other information
Reported by: Florin Sarbu
Test configuration: VIA VAB820
Test case number: TC14
Test run: https://resinio.testlodge.com/projects/16238/runs/230391?tab=2&run_section_id=253434&executed_case_id=10655752#executed_case_10655752

ResinRequestError: Request error: tunneling socket could not be established, cause=socket hang up generally means that the device was not accessible via the VPN. This usually means that either the device has not come up online yet (i.e. has not connected to OpenVPN) or that its connected but the specific service/port wasn't accessible from the VPN interface.
The former case is generally self-correcting, when the device eventually comes up online. In the latter case, we need more investigation. So in any case, we can close this ticket since we don't have more information about what happened in this particular case.