Cannot find module "boring-router" when using workspaces

Im using yarn workspaces (yarn version 3.2.2) and adding boring-router and boring-router-react to one of my workspace projects in the mono-repo.
Unfortunately typescript is unable to find the module.
This is strange as the modules have been installed in node_modules they just get hoisted up to the top level as usual:

But for some reason the project cannot find them.
Do you know why this is? I dont seem to have any issues with any other dependencies.

That's interesting, and yarn has v3 now? I'll test it in minutes.

yep, tho I dont think its a v3 specific issue just a worspaces issue, you would probably have the same problem with earlier versions or npm workspaces

I currently use yarn v1 (hoisted up) and pnpm (not hoisted), and they both seem to work. Does the color in the module list mean anything?

Here is the example repo showing the issue: https://github.com/mikecann/boring-example
Not sure, there are other directories colored the same:

I guess it's something related to yarn pnp, trying to find a fix.

ye its odd as no other repo has the issue.. might be worth looking at the differences in the package.json between boring and others?

@mikecann That would surprise me as exports is now wildly adopted. But maybe because it's missing the default export. I'll try to add that. But if that doesn't work, I'll have to come back later for this problem.

okay thanks

@mikecann Welcome but unfortunately not working. Will investigate this evening.

okay no worries, I eagerly await your investigations. I have used boring in the past and have really enjoyed it, would love to get it going again.

@mikecann Okay actually you are right, I added main and types and it's working now (try 0.5.21-alpha.1). (I feel blessed never upgraded to yarn 2+.)
I still use it in my latest projects but don't get much time promote it. Any other issue please let me know. ;)

wooo nice! thats seems to have it :)

That's interesting, and yarn has v3 now? I'll test it in minutes.

yarn 4 was released three days ago 😝

Here is the example repo showing the issue: https://github.com/mikecann/boring-example
Not sure, there are other directories colored the same:

Based on the example project you provided, there might be another possible solution. The main cause of this issue is likely the moduleResolution configuration in the tsconfig.json file. If it is configured as node, it will not recognize the exports configuration in the package.json.
check this


Nuxt 3 does not respect layouts in separate folders

Environment
Nuxt Version

nuxt:  v3.0.0 rc-4

Reproduction
Steps to reproduce
On a clean Nuxt 3 install.
Create a layout inside a folder like.
layouts/mobile/custom.vue
Use it in a page as follows.
<NuxtLayout name="mobile/custom">     some code ... </NuxtLayout>
Describe the bug
When I create a layout inside a folder like "layouts/mobile/custom.vue" and use it inside of "pages/index.vue" on a clean install of Nuxt 3 as follows.
<NuxtLayout name="mobile/custom">     some code ... </NuxtLayout>
It does not work, I don't know if this feature is not supported yet or if it is a bug, because when I went through the Nuxt 2 info I found this which came out thanks to an issue of this exact same problem in Nuxt 2
Adds support for folders in /layouts nuxt/nuxt.js#12765
Normal layout use like Nuxt 3 documentation works just fine, "layouts/custom.vue" inside of "pages/index.vue" like this.
<NuxtLayout name="custom">     some code ... </NuxtLayout>
What is Expected?
Is expected to work exactly as normal layouts would.
What is actually happening?
Got an error in console as if the layout does not exists.
Invalid layout "mobile/custom" selected.

Yep agreed this needs to be implemented

@danielroe I created a pull request for a fix on this issue. Please check it out in the following link. —>  https://github.com/nuxt/nuxt/pull/20190

@danielroe Any update? I need this enhancement to create the following structure;
layouts
 ┣ Corporate
 ┃ ┣ Corporate.layout.scss
 ┃ ┗ Corporate.layout.vue
 ┗ Default
 ┃ ┣ Default.layout.scss
 ┃ ┗ Default.layout.vue

it works on nuxt2:
<script>
...
layout: 'Corporate/Corporate.layout'
..
</script>

But it didn't work on nuxt3
<NuxtLayout name="Corporate/Corporate.layout">
In addition, it would be very useful if you could add this defining support for defining default and error layout

https://github.com/nuxt/nuxt/pull/20190#issuecomment-1604336353
Feel free to open a new PR taking my comments into account if you have time.


Quote Generator

I want to add the quote generator build with pure html, css and javascript.

go ahead 🚀

@irshadmd
This issue was assigned to me but someone already created a pull request. Should i continue and create the pull request for this issue.


fix/grouped bar tooltip

:tada: This PR is included in version 1.3.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Bug: OpenAI  doesnt work even when chat2db:latest docker successfully run

Chat2DB Version
3.1.19
Describe the bug

in docker
2024-01-22 08:09:34.512  INFO 1 --- [io-10824-exec-6] a.c.server.web.start.log.EasyLogSink    .69 : 4a1581adac814bb18d31313428aab606 | http : GET|/api/config/system_config/ai|61||*"su*ces*":t*ue,*err*rCo*e":*ull*"er*orM*ssa*e":*ull*"er*orD*tai*":n*ll,*sol*tio*Lin*":n*ll,*dat*":{*api*ey"*"sk*z0Z*3Nj*vO5*DmG*EZR*T3B*bkF*sZM*Rqx*NXq*qKS*teE*","*ecr*tKe*":"*,"a*iHo*t":*","*ttp*rox*Hos*":"*,"h*tpP*oxy*ort*:""*"ai*qlS*urc*":"*PEN*I",*str*am"*tru*,"m*del*:""*,"t*ace*d":*ull*

Apply also works

2024-01-22 08:10:41.393  INFO 1 --- [io-10824-exec-7] a.c.server.web.start.log.EasyLogSink    .69 : 18a4762bc2c74642ab90039a5bd27c76 | http : POST|/api/config/system_config/ai|195|*"ap*Key*:"sXXXXX",*sec*etK*y":*","*piH*st"*"",*htt*Pro*yHo*t":*","*ttp*rox*Por*":"*,"a*Sql*our*e":*OPE*AI"*"st*eam*:tr*e,"*ode*":"*}|*"su*ces*":t*ue,*err*rCo*e":*ull*"er*orM*ssa*e":*ull*"er*orD*tai*":n*ll,*sol*tio*Lin*":n*ll,*tra*eId*:nu*l}

but when i successfully created ClickHouse datasource
I can't get any text to sql, just nothing happens

2024-01-22 08:12:59.019  INFO 1 --- [io-10824-exec-2] a.c.s.w.s.c.c.Chat2dbWebMvcConfigurer   .141 : 4165791ae9ed47f6a52134d38bb43888 | 访问host:<IP_ADDRESS>:10824,connection:keep-alive,sec-ch-ua:"Not?A_Brand";v="8", "Chromium";v="108",accept:text/event-stream,uid:b4c51db9-3356-4596-ac67-58a8f41854bd,dbhub:null,sec-ch-ua-mobile:?0,user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) chat2db/3.1.19 Chrome/108.0.5359.215 Electron/22.3.27 Safari/537.36,sec-ch-ua-platform:"Windows",sec-fetch-site:cross-site,sec-fetch-mode:cors,sec-fetch-dest:empty,accept-encoding:gzip, deflate, br,accept-language:en-US,,http://<IP_ADDRESS>:10824/api/ai/chat需要登录
2024-01-22 08:12:59.022  INFO 1 --- [io-10824-exec-2] a.c.server.web.start.log.EasyLogSink    .69 : 4165791ae9ed47f6a52134d38bb43888 | http : GET|/api/ai/chat?message=show+top+commenters+in+2023+and+2024+from+github_events+table&promptType=NL_2_SQL&dataSourceId=2|4||null:[166]

What i'm doing wrong?

@miahemu could you share version number or commit which show us bug really fixed?

@miahemu could you share version number or commit which show us bug really fixed?

Sorry, we have fixed the problem that custom AI cannot be used. You are talking about OpenAI. I made a mistake.


GetEnvironmentStrings&FreeEnvironmentStrings memory management is missing

Hello,
<wil\Resource.h> could have a unique_environment_ptr to handle the call to FreeEnvironmentStrings.
wil::unique_any could do it but a wil specialisation would help avoid mistakes and typing (which are goals of wil aren't they? :-) )
Thanks for the great library!
Jean

If by typing you mean "mixing unique_any specializations", it's not possible because each specialization is a different type.

I just meant keyboard presses :-)

This could go in wil/win32_helpers.h:
    using unique_environstrings_ptr = unique_any<PWCH, decltype(&::FreeEnvironmentStringsW), ::FreeEnvironmentStringsW>;

And then:
    unique_environstrings_ptr e{ ::GetEnvironmentStringsW() };
    RETURN_LAST_ERROR_IF(!e);

Isn't the _ptr suffix misleading if it is a unique_any specialization?
Any reason why win32_helpers.h over resource.h, where all the other unique_any specializations are?


Changed misleading statement on logging drivers

…ogs command to include the output of multiple logging drivers."

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Ready for @L-Hudson's editorial review

Deploy preview for docsdocker ready!
Built with commit 47f4b7d2314d18b56020e0c78a26ed867b565a53
https://deploy-preview-7869--docsdocker.netlify.com

good to go!


spec: the introduction to 'For statements with range clause' fails to mention range-over-func

The introduction of the paragraph on For statements with range clause fails to mention the range over function:

A "for" statement with a "range" clause iterates through all entries of an array, slice, string or map, values received on a channel, or integer values from zero to an upper limit [Go 1.22]. [...]

and also

The expression on the right in the "range" clause is called the range expression, its core type must be an array, pointer to an array, slice, string, map, channel permitting receive operations, or an integer.

Similar Issues

spec: add range over int, range over func #61405

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Note also that the statement

If the range expression is a channel or integer, at most one iteration variable is permitted, otherwise there may be up to two.

is not accurate, as func(func() bool) does not allow iteration variables, and func(func(V) bool) allows at most one iteration variable.


Error building on nixos-unstable

Hi, I'm currently using nix-alien in my system derivation and I've recently updated nixpkgs to 7e52b35fe98481a279d89f9c145f8076d049d2b9, this broke my derivation build with the error:
error: 'nixFlakes' has been renamed to/replaced by 'nixVersions.stable'

I've traced it back to nix-alien which uses the now deprecated nixFlakes and removing nix-alien from the derivation does fix the build.

Closed by 8da508a.


The defination of 10-shot

Thanks for your outstanding works first.
Here is a question about the defination of 10-shot.
I think every images shoud have access to 10 images for each class.
Your "trainval10shot.txt" files contain 200 different images, and some of which images contain more than 1 class. And your code use all these gt-bboxes in the 200 images.
So in this way some class may have access to more than 10 images.
Thanks.

Yes, you are right. We did this because limiting the number of object for each class is too difficult and manually selecting images is unfair to evaluate different semi-supervised methods.
In fact, the term "10shot" here is acutally indicating 10-15 object for each class.  As a sequence, to fairly evaluate previous semi-supervised methods, you have to use the same train/test split and that's why we share our split here.
By the way, we found about 1.5-3 objects in average for each class.

