Default lowering pass for lu_p has accuracy issue.

Description
The background is, I am developing another device backend for JAX, I found the default lowering pass for lu_p has accuracy issue. It can be reproduced on NV platform.
By default if runnning python tests/linalg_test.py NumpyLinalgTest.testDetGrad1 it works well.
But if I comment cuda lowering pass here, it goes default pass here, then running UT raises error:
AssertionError:
Not equal to tolerance rtol=0.1, atol=0.1
JVP primal
x and y nan location mismatch:
 x: array(nan, dtype=float32)
 y: array(0., dtype=float32)

What jax/jaxlib version are you using?
jax 0.4.20, jaxlib 0.4.20+cuda11.cudnn86
Which accelerator(s) are you using?
GPU
Additional system info?
python 3.9
NVIDIA GPU info
No response

Hi - thanks for the report. It looks like this _lu_python implementation is dead code: it is never invoked, because there are platform-specific lowering rules for cpu, cuda, rocm, and tpu, which are all the platforms JAX supports.
With that in mind, I think we could probably delete this code, as it is unused. Would that resolve your issue?

Ah, actually it is not dead code, because it is used in the jax2tf lowering path here: https://github.com/google/jax/blob/42ae8432185bf03f61ddd2e7bc279d3abb5247fd/jax/experimental/jax2tf/jax2tf.py#L3299

The issue is that the _lu_python implementation does not handle the gradient of the determinant for zero-valued inputs. Here's a self-contained reproduction of the issue (run on CPU):
import jax.numpy as jnp
from jax._src.interpreters import mlir
from jax.lax import linalg
import jax.test_util as jtu

x = jnp.zeros((3, 3))
assert x.device().platform == 'cpu'
del mlir._platform_specific_lowerings['cpu'][linalg.lu_p]  # this ensures that the default lowering is used.
jtu.check_grads(jnp.linalg.det, (x,), order=1)

Even more minimal:
import jax.numpy as jnp
from jax._src.lax import linalg
x = jnp.zeros((2, 2))

print(linalg.lu(x)[0])
# [[0. 0.]
#  [0. 0.]]

print(linalg._lu_python(x)[0])
# [[ 0.  0.]
#  [nan nan]]

The root cause is the division operation here: https://github.com/google/jax/blob/b07d176419552dd7147da8002aa80fe4b42bc917/jax/_src/lax/linalg.py#L1166-L1168
When a is all zeros, then this is 0 / 0 which becomes NaN


Code Quality: Remove file selection code from Launcher

Resolved / Related Issues

[ ] Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
Closes #issue...

