Did not work with

It seems not working with textarea.
I tried it with pattern tag, but did not react! Changing the textarea to input all will work correctly. For my case it would be much user friendlier to use a textarea!
Is there any way to change the js library that it also works with textarea?

pattern isn't a valid attribute for textareas, so it's not checked by the HTML5 Constraint Validation API.  You can add this yourself with a custom validator though.
http://jsbin.com/vofihiteqa/edit?html,js,output

Can you please have a look at this?
https://codeshare.io/qYee8
I tried your example, but still did not work. The message about required-field works well and also if I change the textarea to input. But do not react in case of textarea and pattern is not "foo".
Thx a lot for everthing in advance!

You need to put data-pattern="YOUR REGULAR EXPRESSION on the textarea

Yes, I know.. But this did not conside in my script.
On your example it only accept "foo" as value. All other will be refused with an error message.
If I type "foo" in my script, it does not do anything.

Oh, I see the problem. You're initializing the plugin in the <head>, but at that point the form isn't on the page so nothing is happening. Move your initialization code to the end of the <body>.

That was the problem. It is no working.
Thx man!

Hi there,
does anyone has an example of using this plug in with summernote?

I am new in javascript.
data-pattern in textarea is not working.


Add getRetainedSize method to SliceInput

Users of this class may need to get an approximation of the retained
size of instances of this class for memory tracking.

This patch is needed for fixing a memory accounting bug in Presto's OrcInputStream.


unable to overwrite sails.config.paths

as stated in #3325 it is not possible to overwrite sails.config.paths as opposed to this readme:
https://github.com/balderdashy/sails/blob/master/lib/hooks/moduleloader/README.md
here an easy to test repo:
https://github.com/japel/sailsConfigPathsTest
files added:
./config/paths.js
module.exports.paths = {
  "models": "api/my/new/models/path"
};

api/my/new/models/path/User.js
module.exports = {

  attributes: {
    name: 'string',
    age: 'integer',
    active: 'boolean'
  }
};

how to test:

clone
npm install
sails console

console.log(sails.config.paths);

outputs:
{ models: 'X:\\sailsConfigPathsTest\\api\\models',
  tmp: 'X:\\sailsConfigPathsTest\\.tmp',
  config: 'X:\\sailsConfigPathsTest\\config',
  controllers: 'X:\\sailsConfigPathsTest\\api\\controllers',
  policies: 'X:\\sailsConfigPathsTest\\api\\policies',
  services: 'X:\\sailsConfigPathsTest\\api\\services',
  adapters: 'X:\\sailsConfigPathsTest\\api\\adapters',
  hooks: 'X:\\sailsConfigPathsTest\\api\\hooks',
  blueprints: 'X:\\sailsConfigPathsTest\\api\\blueprints',
  responses: 'X:\\sailsConfigPathsTest\\api\\responses',
  views: 'X:\\sailsConfigPathsTest\\views',
  layout: 'X:\\sailsConfigPathsTest\\views\\layout.ejs',
  public: 'X:\\sailsConfigPathsTest\\.tmp\\public' }

Although, I was able to overwrite them using sailsrc file...

@japel you're right-- by the time the userconfig hook runs (which loads the files in config/*) it's too late to change paths (because the moduleloader hook has already initialized in order to load the userconfig, whose path is also customizable.
That's one of the main reasons I added sailsrc - to be able to inject config without having to modify your app.js file or use command-line flags.
I'll update the readme to clarify. Thanks for the detailed report.

I see! Thank you for clarifying this.
Its really a pitty, that this is not possible... If this was possible, one could very easily create/separate APIs by some environment variable (e.g. for a customer specific API).
C'est la vie...


Doc: add preprocess example and other extension settings to readme

An attempt document other extension options than svelte.language-server.runtime and to guide some people on how to configure the extension to interpret svelte files that should be preprocessed.
Possibly related to #79, #64, #77, #28, #46, #30

Amazing, thank you!


Create Labels For Contact Form

Is your feature request related to a problem? Please describe.
When I first go to the contact form based on the placeholder text I understand what each input is for.  Once I start typing in the input field we don't have labels.  This can be confusing for the user.
Describe the solution you'd like
Add labels that would also help with accessibility.

Name
Email
Enter your question here

I can do this one!


Compilation error in ubuntu 17.10

I am following this video https://www.youtube.com/watch?v=YgQdECPzDkQ to install Bareflank on my ubuntu 17.10. Accordingly, I did
$ cd hypervisor
$ ./tools/scripts/setup_ubuntu.sh
$ make
$ make unittest
$ make linux_load

I got a warning in the last step ( make  linux_load). the message shows
make -C /lib/modules/4.13.0-32-generic/build M=/home/manohar/hypervisor/bfdrivers/src/arch/linux clean
rm -f ../../../../bfelf_loader/src/bfelf_loader.o
rm -f ../../../../bfelf_loader/src/.bfelf_loader.o.cmd
rm -f ../../common.o
rm -f ../../.common.o.cmd
make -C /lib/modules/4.13.0-32-generic/build M=/home/manohar/hypervisor/bfdrivers/src/arch/linux modules
  CC [M]  /home/manohar/hypervisor/bfdrivers/src/arch/linux/entry.o
nasm -f elf64 -o /home/manohar/hypervisor/bfdrivers/src/arch/linux/vmcall.o /home/manohar/hypervisor/bfdrivers/src/arch/linux/vmcall.asm
  CC [M]  /home/manohar/hypervisor/bfdrivers/src/arch/linux/platform.o
  CC [M]  /home/manohar/hypervisor/bfdrivers/src/arch/linux/../../common.o
  LD [M]  /home/manohar/hypervisor/bfdrivers/src/arch/linux/bareflank.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/manohar/hypervisor/bfdrivers/src/arch/linux/.vmcall.o.cmd for /home/manohar/hypervisor/bfdrivers/src/arch/linux/vmcall.o
  CC      /home/manohar/hypervisor/bfdrivers/src/arch/linux/bareflank.mod.o
  LD [M]  /home/manohar/hypervisor/bfdrivers/src/arch/linux/bareflank.ko
insmod ./bareflank.ko

could any please help me why I am getting this error?
Thanks,
Manohar

On that version of Bareflank, that warning can be ignored. It's just complaining that it cannot find a file that is not automatically being generated because the source is ASM.

Thanks Rian, then in that case, that command works fine.
I have one more doubt,  a few steps later, when I do make dump this one too returns a warning.
WARNING: set_vm_control_if_allowed failed: enable_xsaves_xrstorscontrol is not allowed to be set to 1
DEBUG: success: host os is now in a vm on vcpuid = 0
WARNING: set_vm_control_if_allowed failed: enable_xsaves_xrstorscontrol is not allowed to be set to 1
DEBUG: success: host os is now in a vm on vcpuid = 1
WARNING: set_vm_control_if_allowed failed: enable_xsaves_xrstorscontrol is not allowed to be set to 1
DEBUG: success: host os is now in a vm on vcpuid = 2
WARNING: set_vm_control_if_allowed failed: enable_xsaves_xrstorscontrol is not allowed to be set to 1
DEBUG: success: host os is now in a vm on vcpuid = 3

could you please help me understand  the reason for this warning

What are the spec of your machine? That warning can also be safely ignored. All it's saying is that your system doesn't support xsave in the VM. On our dev branch, that warning has been suppressed.

ls cpu shows
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               69
Model name:          Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
Stepping:            1
CPU MHz:             1696.071
CPU max MHz:         2700.0000
CPU min MHz:         800.0000
BogoMIPS:            3392.14
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            3072K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep
mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2
ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon
pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni
pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16
xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c
rdrand lahf_lm abm cpuid_fault epb invpcid_single pti tpr_shadow
vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2
erms invpcid xsaveopt dtherm ida arat pln pts

Not a big surprise that a mobile CPU doesn't support that feature. You should be fine.

In that video, when you do make dump, you got two windows showing the same message.
What should I do to get a similar setup?
As far as I can understand, in the left side, you ssh into the server and install Bareflank and the on the right side macOS is the VM

One is the serial output. On my setup, I have VMWare dumping the serial output to a file, and then I just tail the file, but you can also setup a serial line and connect as normal.

Tail command is interesting never seen any one using it. All my doubts are clear now. Thanks again Rian :)

My pleasure. Let me know what you think and if what features you would like to see in the future.


Improve repairorphanuser

Only validate UserType SqlLogin and SqlUser

Before this change an database user without login will be seen as
orphaned user.

Do address the issue that @Staggerlee011 found.
@Staggerlee011 can you please test it? Thanks!

@Staggerlee011 messaged me and said that they show up as sqlusers so this does not address the issue
T-SQL - CREATE USER Staggerlee WITHOUT LOGIN

The screenshot only show all users from avatar database. That is right because no filter was applied.
The issue was addressed by filtering the users when getting all eligible.
Please do the test using the -WhatIf as you have done before.

To test use the T-SQL script (at the end) to generate:

Database named 'dbOrphanUsers'
2 logins

UserOrphan
UserNOTOrphan

3 users (one without login)

UserOrphan
UserNOTOrphan
UserWithoutLogin

You can use the following code to view the list (SIDLength is the one that differs):
$srv  = Connect-DbaSqlServer -SqlServer sql2008
$srv.Databases["dbOrphanUsers"].Users | Select-Object Name, LoginType, UserType, State, HasDBAccess, AuthenticationType, Login, @{ Name="SIDLength"; Expression={$_.Sid.Length}} | Format-Table

Then, run the command on this database and ONLY UserOrphan should be removed.


[Bug?]: Deno downloading error - npm package 'uWebSockets.js' does not exist

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
When using the basic Solid Start template with Typescript, running deno task dev will error with the following message:
error: npm package 'uWebSockets.js' does not exist.

Expected behavior 🤔
Deno should be able to download all dependencies listed in package.json and should start the development server
Steps to reproduce 🕹
Steps:

run pnpm create solid and use any name
select "Yes" when prompted for whether this is a Solid Start project
select the "basic" template
select "Yes" when prompted for whether to use TypeScript
run deno task dev in the root directory of the new project
observe error