Ok.
Thanks for your reply and thanks for providing these train/test splits.


Auto indent still misbehaving

Atom 0.154 on Mac OS.

Code below (make sure your syntax mode is CoffeeScript). Follow the instructions therein.
$ ->
  $(window).load ->

# Copy the below and paste it on the line below $(window).load ->
# Make sure the cursor is indented one level in from $(window).load (col = 5)
    if 2 is 2
      celebrate()

Please help me test my pull request on Windows :)


Optional spiderfy sort function

It would be awesome if order in which markers were displayed in the spiderfied spirals was able to be customized. My use case: I want to use single marker mode and have my markers be pie charts. I'd like to be able to sort the single marker nodes so that markers of the same color are all grouped together.

For example in this screenshot I'd like to be able to have a meaningful orderering to the colors displayed in the spiral.

How did you get donut charts working? I've been struggling with this, and have been considering switching to a different plug-in

@Neato-Nick I'm using react and as such react-leaflet and react-leaflet-markercluster. The pie chart is from react-svg-piechart so you could take a look at their implementation. I use the iconCreateFunction provided by leaflet-markercluster which returns a divIcon.
L.divIcon({
      html: ReactDOMServer.renderToStaticMarkup(
        <div>
          <span
            style={{color: childCount === 1 ? 'white' : ''}}
            className={`cluster-count${childCount === 1 ? ' single' : ''}`}>
              {totalCount}
          </span>
          <PieChart data={data}/>
        </div>
      ),
      className: `pie-cluster`,
      iconSize: new L.Point(size, size)
    })


imports not reporting errors

I'm using external modules in typescript.  I have two imports:
import {IDashWidgetData} from  '../data/IDashWidgetData';
import {ITabularData} from  '../../data/ITabularData';
The files are both in the same directory, and the correct path is the bottom one. However, the top is not reported as an error in the TypeScript editor (1.7.0.v20151201-1631).     When actually compiling (command line) , using the typescript compiler, it fails to compile (cannot find module ...).  If I get the name wrong (e.g: '../data/IDashWidgetDataZZZ' or '../dataZZZ/IDashWidgetData'), the editor correctly reports it as an error.
Basically, if I give it a path that could be valid,  depending on where you start from, then the editor doesn't report it as an error (but the compiler does).

Hmm, that's not good. The errors reported by the plug-in are from the TypeScript language services so this might either be a bug in how the service is being used or the service itself. Its likely going to be a while before I'll have a chance to look into this so if you'd like to take a shot at a fix I'd love to take back the PR.

@mconner try setting  module to commonjs. If that fixes it (starts giving error) report back :rose:

@basarat good idea!

@basarat  I already had "Module code generation:"  in Preferences>TypeScript>Compile  set to CommonJS.  (Sorry for the delayed response.  I thought I had responded already.)

this appears to be fixed in 1.8


Add chunked encoding for H264

This will allow distributed encoding and massively parallel, with the goal of encoding a 3 hour video in 5 minutes.

Using ffmpeg -i source.mxf -c copy -map 0 -f segment -segment_list output_segments.list -segment_time 60 destination%03d.mxf
This would eliminate the need for using -t and -ss as each source file would be the entire length of the segment
The audio will still need to be encoded as one single file without any muxing


LINQ named parameter proposal

LINQ named parameter proposal: Use an generic extension based model to generate parameters.
ex:
IOrderedbyQueryable<T> tmp = ...;
tmp.Where(e => e.Org = CosmosExtenson.WithNamedParameter<T>("@orgName", "Value1" );

/cc: @khdang , @simplynaveen20 , @sboshra , @bchong95

There exists some alternative:
public IQueryable BuildSomeQuery(param1, ... , param2)
{
	IOrderedbyQueryable<T> tmp = ...;
	tmp.Where(e => e.Org = param1);
}

But if LinqExtenson.CreateNamedParameter<T>("@orgName", "Value1" )

The issue with the alternative is param1 can be any type of object, and each param can be a different type. I think the inline method would be the better user experience has it makes it easy to see what the parameter name and value will be in the same line.


Not working with error message "E730: using List as a String"

Hi,
After installing your plugin  I tried it with the examples you're giving in the README but I get this error message with different alignment examples:
Error detected while processing function simple_align#align[10]..simple_align#tokenizer#lines_to_tokens_list:
line    1:
E730: using List as a String
E15: Invalid expression: a:lines->copy()->map("s:line_to_tokens(v:val, a:delimiter, a:options)")

My configuration:
NVIM v0.5.0-dev+1168-g1df1098b0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

... using packer.nvim with lua
use 'kg8m/vim-simple-align'

Any configuration I've missed?

@wimstefan Thank you for reporting. I updated the plugin. Can you try it?

Looking good 😏
Thanks for the fast fix 🙏🏼


[ISSUE] Single Chart - Standby user on master node got no password

Issue
So i've installed the single chart, version 0.10.0, and tested around with the credentials in different ways, everytime with the same result. The standby user doesn't get set up with his password on the master node in the following cases, while the correct password gets written to the .pgpass.patroni file on the replica. The result is, that the replication won't work without manually setting up the user on the masternode after the deployment of the chart.
Reproduction
Case 1:
[...]
values:
  env:
    - name: PATRONI_SUPERUSER_USERNAME
      value: postgres
    - name: PATRONI_SUPERUSER_PASSWORD
      value: $password
    - name: PATRONI_SUPERUSER_SSLMODE
      value: disable
    - name: PATRONI_REPLICATION_USERNAME
      value: standby
    - name: PATRONI_REPLICATION_PASSWORD
      value: $password
[...]

Case 2:
[...]
values:
  secrets:
    credentials:
      PATRONI_SUPERUSER_PASSWORD: $password
      PATRONI_REPLICATION_PASSWORD: $password
[...]

Case 3:
[...]
values:
  secrets:
    credentialsSecretName: "timescaledb-single-credentials"
[...]

with following secrets.yaml applied to the cluster
apiVersion: v1
kind: Secret
metadata:
  name: timescaledb-single-credentials
data:
  PATRONI_SUPERUSER_PASSWORD: $password
  PATRONI_REPLICATION_PASSWORD: $password
  PATRONI_admin_PASSWORD: $password

How did i check it
Check in every case:

postgres@timescaledb-single-0:~$ psql
postgres=# SELECT * FROM pg_authid;
[...]
 17540 | standby                   | f        | t          | f             | f           | t           | t              | f            |           -1 |                                     |
    10 | postgres                  | t        | t          | t             | t           | t           | t              | t            |           -1 | md5*** |

postgres@timescaledb-single-1:~$ cat .pgpass.patroni
<IP_ADDRESS>:5432:*:standby:$password
postgres@timescaledb-single-1:~$ cat .pgpass
*:*:*:postgres:$password
postgres@timescaledb-single-1:~$

Logs
[...]
2022-02-21 14:34:01 UTC [982]: [6213a2d9.3d6-1] [unknown]@[unknown],app=[unknown] [00000] LOG:  connection received: host=<IP_ADDRESS> port=34370

2022-02-21 14:34:01 UTC [982]: [6213a2d9.3d6-2] standby@[unknown],app=[unknown] [28P01] FATAL:  password authentication failed for user "standby"

2022-02-21 14:34:01 UTC [982]: [6213a2d9.3d6-3] standby@[unknown],app=[unknown] [28P01] DETAIL:  User "standby" has no password assigned.

	Connection matched pg_hba.conf line 8: "hostssl   replication     standby            all                md5"

2022-02-21 14:34:01 UTC [984]: [6213a2d9.3d8-1] [unknown]@[unknown],app=[unknown] [00000] LOG:  connection received: host=<IP_ADDRESS> port=34372

2022-02-21 14:34:01 UTC [984]: [6213a2d9.3d8-2] standby@[unknown],app=[unknown] [28P01] FATAL:  password authentication failed for user "standby"

2022-02-21 14:34:01 UTC [984]: [6213a2d9.3d8-3] standby@[unknown],app=[unknown] [28P01] DETAIL:  User "standby" has no password assigned.

	Connection matched pg_hba.conf line 5: "hostnossl all,replication all                all                md5"

2022-02-21 14:34:06 UTC [986]: [6213a2de.3da-1] [unknown]@[unknown],app=[unknown] [00000] LOG:  connection received: host=<IP_ADDRESS> port=34428

2022-02-21 14:34:06 UTC [986]: [6213a2de.3da-2] standby@[unknown],app=[unknown] [28P01] FATAL:  password authentication failed for user "standby"

2022-02-21 14:34:06 UTC [986]: [6213a2de.3da-3] standby@[unknown],app=[unknown] [28P01] DETAIL:  User "standby" has no password assigned.

	Connection matched pg_hba.conf line 8: "hostssl   replication     standby            all                md5"
[...]

Can confirm this issue on a fresh install of the 0.11.0 version of the Single chart.
I ended up having to create the role + set password + set login/replication status manually in Postgres, then the rest of the StatefulSet spun up and stabilized.

Same here

How can I resolve this issue? It is present on chart version 0.33.1. But I didn't have it before. A week ago I tried to re-deploy and started having the issue, before that it worked. I did not change the chart version or anything else weird.

Other logs:
2023-08-23 07:40:20 UTC [46199]: [64e5b7e4.b477-1] [unknown]@[unknown],app=[unknown] [00000] LOG:  connection received: host=<IP_ADDRESS> port=32836 2023-08-23 07:40:20 UTC [46199]: [64e5b7e4.b477-2] standby@[unknown],app=[unknown] [28P01] FATAL:  password authentication failed for user "standby" 2023-08-23 07:40:20 UTC [46199]: [64e5b7e4.b477-3] standby@[unknown],app=[unknown] [28P01] DETAIL:  Role "standby" does not exist.         Connection matched pg_hba.conf line 8: "hostssl   replication     standby            all                md5"
Replica errors:
  Defaulted container "timescaledb" out of: timescaledb, tstune (init) 2023-08-23 08:34:11,475 ERROR: Error creating replica using method pgbackrest: /etc/timescaledb/scripts/pgbackrest_restore.sh exited with code=1
I'm also using the chart version 0.33.1
So to troubleshoot the issue, I have:

I deleted the replica's pod, but the command hung without completing.
To address this, in an another terminal, I deleted the Timescale's endpoints using the approach outlined in this issue:
https://github.com/timescale/helm-charts/issues/317
It's a bit brutal, but it led to a positive outcome.

It's seems that there is a problem with the endpoint creation;


generate mlx-community/Meta-Llama-3-70B-Instruct-4bit doesn't halt at <|eot_id|>

from mlx_lm import load, generate
message = "What is the capital of France?"
prompt = tokenizer.apply_chat_template([{'role': 'user', 'content': message}], tokenize=False)
print(prompt)

the prompt printed:
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
What is the capital of France? <|eot_id|>
I used the HG chat template helper to generate this. However, when I run
response = generate(model,
                    tokenizer,
                    prompt=prompt,
                    temp=0.5,
                    verbose=True,
                    max_tokens=100,
                    top_p=0.85,
                    repetition_penalty=1.5
                    )

it doesnt halt at <|eot_id|>, assuming this is indeed the right "end of text" for this model tokenizer. A little debug inside generate (at mlx_lm.utils.py), it seems to be hardcoded like:
if token == tokenizer.eos_token_id:
      break

so I decided to do a hack:
if token == tokenizer.encode('<|eot_id|>')[0]:
    break

I am not familiar with the usual convention how HF or mlx handle this, is this something that should be fixed? or there's something wrong with the way I use tokenizer.apply_chat_template?

A better "hack":
tokenizer.eos_token_id = tokenizer.encode('<|eot_id|>')[0]
Or I found out one can just fix the config json, but this requires me to do this every time I update the module, so the above is better for my case since I can just adjust this at runtime.

I think if we update the special tokens map it should work. I just changed it to be <|eot_id|> here https://huggingface.co/mlx-community/Meta-Llama-3-70B-Instruct-4bit/blob/main/special_tokens_map.json#L10

Yes I meant the server cli, it could be a useful fix. Thanks!


[Errno 2] No such file or directory: u'c:/program files (x86)/steam\userdata\1770116100\config\shortcuts.vdf'

This happens when I first run ICE and I cannot install it because of this issue
log.txt
attached log

You don't actually "install" Ice, on Windows. You just extract the contents of its zip archive to a folder and run it from there. So, you have it as installed as it can be.
I'm guessing you edited the [Steam] section of the config.txt file. I would first try leaving that entire section commented out (put the "#" in front of each line in the section) so that Ice ignores it. That part of my config.txt is commented out and it works fine. It seems that Ice already has a pretty good idea of where to look for Steam. If you do REALLY need to use that section, if it cannot find your Steam directory, then it looks to me like you mistyped the directory location.

Windows computers use the backslash ("") for file paths.
I'm not sure about case sensitivity, but I always specify file paths on all operation systems with exact case sensitivity, so unless you changed something, yourself, "program files", "steam", and probably the drive letter "c:" should all be title capped.

So the file path it is trying to access should read "C:\Program Files (x86)\Steam..." (ignore the ellipses "...")
I also don't know why after "steam" it then switches to double backslashes. I'm assuming that's all added on by Ice and would work if the section of the path up through "steam" were corrected. But if you did type that whole file path in, I'd be curious where you entered it and why you used double backslashes.
I hope this helps.

My config file doesn't have a steam section so I'm betting I can just add it and set the right location and it will work, thanks


Using Ubuntu 18.04 to run efinity

I got this message when running efinity in Ubuntu 18.04
cannot execute binary file: Exec format error

Which Efinity version you use? Have you check the file permission?

The problem had been solved previously. These are the versions info:
buildroot 2021.05.3
u-boot 2021.04
opensbi 0.9
Linux kernel 5.10
gcc 8.4
Now I can load Linux but it got stuck while booting for almost 24h.

The software version stated are not Efinity software. Please open another ticket for new issue.

I already opened a new ticket (issue 5)


To let users import CSV/GPX/GeoJSON

Without upload it if it's possible. MapContrib is not a datacenter, and the user must not wait for a 30 MB upload.

without upload ?
i don't understand how you can import csv without upload ?

when you display these kind of datas, edit mode seems to be accessible, but it's not possible to edit.
Hide edit' mode for csv/geojson/gpx layers

without upload ?

I think it means that the javascript from MC could display a local data file directly in the browser, without sending it to the instance.

ahhhhhhhh, thanks :)

