Failure when running on TeamCity

It works fine on my local env, but fails when I try to run it on TeamCity:
System.Management.Automation.CmdletInvocationException: The handle is invalid.
---> System.IO.IOException: The handle is invalid.

 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
 at Cake.Powershell.CakePSHostRawUserInterface.get_BufferSize()
 at Microsoft.PowerShell.Commands.OutStringCommand.InstantiateLineOutputInterface()
 at Microsoft.PowerShell.Commands.OutStringCommand.BeginProcessing()
 at System.Management.Automation.Cmdlet.DoBeginProcessing()
 at System.Management.Automation.CommandProcessorBase.DoBegin()
 --- End of inner exception stack trace ---
 at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
 at Cake.Powershell.PowershellRunner.Invoke(String script, PowershellSettings settings)
 at Submission#0.<.ctor>b__16()
 at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass5_0.<Does>b__0(ICakeContext context)
 at Cake.Core.ActionTask.Execute(ICakeContext context)
 at Cake.Core.DefaultExecutionStrategy.Execute(CakeTask task, ICakeContext context)
 at Cake.Core.CakeEngine.ExecuteTask(ICakeContext context, IExecutionStrategy strategy, Stopwatch stopWatch, CakeTask task, CakeReport report)

Quick Google search lead me to this SO link that could be relevant: http://stackoverflow.com/questions/327408/the-handle-is-invalid-when-running-net-console-via-java

Sorry I don't have access to a TeamCity server, please submit a PR for any required changes.

Ok, I will try to look into it and submit a PR if I get a chance. But from what I understand, it is not specific to TeamCity (I was just giving more context here), but rather to the fact that there is no normal console window available, but console output is redirected, so properties like Console.BufferWidth may fail.

I have the same issue when running on Jenkins. However, if I skip formatting output, it works.
So, PowershellSettings().SetFormatOutput().SetLogOutput(), fails with "The handle is invalid".
But, new PowershellSettings().SetLogOutput()works.
Maybe that helps with finding the problem. Thanks for the great work!

settings.OutputToAppConsole = false;
When the environment doesn't support console outputting.


Update README.md

I have updated the categories section { README.md} file, please review it, and let know me if there is any mistake. and if all is good , then please my pull request thanking you
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

Closes #XXXXX

Hi @codewithnadeem14502 !
This issue was already assigned to someone else as mentioned in my earlier comment here
https://github.com/freeCodeCamp/Developer_Quiz_Site/issues/120#issuecomment-1260772099
If you are interested in contributing to our other open issues, please take a look and create a new PR.
Thank you for your interest in the Developer Quiz site and happy coding! 👍


Channel manager

If you have an open channel with someone, and the channel's expiration period is shorter than a day, then you need to have a computer turned on almost all the time. Your computer watches your partner, and if your partner tries to end the channel on the wrong channel state, then your computer alerts the blockchain to the correct channel state to stop the theft.

This same program should also look for lightning opportunities. If 2 people on either side of you want to pass money, then you should take a small fee and let them use your channel to accomplish their payment.
The same program should also search for arbitrage opportunities in betting. If 2 people you are connected to want to bet on opposite sides of an oracle, you can take both bets at favorable prices and earn money regardless of the oracle's decision.

The channel manager is now functional


Get different render result from React (15.6.1)

This code
outputs 'CD' in React (15.6.1),
outputs 'AB' in preact.
let idx = 0;
let msgs = ['A','B','C','D','E','F','G','H'];

class Comp extends Component {
 componentWillMount() {
   this.innerMsg = msgs[(idx++ % 8)];
 }
 render() {
   return
{this.innerMsg}

 }
}

class GoodContainer extends Component {
  constructor(props) {
    super(props);
    this.state = { alt: false };
  }
  componentDidMount() {
    this.setState({ alt: true });
  }
  render() {
    const alt = this.state.alt;
    return (

        {alt ? null : (<Comp alt={alt}/>)}
        {alt ? null : (<Comp alt={alt}/>)}
        {alt ? (<Comp alt={alt}/>) : null}
        {alt ? (<Comp alt={alt}/>) : null}

    );
  }
}
render(<GoodContainer />, document.getElementById('app'));

react
preact

Because in react null is actually treated as a valid child, so multiple null results in the same amount of children, but in preact null is treated as a simple node and multiple null would result in a concatenated child and lated removed in the diff process. So in react there are new components mounted while in preact they are the same component, just attributes change.

This is fixed with #1440 which changes our algorithm to use null as placeholders 👍


small fixes to random negative samples

Changes Unknown when pulling 52d24b6fe14e3dfe56705c28132644fb2bf5b8fc on small-fixes-to-random-negative-samples into ** on master**.


Possibility to export to .GLB / .GLTF / .OBJ formats?

Hi, I know FBX is a proprietary format, so I'll leave that out.
My question is if there's a possibility to take all the "normal" light calculation (generated from the normal map from all 360°) and generate a full 3D mesh in the .glb/gltf/obj formats? (maybe with embedded textures)?
It would be so helpful if the seeded prompt (face image) with each of their 360° turnaround sequences, could be UV unwrapped on the face for this 3D generated model.
The idea would be to generate the texture with "flat" light, so no shadows are baked in the original seeded generated image.
After creating the normal map, it would then generate a list of 3d points in space (use Z forward coordinate system, please), thus generating the mesh.
From there, (since all human heads will be almost the same) a universal UV unwrapping code can open the UV space texture like this.
And since it's taking 1 picture per degree to generate the correctly anatomically accurate skin, eyes, hair, maybe that texture information could also baked in "degrees" progressing from left to right in the previous generated UVd space.
This would be one step closer to actually generate human characters for games and background props for animation in general 3D applications.
Please let me know.
Kind regards.
-Pierre.

Triangulating in 3D space (Python)>>
Triangulating in 3D space (coordinates system)>>

Hello @3dcinetv , you can find this solution done by hackman, to enable the output in ply format
https://github.com/hack-mans/PanoHead
But i didnt see textures there neither point color data.
Its not everything you need, but its already something 😊

Thanks for the heads up, Carlos. Hopefully the developer will be able to output consistent GLTF + Textures from the reference links I've posted in the original thread.
.Ply? That's not optimized polygons for 3D applications, just for 3d printing... no?

@3dcinetv The output mesh is reconstructed by sampling SDF of a 3D voxel volume using Marching Cubes. It only creates the vertex + faces + normals for the PLY mesh, there is no UV or texture information that can be obtained. I'm seeing if it is possible to somehow sample the color and store in vertex colors like other 3D AI papers have done.

It uses Trimesh which does support = Export meshes as binary STL, binary PLY, ASCII OFF, OBJ, GLTF/GLB 2.0, COLLADA

If stable diffusion is able to "output" (write) something in obj/gltf, having a "standard" UV unwrapping method would be the next logical step for the generated 3d head (at this point, we know it can create the vertex and normal information, and that HAS to have some kind of mapping to not go over-bound with the geometry.
It also calls to my attention the number of GPU cards needed to generate "the image sequence" / Video from the 3D image sequence. Why can't lower GPU than the 3090 RTX handle this? At first, it seems a really "optimized" 3d head the model constructs based on "trained" models.

@3dcinetv Polycount for one of my PLY outputs is 1.04million, it's fairly detailed but obviously not optimised at all and needs clean up, but is watertight. It only uses around 8GB VRAM to process a video + model, so can use lower end cards too.
UV unwrapping a random geometry isn't a simple task, generally the way heads are done in the industry is having a base mesh that is good topology and UV unwrapped, and then wrapping that to fit your generic high poly 3D head mesh. Otherwise you'd need to optimise the high poly mesh to decrease the polycount and turn into quads in order to use automatic UV unwrap. You still have the issue of projecting the textures, or obtaining vertex colors and then baking those to a texture.

I'll be looking forward to see one export for this. millions of polygons textured automatically doesn't sound great. However, i've saw other projects generate some more optimized meshes and have this kind of export.
we have to get this at some point in my humble opinion.

@3dcinetv Polycount for one of my PLY outputs is 1.04million, it's fairly detailed but obviously not optimised at all and needs clean up, but is watertight. It only uses around 8GB VRAM to process a video + model, so can use lower end cards too.
UV unwrapping a random geometry isn't a simple task, generally the way heads are done in the industry is having a base mesh that is good topology and UV unwrapped, and then wrapping that to fit your generic high poly 3D head mesh. Otherwise you'd need to optimise the high poly mesh to decrease the polycount and turn into quads in order to use automatic UV unwrap. You still have the issue of projecting the textures, or obtaining vertex colors and then baking those to a texture.

I'm well aware of all the workflow involved (20 years+ 3D experience here).
In regards of the "uv unwrapping" a dense polymesh, what other companies in the industry do, is that they have a generic polygon-optimized head (male, female and child), then (at the moment of generating the dense polymesh), they use a function to project "the nearest face interpolated" by overlapping the optimized human mesh head on top of the dense one.
From there, the function copies the optimized head UV properties, and does a projection over the dense one. With the uvs assigned, inheriting the texture is an easy task from what Stable Diffusion generated.
@hack-mans are you the developer of PanoHead? If so, please check out how Sony 3D creator work. And this is from using a PHONE (much less computational power, yet they output an .fbx)

Here are some links for Sony's 3D Creator>>
And this is what the app describes (there was never a chance to involve more programmers after 2018 for the .apk).

Sorry not super constructive but everyone knows real 3d artists use a z-up coordinate system

@3dcinetv Sorry I didn't know your experience. I'm not the developer, I'm just trying to integrate it into existing workflows similar to you.
I think the issue with the methods you are describing is that they are different from how this one works, 3D scanning is a long time solved problem and can project textures easily since you have many different input images from different angles.
This repo is using StyleGAN + neural rendering to generate the novel views of the subject, and meshing from a voxel volume. There is no simple way to do what you are asking for, but I'm trying to figure out if it would be possible to sample the neural rendered color attribute and get that onto the mesh.

@3dcinetv Sorry I didn't know your experience. I'm not the developer, I'm just trying to integrate it into existing workflows similar to you.
I think the issue with the methods you are describing is that they are different from how this one works, 3D scanning is a long time solved problem and can project textures easily since you have many different input images from different angles.
This repo is using StyleGAN + neural rendering to generate the novel views of the subject, and meshing from a voxel volume. There is no simple way to do what you are asking for, but I'm trying to figure out if it would be possible to sample the neural rendered color attribute and get that onto the mesh.

Hey, I loved your work to generate .ply output and I was even able to have an .obj file.  Is it somehow possible to also have some colour or texture for the same using the approach you have discussed above?

可以得到一个3d模型的头部吗，而不是MP4

Hello@kashishnaqvi101 , have you ever exported an .obj file? how to make that?

@kashishnaqvi101 Hello, have you ever exported an .obj file? how to make that?

It uses Trimesh which does support = Export meshes as binary STL, binary PLY, ASCII OFF, OBJ, GLTF/GLB 2.0, COLLADA

would trimesh export the GLB with texture? or just the mesh?
Do you have guidance on how to update the code to use trimesh to export mesh with texture or GLB 2.0 with texture

of course not.

What about camera information? As that could be used to generate .json files needed for NERF.

We really need a way to get the UV unwrapped texture of the generated mesh. Otherwise we gonna need to paint the whole face ourselves in some 3D modeling tool, which is a lot of extra work. @hack-mans do you have any plans to add UV texture export to the PLY export script in your repo?


update materialize_dataset documentation for filesystem factory arg

as title

Thanks.  I'm still having some issues with this API, when you have a chance could look at my issue in the petastorm channel (uchat)?


I want to style the top div and add margin to it, unable to do so

A bug is a demonstrable problem that is caused by the code in the repository.
Guidelines for bug reports:

Use the GitHub issue search. Check if the issue has already been
reported.

Check if the issue has been fixed. Try to reproduce it using the
latest master or development branch in the repository.

Provide environment details. Provide your operating system, browser(s),
jQuery version, Bootstrap version, and bootstrap-select version.

Create an isolated and reproducible test case. Create a reduced test
case and include a link to a live example. Use this Plunker debugging template to share your isolated test cases.

Seems like the top div only has an option to add width in custom style using the data-width property
For example

<select class="selectpicker" tabindex="-98">
<optgroup label="Picnic">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</optgroup>
<optgroup label="Camping">
<option>Tent</option>
<option>Flashlight</option>
<option>Toilet Paper</option>
</optgroup>
</select><button type="button" class="btn dropdown-toggle btn-light" data-toggle="dropdown" role="combobox" aria-owns="bs-select-2" aria-haspopup="listbox" aria-expanded="false" title="Mustard">

Mustard

</button>

I want to add style to the first div with class of dropdown bootstrap-select, how to go about that?


Wasm function debug name

Use the first export's name found for the wasm function name

This change is

The test failures should be fixed with #1192

lgtm


[C++][Parquet] Skip pages based on header metadata using a callback

Currently, we do not expose the page header metadata and they cannot be used for skipping pages. I propose exposing the metadata through a callback that would allow the caller to decide if they want to read or skip the page based on the metadata. The signature of the callback would be the following: std::function<bool(const format::PageHeader&)> skip_page_callback)
Reporter: fatemah / @fatemehp
Assignee: fatemah](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=panahi) / @fatemehp
Related issues:

[C++] Add page skipping to parquet reading (is related to)

PRs and other links:

GitHub Pull Request #14603

Note: This issue was originally created as PARQUET-2210. Please see the migration documentation for further details.

Micah Kornfield / @emkornfield:
Issue resolved by pull request 14603
https://github.com/apache/arrow/pull/14603


fix(date-picker): prevent calling for focus, when date-picker is closed

Prevent from calling focus on date picker when the calendar is not open (depend on ifOpenService)
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] If applicable, have a visual design approval

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] clarity.design website / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #4060
What is the new behavior?
track ifOpenService state and prevent requesting for focus.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
Close #4060

You also need to set the local isOpen variable back to false, otherwise this happens.

Still the same issue after your last change. It only works when Escape key is used to close the date picker modal. If you close it by clicking outside of it, the scrolling problem occurs.

We gonna discuss this in our daily meeting to see what we could do about it.

I have a failing test - will try to fix it before monday


Prepare an interactive tool flow for DC, Primetime

Goal
Make a flow to support interactive debugging sessions for design compiler and primetime.

PR #16917 allows the user's input. Also the interactive session sets RUN_INTERACTIVE environment variable to 1 so that we can distinguish interactive vs regression in .tcl script.

See related issue https://github.com/lowRISC/opentitan/issues/4445 which requests interactive mode for simulations as well. Since you added support for other flows, we might as well support it for DV sims too. It is useful to have it for simulations where the user can have a gdb-like environment for running sims.

PR #16982 implements the 2nd item.


[RPC][GUI] Added more progress indicators during wallet start up, also shows via…

closes #654
I'm sure this will be helpful for people wanting CLI progress during wallet start up, and also makes the splash screen have more feedback to the user.
But not sure how much this slows down the start up as it's basically tracking progress for most of the heavy loops in wallet start up.
@aguycalled do you think we should add this?
It's just something that came to mind when I took a look @ pr #654

Ok, I did some testing with this code, the wallet only loads like ~1% to ~2% slower than without this change on my PC, can you guys test and let me know if it performance ok?

Rescanning (changing the wallet.dat) it also what to a very long time yesterday

A new build of a455624bc3b1fe1eb8c16fc1d8a95c15156e4a61 has completed succesfully!
Binaries available at https://build.nav.community/binaries/added-more-progress-indicators

Rescanning (changing the wallet.dat) it also what took a very long time yesterday

@Xa5r could you test this PR and see if it makes your wallet start time slow?

Its difficult to compare because the loading time is always different.
But I noticed that by bootstraping the notice "Loading block guts xxx..." goes over 4.3 million, more blocks than the current highest block.

Its difficult to compare because the loading time is always different.
But I noticed that by bootstraping the notice "Loading block guts xxx..." goes over 4.3 million, more blocks than the current highest block.

I don't think that loading block guts only loads active chains, I think it also loads forked/abandoned chain heads, which might explain why it loads more than the active chain.
I'm just assuming though, might be better to ask @aguycalled about it.

Its difficult to compare because the loading time is always different.
But I noticed that by bootstraping the notice "Loading block guts xxx..." goes over 4.3 million, more blocks than the current highest block.

I don't think that loading block guts only loads active chains, I think it also loads forked/abandoned chain heads, which might explain why it loads more than the active chain.
I'm just assuming though, might be better to ask @aguycalled about it.

yes that's right

tested gitian osx, surprisingly, my wallet in mainnet loads 10 times faster with this branch

tested gitian osx, surprisingly, my wallet in mainnet loads 10 times faster with this branch

I don't know how that would happen, but it's a good thing I guess 🗡

tested gitian osx, surprisingly, my wallet in mainnet loads 10 times faster with this branch

I don't know how that would happen, but it's a good thing I guess 🗡

@chasingkirkjufell can you maybe test this branch as well on windows?
I've tested on Ubuntu 18.04 (Which performed about 1-2% slower)


Measure Activity: introjs popups fix

Hey @llaske
I have fixed the Measure Activity Intro popups issue, Please review
Refer issue: https://github.com/llaske/sugarizer/issues/1252
Video:

https://user-images.githubusercontent.com/96445392/223523498-6b370988-6dc2-4fb6-b743-1e9ef34e88e0.mp4

Why you need to change introjs library? The idea is to use the same in all activities.

@llaske Actually I have not changed the complete introjs library , It was unformatted so I formatted it and then just made few changes in the css file thats it

So resubmit the PR without introjs change.

@llaske okay I'm doing it

okay @llaske I will be raising a new PR then

@llaske I have made the changes please review them, If there is any issue please let me know

@llaske This time I have added my changes seperately in the activity.css file instead of editing the introjs.css library
pls review it & let me know if any changes are needed.

@llaske  This time I have added my changes seperately in the activity.css file instead of editing the introjs.css library
pls review it & let me know if any changes are needed.

Okay. Thanks.


Latest Version bookingEnd issue

In the latest update, the ending time doesn't seem to be fetched properly. It used to work right in 1.1.6.
Attached is the screenshot of the code and the output in both 1.1.6 and 1.1.7
Code:

1.1.6:

1.1.7:

Having same issue, hopefully it will be solved.

Happy new year guys, I am back, and sorry for the delay, the bug has been resolved in 1.1.8. Thanks for the reporting this issue!

can you add an inactive button color parameter for the Booking Calendar?
I modified the code in my project and I am able to change the color but if it could be an official feature that be great.

can you add an inactive button color parameter for the Booking Calendar?
I modified the code in my project and I am able to change the color but if it could be an official feature that be great.

@JohnnyCasares you mean the BOOK button should have a custom inactive color? currently this opacity effect is the default one, but would you like to customise that, am I right?


tox 4 upgrade

amend tox.ini to comma separate passenv: https://tox.wiki/en/latest/faq.html#tox-4-changed-ini-rules

note as of tox 4, the pypyr build command becomes:
tox -- ops/build package
rather than tox ops/build package


ALSA not found

Hi,
I am following the Manual Installation process described here http://jasperproject.github.io/documentation/installation/
I am new to Pi and just installed Raspbian on my Pi 3.
I have installed all the tools as suggested and I am at this step
sudo vim /etc/modprobe.d/alsa-base.conf
Unfortunately, the file alsa-base.conf is not in modprobe.d. Also the command alsa is not available on the CLI.
Did I miss a step?

The file you need is located in /usr/share/alsa/alsa.conf.
There is a post on superuser.com regarding this.
It may be that your alsa is not configured correctly or that you haven't installed all the necessary libraries. I am having trouble with this myself, so this information about the file is to be handled with care.


WriteAnnotation fails on linux

Hello everyone,
There's a problem when writing annotation on Linux.
This error doesn't occur on Windows for the same code.
Following is a block of code that causes exception:
number_of_channels = len(data)
writer = pyedflib.EdfWriter(filename, number_of_channels, file_type=pyedflib.FILETYPE_EDFPLUS)
...
for note in annotations:
	logging.info("Writing %s, %f, %f",note[0],note[1],note[3])
	writer.writeAnnotation("test",1,-1)

Following is back-trace of the exception:
Traceback (most recent call last):
  File "builder.py", line 58, in <module>
    main()