Context 🔦
I'm playing around with Solid Start in personal web apps and wanted to know if it would work with Deno in development and not just in production. I can't assume it does even though Vite works with Deno because framework authors can still break that compatibility; I've found that to be the case with Astro, regrettably.
Potentially related issues:

#1177, specifically this comment where a contributor points out that Deno is affected by a similar problem
this issue in Deno that the contributor mentioned

There's a chance this bug is upstream, possibly with Vinxi, Nitro, or even with Deno. I just figured I'd start here since I can't exactly pinpoint where the bug actually happens; there's no stack trace or indication of what caused uWebSockets.js to even be included in the downloads.
package.json:
{
  "name": "example-basic",
  "type": "module",
  "scripts": {
    "dev": "vinxi dev",
    "build": "vinxi build",
    "start": "vinxi start",
    "version": "vinxi version"
  },
  "dependencies": {
    "@solidjs/meta": "^0.29.4",
    "@solidjs/router": "^0.13.3",
    "@solidjs/start": "^1.0.1",
    "solid-js": "^1.8.17",
    "vinxi": "^0.3.11"
  },
  "engines": {
    "node": ">=18"
  }
}

Your environment 🌎
$ system_profiler SPSoftwareDataType SPHardwareDataType: (partial)
Software:

    System Software Overview:

      System Version: macOS 14.3 (23D56)
      Kernel Version: Darwin 23.3.0

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Chip: Apple M3 Max
      Total Number of Cores: 14 (10 performance and 4 efficiency)
      Memory: 36 GB
      System Firmware Version: 10151.81.1

$ deno --version:
deno 1.44.0 (release, aarch64-apple-darwin)
v8 <IP_ADDRESS>
typescript 5.4.5

$ node --version:
v22.2.0

$ pnpm --version:
9.1.4

uWebSockets.js is included by crossws. You can replicate this error outside of start by running deno repl and entering import "npm:crossws".
Maybe Deno's npm: resolver doesn't take into account packages that have github: dependencies, since it seems to look for uWebSockets.js on npm?

yeah good call @Brendonovich. Maybe need to file a bug on the deno repo?

https://github.com/denoland/deno/issues/20339#issuecomment-1967957257
-> https://github.com/denoland/deno/issues/22606#issuecomment-2134637706

@ben-laird , run DENO_FUTURE=1 deno task dev

Running DENO_FUTURE=1 deno task dev works as expected. I'll close this issue as completed if you'd like @birkskyum, since this is an upstream issue that's fixed in a future version of Deno.


Update Readme to clarify Xlinker flag to debug builds only

Easy to overlook that this should be added to Debug config only. See https://github.com/krzysztofzablocki/Inject/issues/103

thanks


Click to edit, hit enter, and input stays in Edit mode until the re-execution is complete

I think the input should exit Edit mode as soon as the user hits enter. Another side effect of this (besides the edit icon staying around even after one hits enter) is that our css rules that hide the spinner and duration elements of the input wrapper will not be shown for these re-executions.

fixed


integration within lite-xl

I have recently noticed you completed the plugin.
It is really a nice work and I have seen you found a smart solution to plug the nagbar into the node tree at the right position, well done.
I would like to integrate this plugin directly within lite-xl. Are you interested in contributing a PR ? I guess the only work required is to plug the nagbar view directly from core/init.lua and move it in the core directory.

The plugging mechanism would be much easier if it was directly integrated to core/init.lua since I've got access to everything I need without hacks. I will try.


add tof-administrator for all translated modela dmin on fly

Adding translation on-fly to Model dont added translate possibility in registered ModelAdmin for this model.
The same, it not gives expected widgets to Form Fields in Model Form for translated model.
i made a prototype, but it shold be tested. I search the registered Admins, remove ModelAdmin from bases put TOFADMIN in bases on the last right place,
The same i do with modelforms in translated modeladmin

fixed in fork https://github.com/danilovmy/django-tof


Searching for a way to use yalm-python with pip-licenses

The examples folder is not currently working.
For example, the following lines are causing errors because the modules do not exist:
https://github.com/spdx/yalm-python/blob/ed4bbe205536edcafce745c3d012bf9d802845b9/examples/match_all_ids.py#L8-L12

Supposing I have this json info provided by pip-licenses:
[
  {
    "Author": "Kang Zhang",
    "License": "MIT License; Python Software Foundation License",
    "LicenseFile": "/home/lorrie/jeeny/.venv/lib/python3.9/site-packages/keyring-23.5.0.dist-info/LICENSE",
    "LicenseText": "Copyright Jason R. Coombs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n",
    "Name": "keyring",
    "URL": "https://github.com/jaraco/keyring",
    "Version": "23.5.0"
  }
]

Is it possible to get a set of matching spdx ids, using yalm-python?

The obvious answer is:
license_text = ""
yalm.detect_license(license_text)

However, the following text (just an example) is not getting a match:
"The MIT License (MIT)\n\nCopyright (c) 2014 Jeff Quast<EMAIL_ADDRESS>is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nMarkus Kuhn -- 2007-05-26 (Unicode 5.0)\n\nPermission to use, copy, modify, and distribute this software\nfor any purpose and without fee is hereby granted. The author\ndisclaims all warranties with regard to this software.\n"

https://github.com/spdx/spdx-license-matcher however, detects an "MIT" license when exposed to this text.

FWIW, there are actually:

an MIT license name
an MIT license text
a permissive notice (not referenced at SPDX) and detected in ScanCode that comes originally from https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c

Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted. The author disclaims all warranties with regard to this software.

Yes, if I remember correct, this was the package I randomly chose from the scanned in my virtuaelenv.
Therefore, it is the correct action not to get a match, isn't it?

Yes, if I remember well, this was the package I randomly chose from the scans that failed in my virtuaelenv.
Therefore, it is the correct action not to get a match, isn't it?

I think the behavior for this library would be to fail getting a match in these cases because there are more than one license.
This is not a license scanner


[3.2] Fix GDNative Variant type size, add size checks.

Parts of #38779 relevant for 3.2 branch (Variant size on 32-bit platforms, static asserts).

Thanks!


Cleaning up suppliers

Unnecessary code removed (result of copy & pasting camps code).
Suppliers routes now use suppliers API to fetch data.
In new supplier wizard: category field changed to a drop down that contain 'Moving' and 'Other'.
Breadcrumbs now work in all supplier pages.
Table heads are now clickable and will sort the table by the clicked head.
supplier SHOW page added (get there by clicking on supplier name in manage suppliers table.

Some minor issues beside those mentioned, feel free to address only easy or non at all.
Apologies if already addressed here in this PR.
https://github.com/Midburn/spark/issues/832


move cli/{core,util} to cli/internal

Why does this add so many lines of code if it's a simple move (as the commit title indicates)?

Why does this add so many lines of code if it's a simple move (as the commit title indicates)?

move includes some refactoring


DUPLO-13528 Refactor and add support for v3 update features.

DUPLO-13528 Refactor and add support for v3 update features.

Task linked: DUPLO-13528 TF: RDS does not support updating most fields

Task linked: DUPLO-13495 TF: Updating backup retention period does not work via Terraform. "Plan" shows the change and "Apply" shows the change was successful. but there is no change


Address High vulnerabilities in Modelmesh-runtime-adapter SNYK reports

Address vulnerabilities in modelmesh-runtime-adatper repo, upstream first. There are no critical vulnerabilities.

[ ] 5 in [modelmesh-runtime-adapter](https://app.snyk.io/org/red-hat-openshift-data-science-rhods/projects?

blocked by https://github.com/kserve/modelmesh-runtime-adapter/pull/68

Community: https://github.com/opendatahub-io/modelmesh-serving/issues/256
ODH: WIP sync will be done after the PR above is merged.


allow toggle between community and public sites

child of #106
requires #184

Hey boys,
Yhe I thought the behaviour here was clear, that's why I didn't comment explanations. The behaviour is just like you've described @BenGamma with the addition that on https://onearmy.world there is a big button "go to community" (temporary text :) that will bring both logged in and not logged in users to https://community.onearmy.world
Any more info needed here?

Gotcha, I was looking for the link to the mockups, but just found it 😅 https://drive.google.com/drive/u/0/folders/1OyJmh39ojHJxs6otETNkYvDUVpAh-3aN
In a close futur we will probably want to onboard user with the user login procedure after clicking on the "go to community" button.
But for now what we'll do is :

display the Public site on onearmy.world
on click on "go to community" button, redirect to community.onearmy.world subdomain
To display the associated page & navigation depending on the subdomain you can found an example in src/pages/index.tsx

we're quite a way off implementing this so closing for now


DRAFT: issue-365: support async methods in controllers

@michalpaukert any reason why the PR is labelled "DRAFT"? Do we need to wait to merge?

I am not sure if there is better solution if not it could be merged


bug: sidebar spaces are not clickable

It's not possible to click on a space from the sidebar on a mobile. This bug was introduced in #383

Hm, works good on iOS safari/chrome, a bit laggy in desktop device emulator.https://user-images.githubusercontent.com/97898172/217582720-e65d5c5e-3be4-45b2-80e4-0e8175be1d2a.MOV

Found this issue with Android chrome, dragging works fine but its hard to click

@j0hnfl0w I'm able to drag the icons too but nothing happen when I click, also require 2 clicks to close the menu after trying to click on space. This is using Android 13 with Chrome 109.0.5414.118.

Yep, found a couple of issues with vuedraggable:
https://github.com/SortableJS/vue.draggable.next/issues/178
https://github.com/SortableJS/vue.draggable.next/issues/174
https://github.com/SortableJS/vue.draggable.next/issues/61
Will fix, now


README translation in Ukrainian and Russian

I've made translations of the README for Ukrainian and Russian. I don't fully understand why, as in my opinion, it's not really necessary, especially for Ukrainian and Russian, and it makes the page a bit cluttered. But I saw that someone had already sent a pull request regarding the Russian translation, so it's better for me to translate it to avoid editing someone else's work later 😄
I also suggest arranging all available languages in alphabetical order, as I think it'll make it easier to navigate and find the one you need if it's available. However, English should still be placed first since it's the default language, and all new changes will primarily be reflected in it. Also, since there are already quite a few languages, it's worth labeling English as English (Default), which I've done, to emphasize that it's the default language, as I've encountered projects where English is available but it this isn't the main language.

Thank you! Yes, the translated README files are currently unordered...


Compiler crash with RangeError: Map maximum size exceeded

🔎 Search Terms
RangeError: Map maximum size exceeded
RangeError: Value undefined out of range for undefined options property undefined (node 16)
react types
antd types
fontawesome types
🕗 Version & Regression Information

This is a crash
I've tested this with the latest nightly (5.3.0-dev.20230904), 5.2.2 and 5.1.6
I was unable to test this on prior versions because I've converted my code to ts and it started to occur

⏯ Playground Link
No response
💻 Code
Simple file:
import React from 'react';
import {Menu} from 'antd';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';

type IconProp = React.ComponentProps<typeof FontAwesomeIcon>['icon'];

type Props =
  & React.PropsWithChildren<{ icon: IconProp }>
  & React.ComponentProps<typeof Menu.Item>

export const Item = ({icon}: Props) => {
  return <FontAwesomeIcon icon={icon}/>;
};

package.json
{
  "name": "ts-compiler-crash",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.4.2",
    "@fortawesome/react-fontawesome": "^0.2.0",
    "@types/react": "^18.2.21",
    "typescript": "^5.2.2",
    "antd": "~4.2.0"
  }
}

tsconfig.json
{
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": ["es2019", "es6", "dom"],
    "module": "es6",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es6",
    "jsx": "react",
    "noEmit": true,
    "skipLibCheck": true,
    "allowSyntheticDefaultImports": true,
    "allowJs": true,
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "noFallthroughCasesInSwitch": true
  }
}