when you display these kind of datas, edit mode seems to be accessible, but it's not possible to edit.

It's fixed in 0.10.3

without upload ?

I think it means that the javascript from MC could display a local data file directly in the browser, without sending it to the instance.

That's it but I don't know yet if it's possible with Leaflet.

After some digging it seems to be possible :)
I will implement it tomorrow.

Done! :)
It introduces the concept of temporary layers. A user, even anonymous, can add a layer based on OverPass or a GPX/CSV/GeoJSON file.
The files are not sent to the server so a 30 MB GeoJSON file is displayed instantly on the map.
Whan MapContrib is closed (or the page is reloaded), the layers disappear.
@napo, can you give me the translation for that sentence please?
Those layers are ephemeral. They are only visible by you and disappear after you closed MapContrib.
Thank you very much :)


ModuleNotFoundError: No module named 'diskcache'

Everything was working fine yesterday night (24-04-12) on Google Collab
but this morning I have a sudden error message ending by "ModuleNotFoundError: No module named 'diskcache'"

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  [...]
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/extensions.py", line 9, in <module>
    from modules import shared, errors, cache, scripts
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/cache.py", line 6, in <module>
    import diskcache
ModuleNotFoundError: No module named 'diskcache'

Still, cache.py is there
I have no idea what happened during the night
Reseting all folders and redownloading Automatci 1111 from TheLastBen doesn't solve the issue

OK, I solved this by just adding a line code into the collab sheet and writing:
pip install diskcache
Then run this line

Everything is solved

Can't use mov2mov

OK, I solved this by just adding a line code into the collab sheet and writing: pip install diskcache
Then run this line

Everything is solved

Thank you for sharing this quick fix! 👌😎👍- I too was also puzzled this morning when it had seemingly broken overnight!

I got a error when I code 'pip install diskcache'
What is wrong?
File "", line 2
pip install diskcache
^
SyntaxError: invalid syntax

I got a error when I code 'pip install diskcache', just before "Start Stable-Diffusion" What is wrong?
File "", line 2 pip install diskcache ^ SyntaxError: invalid syntax

Yeah, I also got this syntax error at first too, but I'm not sure what causes it. Try disconnecting and deleting active runtime, then remove any spaces/empty code lines before and after the pip install diskcache code text. The syntax error highlight magically disappeared for me.
For testing, I just created a blank/new notebook and the syntax works fine when the cell is run. 🤔

Are you sure you add the command line as a new code block ?
You cann add code block by hovering an hidden line above each step (it's quite tricky)

You can also try to add the line upper in the script.
I set it right after Automatic Install

Yeah, I also got this syntax error at first too, but I'm not sure what causes it. Try disconnecting and deleting active runtime, then remove any spaces/empty code lines before and after the pip install diskcache code text. The syntax error highlight magically disappeared for me.
For testing, I just created a blank/new notebook and the syntax works fine when the cell is run. 🤔

I solved the problem to put "!"
!pip install diskcache

I got a error when I code 'pip install diskcache', just before "Start Stable-Diffusion" What is wrong?
File "", line 2 pip install diskcache ^ SyntaxError: invalid syntax

Use " !pip " instead of "pip"

"Running !pip install diskcache upgrades the module to version 1.9, it seems. However, several errors are occurring, and 'move2move' is throwing an error in 'm2m_ui.py', causing it to disappear from the module. "

Post your OK message and error message


Bug with position in 360° equirectangular recording option

TLDR: All 6 camera positions in the 360° equirectangular recording options need to be moved back by 0.610 blocks.
A small change needs to be made to the 360° equirectangular recording option, the camera needs to be moved backwards by 0.610 blocks. This is because Minecraft's camera sphere (The furthest away area that the game's camera can move to) is 0.610 blocks big. This is fine for normal recording, as it simulates your head being slightly ahead of your body's core, but for 360° recordings, it is a problem that needs to be fixed.
In case my words aren't clear enough, here is a demonstration that I took using version 3.6.1-ShaderSync.
The coordinates for this first image are X: 401.0, Y: 126.610, Z: -5.5

As you can see in this image, the camera facing down is perfectly inside the block, despite the fact that it should be 0.610 above the block. This is how I determined that the camera needs to be moved back by 0.610 blocks.
The coordinates for this second image are X: 401.0, Y: 126.611, Z: -5.5

Here I have moved the camera 0.001 blocks upwards, and now the camera is 0.001 blocks away from the block below the camera. Again, the Minema's camera position here is 0.611 blocks above the grass, but it appears 0.001 blocks away because of this bug.
You can also see in this image that the cobblestone block closest to the camera has been chopped in half.  This is also why none of the positions line up.
The coordinates for this third image are X: 401.5, Y: 126.8, Z: -5.5

This is a best-case scenario. The camera in Minema has been moved multiple blocks above the grass below it, so that hopefully the effect is less noticeable, however you can still definitely see the bug.
The cobblestone block from the second picture has also been fixed, however, this is because Minema's camera position has been set to be in the middle of the block, because of course, the edges of the frames are at 45° and so the edge of the block is all within one frame.
If you guys need any more info to fix this issue, please ask. I am happy to provide them.

@NyaNLI you might want to take a look at this.

Sorry, no offense, but this issuse is caused by this code in your shaderpack
position = gbufferModelView * position;
position.z += 0.1;
position = gbufferModelViewInverse * position;

And about the first image, this is because OpenGL discards samples with a depth less than a specific value, for Minecraft this value is 0.05 (after linearization). I can't fix it, sorry.

Wow, that’s fascinating! Thanks for a quick reply, and I suppose it’s not Minema’s bug/issue.
Although, @RYRY1002 thank you very much for such detailed overview in the original message. I suppose you can check whether same shader is having an issue with ReplayMod. If it doesn’t, I suppose it artificially raises camera position or something similar.

Yeah, it's fine. This is a shaderpack I am making myself so I can change the code very easily.

Yeah, thanks for the quick response, don't see that on most Minecraft mods.
Turns out I had implemented that exact code from before Minema had 360 because the mod didn't do that by itself.
Now, of course, it does. So what was happening was that Minema and my shader were both doing that code, overdoing it.
After removing the code, the issue was resolved.
Thanks for the help.
@NyaNLI deserves to be a collaborator I think.

Awesome! I'm glad the issue was resolved! 🥳

@NyaNLI deserves to be a collaborator I think.

Indeed, however, I can't grant collaborator in this repository. Only @daipenger can. @NyaNLI if you want, I can give you collaborator role on mchorse/minema repo.

Thanks for your recognition, but it‘s not necessary I think. My name is already in the author list, so I think that's enough for me. :)


can't unmount: busy after large upload failed

I rsync'ed a directory - or rather, tried to. A large file transfer hanged.


Fix monaco api changes

Hi @martin-fleck-at
I also quickly fixed the vscode integration that it can handle the API changes from the monaco.
But I didn't split the monaco in its own chunck. I think do so will take here more effort...


mod+mobile: fix tool imports for gomobile

Fixes https://github.com/lightningnetwork/lnd/issues/5589.