...
    create_edf_file(path, data, sample_rate, annotations, labels)
  File "builder/edfbuilder.py", line 49, in create_edf_file
    writer.writeAnnotation("test",1,-1)
  File "builder/pyedflib/edfwriter.py", line 734, in writeAnnotation
    return write_annotation_utf8(self.handle, np.round(onset_in_seconds*10000).astype(int), np.round(duration_in_seconds*10000).astype(int), du(description))
  File "<__array_function__ internals>", line 6, in round_
  File "builder/numpy/core/fromnumeric.py", line 3599, in round_
    return around(a, decimals=decimals, out=out)
  File "<__array_function__ internals>", line 6, in around
  File "builder/numpy/core/fromnumeric.py", line 3224, in around
    return _wrapfunc(a, 'round', decimals=decimals, out=out)
  File "builder/numpy/core/fromnumeric.py", line 58, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "builder/numpy/core/fromnumeric.py", line 47, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: ufunc 'rint' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

More information about the environment:
OS: Ubuntu 16.04.6 LTS
Linux: 4.15.0-72-generic
numpy==1.18.1
python: Python 3.7.6

Thanks in advance.

Sorry the order of arguments were misplaced. Closing issue.


fix: make flagd config EvaluatorType public

This PR
This PR makes the EvaluatorType interface public, so that the implementing enums can then be used in Kotlin.
Related Issues
Fixes #1013
Notes
This bug in Kotlin prevents the usage of that enums in a Kotlin project: https://youtrack.jetbrains.com/issue/KT-11700
How to test
Code like the following should not lead to a runtime error:
    fun getFlagdProvider(): FlagdProvider = FlagdProvider(
        FlagdOptions.builder()
            .resolverType(Config.Resolver.IN_PROCESS)
            .build()
    )

@detached Hey, happy to accept this, but the CNCF policy requires all commits to be signed off.

Thank you for approving!
I have pushed the commit signed.


CLI produces unicode symbols that don't appear correctly in VSCode

Please provide a succinct description of the issue.
I have a file with a few compile errors. That's all fine. Here's the output from dotnet run:
cloudbuild [master !?] -> dotnet run
/Users/skainswo/dev/kumo/new-world/src/cloudbuild/Program.fs(89,8): error FS0365: No implementation was given for 'Newtonsoft.Json.JsonConverter.WriteJson(writer: Newtonsoft.Json.JsonWriter, value: Status, serializer: Newtonsoft.Json.JsonSerializer) : unit' [/Users/skainswo/dev/kumo/new-world/src/cloudbuild/cloudbuild.fsproj]
/Users/skainswo/dev/kumo/new-world/src/cloudbuild/Program.fs(89,8): error FS0365: No implementation was given for 'Newtonsoft.Json.JsonConverter.ReadJson(reader: Newtonsoft.Json.JsonReader, objectType: System.Type, existingValue: Status, hasExistingValue: bool, serializer: Newtonsoft.Json.JsonSerializer) : Status' [/Users/skainswo/dev/kumo/new-world/src/cloudbuild/cloudbuild.fsproj]
/Users/skainswo/dev/kumo/new-world/src/cloudbuild/Program.fs(89,8): error FS0054: This type is 'abstract' since some abstract members have not been given an implementation. If this is intentional then add the '[<AbstractClass>]' attribute to your type. [/Users/skainswo/dev/kumo/new-world/src/cloudbuild/cloudbuild.fsproj]
/Users/skainswo/dev/kumo/new-world/src/cloudbuild/Program.fs(92,19): error FS3213: The member 'WriteJson<'a0,'a1> : 'a0 * Status * 'a1 -> unit' matches multiple overloads of the same method.Please restrict it to one of the following:   WriteJson : Newtonsoft.Json.JsonWriter * obj * Newtonsoft.Json.JsonSerializer -> unit   WriteJson : Newtonsoft.Json.JsonWriter * Status * Newtonsoft.Json.JsonSerializer -> unit   WriteJson : Newtonsoft.Json.JsonWriter * obj * Newtonsoft.Json.JsonSerializer -> unit. [/Users/skainswo/dev/kumo/new-world/src/cloudbuild/cloudbuild.fsproj]

The build failed. Please fix the build errors and run again.

Note the question marky things after "method.", "following:" and "-> unit".
Now here's what that looks like in the VSCode integrated terminal on macOS:

Now the question marky things are backspace "e"s. Notice "followinge" and "unite".
Related information
Provide any related information

Operating system: macOS 10.14
Branch: n/a
.NET Runtime, CoreCLR or Mono Version: .NET Core 2.1.403
Editing Tools (e.g. Visual Studio Version): Version 1.29.0-insider (1.29.0-insider) (f151c46b1783cf4f9a4ca934a85f78846f08688e)

Closing out issues in this repo, if necessary please reopen at https://github.com/dotnet/fsharp, which is now the unified repository for F# work


Investigate preexec hook for bash/zsh

It might be possible to use rtx activate in scripts if I used preexec instead of precmd in zsh. It looks like this package provides preexec for bash too: https://github.com/rcaloras/bash-preexec
I think I might be able to get rid of the "not_found" handler with this too. rtx could perform the bin check before the command is executed.
Fish probably has a similar hook too

It's unclear to me if preexec actually runs in non-interactive sessions or not, I'll need to experiment. If not, chpwd could work for zsh.
Unfortunately most people use bash for scripts so I'm not sure what solution could be used there.

Possible the biggest benefit here would be not being able to run "scripts" but just for zshrc to be able to use tools. Of course zshrc is a "script" but it's a special kind since it prepares the interactive session and I think users would expect it to work.

I ran into this tonight, there is a slight difference to the way zsh and bash hooks seem to work currently with rtx.

2023.12.40 linux-x64 (460e547 2023-12-28)

zsh has much better support for chpwd, but bash is clunky.
Here's a good example when using bash:
Let's say we have a project at ~/foo/bar:

Create a simple Python project with virtualenv, version of Python doesn't really matter:

.rtx.toml

[tools]
python = {version='3.12', virtualenv='.venv'}

Change trace+debug.

export RTX_DEBUG=1
export RTX_LOG_LEVEL=trace

zsh
In zsh (5.9 for me, but should work with whatever), this works correctly:

First, change to the directory so .venv etc is created.

cd ~/foo/bar

Now, in a single line, cd to the parent directory, then delete the .venv directory, then cd back into the bar directory, then echo "hello".

In theory, this should first setup the virtualenv then echo hello.
cd ~/foo && rm -rf bar/.venv && cd bar && echo "hello"

Output (correct):
[DEBUG] ARGS: rtx hook-env -s zsh
[DEBUG] Config {
    Config Files: [
        "~/.config/rtx/config.toml",
    ],
    Installed Plugins: [
        "poetry",
    ],
}
[DEBUG] Toolset:
[DEBUG] ARGS: rtx hook-env -s zsh
[DEBUG] Config {
    Config Files: [
        "~/foo/bar/.rtx.toml",
        "~/.config/rtx/config.toml",
    ],
    Installed Plugins: [
        "poetry",
    ],
}
[DEBUG] Toolset<EMAIL_ADDRESS>[INFO] rtx setting up virtualenv at: /home/josh/foo/bar/.venv
[DEBUG] $ ~/.local/share/rtx/installs/python/3.11/bin/python -m venv /home/josh/foo/bar/.venv
hello
[DEBUG] ARGS: rtx hook-env -s zsh
[DEBUG] Config {
    Config Files: [
        "~/foo/bar/.rtx.toml",
        "~/.config/rtx/config.toml",
    ],
    Installed Plugins: [
        "poetry",
    ],
}

bash

But in bash, it seems this is never triggered:

hello
[DEBUG] ARGS: rtx hook-env -s bash
[DEBUG] Config {
    Config Files: [
        "~/foo/bar/.rtx.toml",
        "~/.config/rtx/config.toml",
    ],
    Installed Plugins: [
        "poetry",
    ],
}
[DEBUG] Toolset<EMAIL_ADDRESS>[INFO] rtx setting up virtualenv at: /home/josh/foo/bar/.venv
[DEBUG] $ ~/.local/share/rtx/installs/python/3.11/bin/python -m venv /home/josh/foo/bar/.venv

first, thanks for the writeup, it's helpful to get these kind of user stories. I wonder if chpwd only gets fired on a new prompt display? I would expect that line to work like you did. I'll have to do some experimentation here
https://github.com/jdx/rtx/blob/main/src/shell/zsh.rs#L49-L56

I'll have a play with it, Bash isn't my primary shell but agreed, looks like it only fires on prompt as bash doesn't have that hook.
IMHO, it's outside of the scope of rtx to fix if it's a bash issue, the current way is fine for most usecases.
I'll have more of a dig though.

sounds like this was a valiant experiment but ultimately fruitless

crap maybe I read it wrong, it sounds like it works in zsh but not bash? idk why I never considered this for zsh

Yeah there is a noticeable delay with prompt rendering, it's because it's the only sane way to do it unless you're some kind of arcane wizard. I spent a while on this and couldn't get it to work reliably.
There are various things this would solve, as there are actions that could be fixed that can't be done with the current approach.

looks like fish has this: https://github.com/fish-shell/fish-shell/issues/583
I'm annoyed though. While this does fix issues and I get a lot of questions about hook-env in zshrc it creates a lot of new ones. I think I almost have to implement this but here are at least some of the issues I realized that will need to be addressed:

docs will need a lot of work. We need to clarify this and also clarify that zsh and fish work differently than other shells. The guidance around using shims in non-interactive environments will no longer apply but only using those shells. This requires changes in probably lots of places.
this code always causes problems when I modify it in unexpected ways. I am basically just expecting this to explode in a way that I won't be able to predict.
we can't remove the current behavior of running hook-env on prompt display because otherwise mise wouldn't notice changes to mise.toml if you don't change directory, that means we need both. However if we keep both in mise will run twice on cd, once for cd and once when the prompt is displayed. mise will be twice as slow in the most popular shell on cd.

It's the last one that makes me super concerned. This means I probably need to track some state or something to know if it ran on cd and if so then don't display the prompt once. This means a lot more logic will need to be added. State management often has bugs. zsh code often has bugs.
I think what I should do is gate this, not even behind MISE_EXPERIMENTAL but behind its own setting so intrepid people can iron the issues out with me.

Agreed around how very tricky/unexpected to change because direnv does it the same way with prompts. I feel like mise works exceptionally well and this sort of change is kinda big.


Add opentracing-spring-messaging-starter

https://github.com/opentracing-contrib/java-spring-cloud/issues/12

CI failed