🙁 Actual behavior
Compiler crashes with
yarn tsc
yarn run v1.22.19
$ /Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/.bin/tsc
/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:116479
      throw e;
      ^

RangeError: Map maximum size exceeded
    at Map.set (<anonymous>)
    at recursiveTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60782:18)
    at isRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60199:122)
    at typeRelatedToSomeType (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60460:25)
    at unionOrIntersectionRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60380:16)
    at structuredTypeRelatedToWorker (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60959:23)
    at structuredTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60801:21)
    at recursiveTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60754:19)
    at isRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60199:122)
    at eachTypeRelatedToType (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60555:25)

Node.js v18.17.1
error Command failed with exit code 1.

🙂 Expected behavior
The compiler to at least not crash :/
Additional information about the issue
There's a related issue https://github.com/microsoft/TypeScript/issues/50290
But its closed, so I'm opening a new one since that one wasn't really fixed but workarounded

The issue here is the very large (>30K members) IconName union in react-fontawesome. This union ends up being intersected with ReactNode (itself a union), resulting in an explosion of types. In this particular case it looks like we can solve the problem by reasoning about the (denormalized) origin type of the large union. The particular operation that causes the explosion of work is checking assignability of IconProp & ReactNode to IconProp, and from the origin type we know that the very large union produced by the normalization of IconProp & ReactNode originated in a simple intersection. Since for any two types A & B is assignable to both A and B we can introduce a fast pass shortcut based on the origin type.
I will put up a PR later today.

@ahejlsberg this was kinda my fault, I've later just avoided the exploding union (omitted name from one of the types)
It was just hard to tell what was the problem with the compiler crash. I've opened the issue just to see if its possible for the compiler to not crash and tell me "hey this is insane, I cannot do this here"
Anyway, thank you all for looking into that 🙏!

@Grohden Agreed, we definitely should implement logic to avoid overflowing the relation caches. As a rule, compiler crashes are never acceptable!

Shorter repro:
type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined;
type T2 = { a: string } | { b: number };

function f1(x: T1, y: T1 & T2) {
    x = y;  // Crash!
}


Please support ColorMode::Rgb (no alpha channel)

Hi!
My input is in RGB format, with no alpha channel.
To encode this I'd like to specify ColorMode::Rgb, but the currently supported color modes have alpha channels:
https://github.com/blaind/webp-animation/blob/abe766438fc0418d88d2664fa510a328b4922277/src/lib.rs#L40-L48
Could you please add an RGB ColorMode?

This is now released to crates.io in version 0.8


type hintなど

ちょっと残っているけど、まあtype: ignore入れるか入れないか、程度にはなったかなあ…
dlabel/compose.py:1:1: T499 Success: no issues found in 1 source file
dlabel/main.py:1:1: T499 Found 7 errors in 1 file (checked 1 source file)
dlabel/main.py:8:1: T400 note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
dlabel/traefik.py:1:1: T499 Found 2 errors in 1 file (checked 1 source file)
dlabel/traefik.py:9:1: T400 note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
dlabel/traefik_conf.py:1:1: T400 note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
dlabel/traefik_conf.py:1:1: T499 Found 5 errors in 1 file (checked 1 source file)
tests/test_traefik.py:1:1: T499 dlabel/traefik_conf.py:1: error: Skipping analyzing "dictknife": module is installed, but missing library stubs or py.typed marker  [import-untyped]
tests/test_traefik.py:2:1: T499 dlabel/traefik_conf.py:28: error: Argument 1 to "model_dump" of "BaseModel" has incompatible type "**dict[str, bool]"; expected "Literal['json', 'python'] | str"  [arg-type]
tests/test_traefik.py:3:1: T499 dlabel/traefik_conf.py:28: error: Argument 1 to "model_dump" of "BaseModel" has incompatible type "**dict[str, bool]"; expected "IncEx | None"  [arg-type]
tests/test_traefik.py:4:1: T499 dlabel/traefik_conf.py:34: error: Need type annotation for "res" (hint: "res: dict[<type>, <type>] = ...")  [var-annotated]
tests/test_traefik.py:5:1: T499 dlabel/traefik_conf.py:46: error: Argument 1 to "model_dump_json" of "BaseModel" has incompatible type "**dict[str, bool]"; expected "IncEx | None"  [arg-type]
tests/test_traefik.py:6:1: T499 dlabel/traefik.py:47: error: List item 0 has incompatible type "int"; expected "str"  [list-item]
tests/test_traefik.py:7:1: T499 dlabel/traefik.py:151: error: Argument 1 to "merge" of "Model" has incompatible type "ProviderConfig | None"; expected "BaseModel"  [arg-type]
tests/test_traefik.py:8:1: T499 dlabel/traefik.py:152: error: Argument 1 to "merge" of "Model" has incompatible type "ProviderConfig | None"; expected "BaseModel"  [arg-type]
tests/test_traefik.py:9:1: T499 dlabel/traefik.py:218: error: Skipping analyzing "crossplane": module is installed, but missing library stubs or py.typed marker  [import-untyped]
tests/test_traefik.py:10:1: T499 dlabel/main.py:178: error: Module has no attribute "errors"  [attr-defined]
tests/test_traefik.py:11:1: T499 dlabel/main.py:183: error: Missing named argument "detach" for "create" of "ContainerCollection"  [call-arg]
tests/test_traefik.py:12:1: T499 dlabel/main.py:219: error: Skipping analyzing "dictknife": module is installed, but missing library stubs or py.typed marker  [import-untyped]
tests/test_traefik.py:13:1: T499 dlabel/main.py:219: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
tests/test_traefik.py:14:1: T499 Found 12 errors in 3 files (checked 1 source file)


DDC-3120 - PHP 5.6 internal classes/Serializable serialization fix

See DDC-3120 ( http://www.doctrine-project.org/jira/browse/DDC-3120 )
This PR provides a backport for the 2.4 branch

Hi @Ocramius or @beberlei ; Could you tag a new release with this fix ? Because I want to run my project on php 5.6, and this current release prevent me to do that.

This was already tagged in 2.4.6

Oups, sorry for the noise.
Github did not show me the tag for this commit: https://github.com/doctrine/doctrine2/commit/a69584a841efdb1312c8410ade2489c3f558752f
Thanks anyway ;)

@lyrixx consider that we mark the release versions in jira.


strip_unused on TensorFlow 0.10.0rc0 outputs ImportError: No module named tools

Environment info
Operating System: Mac OS X El Capitan
Installed version of CUDA and cuDNN: N/A
Installed from binary pip package, TensorFlow version is 0.10.0rc0.
Python 2.7.11
Steps to reproduce

git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
bazel build tensorflow/python/tools:strip_unused
I got the same error as in step 3 (shown in Logs below) when running the full command with the Inception V3 or V1 model. This is with the V3 model:

bazel-bin/tensorflow/python/tools/strip_unused --input_graph=/tmp/tensorflow_inception_graph_v3.pb --output_graph=/tmp/stripped_graph.pb --input_node_names=Mul --output_node_names=softmax --input_binary=true
What have you tried?

I tried the same procedure previously on TensorFlow 0.8.0 on a different Mac (also running OS X El Capitan), and the above commands work perfectly: the strip_unused itself without any parameters outputs Input graph file '' does not exist! and the full command outputs the stripped data model.
I took a look at the strip_unused_lib.py file, unable to be imported when running strip_unused, on github and saw it's created first on Aug. 7:
https://github.com/tensorflow/tensorflow/commits/master/tensorflow/python/tools/strip_unused_lib.py
I also looked at a similar issue: https://github.com/tensorflow/tensorflow/issues/3881 but it doesn't solve my problem.
I tried to add . to PYTHONPATH before running bazel-bin/tensorflow/python/tools/strip_unused and still got the same error.
I did a fresh new install of TensorFlow 0.10.0rc0 on another Mac OS X El Capitan, and it's still the same.

Logs or other output that would be helpful
Traceback (most recent call last):
  File "/Users/zero2one/tensorflow-src/latest/tensorflow/bazel-bin/tensorflow/python/tools/strip_unused.runfiles/tensorflow/python/tools/strip_unused.py", line 46, in <module>
    from tensorflow.python.tools import strip_unused_lib
ImportError: No module named tools

With 2 new releases after 0.10, this issue is now obsolete.
Sorry for the lack of attention to the issue.
I am closing this now.
Please open a new issue if you run into the same problem in our latest release.


Android 6.0.1 Smartphone System-UI service dies on deactivating GPS Tracking