This PR removes leftover code from FilesLaucher related to selected item highlight (removed in #11509). Allows to remove a 500ms delay before opening folders.
Also fixes an issue for which opening MyComputer from desktop did not open Files Home.
Validation
How did you test these changes?

[x] Did you build the app and test your changes?

Instead of removing file selection code, I think we should keep the file selection functionality by moving Launcher to a separate repository and reinstating the GPL code.

IIRC someone was not happy with that solution on the basis that since Launcher executable is bundled with Files all Files code woud have to be published with GPL (file selection was not working well regardless).

I think a separate repository would solve the licensing issue.
@0x5bfa what do you think?

Definitely should, like already seven zip do.

Happy to hear that. In the meantime this PR just fixes an issue for which opening ThisPC from desktop did not open a new Home tab in Files

I concur. In the meantime this PR just fixes an issue for which opening ThisPC from desktop did not open a new Home tab in Files

This reverts changes made in #11890. Which is better?

@ferrariofilippo fyi

NB: This PR restores opening Files Home when user clicks ThisPC on the desktop (Files set as default).
Open "real" This PC shell folder (current main):

Or open Files Home (this PR and before #11890):

Which is the desired behaviour?

Open "real" This PC shell folder (current main):

This makes more sense to me but either way is fine.


I tested also on BrowserStack.com.
Chrome 116 on OSX works fine.
[edit] Occurs only with Genesis theme
Environment
• Windows 11
• Chrome 116

This can be fixed by increasing --fk-line-height-input and decreasing --fk-padding-input-x css variables. I have not tested other input types to see if it causes different height elements but makes descenders visible.

Resolved with the regenesis theme from https://themes.formkit.com/


Reorganize Folders & Files

Overview

Create more folders for organization and add files according to folder purpose
Delete unnecessary files

Technical Notes

ex: "Admin" folder --> contains resourcetemppage.html, resourcecreate.html, etc.
ex: delete the css files outside of "static"/"css" folder since they're already in the folder

I was going to add folders to try and condense, but it just ended up making things more confusing lol! So I just deleted the extra copies of files we didn't need.


[Bug] train cost model free invalid pointer

------------------------------  [ Train cost model ]
free(): invalid pointer

See If you are a PyTorch user.. under
https://tvm.apache.org/docs/install/from_source.html#build-the-shared-library

I applied the setting set(USE_LLVM "/path/to/llvm-config --link-static") and set(HIDE_PRIVATE_SYMBOLS ON).
But I'm still in the same error while using auto_scheduler.

Error:

----------------------------------------------------------------------
------------------------------  [ Train cost model ]
----------------------------------------------------------------------
free(): invalid pointer
Aborted (core dumped)

Trials:

The error occurs when using TVM (unity branch) built with the above configuration.
However, in main branch, "Train cost model" works without the configuration.

Do you have any idea for this?


Exception when filling a PDF

I was trying to fill a PDF form and I have got this exception, but I couldn't figure out what is happening. I tried to open the PDF form and manually fill it with the same data and I didn't notice any issue, except I found it is formatting my inputs (i.e if I type<PHONE_NUMBER> in phone number, it replaces it with<PHONE_NUMBER>)
stderr: Unhandled Java Exception:
java.lang.ClassCastException: com.lowagie.text.pdf.PRIndirectReference cannot be cast to com.lowagie.text.pdf.PdfNumber
   at com.lowagie.text.pdf.PdfReader.getNormalizedRectangle(pdftk)
   at com.lowagie.text.pdf.AcroFields.getAppearance(pdftk)
   at com.lowagie.text.pdf.AcroFields.setField(pdftk)
   at com.lowagie.text.pdf.AcroFields.setFields(pdftk)

debug: Generating - Error:
 Error: Non 0 exit code from pdftk spawn: 2
    at ChildProcess.<anonymous> (/var/tmp/sharpone/node_modules/fill-pdf/index.js:68:16)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12) [Error: Non 0 exit code from pdftk spawn: 2]

Hey @wassimsalib, is this still an issue or have you moved on? I've got sometime to help if it still an issue.
Looks like it's an issue w/ the PDFs input formatting and trying to fill it.

Hey @ScottONeal , Thanks for getting back to me, yes unfortunately I still have the issue, and I suspected my PDF format, but couldn't figure out what is happening, so your tips will be much appreciated :+1:

Okay, can you give me an example of how you are using the module and loading data into your PDF?

This is how my code exactly looks
var formData={
"fieldName": "fieldValue" //Sometimes the value is a number
};
console.log("checking if PDF exists: ", fs.existsSync(__dirname + '/../../assets/templates/myPDF.pdf'));
 fillPdf.generatePdf(formData, __dirname + '/../../assets/templates/myPDF.pdf', function (err, pdf) {
if(err)
return callback(err);
return callback(null, pdf);
});

Does the error only throw when you try to put a String into the number formatted PDF field, or does it happen with Numbers too?

The last time I tested it was few days ago, but what I remember is that I even tried to fill only one basic string field instead of sending the whole form data, and it was still giving the error.

Okay. I'm curious as to the formatting of your PDF form inputs. If you have a phone number field and you are trying to put a string of non numerics, is that what is throwing the error?
var formData = {
  phoneNumber: 'ab12345' // this should be all numbers
}

Have you tried ensure proper validity of values you are inserting into the pdf?
formData.phoneNumber = formData.phoneNumber.match(/\d+/)[0]
// -> '12345'

closing inactive


feat: handle close highlight dialog

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description

Related Tickets & Documents

Fixes #1267
Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

Not related (or maybe) but it seems like the feed is rerendering non-stop :thinking:
Screencast from 06-14-2023 06:51:37 PM.webm


(MODULES-2709) Implement DSC timeout inside PS

Previously, run timeouts were executed on the Ruby side, which had
the side effect of allowing PowerShell code to continue to run in
the background, which could lead to a host of timing problems.
For instance, a long-running DSC invocation that entered a timeout
state on the Ruby execution side, would efectively block any
additional PowerShell code from running until it had completed.
Rework the timeout to take effect on the PowerShell side.  Create
runspaces as needed (when one does not exist, or when the previous
runspace encountered a timeout and was forcefully Disposed of).
Otherwise, reuse runspaces for performance to behave similarly to
calling ScriptBlock.invoke().
This should clear up any testing issues that have cropped up as a
result of previous runs still executing that were timeout'd.

Waiting on builds now.


How to Hardcode Seed.

I'm trying to fix a seed, so I can ensure a reproducibility of one testing I'm trying to do. Same secret key, same public key, same encoding, encryption etc. All the same.
I'm looking the code and at least for me its still a little bit hard to figure this out. Can someone knows how to do it? Or some hints?
I saw that the randomness is with randomgen.h/cpp and this call blake2 library. But I don't see were is the seed created or modify to hardcore it. I can't figure it out were I can hardcore seed_ (I think is this one) and with what.

Done!
If anyone is interesting of something like this,  simple hardcode the function random_byte in native/src/seal/randomgen.cpp.


Have any plans to support index signature type?

Feature description

To support index signature type.
Input
// typescript type or interface causing the output
export interface ResourceLink {
    /**
     * The link url.
     * @type {string}
     * @memberof ResourceLink
     */
    href: string;
    /**
     * The link method.
     * @type {string}
     * @memberof ResourceLink
     */
    method: string;
    /**
     * Additional data about the link.
     * @type {string}
     * @memberof ResourceLink
     */
    metadata?: string | null;
}

export interface AppDto {
    /**
     * The links.
     * @type {{ [key: string]: ResourceLink; }}
     * @memberof AppDto
     */
    links: {
        [key: string]: ResourceLink;
    };
}

Output
// Expected Zod schemas
export const resourceLinkSchema = z.object({
  href: z.string(),
  method: z.string(),
  metadata: z.string().optional().nullable(),
});

export const appDtoSchema = z.object({
  links: z.record(resourceLinkSchema),
});

Hello @sgalcheung,
I'm puzzled, this is working correctly. The actual output is the expected one when provided the input you mention.
Did I miss anything?

It's an expected one.
When I ran the input, that generated nothing.

Do you have a minimum project to reproduce this?
I run it locally on my machine, and I get exactly the expected output so you might want to look into your project configuration.
ts-to-zod does support index signature type.

I created a minimum project for this.

Hello,
The project you shared doesn't match what you wrote in the ticket 😉
When both ResourceLink and AppDto are in the same file, as you initially mentioned, it does work (see this project)
When they're in 2 separate files, I can see the warning
Warning: Some schemas can't be generated due to direct or indirect missing dependencies:
 ›   appDtoSchema

which seems to be linked to the index signature type.

import type { ResourceLink } from "./ResourceLink.ts";

export interface AppDto {
  /**
   * The links.
   * @type {{ [key: string]: ResourceLink; }}
   * @memberof AppDto
   */
  links: {
    [key: string]: ResourceLink;
  };
}

generates an empty file while it should generate
// Generated by ts-to-zod
import { z } from "zod";

import { resourceLinkSchema } from "./resourceLink.zod";

export const appDtoSchema = z.object({
  links: z.record(resourceLinkSchema),
});

The project you shared doesn't match what you wrote in the ticket 😉

I'm sorry I made the trouble, both of these situations should be very common. I should mention that these are two files. or the comments are different files.
Anyway, through the minimum project, you have already known about this problem.


refactor: move runtime flag into "container.config()" in cli

Signed-off-by: skoo87<EMAIL_ADDRESS>
1.Describe what this PR did
move the runtime flag into the common function "container.config()".
2.Does this pull request fix one issue?

3.Describe how you did it
4.Describe how to verify it
5.Special notes for reviews

LGTM


Installing mkdocs-redirects mentions missing testresources

When installing mkdocs-redirects, a missing dependency "testresources" is mentioned.
Usage of mkdocs-redirects seems not to affected, but would be nice not having this error message.
$ pip --version
pip 21.3.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

// Ensure cache is empty
$ pip cache purge

$ pip install mkdocs-redirects
Defaulting to user installation because normal site-packages is not writeable
Collecting mkdocs-redirects
  Downloading mkdocs-redirects-1.0.3.tar.gz (5.1 kB)
  Preparing metadata (setup.py) ... done
Collecting mkdocs<2,>=1.0.4
  Downloading mkdocs-1.2.3-py3-none-any.whl (6.4 MB)
     |████████████████████████████████| 6.4 MB 3.0 MB/s
[...]
Successfully built mkdocs-redirects
Installing collected packages: six, zipp, python-dateutil, MarkupSafe, watchdog, pyyaml-env-tag, packaging, mergedeep, Markdown, Jinja2, importlib-metadata, ghp-import, mkdocs, mkd
ocs-redirects

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
launchpadlib 1.10.13 requires testresources, which is not installed. // <!---------------------------------------------------------

Successfully installed Jinja2-3.0.3 Markdown-3.3.4 MarkupSafe-2.0.1 ghp-import-2.0.2 importlib-metadata-4.8.2 mergedeep-1.3.4 mkdocs-1.2.3 mkdocs-redirects-1.0.3 packaging-21.2 python-dateutil-2.8.2 pyyaml-env-tag-0.1 six-1.16.0 watchdog-2.1.6 zipp-3.6.0

#29 #27 #30 #26 #28 #

I think this is just some state on your machine, not related to this library


restructure solve interface

If preconditioning is not specified is automatically chosen depending on the type of matrix and problem
extend interface from CommonSolve.jl

Codecov Report

Merging #42 (16c2ff6) into main (e94624d) will decrease coverage by 0.71%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   95.73%   95.02%   -0.72%
==========================================
  Files           7        8       +1
  Lines         211      221      +10
==========================================
+ Hits          202      210       +8
- Misses          9       11       +2

Impacted Files
Coverage Δ

src/IntervalLinearAlgebra.jl
100.00% <ø> (ø)

src/solvers/hull.jl
86.36% <ø> (ø)

src/solvers/solve.jl
88.88% <88.88%> (ø)

Continue to review full report at Codecov.

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


Upgrading to latest imgui and implot

Upgrading to imgui 1.89.3 and latest implot does build fine but CppSharp is having a hard time generating the bindings:
Running DearImGui.Generator
Generation starting...
Generating for X86 in C:\Users\aybe\source\repos\DearImGui\DearImGui.Generator\bin\Debug\net6.0\X86\ImGui.cs...
Parsing libraries...
Parsing code...
Parsed 'imgui.h'
Processing code...
Removed 3 passes of type CppSharp.Passes.CheckIgnoredDeclsPass in PreprocessPasses
Removed 1 passes of type CppSharp.Passes.CleanCommentsPass in PreprocessPasses
Changed usage to 'InOut' for parameter 'mouse_pos' in function 'IsMousePosValid'.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at DearGenerator.Library.Ignore(ASTContext ctx, String className, String memberName, IgnoreType ignoreType) in C:\Users\aybe\source\repos\DearImGui\DearGenerator\Library.cs:line 53
   at DearGenerator.Library.PreprocessIgnores(ASTContext ctx) in C:\Users\aybe\source\repos\DearImGui\DearGenerator\Library.cs:line 212
   at DearGenerator.Library.Preprocess(Driver driver, ASTContext ctx) in C:\Users\aybe\source\repos\DearImGui\DearGenerator\Library.cs:line 285
   at CppSharp.ConsoleDriver.Run(ILibrary library)
   at DearGenerator.CodeGenerator.Generate(String module, String sourceDirectory, String targetDirectory, CodeGeneratorFactory factory, CodeGeneratorTransform transform) in C:\Users\aybe\source\repos\DearImGui\DearGenerator\CodeGenerator.cs:line 352
   at DearGenerator.CodeGenerator.Generate(String module, String sourceDirectory, String targetDirectory, CodeGeneratorFactory factory, CodeGeneratorTransform transform) in C:\Users\aybe\source\repos\DearImGui\DearGenerator\CodeGenerator.cs:line 361
   at DearImGui.Generator.Program.Main() in C:\Users\aybe\source\repos\DearImGui\DearImGui.Generator\Program.cs:line 9
   at DearImGui.Generator.Program.<Main>()
Aborting, last command failed with error code -532462766

It's erroring cause it's trying to ignore something that doesn't exist anymore it seems, commenting it out works.

Yep, thanks, fixed it 32cd37bd2d29897236f38af91c5687c3eaea3137, I've added you as co-author ofc 😁


Vickel: Blacklist 1-888-839-0555

Vickel requests the blacklist of the number 1-888-839-0555. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by double-beep in Charcoal HQ


Which version to use?

It's difficult to understand the differences between various versions of the packages here. On nuget the latest released is 1.1.0 preview, the latest commit is to branch called 2.2, the master branch is 3.0(?). Which of the branches can I use? Also please note that I am planning to use Azure hosted SignalR and I read it's only supported in 2.2. Can anyone provide info what's the difference between these versions?

On nuget the latest released is 1.1.0 preview.

Yes, 1.1.0 is the latest preview, you can use 1.0.3 if you want the latest stable bits.

the latest commit is to branch called 2.2, the master branch is 3.0(?).

It's confusing because we're following .NET Core and ASP.NET Core branch names. SignalR 1.1 is the 2.2 branch and 3.0 will be likely be the next version (still TBD)

Also please note that I am planning to use Azure hosted SignalR and I read it's only supported in 2.2. Can anyone provide info what's the difference between these versions?

I don't know where you read that. It works with all released versions of SignalR. Can you point me to what you read so I can correct it?

Thanks for clearing that up. As for the last bit, I saw this issue while browsing through: https://github.com/aspnet/SignalR/issues/2862. It had a label "2-working" that's where my assumption came from. However now I see that it also has a label "client:Java", so my bad.
One more thing: Do you guys have any changelogs between releases?

One more thing: Do you guys have any changelogs between releases?

We're supposed to but we're been bad and haven't written anything since 2.1.0-preview2.

Ah alright. I tried to figure it out from the commit history but the way branches were merged made it hard to follow them. I'll do a squash and compare them or so. Thanks again :)

@anurse @danroth27 Who does the release notes...?


Initial version for EXXN Integration Guide

Initial version for EXXN Integration Guide.
Please, tell us if you found any problem.
We have follow all the intructions on contribute guide.
Thank you.

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


Fix 483 project item save filename null

fix #483
the filename parameter of both Envdte.Project.Save and Envdte.ProjectItem.Save is optional ( null value or string.empty )
Same behaviour of c# projects

Looks pretty straightforward.  Can we get at this with a unit test? Out of curiosity, what file name gets used if you pass null/empty string?

We discussed this one today at shiproom and it was judged that this doesn't meet the bar for VS 2015.  It's a low-priority scenario, with an easy workaround, that isn't a regression.
We can take it for the next update, though.

sure, thx @latkin

Applied to the OOB branch, thanks!


rocAL V2.0.0 - Updates and fixes

@rrawther @LakshmiKumar23  -- review latest docs - https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/

@LakshmiKumar23  - look into this issue
14: Running test command: "/home/kiriti/develop/rocal-kiriti/build/tests/cpp_api/video_tests/video_tests" "/opt/rocm/share/rocal/test/data/videos/AMD_driving_virtual_20.mp4"
14: Test command failed: /home/kiriti/develop/rocal-kiriti/build/tests/cpp_api/video_tests/video_tests
14: Batch size : 1
14: Sequence length : 1
14: Frame step : 1
14: Frame stride : 1
14: OK: OpenVX using GPU device - 0: AMD Radeon PRO W6800 [gfx1030] with 60 CUs on PCI bus 0b:00.0
14: OK: loaded 114 kernels from libvx_rpp.so
14:
14: >>>> VIDEO READER
14:
14: Remaining images 601
14: Augmented copies count 1
14: output width 2048 output height 1024 color planes 3
14: Load     time 1532
14: Decode   time 83455201
14: Process  time 1353638
14: Transfer time 83407902
14: >>>>> 601 images/frames Processed. Total Elapsed Time 83 sec 470433 us
14:
14: *** Exception executing: Segmentation fault
14/14 Test #14: video_tests ........................***Failed   87.66 sec

93% tests passed, 1 tests failed out of 14

Total Test time (real) = 206.70 sec

The following tests FAILED:
	 14 - video_tests (Failed)
Errors while running CTest
make: *** [Makefile:107: test] Error 8

@rrawther @LakshmiKumar23 - package creation
make
[  1%] Built target rocAL_hip
[ 97%] Built target rocal
[100%] Built target rocal_pybind
kiriti@simon:~/develop/rocal-kiriti/build$ sudo make package
[  1%] Built target rocAL_hip
[ 97%] Built target rocal
[100%] Built target rocal_pybind
Run CPack packaging tool...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: rocal
CPack: - Install project: rocal []
CPack: Create package
CPack: - package: /home/kiriti/develop/rocal-kiriti/build/rocal-2.0.0-Linux.tar.gz generated.
CPack: Create package using ZIP
CPack: Install projects
CPack: - Run preinstall target for: rocal
CPack: - Install project: rocal []
CPack: Create package
CPack: - package: /home/kiriti/develop/rocal-kiriti/build/rocal-2.0.0-Linux.zip generated.
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: rocal
CPack: - Install project: rocal []
CPack: -   Install component: runtime
CPack: -   Install component: dev
CPack: -   Install component: test
CPack: Create package
CPack: - package: /home/kiriti/develop/rocal-kiriti/build/rocal-dev_2.0.0-local_amd64.deb generated.
CPack: - package: /home/kiriti/develop/rocal-kiriti/build/rocal_2.0.0-local_amd64.deb generated.
CPack: - package: /home/kiriti/develop/rocal-kiriti/build/rocal-test_2.0.0-local_amd64.deb generated.

Hello, I took a look at these changes and they seem good.
However, I noticed some other issues in this area not related to your changes. Do you think this is something that can be fixed as part of this work?
=================== https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/doxygen/html/index.html broken link

==========================
https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/examples.html Broken links
=================
https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/how-to/overview.html
Broken link

========================= https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/how-to/framework.html
Broken links

=================================
https://advanced-micro-devices-demo--131.com.readthedocs.build/projects/rocAL/en/131/doxygen/html/modules.html
Different order in list. For example:

@lpaoletti I can open an issue and fix with an PR

@lpaoletti -- issue to track - #133

@LakshmiKumar23 -- ready to be reviewed and tested.

@lpaoletti : Thanks for reporting this. We will fix it

@lpaoletti @kiritigowda Some of these links will show broken now because they are available only on develop, but I linked the examples to master in my #126 . Once develop is merged with master, most of it should be okay

@rrawther @LakshmiKumar23  - good to merge
[ 99%] Building python wheel package
Processing /home/kiriti/develop/rocal-kiriti/build
Building wheels for collected packages: amd-rocal
  Building wheel for amd-rocal (setup.py) ... done
  Created wheel for amd-rocal: filename=amd_rocal-2.0.0-cp38-cp38-linux_x86_64.whl size=3570449 sha256=0f4b152c52de3aed3d6278e2a1f8d2627fe0bb37147b4f5db7ccac0cc299de2c
  Stored in directory: /tmp/pip-ephem-wheel-cache-lgze8pnb/wheels/16/2c/fd/4e70e92f01feb24bb1164fca95e50c4536fcdb34eed0d6c371
Successfully built amd-rocal
[ 99%] Built target PyPackageBuild
Scanning dependencies of target PyPackageInstall
[100%] Installing wheel file
Processing ./amd_rocal-2.0.0-cp38-cp38-linux_x86_64.whl
Installing collected packages: amd-rocal
  Attempting uninstall: amd-rocal
    Found existing installation: amd-rocal 1.0.0
    Uninstalling amd-rocal-1.0.0:
      Successfully uninstalled amd-rocal-1.0.0
Successfully installed amd-rocal-2.0.0
[100%] Built target PyPackageInstall


ScalaDoc - cannot resolve reference to type

Compiler version
3.3.3
3.4.1-RC2
Minimized code
https://github.com/OndrejSpanel/scaladoc-cannot-resolve
The repro needs three source files. The core of the issue is:
trait Ops {
  final implicit class Ops[A](private val self: A) {
    def tap(): Unit = ()
  }
}

package object util extends Ops

There is some confusion in the class names. If the implicit class is named differently, the issue does not show.
Output
Using doc in this project prints following error:
cannot resolve reference to type demo.util.package.type.Ops
the classfile defining the type might be missing from the classpath

3.4.2-RC2 compiler reports following enriched exception (thankfully, otherwise locating the issue source would be a nightmare):
  exception occurred while readTasty class file demo.debug.Impl

  An unhandled exception was thrown in the compiler.
  Please file a crash report here:
  https://github.com/scala/scala3/issues/new/choose
  For non-enriched exceptions, compile with -Yno-enrich-error-messages.

     while compiling: class file demo.debug.Impl
        during phase: readTasty
                mode: Mode(ImplicitsEnabled,ReadPositions)
     library version: version 2.13.12
   compiler version: version 3.4.1-RC2

Note
Tool reports:

Main Scala API documentation successful.

But it  was not successful, the generated ScalaDoc is incomplete. there are no HTML files created at all.
Expectation

code which compiles fine should not throw exception when generating docs
if it does, the tool should not report successful completion

Fixed in both Next and LTS (tested using 3.3.4-RC1-bin-20240706-0d787e2-NIGHTLY)


Assignment 17 -- Refining RBL topics with current knowledge

Read again your previous story about RBL in #2.
Write a new story with your current knowledge about it by planning

Time schedule (include weekly progress report),
References (code, article, blog, etc),
Output target (journal article, code, library, procedure, etc).

If journal or seminar, where to publish and / or deliver,
If code, where to share or publish,
If library, where to publish and share,

Collaboration type: Individual or group (mention possible members up to 3 person / group),

If group, who will be the first author (or other consideration),

Possible challenges, and
Final report format and its reference (it depends on type of output target).
The story should be at least 5 minutes of reading and maximum 10 minutes.

Estimation time ~ 6 hours.

Ilona<EMAIL_ADDRESS>

Marco Sutisna Putra
ID: 20924001
Link Artikel Medium: https://medium.com/@marcosutisna/rbl-progress-and-what-to-do-55c421e30d70

Gerend Christopher (20924009)
Medium: https://medium.com/@gerendc/selecting-rbl-project-in-visualization-in-science-a7cf569567d0

Ahmad Zaini Zahrandika (20923302)
Medium story: https://medium.com/@izay2001/visualisasi-kerapatan-penduduk-di-indonesia-73bfcb41014e


Searcher improvements

This PR makes improvements to the python searcher implementation

It adds a limit kwarg to LOPQSearcher#search mostly to help highlight the fact that the number of desired results (limit) and the number to rank (quota) are distinct.
Implements an LOPQSearcher#add_codes method.
Factors parallel code computation out of searcher since it is general.
Implements LOPQSearcherLMDB that is backed by lmdb rather than a python dict; add tests.

These changes should make working with bigger datasets easier.
@huyng @skamalas

Looks great & simpler! :+1:

CLA is valid!

Looks good @pumpikano

:+1:


Document error behaviour of JS KV get/getJson

This captures how things behave at js2wasm 0.5.1 / spin-sdk 0.5.0.
@karthik2804 I don't know if the behaviour of getJson in particular is considered correct. If this doesn't seem right and you plan to change it, we can hold off on these docs.
Content must go through a pre-merge checklist.
Pre-Merge Content Checklist
This documentation has been checked to ensure that:

[ ] The title, template, and date` are all set
[ ] Does this PR have a new menu item (anywhere in templates/*.hbs files) that points to a document .md that is set to publish in the future? If so please only publish the .md and .hbs changes in real-time (otherwise there will be a menu item pointing to a .md file that does not exist)
[ ] File does not use CRLF, but uses plain LF (hint: use cat -ve <filename> | grep '^M' | wc -l and expect 0 as a result)
[ ] Has passed bart check
[ ] Has been manually tested by running in Spin/Bartholomew (hint: use PREVIEW_MODE=1 and run npm run styles to update styling)
[ ] Headings are using Title Case
[ ] Code blocks have the programming language set to properly highlight syntax and the proper copy directive
[ ] Have tested with npm run test and resolved all errors
[ ] Relates to an existing (potentially outdated) blog article? If so please add URL in blog to point to this content.

@itowlson - I was not planning on updating the implementation, that is not to say that I consider that the correct behavior or not. So we can go ahead with these docs.
If we feel this is the incorrect behavior, I would be happy to update it.

@karthik2804 Well, the getJson error is specifically:
Handler returned an error: Uncaught TypeError: cannot read property 'buffer' of null
    at <anonymous> (sdk.js)
    at <anonymous> (script.js:158)
    at <anonymous> (script.js:246)
    at call (native)
    at step (script.js:234)
    at <anonymous> (script.js)
    at <anonymous> (script.js:209)
    at Promise (native)
    at <anonymous> (script.js:210)
    at handleRequest (script.js:255)
    at <anonymous> (sdk.js:4089)
    at call (native)
    at step (sdk.js:4006)
    at <anonymous> (sdk.js)
    at <anonymous> (sdk.js:3981)
    at Promise (native)
    at <anonymous> (sdk.js:3982)
    at _handleRequest (sdk.js:4100)

which doesn't exactly scream "non-existent key".  I would have expected null (no value found, consistent with get) or a specific "key not found" error - wouldn't you?  But I can leave this with the slightly evasive "throws an error" for now and we can decide whether to improve it in a later SDK release.  Thanks!

@itowlson I will put it on my to-do list for the next SDK release.


Map of benin where a crop will succeed

Following #37

@Ethel2003 @chrichri17 could you test this notebook and give your feedback as soon as possible?
Deadline tomorrow end of day.

I tested the notebook and it's perfect!!!!!

i had due to download the file of locations of communes. I ask me if the file wouldn't have to already in the notebook when i cloned the branch in local

i had due to download the file of locations of communes. I ask me if the file wouldn't have to already in the notebook when i cloned the branch in local

Hi @Ethel2003 , the shapefile of the administrative boundaries of counties in Benin has to be downloaded. We can't put it in the notebook. Remember that git purpose is to version code, not data.
Obviously I can make a function to download it automatically so that the notebook runs in a standalone way but I'm not sure to have the time to do it before tomorrow. I agree it would be more user friendly though.


Increase file_uploader file size limit to 1GB

I opened this PR because I thought this was an issue in #121. However this comment  indicates the limit was already increased.
Still this change might be useful for other users who have videos >200MB.

I see this is already accounted for in the FAQs and mentioned in other github issues.
Therefore, closing PR.


pa_context_connect() failed when X11 socket and DISPLAY variable are passed in docker run

Hello,
Firstly thanks for publishing this it's really useful. I've been using it as a starting point trying to get pulseaudio in docker working on some other applications. One weird thing I've discovered is that passing the X11 socket and DISPLAY variable to docker causes a "pa_context_connect() failed: Connection refused", as the applications I'm working on are GUI apps I clearly need to be able to pass this info.
For example, if I do:
docker run -it --rm -v /run/user/1000/pulse:/run/user/1000/pulse thebiggerguy/docker-pulseaudio-example

I see
Opening a playback stream with sample specification 's16le 2ch 44100Hz' and channel map 'front-left,front-right'.
Connection established.
Stream successfully created.
Buffer metrics: maxlength=4194304, tlength=352800, prebuf=349276, minreq=3528
Using sample spec 's16le 2ch 44100Hz', channel map 'front-left,front-right'.
Connected to device alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1 (index: 1, suspended: no).
Stream started.

And hear lovely loud noise from /dev/urandom on my host
However if I do:
docker run -it --rm -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/1000/pulse:/run/user/1000/pulse thebiggerguy/docker-pulseaudio-example

That is to say I include the option -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix in the docker run I see:
Opening a playback stream with sample specification 's16le 2ch 44100Hz' and channel map 'front-left,front-right'.
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

I don't suppose that you could point me at what I might be missing? Google searches seem to be a bit light when it comes to the subject of pulseaudio from docker, which is what led me here in the first place.
Many thanks in advance.

Update...
From https://wiki.archlinux.org/index.php/PulseAudio/Configuration I discovered that "PulseAudio also uses window properties on the root window of the X11 server to help find the daemon" so I wondered if it might use that in precedence to the client.conf so just to see I tried:
docker run -it --rm -e PULSE_SERVER=unix:/run/user/1000/pulse/native -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/1000/pulse:/run/user/1000/pulse thebiggerguy/docker-pulseaudio-example

Running that seems to work, though I'm kind of confused as doing xprop -root on my host yields PULSE_SERVER(STRING) = "{}unix:/run/user/1000/pulse/native" though I note that the uuid is my machine_id when I do cat /var/lib/dbus/machine-id so I wonder if the container is unable to correctly access the value because it has a different machine_id
I've since tried the -e PULSE_SERVER=unix:/run/user/1000/pulse/native to some of my other docker run scripts and it seems to be doing the trick so I figured I'd share what I've found here.
Thanks again for this example I doubt I'd have made much progress if it weren't for this.

Hi,
Thanks, I have the same issue and it fix it.

@fadams I want to thank you for sharing your solution, as it saved me a lot of trouble 👍

@bartfeenstra that's very kind, you are very welcome indeed.
FWIW rather than doing the /run/user/1000/ bit it's probably better to use the $XDG_RUNTIME_DIR variable.
Also, rather than setting up the user in the Dockerfile I tend to do
    -u $(id -u):$(id -g) \
    -v /etc/passwd:/etc/passwd:ro \

In the docker run command. Passing in /etc/passwd isn't strictly necessary either as Docker cares more about the uid than name (that's why I pass the uid in the -u).
As an aside the thing about disabling shm is due to a bug in pulseaudio versions 7 to 9, I don't see it in an old ubuntu 14.04 host (pa version 4) nor in Debian 9, CentOS 7 and Fedora 26 which all use pa 10, but it's there in ubuntu 16.04 based distros which use pa 8.
The bug report is here https://bugs.freedesktop.org/show_bug.cgi?id=92141
In pa version 9 you can also fix it by putting enable-memfd = yes in the daemon.conf.
In pa 7 and 8 you can keep the shm and make it behave more like pa 6 by editing the /etc/pulse/default.pa (or copying that to your ~/.config/pulse and editing) - find the line
load-module module-native-protocol-unix

and change it to
load-module module-native-protocol-unix srbchannel=no

and restart pulseaudio
That approach will disable stbchannel for everything though whereas the disabling shm approach can be done just for the Dockerised client, YMMV.
FWIW what I usually do is to add this
    cp /etc/pulse/client.conf /etc/pulse/client-noshm.conf && \
    sed -i "s/; enable-shm = yes/enable-shm = no/g" /etc/pulse/client-noshm.conf

to my Dockerfiles which creates a copy of client.conf with the shm disabled. Then in the run script that calls my docker run on the host I detect which pulseaudio version is running and choose the best client.conf - like this
# If user isn't in docker group prefix docker with sudo
if id -nG $(id -un) | grep -qw docker; then
    DOCKER_COMMAND=docker
else
    DOCKER_COMMAND="sudo docker"
fi

# For pulseaudio versions 7 to 9 there is a bug whereby shm files get "cleaned
# up" incorrectly in containers, so force those versions to disable shared
# memory. Pulseaudio 10 enables memfd by default, which apparently fixes this.
# See https://bugs.freedesktop.org/show_bug.cgi?id=92141
PULSE_VERSION=$(pulseaudio --version | sed 's/[^0-9.]*\([0-9]*\).*/\1/')
if ([[ $PULSE_VERSION -gt 6 ]] && [[ $PULSE_VERSION -lt 10 ]]); then
    PULSE_FLAGS="-e PULSE_CLIENTCONFIG=/etc/pulse/client-noshm.conf"
fi

$DOCKER_COMMAND run --rm \
    -u $(id -u):$(id -g) \
    -v /etc/passwd:/etc/passwd:ro \
    -e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
    -v $XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse:ro \
    -v $HOME/.config/pulse/cookie:$HOME/.config/pulse/cookie:ro \
    $PULSE_FLAGS \
    pulseaudio-utils

HTH

Thanks again, for even more useful information! I had been looking for an environment variable with the current user UI for a while (they don't seem to be cross-platform?), but $XDG_RUNTIME_DIR is an even more elegant solution :)
I just checked, and both my Ubuntu 17.10 host and Debian 9 container run Pulse 10.0, yet I still had the problem of no audio until I applied your workaround of setting PULSE_SERVER.

Sorry, I probably wasn't as clear as I should have been.
Yes, you still need to set PULSE_SERVER stuff even with pa 10.
The other bits I mentioned relate to the slightly orthogonal thing of there being an issue with how PulseAudio "cleans up" shared memory, such that on some versions you see shm_open() failed: No such file or directory. With pa 10 you won't need any of the workarounds that disable or downgrade the use of shared memory.
If you are just running Ubuntu 17.10 with pa 10 then memfd is enabled by default and everything is fine and you won't notice there being a problem, but you still need to be aware of the issues so your containerised application will run on hosts using pa 7, 8 and 9. As Ubuntu 16.04 and derivatives are LTS versions and use pa 8 it's something that you'll need to cater for for some time.
Hope that makes sense and sorry about the confusion.
On the $XDG_RUNTIME_DIR yeah I "think" that's the "correct" answer in as much as $XDG_RUNTIME_DIR is part of the freedesktop.org standard https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html I've tried it on on Ubuntu 14.04, 16.04 and 17.10, Mint 17 and 18, Debian 9, CentOS 7 and Fedora 26 and I expect that it's set on many others too.

Awesome! This saved the life of my project running on Docker!

Thanks a lot for your sharing! This questions had bothered me a lot, I think I should search for solutions in github more earlier next time :+1:

@missingdaysqxy thank's for your kind reply. it is very much appreciated.
FWIW the whole topic of running graphical and multimedia applications in Docker has been a topic that has interested me for a while and I actually ended up publishing a book on the subject Running GUI Applications in Docker cause I couldn't easily find the info I wanted elsewhere. There's a section on Audio including ALSA, PulseAudio and JACK, but lots more including 3D acceleration plus OpenCL & CUDA acceleration and a load of info on remoting applications and whole desktops. the code is here.


Binance chain: Add support for Issue, Mint, Burn orders.

Description
Added support for the following mesagges in Binance Signer:
TokensIssueOrder, TokensMintOrder, TokensBurnOrder.
Fixes #560 .
Testing instructions
Run unit tests.
Types of changes

New small feature (non-breaking change which adds functionality)

Checklist

[x] Prefix PR title with [WIP] if necessary.
[x] Add tests to cover changes as needed.
[x] Update documentation as needed.

Cross checked with binance chain sdk; updated tests as a result.  Results match now, thanks @hewigovens for the hint.


Link error

https://github.com/triple-Mu/YOLOv8-TensorRT?tab=readme-ov-file#just-taste-first
Just Taste First
If you just want to taste first, you can download the onnx model which are exported by YOLOv8 package and modified by me.
YOLOv8-n
YOLOv8-s
YOLOv8-m
YOLOv8-l
YOLOv8-x

https://github.com/triple-Mu/YOLOv8-TensorRT?tab=readme-ov-file#just-taste-first
Just Taste First
If you just want to taste first, you can download the onnx model which are exported by YOLOv8 package and modified by me.
YOLOv8-n
YOLOv8-s
YOLOv8-m
YOLOv8-l
YOLOv8-x

Thanks a lot!


[1.37.x] release notes

@Cristiano, this is a list of JIRAS that should be added
https://issues.redhat.com/browse/KOGITO-8928
https://issues.redhat.com/browse/KOGITO-8925
https://issues.redhat.com/browse/KOGITO-8908
https://issues.redhat.com/browse/KOGITO-8903

@fjtirado thanks, added new JIRAs


Locking a row using FOR UPDATE

What would be a good way to lock a row when performing a SELECT? https://stackoverflow.com/questions/6066205/when-using-mysqls-for-update-locking-what-is-exactly-locked
I couldn't find anything that's even close. If there isn't anything built-in, could this be done easily using an extension?

We have SqlExpression.extraProperties, that can help us to custom the SQL DSL.
Write an extension function for Query to set a flag into extraProperties:
fun Query.forUpdate(): Query {
    val expr = this.expression

    val exprForUpdate = when (expr) {
        is SelectExpression -> expr.copy(extraProperties = expr.extraProperties + Pair("forUpdate", true))
        is UnionExpression -> expr.copy(extraProperties = expr.extraProperties + Pair("forUpdate", true))
    }

    return this.copy(expression = exprForUpdate)
}

Write a custom SQL formatter to read the flag and generate the correct SQL:
class CustomSqlFormatter(database: Database, beautifySql: Boolean, indentSize: Int)
    : MySqlFormatter(database, beautifySql, indentSize) {

    override fun visitQuery(expr: QueryExpression): QueryExpression {
        super.visitQuery(expr)

        if ("forUpdate" in expr.extraProperties) {
            write("for update ");
        }

        return expr
    }
}

Connect to database with our custom SQL formatter:
Database.connect(
    url = "jdbc:mysql://localhost:3306/ktorm",
    driver = "com.mysql.jdbc.Driver",
    dialect = object : SqlDialect {
        override fun createSqlFormatter(database: Database, beautifySql: Boolean, indentSize: Int): SqlFormatter {
            return CustomSqlFormatter(database, beautifySql, indentSize)
        }
    }
)

Then we can use it:
val query = Employees
    .select(Employees.id, Employees.name)
    .where { Employees.id eq 1 }
    .forUpdate()

Generated SQL:
select t_employee.id as t_employee_id, t_employee.name as t_employee_name
from t_employee
where t_employee.id = ?
for update

You are the best! Thank you!!
Any thoughts about adding this to supported core dialects?

Will add to MySQL dialect.

Would it be okay to leave this issue open until it's actually implemented? It doesn't seem to exist in the MySQL dialect yet.

@ragnese Sure.
Sorry that I almost forgot this issue.

Supported in Ktorm 3.1.0.


Allow newer versions of pyparsing

Fixes #10

Closed in favour of https://github.com/catcombo/jira2markdown/pull/12


Error bindFailed("Address already in use")

Problem:
Use the methods in this sequence:
server.start()
server.stop()
server.start()
leads to an error and the http server is not working anymore (does not response anymore).
Szenario:
http server is started server.start() at applicationDidBecomeActive (AppDelegate) and is stopped server.stop() at applicationWillResignActive (AppDelegate) to reduce memory and cpu consumption.
Tested with iOS 10, XCode 8.1.
Reason:
Probably: After stop() the web process is still running and the port is blocked.

Is the project abandoned? It appears the last release was October and serious bugs are preventing the server from working now.

@brennanMKE not abandoned.

Does anyone have a solution for this?

@evertoncunha I learned my issue was caused by Apple changing how unit tests were executed. I was setting up an HTTP server with swifter to test network requests locally. Previously I could start the server and use it for multiple tests, but it seems an instance of the test class was created for each unit test and the first one would use the port for the HTTP server and block the rest. I had to carefully adjust how that worked to get past it.


chore: fix warnings in metadata module

Fixes clippy lint warnings in metadata module.
Note that this PR manually implements Hash for MatadataValue.  This was necessary because there is a manual PartialEq implementation. This is particularly important for binary metadata values.

On a side note, I don't know if it would be worth it to review MatadataMap's implementation, particularly around constructors. It carried over some of http::HeaderMaps  details, that were written before TryFrom and possibly other traits were stable.


We need FriendShip.add() or some new method to get  raw payload

Is your feature request related to a problem? Please describe.
We are Uniqueway. we already hook the interface about FriendShip.add() to get rawPayload through Wechaty and WechatyPadPro.
Cause our situation is very complicated, we bought 23 keys to realize the function of actively adding friends. (Every number adds 6 friends every day) But because I recently encountered a problem that padpro can't log in. We need to switch to WechatyMacPro.
We have our own interface for each update. Change the files of the three repos(Wechaty, WechatyPuppet, WechatyPadPro) and publish them yourself. Get the guest's original payload with the bot.friendShip.add() method. Very troublesome.
Describe the solution you'd like
So I want to be able to provide this interface officially. But to avoid abuse, it can be like bot.Contact.load(). Not written on the document. As an internal method. For example, bot.friendShip.dirtyAdd() returns rawPayload
[enhancement]

I'd like to flag it as a question, and if there's enough attention/discussion on this problem, then I'll take time to think about it.


[Readme] Wrong links to services descriptions

The two links at the bottom of the readme (see picture below) give 404 error

Oh. Silly me. Hold on.

Fixed. Thanks.


Problems when using jRuby <IP_ADDRESS>

I ran the tests with jRuby <IP_ADDRESS> and got these results:
➜  rubysl-open3 git:(2.0) mspec .
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
jruby <IP_ADDRESS> (2.3.1) 2016-11-09 0150a76 Java HotSpot(TM) 64-Bit Server VM 25.101-b13 on 1.8.0_101-b13 +jit [darwin-x86_64]
...........F..

1)
Open3.popen3 executes a process with a pipe to read stderr FAILED
Expected "Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0\nfoo"
to equal "foo"

/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/expectations/expectations.rb:15:in `fail_with'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/matchers/base.rb:9:in `=='
/Users/someuser/Workspace/OpenSource/rubysl-open3/spec/popen3_spec.rb:17:in `block in (root)'
org/jruby/RubyBasicObject.java:1689:in `instance_eval'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:69:in `protect'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/context.rb:179:in `block in protect'
org/jruby/RubyEnumerable.java:1586:in `all?'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/context.rb:179:in `protect'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/context.rb:208:in `block in process'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:239:in `block in repeat'
org/jruby/RubyFixnum.java:299:in `times'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:238:in `repeat'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/context.rb:200:in `block in process'
org/jruby/RubyArray.java:1734:in `each'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/context.rb:199:in `process'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:38:in `describe'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/object.rb:11:in `describe'
/Users/someuser/Workspace/OpenSource/rubysl-open3/spec/popen3_spec.rb:3:in `<main>'
org/jruby/RubyKernel.java:977:in `load'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:1:in `block in (root)'
org/jruby/RubyBasicObject.java:1689:in `instance_eval'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:57:in `files'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:69:in `block in protect'
org/jruby/RubyArray.java:1734:in `each'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:57:in `files'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:51:in `files'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/runner/mspec.rb:43:in `process'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/lib/mspec/commands/mspec-run.rb:94:in `run'
/Users/someuser/.rvm/gems/jruby-<IP_ADDRESS>/gems/mspec-1.9.1/bin/mspec-run:8:in `<main>'

Finished in 23.458000 seconds

11 files, 3 examples, 3 expectations, 1 failure, 0 errors

@lortega this failure doesn't have anything to do with the library. Your JRuby instance is writing unexpected text to stderr.

@brixen so, If you run the same tests on jruby you get the same tests passing?

@lortega No. JRuby is writing that JVM warning text to stderr when it shouldn't be. This exposes a problem in JRuby. JRuby should be suppressing those warnings when called via popen. For example, when called via popen then stdout, stdin, and stderr are probably NOT ttys. If those file descriptors are not a TTY (see IO.tty?) then the warning should not get written to stderr.
I suggest opening a bug with JRuby and using this as a reproduction of the error.


Write a Kotlin program to find the eigenvalues of a matrix

Description
Write a Kotlin program to find the eigenvalues of a matrix
The eigenvalues and eigenvectors of a linear transformation are the values and vectors that determine the transformation. The eigenvalues of a matrix A are the values λ for which the matrix equation Av = λv has a non-trivial solution.
Input  :
1 2 3
4 5 6
7 8 9

Output :
16.116843969807043
-1.1168439698070427
0.9999999999999998

How to contribute

Save the solution in FindTheEigenvaluesOfAMatrix.kt file
Add FindTheEigenvaluesOfAMatrix.kt file in program/find-the-eigenvalues-of-a-matrix folder

!assign

!assign


Mysql 8 compatibility

The column names in the MySQL 8 version of information_schema.columns are in uppercase. Although we can reference them in lowercase and MySQL doesn't mind, the query response is in uppercase and PHP does care. This change just sets aliases to make sure the response always comes back in lowercase.

I've merged a solution and more tests in, these should resolve your issue https://github.com/forceedge01/behat-sql-extension/pull/91


BlogPost - HTML: Create a layout of blogpost page

If time add pagination, allow filtering from a-z, z-a and oldest-newest as well, add a filter mechanism to allow users filter through posts


[FR] - include the stake-distribution within the drep-state query

To get the whole information about a drep keyHash, we have to make two queries:

query the drep-state

[
    [
        {
            "keyHash": "2c0e9f599655bd3f7f313a3a61fe05fb9caac4cc3d1aa77740fc9579"
        },
        {
            "anchor": null,
            "deposit": 2000000,
            "expiry": 223
        }
    ]
]

query the drep-stake-distribution

[
    [
        "drep-keyHash-2c0e9f599655bd3f7f313a3a61fe05fb9caac4cc3d1aa77740fc9579",
        1625348
    ]
]

Would it be possible to directly have an entry for the currently delegated amount within the drep-state output?
Like:
[
    [
        {
            "keyHash": "2c0e9f599655bd3f7f313a3a61fe05fb9caac4cc3d1aa77740fc9579"
        },
        {
            "anchor": null,
            "deposit": 2000000,
            "expiry": 223
        },
        {
            "delegation": 1625348
        }
    ]
]

or similar?

cc @CarlosLopezDeLara @carlhammann


[BUG] OTA Timer handle NULL for Timerid=0, can't stop.

Describe the bug
on an ESP32 When OTA is starting on the log I get the following:
I (56687) ota_over_mqtt_demo: Subscribed to topic $aws/things/mything/jobs/notify-next.
I (57867) ota_over_mqtt_demo: Sent PUBLISH packet to broker $aws/things/mything/jobs/$next/get to broker.
W (57867) AWS_OTA: OTA Timer handle NULL for Timerid=0, can't stop.
I (57867) ota_over_mqtt_demo: Received job message callback, size 59.
W (57887) ota_over_mqtt_demo: Received an unhandled callback event from OTA Agent, event = 8
I (57917) ota_over_mqtt_demo: OTA Event processing completed. Freeing the event buffer to pool.

Why is there a NULL Timer reference, and is it a problem? I can't seem to detect one functionally with the ota task, however I might be missing something important.
System information

Hardware board: - Esp32 WROVER (v3) custom board.
IDE used: VSCode with IDF extension
Operating System: [ Windows 11 WSL2 with Docker image ]
Code version:  202212.00 release, IDF 4.4.3
Project/Demo: ota_over_mqtt_demo

Expected behavior
I don't know if it is expected or not.
Steps to reproduce bug
Note that I changed the TLS timeout to be lower at 700ms, however this happens regardless of what the settings are.
Code to reproduce bug
Run the demo on an ESP32.

Hi @txf-,

Hi @txf-,
Lowering the TLS timeout does not affect this so don't worry about that :). This warning springs from this line https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/e42ac54b0fb5128eeba35923da27258b917160fe/source/portable/os/ota_os_freertos.c#L311, and the message indicates that Timer:0 is NULL so nothing can be stopped. You could place an assert or abort in the same block as this message and the device should print out a stack trace of what is calling this function when the timer is NULL - that will make it easier for me to identify a fix, but this seems to just be a warning and non-fatal. Note that this function is passed through a struct to the OTA library so calls to it from the library will look like https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/e42ac54b0fb5128eeba35923da27258b917160fe/source/ota.c#L1127. If you could give me the stack trace though, that would help :).
Best,
Jason Carroll

Oh should probably mention that you can find ota_os_freertos.c in components/esp-aws-iot/libraries/ota/ota/source/portable/os.

Hi @txf-,
Thanks for your information.
I think that's a normal behavior when device can subscribe/publish message successfully at the first try. You can refer to https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/main/source/ota.c#L901, we stop the timer but we never start it before. It won't impact any flow for OTA.
Thanks.

I'm going to close this issue if there is no further question.
Please feel free to re-create it if any discussion needed.
Thanks.


Multiple months

It would be awesome to be able to show multiple months in the popup, not just the one. Sometimes when planning a trip it helps to see two or even three months at the same time. How about an option. The popup could even show a full year if you want, myself I would love 2 months 😊

+1 This would be a super-useful feature.

Bagheera says you should do this one next 😜

In 0.11.2 you can drag the calendar down or press control-j to see more rows. Drag up or press control-k to see fewer rows.

Brilliant - it's awesome. Thanks a lot!

Great! Has that version been released?
On Sun, Feb 26, 2017 at 8:15 AM, Sanjay<EMAIL_ADDRESS>wrote:

In 0.11.2 you can drag the calendar down or press control-j to see more
rows. Drag up or press control-k to see fewer rows.
[image: feb-25-2017 10-27-17]
https://cloud.githubusercontent.com/assets/118104/23337892/584baa22-fbb0-11e6-867b-6bcb0c0d5e2a.gif
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sfsam/Itsycal/issues/20#issuecomment-282538122, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEDI7nL9pW0AX3dArqeMwNsyWp12dMa9ks5rgSargaJpZM4JAJbX
.

@darko20 Yes. It should update soon or you can manually check for updates.

I did the manual check for updates but it says the old version is the
current version.
On Sun, Feb 26, 2017 at 8:24 AM, Sanjay<EMAIL_ADDRESS>wrote:

@darko20 https://github.com/darko20 Yes. It should update soon or you
can manually check for updates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sfsam/Itsycal/issues/20#issuecomment-282538476, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEDI7sXA2p05qOQKtFJxviHIIDsYGlvaks5rgSi4gaJpZM4JAJbX
.

@darko20 Which version do you have?

0.10.16 - I knew I should have included it in my previous email but I was
overcome with laziness.
On Sun, Feb 26, 2017 at 8:26 AM, Darko Volaric<EMAIL_ADDRESS>wrote:

I did the manual check for updates but it says the old version is the
current version.
On Sun, Feb 26, 2017 at 8:24 AM, Sanjay<EMAIL_ADDRESS>wrote:

@darko20 https://github.com/darko20 Yes. It should update soon or you
can manually check for updates.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sfsam/Itsycal/issues/20#issuecomment-282538476, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEDI7sXA2p05qOQKtFJxviHIIDsYGlvaks5rgSi4gaJpZM4JAJbX
.

@darko20 That's the last version that runs on macOS 10.10 and 10.11. The 0.11.x versions of Itsycal require macOS 10.12. If you have macOS 10.12, I don't know why it isn't updating but you can just download it from the website.

My joy has turned to disappointment, I'm indeed running running 10.11,
On Sun, Feb 26, 2017 at 8:33 AM, Sanjay<EMAIL_ADDRESS>wrote:

@darko20 https://github.com/darko20 That's the last version that runs
on macOS 10.10 and 10.11. The 0.11.x versions of Itsycal require macOS
10.12. If you have macOS 10.12, I don't know why it isn't updating but you
can just download it from the website.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sfsam/Itsycal/issues/20#issuecomment-282538798, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEDI7vS2oIaz7rpYbU8DOBEVhsd_NmXxks5rgSqwgaJpZM4JAJbX
.

@darko20 :(

What's the feature that depends on 10.12?

@darko20 I actually don't remember right now. But that's the point. It simplifies the code and process for me a lot and I don't have to keep track of old API. Every year Apple changes stuff and I (all Mac developers, really) have to work hard just to stay in place.

Understandable. I'll just build a version that doesn't have that constraint
and hope it does crash...
On Mon, Feb 27, 2017 at 11:00 PM, Sanjay<EMAIL_ADDRESS>wrote:

@darko20 https://github.com/darko20 I actually don't remember right
now. But that's the point. It simplifies the code and process for me a lot
and I don't have to keep track of old API. Every year Apple changes stuff
and I (all Mac developers, really) have to work hard just to stay in place.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sfsam/Itsycal/issues/20#issuecomment-282870195, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEDI7qXQMarccI-wLx5QS1SDKrnrnbFkks5rg0eHgaJpZM4JAJbX
.


When the OpenAI key is provided as an ENV variable, no models are shown and chat is not working

Provide the OpenAI key as an ENV variable (using env.local file) and clear the local storage to emulate a new user.
In this case no models are shown and it's impossible to chat.
Possible solutions:

fix it to load the models (best option)
add a default set of modules in store-llms.ts (workaround that I'm currently using to make it work)

@syberkitten Hi this is working for me, I can't reproduce. Are you using the Docker deployment method? (I use either the Vercel automatic deployment, or a local Nodejs server while developing)

Hi @enricoros For me I reproduce just starting with Incognito window, since you have no settings you will be brought the Models selection window inside preferences, but without any API key you cannot refresh the models nor can you use the chat.
I've made a local version where I'm actually injecting all my models "hardcoded" into the store-llms, was simpler then figuring out how to reload the models automatically using the server provided key.
Please let me know when you reproduce

Hi, ok i need to update the issue.
Actually if you go to the models and refresh the models (having the server side api key)
they will be show.
But if you do not refresh the models (that is click the models refresh icon) you will not be able to chat.
So basically the issue is not a show stopper, thus if you guide the users to go to models page and click refresh
it will work. otherwise the chat button remains "gray" and unclickable.

Hi @enricoros Apologies for long delay, some personal and work issues got me strung up...
For me I reproduce just starting with Incognito window, since you have no settings you will be brought the Models selection window inside preferences, but without any API key you cannot refresh the models nor can you use the chat.
I've made a local version where I'm actually injecting all my models "hardcoded" into the store-llms, was simpler then figuring out how to reload the models automatically using the server provided key.
Please let me know when you reproduce
ps. The thing here is that if you already have the app working on a browser that you already set the openai key, you will not be able to reproduce, another way is to delete all your stored local-storage data for the site.
Don't do it unless you don't care to lose your data :)

I would be curious how your modified store-llms.ts looks as I'm looking to do something similar(e.g. hard code the main models and set default to gpt 4)


Limits

The main goal is to create an additional barrier for illicit activities and at the same time not to impair ability for regular users. Since the main feature to distinguish illicit transaction right now is the amount, it's seems reasonable to set following restictions:

A single operation ( deposit or withdrawal ) cannot exceed X1
A single address can't deposit more than X2 during a single period of 24 hours
A single address can't withdraw more than X2 during a single period of 24 hours

Implementation

Add a mutable daily quota value to the Pool state and constructor
Add a map of all the addresses that have transacted that day
When a user performs a transaction check that map entry doesn't exist or contains enough quota
Process transaction
Reduce the quota

Suggestion:

A single deposit cannot exceed X1
A single address can't deposit more than X2 during a single period of 24 hours
All deposits from all addresses  cannot exceed X3 during a period of 24 hours

Upd. on the limits
• Single-transaction  deposit cap - 10,000 BOB
• Single-address daily asset deposit cap - 10,000 BOB
• System-wide daily asset deposit cap - 100,000 BOB
• Pool size - 100,000,000 BOB


broken with swift apps

python3 pyzule.py -i 5.ipa -o 1.ipa -f 1.deb
[] extracting ipa..
[] extracted ipa
[] extracted 1.deb
[] fixed dependency in tweak.dylib: /Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate -> @rpath/CydiaSubstrate.framework/CydiaSubstrate
Traceback (most recent call last):
File "/Users/user/Downloads/pyzule-main/pyzule.py", line 379, in
copytree(os.path.join(USER_DIR, real_dep_name), os.path.join(APP_PATH, inject_path, real_dep_name))
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 558, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/user/zxcvbn/CydiaSubstrate.framework'
[*] deleting temporary directory..

are you running this from a github action?

no im running from my server

yeah i see the issue, you cant clone the repo, use the install script

I see it works with the script only problem is that I cant run the script on php as a command using shell_exec

I see it works with the script only problem is that I cant run the script on php as a command using shell_exec

so the user dir is deleted or something? the install script is required because of dependencies that need to be downloaded, if you're planning on using pyzule in an environment like that then you'll have to modify either pyzule to do what you want or your script to download the dependencies somehow

I fixed it thanks tho

also great Job you guys should add a zsign just to sign apps bc the tweak injection doesn't work


Test circleci workflow

Experimenting to get signal earlier on both tests and checks
https://circleci.com/workflow-run/10d1f1de-461b-481e-8c03-86c12c3628e6


Make sure the cmake clog library has access to the clog headers

They're added as a private dependency to ensure the local headers don't propagate out of the target.

I'm actually going to replace this with a different PR, one that will use custom targets instead of custom commands. That way things can flow better and be more reliable.

Reopening, I just didn't want that merged at that time. The latest commit changes how the clog .net code is built, to make it uniform as a target across the project. this allowed some pretty major cleanups.


[FEATURE] Implement Footer Section

Is your feature request related to a problem? Please describe.
The website lacks a consistent footer across all pages, making it difficult for users to find important links and navigate effectively.
Describe the solution you'd like
I would like to have a footer added to website that appears at the bottom of every page. This footer should contain essential links, such as contact information, terms of service, privacy policy, and social media links, to improve user navigation and experience.
Additional context
Would like to work on this task under GSSoC '24. Request you to assign this task to me :)

@yashmandi Issue assigned to you


Bring all resources under MVP namespace

The base theme in the library is AppTheme which collides with the AppTheme of the main app. Please bring these resources under MaterialViewPager namespace, for eg: MVP_AppTheme.

This guy - https://github.com/florent37/MaterialViewPager/blob/master/materialviewpager/src/main/res/values/styles.xml#L8

yes, it's a great idea :+1:
do you want to do it and submit a pull request ?
i can do it btw if you don't have time :wink:

Hey @florent37 have you done it? Couldnt check the notifications during the weekend.

Same problem.
Please can anyone provide the enhancement?


fix: replaced used CVE in blackbox test

What type of PR is this?

Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Merging, as it does no impact the failing job.


More reliable Tessel discovery

This PR makes Tessel discovery much more robust. Especially during t2 update, I was noticing that my LAN connection would come up on t2 list but when I ran t2 update, only my USB connection was found and that's what was used. USB connection takes forever for update so I'd basically need to run the command again.
The problem is that the CLI was just using a timeout for when Tessel discovery is complete. That leads to situations where a LAN connection is found but not opened before the timeout is hit.
This PR makes the discovery process wait for all pending connections to either open or fail before ending the search.
Additionally, I've pulled the default timeout back to 2 seconds because generally, you find the LAN connection within ~1s so 2s gives a nice margin of error. The fetch usually completes around 3s now.

Ready for review! @LinusU would you do me the honors?

Absolutely!
Code looks great, all tests passes on my local machine; but there is one problem.
For some reason it can't find my tessel over the LAN anymore, could this be because it isn't updated? I thought that I should run it before and after I updated to see that it works smooth.
I'll run the update now and see if it fixes it...

Just to better describe what happens; on master it lists both USB and LAN. When switching to jon-discover-pending it only shows USB. This is consistent.

So actually, if I increase the timeout to 10 it works. Maybe the default should be higher than 2?
@johnnyman727 Why did you change it down to 2 from 5?

Yeah the timeout definitely the issue. When I change it back to 5 it works great.
(sorry for the spam)

@LinusU thanks for the review! I mostly moved it down to 2 to make the command seem faster (and it was consistently picking up my LAN device). I'll move it back to 5 seconds and merge.


fix(default-flatpaks): Flatpak IDs input in the last module definition overwrites the 1st one

Some users faced the issue when trying to include shared flatpaks for all of their images in multi-image setup.
The issue is that the last module definition in the recipe overwrites the 1st one, so only input from the last module definition is taking the place.
That should not happen. Every flatpak ID input from other module definitions should be added to the list, instead of overwriting it.
Here's the example:
Multi image example:
recipe.yml:
modules:
  - type: rpm-ostree
    install:
      - gnome-console
    remove:
      - gnome-classic-session
      - gnome-classic-session-xsession
      - gnome-terminal
      - gnome-terminal-nautilus
      - gnome-tweaks
      - qadwaitadecorations-qt5

  - type: default-flatpaks
    system:
      install:
        - org.gnome.baobab
        - org.gnome.Calculator
        - org.gnome.Calendar
        - org.gnome.Characters
        - org.gnome.clocks
        - org.gnome.Connections
        - org.gnome.Contacts
        - org.gnome.Evince
        - org.gnome.font-viewer
        - org.gnome.Logs
        - org.gnome.Loupe
        - org.gnome.Maps
        - org.gnome.NautilusPreviewer
        - org.gnome.SimpleScan
        - org.gnome.Snapshot
        - org.gnome.TextEditor
        - org.gnome.Weather

   - type: akmods
     install:
       - vl42loopback

shared.yml:
   - type: default-flatpaks
     system:
       install:
         - org.mozilla.firefox
         - id.example.application

Depending on the recipe order, either of these 2 scenarios happen:

recipe.yml flatpaks are installing, but shared.yml flatpaks are not
shared.yml flatpaks are installing, but recipe.yml flatpaks are not

single image recipe.yml example:
modules:
   - type: default-flatpaks
     system:
       install:
         - org.mozilla.firefox          # those 2 flatpaks basically become overwritten
         - id.example.application       # by the last module definition

  - type: rpm-ostree
    install:
      - gnome-console
    remove:
      - gnome-classic-session
      - gnome-classic-session-xsession
      - gnome-terminal
      - gnome-terminal-nautilus
      - gnome-tweaks
      - qadwaitadecorations-qt5

  - type: default-flatpaks
    system:
      install:
        - org.gnome.baobab
        - org.gnome.Calculator
        - org.gnome.Calendar
        - org.gnome.Characters
        - org.gnome.clocks
        - org.gnome.Connections
        - org.gnome.Contacts
        - org.gnome.Evince
        - org.gnome.font-viewer
        - org.gnome.Logs
        - org.gnome.Loupe
        - org.gnome.Maps
        - org.gnome.NautilusPreviewer
        - org.gnome.SimpleScan
        - org.gnome.Snapshot
        - org.gnome.TextEditor
        - org.gnome.Weather

This module needs to be refactored, so this issue should be taken in mind when doing that.

I'd file this under #146. I'll post a couple notes there and then close this issue. IMO the refactoring wouldn't be that big of a job so it doesn't make sense to fix the current iteration with duct tape.

I believe this change would make the first configuration always take precedence over the later ones, right @lorduskordus ?
This would not improve the situation, as for example overriding the default-flatpaks configuration of the base image would become impossible.

Ah, maybe I misunderstood this. I'll ping @fiftydinar for good measure.

He's right.
I made a PR:
https://github.com/blue-build/modules/pull/263


Swift 3 - Escaping Callback

There are a lot of build time errors showing up on the swift-3.0 branch in regards to escaping Callbacks. If you could please get these fixed, that would help me out so much.
This is getting thrown in AddressBook.swift, Contacts.swift, Events.swift, MediaLibrary.swift, etc. It's getting thrown on the requestAddressBook(_ callback: Callback), requestContacts(_ callback: Callback), etc. - basically all of the individual request methods as well as the request and requestAuthorization methods in Permission.swift because they all require escaping closures.
Thanks!

Closing because I just realized that #53 solves this issue.


Running terraform in nix-shell is too slow

Issue description
Running terraform --version via nix-shell takes 4 seconds on state-of-the-art hardware (SSD) (after it has been downloaded and has run before). Can that be optimized to run about as as fast as it would when terraform would be installed as a environment.systemPackages entry?
Steps to reproduce
nix-shell --pure  ./terraformshell.nix -I nixpkgs=./nixpkgs
warning: dumping very large path (> 256 MiB); this may run out of memory

terraformshell.nix:
let
  pkgs = import <nixpkgs> {};

  inherit (pkgs) stdenv;

in stdenv.mkDerivation rec {
  name = "terraform-environment";
  buildInputs = with pkgs; [
    nix-prefetch-git
    git
    nixops
    (terraform_0_11.withPlugins (plugins: [
      plugins.packet
      plugins.local
      plugins.aws
      plugins.dns
      plugins.rabbitmq
    ]))
 ];

 NIX_PATH = "nixpkgs=${pkgs.path}";
}

Technical details

system: "x86_64-linux"
host os: Linux 4.14.76, NixOS, 18.09.git.c06f530 (Jellyfish)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.1.1
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

More people with similar issues:

https://nixos.org/nix-dev/2017-March/022919.html
https://stackoverflow.com/questions/39372157/how-to-use-nix-shell-properly-and-avoid-dumping-very-large-path

The core issue seems to be copying nixpkgs.

I try with this code :
with import <nixpkgs> {};
stdenv.mkDerivation {
  name = "terraform-environment";
  buildInputs = [
    nix-prefetch-git
    git
    nixops
    (terraform_0_11.withPlugins (plugins: [
      plugins.packet
      plugins.local
      plugins.aws
      plugins.dns
      plugins.rabbitmq
    ]))
 ];
}

and nix-shell --pure  ./terraformshell.nix -I nixpkgs=$HOME/src/nixpkgs
I test with https://www.terraform.io/intro/examples/index.html (AWS plugin) and it does not take several seconds for me.

Have you solved your problem?


KiVar testing

I have prepared a little testing pcb file for KiVar: errors.zip. This one should test, if KiVar discovers and correctly reports an error. Righ now, I manually open the KiVar gui and read through all the errors. In the future, this could be done by kivar-cli and script which will parse and check the output.
My next idea is to prepare similar board with more tests - changing values of components, changing DNP, case sensitivity for aspects and choices naming ... In this case, KiVar should not report and error, instead it shoul run and perform variant switching. After that, Pick-and-Place file would be generated and compared to the correct one, which was manually checked. This could be also automated by kivar-cli and some scripts.
More ideas and feedback are welcomed, especially:

it this even right way, how to test KiVar?
what else should be tested? Where could be bugs?
way of collaboration on this - Should I fork KiVar repository and create pull request or create another repo? Sending pcb file zipped as attachment to issue is not comfortable ...

I would prefer unit-testing, i.e. a Python test app that directly calls KiVar functions, provides some test input and checks for the correct test output. For unit-testing there is no need for a board file (although this could be part of an extra test). Instead, you would push rules for fictional components into the module, and check the resulting database.
However, unit-testing requires cleaning up and restructuring parts of the implementation. I am planning to do this, but I'd rather get the new features done first (esp. #22, #26), so that users can use them.
Yes, the syntax will change once again (but as the design progresses, I get the feeling that this will be the "final" syntax format). It will be more flexible, so that users can pick their favorite style of defining rules and choices.
So, there's a lot of WIP, and I'm not sure if we should introduce testing now, as the implementation still needs to settle.
But if you want, feel free to fork the project and add some tests. However, as the main branch has strongly diverged, I would recommend to use the aux-rules branch right now. I just cannot promise to merge it anytime soon.

Unit testing sounds good, I am really looking forward to it. Unfortunatelly, I will not be able to help, it is far beyond my programming skills.
For now, to have some tests, I have prepared two PCBs and simple batch file, which calls the kivar-cli and kicad-cli pcb export pos .... Then, their results are compared to reference text files using git diff. Actual reference files are adapted to kivar 0.2.0-dev10 with fix described in #44. Files: testscript.zip
Testing is right now working on Windows 11 via KiCad 8.0 Command Prompt. Later, I will probably adapt it for linux and kicad running in docker. Since a I am little bit lazy to install actual version of kivar to kicad running in docker, I am secretly waiting for #40 to be finished, guessing it will save me some work :-)

While the code is still using a function-oriented, not object-oriented, style, we now have many more possibilities to do unit-testing. We do not need a real board file, just a footprint-dictionary, which we could feed into the module and check the results. Similar for many more functions.

I modified my tests to work with actuall KiVar syntax and tested kivar 0.2.0-dev32. No problems found, but tests does not cover all possible cases - but I guess that some testing is better than nothing :-). Actual tests are here:
testscript.zip
I also used KiVar in one real project (sorry, can not share it). Also, no problems found. Just short summary about project:

around 20 unique kivar rules, circa 70 components affected
12 aspects, each have 2 or 3 choices
kivar changes value, fitted / not fitted attribute and custom fields (datasheet, description)
tried multiple syntax styles Var, Var.Aspect, Datasheet.Var(1210)

I guess I used around 60% of KiVar funcionality, everything is fine, logical, I did not found any catches or unexpected features.


Add indexes to numeric street location fields and remove from street string location fields.

Closes #2691

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 52.60%. Comparing base (a05d7f6) to head (3e42d08).
Report is 1 commits behind head on dev.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2692   +/-   ##
=======================================
  Coverage   52.60%   52.60%
=======================================
  Files         122      122
  Lines       10157    10157
=======================================
  Hits         5343     5343
  Misses       4814     4814

Flag
Coverage Δ

unittests
52.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


#protip add a a:visited style w/ devtools to see which ones you've watched

I added
a:visited {
  color: red;
}

Would this be useful to put at the top of the readme?

+1
I've been using Stylish for so long that I had forgotten I added it and GitHub was missing it....
It really is handy for all the Resources/Must Watch repos, and it seems :visited has largely been forgotten and brushed aside since 2005-2006. It's even continued to be ignored with the rise of Accessibility and Usability awareness; which I find surprising.
// end tangent & minirant

+1

+1

+1 although if you can't remember if you watched it not you probably don't have much chance of remember the 30-50 hours of content listed here (half-joking :) )

+1

+1

+1


Updated_at date is earlier than the inserted_at date on insert

Elixir 1.2.2
Ecto 1.1.8
PostgreSQL <IP_ADDRESS> and Sql Server
Adapter: Ecto.Adapters.Postgres and Tds.Ecto
OS: OSX, 10.11.5 and CentOS 6.x
We have noticed that when we persist an model that uses the "timestamps" macro, the updated_at date in the table is before the inserted_at date in the table.  For example, here is a record from our persist:
inserted_at
timestamp without time zone
"2016-06-13 17:41:12.960207"
updated_at
timestamp without time zone
"2016-06-13 17:41:12.960195"
The updated_at date should probably either be null or the exact same as the inserted_at date at creation.

It would be fairly easy to reverse them and have the updated_at time after the inserted_at, but looking at how it currently works - where both are generated independently, it's hard to make them the same. At least I don't have any ideas how this could be achieved other than coupling the two together.

I have fixed this for v2.0 by reversing the order. It will guarantee updated_at > inserted_at but they won't be the same.

Backported to v1.1 as well, thank you!


Model

Hello, is there an existing model to use? And can this be run on Jetson Nano? Thank you.

have you hosted the trained weights somewhere?? could you please send me the link. would be really helpful

Try this one https://drive.google.com/file/d/1USH6s9gRcKYdM6HKW4QAEWL4DYv9rWIw/view?usp=sharing, let me know know if there are any issues.


Added timing to hb_mc_tile_groups_execute()

function to print the total execution time in both cycles and seconds.
Currently timing results seem to be wrong. Do NOT merge until discussed.

I feel like this might be superseded by the new vanilla stats parser. Is that true?

True. Thanks for pointing it out! Addressed in PR # 198 in bsg_manycore.


index-html example: ERROR in Unexpected token import @ multi main

The index-html example fails to run, or I might be missing something.
$ git clone git@github.com:peerigon/extract-loader.git
$ cd extract-loader/examples/index-html/
$ edit webpack.config.js # replace "lib" with "src"
$ npm init -y
$ npm install --save extract-loader webpack html-loader file-loader
$ webpack
Hash: e0221d2f5402e6af381f
Version: webpack 1.14.0
Time: 61ms
    Asset     Size  Chunks             Chunk Names
bundle.js  1.66 kB       0  [emitted]  main
   [0] multi main 40 bytes {0} [built] [1 error]
   [1] ./app/main.js 19 bytes {0} [built]
    + 1 hidden modules

ERROR in Unexpected token import
 @ multi main

Hi @sime,
yep, that example used the untranspiled code that contains ES2015 imports. I've change that and in current master the example should work correctly (see 10fd464ee9a1970d6d6ae4d60db6c21c5735f8dd ). Thanks for your report 👍
Ben


Replaced cabal-helper submodule with hackage version

Then we can finally delete the submodules folder. And keep it that way (hopefully)

@bubba , except the pending GHC 8.8 support branch brings in apply-refact as a submodule :(

Now if someone feels brave we can consider hackage.


Add a wrapper for a new class SchSwchParams (with all methods)

All API changes for scheme switching made in v1.1.3 of OpenFHE have been made in the Python API


Dont resolve paths from tsconfig

Describe the bug
Nextjs automatically support tsconfig's paths and base url while addon add only root path to module resolution.
export const configureAbsoluteImports = (baseConfig: WebpackConfig): void =>   void baseConfig.resolve?.modules?.push(path.resolve()) here
Your minimal, reproducible example
https://github.com/StephanAksenchenko/Sb-addon-next-bug
Steps to reproduce

use node 16.14.0
yarn
yarn dev       // run development server and it works right
yarn storybook        //  get exception about module resolution

Expected behavior
I expect it should work identically
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Os - linux
Node - 16.14.0
storybook-addon-next version
v 1.6.2
Additional context
No response

Experiencing this same issue

Oh thanks for pointing this out! I appreciate the time you took to fill out an issue. Do you have a good workaround available that you could share?
For anyone stumbling on this issue. I believe using tsconfig-paths-webpack-plugin and configuring it as shown in the issue link below should be the preferred workaround.
I'll get this integrated into this package soon. (My wife and kid are both sick right now so I've been taking care of them lately. They should be better soon though.) Thanks for your patience.
https://www.npmjs.com/package/tsconfig-paths-webpack-plugin
https://github.com/storybookjs/storybook/issues/3291#issuecomment-984568831


Remove some language

Remove the s-word from the file.
Let's keep this polite so everyone can stop Wannacry!

lol toche'


V2 - Available

The isAvailable() method, does't work in V2 of the plugin

Why do you need?

Basically the plugin do it automatically.
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/multiple_maps/www/googlemaps-cdv-plugin.js#L348-L350

Yes, basically was to show some kind of alert, but you already said that. Thanks.


Changelog notes

Changelog is needed to compare versions and to keep information about what is added/changed/removed in the new version compared to the previous state of the gem
Example - https://github.com/olivierlacan/keep-a-changelog/blob/master/CHANGELOG.md

or https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md


Management service stopped, remote connections disabled

Hey Mike, Cool stuff, keep up.
Just want to let you know, that Management service is stopped, and remote connections disabled after direct deployment from the template. Is this for security reasons or accidentally?
IIS Manager > Connection from the list > Management Service > Stop the service, Tick the Enable remote connections checkbox, start the service.

In my case mgmt. svc was enabled w/remote connections checked, but it still required restart of the svc before I could connect from my local machine via Visual Studio's 'Validate Connection' function


Support Laravel 9/10

Problem 1
- joisarjignesh/bigbluebutton[v1.0.7, ..., v1.1.4] require illuminate/support ^5.5|^6|^7 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
- joisarjignesh/bigbluebutton[v1.1.5, ..., v1.2.5] require illuminate/support ^5.5|^6.0|^7.0|^8.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- joisarjignesh/bigbluebutton[v2.1.0, ..., v2.4.3] require illuminate/support ^5.5|^6.0|^7.0|^8.0|^9.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires joisarjignesh/bigbluebutton * -> satisfiable by joisarjignesh/bigbluebutton[v1.0.7, ..., v1.2.5, v2.1.0, ..., v2.4.3].

https://github.com/joisarjignesh/bigbluebutton/pull/74

@paulorlima9  this package now suport laravel 10


GPU compatibility - alignment bug

System Information (please complete the following information):

Model Builder Version: 16.2.12055401
Visual Studio Version

Describe the bug
The compatibility check messages (success, error, warning) should be left aligned with the "Check compatibility" button.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Additional context
Add any other context about the problem here.

Pushing to next release


findInCircle?

I have revised findAll (see the discussion in #18):
https://observablehq.com/d/ff2450667f13132f
also prepared a quadtree.findInPolygon() algorithm (which was fun!) (ping @gka)
https://observablehq.com/d/54a6e96b6630b0d9
I think both functions could be added to this module—however findInPolygon adds a dependency on a dedicated functions in d3.polygon (polygonIntersect, https://github.com/d3/d3-polygon/issues/28), that doesn't yet exist, so don't expect it to land too soon (if at all).
Anyways it's already usable by copying the code, and it would be great to have tests and feedback.

This is very cool work!

findInPolygon was very fun to write but unfortunately, in my tests, even with a million data points it's still faster (or about the same speed) to run the baseline algorithm for (const d of data) { polygonContains(d) } than to use a quadtree. findAll (now renamed findInCircle) is probably similar, but its code footprint is much smaller.

Published as an example of a visit https://observablehq.com/@d3/quadtree-findincircle

I see #32 was closed without being merged. Why is that?
IMO the feature would be a useful addition to d3-quadtree.

I've closed #32 because I felt the code would be more useful as an example, rather than as another method added to the API. If people start using it en masse, it might change, but in the meantime what we probably need to do is to link to examples and show that quadtree.visit is not as intimidating as it might seem.

Got it. Thanks!


Update issue templates

Use the new issue template format and add a "packaging request" template.
The best thing is that labels are pre-applied so they are then easily queryable.

I like to have a couple templates. Important is, though, that there is a general one in case others don't apply, and that it is obvious which one that is and that it is OK to take that one when not sure. I think the general issue should be the default one.
Suggested templates:

General issue
Bug
Security (of course with the mention of https://nixos.org/nixos/security.html)
Question
Packaging request

In that case I need to make some more tests. The UI only has 3 entries with pre-defined names: https://github.com/NixOS/nixpkgs/issues/templates/edit
Maybe the filenames matter, maybe not so I need to test this.

Note the motivation for these is because its not something ofborg can handle (unless we add some more advanced NLP to it).

:boom: this is a nice opportunity to add an "attrset" selector to the issue template. This would allow ofborg to map an issue to a maintainer for us.

After doing a bit of experimentation on my own repo, there is a limit of 3 templates available. + a generic one in small.

Cool! How about "regular" -> "miscellaneous"
Also, upgrade requests seem to be reasonably common. Should they be a separate template, or go under "package requests"?

We can only have 3 templates so we have to choose carefully. The "open a regular issue" text is not something we control.

The "Open a regular issues." link uses the old .github/ISSUE_TEMPLATE.md file as a template.

I'm going to make another pass at the templates to add a front-matter for the structured data

Okay this is ready for review.
You can play with the new issue templates over here to see how it will look like: https://github.com/zimbatm/nixpkgs/issues/new/choose

TODO from @ghuntley: add a untriaged label

Not applicable for these files, but for the other .github/ ones it may be worth it to put them all in one repo:
https://help.github.com/en/articles/creating-a-default-community-health-file-for-your-organization

@ghuntley showed us a repo with more than 3 templates during the office hours. So maybe we can add many more.

I would be interested in an issue template (and label) for https://github.com/grahamc/r13y.com/issues/3
The idea being I could have a link to a search page, like "autogen-5.18.12. is unreproducible label:reproducibility"

I'll merge this for now to expose the changes to a wider public so we can iterate on the templates.


module is failing when using it in an environment that does not allow access to external access to EPEL.

in a particular use case which i've had to use it in, EPEL access is not allowed externally and must use internal mirrors instead. The module needs to be modified, to manage EPEL (as it's doing at the moment), however allow it to be overridden in cases like this.

Thanks for reporting the issue, I've merged the referenced PR to master to make this configurable. Thanks again