The issues is cause by the exposed dependencies by java-spring-messaging. I've raised a PR to make them all optional https://github.com/opentracing-contrib/java-spring-messaging/pull/15. I'll create a new release and update this PR once the fix is merged.

Also please add list entry to readme about this instrumentation :)


Explore sonarcube for code quality reporting

Currently we are using codacy. Explore using sonarcube instead.

Hello Prof. Damith,
Codacy staff, Rita, apologised for the incorrect information regarding checkstyle

and she will be creating an internal ticket to see if they can start detecting configurations in other locations.
I have also explore using SonarQube for a short period, using travis integration and SonarQube online,
it seems like travis integration and online does not support checkstyle.
Will be trying out using SonarQube server next and keep you updated on the progress.

Thanks for the update @eugenepeh Keep us posted.

###Experience so far from SonarQube
Does not detect checkstyle.xml in project folder
When SonarQube was maintaining the Sonar checkstyle plugin, they did not implement this feature
Source : http://stackoverflow.com/questions/17819721/how-to-use-existing-checkstyle-files-in-sonarqube
Also ever since the Checkstyle team took over Sonar Checkstyle Plugin project (about 2 months ago), they have not yet implement this feature either (from their release notes), not sure if it will be implemented in future
Source : https://github.com/checkstyle/sonar-checkstyle
To use our own checkstyle.xml, user have to import it into sonar server, however it seems not every rule is available yet

I encounters problem when trying to upload addressbook's checkstyle into the server.
Quick setup for SonarQube
If anyone would like to try out using SonarQube,
here's some quick guides,
Below are 2 quick guides to setting up SonarQube server and checkstyle plugin for SonarQube

https://docs.sonarqube.org/display/SONAR/Get+Started+in+Two+Minutes
https://github.com/checkstyle/sonar-checkstyle

To run a scan

Start running your SonarQube server by going to your
[SONARQUBE_LOCATION] -> bin -> [YOUR_RUNNING_PLATFORM] -> StartSonar.bat
Open command prompt, cd to your project folder root, type
"[YOUR_SONAR_RUNNER_LOCATION]\bin\sonar-runner"

Result will be in your http:\localhost:9000
If you encounter problem starting sonar server, terminate java.exe and re-try again.
default login for localhost server
user : admin
password : admin

Hello Prof. Damith @damithc ,
The codacy issue has been resolved and I have also verified that it is working properly now.

Thanks for the update @eugenepeh
Good to hear that codacy issue is fixed. Unfortunately, I'm not sure we can rely on codacy entirely because they have introduced a 10 PR analysis per day restriction on free accounts. 10 might be enough for a project like addressbook but I wish we had a codacy-like tool we can use to comment on PRs created by CS2103 students for tutorials.


Start of updating CAN ID header format to match v1.0

This is a start of updating the ID header to match the new format for v1.0. Note: It could be that I have missed some parts which also must be updated related to the new header format, or that I have made some mistakes. Therefore, I would appreciate that you check my changes thoroughly.
These changes were originally included in #96, but we chose to split it out to a separate PR.

The function "canardCleanupStaleTransfers()" must be removed (this affects the API and the demo); see section 4.2.1 for details. This change to the spec was implemented in order to improve deterministic behavior at the cost of somewhat increased average-case memory usage (the worst case is unaffected). The constant CANARD_RECOMMENDED_STALE_TRANSFER_CLEANUP_INTERVAL_USEC is therefore not needed either (there could be other constants which we no longer need).
Data type signature must be removed from everywhere. This includes the callback signature CanardShouldAcceptTransfer.
The API functions still use "data type ID" instead of "subject ID" and "service ID", this should be fixed.
The transfer priority constants require updating. We have proper mnemonic names for the eight priority levels defined in 4.1.4.
The script show_data_type_info.py will no longer be needed, since there are no signatures to worry about.

I would prefer to do this in a separate PR, for the same reason as the other comment, as this one is mainly for updating header format. I would suggest doing it as a part of #98.

I notice that the travis build has been queued for a long time, could you check that I didn't make any mistakes when updating the travis file? @pavel-kirienko

I notice that the travis build has been queued for a long time, could you check that I didn't make any mistakes when updating the travis file?

It's weird. The changes seem benign and I can't imagine why would they cause any problems. I just tried restarting the build but it didn't help, it keeps getting stuck at the stage "Queued". Could be related to this:

https://github.com/travis-ci/travis-ci/issues/9088
https://www.traviscistatus.com/incidents/my5wm56npf7q

I notice that the travis build has been queued for a long time, could you check that I didn't make any mistakes when updating the travis file?

It's weird. The changes seem benign and I can't imagine why would they cause any problems. I just tried restarting the build but it didn't help, it keeps getting stuck at the stage "Queued". Could be related to this:

travis-ci/travis-ci#9088
https://www.traviscistatus.com/incidents/my5wm56npf7q

It could be. The build is finally finished queueing and has passed now!

What do you think, are we ready to merge soon?

Yes. Is this ready for another review?

Yes, it is.

LGTM, assuming that the CRC handling and #98 will be updated separately.

Yes.


pass arguments to jquery-ui datepicker

I would like to be able to set, from within my script, various datepicker options as documented here: https://jqueryui.com/datepicker/
The most useful options would be 'button bar' and 'month & year menus':
 $( "#datepicker" ).datepicker({       showButtonPanel: true,       changeMonth: true,       changeYear: true     });

Just use the filter_plugin_options it works also for jquery-ui datepicker (need to update docs)

yadcf.init(table, [{column_number : 2,
                            filter_type: "range_date",
                            date_format:  'dd/mm/yyyy',
                            datepicker_type: 'jquery-ui',
                            filter_container_id: 'dateFilter',
                            filter_plugin_options: '{changeMonth: true, changeYear: true}'}]);

The above has no effect (i.e. no select boxes for month/year). Is the syntax correct?

then please provide a working jsfiddle / jsbin sample, use this as a starting point

https://jsfiddle.net/h0dges/7wyjynj5/

You gave the property a string (docs says object) that why it didn't work , see this sample https://jsfiddle.net/7wyjynj5/1/


Calling a LivePlugin function from Ideavim?

Hey there,
I love the idea of this plugin but, unfortunately, I know little about Kotlin/IJ plugins at this moment. Getting my feet wet with this plugin, though.
I was wondering if it were possible to call a plugin function from ideavim? I know you can use :action/<Action> for built-in ide functions and such but then I am not exactly sure what I would need to call (or if it's even possible) to be able to get to a plugin via Vim. For simplicity, using the ide-actions example from this repo, then the 'hello world' action, what might one put in ideavim.rc for this?
Thanks,
-MH

Hi.
Just to clarify the terminology, I think when you say "function" you probably mean "action" using IntelliJ terms 🤔
I don't use ideavim, but my guess would be that the syntax is :action/<ActionId>, so in case of hello world example https://github.com/dkandalov/live-plugin/blob/master/plugin-examples/kotlin/ide-actions/plugin.kts#L18 the action id is "Hello World".


Julia 1.8 CVODE_BDF causes segfaults

I'm consistently getting segfaults in both Windows 10 and Ubuntu 20.04 on Julia 1.8.0 when running my ODE solves compared to Julia 1.7.2. I've tried the latest in Sundials (v4.10.0) as well as the version I was using in Julia 1.7.2 (v4.9.4).
Here's the stack trace in Windows (Sundials v4.9.4):
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0xa2d095f9 -- N_VLinearSum at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll
(unknown line)
in expression starting at C:\Users\Michael\MyPackage\mycode.jl:30
N_VLinearSum at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
cvNlsResidual at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
SUNNonlinSolSolve_Newton at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_sunnonlinsolnewton.dll (unknown line)
cvStep at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
CVode at C:\Users\Michael\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
CVode at C:\Users\Michael\.julia\packages\Sundials\k9hc3\lib\libsundials_api.jl:1523 [inlined]
CVode at C:\Users\Michael\.julia\packages\Sundials\k9hc3\lib\libsundials_api.jl:1528
solver_step at C:\Users\Michael\.julia\packages\Sundials\k9hc3\src\common_interface\solve.jl:1478
#solve!#115 at C:\Users\Michael\.julia\packages\Sundials\k9hc3\src\common_interface\solve.jl:1573
solve! at C:\Users\Michael\.julia\packages\Sundials\k9hc3\src\common_interface\solve.jl:1558
unknown function (ip:<PHONE_NUMBER>e290e1)
top-level scope at .\timing.jl:263
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:897
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:850
ijl_toplevel_eval at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
include_string at .\loading.jl:1428
_include at .\loading.jl:1488
include at .\client.jl:476
unknown function (ip: 000000005b23e1e6)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1838 [inlined]
do_call at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:126
eval_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:215
eval_stmt_value at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:166 [inlined]
eval_body at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:594
jl_interpret_toplevel_thunk at /cygdrive/c/buildbot/worker/package_win64/build/src\interpreter.c:750
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:906
jl_toplevel_eval_flex at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:850
ijl_toplevel_eval at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:915 [inlined]
ijl_toplevel_eval_in at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:965
eval at .\boot.jl:368 [inlined]
eval_user_input at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\REPL\src\REPL.jl:151
repl_backend_loop at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\REPL\src\REPL.jl:247
start_repl_backend at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\REPL\src\REPL.jl:232
#run_repl#47 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\REPL\src\REPL.jl:369
run_repl at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\REPL\src\REPL.jl:355
jfptr_run_repl_69828.clone_1 at C:\Users\Michael\AppData\Local\Programs\Julia-1.8.0\lib\julia\sys.dll (unknown line)
#966 at .\client.jl:419
jfptr_YY.966_58133.clone_1 at C:\Users\Michael\AppData\Local\Programs\Julia-1.8.0\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1838 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:774
#invokelatest#2 at .\essentials.jl:729 [inlined]
invokelatest at .\essentials.jl:726 [inlined]
run_main_repl at .\client.jl:404
exec_options at .\client.jl:318
_start at .\client.jl:522
jfptr__start_57488.clone_1 at C:\Users\Michael\AppData\Local\Programs\Julia-1.8.0\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1838 [inlined]
true_main at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:575
jl_repl_entrypoint at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:719
mainCRTStartup at /cygdrive/c/buildbot/worker/package_win64/build/cli\loader_exe.c:59
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 347048866 (Pool: 346978877; Big: 69989); GC: 141

And in Linux (Sundials v4.10.0):
signal (11): Segmentation fault
in expression starting at /home/runner/work/MyPackage/mycode.jl:30
unknown function (ip: 0x77a5580)
Allocations: 540922622 (Pool: 540699010; Big: 223612); GC: 230
ERROR: LoadError: Package MyPackage errored during testing (received signal: 11)
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /opt/hostedtoolcache/julia/1.8.0/x64/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
   @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.0/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1813
 [3] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Vector{String}, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::Base.Pairs{Symbol, IOContext{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IOContext{Base.PipeEndpoint}}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.8.0/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:431
 [4] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:coverage, :julia_args, :force_latest_compatible_version), Tuple{Bool, Vector{String}, Bool}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.8.0/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:156
 [5] test(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:coverage, :julia_args, :force_latest_compatible_version), Tuple{Bool, Vector{String}, Bool}}})
   @ Pkg.API /opt/hostedtoolcache/julia/1.8.0/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:171
 [6] top-level scope
   @ ~/work/_actions/julia-actions/julia-runtest/v1/test_harness.jl:15
 [7] include(fname::String)
   @ Base.MainInclude ./client.jl:476
 [8] top-level scope
   @ none:1