Describe the bug

In the case that you deactivate GPS on a Sony Xperia Z3 with Android 6.0.1 there is short system message on screen saying System-UI has stopped and you can acknowledge the messag.
After this the screen turns black and only a manual reset is possible
Expected behaviour
Normally the app should work even without GPS activated on the device
Steps to reproduce the issue

Install the app on the mentioned device ( can't say if it is a general Android 6.0.1 problem)
Deactivate the GPS of the device through the menu
Wait a bit and you should get the message

Optional:

When you restart and don't reactivate GPS --> same behavior as in 3.

Technical details

Mobile device: Sony Xperia Z3 (D6603)
Android version: 6.0.1
Build-Number: 23.5.A.1.291

Possible Fix
Don't deactivate GPS on the device

Sort of duplicate of #597. The limited reports suggest this is a Sony UI specific issue.

GPS or Location Access? Location Access needs always to be turned on in system settings.

It's mentioned as "Location" in the system settings but represents the location tracking of the device such as GPS, WLANs, mobile networks and sensors.

I looked into Issue #597 and would deduce that it seems like the same problem but in his case he is just mentioning Bluetooth. From that I would deduce that if either one of them (Location or Bluetooth) is turned off the problem occurs

I have a Z3 with the same specifications but a different model. Mine is D5803. CWA is 1.0.4.
Cannot reproduce the bug on this device. Deactivating "Location" has CWA inform me that "Benachrichtigungen zu möglicher Begegnung [...] nicht möglich", please activate Location (Standortermittlung). Nothing crashes.
Hope this helps.

Duplicate of #597 with the addition that both settings cause the crash. We deduce this is the same root cause.


Update all dependencies to latest

This updates all the project dependencies to latest, including porting to Typescript 4.
All the tests and ci pass.
When reviewing, note in particular the destructuring immutable copy that was added in intermock.ts at line 334.  The Typescript fields are now declared readonly so this somewhat complicated casting and destructuring approach, which basically should mirror what was there previously, was used to do a deep copy-update.

@googlebot I signed it!

From a cursory glance this looks great! I'll scrutinize a little deeper in the coming week. For better and worse, I rely solely on the unit tests rather than insights from real-world usage due to its still limited prevalence in the wild. All that to say, I may write a few new unit tests to see if there's anything this might have missed with changes in TS 4.
This leads me to conjecture that it might be time to make this a major version release. For the most part, the tool has been stable in terms of new PRs, after all it's been over a year since its launch. Some new features get added and new language constructs are handled, but by and large this feels fairly concrete. A major version release will provide the greatest benefit in changes such as this PR where the underlying TS target is upgraded.
What are your thoughts regarding this 1.0.0 major version idea?

Based on the possibility that the dependency changes might represent a breaking change for some, the major version idea makes a lot of sense.  As far as a 1.0.0 release, in my very limited exploration (I just found this project yesterday), I have seen a few rough edges (possibly user errors) that might ideally be working in a 1.0 release.
The most notably problems:

I have observed a few cases where an interface member that references another interface is populated with an empty object rather than a fake.  (At least a couple of cases involve references to interfaces that are import from a separate file. (Yes, they were parsed.)  The secondary interface do fake properly when requested from intermock directly.

In a number of cases, I have observed arrays mock with empty objects rather than fake objects.  I locally fixed the case for an array of enums, but I don't understand the Typescript code well enough to fix for the general case.  I'm rather suspicious of the array's default case handling and suspect it may be the source of the problems.  I looked at expanding the array kind cases to pull the data from types, but I encountered typing problems reusing the process.... functions from elsewhere in the code and it quickly got too complicated for me to know if what I was doing was correct.

An aside,

When I added a function to an interface, intermock gave me an unsupported error.  I was inspired to try this because I saw Typescript function SyntaxKind inside the code.  I don't think this is a problem, but it might merit a disclaimer in the documentation.   (Or it might be cool if it generated an empty function that matched the prototype.)

I added a issue for the first case I mentioned above, #43.
A correction regarding the second case above, it seems like I may have encountered two cases.  Most of the cases I observed were actually cases where the object was declared in another file, like the first issue.  The other case was when a type was referenced even when declared in the same file.  I added this second variant as issue #44.

@jasco @ryanmcdermott Is anyone going t merge this? Also is the issue with empty objects fixed? This library seems promising but right now the types are not generated correctly - in most cases - so it is also useless.
I could maybe help if you create an issue and describe at least roughly where the problem is. 🙂

Any update now?

Recursive type supported.
referenced object supported.


⚠ Bofrost.es has degraded performance

In c72c961, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1621 ms

Resolved: Bofrost.es performance has improved in 4fea67b after 6 minutes.


Update Menu (Sidebar)

These NavLinks should be there

[ ] Dashboard
[ ] Time table (Here goes Calendar as well)
[ ] Schedule
[ ] Attendance
[ ] Assignments
[ ] Storage
[ ] Grades
[ ] Reminders
[ ] Quick Notes

In place of these links:

@meet59patel I would like to work on this issue

I would like to work on this one. Can you please assign it to me?

https://manan2501-schooler.vercel.app/admin/index

give @manan2501 5 points


No query results for model [TCG\Voyager\Models\DataType].

Laravel Version: 5.5.* (5.6 samething)
Voyager Version: 1.1
PHP Version: 7.1
Database Driver & Version: MySql 5

Description:
Trying to install voyager on a fresh installation of laravel 5.5 or 5.6 and getting that error.
Steps To Reproduce:
php artisan voyager:install --with-dummy

Can you post the whole output of your CLI?

on a it worked itself after deleting all tables on the db

So not a fresh install?!

of course it was a fresh installation of laravel

I'm still getting that error after enabling multilaguage.
inside config/voyager.php i've enabled multi language and run the migration:fresh seed command and again i'm getting the same error.
$ php artisan migrate:fresh --seed
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table
Migrating: 2016_01_01_000000_add_voyager_user_fields
Migrated:  2016_01_01_000000_add_voyager_user_fields
Migrating: 2016_01_01_000000_create_data_types_table
Migrated:  2016_01_01_000000_create_data_types_table
Migrating: 2016_01_01_000000_create_pages_table
Migrated:  2016_01_01_000000_create_pages_table
Migrating: 2016_01_01_000000_create_posts_table
Migrated:  2016_01_01_000000_create_posts_table
Migrating: 2016_02_15_204651_create_categories_table
Migrated:  2016_02_15_204651_create_categories_table
Migrating: 2016_05_19_173453_create_menu_table
Migrated:  2016_05_19_173453_create_menu_table
Migrating: 2016_10_21_190000_create_roles_table
Migrated:  2016_10_21_190000_create_roles_table
Migrating: 2016_10_21_190000_create_settings_table
Migrated:  2016_10_21_190000_create_settings_table
Migrating: 2016_11_30_135954_create_permission_table
Migrated:  2016_11_30_135954_create_permission_table
Migrating: 2016_11_30_141208_create_permission_role_table
Migrated:  2016_11_30_141208_create_permission_role_table
Migrating: 2016_12_26_201236_data_types__add__server_side
Migrated:  2016_12_26_201236_data_types__add__server_side
Migrating: 2017_01_13_000000_add_route_to_menu_items_table
Migrated:  2017_01_13_000000_add_route_to_menu_items_table
Migrating: 2017_01_14_005015_create_translations_table
Migrated:  2017_01_14_005015_create_translations_table
Migrating: 2017_01_15_000000_make_table_name_nullable_in_permissions_table
Migrated:  2017_01_15_000000_make_table_name_nullable_in_permissions_table
Migrating: 2017_03_06_000000_add_controller_to_data_types_table
Migrated:  2017_03_06_000000_add_controller_to_data_types_table
Migrating: 2017_04_11_000000_alter_post_nullable_fields_table
Migrated:  2017_04_11_000000_alter_post_nullable_fields_table
Migrating: 2017_04_21_000000_add_order_to_data_rows_table
Migrated:  2017_04_21_000000_add_order_to_data_rows_table
Migrating: 2017_07_05_210000_add_policyname_to_data_types_table
Migrated:  2017_07_05_210000_add_policyname_to_data_types_table
Migrating: 2017_08_05_000000_add_group_to_settings_table
Migrated:  2017_08_05_000000_add_group_to_settings_table
Migrating: 2017_11_26_013050_add_user_role_relationship
Migrated:  2017_11_26_013050_add_user_role_relationship
Migrating: 2017_11_26_015000_create_user_roles_table
Migrated:  2017_11_26_015000_create_user_roles_table
Migrating: 2018_03_11_000000_add_user_settings
Migrated:  2018_03_11_000000_add_user_settings
Migrating: 2018_03_14_000000_add_details_to_data_types_table
Migrated:  2018_03_14_000000_add_details_to_data_types_table
Migrating: 2018_03_16_000000_make_settings_value_nullable
Migrated:  2018_03_16_000000_make_settings_value_nullable
Seeding: VoyagerDatabaseSeeder
Seeding: VoyagerDummyDatabaseSeeder
Illuminate\Database\Eloquent\ModelNotFoundException  : No query results for model [TCG\Voyager\Models\DataType].
at C:\wamp64\www\projects\preteacheter\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:416
412|         if (! is_null($model = $this->first($columns))) {
413|             return $model;
414|         }
415|

416|         throw (new ModelNotFoundException)->setModel(get_class($this->model));
417|     }
418|
419|     /**
420|      * Execute the query and get the first result or call a callback.

Exception trace:
1   Illuminate\Database\Eloquent\Builder::firstOrFail()
C:\wamp64\www\projects\preteacheter\database\seeds\TranslationsTableSeeder.php:57
2   TranslationsTableSeeder::dataTypesTranslations()
C:\wamp64\www\projects\preteacheter\database\seeds\TranslationsTableSeeder.php:19
Please use the argument -v to see more details.

php artisan migrate:fresh --seed is not a good idea to run at all.
It will create empty tables and then just seed all seeders it finds in order of appearance.
Despite that:
$dtp = DataType::where($_fld, 'Post')->firstOrFail();
if ($dtp->exists) {
 ...
}

Is pretty senseless. ref

so in the version 1.1.0 of voyager here is the dataTypesTableSeeder.php
dataType('slug', 'users');
        if (!$dataType->exists) {
            $dataType->fill([
                'name'                  => 'users',
                'display_name_singular' => __('voyager::seeders.data_types.user.singular'),
                'display_name_plural'   => __('voyager::seeders.data_types.user.plural'),
                'icon'                  => 'voyager-person',
                'model_name'            => 'TCG\\Voyager\\Models\\User',
                'policy_name'           => 'TCG\\Voyager\\Policies\\UserPolicy',
                'controller'            => '',
                'generate_permissions'  => 1,
                'description'           => '',
            ])->save();
        }
....

It uses translations and have a look on my database data types table
![voyager](https://user-images.githubusercontent.com/10473277/39569557-761a498a-4ebd-11e8-80c9-86f93717ff93.PNG)

so in the database, it stores the translation key instead of the translated string and in the TranslationsTableSeeder it's trying to retrieve datatypes in other to translate it but it's not finding any corresponding datatypes

  */
    private function dataTypesTranslations()
    {
        // Adding translations for 'display_name_singular'
        //
        $_fld = 'display_name_singular';
        $_tpl = ['data_types', $_fld];
        $dtp = DataType::where($_fld, 'Post')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Poste');
        }
        $dtp = DataType::where($_fld, 'Page')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Page');
        }
        $dtp = DataType::where($_fld, 'User')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Utilisateur');
        }
        $dtp = DataType::where($_fld, 'Category')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'categorie');
        }
        $dtp = DataType::where($_fld, 'Menu')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Menu');
        }
        $dtp = DataType::where($_fld, 'Role')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Role');
        }

        // Adding translations for 'display_name_plural'
        //
        $_fld = 'display_name_plural';
        $_tpl = ['data_types', $_fld];
        $dtp = DataType::where($_fld, 'Posts')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Postes');
        }
        $dtp = DataType::where($_fld, 'Pages')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Pages');
        }
        $dtp = DataType::where($_fld, 'Users')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Utilisateurs');
        }
        $dtp = DataType::where($_fld, 'Categories')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Categories');
        }
        $dtp = DataType::where($_fld, 'Menus')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Menus');
        }
        $dtp = DataType::where($_fld, 'Roles')->firstOrFail();
        if ($dtp->exists) {
            $this->trans('fr', $this->arr($_tpl, $dtp->id), 'Roles');
        }
    }