Solved by checking out lnd inside of $GOPATH.


chore(deps): update dependencies

The new dependencies are induced by internal refactor of libraries, but duplicates are mostly avoided.
Remaining duplicates can be avoided by updating picky dependencies, and windows-related crates.
cc @TheBestTvarynka, do you think you could look into updating the windows crates?

do you think you could look into updating the windows crates?

yes, I can. I'll look into it

sspi, ffi, and winscard crates have some dependencies in common. I think we can introduce a few workspace dependencies:
* `uuid` (used by all of them)
* `tracing` (used by all of them)
* `time`, `rsa`, `sha1`, etc (used by `winscard` and `sspi`)

I can do it in a separate PR if you think it's a good idea

I’m fine with that, but FYI I opened a PR to enable dependabot PRs.
Here is how I like to go about it:

Enable dependabot and leave it update the Cargo.toml files automatically (so we don’t really care about being DRY in the manifests)
Put all internal crates as workspace dependencies
Also include tracing, because we often need logs everywhere
Just roll with that without caring too much about which dependencies are repeated or not

I leave it up to you!


Fix build timestamps

There were two (related but not equal) concepts confused:

A build timestamp using during build time, that is the stored in the artifacts for controller and the cli, so that it can be read during runtime and checked for compatibility
A "stable timestamp" used by scripts loading prebuilt artifacts

For the first one, it can now be specified in the secrets directory. The second one is the one checked in Github is now called STABLE_BUILD_TIMESTAMP. We'll change that one every time we have a newer stable build.

Any reason why the changes to setup.py, etc. are part of this?