in expression starting at /home/runner/work/_actions/julia-actions/julia-runtest/v1/test_harness.jl:7

This is closed source software, but if an NDA is signed then I can provide an rr trace.

The preconditioners test is also doing weird things on v1.8 (https://github.com/SciML/Sundials.jl/pull/366) and we haven't figured out why. That might be a lead, but it's hard to say in advance.

This code doesn't have preconditioners, the only options used (all of which error), are max_order=1 or no options.
I've got a less stiff problem working with CVODE_BDF(), maybe that helps?

Looks like by building Sundials from src (with debug build) and hacking Sundials.jl to use the compiled libraries (instead of Sundials_jll) we can avoid the segfaults. This was built from Sundials 5.2.0 (see tag in git). Unfortunately it seems like the debug build causes the memory space to be different than that of the release build.

@giordano or @staticfloat could we get some help retriggering the build?

You want a debug build of Sundials (presumably v5.2.0)?  As the official build or something to be used only for testing?

I don't think it needs to be the debug build? But I'm also confused why there's now a memory issue with the old builds.

So the current jll that's used with Sundials.jl is 5.2.1+0, which presumably is very close the C++ Sundials v5.2.0 code, is what I compiled from source. The release build of C++ Sundials code causes the segfaults in Julia 1.8, but when I switch to the debug build of C++ Sundials code I don't get segfaults in Julia 1.8.
Remember, Julia 1.7 works just fine with the Sundials jll, but for Julia 1.8 I get segfaults.

Well, in Julia v1.7 and v1.8 you should get the same binary.  I don't see how rebuilding would help anything here.  Maybe the problem is in how the routines from the libraries are called.

My guess is that a function pointer got garbage collected (i.e. the unknown function message in Linux) and that's how we're segfaulting. I understand that we should get the same Sundials binary between Julia 1.7 and 1.8, so I'm guessing that the way Julia is handling memory has changed.
Using a debug build of C++ Sundials would change how memory is managed overall in the computer, which is why re-building Sundials with a debug build removes the segfault issue I experienced.

It would be helpful for someone to track down what exactly is getting garbage collected too early here.

If someone can guide me through the process that would help me. Would I build julia from source with assertions to debug this?

I just retested our application (that uses Kinsol), putting GC.enable(false) and GC.enable(true) around the call to Sundials,  and this appears to remove the segfault (an example failure was in https://github.com/PALEOtoolkit/PALEOmodel.jl/issues/25). So this is at least consistent with the suggestion above that the problem is connected to something getting garbage collected in Julia 1.8 (NB: not a definitive test as the failures are not fully reproducable, so this could just be a statistical fluke).
Some speculation on a possible cause: looking at the Sundials.jl code, it seems to me that there might be a problem here with the use of convert by the NVector wrapper, which returns an N_Vector for use by the Sundials C API, but as I understand it can't be safely used by ccall in this way as it there is no guarantee about the lifetime of the nv.ref_nv::Ref{N_Vector} object: https://github.com/SciML/Sundials.jl/blob/c7469aa1a164efb03e20c47c558eeacbc2755e24/src/nvector_wrapper.jl#L61
The NVector and hence the nv.ref_nv::Ref{N_Vector} may well be temporary, in which case can the garbage collector delete the ref_nv and call the finalizer (which calls N_VDestroy_Serial(ref_nv[]) to free the C memory), before the ccall uses the N_Vector C pointer?
The most obvious case (which explicitly creates temporary NVector objects) is: https://github.com/SciML/Sundials.jl/blob/c7469aa1a164efb03e20c47c558eeacbc2755e24/src/nvector_wrapper.jl#L65-L73
but in fact this pattern is used widely, eg https://github.com/SciML/Sundials.jl/blob/c7469aa1a164efb03e20c47c558eeacbc2755e24/lib/libsundials_api.jl#L1840-L1849
where the problem in this case could be that __yout.ref_nv is garbage collected after convert(N_Vector, __yout) but before the ccall ?
I admit I can't understand the documentation for unsafe_convert, https://docs.julialang.org/en/v1/base/c/#Base.unsafe_convert, but I can speculate that this is the problem that it is intended to solve ? (perhaps in combination with cconvert), where it is perhaps defined that when ccall uses unsafe_convert(T, x), ccall will manage the lifetime of x so that x is not garbage collected during the ccall (see https://discourse.julialang.org/t/properly-using-finalizer-ccall-cconvert-and-unsafe-convert/6183/11).
If this is the problem, then given that there are around ~400 uses of convert(N_Vector, ...) in Sundials.jl, and also that there could I imagine be other similar problems, any fix will need to touch a lot of code.   So perhaps the first priority is to understand the intended usage of ccall, unsafe_convert, and cconvert and review the design here?

Note that the required vectors are stored in the Julia types for the function and integrator:
https://github.com/SciML/Sundials.jl/blob/master/src/common_interface/integrator_types.jl#L63
https://github.com/SciML/Sundials.jl/blob/master/src/common_interface/function_types.jl#L11-L12
https://github.com/SciML/Sundials.jl/blob/master/src/common_interface/integrator_utils.jl#L140
So in theory the GC would know those finalizers are not hit until after the integrator's reference is gone. At least, that's how it was working before v1.8.

The explicitly stored NVectors should of course be fine (as well as the explicitly stored memory handles).
But this doesn't look like it covers everything:  the root cause here I think is that there exists a Base.convert(::Type{N_Vector}, nv::NVector) = nv.ref_nv[] at all.
This means that the API calls in libsundials_api.jl and nvector_wrapper.jl allow the use of an NVector without managing its lifetime through the following ccall (so this could go wrong if the supplied NVector isn't explicitly stored or returned), and (worse) provide an API that explicitly creates temporary NVectors from Vectors.
It doesn't take long to find an example:
https://github.com/SciML/Sundials.jl/blob/c7469aa1a164efb03e20c47c558eeacbc2755e24/src/common_interface/solve.jl#L544-L548
here u0nv is not subsequently used so could I imagine be garbage collected at any time.
It seems to me the design here is not robust: it is incorrect in relying on the lifetime of local variables (see code comments in generate.jl L135-7 linked above), instead of using cconvert / unsafe_convert.

In fact looking at this again, I'm not sure there isn't another problem? According to the Julia manual finalizer is only defined for a mutable struct, so it's not clear what happens when it is used with the ref_nv::Ref member of an immutable struct ?
https://github.com/SciML/Sundials.jl/blob/c7469aa1a164efb03e20c47c558eeacbc2755e24/src/nvector_wrapper.jl#L9-L26

Also, what requirements does the Sundials C API place on the lifetime of C N_Vector arguments to C function calls ? Can they be deleted once the C API call returns (which is what I was assuming above), or is the caller required to manage them ? (seems a bit unlikely, this would provide another whole set of failure modes ...)

@bolognam Have you found a solution or workaround to this?  I'm working on a project and can consistently reproduce a segfault using julia --track-allocation=user test/Case1.jl.  I'm also occasionally getting the segfault with a GitHub workflow that tests the project on various OS and Julia versions.  For example, this test failed on macOS-latest with Julia v1.8. Simply rerunning the test worked without error.
The beginning of the error message is
signal (11): Segmentation fault: 11
in expression starting at /Users/runner/work/Biofilm.jl/Biofilm.jl/test/Case1.jl:56
N_VGetArrayPointer_Serial at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_nvecserial.5.2.0.dylib (unknown line)
N_VGetArrayPointer_Serial at /Users/runner/.julia/packages/Sundials/3c9Un/lib/libsundials_api.jl:5926 [inlined]
cvodefunjac at /Users/runner/.julia/packages/Sundials/3c9Un/src/common_interface/function_types.jl:29
unknown function (ip: 0x118dda5b7)
cvLsDenseDQJac at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_cvodes.5.2.0.dylib (unknown line)
cvLsLinSys at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_cvodes.5.2.0.dylib (unknown line)
cvLsSetup at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_cvodes.5.2.0.dylib (unknown line)
cvNlsLSetup at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_cvodes.5.2.0.dylib (unknown line)
SUNNonlinSolSolve_Newton at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_sunnonlinsolnewton.2.2.0.dylib (unknown line)
CVode at /Users/runner/.julia/artifacts/4a28b80622d82d21479ac290cab082046c3da0db/lib/libsundials_cvodes.5.2.0.dylib (unknown line)
...

Turning off garbage collection avoids the issue, but isn't feasible for all runs.

Sorry @markowkes I haven't found a solution. I think @sjdaines is onto a solution but nobody (as far as I'm aware) has been working on making a fix in Sundials.

With Julia1.9.0-beta2 and our application code, CVODE segfaults in more places (and almost every time...)
Example stack trace, showing this is consistent with a problem due to N_Vector:
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x653429e7 -- N_VLinearSum_Serial at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_nvecserial.dll (unknown line)
in expression starting at C:\Users\sd336\PALEO\PALEOdev.jl\PALEOexamples\src\ocean\blacksea\PALEO_examples_blacksea_P_O2_SO4.jl:24
N_VLinearSum_Serial at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_nvecserial.dll (unknown line)
cvNlsResidual at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
SUNNonlinSolSolve_Newton at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_sunnonlinsolnewton.dll (unknown line)
cvStep at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
CVode at C:\Users\sd336\.julia\artifacts\4ccc575631c856942ae91cbb8294de9b0a746c9d\bin\libsundials_cvodes.dll (unknown line)
CVode at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\lib\libsundials_api.jl:1841 [inlined]
CVode at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\lib\libsundials_api.jl:1848
solver_step at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:1406
#solve!#115 at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:1488
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:1472
unknown function (ip: 00000297da13c080)
#__solve#24 at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:17
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:3 [inlined]
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:3 [inlined]
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:3 [inlined]
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:3 [inlined]
kwcall at C:\Users\sd336\.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:3 [inlined]
#solve_call#21 at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:494 [inlined]
kwcall at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:464 [inlined]
#solve_up#27 at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:856
kwcall at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:829 [inlined]
#solve#26 at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:823
kwcall at C:\Users\sd336\.julia\packages\DiffEqBase\9H9Sj\src\solve.jl:813
unknown function (ip: 00000297da137d52)
macro expansion at .\timing.jl:273 [inlined]
#integrate#3 at C:\Users\sd336\PALEO\PALEOmodel.jl\src\ODE.jl:197
unknown function (ip: 00000297cedfc7c2)
kwcall at C:\Users\sd336\PALEO\PALEOmodel.jl\src\ODE.jl:162
#integrateForwardDiff#4 at C:\Users\sd336\PALEO\PALEOmodel.jl\src\ODE.jl:217 [inlined]
kwcall at C:\Users\sd336\PALEO\PALEOmodel.jl\src\ODE.jl:209
unknown function (ip: 00000297cedf694f)
jl_apply at C:/workdir/src\julia.h:1874 [inlined]
do_call at C:/workdir/src\interpreter.c:126
eval_value at C:/workdir/src\interpreter.c:226
eval_stmt_value at C:/workdir/src\interpreter.c:177 [inlined]
eval_body at C:/workdir/src\interpreter.c:624
jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:762
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:912
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:856
ijl_toplevel_eval at C:/workdir/src\toplevel.c:921 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:971
eval at .\boot.jl:370 [inlined]
include_string at .\loading.jl:1754
_include at .\loading.jl:1814
include at .\client.jl:478 [inlined]
top-level scope at .\timing.jl:273 [inlined]
top-level scope at .\REPL[3]:0
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:903
jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:856
ijl_toplevel_eval at C:/workdir/src\toplevel.c:921 [inlined]
ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:971
eval at .\boot.jl:370 [inlined]
eval_user_input at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:152
repl_backend_loop at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:248
#start_repl_backend#46 at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:233
kwcall at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:230 [inlined]
#run_repl#59 at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:376
run_repl at C:\workdir\usr\share\julia\stdlib\v1.9\REPL\src\REPL.jl:362
jfptr_run_repl_61782.clone_1 at C:\Users\sd336\AppData\Local\Programs\Julia-1.9.0-beta2\lib\julia\sys.dll (unknown line)
#1018 at .\client.jl:421
jfptr_YY.1018_30785.clone_1 at C:\Users\sd336\AppData\Local\Programs\Julia-1.9.0-beta2\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1874 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:774

where the first few functions in stack trace are:
CVode at C:\Users\sd336.julia\packages\Sundials\Y6XpH\lib\libsundials_api.jl:1841 [inlined]
function CVode(cvode_mem, tout::realtype, yout::N_Vector, tret, itask::Cint)
    ccall((:CVode, libsundials_cvodes), Cint,
          (CVODEMemPtr, realtype, N_Vector, Ptr{realtype}, Cint), cvode_mem, tout, yout,
          tret, itask)
end

CVode at C:\Users\sd336.julia\packages\Sundials\Y6XpH\lib\libsundials_api.jl:1848
function CVode(cvode_mem, tout, yout, tret, itask)
    __yout = convert(NVector, yout)
    CVode(cvode_mem, tout, convert(N_Vector, __yout), tret, convert(Cint, itask))
end

solver_step at C:\Users\sd336.julia\packages\Sundials\Y6XpH\src\common_interface\solve.jl:1406
function solver_step(integrator::CVODEIntegrator, tstop)
    integrator.flag = CVode(integrator.mem, tstop, integrator.u, integrator.tout,
                            CV_ONE_STEP)
    if integrator.opts.progress
        Logging.@logmsg(-1,
                        integrator.opts.progress_name,
                        _id=:Sundials,
                        message=integrator.opts.progress_message(integrator.dt,
                                                                 integrator.u,
                                                                 integrator.p,
                                                                 integrator.t),
                        progress=integrator.t / integrator.sol.prob.tspan[2])
    end
end

Can you try the PR branch https://github.com/SciML/Sundials.jl/pull/380 ?

oh it's you haha. Did the PR branch not fix your case?

Yup this was my fix for the case above ! (I just got the order of issue and PR wrong)

Thanks for digging into this! Good to see this finally all cleaned up to a newer version of Julia.


Font size toolbar buttons

The toolbar buttons for font size need to increase or decrease the font size from normal to h1, h2 etc.
We also need better icons for these buttons (see Medium for example).

Related to #35

Closed with #50


GN fixes and initial work for Windows

CC: @ADKaster who is working on a similar set of changes

Ha! I do happen to have most of these changes either in my branch or locally. Major difference being renaming LibProtocol to LibRequests (which is the change I actually made) rather than removing it.

I think that most of this was integrated and can now be closed off. We can come back and grab something if needed later.


Wrong URL on Azure docs for deploying a PHP web app

https://github.com/MicrosoftDocs/azure-docs/blob/dee9b58fb32d56df98b2831f3c2a59dce3e0703c/articles/app-service/index.yml#L40-L41
URL just needs to be corrected.
metadata:
title: Azure App Service documentation
description: Host websites, web apps, RESTful APIs, and mobile back ends in Azure App Service. Find quickstarts, tutorials, and samples to help you succeed with App Service.
ms.topic: landing-page
ms.author: app-svc-docs
ms.service: app-service
ms.date: 02/14/2023

@DrChat
Thanks for your feedback! We will investigate and update as appropriate.


Autodeletion of Steam scam links

Description
Automatically detect and delete Steam scam links that bot users keep sending in the tModLoader Discord.
Why?
Reduce manual labor and time for a moderator to be pinged to delete the message.

Closing as scam links have died down recently.


Error or create a new instance if Schema.CastRow receives a nil pointer

Create a new instance is better, but I am not sure if we can do it cleanly.

Added a test to guarantee that passing nil returns an error.
Comimt 9fe18c0516cbead21234489a2cb52afda2d86882


Initial spec implementation

Hello,
I have made this R implementation of the spec. The structure is faithful to the original spec and the style should be similar to the old hashids-r repo. Github workflows are included to run "R CMD check" on pushes to main and regenerate docs on any commit that touches code. I haven’t used R a lot so there’s probably things that could be cleaner, but this should serve as a good starting point.

Hi @cameron-cash,
Thank you for the work and the PR! Merged 💪
I've invited you with maintainer rights to this repo (feel free to push as needed). From what I can see this repo is good to go. I'll update the website.


enable bst telemetry by enable new TEL_BST_EN parameter

This suppose to make start-up cleaner for some boards that don't uses some sensors but try do start them because they are on the common rc.sensors.
some disscution is here #12409
This pr focus the bst telemetry.
related to  #12424

Thanks @BazookaJoe1900


Filter in combination with an ArrayValue type seems to fail

When using a filter with an ArrayValue it seems to fail:
TypeError: Expecting a value of type 'int'...

The ArrayType requires a special way of filtering, for example:
Suppose there exists an entity with an arr property with the array
[123, 456, 789]

The following should return that entity:
Entity.filter(Entity.arr == 456)

Fixed in v0.11.13


TAL-764: Synchronize file rolling for multiple processes

Use OS-specific file lock APIs to synchronize rolling log files between processes. Similar to https://github.com/estk/log4rs/compare/master...paul-tcell:log4rs:support_multiprocess_rolling but adds Windows support using the crate fslock.
Benches comparing log4rs v1.1 and this changeset:
     Running benches/multiprocess_sync.rs (target/release/deps/multiprocess_sync-5dc88e178ff980ab)
Gnuplot not found, disabling plotting
::append::rolling_file::policy::compound::roll::fixed_window::roll
                        time:   [92.669 us 95.242 us 98.214 us]
                        change: [+82.800% +87.689% +92.506%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild

::append::rolling_file::LogWriter::write
                        time:   [57.430 ns 58.011 ns 58.678 ns]
                        change: [+119.71% +123.31% +127.32%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) low mild
  1 (1.00%) high mild
  3 (3.00%) high severe

::append::rolling_file::RollingFileAppender::append - roll
                        time:   [1.3414 ms 1.3661 ms 1.3886 ms]
                        change: [+18.687% +21.445% +24.370%] (p = 0.00 < 0.05)
                        Performance has regressed.

::append::rolling_file::RollingFileAppender::append - no roll
                        time:   [6.8075 us 7.0809 us 7.3840 us]
                        change: [+27.024% +33.273% +40.584%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 12 outliers among 100 measurements (12.00%)
  2 (2.00%) high mild
  10 (10.00%) high severe

Performance is worse, but not bad. Performance with fslock is basically identical to @pcallahan's original custom impl, which we have been using for several years.

Closing as we never had the resources to test this PR on Windows systems.


Adding StyleCop

What do you think if we add StyleCop to validate coding guidelines? It can detect missing brackets forcing
if (a) B();

and
if (a)
    B();

to be
if (a)
{
    B();
}

Unfortunately if we enforce this rule then they will have to be added to lines like this:
if (considered.Contains(subInterface)) continue;

and
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != this.GetType()) return false;

There are 7 lines like these that would need changing but the whole codebase will be checked for consistency.

ReSharper can do this as well, provided that we add the correct solution-wide settings to the repository?

@konstmsu In this case would StyleCop be enforcing the policy on build?  Or itself formatting the code?
I know it can do the former but I am not sure about the latter.  I use StyleCop as a ReSharper plug-in so that ReSharper can better show/respect StyleCop rules, but I have never tried using StyleCop standalone before.

I think github can run StyleCop when the code is pushed so you will have
less style issues during code reviews.
Also I've added StyleCop on my local fluentassertions build and it revealed
quite a number of formatting inconsistencies and grammar mistakes in
comments so even if you are currently using ReSharper, StyleCop is more
comprehensive.
On Tue, Jan 13, 2015, 02:15 Adam Voss<EMAIL_ADDRESS>wrote:

@konstmsu https://github.com/konstmsu In this case would StyleCop be
enforcing the policy on build? Or itself formatting the code?
I know it can do the former but I am not sure about the latter. I use
StyleCop as a ReSharper plug-in so that ReSharper can better show/respect
StyleCop rules, but I have never tried using StyleCop standalone before.
—
Reply to this email directly or view it on GitHub
https://github.com/dennisdoomen/fluentassertions/issues/213#issuecomment-69616716
.

@vossad01 Answering your question, StyleCop will be enforcing the policy on build so there will be required less effort on code review.

Sounds like a good thing to me.
StyleCop is configurable on what rules are enforced?  I know the R# extension wanted Copyright headers at the top of all files and other things we might not want.

Every rule is configurable, I've got a rule set that passes on the current
fluent assertions codebase with some minor fixes.
I'll send another pull request after we finish with the current one.
On Wed, Jan 14, 2015, 07:02 Adam Voss<EMAIL_ADDRESS>wrote:

Sounds like a good thing to me.
StyleCop is configurable on what rules are enforced? I know the R#
extension wanted Copyright headers at the top of all files and other things
we might not want.
—
Reply to this email directly or view it on GitHub
https://github.com/dennisdoomen/fluentassertions/issues/213#issuecomment-69838745
.

Cool. Could you make it part of the build script? Then it'll get included in the TeamCity builds.

If you'd be happy to take a nuget dependency https://www.nuget.org/packages/StyleCop.MSBuild would achieve all that's been suggested. We use it in all our builds, works seemlessly on local builds as well as on the TC build agents.

Resolved by #216


Event to trigger when the broker is down in ConsumerGroup

I am using Consumer group to get the messages. Is there any event available in consumer group to know when the consumer group is down?
I am having 3 brokers. I have configured the broker as "broker1:9092,broker2:9092,broker3:9093". And all three consumer will be consuming the topic with different group name. I need to get all the messages in all three node servers.
When any broker is down, the node server is not receiving any messages. So I want to check whether the broker is down or not.

This is something the consumer should automatically recover from but you will likely receive a BrokerNotAvailable error event in this situation.

BrokerNotAvailable error is not throwing in this case while I am using ConsumerGroup


Historic

[x] David O'Doherty - 🗓 18 Feb 2017
[x] The Saturday Show - 🗓 Sat 6th May 2023

David O'Doherty
18 Feb 2017
Tyne Theatre

The Saturday Show
🗓 Sat 6th May 2023
With host Sammy Dobson, Liam Tuffy, Si Beckwith, Gareth Mutch and headliner MC Hammersmith!
https://www.thestand.co.uk/performances/1478-14307-the-saturday-show-20230506-newcastle/

Ed Byrne (2011-05-28 06:15:54 +0000)

Went to see Ed Byrne at the City Hall on Friday Night [27th May 2011] It was filmed as it was his best gig of the last tour, might actually be on it, prob at the end. Really good gig, audience participation was great. There was a guy laughing that much, and that loud next to use it made it all the funnier.

Recent Theatre Visit
(2011-05-04 05:16:48 +0000)

I went to the JournalTyne Theatre last night (3rd May '11) to see One-Man Star Wars by Charles Ross. It is exactly what you think it will be. Seems he's done a LOTRs too. It took a little to get into it but was worth it. Helps if you have seen the first three moves (IV/V/VI) but there were some very funny moments in there own right. He came back out at the end and had a little chat with us, seems it has been touring for about 10 years after an original 25min sketch of the first film that seemed to evolve to the trilogy. He was supported by a comedian John Cooper who has created a rather brilliant character, Danny Pensive, be sure to check out the Gateshead video from his blog. Hilarious use of words. Links Journal Tyne Theatre One-Man Star Wars One Man LOTR John Cooper Danny Pensive Danny Pensive in Gateshead

Ed Byrne
27 May 2011


[Win/PS] Fails when the folder name contains space and ends with backslash

I'm opening this issue because:

[x] I have found a bug
[ ] I want to request a feature
[ ] I have a question
[ ] Other

Version:  qrcp_0.6.2_Windows_x86_64.tar.gz

Create a folder named a a.
Open Powershell.
type qrcp '.\a a\'.
You will get a wired Error: CreateFile .\a a": The filename, directory name, or volume label syntax is incorrect.
How do I find this? I created a new folder with the default name New folder, I opened PS and typed qrcp N and typed TAB, PS autocomplited it to qrcp '.\New folder\'.
qrcp '.\a a' and qrcp 'a a' works, so a file named a a works. qrcp 'a a\' fails.
When the folder name is a, all of qrcp '.\a\', qrcp 'a\', qrcp '.\a' work.
feel free to won't fix.

Hello, thanks for reporting! This will be fixed in the next release 0.6.3!

Update: this will be released in 0.6.4

Can you please paste the error returned?
Thanks,
C

PS E:\> qrcp '.\a a\'
Error: CreateFile .\a a": The filename, directory name, or volume label syntax is incorrect.
Run `qrcp help` for help.

Important Note: that command works fine in pwsh 7.1.0-preview.4, and fails on 5.1.19041.1 which is the default version of PS in Win10 2004

@imba-tjd thanks for clarifying. Since it works on a more recent version than 5.1.19041.1, I will consider this issue not to be related to qrcp. Is it possible to update pwsh on PS? I am considering stating in the README that qrcp is not supported on legacy PowerShell versions.
Thanks

For now pwsh must be installed manually and it works with legacy PS side by side, not the relationship between edgium and edge legacy.

OH, I just realized that PS stands for PowerShell! I'm not a Windows user and for some reason I was thinking that it was the name of a device (like PlayStation) :facepalm:
Well, if you could take the time to test it on version 7.0.2, which appears to be the latest stable, and confirm it works, I could close this issue as it's related to a deprecated version of pwsh. I would really appreciate that!
https://github.com/PowerShell/PowerShell/releases/tag/v7.0.2

I tried version pwsh 7.0.2 and worked great on Arch Linux:

I will close this issue now, many thanks for taking the time to report it and assist me debugging.
Cheers,
Claudio

Well, I need to make some more clarification.
pwsh is indeed built on top of the legacy PS, and legacy PS is indeed won't get any functional improvements.
But I don't treat legacy PS as a "deprecated version of pwsh", and I don't think Microsoft would replace the built-in PowerShell 5.1 with the new pwsh, personally.
Backslash is the directory seperator in Win. Legacy PS also suppport slash, but the autocomplete (aka TAB) would get backslash.
For PS 5.1, qrcp './a a/' also works.

Anyway this scenario is rare so I think won't fix is resonalble. If someone encounter the same issue in the future, this can be referenced.

Ok, now it's clear. Let's apply a won't fix label for future reference.
Cheers!


Cannot import opencv python module

Issue description
When attempting to run a minimal python file:
import cv2

While having the python package opencv installed, I receive
ModuleNotFoundError: No module named 'cv2'

Steps to reproduce
$ nix-shell -p "python3.withPackages(ps: with ps; [ opencv ])"
$ echo "import cv2" | python3 -

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

system: "x86_64-linux"
host os: Linux 4.19.37, NixOS, 19.03.173054.754763ff4ba (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.03.173054.754763ff4ba"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

IRC Logs as I sifted through stuff.
<omnipotententity> I'm having what is probably an easy to solve issue.  I'm trying to run a python script that is importing opencv using the module 'cv2'.  I attempted to add pythonPackages37.opencv to my nix.shell file (along with other dependencies) and the module cv2 is still not being found.  Furthermore, $PYTHONPATH doesn't seem to contain a path to the package folder in /nix/store and /nix/store itself doesn't seem to have a folder for the python package.
<omnipotententity> Any hints?
<omnipotententity> ok, I've figured out why there isn't a python37 folder for it in the nix store.  It's because python37Packages.opencv chain calls into the standard opencv install process with a python flag set.  And I do have two opencv folders in nix store, one for the runtime one for the package.
<omnipotententity> But I can't figure out where the built module lives in either of these folders.
<omnipotententity> however, it seems like toPythonModule is supposed to name things properly?
<omnipotententity> According to https://github.com/NixOS/nixpkgs/issues/45506 I should always use python.withPackages.  This does not seem to help me at the moment though.  I get the same behavior.
<{^_^}> #45506 (by tolstikh, 45 weeks ago, closed): Cannot have OpenCV binding for python 2 and python 3 active at the same time

We currently have 2.4.13. When checking the build log nix log -f . python3.pkgs.opencv I noticed some SyntaxError. Testing now with the latest, <IP_ADDRESS>.

Even with <IP_ADDRESS> the following files have Python 2 syntax. Is OpenCV 2 even supposed to work with Python 3?
/nix/store/69s3k8kz5q51h5f2w575pxirm3ijs2kd-source/modules/python/CMakeLists.txt:execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('SO')"
/nix/store/69s3k8kz5q51h5f2w575pxirm3ijs2kd-source/cmake/OpenCVDetectPython.cmake:      execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_python_lib()"
/nix/store/69s3k8kz5q51h5f2w575pxirm3ijs2kd-source/cmake/OpenCVDetectPython.cmake:        execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import os; os.environ['DISTUTILS_USE_SDK']='1'; import numpy.distutils; print numpy.distutils.misc_util.get_numpy_include_dirs()[0]"

Are you trying to essentially use opencv version 2.4.8 ? It's from 2017 right? https://opencv.org/opencv-2-4-8/
As for opencv stable (4.1.0) , it's python interface seems to support python 3.7, see https://pypi.org/project/opencv-python/ .

I seem to have made a poor assumption.  I assumed cv2 meant literally version 2, instead cv2 covers every version of CV after a certain point (I had assumed they went from cv to cv2 to opencv through releases, but they actually kept cv2 around for legacy reasons.)
From further research OpenCV2 does not officially support python3, and unofficially it does not even compile as observed by @FRidh
Should attempting to install this package as a python37Package throw an error?  Or is the current behavior as expected?  What is normative in this case?

Should attempting to install this package as a python37Package throw an error? Or is the current behavior as expected? What is normative in this case?

No, we should disable it then in case of Python 3.

If so, I think it shouldn't be included in python3Packagess attributes. Could you give perhaps more links proving the python versions support state from opencv's website Bug tracker, for reference please?

@doronbehar I got my information from an unofficial source: https://pypi.org/project/opencv-python/ I will attempt to find an official source.


Local Picture Bug

Doesn't change pictures when using the local_plugin. Only uses one of the picture in the theme folder. using jpg pictures. Some are in different resolutions and one is a png.

I saw you did it with two buttons, but at first i couldn't find them for long time


Fix for responsiveness and basic accessibility of file list page, while adding cross-env.

Description
1. Fixes the squished text and minimalizes the text on screen on mobile devices.
2. Fixed accessibility of the page's images.
3. Adds cross-env for any and all env-vars on windows. [E.g.: The build command for client.]
Fixes #30 (issue)
Type of change

Styling
OS support

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Done 👍


Return options for INSERT operations, UPDATE and DELETE

As with the 'queries' sql return run it would be possible
for INSERT, UPDATE, and DELETE operations?
$Query = QB::table('my_table')->where('city', '=', 'New York')->update(['name', 'Robert']);
$QueryObj = $query->getQuery();
$QueryObj->getRawSql();

or simply:
$Query->getSQL();

// UPDATE WHERE my_table city = 'New York' SETname = 'Robert'

It would be possible to also have the return of the number of rows affected?
$ Query->rowsAffected();

// 2

And yet the affected ID?
$Query->idAffecteds();

// 1
// [1,3] <- affected ids.

yes this will be nice option

@robertaodj take a look at the @mrcnpdlk at #151 .


"Ionic build windows" not working correctly, not add tag wp

"Ionic build windows" not working correctly, not add tag wp, Therefore looks bad
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
What behavior are you expecting?
Steps to reproduce:
1.
2.
3.
insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using?
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

@jgw96,
Can you move this to the cli repo?
Thanks,
Dan

This issue was moved to driftyco/ionic-cli#1892


Add vscode-webview-resource protocol

Adds a new protocol (vscode-webview-resource) for loading resources insides of webviews. This replaces the existing vscode-resource protocol and is registered in the main process (using ipc to trigger it) instead of being registered in the renderer processes
This change also adds some rewriting logic to update any vscode-resource: references found in the main html of a webview to use vscode-webview-resource instead. We have similar logic for rewriting vscode-resource: on web
Fixes #89038

I'm merging this change since we want testing in insiders to see if this breaks extensions. I tested a few popular ones but it's difficult to know exactly how all the webview extensions out there may be effected
@rebornix Can you please test this change against notebooks and let me know if anything breaks. I tested the gh-issues notebook but again it may cause issues for more complex notebooks
@bpasero I'll look into using a stream protocol again as well


[RFC] ISLE: Lowering of multi-output instructions

This changes the output of the lower constructor from a
ValueRegs to a new InstOutput type, which is a vector
of ValueRegs.
Code in lower_common is updated to use this new type to
handle instructions with multiple outputs.  All back-ends
are updated to use the new type.
CC @cfallin @fitzgen - this is an attempt to address https://github.com/bytecodealliance/wasmtime/issues/3747
I like the way lower_common now looks better, and handling of iadd_ifcount seems improved.  However, the current implementation requires a large number of changes to all back ends, which is not ideal.   Note that if we end up implementing the suggestion https://github.com/bytecodealliance/wasmtime/issues/3753, we can avoid most of those changes simply by installing a default conversion from a ValueRegs to a (singleton) InstOutput.
Not sure if the terminology InstOutput is the best possible -- other suggestions appreciated!

So I think a lower_zero, lower_one, maybe a special lower_two for instructions that statically produce exactly two results (e.g. iadd_ifcout-alikes) and lower_variable for calls (even if they produce 0, 1, or 2 results, this is known only at compile time) would make sense. Thoughts?

I guess what's not quite clear about this to me is just where that distinction would be introduced.   If we have different lowering functions with different return types, we won't be able to handle all of them with a single lower_common handler, as the latter depends on the particular return type.
So should we have a lower_common that takes four different lower routines, and then internally decides which of them to use (based on the opcode, I guess?), and then handles each of them separately according to their return value?
Or should lower_common be modified to handle different return types, based on some template magic I guess, and then the various back-ends could use different instantiations, and chose by themselves which version to use (again based on the opcode, but now probably in the already-existing switch statements in the back-ends?)?

I guess what's not quite clear about this to me is just where that distinction would be introduced. If we have different lowering functions with different return types, we won't be able to handle all of them with a single lower_common handler, as the latter depends on the particular return type.
So should we have a lower_common that takes four different lower routines, and then internally decides which of them to use (based on the opcode, I guess?), and then handles each of them separately according to their return value?
Or should lower_common be modified to handle different return types, based on some template magic I guess, and then the various back-ends could use different instantiations, and chose by themselves which version to use (again based on the opcode, but now probably in the already-existing switch statements in the back-ends?)?

This is a good question; the general principle would be to dispatch somewhere before we enter ISLE code so we end up with the type-safety once we get to specific rules. My first instinct is to have something like
trait IsleEntrypoints {
    fn lower_zero(...) -> Option<()>;
    fn lower_one(...) -> Option<ValueRegs>;
    fn lower_two(...) -> Option<(ValueRegs, ValueRegs)>;
    fn lower_variable(...) -> Option<SmallVec<[ValueRegs; 4]>>;
}

to replace the IF closure we currently parameterize lower_common on, and then
/// Arity (number of result values) for an instruction. Note that we make special distinctions
/// for:
/// - zero-result instructions: these are used for their side-effects only;
/// - one-result instructions: the most common kind, computing one new value;
/// - two-result instructions: some instructions produce two fixed outputs, like addend and carry;
/// - variable-result instructions: instructions like calls that produce some number of results different
///   for each instance of the instruction. Note that even a call with 0/1/2 results, dynamically, is still
///   `Variable`.
enum InstArity {
    Zero,
    One,
    Two,
    Variable,
}

impl InstData {
    // ...
    fn arity(&self) -> InstArity { ... }
}

Now that I've sketched that out, though, I'm wavering a bit on whether this is really better than just a SmallVec at the lower_common level (as long as the SmallVec is properly sized; 2 ValueRegs is probably optimal, since multivalue calls are rare and a too-large inline vec will cause measurable memcpy cost?), and then let each backend dispatch into specialized entry points as desired. @fitzgen any thoughts here?

The additional information needed is whether the number of outputs is fixed or variable; e.g. for call it may happen to have one result in this (and most) instances of the instruction, but it still needs the variable path.
The idea with the Arity enum was to allow a clean one-to-one match that dispatches into the trait but I suppose we could also have something like has_variable_results(). (Curiously, we do have inst_variable_args that allows this fixed/variable distinction on the inputs side, but nothing equivalent for results.)
Diving further into this rabbithole though I'm starting to think that just dispatching in the platform-specific glue into its ISLE toplevel is maybe a better answer: match on op, do a special entrypoint for calls (calls are special anyway in lots of ways), nothing else should be variable so then invoke lower_{zero,one,two} based on actual result count as you suggest; and return a SmallVec to lower_common...

Diving further into this rabbithole though I'm starting to think that just dispatching in the platform-specific glue into its ISLE toplevel is maybe a better answer: match on op, do a special entrypoint for calls (calls are special anyway in lots of ways), nothing else should be variable so then invoke lower_{zero,one,two} based on actual result count as you suggest; and return a SmallVec to lower_common...

SGTM :+1:

If you always return a SmallVec to lower_common, then what's even the benefit of multiple lower constructors? Can't we then just go back to my approach (except with SmallVec instead of Vec) plus (the upcoming) default conversions?

The advantage of at least having the distinction at the ISLE layer is type safety, mainly -- we can at least encode the restriction that, say, iadd should result in just one Value in the lowering rules, even if the toplevel driver is generic. It also keeps the rules in a form that is easier to invoke in a more efficient way if we do want/need to do something better than the generic approach in the future.
I'm not completely tied to this of course, and the way we're thinking of doing this now it would be a per-backend decision, so IMHO at least it'sOK to do the fully generic thing in s390x if you feel really strongly here.

The advantage of at least having the distinction at the ISLE layer is type safety, mainly -- we can at least encode the restriction that, say, iadd should result in just one Value in the lowering rules, even if the toplevel driver is generic.

But lower_common would continue to verify that it got the correct number of outputs, so I'm sure I see what additional benefit this provides?   If you have multiple constructors, you instead have the potential source of error of calling the wrong constructor for some opcode ...

It also keeps the rules in a form that is easier to invoke in a more efficient way if we do want/need to do something better than the generic approach in the future.
I'm not completely tied to this of course, and the way we're thinking of doing this now it would be a per-backend decision, so IMHO at least it's OK to do the fully generic thing in s390x if you feel really strongly here.

I don't really feel strongly either ...    I guess once the default conversion patch is in, I can update this PR to use those (and switch to a SmallVec), then we can see how it looks.

I guess once the default conversion patch is in, I can update this PR to use those (and switch to a SmallVec), then we can see how it looks.

OK, just pushed an updated version.   The changes to the platform lower.isle files actually look very reasonable to me now, the default conversions can indeed handle nearly everything.  The only nontrival changes are about iadd_ifcout (which is an improvement anyway), and replacing value_regs_none by side_effect (only used by s390x, and I think also an improvement).
What do you think?


[Multiplayer] Recipes issue builds 2.5.x

Latest builds 2.5x having issue with recipes. Only multiplayer affected.
Try to craft any NC recipe in crafting table and you will see wrong output or empty output. But recipe will work.
If you try to use sort of autocrafting (mek formularic assemblicator/AE2/RS autocraft) it won't work or even may crash client.

Hopefully fixed in 2o.5.2 :)


Could not get code signature for running application

macOS version: Big Sur 11.6.1
Kap version: 3.4.1
This appears randomly in the screen
Unhandled Promise Rejection
Error: Could not get code signature for running application
at Server. (/Applications/Kap.app/Contents/Resources/app.asar/node_modules/electron-updater/out/MacUpdater.js:105:44)

related: #1046

Closing as duplicate of #1046

It's the same issue, just Kap throwing the error as the updater is attempting to install in the background.

Ok! For reference, I installed via homebrew and I have already did the workaround with right-click open in context menu

That makes sense, it's trying to grab 3.4.2, but that version has the same issue. Hoping to fix it over the weekend!