Because the Dummy-data were separated from the normal seeds.
Run php artisan vendor:publish --provider=TCG\Voyager\VoyagerDummyServiceProvider
and you should be good to go.
But again: php artisan migrate:fresh --seed is still not a good idea

I'll make you get my problem. I've detected the problem and it's a little bit difficult for me to explain. please follow this step.

Install fresh laravel
Install voyager with dummy data or not
Go to database\seeds\DatabaseSeeder.php and add those two lines :
$this->call(VoyagerDatabaseSeeder::class);
$this->call(VoyagerDummyDatabaseSeeder::class);
now run php artisan migrate:fresh --seed (This is how I use to work because i'm always using seeding)
now change the 'locale' => 'en', and 'fallback_locale' => 'en', to french for example
now run again php artisan migrate:fresh --seed
You will get that error because :

in the moment of seeding the DataTypesTableSeeder.php
the new version of voyager is using translation and not only string like this
'display_name_singular' => __('voyager::seeders.data_types.user.singular'),
'display_name_plural'   => __('voyager::seeders.data_types.user.plural'),
now that there is no a translation that match that translation key, the key itself is stored in the database
so the TranslationsTableSeeder.php is trying to find a string on the datatype table to translate it. as there is no that string we are getting that error.

There is two problems that are linked together

In the TranslationsTableSeeder.php instead of finding a string like this:
$dtp = DataType::where($_fld, 'Post')->firstOrFail();
It must be like this:
$dtp = DataType::where($_fld, __('translation key'))->firstOrFail();
To avoid savind the keys in the database when the locale other then english, the language files must be published in the installation and let us the right to add missing translation

lastely
inside my DataTypesTableSeeder.php I found only three datatypes (users, menus, roles) which is not normal

Install voyager with dummy data or not

Thats not unimportant

Go to database\seeds\DatabaseSeeder.php and add those two lines : ...

Why would you do that?!

now run again php artisan migrate:fresh --seed

Why again?

now that there is no a translation that match that translation key, the key itself is stored in the database
so the TranslationsTableSeeder.php is trying to find a string on the datatype table to translate it. as there is no that string we are getting that error.

That is unrelated. Those translation strings are stored in language-files, not in the Database.

inside my DataTypesTableSeeder.php I found only three datatypes (users, menus, roles) which is not normal

That is normal. Like I said, Dumma-Data was completely separated from "normal" data.
So if this seeder would seed dummy-data, it would fail for everyone not using dummy-data.
Again, please run php artisan vendor:publish --provider=TCG\Voyager\VoyagerDummyServiceProvider which will publish all seeders neccessary for dummy-data.

Many part of my project uses seeder. in development sometime I can make big change and I would like to just run this command php artisan migrate:fresh --seed that why .
It okey i can solve that problem myself

Just try to install voyager on a fresh laravel installation where the locale and the fallback_locale is 'fr'. then you will understand what I'm saying @emptynick
After installing look at you database and see what it stored on tables like menu_items or datatypes ...

Yes, I know what you mean, but thats unrelated to your original issue.
This file is just not translated to french, and because you set both locale and fallback_locale to frensh it will just be empty (I dont need to try that ;) )

Its always a good idea to keep the fallback-locale as english, so you have at least something not just plain translation keys.
Looks like your original issue is solved, so I will close this one. If not, please let me know.


Allow block_from_array to run on any device

At the moment, block_from_array only works on CPU
Contributor (creator of pull-request) checklist

[x] Tests updated (for new features and bugfixes)?

Reviewer checklist

[ ] CHANGELOG updated with public API or any other important changes?

📚 Documentation preview 📚: https://metatensor--433.org.readthedocs.build/en/433/

You should be able to rebase & pick up the cmake fix from master!


Why is order of eventagenda a character and not an int?

The agenda item model has an order field, which is very useful.
It's a CharField. It would be much more convenient for me if it was an Integer field. Is there any reason why it needs to be a CharField?
https://github.com/opencivicdata/python-opencivicdata/blob/6c3425502f98ec33ccd500bdbb7b1d34641fb99b/opencivicdata/legislative/models/event.py#L149-L152