@SamirTalwar hmmmm. There are no changes to setup.py in the "resulting pr". If you mean Pipfile, the story is a bit convoluted: I started trying to set a "default timestamp" in as few places as possible, I tried removing the default from setup.py and then I realised about the change needed to Pipfile. The default in setup.py needed to be set anyway (but the changes to Pipfile weren't isolated from the rest of the changes). So maybe it works if I revert the changes to Pipfile + lock and then I commit those separately, but I don't think we were being that fussy about PR splitting.


Misalignment of org-table caused by targets and links

Can you give me quick solution/work-around?
(face-remap-add-relative 'org-link :fixed-pitch t) does not work

The quickest one would be to make links fixed-pitch everywhere by customizing the face; I don't have a clean solution for just tables at the moment.

Yes, but how can I change a face exactly? (face-remap-add-relative 'org-link :fixed-pitch t) does not work.

Oh, sorry I didn't understand -- this should do it.
(set-face-attribute 'org-target nil
                    :inherit 'fixed-pitch)
(set-face-attribute 'org-link nil
                    :foreground "#0000ff"
                    :inherit 'fixed-pitch)


feat(edge-groups): edge group creation view

Closes #3632

todo: fetch 10 endpoints, and search in server after fetching (endpoints-selector)


Anki-bin: fatal runtime error when start with QT_QPA_PLATFORMTHEME=qt5ct

Describe the bug
After upgrading to nixpkgs with qt6ct support #220054, anki-bin only starts with QT_QPA_PLATFORMTHEME=. This is a problem with anki-bin, anki runs fine
Steps To Reproduce
Steps to reproduce the behavior:

add qt options to your configuration:

  qt.enable = true;
  qt.platformTheme = "qt5ct";

run anki

Expected behavior
Anki is running fine
Additional context
name_snrl in ~
> anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/platformthemes/libqt5ct.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/2w9dx3p0pna6qhvqbd2gwr161fnd35v9-qtstyleplugin-kvantum-1.0.10/lib/qt-5.15.9/plugins/styles/libkvantum.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/styles/libqt5ct-style.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/61144vb0azc42vdgrimmn2r54d4icqlr-fcitx5-qt-5.0.17/lib/qt-5.15.9/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so:
  Plugin uses incompatible Qt library (5.15.0) [release]

thread 'main' has overflowed its stack
fatal runtime error: stack overflow

The same errors about incompatibility of libraries, but it runs:
name_snrl in ~ took 7s
x QT_QPA_PLATFORMTHEME= anki
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/platformthemes/libqt5ct.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/61144vb0azc42vdgrimmn2r54d4icqlr-fcitx5-qt-5.0.17/lib/qt-5.15.9/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/2w9dx3p0pna6qhvqbd2gwr161fnd35v9-qtstyleplugin-kvantum-1.0.10/lib/qt-5.15.9/plugins/styles/libkvantum.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/styles/libqt5ct-style.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Starting main loop...
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/name_snrl/.local/share/Anki2/addons21/111623432/external/sentry_sdk/worker.py", line 66, in start
    self._thread = threading.Thread(
  File "threading", line 845, in __init__
  File "threading", line 1239, in _make_invoke_excepthook
RuntimeError: sys.excepthook is None
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "logging", line 2141, in shutdown
  File "logging", line 1066, in flush
RuntimeError: wrapped C/C++ object of type ErrorHandler has been deleted

name_snrl in ~ took 21s

Notify maintainers
@mahmoudk1000 @Atemu
Metadata
> nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.6-zen1, NixOS, 23.11 (Tapir), 23.11.20230801.9e1960b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - nixpkgs: `/nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source`

No idea how to debug this and anki-bin will likely be marked as deprecated or even removed in the not too distant future.

Perhaps @Scrumplex has an idea what could cause this though

It seems to work fine for me :thinking:
Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Wayland support is disabled by default due to bugs:
https://github.com/ankitects/anki/issues/1767
You can force it on with an env var: ANKI_WAYLAND=1
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/platformthemes/libqt5ct.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning: In /nix/store/5074yaq8nx3nzg3ir1lvb4zsiwy1knyx-qt5ct-1.7/lib/qt-5.15.9/plugins/styles/libqt5ct-style.so:
  Plugin uses incompatible Qt library (5.15.0) [release]
Qt warning:   OpenType support missing for "Fira Sans", script 15
Starting main loop...

Note that anki-bin is an atrocious package.
It breaking in such ...unique ways is somewhat expected.


[ErrorException]   Undefined property: Illuminate\Routing\Router::$app

Laravel Version: 5.5.#
PHP Version: 5.6
Database Driver & Version:

Description:
[ErrorException]
Undefined property: Illuminate\Routing\Router::$app
Steps To Reproduce:

solve

Kindly close this issue


Burger menu functionality

On mobile screen, burger menu isn't functioning.

Can check the Javascript to see what's wrong


I was poking at Dan's search viz, and I think we need to scrub our tmdb data a bit more...

Go to http://search-viz.dev.o19s.com:81/#!/ and search for Zombies..  It may be super specific to Zombies, as a query, but what we get is a bunch of garbage....
I looked in splainer:
http://splainer.io/#?solr=http:%2F%2Fquepid-solr.dev.o19s.com:8985%2Fsolr%2Ftmdb%2Fselect%3Fq%3Dtitle:zombie ANd title:Corona%26fl%3Dtitle id vote_count&fieldSpec=title id vote_count
We currenlty look for a vote_count greater than zero, but I think maybe, to have recognizable movies, we need to do a higher vote_count.
https://github.com/o19s/tmdb_dump/blob/master/scrub_and_shrink.py#L33
I'm thinking, in poking around, that having a vote_count of 100, might help.  lots of crap zombie movies!
Alternatively, maybe @worleydl you want search viz to filter to vote_count > 100?

Yes that's an option.  The current query is kinda busted in searchviz,
heavy boosts on title, no way of knowing the degree of genres so there's a
lot of noise.  My goto of bruce willis movies got busted because the roast
of bruce willis conquers all with the title boost now.
On Thu, Oct 8, 2020 at 11:37 AM Eric Pugh<EMAIL_ADDRESS>wrote:

Go to http://search-viz.dev.o19s.com:81/#!/ and search for Zombies.. It
may be super specific to Zombies, as a query, but what we get is a bunch of
garbage....
I looked in splainer:
http://splainer.io/#?solr=http:%2F%2Fquepid-solr.dev.o19s.com:8985%2Fsolr%2Ftmdb%2Fselect%3Fq%3Dtitle:zombie ANd title:Corona%26fl%3Dtitle id vote_count&fieldSpec=title id vote_count
We currenlty look for a vote_count greater than zero, but I think maybe,
to have recognizable movies, we need to do a higher vote_count.
https://github.com/o19s/tmdb_dump/blob/master/scrub_and_shrink.py#L33
I'm thinking, in poking around, that having a vote_count of 100, might
help. lots of crap zombie movies!
Alternatively, maybe @worleydl https://github.com/worleydl you want
search viz to filter to vote_count > 100?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/o19s/tmdb_dump/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEWGZ4EQWBIU2DVA4XTMB3SJXMENANCNFSM4SI5M6MQ
.

A popularity slider based on vote_count would be nice.  Then you can find
your favorite actors worst movies!
On Thu, Oct 8, 2020 at 1:12 PM Daniel Worley<EMAIL_ADDRESS>wrote:

Yes that's an option.  The current query is kinda busted in searchviz,
heavy boosts on title, no way of knowing the degree of genres so there's a
lot of noise.  My goto of bruce willis movies got busted because the roast
of bruce willis conquers all with the title boost now.
On Thu, Oct 8, 2020 at 11:37 AM Eric Pugh<EMAIL_ADDRESS>wrote:

Go to http://search-viz.dev.o19s.com:81/#!/ and search for Zombies.. It
may be super specific to Zombies, as a query, but what we get is a bunch of
garbage....
I looked in splainer:
http://splainer.io/#?solr=http:%2F%2Fquepid-solr.dev.o19s.com:8985%2Fsolr%2Ftmdb%2Fselect%3Fq%3Dtitle:zombie ANd title:Corona%26fl%3Dtitle id vote_count&fieldSpec=title id vote_count
We currenlty look for a vote_count greater than zero, but I think maybe,
to have recognizable movies, we need to do a higher vote_count.
https://github.com/o19s/tmdb_dump/blob/master/scrub_and_shrink.py#L33
I'm thinking, in poking around, that having a vote_count of 100, might
help. lots of crap zombie movies!
Alternatively, maybe @worleydl https://github.com/worleydl you want
search viz to filter to vote_count > 100?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/o19s/tmdb_dump/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEWGZ4EQWBIU2DVA4XTMB3SJXMENANCNFSM4SI5M6MQ
.


fix build & remove qemu

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


UI fixes

WE2-390
Signed-off-by: Raul Metsma<EMAIL_ADDRESS>

Great work all in all, many thanks for your efforts!


Does it support show only a day?

I know it can show only a week when fixedHorizontally is true, but does it support show only a day?

Try using numberOfDays=1

Thanks guy, so timely and accurate!


Add bash completion for fpm response file

Hi,
Thank you for the project.
I have added bash completion for fpm.rsp files here: https://github.com/gha3mi/fpm-completions
May I send a pull request?
Best,
Ali
[Edited]: I am not a zsh user, so I am unable to provide the same for zsh. Perhaps, this could be easily added for the zsh script too.

Hi.
Thank you for using this package.
It would be helpful if you could send a pull request, I can easily check how it works, so please feel free to send me pull-request.
By the way, I have never used the functionality of the file fpm.rsp, so if you have a simple reference on how to use it,
I think I can do a review promptly.
Regarding the same completions on zsh, I will intend to check the contents before reflecting them in the zsh's code.


non-SPMD xmap maybe inserts more singleton dimensions than necessary?

(@apaszke to respond at his leisure, since I know he has a deadline)
I'm looking at using AWN in xmap. The most basic use would be to check for resource conflicts, so I wrote a test like this:
@ignore_xmap_warning()
@with_mesh([('x', 2)])
def testResourceConflict(self):
  fm = xmap(lambda x, y: x + y,
            in_axes=(['a', ...], ['b', ...]), out_axes=['a', 'b', ...],
            axis_resources={'a': 'x', 'b': 'x'})
  x = y = np.arange(6).reshape(2, 3)
  fm(x, y)

The jaxpr for this (the one traced to in mesh_callable) is
{ lambda  ; a b.
  let c = reshape[ dimensions=None
                   new_sizes=(1, 1, 3) ] b
      d = reshape[ dimensions=None
                   new_sizes=(1, 1, 3) ] a
      e = squeeze[ dimensions=(1,) ] d
      f = squeeze[ dimensions=(1,) ] c
      g = broadcast_in_dim[ broadcast_dimensions=(0, 2)
                            shape=(1, 1, 3) ] f
      h = broadcast_in_dim[ broadcast_dimensions=(1, 2)
                            shape=(1, 1, 3) ] e
      i = add h g
      j = broadcast_in_dim[ broadcast_dimensions=(0, 1, 4)
                            shape=(1, 1, 1, 1, 3) ] i
      k = reshape[ dimensions=None
                   new_sizes=(1, 1, 1, 3) ] j
      l = transpose[ permutation=(1, 0, 2, 3) ] k
      m = reshape[ dimensions=None
                   new_sizes=(1, 1, 3) ] l
  in (m,) }

I think I understand some but not all of the singleton dimensions? This is using the non-SPMD lowering, so I'd expect named sub-axes that become replica axes to never be materialized positionally...
(I think we'd expect many/most of these broadcasts/reshapes/transposes to be removed by XLA, but probably not all—certainly anything at the jit boundary has to stay—and in general singleton dimensions are not always free on TPU.)

I vaguely remember us talking about it and I think that the issue has been since fixed. The snippet you posted now correctly raises an error, but I tried running
@jtu.with_mesh([('x', 2), ('y', 3)])
def testPlayground(self):
  fm = xmap(lambda x, y: x + y,
            in_axes=(['a', ...], ['b', ...]), out_axes=['a', 'b', ...],
            axis_resources={'a': 'x', 'b': 'y'})
  x = np.arange(2)
  y = np.arange(3)
  fm(x, y)

and the jaxpr I get in mesh_callable looks reasonable:
{ lambda  ; a b.
  let c = squeeze[ dimensions=(0,) ] a
      d = squeeze[ dimensions=(0,) ] b
      e = add c d
      f = broadcast_in_dim[ broadcast_dimensions=(  )
                            shape=(1, 1) ] e
  in (f,) }

so I think it should be ok to close this now.


Fix/layout updates

This PR moves the poll listing to the associate server page. The layout was refactored to merge together the two pages. Additinoally some fixes for the breadcrumbs were added.


Mule Runtime Single Process Security

Mule runtime is capable of hosting multiple APIs in a single process by design.
It appears to me that if Java process is compromised an attacker can gain access to all data that Java process normally has access to.  This includes access to configuration file that contains key used to decrypt encrypted properties files.  An attacker potentially gains access to  all of memory used by said compromised process.
How does MuleSoft runtime mitigate process compromise issue when multiple MuleSoft applications are co-located in the same environment?
The following is a specific example of a risk of single process impact on security of the system.
Let's say I have System level API as recommended by MuleSoft architectural diagrams.  This system level API has access to Cosmos DB master key.  Its one and only purpose is to query Cosmos DB for permission tokens. Process and Experience level APIs request resource tokens from System level API.
If the same Java process hosts Experience level API and System Level API, then if attacker successfully compromises Experience level API such attacker automatically compromises System level API due to the fact that it is the same Java process.
As far as I know standard mitigation practice is defense in depth.  If system level API is implemented in another application, executed by another user and is possibly located on a different machine, then attacker does not automatically gain access to Cosmos Master Key after penetrating 1st API level (experience level API).
When I apply this strategy to MuleSoft it means that I have to deploy several MuleSoft cluster environments in production.  These environments would have to be separated by security boundaries, which do seem to align well with Experience, Process and System APIs.  That in tern means that we have to deploy 3 separate cluster environments in production.  Am I correct or am I missing something?
Or is MuleSoft runtime somehow guarantees that co-located APIs don't get  all compromised when Java process is compromised?  Am I missing something?
I certainly would like to know what the security guarantees of MuleSoft product are and where the silver line is.
Thank you

I did not realize it was a documentation project for runtime.


Error when making discord.js server

i am getting the error Missing binary: $npm when installing a discord.js server with template

Hi! Can you please provide more info on your issue ?
Have you set up docker to work with pufferpanel ? I remember making the template docker only.
Some specs(a neofetch screenshot) would be useful.

npm isn't installed, install it using your packagemanager and restart pufferpanel service afterwards.

npm isn't installed, install it using your packagemanager and restart pufferpanel service afterwards.

yea, the default environment requires all the node stuff to be installed by the user, unlike docker

@kirbster7 did any of the fixes above work ? do you have any more issues? if not, you can close the issue


Create process for shipping preforms to customers.

Similar as the process for caps, but the difference should be that if we sell 20.000 pieces, and scan a qr-code and change the amount to 7000, one Sales_Shipment_Line is created with that qr-code and 7000 pieces.

this is an issue - we are creating 1 line for each extra aantal !!  If you have such amounts it will be a nightmare

we will need to have the types defined when we create 1 LINE and when we create SEPARATE LINES

When: "Posting_Group":"PREFORM"
create 1 Sales_Shipment_Line with
"Quantity": = extra aantal
"Unit_of_Measure_Code":"STUKS

Test order VO2100071, for 10.000 preforms. I scanned  qr-code and put 1.000 in Extra aantal, 1 line was created but counts as 1, not as 1000.

Does not work, but we can make it much easier, we will never send part of a preform pallet, just ship the pallet and make sure the pallet amount is transfered to NAV in STUKS.

VO2100073 scanned pallet preforms with 11143 pieces(Stuks), Samsa sends 1 STUKS to NAV.

Not solved scanned a pallet on order VO2100092, does register the pallet on the order but does not count the quantity.
shipping to nav will count it as 1.


Pex should support some form of verifiably reproducible resolve.

Supporting requirements files with hashes would help #429, but even then the results of indirect dependencies are not pinned and could vary if the requirements presented do not form a closure. Being able to inform Pex that the requirements presented are a closure and that it should do no more than fetch distributions at most but not transitively attempt to resolve / fetch their dependencies, etc would help fill out a full solution. This would allow a lock file to be presented and used to guarantee a reprodcible resolve or fail fast.

Mostly solved by https://github.com/pantsbuild/pex/pull/775
That change allows us to install a list of URLs, provided as positional args, with no transitive resolution.
We may still want an option to provide that URL list from a file, but that can happen in a followup.

Closed in https://github.com/pantsbuild/pex/pull/775
That change allows us to install a list of URLs with no transitive resolution.


How to clone to specific groups?

Currently the pull option cannot receive both an array of groups to put into and the 'clone' string.
I want to be able to specify both:

the 'clone' string to instruct the Sortable that I want to clone the dragged item
an array of group names where I want to be able to drag the cloned element into

How can I do this?

Clone accepts a function. Checkout the second JSBIN in the docs here https://github.com/SortableJS/Sortable#group-option
This will guide you on the right track.


If S external interrupt is injected to S with mvien & mvip than there is no clear rule to determine its priority

If we inject S-mode external interrupt (SEI) with virtual interrupts mechanism (mvien & mvip) we need to know it's priority

to put it to stopi.IPRIO
to use it for S-mode interrupt arbitration (if several interrupts are pending in sip register)

If we inject SEI interrupt we can't get its priority from IMSIC HW and we can't get its priority from S-mode iprio array (as iprio.SEI (bits 15:8 of iprio2) must be read-only zero).
For other S-mode interrupts the AIA spec defines algorithm to determine priority if corresponding field is 0 in S-mode iprio array:

However such rules can't be used for SEI as it only covers the cases when default priority is either lower or higher than SEI (which is not true if we are checking about SEI itself)
So, what is the rule for SEI interrupt priority in case of injection?

Hi, I have same question (https://github.com/riscv/riscv-aia/issues/91) with yours.
ARC mentioned this problem (https://lists.riscv.org/g/tech-privileged/topic/arc_minutes_2024_09_03/108421694), but the solution seems ambiguous. I am also waiting for a more explicit descirption.

As @zhuotianshu says, this issue is a duplicate of #91.  A clearer answer has now been given there.


"something's wrong: no Current.scala in List[Int]RangePosition(Current.scala, 1510, 1510, 1519)" ...

... on trying to auto-complete (l: List[Int]).

Closing in favor of https://github.com/lihaoyi/Ammonite/issues/275

@odersky seems to be your code, any idea?
https://github.com/scala/scala/blob/2.12.x/src/interactive/scala/tools/nsc/interactive/Global.scala#L343
I'm not sure why the presentation compiler is full of printlns anyway... shouldn't there be some proper logging mechanism?


Run scripts/check as part of scripts/test locally

scripts/test ought to be "check the code as CI does", but we weren't running scripts/check as part of it so far so it wouldn't catch issues that would surface in the Check CI job.
Eg this bit me in https://github.com/florimondmanca/ddtrace-asgi/pull/29

Codecov Report

Merging #30 into master will decrease coverage by 35.63%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master      #30       +/-   ##
===========================================
- Coverage     100%   64.36%   -35.64%
===========================================
  Files           9        9
  Lines         348      348
===========================================
- Hits          348      224      -124
- Misses          0      124      +124

Impacted Files
Coverage Δ

tests/applications/raw.py
25% <0%> (-75%)
:arrow_down:

tests/test_trace_middleware.py
53.68% <0%> (-46.32%)
:arrow_down:

tests/applications/starlette.py
66.66% <0%> (-33.34%)
:arrow_down:

tests/applications/fastapi.py
66.66% <0%> (-33.34%)
:arrow_down:

src/ddtrace_asgi/middleware.py
92.3% <0%> (-7.7%)
: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 f48e5f9...a8f714e. Read the comment docs.


Is there a way to consume the api's without an actual http request ?

Something like the tests $this->jsonapi()->get('/api/v1/posts')
but to be used within the app, like maybe \JsonApi::server('v1')->get('api/v1/posts') which will return the json response content ?

Really looking forward to this

Useful feature, looking forward to getting this update as well.

This is exactly what I need!

Ok great, looks like a few people need this so will try to prioritise this.
Out of interest, are people expecting it to be authorised and validated? At the moment that's coupled to a HTTP request due to the way Laravel's form requests work. Or are you not expecting authorisation/validation?
FYI in a future version I'm going to have to decouple authorisation and validation from the HTTP request, so that we can support JSON:API Atomic Operations - but I'm not quite at that stage yet.

I'm also interesting that feature.

Yeah this is likely to be something I work on soon - as I need to decouple everything from HTTP requests to prepare for Atomic Operations, which I'm super excited to use (and is a feature that's been frequently requested!)

Yes, i'm also looking forward to atomic operations :)

In the linked testing issue (which isn't a problem with testing), the solution was to provide the server name to the facade when getting the resource container; however then you also needed to call withServer() on the resource class and give it the same server name.
If a container is derived from a particular server, it should either inject the server throughout whatever it creates, or at least inject the server name - so that any other server dependencies are derived from the same server as the container originated.


Getting Invalid value for

Would love to get this working with my react app.  (0.14)  But I keep getting:
Error: Invalid value for <path> attribute d="\\\"M243.621"
I've tried with several svg files.  Same results with each.  Any ideas what could be missing?
Thanks in advance.

Thanks for report! I will look into it.

@seethroughtrees Can you provide more detailed message/log and failing svg's content? But any svg causes error is fine and will be very helpful :)
I have tried with more complex SVG examples (for instance, Firefox logo) and didn't see problems yet. path element's d attribute should start with 'M' but it seems like slashes are inserted from some point. Currently this loader does not do any insertion behavior, so it could be simple-html-tokenizer bug... but we will see.

Thanks so much for looking into it @sairion .
I tested with Firefox logo you linked, and am getting the same Invalid value for path.. issue.
I'll try to give some more info here:
Using React with Redux:
    "react": "^0.14.0",
    "react-dom": "^0.14.0",
    "react-modal": "^0.6.0",
    "react-pure-render": "^1.0.2",
    "react-redux": "^4.0.0",
    "react-router": "^1.0.0-rc3",
    "redux": "^3.0.4",
    "redux-actions": "^0.8.0",
    "redux-logger": "^2.0.4",
    "redux-thunk": "^1.0.0",

My webpack.config has the loader:
{
        test: /\.svg$/,
        loader: 'svg-inline'
      },

I'm using the component like this:
<IconSVG src={require('svg-inline!../../icons/bug.svg')} />
I think the problem is related to the value being returned in the src attribute:
module.exports = "<svg xmlns="\"http://www.w3.org/2000/svg\""><path d="\"M243.621"<PHONE_NUMBER>9999995C190.747 213.312 205.34 304 205.34 0 160.031-64 10.812 96.625 1.562 99.625-20.688C736.558 607.375 696.746 580.5 644.746 569.75z\"></path></svg>"

I'm imagining it shouldn't contain anything before/after the svg tags.  Unless that's supposed to be stripped somewhere else.
Thanks again for the help.

Okay I got it!
So the problem is that because I was defining the loader in the config AND the template, the file is being by parsed  by webpack twice.
Two easy fixes, in case anyone else runs into this:
#1.  Remove the loader from your config.
OR
#2.  Add a bang at the front of the inline require and it will bypass the other loaders.
<IconSVG src={require('!svg-inline!../../icons/bug.svg')} />
Hope this helps someone else in the future.

Thanks for the detail! I will add some note to README prevent this. :+1:

with the latest loader (or webpack 2.2) you can do this in your react component:
<InlineSVG src={require("file.svg")} />


Electron support!

Electron support seems stable enough now.
To run, use ./Electron.app/Contents/MacOS/ node-music-player/ electron
I think.

This shouldn't break anything that already exists, so it should be safe to pull.

I just realized this was an accidental pull request. It isn't ready for public use yet (I meant to submit this to my own fork)
Oops.

Ohhhh okay all good.
Yeah I was about to have a rant about code quality :P

commit names too :)


Fix the use of test_rng in tests

I've noticed this while working on https://github.com/AleoHQ/snarkVM/issues/986; with the way test_rng is currently used, we're neither benefiting from its speed nor the determinism it provides in case a test fails.
While I continue to work on the aforementioned issue, this adjustment is useful on its own.

Cc https://github.com/AleoHQ/snarkVM/issues/986 for the CI failure :slightly_smiling_face:
rng seed:<PHONE_NUMBER>568970952

This is a fantastic and simple solution to this problem :). Maybe we can add a test_rng_from_seed method to make it easy to use the printed seed?

@Pratyush it's already there: https://github.com/AleoHQ/snarkVM/pull/999/files#diff-4e91c8c3a15ee7a262cfe30f8d4b8e486f1c13d5ea7e08ff92a549bbbd5b46c7R54 :slightly_smiling_face:

Oops, I should read more carefully before commenting. This looks fantastic then :)

@howardwu applied the requested changes :+1:


Adds files for testing C4BB

Description
Adds some rest files for testing C4BB and getting the system setup with search parameters and profiles
Related issues
N/A
Testing
Describe how this change was tested.
FHIR Team Checklist
[X] Update the title of the PR to be succinct and less than 50 characters
[X] Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
[X] Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
[X] Tag the PR with Azure API for FHIR if this will release to the managed service

Review squash-merge requirements

Semver Change (docs)
Skip

@Ivanidzo4ka LMK if this is easier to manage :)

Yeah, it's much easier to operate over C4BB.http file.
I think it's ok in it's current state, but if you willing to spend some more time I would do:

rename txt files to json so they can be opened as json files.
move all resources from C4BB_Sampl_Resources to files, it's a mix bag now of two first resource are in files and rest are in http file.

@Ivanidzo4ka - I'll fix the json files now but will have to close and recreate :)
On the other piece with being consistent, I'm trying to pass in IDs into the resources so maybe they have to be directly in the http file? Do you know a way around this?

/azp run


QA new modals on not-so-common browsers

E.g. IE10/11, older FF versions etc.
Also test on IE edge, http://dev.modern.ie/tools/vms/mac/
by request from @xavijam
cc @saleiva @iriberri

There has been no activity on this issue for more several months. We are closing it. If you think this still needs to be addressed please open a new issue.


Bug in instructions for SPI

The example in the README for SPI isn't correct; this should be something like:
lcd = LCD(sck=18, tx=19, cs=6)

(also, these docs use "TX" as the name of the SPI output --- it might be helpful for others following along to indicate this is the same as MOSI)
Thanks for this library! It works great :)

Thanks for your feedback. README Doc is updated.


Cannot read property ‚inline‘ of undefined at chrome-extension

Version

Phaser Version: 3.19.0

Operating system: Linux Mint 18.3 (Desktop) / Mac Sierra (Notebook, also here the browser is not responsive suddenly)

Browser: Chrome v79

Description

Suddenly (out-of-nowhere)
I am getting this
Uncaught (in promise) TypeError: Cannot read property ‚inline‘ of undefined at chrome-extension://g…… include.preload.js error
in Chrome, when launching my game in the chrome browser and then my whole computer is super super slow (I hardly manage to close the browser tab -> everything normal then)
In Firefox there is no error message, but it is also very slow, but the game works
Thanks for any hint
Example Test Code

Additional Information

seems like a complete cache clear on the browser helped. Strange that this error happened on all computers and browsers though

this script is part of AdBlock, just reinstall the extension 🤘

this script is part of AdBlock, just reinstall the extension 🤘

Thats it! Thank you!


keytool error: java.lang.Exception: Alias  does not exist

Hi,
Can you send me logs of the docker of Cortex ?
docker logs cortex


2.x rebase

/cc @olafurpg

Hmm looks like the build is stuck. I'll just merge, because I need the artifact to proceed with paradise 4.x. I have verified that the tests run locally.

Hmmm, I wonder what caused the ci to freeze :/ I restarted the build just to see if it was random or a pattern.

Oh well, the ref doesn't exist anymore. Let's keep an eye out for if this happens again. Seems 2.x ran fine after merge http://drone.geirsson.com:8001/scalameta/scalameta/72


Fix: Memory leak in UndoHistory widget because it never de-registered itself as global UndoManager client (Resolves #148291)

Fix: Memory leak in UndoHistory widget because it never de-registered itself as global UndoManager client (Resolves #148291)
The UndoHistory widget works by making itself the global UndoManager.client. The UndoHistory widget correctly registers itself as that client, but never de-registers itself. That lead to two problems:

When UndoHistory loses focus, it's still the recipient of undo/redo signals.
When UndoHistory is disposed, it's disposed State object still receives undo/redo signals.

This PR de-registers the UndoHistory widget in both of the above scenarios.
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
[x] All existing and new tests are passing.

Thanks fix.  I want to ask if there will be any problems here.
Before the fix, _currentClient would almost never be null. After the fix, it might be null. Will the _handleUndoManagerInvocation method be triggered when _currentClient is null?

I'm not sure what will happen. I suggest that you try the behavior that you're asking about and let us know if there are any new problems.


Fees are distributed to miners even if the transaction can't be applied

When calculating miners' rewards, fees from all transactions in contextually valid blocks are summed up and distributed to miners. Some transactions may not end up being executed (due to wrong nonce, insufficient balance or even non-existing account), but the fee in them still gets distributed.
This can be trivially abused to inflate the money supply.

We have lots of work on this area and the currently implemented solution is obviously lacking in many ways and you didn't even mention smart contract transactions. Even with the restricted set of smart contract transactions - we only know the fee range in advance, but we can't compute how much the tx fee will cost be in practice until we execute them on the current global state.
In my mind this is one of the core cryptocurrency design issues that we must address in the coming weeks that is not resolved yet.
Specifically - I can't see a way how tx fees can be distributed separately form the state transition function itself. In my view, we can only distribute tx fees to smesher for a layer after the state transition function ran on that layer and determined which coin and smart contract transactions are valid, and how much gas was actually spent in each smart contract transaction. So, the tx fee reward is just computed in the wrong time and place in the code. It should be applied to a layer after the GSF was actually executed and the GSF should some the tx fees for that layer based on tx execution.
@lrettig @barakshani @tal-m @iddo333

we only know the fee range in advance, but we can't compute how much the tx fee will cost be in practice until we execute them on the current global state

This is troubling. Why not?

I can't see how tx fees can be distributed separately form the state transition function itself

Agree here - this seems dangerous to me for a bunch of reasons. Maybe the solution is to create some sort of "holding account" that collects all of the fees in a given layer, as the transactions in that layer are applied to the global state. Then, "at the end" of that layer, the contents of that "holding account" are distributed to the miners, in some sort of second, independent STF.

This is troubling. Why not?
The halting problemo :-)

The halting problem

We can't know for sure, but we can "estimate." You can't know for sure in Ethereum for the same reason, but wallets like Metamask still calculate an estimated gas cost (see estimategas).
Also, this is much less of an issue if the language is decidable like clarity. Even if the entire language isn't, individual hardcoded smart contracts could be.

won't this issue be fixed by the needed 0.2 tx processing code and new rewards scheme?

I hope it will, this is why nobody's fixing it for now.


Add gitignore

Simply opening visual studio and editing no files leads to this beautiful changelog:
Maybe excluding everything from the /Schedutalk/Schedutalk.{target}/obj/Debug folders would be useful.

Definitley! Didnt have the time to fix it, assign this issue to me if you want me to have it fixed!

Hmm, I'm fixing it now but I just realized there's not only items from /obj/Debug/, but from for example /bin/ in the droid target folder:
Is it too much to just add all target folders to the gitignore or should that be fine since we didn't plan on editing those anyway?

Uh oh, Visual Studio is trying to find android files in your home directory, I think personal IDE settings may be leaking into the repo because of the lack of gitignore :sob:

I'm gonna go ahead and just add this gitignore and see if I can salvage the user settings situation.

Ok I found a gitignore which is made for Viusal studio. Hopefully that ought to do it

Thats the one I thought about! Nice


Upgrade mocha: 8 → 10

This fixes 1 moderate and 2 high severity vulnerabilities (according to npm audit).

Note: mocha was previously downgraded from 10 to 8 in 7aec2ac2974895f9cb6bb3c4dfe307bb59a6468a due to its missing Node 10 support, but version 8 of better-sqlite3 dropped Node 10 support as well, so this should now be fine.


Validate on export?

Question
First, thanks for this awesome library. It's great!
TL;DR - Would you consider accepting a PR to optionally validate data when calling dict() or json()?
More context:
One of my main concerns about pydantic is the fact that we might exporting data invalid data if you are not careful when creating the instances.
Our workflow often follows this pattern:

Parse / create model instances
Modify those instances
Export data

Ideally we would love to validate before exporting to make sure it exports valid data. Let's say out code contains a bug that introduces an invalid element, I would be like to detect it at some point, at least before we export it with dict().
I have been able to implement this in several ways, and I have a solution that is quite good in terms of performance. I would be willing to open a PR if you think this is an interesting feature.
BTW I'm not sure whether this is already implemented and I just missed the feature - but I doubt it because I don't see any logic for this within dict() / _iter() / _get_value methods.
I found that we could use validate_assignment, however this is not "perfect" because if you change a mutable element it's not going to be validated (e.g. to an existing list of elements you could add a new element that is not compliant with the schema). Also, the validate_assignment performance is far from good for our use cases.
I realize that having mypy on a project might make this somewhat unnecessary (regarding type safety) but we would miss full model validations anyway.

Pydantic version import pydantic; print(pydantic.VERSION): 1.2

I’m amenable to this idea as a concept, but I would much prefer to support it through new functions if possible, rather than additional arguments to dict/json. Those functions already have a large number of logic forks, and each additional check will only slow them down further. And they are potentially hot-loop functions if dealing with large lists or dicts as fields, for example.
One thing to consider: validators can perform modifications to input data that are not idempotent. What would you want to happen if the results were re-validated with a validator that modifies the value?

For what it’s worth, I think if you can address this issue using mypy, I would strongly recommend that instead. Runtime checks cost a lot (as you’ve noticed with validate_assignment), and won’t help address the underlying issue.

Also, as @samuelcolvin has stated on many occasions, pydantic was designed around the idea of eager validation, rather than lazy validation. Given performance is such a priority for pydantic I think it makes sense to prioritize the eager validation and have the user take responsibility for ensuring models remain valid. It seems to me that for most use cases, this could be checked by mypy, or at least the model could be refactored so it could be checked by mypy.
If you have a case you think differs on this point, it would help the discussion if you could share some code / detail.

Hi @javiertejero, interesting idea.
I'm inclined to say "no", I think best that you create your own CustomBaseModel, with something like:
class CustomBaseModel(BaseModel):
    def dict_valdiate(self, *args, **kwargs):
        m2 = self.__class__(**dict(self))
        return m2.dict(*args, **kwargs)

(or something, there are a number of ways this could be altered depending on your exact context).
Reasons:

I suspect this requirement is fairly rare.
It's likely to cause extra confusion.
It could add significant extra complexity.

However I am interested in how pydantic might be able to help with serialisation.
I was looking and django-restful-framework serializers this morning and wondering what the equivalent would be in pydantic land.
See #935 #951 and #317

Thanks @samuelcolvin and @dmontagu
First, thanks for your answers. I wasn't looking for a proposal, I already implemented it, I just wanted to know if you were interested. Well, to avoid more misunderstandings, this is the solution I have in place: https://github.com/travelperk/pydantic/commit/e10f7bef7433120c461cf938cc386da06462cfce
It's the bare basics of the feature that I need, the Config thing can be changed by a parameter (but I guess for now it's enough).
I think the best benefit is for projects where we generate a schema that is consumed by an external service. Because pydantic is great for parsing and consuming data, but without this functionality there are some risks to generate that that does not comply with the schema.
As you can see the solution is literally +4 lines of code and if the validation is disabled there is no performance penalty (it's almost negligible for relatively big schemas, and it's definitely not a bootleneck).
@samuelcolvin The problem with the solution that you propose above is that it does not validate nested models due to the recursive nature of dict(). That why the proper solution requires to override (.dict()).
What I did would be semantically equivalent to:
    def validated_dict(self):
        return self.__class__(**self.dict()).dict()

However the performance is much better if I keep it in the dict because this validated_dict is validating once but running .dict() twice while my other solution overriding dict() is just validating.
Although I forked the project, this is what I actually end up doing for now to avoid compiling to cython myself (this method does not benefit that much of cython compilation apparently, so it is fine for me to keep it in the custom base model):
class MyCustomBaseModel(BaseModel):
    def dict(
        self,
        *,
        include: Union['AbstractSetIntStr', 'DictIntStrAny'] = None,
        exclude: Union['AbstractSetIntStr', 'DictIntStrAny'] = None,
        by_alias: bool = False,
        skip_defaults: bool = None,
        exclude_unset: bool = False,
        exclude_defaults: bool = False,
        exclude_none: bool = False,
    ) -> 'DictStrAny':
        """
        Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
        """
        if skip_defaults is not None:
            warnings.warn(
                f'{self.__class__.__name__}.dict(): "skip_defaults" is deprecated and replaced by "exclude_unset"',
                DeprecationWarning,
            )
            exclude_unset = skip_defaults
        get_key = self._get_key_factory(by_alias)
        get_key = partial(get_key, self.__fields__)

        if getattr(self.Config, 'validate_on_export', False):
            target = self.__class__(**self.__dict__)  # creates a copy, validates it and uses it
        else:
            target = self

        allowed_keys = target._calculate_keys(include=include, exclude=exclude, exclude_unset=exclude_unset)
        return {
            get_key(k): v
            for k, v in target._iter(
                to_dict=True,
                by_alias=by_alias,
                allowed_keys=allowed_keys,
                include=include,
                exclude=exclude,
                exclude_unset=exclude_unset,
                exclude_defaults=exclude_defaults,
                exclude_none=exclude_none,
            )
        }

If you happen to change your minds @samuelcolvin  I would be happy to contribute and try to port the tests I have prepared for my own codebase to cover this functionality. Otherwise people can just use the snippet above, so I feel I already contributed a bit to this great project :)
@dmontagu: Regarding mypy: It's not enough to validate the property values (the type might be valid but the value itself might be invalid, e.g. exceeds a max or the password does not match).
Also the side benefit of this validate on export is that you get serialized with the proper types, and that can be also very useful to ensure serialization to json is done in the right format (e.g. we have some custom types to serialize Decimals with a given number of decimal places).
Cheers.

@javiertejero Your point about mypy makes sense.

With regard to performance, I'm not sure the line indicated below is as cheap as you think it is:
        if getattr(self.Config, 'validate_on_export', False):  # <--- this line
            target = self.__class__(**self.__dict__)  # creates a copy, validates it and uses it
        else:
            target = self

While this won't matter in many cases, when serializing a long list of BaseModel instances, I think the effect would be macroscopic (I would guess to the tune of ~1%, though if an appropriate benchmark showed it was much smaller I would change my mind). We've been consistently aggressive about minor optimizations like this everywhere possible (especially in "hot" functions like this one) and the net effect is substantial.

I think I have three main concerns with regard to this feature:

Everywhere else in the library, Pydantic does validation eagerly, so this feels a little inconsistent
Config settings are especially painful to maintain
It may cause confusion in the presence of non-idempotent types (or validators)

Moreover, I personally think it is outside the scope of pydantic to ensure your model's invariants are maintained in your own code.
That said, I think your implementation is good, and I understand the value this feature provides, so I think I could be convinced to accept it. But I would prefer to see broader interest in the feature first, as I think it adds a non-trivial maintenance burden (an additional fork to test, dependence on re-parsing-behaviors, dependence on the contents of __dict__, etc., making it that much harder to refactor things in a major version update).

re-opened to discuss, but I too am inclined to refuse it.
Python is not a strictly typed language, static analysis mitigates some of the risk associated with that, pydantic helps with other things but if you really need strict typing throughout your application python probably isn't the right language for you.
Also, explicit is better than implicit, given how little work it is to type out another step of model validation, I would be inclined to recommend you call MyModel(**dict(old_model)) manually.

Python is not a strictly typed language, static analysis mitigates some of the risk associated with that, pydantic helps with other things but if you really need strict typing throughout your application python probably isn't the right language for you.

Well, in this case, it sounds like the concern goes beyond types to invariants that most/all languages wouldn't provide at the type-system level. Not to disagree with anything though.

Also, explicit is better than implicit, given how little work it is to type out another step of model validation, I would be inclined to recommend you call MyModel(**dict(old_model)) manually.

@javiertejero did point out (correctly, as far as I can tell) that this has a substantial performance penalty relative to the proposed approach (when making use of the feature).

@dmontagu regarding your comment:

One thing to consider: validators can perform modifications to input data that are not idempotent. What would you want to happen if the results were re-validated with a validator that modifies the value?

I didn't consider this initially. I did a test and it's really bad for the data if the modifications are not idempotent, e.g.:
def test_validator_changing_immutable_values():
    class ValidatorModifyValues(MyCustomBaseModel):
        foo: str
        bar: list

        @validator('*')
        def should_be_shorter_than_3(cls, v):
            return v[:3]

        @validator('bar')
        def pop_a_value(cls, v):
            if len(v):
                v.pop()  # modifies the mutable input list
            return v

    data = {'foo': 'abcdedf', 'bar': [1, 2, 3, 4, 5]}
    vmv = ValidatorModifyValues(**data)
    assert data == {'foo': 'abcdedf', 'bar': [1, 2, 3, 4]}
    assert vmv.dict() == {'foo': 'abc', 'bar': [1, 2]}
    assert vmv.dict() == {'foo': 'abc', 'bar': [1]}
    assert vmv.dict() == {'foo': 'abc', 'bar': []}
    assert vmv.dict() == {'foo': 'abc', 'bar': []}

Having said that I guess it is a bad design/practice for a validator to modify the original value instead of doing a copy. Or at least instead of doing idempotent transformations. So for me this wouldn't be a stopper for the feature.
Regarding the fact that Config options are a burden to maintain I agree and that's why I used the getattr, to reduce that burden.
I also agree the performance penalty is something that might be of concern if your priority is top performance. I benchmarked with this code 1M objects:
def test_benchmark_base_model():
    BaseModel.Config.validate_on_export = False

    class Foo(BaseModel):
        i: int

    class Bar(BaseModel):
        foos: List[Foo]

    size = 1000000
    bar = Bar(foos=[Foo(i=x) for x in range(size)])

    start = time.perf_counter()
    bar.dict()
    dict_time = int((time.perf_counter() - start) * 1000)
    print(f"dict() time: {dict_time} ms")

The results:

2691 ms with pydantic v1.2 and
2938 ms with my first proposal (https://github.com/travelperk/pydantic/commit/e10f7bef7433120c461cf938cc386da06462cfce and
2721 ms with a new proposal using an extra parameter instead of Config (see https://github.com/travelperk/pydantic/commit/9183fe3eea6a184e65148d69789f4efa5dfd5477).

For my current use case I don't worry that much about the performance of dict() because our bottleneck is in a different place, and we are in a lower order of magnitude of objects (so ~30 ms is negligible in our case). However I understand it's not a good thing for pydantic at the moment, unless the community shows an interest on this feature more broadly.

Well, in this case, it sounds like the concern goes beyond types to invariants that most/all languages wouldn't provide at the type-system level.

Right, it's not only about types. Also, Python is our language of choice (for many reasons) and my requirement is to ensure that an http response honors the agreed schema. So it's not about the language at all, but more about API contracts.
I also think this feature is specially interesting during tests and might be disabled in production in some services if we are sure the consumers are capable to verify the responses later. In our case I would enable it in production for services that send responses directly to the browser consumer (where we use a different technology that at the moment assumes the schema is always honored).


Got an error with react server components in v0.7

Bug Report
Note that, the bug you're reporting may have registered in the issues by another user. Even the bug you're reporting may have been fixed in the @next version. In such reasons, I recommend you to check the old issues and reproduct your code with the @next version before publishing the bug reporting issue.
`npm install --save-dev typia@next`

When the same error occurs even in the @next version, then please fill the below template:
📝 Summary
Write a short summary of the bug in here.

Typia Version: 7.0

Reproduction
Playground
git clone https://github.com/ryoppippi/unplugin-typia/
cd unplugin-typia
git switch feature/v07
bun i
cd examples/nextjs
bun run build

the error causes from this file https://github.com/ryoppippi/unplugin-typia/blob/989f2298079269a31d0ed37798c09c479ce00481/examples/nextjs/app/RandomData/actions.ts:
./app/RandomData/actions.ts
  × The "use server" directive must be at the top of the file.
   ╭─[/Users/ryoppippi/ghq/github.com/ryoppippi/unplugin-typia/examples/nextjs/app/Random
 1 │ import * as __typia_transform__randomFormatEmail from "typia/lib/internal/_randomFor
 2 │ import * as __typia_transform__randomFormatUuid from "typia/lib/internal/_randomForm
 3 │ import * as __typia_transform__randomInteger from "typia/lib/internal/_randomInteger
 4 │ "use server";
   · ────────────
 5 │ import typia, { type tags } from "typia";
 6 │ export interface IMember {
 7 │     email: string & tags.Format<"email">;
   ╰────

This is a tricky bug.
When we use directives like "use server" or "use client", the directives should be the top of the file.
However since typia inserts imports before the actual implementation.
Sorry for the edge case....

@ryoppippi Is it possible to take a new line in the "use XXX" statements like below?
"use strict";

"use server";

Or no new line allowed in the "use XXX" statements like below?
"use strict";
"use server";

Don't mind, just be fixed, and sooner be published v7.0.1.

@ryoppippi In the other case, template literal is allowed?
"use strict";

'use server';

`use php`

import typia, { tags } from "typia";

typia.createIs<string & tags.Format<"uuid">>();

"use strict";

"use server";

import typia, { type tags } from "typia";

export interface IMember {
  email: string & tags.Format<"email">;
  id: string & tags.Format<"uuid">;
  age: number & tags.Type<"uint32"> & tags.ExclusiveMinimum<19> & tags.Maximum<100>;
}

export async function randomOnServer()  {
  // return typia.random<IMember>();
  return {
    email: "",
    id: "",
    age: 0
  }
}

This code does work!!

Thank you, PR has been registered, and sooner be published.
https://github.com/samchon/typia/pull/1411


bump dependencies

Applied mkpr on package.json
/tmp/mkpr.sh

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.981%

Totals

Change from base Build<PHONE_NUMBER>6:
0.0%

Covered Lines:
110

Relevant Lines:
194

💛  - Coveralls


Rename test class name

Description
Sync changes from PR https://github.com/Azure/azure-sdk-for-java/pull/32599
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.

Closing it, changed in PR https://github.com/Azure/azure-sdk-for-java/pull/32613


can nanopolish work without a genome alignment?

Hello,
I am working with a short synthetic RNA and looking at the polyA tail by Nanopore sequencing.  Is there a way to run nanopolish on a sequence that does not align to a reference genome?
Thank you!
Yours,
Ha An

The bam file is required. You can try to align the reads to the synthetic genome to generate one.

Thank you!


chore: bring latest azure-vnet

What type of PR is this?
/kind chore

What this PR does / why we need it:
Brings the latest azure-vnet binaries to AB in preparation to release it to AKS
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.39%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2292

Relevant Lines:
2887

💛  - Coveralls


TypeScript "Add missing import" root path and quotes configuration

VSCode Version: 1.20.2
OS Version: Windows Server 2008 R2 Enterprise

Steps to Reproduce:

write some code with type not yet imported to the file ex. x: SomeType;
place cursor on the type - yelow lightbulb shows up in the gutter
click it and select "Import SomeType from "app/common/some-type"

problems which could be fixed with config options:

the inserted "from" path starts with "app" which is kind of absolute but not really - my dir structure is <project>/src/app/..., where  is the folder opened in vscode. in my team we prefer paths relative to the edited file.
the "from" path is surrounded with double-quotes - some projects use single-quotes and tslint shows warnings.

Configuring quotes for missing imports is being tracked upstream: https://github.com/Microsoft/TypeScript/issues/13270
As for using absolute imports, try adding a jsconfig.json file to the root of your project with a baseUrl set:
{
  "compilerOptions": {
    "baseUrl": "./src"
  }
}

This will create imports of the form:
import { abc } from "app/otherFile";

abc()


[BUG] VecNorm.to_observation_norm broken for multiple keys

Describe the bug
The VecNorm transform produces a bug when calling the to_observation_norm method with multiple keys
To Reproduce
gym_env = GymEnv("MountainCarContinuous-v0", device='cpu')
transformed_env = TransformedEnv(gym_env, VecNorm(in_keys=["observation", "reward"]))
transformed_env.rollout(100)
transformed_env.transform[0].to_observation_norm()

Expected behavior
Should return ObservationNorm but gives following error:
...
out += ObservationNorm
TypeError: 'type' object is not iterable

Reason and Possible fixes
Using the VecNorm transform with only one key works - so to do it for multiple keys one can just use it repeatedly with single keys.
Checklist

[x] I have checked that there is no similar issue in the repo (required)
[x] I have read the documentation (required)
[x] I have provided a minimal working example to reproduce the bug (required)

Another bug here:
When using the VecNorm transform with only one in_key, but a key that isn't a pure string, to_observation_norm also fails. There is an easy fix for this: the to_observation_norm method is missing a call to key = self._key_str(key). I will create a pull request to add this if that's okay with you.
An example of this situation might occur for instance in the multiagent setting, where the observations might be stored under the key ("agents", "observation").


Broken links in the Docs and Blogs Page

The following links are to be updated or removed to avoid confusion and 404:
broken link > Source site

https://localhost:5173 > https://developer.tbd.website/docs/web5/build/apps/todo-app-tutorial/
existing docs > https://developer.tbd.website/open-source/contributing/
Verifiable Credentials JSON Schema > https://developer.tbd.website/blog/ssi-tbd-web5/
Governance Forums > https://developer.tbd.website/blog/announcing-the-incubation-program/
Contributions > https://developer.tbd.website/blog/web5-roadmap/
Forums > https://developer.tbd.website/blog/ssi-tbd-web5/
Forum category > https://developer.tbd.website/blog/ssi-tbd-web5/
localhost:3000 > https://developer.tbd.website/docs/ssi/ssi-console/
jwt.io > https://developer.tbd.website/docs/ssi/create-credentials/
https://www.example.com/.well-known/did.json > https://developer.tbd.website/docs/ssi/create-did/
https://example.com/.well-known/did.json > https://developer.tbd.website/docs/ssi/create-did/
SSI SDK > https://developer.tbd.website/blog/web5-roadmap/
SSI Service > https://developer.tbd.website/blog/web5-roadmap/
Decentralized Web nodes > https://developer.tbd.website/blog/web5-roadmap/

Kindly assign me this issue so that i can update the links where necessary and remove links for example cases links.

I'm sorry but I do not understand the issue

for the localhost ones (numbers 1 and 8 above), please leave the text as is and just remove the hyperlink.

Hey @angiejones Are there links for TBD forums and governance forums? if so can you share those links as i am unable to find them

4. https://developer.tbd.website/blog/announcing-the-incubation-program/

You can remove the TBD Forums wording and links. We no longer have a forum. For the governance forum, you can change that to point them to our Discord.
Thanks so much for asking!

Hey @Smartmind12 just checking in! 😊 Do you need any help with this one?

Hey @angiejones @leordev, I see the issue has been idle for a while, can I pick this up?

Hey @Smartmind12 just checking in! 😊 Do you need any help with this one?

My commits are almost ready and i could not make a PR since i was travelling…i am returning today and will make the PR asap!

Hey @angiejones I have done the needful...Kindly review the same!