this does seem wrong, a fix would def. be welcome (FWIW we don't use events anymore, so feel free to do whatever you want w/ them)


comment button

I dont know if this is a bug or what but even after removing the comment module from module.yaml , the comment button shows under every post and a bootstrap card remains in the deployed site in the place of comments.

Could you please provide a screenshot about this.

Here is the screenshot.

I see, that belongs the content panel module, to remove the comments button, you can pass comments parameter for all pages.
// hugo.yaml
cascade:
  - _target:
      path: '*/**'
    params:
      comments: false

it did not work. it is still there.

I've double check the codesnippet, it should work, there are some potential causes.

Typos
Wrong configuration file.
Dulplicate cascade configuration which will be overriden by others.

You can share your repo with me by Email if you can't figure it out.

baseURL:
title:
# Copyright, the {year} is the placeholder of this year.
copyright: "Public Domain."
defaultContentLanguage: en
defaultContentLanguageInSubdir: false # when true, append the default language code into URL, i.e. /docs -> /en/docs.
enableRobotsTXT: true
timeout: 120s
enableEmoji: true

title_sections: true # when false, remove the sections from the title.
title_sections_depth: 0 # the depth of sections on the title.
title_sections_depth_dir: end # when start, the depth is counting from the root sections.

permalinks:
  blog: /blog/:year/:month/:title
  news: /news/:year/:month/:title

cascade:
  - _target:
      path: '*/**'
    params:
      comments: false

outputs:
  home:
    - HTML
    - Offline        # required by PWA module for displaying the offline pages.
    - RSS
    - SearchIndex    # required by search module.
    - WebAppManifest # required by PWA module to make your site installable.

taxonomies:
  authors: authors       # multiple authors.
  tags: tags
  categories: categories
  series: series

build:
  writeStats: true # required by PurgeCSS.

markup:
  goldmark:
    renderer:
      unsafe: true
  highlight:
    noClasses: false
    lineNos: true
    lineNumbersInTable: false

# see https://gohugo.io/content-management/related/#configure-related-content
related:
  includeNewer: true
  indices:
  - name: keywords
    weight: 100
  - name: tags
    weight: 80
  - name: categories
    weight: 60
  - name: series
    weight: 60
  - name: authors
    weight: 10
  - name: date
    weight: 10
  threshold: 10 # for testing, increase it to suit your case.
  toLower: false

security:
  funcs:
    getenv:
      - ^HUGO
      - CI$
      - PWD

here is my hugo.yaml file.

Nothing I can help, too limited information to debug, as the GIF shown below, the code snippet is correct.

There are some hints.

Global search cascade make sure there isn't duplicated configuration.
Update all modules via hugo mod get -u.
Upgrade to latest Hugo version.
CTRL + F5 to force refresh page or clear browser caches and then refresh page.

If still not working, please provide a minimal reproducible repo (copy repo and delete any sensetive content).

Okay , I will update the repo.

There is a workaround, setting hb.content_panel.comments as false, please note that this approach will disable comments for all of pages.
Firstly, upgrade to latest version of content panel.
hugo mod get<EMAIL_ADDRESS>
And then configure the parameter as follows.
// params.yaml
hb:
  content_panel:
    comments: false

I'm closing this issue now, please feel free to reopen or open another issue if this not resolved.


Implement Bitonic Sort

Implement the algorithm
Insert it in a file bitonicSort.py inside algorithms directory
In algorithms/__init__.py:
Import yout algorithm: from algorithms.bitonicSort import bitonicSort
Add it to __all__: "bitonicSort",

If you manage to use the handleDrawing function I would appreciate!

can i solve this issue..

Sure!


[ZEPPELIN-1237] Auto-suggestion of notebook permissions should list roles as well

What is this PR for?
Auto-suggestion of notebook permissions should list roles as well
What type of PR is it?
[Improvement]
Todos

[x] - Fix test case (selenium)
[x] - select2 in bower.json

What is the Jira issue?

ZEPPELIN-1237

How should this be tested?
Search for group/roles in notebook permission, it should get listed
Screenshots (if appropriate)

Questions:

Does the licenses files need update? n/a
Is there breaking changes for older versions? n/a
Does this needs documentation? n/a

@prabhjyotsingh 404 for /userlist api call when clicked on text fields.
user: anonymous

@r-kamath have implement your feedback.

is it a bit of an information disclosure security issue though, that we should all user name when someone type the first character?

I've looked up few products of which the popular ones Outlook (app) limit to 8 results, Outlook (web i.e. owa) limit to 5 results and JIRA does not limits.
I don't have a strong opinion on this, can change according to recommendation.

@felixcheung i think this will continue to remain a problem, till the time we allow all user roles to setup/modify these permissions. Unless we can recognize and separate this as an admin (superuser) action, this seems okay to me. There will be cases when the LDAP user id's will end up in zeppelin/POSIX systems as 'a1890xx', based upon conversion rules, when users who setup these permissions will find it very hard to use. Hence for now, showing all users is a reasonable approach.

I'm ok with it - maybe open a JIRA to track role-based access control on user names?

I think a part of this problem is solved by https://github.com/apache/zeppelin/pull/993 (ZEPPELIN-987). But, yes I agree this has scope for improvising.
Will merge this if no more discussion.


Removing the *.lock files condition from gititnore file.

I think this should be removed, as it prevents storing the Gemfile.lock
file to the repo. In heroku you can not push an app if this file is missing.
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/NoLockfile
remote:  !
remote:  !     Gemfile.lock required. Please check it in.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed

Coverage remained the same at 50.446% when pulling da57f03298e6074d39f1942d5eb9d3dc5aa0a98d on feature/remove-lock-files into 0a4d35eb01d796c0f6bfdb76a0e095b2cca170d4 on master.


[KED-2643] kedro install fails on pyspark starter

Description
After creation of a new kedro project on a brand new conda environment using pyspark starter, kedro install fails.
It seems that kedro tries to import module with project context (where import from pyspark is done) and fails, since spark is not yet installed.
Also, other cli commands (e.g. kedro --version) fail with the same error (while executed inside project's directory).
Steps to Reproduce

Create a new environment
pip install kedro
kedro new --starter=pyspark
cd to project's directory
kedro install

Expected Result
kedro installs packages specified in requirements.txt
Not sure why cli goes into project settings. I guess there are several cli commands that do need to care about project specifics anyway.
Actual Result
Error with the following stacktrace:

Traceback (most recent call last):
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/bin/kedro", line 8, in
sys.exit(main())
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/site-packages/kedro/framework/cli/cli.py", line 268, in main
cli_collection = KedroCLI(project_path=Path.cwd())
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/site-packages/kedro/framework/cli/cli.py", line 181, in init
self._metadata = bootstrap_project(project_path)
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/site-packages/kedro/framework/startup.py", line 181, in bootstrap_project
configure_project(metadata.package_name)
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/site-packages/kedro/framework/project/init.py", line 218, in configure_project
_validate_module(settings_module)
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/site-packages/kedro/framework/project/init.py", line 210, in _validate_module
importlib.import_module(settings_module)
File "/Users/glebsmolnik/anaconda3/envs/testpysparkstarter/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/glebsmolnik/PycharmProjects/testpysparkstarter/pyspark_test/src/pyspark_test/settings.py", line 30, in
from pyspark_test.context import ProjectContext
File "/Users/glebsmolnik/PycharmProjects/testpysparkstarter/pyspark_test/src/pyspark_test/context.py", line 34, in
from pyspark import SparkConf
ModuleNotFoundError: No module named 'pyspark'

Your Environment
MacOS Catalina (originally got it on Windows 10).
PyCharm CE 2020.3.2
Conda environment (Python 3.7.10)
Kedro 0.17.3

maybe something like this in context.py of the pyspark starters
try:
    from pyspark import SparkConf
    from pyspark.sql import SparkSession
except ModuleNotFoundError:
    logging.warning("This starter requires PySpark to function. "
                    "Run 'kedro install' to install project dependencies.")

Hi @glebrh, thanks for flagging this issue! This indeed isn't working properly. I've created a ticket on our backlog to address it.

Thank you @glebrh for bringing this up! We just merged this PR with a quick fix (thanks @thver for the inspiration!). It will become effective once Kedro 0.17.5 is released. We will also be revisiting the flow triggered when calling any CLI command to potentially replace this quick fix with a more robust solution.

@ignacioparicio can we close this as well? https://github.com/quantumblacklabs/kedro-starters/issues/38


rar: init at 6.0.2

Motivation for this change
There is already unrar and unar for decompress RAR files, however there were no options if you need to compress RAR files.
This PR adds rar, allowing compressing of RAR files.
Based on: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=rar
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

/marvin opt-in
/status needs_reviewer

Result of nixpkgs-review pr 139829 run on x86_64-linux 1

1 package built:

rar

Result of nixpkgs-review pr 139829 run on i686-linux 1

1 package built:

rar

@SuperSandro2000 can we have this merged?

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 139829 run on x86_64-linux 1

1 package built:

rar


Remove code that creates output dir if it doesn't exist

Since the output dir is optional now, we can cleanup the code that generates it.

unitTestWhenRunTwice is failing.
I think the reason is that during the first run, the output dir gets created, so the second run has different inputs. Before this PR the output dir was created during the configuration phase, so the second run would be skipped since an empty output dir existed both for the first and second runs.

I'm fine with merging this, but we must at least pass the test. I think it's great that we can set up by removing the output directory in the integration test before the build runs. However, I'm not sure if it's difficult.


KeyError: 'IAMCertificateId' on new distribution (#76)

This should fix the key error (and did in my tests).

Thanks @plancast!

Thank you for maintaining this plugin!

I don't think a release has this yet? Please release :)


payment is api is giving success but not detecting from acccount

Hello im trying to integrate advance and everything is giving success and transaction completed but when i go to paypal account my funds remain same, when i try paypal button and transaction completed funds are detecting

Hi @shafqatjanhashe -- Apologies for such a delay in a response to this issue. Are you still facing this issue?

Due to lack of response, I will close this issue as not planned. If you're still facing this issue please either re-open or create a new issue.


[Enhancement] Method invocation 'getRetCode' may produce 'NullPointerException'[CloudEventProducer]

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request

located at:
eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/http/producer/CloudEventProducer.java
line 79,80
Describe the solution you'd like
reference:

Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

I would like to work on it if no one is working.

I would like to work on it if no one is working.

Welcome, you can submit pr first.


coprocessor/dag: fix bug caused by check meta in chunk

@BusyJay @hicqu PTAL

LGTM, /run-integration-tests

Rest LGTM.

/run-inte


Product Functionality

While creating a new product ,error occurred while try to upload the image in media folder.

Thank you for raise bug.Now resolved the bug

Thanks Ambiga.This works like a charm


How to reset facebook connection

Hi!
I registered on brid.gy not so long time ago with my site https://lumen.pink and my Facebook account which used to be fb.me/lumen.pink.
But someday I removed the dot from the Facebook name. I changed it everywhere in my site (I hope, at least), disconnect bridge and connect again.
For some reason, the brid.gy extension doesn't recognize the new name and keeps using the name with the dot.
Is there a way to reset it? Or what am I doing wrong?
Many thanks

Hi! The Facebook profile username and link in the browser extension settings are just cosmetic. You're definitely right, ideally the extension should detect username changes like this and update, but it should still backfeed your account fine right now regardless.

So I think I'm doing really wrong here.
My posts are public. But bridgy still can't see it.
Do you have any clues?

Hmm! Sorry for the trouble, I'm not sure, I'll take a look.

I am sorry. I think I messed up something.
Thanks for your time and patience.
I changed my Facebook profile to English, and apparently it starts to grab the posts.
But now it can't find the counterpart. I tried to  put exactly the same post link tha bridgy found, but without success until now.

Needed a tweak on the server side, I've done that, looks like it's sending webmentions now. Thanks for checking, glad it's working now!

It's running smoothly now.
Many many thanks!

The problem is solved!


Update i2c interface to new code.

The increased address space of CSP 2.0 is handled by just the lower 7 bits of
the destination address as the address of the i2c interface. The user must
handle this in the address and routing setup of the satellite.

Looks good


DDT-952: GET SI/TD via reference should use validUntil

Signed-off-by: Niels Thykier<EMAIL_ADDRESS>

Depends on https://github.com/dcsaorg/DCSA-Event-Core/pull/307

Obsolete


Add support for '%-l' option to Flatpickr.

We currently support the options %-d, %-H, %-I, %-M, %-m, %-S, but not %-l. Adding %-l will prevent an error to be raised when the Ruby format uses this option.
Here's an example of how this could be used:
> datetime = DateTime.new(2023, 4, 6, 9, 15)
=> Thu, 06 Apr 2023 09:15:00 +0000
> datetime.strftime("at %-l:%M %p")
=> "at 9:15 AM" # no extra pad before the hour
> datetime.strftime("at %l:%M %p")
=> "at  9:15 AM" # extra pad before the hour

Coverage: 95.814%. Remained the same when pulling 14e4357f803e7512c1f5a0bff7301ba554e80527 on gguerini:gg-add-support-for-not-padded-hour-of-day-flatpickr into 5a958e46e8620fba320e04347d326d058c07d396 on railsadminteam:master.

Thank you!


[Zaraz] Fixed inconsistent "zaraz.track()" name usage.

In all other documentation, the Zaraz Tracking function is listed as being zaraz.track(). However, in the "Create a trigger" documentation page, it is referred to as zarazTrack.

Changes incorrect name of zarazTrack to zaraz.track() to match the Events API documentation page.

Thanks for catching this. Merged :)


Update fcrepo-parent to use the latest version of fcrepo-build-tools

Resolves: https://jira.duraspace.org/browse/FCREPO-2004

Do we need to wait for the new build tools to get through Maven Central distribution, or are we already good on that?

I think we're good on that: http://search.maven.org/#artifactdetails|org.fcrepo|fcrepo-build-tools|4.4.1|bundle

Cool, merging.


Add override for count method in SlicedMessageMeta

Description

Fixes bug(#970) where the count of a SlicedMessageMeta always reflects the total number of rows in the underlying DF not the slice.

Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.

/merge


Update sigs.k8s.io/cluster-api/hack/tools digest to 0460a26

This PR contains the following updates:

Package
Type
Update
Change

sigs.k8s.io/cluster-api/hack/tools
require
digest
18ecf48 -> 0460a26

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: hack/tools/go.sum
Command failed: go get -d -t ./...
/bin/sh: line 1: go: command not found


User-facing survey Pages retain some old settings even after they are changed

To reproduce:

Create a new survey
Create question 1, radio type, Label: "Test Survey 1 Q 1" Admin Label: "Test Survey 1 Q 1"
Publish survey
View the following in the user-facing HTML:

          <input type="radio" name="test_survey_1_q_1" value="1" id="id_test_survey_1_q_1_0">
            1

Edit question 1 to Label: "Test Survey 1 Q 1x" Admin Label: "Test Survey 1 Q 1x"
View the following in the user-facing HTML:

          <input type="radio" name="test_survey_1_q_1" value="1" id="id_test_survey_1_q_1_0">
            1

Although the visible label changes, the underlying names for the inputs do not change after the Label and Admin label are changed.
This impacts when eg making multiple copies of the some survey with slight variation.
Does this have any impact on the platform? If not then we can de-prioritize this bug.

It's worth noting that when using wagtail-transfer on a survey with incorrect input names in the code, the destination survey has the correct names in the code even though the source survey does not.

Even after deleting the existing questions from the survey and recreating them, the resulting questions still use the old input names.

wagtail generates a "clean name" from the label and it's used to generate HTML tags
the clean name is generated and stored when the question is created for the first time
on subsequent edits, clean name isn't updated, for reference see here
it's intentional behavior and the reason is also explained here
the reason it works (new/updated clean name) for wagtail-transfer is that on the destination site it's created for the first time
wagtail uses clean name internally to generate tags and etc and we use it for polls results, and quiz answers validation
polls results and quiz answers validation don't get affected by this

hope this clarifies it, let me know if any change is still required

Is there any possibility to change how the clean name is derived? Would it complicate things significantly to make the clean name either

A hash of the original clean name, with a lookup table
A random hash

It is a bit undesirable to have content which appears on the page which is

User generated
Not visible in the Admin Panel
Not changeable

This came up originally when a survey on climate used the clean name "did_you_find_this_hiv_information_helpful" because it was based a copy of a survey on HIV information, which had been changed to read "climate". There are possible complications there, including maybe even risks for users in some countries.


Small Improvement

Please have a look at this issue for more information: https://github.com/philipperemy/keras-attention-mechanism/issues/3#issuecomment-309312748

LGTM Looks Good To Me

@hamelsmu thanks!


Invalid dot output in integration test

The integration test in tests/test.rs seems to create an invalid dot file (which is normally just printed to the void and not actually used). The output is:
digraph {
    edge [penwidth=0.5, arrowhead=normal, arrowsize=0.5, fontsize=8.0];
    node [color=gray20, fontsize=8.0, fontcolor=white, style=filled, shape=circle];
    rankdir=LR;

    0 [label="Vertex {\l    name: \"d\",\l}\l"];
    1 [label="Vertex {\l    name: \"b\",\l}\l"];
    2 [label="Vertex {\l    name: \"c\",\l}\l"];

     [color="#0c8946", fontcolor="#0c8946", label="\"yup\"\l"];
     [color="#5309a3", fontcolor="#5309a3", label="\"foo_\"\l"];

    0 -> 2 [color="#5b7a07", fontcolor="#5b7a07", label="\"bar\"\l"];
}

It seems to be outputting two edges with connection zero nodes, so just the attributes are being printed? When I run this through dot it errors (because it expected "A -> B" befre the "[color=..."). Is this an error in the dot writing code which is producing vertices without members?

The issue is that the test spec ends up leaving two hyperedges without any nodes... Hence it's not valid, you're right. The spec does a lot of of things and what's rendered might not be so interesting anymore. I'm actually working on another unrelated refactoring (#14). I might also adjust something there regarding emptied hyperedges. I'm not sure yet if the default behavior should be to keep an empty hyperedge or to drop it. I found this publication here https://arxiv.org/pdf/2002.05014.pdf e.g. If we assume that an hyperedge can be kept as an empty set of vertices, we'll need a way to display that in DOT, if feasible...I'll think about it.

Closing since dot rendering has been dropped for now in #17.


inner_product_test_float.TestsInnerProduct tests fail

Hi,
While recently building and installing on a Haswell node (Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz)
The following tests fail:
TestInnerProductForward/inner_product_test_float.TestsInnerProduct/0 and TestInnerProductForward/inner_product_test_float.TestsInnerProduct/1 fail on
[==========] 364 tests from 44 test cases ran. (396301 ms total)
[  PASSED  ] 362 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] TestInnerProductForward/inner_product_test_float.TestsInnerProduct/0, where GetParam() = 44-byte object <40-00 00-00 01-00 00-00 05-00 00-00 09-00 00-00 03-00 00-00 04-00 00-00 02-00 00-00 20-00 00-00 30-00 00-00 06-00 00-00 06-00 00-00>
[  FAILED  ] TestInnerProductForward/inner_product_test_float.TestsInnerProduct/1, where GetParam() = 44-byte object <40-00 00-00 01-00 00-00 07-00 00-00 07-00 00-00 03-00 00-00 04-00 00-00 02-00 00-00 20-00 00-00 30-00 00-00 06-00 00-00 06-00 00-00>

Hi @steenax86,
What compiler do you use? Is it gcc?
If this is the case I suspect the problem is in two OMP runtimes loaded (GNU because of the compiler and Intel because of using mklml library). Could you please try the following run line just to confirm the assumption?
# usually MKL_ML_LIB_PATH = external/mklml_lnx_$ver/lib
$ LD_LIBRARY_PATH=$MKL_ML_LIB_PATH:$LD_LIBRARY_PATH \
    LD_PRELOAD=libiomp5.so build/tests/gtests/tests_gtest

Hello @emfomenk ,
Thank you for your response. I should have mentioned that I am using the Intel compiler suite, and here are the environment variables:

echo $MKL_ML_LIB_PATH
/home/smonteir/mkl-dnn-master/external/mklml_lnx_2<IP_ADDRESS>60801

echo $LD_LIBRARY_PATH
/home/smonteir/mkl-dnn-master/external/mklml_lnx_2<IP_ADDRESS>60801:/opt/intel/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64_lin:/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/lib:/opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/mic/lib:/opt/intel/compilers_and_libraries_2016.2.181/linux/ipp/lib/intel64:/opt/intel/compilers_and_libraries_2016.2.181/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64:/opt/intel/compilers_and_libraries_2016.2.181/linux/tbb/lib/intel64/gcc4.4:/opt/intel/debugger_2016/libipt/intel64/lib:/opt/intel/compilers_and_libraries_2016.2.181/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2016.2.181/linux/daal/../tbb/lib/intel64_lin/gcc4.4:/opt/intel/compilers_and_libraries_2016.2.181/linux/daal/../compiler/lib/intel64_lin:/opt/intel/vtune_amplifier_xe/bin64:

ldd tests_gtest
linux-vdso.so.1 =>  (0x00007ffeef7ef000)
libmkldnn.so => /home/smonteir/mkl-dnn-master/src/libmkldnn.so (0x00007f5e7b769000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5e7b449000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5e7b143000)
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f5e7af33000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5e7ad1d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5e7aaff000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e7a739000)
libmkl_rt.so => /opt/intel/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/libmkl_rt.so (0x00007f5e7a172000)
/lib64/ld-linux-x86-64.so.2 (0x0000564108a38000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5e79f6d000)

However...The error points to an incorrect evaluation in TestInnerProductForward/inner_product_test_float.TestsInnerProduct/1  listed in  LastTest.log (from Testing/Temporary), which elaborates the failure message as

[----------] 4 tests from TestInnerProductForward/inner_product_test_float
[ RUN      ] TestInnerProductForward/inner_product_test_float.TestsInnerProduct/0
[       OK ] TestInnerProductForward/inner_product_test_float.TestsInnerProduct/0 (27 ms)
[ RUN      ] TestInnerProductForward/inner_product_test_float.TestsInnerProduct/1
/home/smonteir/mkl-dnn-master/tests/gtests/mkldnn_test_common.hpp:152: Failure
The difference between e and 0.0 is 0.83276450634002686, which exceeds 1e-4, where
e evaluates to 0.83276450634002686,
0.0 evaluates to 0, and
1e-4 evaluates to 0.0001.
/home/smonteir/mkl-dnn-master/tests/gtests/mkldnn_test_common.hpp:152: Failure
The difference between e and 0.0 is 0.83273166418075562, which exceeds 1e-4, where
e evaluates to 0.83273166418075562,
0.0 evaluates to 0, and
1e-4 evaluates to 0.0001........ (truncated)

Another oddity is running ./tests_gtests  still shows both TestInnerProductForward/inner_product_test_float.TestsInnerProduct/0 and TestInnerProductForward/inner_product_test_float.TestsInnerProduct/1 to fail. But make test
shows only one of them to fail.
Thanks,
Steena

Hi Steena,
I still see the dependency on libgomp.so in ldd tests_gtest:
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f5e7af33000)

So could you please try using LD_PRELOAD trick just to make sure that this is not the case?
Using GNU and Intel omp runtime simultaneously is undefined behavior, so even running ./tests_gtests several times may lead to different results :)

Hello Evarist (@emfomenk),
Thank you so much! export LD_PRELOAD=/libiomp5.so helped and all tests now pass---during both make tests  and ./tests_gtest !  I still see the libgomp.so.1 dependency in tests_gtests, but it looks like threading in Intel MKL now links with  libiomp5.so and not libgomp.so.1.
Thanks again,
Steena


WIP

<>
Summary:
For more details follow http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html.
JIRA issues:

Can one of the admins verify this patch?


Document special value "direct" for relayhost in README.md

When acting as an mta (by setting mta to true), relayhost must be set to 'direct' for postfix to actually run as an independent mta, and not just relaying email to a smarthost. This is noted in the comments in the mta manifest, but that might be hard to find. Please add it to README.md as well.

Thanks @ingvarha  for you comment.
Could you please make a PR for this ?


fix: get applications pagination count using filters

Ticket: https://pins-ds.atlassian.net/browse/ASB-1836

:tada: This PR is included in version 2.12.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.15.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Cannot escape quotes in waybar-clock on-click command

I am using waybar 0.9.17
I have looked through the man pages but I haven't come across documentation addressing an issue I am having. I want to run a terminal with the cal command to pop up a little calendar. This requires escaping quotes in a command. With my terminal, this looks something like the following:
wezterm --config exit_behavior=\"Hold\" start --class org.wezfurlong.wezterm.cal -- fish -c cal
This works when run from my terminal. Note that I must escape the quotes. I assume I would have to escape the backslash with another backslash in the waybar config. To attempt to replicate this from waybar, I try the following which causes parsing errors:
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "wezterm --config exit_behavior=\\"Hold\\" start --class org.wezfurlong.wezterm.cal -- fish -c cal"
    },

[2023-03-31 17:57:31.200] [error] * Line 26, Column 43
  Missing ',' or '}' in object declaration

I tried to test escaping by opening a terminal that executes the echo command to print out "hello". I can run kitty --hold <cmd> to open the kitty terminal and keep it open with the command output. With this, I want to attempt to print the output:
"hello"
To do this from the terminal, I would execute it as kitty --hold echo \"hello\"
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "kitty --hold echo \"hello\""
    },

Upon clicking, I get a terminal with the text hello.

This causes a parsing error:
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "kitty --hold echo \\"hello\\""
    },

[2023-03-31 17:57:31.200] [error] * Line 26, Column 43
  Missing ',' or '}' in object declaration

    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "kitty --hold echo \\'hello\\'"
    },

This causes a different parsing error:
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "kitty --hold echo \'hello\'"
    },

[2023-03-31 18:00:34.887] [error] * Line 26, Column 21
  Bad escape sequence in string
See Line 26, Column 42 for detail.

This doesn't print out the single quotes:
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "kitty --hold echo 'hello'"
    },

I also attempted escaping with a backtick and by double quoting ""

I think I figured it out. The configuration should be:
    "clock": {
        "format": "{:%a %b %d  %I:%M:%S %p}",
        "interval": 1,
        "on-click": "wezterm --config exit_behavior=\\\"Hold\\\" start --class org.wezfurlong.wezterm.cal -- fish -c cal"
    },


Create default implementation of get_columns_in_relation_sql

Description & motivation
Resolves #51
To come: add some tests (admittedly these won't capture the spark issue because our matrix only covers BQ/SF/RS/PG, but at minimum we should be adding validation for those regardless).
Future possibilities
If https://github.com/dbt-labs/dbt-core/issues/6449 exposes ordinal_position from each adapter in a future release of dbt-core, then a single default__get_columns_in_relation_sql (without adapter-specific overrides) may be sufficient.
Checklist

[x] I have verified that these changes work locally
[x] I have updated the README.md (if applicable)
[ ] I have added tests & descriptions to my models (and macros if applicable)

@dave-connors-3 I did not have a fun afternoon, but I do now have tests up and going!

Although the ordinal position is accurate in my example, since we don't guarantee it to be accurate at all, would it make sense to exclude the related columns from the output if you're using an "unsupported" adapter?

Ironically, in the pursuit of testing I rediscovered one of my traumatic experiences from my Redshift days - you can't persist the results of an information_schema query (even as a view) – afaik it's because that data only lives on the leader node. Because of this, I wound up falling back to the default implementation.
I think this is OK - the get_columns_in_relation macro also powers things like dbt_utils.star and I have never seen that behave non-deterministically. I don't know that consistent behaviour is strictly guaranteed anywhere, but:

if dbt Core broke it I would claim that as a breaking change that shouldn't be allowed in a minor/patch release
if a vendor broke it I would be very mad and I guess we'd just do something about it.

lmk if you strongly disagree!

Are there outstanding blockers here?

@dave-connors-3 here's at least one blocker:

once circle succeeds i will get this merged!


Loom 1.3: Legacy Forge

TODO list:

[x] Generate forge sources
[x] dev.architectury.loom.metadata.McModInfo
[x] Workaround No-Intermediary remapping bug (currently it is using legacy fabric intermediary)
[x] Forge's access transformer
[x] Mod's access transformer
[ ] Project's access transformer
[ ] Add project's access transformer(s!) to META-INF/MANIFEST.MF
[ ] Access widener -> Access transformer conversion
[ ] Confirm coremod functionality
[x] Fix ObfuscationReflectionHelper on 1.12.2-<IP_ADDRESS>16 by fixing FMLDeobfuscatingRemapper
[x] Fix forge not finding log4j-core (fixed by adding org.apache.logging.log4j:log4j-core:2.11.2 to the classpath)
[ ] Use a better LZMA reader
[ ] Find a pack200 reader that doesn't have a sticky license

Find a pack200 reader that doesn't have a sticky license

org.apache.commons:commons-compress
Practically a drop in replacement


Support "eosc get row" that gets a single row

Double checks that the lower bound key is actually the key you asked (otherwise returnsthe next row) so we always need to check. It's about annoying.

Would it make sense to put this in eos-go directly for broader re-use by the community?
Minimally, needs to be a helper in eosc since that is used a lot in various places, voting/recast for example is one.


export getUnspentTxOutsAtAddress

This PR brings back export of getUnspentTxOutsAtAddress to Plutus.ChainIndex.Client module.
We are using plutus-chain-index-core in our application, working extensively with next-node branch, and it would be great to have getUnspentTxOutsAtAddress back.

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[ ] Formatting, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[ ] Reference the ADR in the PR and reference the PR in the ADR (if revelant)
[x] Reviewer requested

This should go in the main branch, not next-node.

@koslambrou
Sorry for confusion. Created new one for main: #667.
This one can be closed I suppose.


Can I use this to define a proxy/wrapper type?

Something like this:
class ProxyWrapper(Generic[T]):
    if not TYPE_CHECKING:
        def __init__(self, obj: T):
            object.__setattr(self, '_obj', obj)
        def __getattr__(self, attr) -> Any:
            # Logic to allow or deny this attr
            return getattr(self._obj, attr)
        def __setattr__(self, attr, value): ...  # Similar

    @classmethod
    def wrap(cls, obj: T2) -> Has[ProxyWrapper[T2], T2]:
        return cls(obj)

The expectation being that the proxy wrapper now has the same attributes as the type it wraps, except where explicitly overridden in the proxy. Is this possible?

Not sure what you're trying to achieve. Could you provide a more complete example of how you'd intend to use this?

Proxying can be somewhat implemented, provided that you only operate on Protocols (this plugin will only ever work with Protocols).
A simplified example:
from typing import Protocol, Generic, TypeVar, Any

from typing_protocol_intersection import ProtocolIntersection

class Dog:
    def pet(self)  -> None: print("pet")
    def feed(self) -> None: print("feed")
    def bark(self) -> None: print("bark")

class IsAnimal(Protocol):
    def pet(self)  -> None: pass
    def feed(self) -> None: pass

class ExtraAbilities(Protocol):
    def fly(self) -> None: pass

T = TypeVar("T")
class FlyAdder(Generic[T]):
    def extend(self, t: T) -> ProtocolIntersection[T, ExtraAbilities]:
        class ExtendedT:
            def fly(self) -> None: print("fly")
            def __getattr__(self, name: str) -> Any:
                return getattr(t, name)
        return ExtendedT()

extra_animal = FlyAdder[IsAnimal]().extend(Dog())
# reveal_type(extra_animal) ->  Revealed type is "typing_protocol_intersection.types.ProtocolIntersection[procy.ExtraAbilities, procy.IsAnimal]"
extra_animal.pet()
extra_animal.fly()
# extra_animal.bark() <- this will not typecheck, as `bark` is not part of neither `ExtraAbilities` or `IsAnimal` protocols, even though it is an attriubute of the originally extended instance

Also note, you could currently say extra_animal = FlyAdder[Dog]().extend(Dog()), but it is incorrect - it's a bug in the plugin I have just discovered and will be fixing soon. If you used this, you couldn't trust mypy.

I believe the answer was satisfactory. Closing.


'MTIShaderLib.h' file not found

Hi @08031992 , please follow the bug report issue template to provide more information about the issue.
https://github.com/MetalPetal/MetalPetal/issues/new?template=BUG_REPORT.md
Closing this one.


setDecorations should validate hover message is a string or string array

From @alexandrudima on November 17, 2015 15:48
Extracted from #115
Copied from original issue: Microsoft/vscode-extensionbuilders#120

Obsolete


adding admin.py to register the concrete models in the admin

PR to autoregister the concrete models in the django admin.
Closes #14 if accepted.

Can you please put these registrations in admin/__init__.py instead of admin.py. As you may realise that all of modules in django-river is like module/init.py instead of module.py like models. I think this keeps project more cleaner and more modular. This is also gonna fix coverage decreased issue.


added the menu option Security

You have to go to Azure Active Directory and then to Security and the Authentication methods. The menu option security was missing.

@aavdberg : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Sorry I cant approve this change as it is not part of the click-through process we use in the articles. Security is not a clickable element.

#please-close


Add decisions made for externalizing OpenSCD plugins

@trusz will take a look at it

@Sander3003 @trusz Pls could you add me as developer to the OpenSCD project? Unfortunately otherwise I can't even merge this PR 😅


Embed Singular.xcframework if needed

Added a build script to embed the Singular.xcframework inside the main iOS target (Unity-iPhone) if the podfile linkage type is set to static. This way users are not forced to set the static linkage type that could cause errors on their current project.

version 5.2.1 reverts back to the usage of iOS static framework.