Search results not showing up

Please use any keyword and click back and forth through all options (live, accounts, photos, videos) of search. Currently results are regularly missing.

This happened when the loklak server was down for a while.
Although, if you switch filter fast enough and contiuously, the application will be blocked from loklak server due to high frequency of requests.

While we can hope for the users to be sane, I'm proposing to disable filters bar (greyed out), when a filter search is still running

Which area is "filters bar" exactly?

This is the filters bar

When a search is running, it can be shown like this (and the functionality of course must be disabled temporarily until the search is done).

Ok, got it. To disable seems a different user experience to what people are used to at twitter, google..

While we can hope for the users to be sane, I'm proposing to disable filters bar (greyed out), when a filter search is still running

It the user starts a new search or changes the filter, how could the current request just be canceled and the new requests be performed.
If as a user I want to look at another search, that my current search, - currently I have to wait until the first search is finished, right? This is not very user friendly.

Would it be an option to define the loklak webclient as a priority client and allow more requests to the server? Maybe we could introduce authentication of clients and increase the number of allowed requests for authenticated web clients to loklak.org server?

Says my ip is <IP_ADDRESS>

When I open loklak.net in my browser
And then do a search
The loklak server will address me as <IP_ADDRESS>, not loklak.net
So if we define a priority for the client, that would apply for all client, and it doesn't even have to be the loklak_webclient we build, and that increases even more risk in DDos:ing to loklak server. So I don't think that this is option

The problem wasn't about how many requests are allowed, the problem lies in how fast we can request continuously. Maybe @Orbiter can clarify later how tight the DDos setting is, however, one general solution is the raise the concurrent limit of a certain ip:

Before, 1 request at a point of time, if more, block for a while
After, 5 (or more) at a point of time, if more, block for even longer

Should I follow with the grey out solution for now, or should we wait for Michael's input as well?

Greying out is not an option. It does not happen on other services and contradicts what users experience elsewhere. Twitter allows certain clients of companies that pay them to perform more requests. We have a different architecture.

Nevertheless, what could be a way to distinguish requests from loklak.net or other clients to loklak.org? Client authentication, limit IPs?

Are there ways to cancel current requests and start new ones? How is twitter doing it? Just by adding computing power?

Twitter is avoiding it by refreshing the page:

Starting from https://twitter.com/search?vertical=default&q=%23vow&src=typd

This is what happenned in console when I clicked continously on photos filter:

After this the page is refreshed instantly

What do we need to implement a similar solution?

This is solely logic from the client side, so we don't need anything to implement this. I have thought of this before, however in my opinion, refresh is always the last resource.
But in this case, this is suitable because:

it works
& loklak server can still maintain tight DDos settings.
user experience is not affected much by refreshing since this is a relatively rare case.

I'll implement it this way then.

Solved with PR above


How to install GDB8 on Centos7 in README_maintainers.md.

No Jenkins run because of no code change.


New rule idea: "no-unused-modules"

Problem: In larger projects unused modules tend to lay around, and it is tiresome to find these modules (for deletion). It would be nice enforce/warn about unused modules.
As the resolving needs a starting point we can provide a regexp. In my current project we have two ways to express entries, either simply being a file in /pages/, or having Init.js extension, e.g. ProfileInit.js
import/no-unused-modules: [2, { entry: /Init\.js$|\/pages\// }]

Any files that not imported recursively can listet.
I would love this feature! :)

closing as dupe of #186. I agree, would be super-cool 😎


google-cpi: properties as of v25.10.0

Changed the format for this to sync with the CPI documentation. I think it's easier for the viewers and easier for us to keep the two in sync.
fixes cloudfoundry-incubator/bosh-google-cpi-release/issues/233

Fixes #398

To be transparent, I went with this format to match our CPI docs. I did merge the information on bosh.io (added the defaults column).
IMO it's easier to use this information as a table now that the lists are quite long. I'd vote for all the CPIs moving to this format or coming up with something better.
If that's a non starter I can roll this back and just add the few fields, but I am concerned about keeping the two lists in sync and don't want to adopt the list format in our docs.

im not sure tables deal very well with nested properties (dont think google cpi has them though).
why do we maintain two set of docs? can we kill github ones?
Sent from my iPhone

On Oct 27, 2017, at 9:50 AM, Jeff Johnson<EMAIL_ADDRESS>wrote:
To be transparent, I went with this format to match our CPI docs. I did merge the information on bosh.io (added the defaults column).
IMO it's easier to use this information as a table now that the lists are quite long. I'd vote for all the CPIs moving to this format or coming up with something better.
If that's a non starter I can roll this back and just add the few fields, but I am concerned about keeping the two lists in sync and don't want to adopt the list format in our docs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Is there a way we can embed docs from the cpi to bosh.io? Link would be so-so.
What I like about having the docs in the same project as the CPI is we can ensure as we add new features they are merged with docs. It also means the docs in the repo at a given tag represent the feature set. Separate repos complicate this.

I strongly vote for the CPI repository to be the authoritative docs, and bosh.io should be able to embed those. Not the other way around. I agree with @johnsonj.
If consistent docs across CPIs would be an issue, there's always the schema option for a more structured form of documenting supported properties.

hmm i could get on board with that. need to figure out though how to keep
it all consistent across different cpi repos.
On Fri, Oct 27, 2017 at 11:36 AM, Danny Berger<EMAIL_ADDRESS>wrote:

I strongly vote for the CPI repository to be the authoritative docs, and
bosh.io should be able to embed those. Not the other way around. I agree
with @johnsonj https://github.com/johnsonj.
If consistent docs across CPIs would be an issue, there's always the
schema option for a more structured form of documenting supported
properties.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry/docs-bosh/pull/401#issuecomment-340051394,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALV99nyHi_0VnjHLaysLailzM6ykG-mks5swiKbgaJpZM4QH5cs
.

For the sake of getting docs updated to list the latest properties, I converted the table to the currently-typical list format. I autogenerated it from the bosh-google-cpi-release docs to retain consistency and make it predictable in the future. Eventually, I hope we can embed docs from the CPI release itself and avoid this sort of translation issue.

Nice extraction code! thanks


[bug] Installing spa.project.core.all does not include bundle

Describe the bug
When spa.project.core.all is installed, the bundle com.adobe.aem:spa-project-core is not installed.
This is because the filters for the all module overlap with the filters for the ui.apps module.
Thus, the embedded bundle is installed when the all package is installed; but is immediately removed when the ui.apps sub-package is installed.
Package version
1.1.0
To Reproduce

On a fresh AEM instance, install the spa.project.core.all package via the package manager.
Note in the activity log the addition of the node /apps/spa-project-core/install/spa.project.core.core-1.1.1-SNAPSHOT.jar
Note in further down in the activity log the deletion of the node /apps/spa-project-core/install
Go to /crx/de/index.jsp#/apps/spa-project-core/install/spa.project.core.core-1.1.1-SNAPSHOT.jar and see that the node does not exist

Expected behavior
Expect the node /apps/spa-project-core/install/spa.project.core.core-1.1.1-SNAPSHOT.jar to exist after package install.
Screenshot
Screenshot of the package manager activity log upon installation on a fresh instace.
Deletion of newly added install folder is highlighted.

New PR - https://github.com/adobe/aem-spa-project-core/pull/18


Allow for niche optimization on Unix platforms

The standard library's file descriptor types have a niche of -1, allowing Option<T> to have the same size as T. By storing a TcpStream internally instead of a raw file descriptor, Socket can also take advantage of this. Currently, this incurs a slightly cost as {from, as, into}_raw_{fd, socket} won't be inlined, however if this Rust PR is merged it will be. Storing a TcpStream also allows for closing to be implemented by the standard library instead of this one, which is a nice benefit.

I actually plan to use socket2 in std lib (issue #212), so this change would make it a lot harder. Do you know if there are any plans to expose the valid range of an int (i.e. what TcpStream is already using) as a public API?

I do not know of any plans for that, no. This niche actually makes things difficult because it would probably be considered a regression for std to remove the niche. Excluding adding more things to the language, we could hide Socket behind a std feature flag, and have libstd use SockRef instead so it can implement its own niche optimization. I don't know if that would cause a circular dependency though - potentially if -Zbuild-std is enabled?

FreeBSD failure seems unrelated, so I'm merging.

Thanks @KaiJewson.


Fix issue #1599

My previous commit, c6d2c81, broke Keil builds and maybe even IAR.
I need to learn how to read C code :)  I thought I was masking off the
O_BINARY bit only for GCC builds but it turns out that my update was
in the fall-through case for all toolchains.  This commit now places
the O_BINARY masking operation into a GCC specific #ifdef clause.
Testing:
I tested the same fopen("/local/out.txt","rb") code as before but this
time I built it with the online compiler and GCC_ARM. I tested the
resulting binaries on mbed-LPC11U24 and mbed-LPC1768 boards.
Thanks to @neilt6 for catching & reporting this!

Thanks for merging!


Ligand with MHC

Hi,
First thank you for compiling and providing a benchmark 10-CV dataset.
The MHC molecular information is also important during the binding of the pMHC complex to the TCR.
Could you please provide additional information on the MHC-I molecules (HLA-X*XX:XX, e.g. HLA-A*02:01) corresponding to each data (epitope-tcr)?
Thanks

Hi @KiAkize,
thanks for the interest and sorry for the late reply.
We did not compile the datasets used in our paper ourselves but rely on the VDJ and the ImmuneCODE database (see the references in our paper). You could ask the original data curators. But I recommend to you to have a look at their published raw data, you might find information that helps you extracting this information.


[cudnn] Fix cudnn dlls

This fixes that dlls won't be installed under windows when using TARGET_RUNTIME_DLLS generator expression in cmake.
The cause is a misspelled variable.

[x] Changes comply with the maintainer guide.
[ ] SHA512s are updated for each updated download.
[ ] The "supports" clause reflects platforms that may be fixed by this new version.
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[ ] When updating the upstream version, the "port-version" is reset (removed from vcpkg.json).
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

I've found another edge case.
When copying cudnn into the cuda installation the path for the dlls is located at ../bin relative to the includes.
But when using the installer the include and bin directory are augmented by a folder with a cuda version. (e.g. include/12.6/; bin/12.6/

Tagging this team review on account that we don't allow find modules in the repo. I know this is already the status quo but given that this is the ports 15th revision, these are substantial changes to the find module, and FindCUDA.cmake is deprecated, I'm not exactly sure how to proceed here.

@Olli1080 To translate what @JavierMatosD into something you can help with: Normally, find modules must not be installed, and that this port ever did that is kind of an issue.

The cause is a misspelled variable.

Can you fix just the misspelled variable rather than trying to do a full overhaul like this? Because as written it argues that you should go all the way and fix it being a config in the first place.
It's also not clear what this is supposed to be doing in the first place considering there doesn't appear to be standard target names for cudnn.

@BillyONeal thank you for the information.
The issue with the misspelled variable was using CUDNN_VERSION_MAJOR instead of CUDNN_VERSION_MAJOR (missing _ in front of name). This only solved finding cudnn64${_CUDNN_VERSION_MAJOR}.dll which is only usefull for cudnn 7.6.5 which is the lowest supported version (according to MINIMUM_CUDNN_VERSION). After version 7.6.5 cudnn was split into multiple libraries (and dlls) which would make add_library neccessary for every library needed.
Could you please explain what the alternative is to using a find module?
The changes are supposed to allow to automatically pull in the neccessary runtime dependencies with $<TARGET_RUNTIME_DLLS:tgt> based on the used cudnn version and chosen dependencies.
I neither found any standardized module names only the inter library usage/link dependencies.
I can understand if the changes are to big to justify supporting $<TARGET_RUNTIME_DLLS:tgt> but it would still be a nice to have.
I'd be happy to help if any changes are neccessary.


There is a error for running gazebo on windows10 ros.

When running roslaunch gazebo_ros empty_world.launch on windows ros, there is a error that is that because of not finding jpeg62.dll,can't continue to execute code.How should I solved it?

I ran into this issue as well. Found out there was a package was not installed correctly which is listed in  C:\ProgramData\chocolatey\lib-bad. This one https://chocolatey.org/packages/libjpeg-turbo , after choco install it, the issue was resolved.
It also has something to do with ros update version to me. When I was using the update version in March, I did not have this issue. After uninstall ros and choco upgrade to the latest update this week, I ran into that issue.

@ancabilloni .
Thanks!

@JackRen88 Thank for reporting this issue!
@ancabilloni Just curious, do you still keep the logs to show why it was listed in lib-bad? That may help for future improvement.

@seanyen i did not find any log on terminal indicating to the error. When trying to run gazebo, a windows just popped up saying jpeg62.dll not found and ask to re-install to resolve, nothing else. Finding the relevant package to reinstall on lib-bad was pure luck as I search around for relevant jpeg package. If you can instruct any log file I should look at to detect on the problem, I can send the info. Thanks.

Closing as gazebo is working


Nixを追加

https://github.com/cargo2nix/cargo2nix

CI

cargo2nix -> build ->
diff -> commit -> push

treefmtも


Check math number property operator precedence Dart EOF generator fix

The basics

[ ] I branched from develop
[ ] My pull request is against develop
[ ] My code follows the style guide

The details
Resolves

Proposed Changes

Reason for Changes

Test Coverage

Tested on:

Documentation

Additional Information

Closing, confirmed from successful Dart test that an extra new line was the problem (https://github.com/RichDoherty/blockly/pull/15)


GraphicsDevice.Dispose() hangs when on non-main thread and vsync is on

using System;
using Veldrid;
using System.Threading.Tasks;
using Veldrid.Sdl2;
using Veldrid.StartupUtilities;

namespace OhBoi
{
	class EntryPoint
	{
		static void Main(string[] args)
		{
			Console.WriteLine("Hello World!");
			GraphicsDevice graphicsDevice = null;
			var window = new Window("Project02", (gd) => graphicsDevice = gd);
			window.OnRender += () => graphicsDevice.SwapBuffers();
			window.Wait();
		}
	}
	public class Window
	{
		Sdl2Window window;
		Task execution;

		public event Action OnRender;

		public Window(string title, Action<GraphicsDevice> onReady = null)
		{
			// Execute(title, onReady); // If synchronous, it works
			execution = Task.Run(() => Execute(title, onReady));
		}

		void Execute(string title, Action<GraphicsDevice> onReady)
		{
			WindowCreateInfo wcInfo = new WindowCreateInfo
			{
				WindowWidth = 960,
				WindowHeight = 480,
				WindowTitle = title
			};
			window = VeldridStartup.CreateWindow(ref wcInfo);

			GraphicsDeviceOptions gdOptions = new GraphicsDeviceOptions
			(
				debug: false,
				syncToVerticalBlank: true, // If false, it works
				swapchainDepthFormat: PixelFormat.R16_UNorm
			);
			GraphicsDevice graphicsDevice = VeldridStartup.CreateGraphicsDevice(window, gdOptions, GraphicsBackend.Vulkan);

			onReady?.Invoke(graphicsDevice);

			while (true)
			{
				InputSnapshot inputSnapshot = window.PumpEvents();
				if (window.Exists)
					OnRender?.Invoke();
				else
					break;
			}

			graphicsDevice.Dispose(); // Freeze here
		}

		public void Wait()
		{
			execution?.Wait();
		}
	}
}

This happens on both Vulkan and OpenGL
Fedora 30, Wayland, .NET Core

I was able to reproduce it on master.
The NeoDemo hangs on exit when VSync is enabled with both OpenGL and Vulkan.
Tested on Manjaro KDE, Intel UHD on X11.
The issue does not seem to occur on another Manjaro machine with a Nvidia GPU though.


Change IPv6 virtual network examples to use ULA ranges for private networking examples

The documentation, and suggested address space, for IPv6 ranges in Azure uses unusual example ranges, e.g. while the IPv4 examples use private networking range <IP_ADDRESS>/24, the IPv6 examples use unusual (unallocated, public) ranges like ace:cab:deca:deed::/64.
These examples should generally use IPv6 Unique Local Addresses (RFC 4193), e.g. fd12:3456:789a::/64, which are designed for private networking and the closest equivalent to IPv4 private network addresses (<IP_ADDRESS>/8, etc). (https://tools.ietf.org/html/rfc4193)
Private networking examples have been changed to use virtual network address space of fd12:3456:789a:bc00::/56 (a partition of the global ULA fd12:3456:789a::/48), and example subnets of fd12:3456:789a:bcde::/64 for subnets.
Public address examples have been changed to use the RFC3849 reserved IPv6 range for documentation (2001:db8::/32). While this range should be used for public address examples, it is not useful for showing special purpose addresses such as ULA.
A comment has been added to the IPv6 virtual networking overview to guide usage of these ranges, either for private or public networking, but with the same routing restrictions as for IPv4.
(Note: This seems to have got lost 4 months ago, first sent December, with no comments, feedback, or any response to communication, so attempting to resubmit. Please contact me<EMAIL_ADDRESS>or<EMAIL_ADDRESS>with any feedback, even if my changes are rejected. Thanks.).

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

Hi @kumudd - Would you review this pull request? Thanks!

#reassign: EricTheRed999

@EricTheRed999 - Would you review this pull request? Thanks.

#reassign: @ramandhillon84

@ramandhillon84 Thanks for the review. We'll close the PR based on your comment. Thanks.


New Styles Not Appearing

Version 1803 (Build 9126.2282 Click-to-Run) 32-bit
I downloaded and extracted the styles and put all of them in my C:\Program Files (x86)\Microsoft Office\root\Office16\Bibliography\Style folder.
I've closed and reopened Word multiple times, making sure it's the same executable that's in the root folder, but the none of the new styles show up.
What could I be doing wrong? Has anyone else experienced this?

I tried the wise suggestion of a certain Iman Asareh,

Open a Word document
Go to the Reference>Manage Sources then click the Browse button
Copy the address of the dialog bar that opens from address bar (open Source List dialog box)
Open the copied folder in a separate folder and paste the styles there.
I hope it works for you.

Still no luck!

In %userprofile%\AppData\Roaming\Microsoft\Bibliography\Style when I make a copy of one of the styles and change it's name, the copy appears!

(To change the name, look for the part that looks like the following:
  <xsl:when test="b:StyleNameLocalized">
    <xsl:choose>
      <xsl:when test="b:StyleNameLocalized/b:Lcid='1033'">
        <xsl:text>APderrA</xsl:text>
      </xsl:when>
...

)

My best guess is that the new style files are missing something important and so Word rejects them.
I think the answer might lie here: https://docs.microsoft.com/en-us/office/vba/word/concepts/objects-properties-methods/create-custom-bibliography-styles
Any help would be appreciated.

Same issue.....the styles doe not appear ...
Any help ?

This still hasn't been fixed. The only "new" styles I can add is copies of those already present. So something must be missing in the code in the xsl-files.

Sorry, but I am no longer using these styles myself. Please try https://github.com/codingo/BibWord.


Feature Request: nether wart harvestable by clerics

Hi, would it be possible to add a config option that lets cleric villagers harvest nether warts like farmers harvest wheat, potatoes and carrots? I got this idea from the carpet-extra mod .

Sounds like an easy thing. I'll see what I can do ^_^

Added in 9935466 (build 876)


Problem with the stemmer

There seems to be a problem with the stemmer.
The following
query = 'Things to do'
will be stemmed to
console.log(elunr.stemmer(elunr.trimmer(query));
'Things to do'

It has nothing to do with capitalization, the same happens with 'things to do'
the s should be deleted from things
a look at the online porter stemmer, shows the correct result
http://9ol.es/porter_js_demo.html

each 'token' has to be stemmed separately
to understand how the index 'sees' the search query this is what I did
console.log(elunr.tokenizer(elunr.trimmer(query))
      .map(t => elunr.stemmer(t))
      .map(t => elunr.stopWordFilter(t))


Handle absolute paths on Windows

 /absoluteE:/Work/projects/ myProject/src/main/webapp/resources/lib/jquery/jquery-1.10.2.min.map

Closing due to inactivity


Add support for building the cli on pull request

Why you need it?
To build the cli when someone contributes a PR and it is accepted.
How it could be?
A "contrib" workflow in github.com/apache/openserverless-cli that

createa a tag from the version.txt
trigger a build and a release using the release workflow

Other related information
A partial implementation creating the tag when someone contribute a PR is already available.
However looks like it does not trigger another build for some reasons.
We shoulud either add the trigger or merge the code with the release workflow so it is activated both by pr AND pull requests.

Also add to the README the documentation how to contribute a PR.
Basically all it is needed is to run task tag before contributing  will generate a new tag and update the version.txt used by the buid.
Once the version.txt is updated this workflow will propagate the version.txt as a tag and the go releases can build with the right version.


No transparency sliders

Is there a way to take the transparency sliders out and not support it at all?

There is, basically only allow hex inputs, so
$('.class').colorpicker({
format:'hex'
})

That worked. Thanks

You can also customize the widget template and remove the alpha bar:
https://github.com/mjolnic/bootstrap-colorpicker/blob/master/src/js/colorpicker-defaults.js#L55


Final version of 2.0.0

Can we get a final version of 2.0.0 to be included in Wildfly Swarm? It seems 2.0.0.Alpha9 had quite some bake time, do you think it can be released or does anything hold it back?
The related issue: https://issues.jboss.org/browse/SWARM-1319

+1 to me, no blockers, I'll talk with Matous and release it if no blockers
El 5 may. 2017 8:57 a. m., "Heiko Braun"<EMAIL_ADDRESS>escribió:

Can we get a final version of 2.0.0 to be included in Wildfly Swarm? It
seems 2.0.0.Alpha9 had quite some bake time, do you think it can be
released or does anything hold it back?
The related issue: https://issues.jboss.org/browse/SWARM-1319
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shrinkwrap/descriptors/issues/110, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABcmYe9PdQiVyTER-eqpZ1-T6E_RKt1Cks5r2sg9gaJpZM4NRjnd
.

great, thanks @lordofthejars

+1 from my side and no blockers

cool I am going to do it then

@heiko-braun released to jboss nexus. Now waiting until synced.

Thanks for the quick turn around @lordofthejars !


Find photos missing exiftool tags and add them to an album.

I'd like to search for video files that don't have QUICKTIME:ContentCreateDate, QUICKTIME:CreationDate, QUICKTIME:DateTimeOriginal or XMP:DateCreated and add them to specific albums such as "No QUICKTIME:ContentCreateDate", "No QUICKTIME:CreationDate" and so on.
Is it possible to do this?
I tried running this command osxphotos query --only-movies --exif QUICKTIME:ContentCreateDate ' ' --add-to-album "Sem ContentCreateDate"  but I think it identified movies that HAVE the specified tag, and not the ones that DOESN'T.

This query --exif QUICKTIME:ContentCreateDate ' ' translates to "find photos where QuickTime:ContentCreateDate contains a space" and since ContentCreateDate is in format "2014:02:02 16:34:05", any valid ContentCreateDate does contain a space and thus matches as you've noted. I don't think you can search for a null value using this as the shell will strip the empty string ("").  This might work (not tested though)
replace --exif ... with --regex "MISSING_DATE" "{exiftool:QuickTime:ContentCreateDate,MISSING_DATE}"
This will evaluate QuickTimeContentCreate and if it is null, substitute MISSING_DATE which can then be matched by the --regex filter.

I ran this command you said -- osxphotos query --only-movies --regex "MISSING_DATE" "{exiftool:QUICKTIME:CreationDate,MISSING_DATE}" --add-to-album "Sem CreationDate"
-- but I have a doubt. The output said: "Adding 1649 photos to album 'Sem CreationDate'" , but the album actually ended up having only 720 videos.

I have a thought in mind: can I run an exiftool command to query photos and use the result to add photos to an album.
There is this command used to find files missing a given tag: exiftool -filename -r -if '(not $QuickTime:CreationDate)' /path/to/picture.jpg
It outputs the filename of the files missing the given tag.
I was wondering if I could somehow use this command to query the videos missing the tags I want and use the results (filenames) to add those videos to an album.

As to the difference between 1649 and 720, would need to see the output to try to understand the difference. It's possible Photos caused an error during the adding the album which resulted in some videos not being added but osxphotos should retry in this case (I'll take a look at the album code later...not at the computer currently).  To your second question about using filenames to generate a list, yes, you could do this. The originals should be in ~/Pictures/Photos Library.photoslibrary/originals, run your command there then you'll get a list of filenames where the stem of the filename (the part without the extension) is the UUID of the photo/video which is how the Photos database tracks assets. It'll look like 6FD38366-3BF2-407D-81FE-7153EB6125B6.mov and the part you want is 6FD38366-3BF2-407D-81FE-7153EB6125B6. So if you can extract just that part and stick it in a file, you can use --uuid-from-file FILENAME.txt to work with just those images.

As to the difference between 1649 and 720, would need to see the output to try to understand the difference. It's possible Photos caused an error during the adding the album which resulted in some videos not being added but osxphotos should retry in this case (I'll take a look at the album code later...not at the computer currently). To your second question about using filenames to generate a list, yes, you could do this. The originals should be in ~/Pictures/Photos Library.photoslibrary/originals, run your command there then you'll get a list of filenames where the stem of the filename (the part without the extension) is the UUID of the photo/video which is how the Photos database tracks assets. It'll look like 6FD38366-3BF2-407D-81FE-7153EB6125B6.mov and the part you want is 6FD38366-3BF2-407D-81FE-7153EB6125B6. So if you can extract just that part and stick it in a file, you can use --uuid-from-file FILENAME.txt to work with just those images.

This worked!
Thank you so much!
Can I ask another question?
I don't understand what --exiftool-merge-keywords and --exiftool-merge-persons actually means. Could you please explain it to me?
And, is it possible to query photos from each YEAR and sort them into different albums named by the years in only one command? (instead of executing osxphotos query --year <YEAR> --add-to-album "YEAR" multiple times - individually for each year?)

This worked!

Great!

I don't understand what --exiftool-merge-keywords and --exiftool-merge-persons actually means. Could you please explain it to m

Normally, when you use --exiftool, osxphotos will overwrite the metadata in the exported file with the metadata generated during export (for example, keywords in Photos will be written as keywords in the metadata of the exported files).  If you had keywords or PersonInImage data already in the file (that is, it was already there when the file was imported to Photos), then this also gets overwritten.  If you use the merge options, the data is merged so that any keywords / persons in the exported file are combined with the new metadata from Photos.

And, is it possible to query photos from each YEAR and sort them into different albums named by the years in only one command? (instead of executing osxphotos query --year  --add-to-album "YEAR" multiple times - individually for each year?)

Not directly in osxphotos at the moment though if the album name were a template, then yes, you could do this. (This is a good idea and I'll open a new issue to make ALBUM a template)
You can probably do this with a shell script.  (Warning, not tested and I'm not a shell scripting expert).  Something like this, saved to a file years.sh then run via sh years.sh
for year in {1990..2022}
do
    echo Processing $year
    osxphotos query --year $year --add-to-album $year
done

Here's an example which made my mind think about the last question (add to multiple albums sorting the pictures using the query options) and ALSO about the query of EXIFTOOL tags (the issue is about that). But I don't have any idea on how to make it work.... do I need to install PhotosScript as well?

What exactly are you trying to do? I might be able to help you modify that example script from #323 to do the task.
You don't need to install photoscript unless you want to write your own custom python code for dealing with photos.  osxphotos installs photoscript as part of osxphotos installation (I wrote photoscript too).  One neat feature of osxphotos is that you can use it to run your python scripts so you don't have to install any extra files or worry about python versions.  You can save one of the example scripts, modify it, then run with osxphotos run myscript.py
Anyway, let me know exactly what you're looking to do and I'll be glad to help.


[Errorlog] Callout test cases

The Callout support is in.. need to add test case to check the callout using callout-test

Code under review


Export to PDF

It would be awesome to be able to print the songs from the app.

One user review commented on adding this feature

Multiple more user reviews have commented on this issue, seems to be a fairly common use case.


nargo test passes or fails arbitrarily with no changes to the code

Aim
While adding tests to this repository, I ran nargo test twice. Once it failed, and once it didn't. I had made no changes to the code between the nargo test commands.
Expected Behavior
The tests should ideally both pass.
Bug
However, only once it did. When I kept running nargo test again and again, the test always subsequently passed. However, if someone runs it just once, they might wrongly interpret that a test is failing.
To Reproduce

clone the repository mentioned above
cd fraction
nargo test

Installation Method
None
Nargo Version
0.7.1
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

I've confirmed that this does not occur with --experimental-ssa (the tests always pass with it). So it seems there is some nondeterministic part of the old SSA code. Because it is only occurring in the old ssa code that we'll be removing anyway, I'm going to leave this issue until the experimental ssa is switched on in Noir by default. Until then, you can use the --experimental-ssa flag as a workaround.

Closing as the legacy SSA code is now no longer supported.

So I'm on 0.9.0 and the same library tests are still causing this problem. Here is the terminal output for 2 consecutive runs with no changes inbetween:
`ritik@HP-EliteBook-8460w:~/hello_aztec/fraction$ nargo test
Running 18 test functions...
Testing test_cube...
ok
Testing test_diff...
failed
Testing test_sum...
ok
Testing test_integer...
ok
Testing test_square...
ok
Testing test_ceiling...
ok
Testing test_globals...
ok
Testing test_ceiling2...
ok
Testing test_compare...
ok
Testing test_floor2...
ok
Testing test_reduce...
ok
Testing test_sum_negative...
failed
Testing test_not_integer...
ok
Testing test_floor...
ok
Testing test_zero_neutrality...
ok
Testing test_inv...
ok
Testing test_mul...
ok
Testing test_div...
ok
Error: 2 tests failed
Location:
crates/nargo_cli/src/cli/mod.rs:74:5
ritik@HP-EliteBook-8460w:~/hello_aztec/fraction$ nargo test
Running 18 test functions...
Testing test_floor2...
ok
Testing test_diff...
ok
Testing test_floor...
ok
Testing test_inv...
ok
Testing test_integer...
ok
Testing test_not_integer...
ok
Testing test_ceiling...
ok
Testing test_cube...
ok
Testing test_zero_neutrality...
ok
Testing test_sum...
ok
Testing test_ceiling2...
ok
Testing test_div...
ok
Testing test_mul...
ok
Testing test_sum_negative...
ok
Testing test_compare...
ok
Testing test_reduce...
ok
Testing test_square...
ok
Testing test_globals...
ok
All tests passed
`
Is it ok to reopen this?

Yep, if you're still experiencing this then we should have an issue open for it.

I can reproduce on 0.9.0 but not on the nightly release. Can you check if it's fixed for you on that?

0.10.0 will be the first release with the legacy SSA code removed (and the old --experimental-ssa flag made the default), so it is expected that this is still failing on 0.9.0.


bug(VirtualScroll): Horizontal scrolling inside cdk-virtual-scroll-viewport

Is this a regression?

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

The previous version in which this bug was not present was
No response
Description
Content inside the cdk-virtual-scroll-viewport does use more than 100% width and does not break anymore and instead adds horizontal scrolling.
This is especially a problem when using following css rules:
white-space: nowrap;
overflow: hidden;

The problem is the created wrapper container with the cdk-virtual-scroll-content-wrapper class that has a min-width: 100% set but no max-width and can not be changed because of the view encapsulation.
Reproduction
https://github.com/DaniLopes2003/VirtualScroll-DemoApp
Expected Behavior
No horizontal scroll bar added or width, max-width and min-width customizable with css variables?
Actual Behavior
Horizontal bar added because no min-width is set
Environment

Angular: 13.0.3
CDK/Material: 13.1.3
Browser(s): Chrome, Safari
Operating System (e.g. Windows, macOS, Ubuntu): macOS

@mmalerba Could you take a look

I'm also having this problem so am keen on a fix too, thanks all

In my environment, this css fixed this issue:
cdk-virtual-scroll-viewport {
  height: 100%;
  width: 100%;

  .cdk-virtual-scroll-content-wrapper {
    max-width: 100% !important;
  }
}

This worked for me, thanks @rdlabo

Can confirm this fix works, and that this is still an issue in Angular CDK 15. Fought this bug for hours before I found this thread. This is a pretty significant issue when creating complex layouts with clipped wrapping on mobile devices. Without this fix nothing you do can limit the width of a child component within the virtual scroller if you have white-space:nowrap set. Ironically this issue makes it much more difficult to guarantee a fixed height for the scrolled items.

Can confirm this fix works, and that this is still an issue in Angular CDK 15. While the fix is simple finding the issue is not. If this is intended functionality it could at the very least be mentioned in the docs, along with this option if a fixed 100% width is desired.

Workaround does not work as is for me because of the encapsulation (as mentioned in the issue description). I would have to use ng-deep.
cdk-virtual-scroll-viewport {
    height: 100%;
    width: 100%;

    ::ng-deep .cdk-virtual-scroll-content-wrapper {
        max-width: 100% !important;
    }
}

Which I'd prefer not to since it is not recommended.

Any update on this?

Also asking for an update, still an issue in Angular CDK 16.

Workaround does not work as is for me because of the encapsulation (as mentioned in the issue description). I would have to use ng-deep.
cdk-virtual-scroll-viewport {
    height: 100%;
    width: 100%;

    ::ng-deep .cdk-virtual-scroll-content-wrapper {
        max-width: 100% !important;
    }
}

Which I'd prefer not to since it is not recommended.

I put the code suggested by @rdlabo into my main style file: src/styles.scss which means you don't need the ng::deep stuff that is needed if you put it in a component style file.
Can't comment on an actual fix in the main package though.


chore(Button): rename cn -> classNames

PR includes

[ ] Bug Fix
[ ] Docs
[ ] Specs
[ ] Refactor
[ ] Feature
[ ] DX
[ ] DevOps

Related issues

Resolve #
Related issues #, #
QA Instructions, Screenshots, Recordings
Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

/canary

/canary

/canary

/canary

/canary

Canary available<EMAIL_ADDRESS>


Surprising subtyping error

This is easy to work around, but quite common and very annoying:
module M

type range = r:(int * int) { fst r <= snd r }
type wider (r1:range) (r2:range) = fst r1 <= fst r2 /\ snd r2 <= snd r1
type within (n:int) (r:range) = fst r <= n /\ n <= snd r
type rint (r:range) = n:int {fst r <= n /\ n <= snd r}

let u:range = (0,1)
assume val r : (r:range{wider r u})

val f: n:int {within n u} -> m:int {within m r}
let f n = n

val g: rint u -> rint r
let g n = n

//This works
//let g n = let m:int = n in m

$ fstar.exe --universes M.fst
M.fst(15,10-15,11) : Error
Expected expression of type "(M.rint M.r)";
got expression "n" of type "(M.rint M.u)"

We are agreeing that this is a common situation and the behavior is sub-optimal. The fix is not straightforward. We will look to fixing it in the future.

This is still reproducible.

Seems to be a duplicate of #606 (marking so that both can be tracked together).


THREDDS Cloud evaluation

Talk with Curtis
Ed Armstrong too.
Joe Roberts
Reach out to company (Unidata)
Haley Johnson (Unidata)
Wikio?

Capturing Curtis' comments:
Yes, a while back last year Mike Gangl and I were trying to get THREDDS working in AWS NGAP environment. It was kind of working except there were performance issues (sometimes processes would timeout). I created and configured the AWS resources using terraform which was triggered by a Jenkins pipeline job. The AWS architecture includes a built THREDDS docker image stored in ECR, container services using ECS, EFS and S3 for storage, an ALB, and lambda function that syncs collection configuration and data files.
JPL Github Source: https://github.jpl.nasa.gov/podaac/thredds-ngap
Jenkins pipelines: https://devops1.jpl.nasa.gov:8443/job/THREDDS/job/PODAAC_THREDDS_CI/
https://devops1.jpl.nasa.gov:8443/job/THREDDS/

Stopping tracking this here


Add ScrollView for renderItems container

Change View to ScrollView, so that it is possible for user to scroll down to the submit button when fixedHeight is enabled. #34

Thanks for the PR. Will test this out and merge if it works out well for all situations.

@SushilShrestha I think this is an Android only issue. Tried on iOS and it worked perfectly without your fix. Will try it out more to see if any regression will be introduced on both platforms

@toystars Yes I am using the library in android environment and haven't checked for the iOS. :grinning:


Question: how can I run Nodejs server and elm-live on the same port

Many thanks for making this helpful package. I had a question.
I have a Nodejs backend that is serving a html file compiled from Elm. I have the server running on one port and elm-live running on another port successfully, but what I'd like is to be able to run both on the same port. At the moment when I try this, I have to refresh the page to see the elm changes. How can I achieve this?
Thanks

Hey man, good question!
So technically, elm-live takes two ports to work – one for serving static files, another with a LiveReload server pushing info about updates to the browser. The static HTML file gets a JS snippet injected via inject-lr-script. That’s how the browser gets the heads up that it’s time to reload.
At the moment the port at which LiveReload is being served is hidden away in the internals. What springs to my mind is to expose a --livereload-port=PORT option where you can set that port yourself. And with control over that, you can take care of serving the snippet yourself. Does that sound good?

No activity in 2 years if you still have this problem please open a new issue


easyeffects: fix bug 'missing spectrum analyzer'

Due to old version of lsp-plugins in nixpkgs, the delay plugin is incorrectly inserting silence in the plugin output instead of the processed audio. This has been fixed in lsp-plugins-1.2.17 but is not in nixpkgs yet.
Added a patch to revert the merge which causes issues, but the correct fix longer term will be to properly package lsp-plugins-1.2.17. I tried to this, but this release has also added gstreamer support to the package, but it is trying to do all sorts of odd things by writing into gstreamer's path instead of its own due to that new support.
Related issue in easyeffects: https://github.com/wwmm/easyeffects/issues/3394
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

easyeffects
easyeffects.debug
gnomeExtensions.easyeffects-preset-selector

CC maintainers: @getchoo

I kept it short and used the description to explain it to keep it under 72 characters long. I can change it if it's important to include that in the title as well.

I can change it if it's important to include that in the title as well.

Completely up to you. I think either gets the message across well enough :)

Result of nixpkgs-review pr 344971 run on aarch64-linux 1

3 packages built:

easyeffects
easyeffects.debug
gnomeExtensions.easyeffects-preset-selector


Questions on memory usage and configuration

After spending some time reading the code, it appears default behavior is to pool everything with no upper limit.  I wasn't able to find that information in the documentation.
Can you check my understanding?
MaximumFreeLargePoolBytes is never set, so the buffer gets added to the pool on dispose here.
The max potential memory usage of the large pool is

(maximumBufferSize/largeBufferMultiple) * MaximumFreeLargePoolBytes

or, stated another way:

the number of pools * MaximumFreeLargePoolBytes

If I don't call GetBuffer() and I don't call GetStream(asContiguousBuffer=true), I will only ever use small blocks.
So, if you rarely call GetBuffer(), a valid sizing strategy would be to create medium-sized small blocks (say 1/4 of the size of your expected common stream size), a large MaximumFreeSmallPoolBytes, and a MaximumFreeLargePoolBytes size of 1 byte to force unpooled large buffer allocation in the rare case you need it (if it was set to 0 large buffers would be pooled and retained indefinitely).

It's hard to set a default for such a general-purpose library--since we're talking about (usually) large amount of memory usage, the settings must be tailored to the app's circumstances.
I think your strategy would make sense--if you want to force ONLY usage of blocks, but never pool the large buffers--that's a valid strategy. It all depends on how you use the library. We've tried to make it as general-purpose as possible.
You may also want to look into the new Large-buffer allocation strategy in 1.3--it uses an exponential algorithm to decide the large pool sizes, which can lead to much smaller overall memory usage if you setup the initial values correctly. I need to work on some documentation for this, but it's easy to play around with.

Please see the updated documentation for more details. If you still have questions, let me know, and I can try to address them.


feat(electron): build

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


why is there no mention that id and partition key needs to be passed into .items(id, partitionkey)

as I've also commented here:
https://stackoverflow.com/questions/64616447/azure-cosmosdb-nodejs-entity-with-the-specified-id-does-not-exist-in-the-syste

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3033ce85-b59b-f399-8348-04d00b3a3f55
Version Independent ID: b3c2d8d0-8dca-5bc6-b12f-a93f76642047
Content: Getting started with Azure Cosmos DB Partial Document Update
Content Source: articles/cosmos-db/partial-document-update-getting-started.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @abhirockzz
Microsoft Alias: abhishgu

@blomm Thank you for the feedback. We are actively investigating and will get back to you soon.

a

@blomm This is being assigned to the content author to evaluate and update the documentation as appropriate.


STOR-880: Initial operator code

Based on GCP PD and EFS operators code.
CC @openshift/storage

/lgtm


Nanosecond-granularity modification times cause spurious rebuilds

I have a large Cargo.toml that I'm placing in a Docker container and prebuilding all the dependencies. However, at runtime there's still one crate that is rebuilt: tempfile v2.1.4. Turning on logging shows:

INFO:cargo::ops::cargo_rustc::fingerprint: fingerprint error for tempfile v2.1.4: mtime based comopnents have changed: Some(FileTime { seconds:<PHONE_NUMBER>, nanos: 0 }) != Some(FileTime { seconds:<PHONE_NUMBER>, nanos: 914840077 }), paths are "/playground/target/debug/build/tempfile-1b82f6307d61d5f0/output" and "/playground/target/debug/build/tempfile-1b82f6307d61d5f0/output"

More specifically:
Some(FileTime { seconds:<PHONE_NUMBER>, nanos: 0 })
Some(FileTime { seconds:<PHONE_NUMBER>, nanos: 914840077 })

A complete log

This may be a Docker-specific issue, but I'm unclear as to why it would only happen with the one crate. If I watch the modification times, it appears that the filesystem truncates the modification time between images:
RUN cargo build && ls --full-time /playground/target/debug/build/tempfile-1b82f6307d61d5f0/output

RUN ls --full-time /playground/target/debug/build/tempfile-1b82f6307d61d5f0/output

-rw-r--r-- 1 root root 60 2016-07-14 13:26:37.779155991 +0000 /playground/target/debug/build/tempfile-1b82f6307d61d5f0/output

-rw-r--r-- 1 root root 60 2016-07-14 13:26:37.000000000 +0000 /playground/target/debug/build/tempfile-1b82f6307d61d5f0/output

Interestingly, tempfile is the only crate that is using MtimeBased:
{
  "rustc": 0,
  "target": 0,
  "profile": 0,
  "local": {
    "variant": "MtimeBased",
    "fields": [
      [
<PHONE_NUMBER>,
        914840077
      ],
      [
        47, 112, 108, 97, 121, 103, 114, 111, 117, 110, 100, 47, 116, 97, 114,
        103, 101, 116, 47, 100, 101, 98, 117, 103, 47, 98, 117, 105, 108, 100,
        47, 116, 101, 109, 112, 102, 105, 108, 101, 45, 49, 98, 56, 50, 102,
        54, 51, 48, 55, 100, 54, 49, 100, 53, 102, 48, 47, 111, 117, 116, 112,
        117, 116
      ]
    ]
  },
  "features": "",
  "deps": [],
  "rustflags": []
}

One thing of note is that the modification checks assert that the values are equal. Many other systems test if the file is older than the fingerprint. Is that a deliberate decision, or is it possible that could be changed?

I’m not sure it is possible to do anything about this. It is generally a well known issue with timestamp-based change tracking in build systems.

I feel like I've definitely seen this before in terms of docker dropping nanosecond precision, although I can't seem to find any issues related to that. I also wouldn't mind changing the check here to be a "less than or equal to" relation rather than "equal to", as I agree it's what I would generally expect and would also naturally solve this!

One behavior I've found in rustbuild at least is:

With makefiles, I run touch -t<PHONE_NUMBER>09 src/**/*.rs && make check a lot
This does not work with Cargo, and I have no idea why.

I think it's because the mtime of a project is the maximum mtime, and if this mtime is different than what's in the metadata we rebuild, rather than if it's later we rebuild.
@shepmaster would you like to make a PR?

Chiming in that I just encountered this, and a <= check rather than == would be very useful. My particular case was sharing a cache across a CI system that uses docker, though I'm not sure whether it's docker or the caching system that's truncating the timestamps...

For those that might want a workaround, here's a jq invocation that zeroes out the nanoseconds in the fingerprint files:
jq 'if .local.variant == "MtimeBased" then .local.fields[0][1] |= 0 else . end'

I threw that in a file:
t=$(mktemp)
jq 'if .local.variant == "MtimeBased" then .local.fields[0][1] |= 0 else . end' "$1" > "$t"
mv "$t" "$1"

And then fix all the fingerprints:
find . -name '*.json' -print0 | xargs -0 -n1 /root/fix-modification-time.sh

This was fixed in https://github.com/rust-lang/cargo/pull/2880


Failed to download CelebA in Colab

🐛 Bug
It fails to download the following files img_align_celeba.zip
To Reproduce
Steps to reproduce the behavior:

from torchvision import datasets
trainset = datasets.CelebA(root='./data/', split='train', target_type="attr", transform=transform, download=True)

Error:
Traceback (most recent call last):
  File "transfer_learning.py", line 123, in <module>
    trainset = datasets.CelebA(root='./data/', split='train', transform=transform, download=True)
  File "/usr/local/lib/python3.6/dist-packages/torchvision/datasets/celeba.py", line 66, in __init__
    self.download()
  File "/usr/local/lib/python3.6/dist-packages/torchvision/datasets/celeba.py", line 120, in download
    with zipfile.ZipFile(os.path.join(self.root, self.base_folder, "img_align_celeba.zip"), "r") as f:
  File "/usr/lib/python3.6/zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Expected behavior
Environment
PyTorch version: 1.5.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.12.0

Python version: 3.6
Is CUDA available: No
CUDA runtime version: 10.1.243
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip3] numpy==1.18.5
[pip3] torch==1.5.0+cu101
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.3.1
[pip3] torchvision==0.6.0+cu101
[conda] Could not collect

Additional context

Duplicate of #1920. @fmassa I'm on it.


Fix config check.

Fixed the config check. Added a test.

Hi @zyrouge, can you please publish to NPM?

Hi @zyrouge, can you please publish to NPM?

Hi @zyrouge, can you please publish to NPM?

Done :)

Hi @zyrouge, can you please publish to NPM?

Done :)

Thank you!

Thank you!


pass width and height to LoadImage()

libjpeg and rsvg have builtin scaling that could allow for better/more efficient scaled results
http://jpegclub.org/djpeg/
http://cairographics.org/manual/cairo-Transformations.html#cairo-scale
https://developer.gnome.org/rsvg/stable/RsvgHandle.html#rsvg-handle-set-size-callback

I agree.  The primary reason I didn't do this before was that JWM used to cache the raw image data and scale that as needed.  Now that JWM loads the image each time a new size is requested, this is a lot easier.

Available as of snapshot 1343.


what is the SetDirection function , and page number account  in phpwkhtmltopdf ?

hello ,
I'm using mikehaertl phpwkhtmltopdf to produce pdf reports , but I need the function that sets the direction ( RTL ) ,
in mpdf it's like : $mpdf->SetDirectionality('rtl');
is there a similar one ?
plus , I need to add page number count on each page , how is that to be ??
many thanks in advance .
My regards

hey ,
I may wrote this in hurry , but I solved the issue of direction by adding dir="rtl" in html code , so it worked but there are some page improvements which I will work on it later ,,
now I still have the issue of adding page numbers count on footer of each page ,, if you could help me I will be so grateful ,,

Sorry, this is not a support forum but for reporting bugs. Please consult the README and the output of wkhtmltopdf -H for the available options or ask for support on the wkhtmltopdf project (we are only a PHP wrapper library here).


Simplify initial TSC structure

During yesterday's meeting, the board discussed the governance mechanics specified in the TSC charter and bylaws. The current structure places heavy emphasis on wide representation and creating many opportunities for people to serve in governance roles. These are good goals, but they also have costs — both higher process complexity and the increased coordination overhead of larger groups.
Moreover, while the board and TSC serve necessary supervisory functions, we don't want to set them up as the primary vehicles for participating in or keeping informed about the substantive activities of the BA. If we attempt to size these bodies to accommodate all of the BA's most prominent leaders, we risk a dynamic where they become the "room where it happens", limiting participation from other corners and creating further pressure to enlarge the groups.
The consensus was therefore to adjust our governance to be simpler and lighter-weight, in terms of both process and composition. It's possible we overshoot, but we'll retain the ability to add back some of these affordances should the need arise.
Here's a brief summary of the major proposed changes:

Merging the elections for member directors, at-large directors, and TSC delegates into a single process overseen by the board and managed by the ED.
Recomposing the TSC as 3 elected delegates along with one appointed delegate from each core project.
Eliminating the separate role of the RC chair and delegating its responsibilities to the TSC chair.
Specifying that the TSC chair need not undergo a formal election if they are unopposed, and that any newly-added delegates get a voice in chair selection.
Reducing the number of member directors on the board, and setting up an annual election cadence.

These require changes to both the TSC charter and to the bylaws. This PR contains the proposed charter changes.

FYI to proto-TSC members @tschneidereit @technosophos @xwang98 about these changes. Feedback welcome.

I gave this a read on Friday and have let it percolate for a few days. My first reaction was that I was not entirely comfortable with the changes. But after thinking it over, I see this as a way to streamline some of the early process.
So at this point I am okay with the proposed changes.

The next board meeting is Thursday Nov 17th, and we have an agenda item to consider adopting these charter changes and the associated bylaws changes. If that goes smoothly, we'll proceed with organizing the elections for TSC delegates and at-large director.

The board formally adopted these charter changes along with associated bylaws changes which will be posted shortly.


common_interfaces: 2.2.2-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository common_interfaces to 2.2.2-1:

upstream repository: https://github.com/ros2/common_interfaces.git
release repository: https://github.com/ros2-gbp/common_interfaces-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.3
previous version for package: 2.2.1-3

actionlib_msgs

No changes

common_interfaces

No changes

diagnostic_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

geometry_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

nav_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

sensor_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

sensor_msgs_py

No changes

shape_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

std_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
  Co-authored-by: Simon Honigmann<EMAIL_ADDRESS>* Contributors: Chris Lalancette, shonigmann

std_srvs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

stereo_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

trajectory_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

visualization_msgs
* Change index.ros.org -> docs.ros.org. (#149 <https://github.com/ros2/common_interfaces/issues/149>)
* updating quality declaration links (re: ros2/docs.ros2.org#52 <https://github.com/ros2/docs.ros2.org/issues/52>) (#145 <https://github.com/ros2/common_interfaces/issues/145>)
* Contributors: Chris Lalancette, shonigmann

Please hold for coordinated merge.


Uncaught TypeError: Illegal constructor at new WebComponent

Creating a new instance of a WebComponent throws Illegal constructor error. Given this definition:
namespace `display.components` (
    class Challenge extends WebComponent {
        constructor() {
            super();
        }

        async onConnected() {
            await super.onConnected();
        }
    }
);

There are 2 known causes:
1. The problem is that w3c components require a tag-name having a dash -, example:
2. The component is being imported multiple times maybe implicitly from another class that you may not be aware of.
SOLUTION FOR #1
This is normally handled by Arc if Class names follow a CamelCase naming convention, having at minimum 2 words, or if the class is decorated by the @tag() annotation. Here are 2 solutions:

Use CamelCase naming convention on Classes:

namespace `display.components` (
    class LevelChallenge extends WebComponent {
        constructor() {
            super();
        }

        async onConnected() {
            await super.onConnected();
        }
    }
);

Use the @tag() annotation on the class for custom tag-name:

@tag("level-challenge");
namespace `display.components` (
    class Challenge extends WebComponent {
        constructor() {
            super();
        }

        async onConnected() {
            await super.onConnected();
        }
    }
);

Above 2 solutions will produce a custom tag ( <level-challenge> ) that can be understood by the browser
in the following 2 usages:

inline html via <level-challenge></level-challenge>
JavaScript via new display.components.LevelChallenge;  //implicitly uses <level-challenge> for DOM

SOLUTION FOR #2
Check what other imports might be further importing the same component again. Possible cause of multiple import causing the error is due to Arc not checking if the component was previously defined. Possible to fix.
UPDATE 1/17/2021 - Know causes and solution for #2 no longer a problem and/or applicable. This issue has been resolved in the kernel.

UPDATE 1/17/2021 - Know causes and solution for #2 (above) no longer a problem and/or applicable. This issue has been resolved in the kernel. As for #1 (no valid tag name), this is syntax related and a w3c requirement that tags be at minimum 2 words. Developer be aware.
Closing out issue.

UPDATE 1/17/2021 - Know causes and solution for #2 (above) no longer a problem and/or applicable. This issue has been resolved in the kernel. As for #1 (no valid tag name), this is syntax related and a w3c requirement that tags be at minimum 2 words. Developer be aware.
Closing out issue.


Clear Payload when empty JWT provided

In JWT Encoder / Decoder, Clear Payload when empty JWT provided.
Pull request type

[X] Bugfix

What is the current behavior?
Until now, when the JWT was cleared, the payload was kept
#777
What is the new behavior?
Now, when an empty JWT is in the editor, because it's cleared, the payload is also cleared

Thanks both @btiteux and @veler!

Is there any additional thing to do in terms of release of documention?
Glad to help if needed


Automatically implement serde Deserialize and Serialize using the FromStr and Display impls

This might be out of scope for this crate, but it would be a cool feature to be able to automatically implement serde serialization and deserialization using the Display and FromStr implementations.
Some thing like this maybe?
#[derive(Display, FromStr, PartialEq, Debug)]
#[display(serde, style = "snake_case")]
enum MyEnum {
  VarA,
  VarB,
}

And this would implement the following type of serde Deserialize implementation
mod ... {
    struct Visitor;

    impl<'de> de::Visitor<'de> for Visitor {
        type Value = MyEnum;

        fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
            formatter.write_str($expecting)
        }

        fn visit_str<E>(self, value: &str) -> result::Result<Self::Value, E>
        where
            E: de::Error,
        {
            MyEnum::from_str(value).map_err(|e| de::Error::custom(e.to_string()))
        }
    }

    impl<'de> Deserialize<'de> for MyEnum {
        fn deserialize<D>(deserializer: D) -> result::Result<Self, D::Error>
        where
            D: Deserializer<'de>,
        {
            deserializer.deserialize_str(Visitor)
        }
    }
}

I am aware things like serde_with can do something similar, but then I have to annotate all the places I'm using it.

I also considered supporting serde, but I didn't implement it because the amount of code is almost the same even if I use serde_with as below.
use serde_with::{DeserializeFromStr, SerializeDisplay};

#[derive(Display, FromStr, PartialEq, Debug, SerializeDisplay, DeserializeFromStr)]
#[display(style = "snake_case")]
pub enum MyType {
    A,
    B,
}

Ah, I think I must have missed those derives in the docs.


Add a setAuthToken method

#118

@wuqinqiang Thank you for the PR! Could you please explain what the use case for this method is? See also similar PR recently https://github.com/sashabaranov/go-openai/pull/112

I didn't notice the DefaultConfig at first. so  I thought I couldn't set a token, emm....


Admin extensions list display

Extensions lists are not always displayed, even if multiple extensions are activated in builder publish.

Should be related to some e2e tests, when network is very slow, backend returned plugins list is not available

Extensions are not present in admin anymore


feat(RingTheory): valuation subrings are maximal local subrings

from the valuative criterion project
Co-authored-by: Yaël Dillies
Co-authored-by: Javier López-Contreras

I feel like it should be fine to import MaximalIdeal.Basic into LocalRing.RingHom.Basic but I can also inline the proof used to avoid the import.

bors d+

Thanks for the review!
bors merge


Be able to use parent() in files

I tried to extend my Javascript block on a page I use with spress but can't use parent() in that block because it throws an error.
Calling "parent" on a template that does not extend nor "use" another template is forbidden in...
It's not essential but it would be useful

Is this also the cause of not being able to overrate {% block %} in the parent template?

@knorthfield that is the reason


Add support for mutual authentication in esp_http_client

Add support for TLS mutual authentication (implemented recently in #2490) in esp_http_client.
This is very convenient for OTA updates, and has been tested with esp_https_ota and nginx.

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


Error in cognitive search with gpt-35-turbo-16k model

Getting below error
Invalid AzureCognitiveSearch configuration detected: 403 Client Error: Forbidden for url: https://mysearch.search.windows.net/indexes/mykb?api-version=2021-04-30-Preview
when i checked in cogintive search explorer url shows like
https://mysearch.search.windows.net/indexes/mykb/docs?api-version=2021-04-30-Preview

Are you getting that error when running locally or when deployed?

I am getting this error while running locally when i ask question with data.

Yes I have set these parameters correctly

GPT-65-turbo-16k is unstable for me , it was at one moment removed from some region

@akashtalole are you using an admin key for AZURE_SEARCH_KEY? A regular query key is insufficient.

Yes using admin key for search.


MBHD did not shut down cleanly

Shut down MBHD - the GUI disappears but the process (and icon in Mac OS) did not disappear
Error in log:
[2015-04-20 12:58:56,165] DEBUG [safe-fixed-core-events-0] o.m.h.c.m.WalletManager - Saving wallet with id : 3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472, height : 352919
[2015-04-20 12:58:56,464] DEBUG [Wallet autosave thread] o.m.h.c.m.WalletAutoSaveListener - Auto-saving wallet to tempFile:
'/Users/jim/Library/Application Support/MultiBitHD/mbhd-3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472/wallet5594042031802469823.tmp'
[2015-04-20 12:58:56,504] DEBUG [Wallet autosave thread] o.m.h.c.m.WalletAutoSaveListener - Wallet auto-saved to newlySavedFile:
'/Users/jim/Library/Application Support/MultiBitHD/mbhd-3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472/mbhd.wallet'
[2015-04-20 12:58:56,839] ERROR [safe-fixed-core-events-0] o.m.h.c.e.ExceptionHandler - Cannot make encrypted copy for file '/Users/jim/Library/Application Support/MultiBitHD/mbhd-3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472/mbhd.wallet' ! org.multibit.hd.core.exceptions.EncryptedFileReaderWriterException: Cannot make encrypted copy for file '/Users/jim/Library/Application Support/MultiBitHD/mbhd-3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472/mbhd.wallet'
! at org.multibit.hd.core.crypto.EncryptedFileReaderWriter.encryptAndDeleteOriginal(EncryptedFileReaderWriter.java:296) ~[multibit-hd.jar:na]
! at org.multibit.hd.core.crypto.EncryptedFileReaderWriter.makeAESEncryptedCopyAndDeleteOriginal(EncryptedFileReaderWriter.java:157) ~[multibit-hd.jar:na]
! at org.multibit.hd.core.crypto.EncryptedFileReaderWriter.makeAESEncryptedCopyAndDeleteOriginal(EncryptedFileReaderWriter.java:138) ~[multibit-hd.jar:na]
! at org.multibit.hd.core.managers.WalletManager.saveWallet(WalletManager.java:1821) ~[multibit-hd.jar:na]
SNIP
! at org.multibit.hd.core.services.CoreServices.shutdownNow(CoreServices.java:205) ~[multibit-hd.jar:na]
! at org.multibit.hd.ui.controllers.MainController.shutdownCurrentWallet(MainController.java:640) ~[multibit-hd.jar:na]
! at org.multibit.hd.ui.controllers.MainController.onShutdownEvent(MainController.java:168) ~[multibit-hd.jar:na]
SNIP
Caused by: ! java.io.FileNotFoundException: /Users/jim/Library/Application Support/MultiBitHD/mbhd-3a331738-d6f4a2ac-0ee81449-ba205c79-c1af7472/mbhd.wallet (No such file or directory)
SNIP
org.multibit.hd.core.crypto.EncryptedFileReaderWriter.encryptAndDeleteOriginal(EncryptedFileReaderWriter.java:277) ~[multibit-hd.jar:na]

Had to force quit

I think this was caused by the shutdown code invoking saveWallet whilst the WalletAutoSaveListener was also doing the same.
I have improved EncryptedFileReaderWriter#encryptAndDeleteOriginal so that:

it is synchronized
it checks the wallet file actually exists before attempting to read/encrypt/delete

It's not easily reproducible this bug so we'll just have to watch the CrashReporter for any similar reports.
Awaiting code review and closing.

Code review LGTM.
Closing.


Generalise functions for other uints

OK, so this was way more difficult than I thought, and the code's become a bit uglier as a result. Nonetheless, the functions now ought to function not just for u32s as before but also for u8s, u16s and u64s.
Admittedly, I'd like it to be refactored at some point so the code can become cleaner. For now, however, this ought to suffice. In the meantime I'll try to think if there are other optimisations we can perform.
Oh, and also: Seeing as the LUTs for each function were only being used within that one function, I took the liberty of moving them inside those functions.

Looks great again! I will have a look soon. Very handy


chore(tests): Conformance testing templates

Creating and testing a template for performing Conformance testing between OpenAI and LeapfrogAI.
Tests require the following environment variables:
LEAPFROGAI_API_URL=https://leapfrogai-api.uds.dev/openai/v1
LEAPFROGAI_API_KEY=<your API key from supabase>

In the current test set, all OpenAI tests pass.
The following LFAI tests fail:

Threads - create with message list. This requires modifications to the threads route or  CreateThreadRequest, to format the request message params into list of MessageContent types.
Vector Stores - client.beta.vector_stores.file_batches is not implemented
Vector Stores - file upload fails when file already exists:

File "/leapfrogai/.venv/lib/python3.11/site-packages/leapfrogai_api/backend/rag/index.py", line 60, in index_file                                 │
│     raise FileAlreadyIndexedError("File already indexed")

TODO:

Itemize all objects and methods for conformance testing

(LeapfrogAI API Completeness)

Add all missing objects and methods to test bed

All tests pass except the following LFAI endpoints:

test_thread - threads.create with existing messages
test_thread_file_annotations - annotation format, number of messages in runs

I'm glad to see these coming along! As a part of this PR you can probably remove the conformance testing I had started that is hanging out in the integration tests directory: https://github.com/defenseunicorns/leapfrogai/blob/b83ef045e9ea6305d811a847a2fed76ad1c4baa9/tests/integration/api/conformance_test.py

Recommend merging with main, and also @gphorvath 's comment!

Removed original conformance test file.
Merged main updates.


fix(core): show the package manager stderr when installing deps fails

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
The changes are appropriately documented (not applicable).
The changes have sufficient test coverage (not applicable).
The testsuite passes successfully on my local machine (not applicable).

Summarize your changes:
We used to have this when --verbose was set, but this should avoid some unnecessary GitHub issues
when it's always part of the exception.
The code change itself is based on looking at the cross-spawn-promise usage.

The test failures are unrelated. I might be able to look into fixing them later tonight, but no guarantees. (Something about parse-author missing types...)


hamburger blocks footer link

make hamburger a tad smaller, center align link until sm breakpoint bump bottom padding accommodate hamburger.

fixed by #116


Individual Study Plan - Brian Zhang

Score: /5 Graded by Ritvik Keerthi
Github Page Link: Study Plan
Practice Quiz 1 (41/50): Corrections
Practice Quiz 2 (45/50): Corrections
Study Reflection:
I did better on the second test compared to the first as I spent more time studying on Wednesday compared to Monday. This is because seeing my score on the first practice quiz made me realize that I needed to study more than I thought. I then used the college board materials and the questions on the first quiz to help me study for quiz 2.
Create Task
Individual Github Page: Create Task
Runtime: Replit
Video: Youtube
Written Response: Page

Reviewed By: Ritvik Keerthi
TOTAL SCORE: 4.8/5
Start review ticket with study plan and study reflection for week, due EOD Monday 4/18

Study Plan is very clearly documented on Individual Github Page, as well as has activities for every day from Monday to Friday, listed for all days. Clearly on review ticket, with tangible linked. Tangible [SCORE: 1/1]

Finals-Quiz1 score/50 and corrections

Quiz 1 score clearly documented in review ticket, with corrections obviously linked onto individual page, as well as individual review ticket. Score of 41/50 on review ticket. Quiz 1 corrections have screenshots of questions, with explanations of answers on the github individual page. There could be more explanation and expression of ideas in quiz reflection however. [SCORE: 0.9/1] Tangible

Finals-Quiz2 score/50 and corrections

Quiz 2 score clearly documented in review ticket, with corrections obviously linked onto individual page, as well as individual review ticket. Score of 45/50 on review ticket. Quiz 2 corrections have screenshots of questions, with explanations of answers on the github individual page. There could be more explanation and expression of ideas in quiz reflection however. [SCORE" 0.9/1] Tangible

Create Task code/runtime and 1 min video are reviewed by another person, you may request Teacher review as time permits

Create Task fully documented with runtime, video, and written responses all in full detail. Looks like a very good Create Task and has everything documented well. [SCORE: 1/1] Tangible


Checkout & Redeem

Points Redemption Implementation:

Implement a function that allows users to redeem their points for specified rewards.

Define various rewards and their corresponding point costs within the contract.

Deduct the correct number of points from the user's balance upon successful redemption.

Ensure users have sufficient points for the redemption.

Reward Management:

Admin should be able to add, update, and remove rewards and their point costs.

Ensure rewards are correctly managed and retrievable.

Smart Contract Code:

Implement the points redemption functionality using Solidity.

Ensure the points balance is updated correctly and securely upon redemption.

Implement necessary events to log successful redemptions.

Security and Validations:

Validate that users cannot redeem more points than they have.

Ensure the integrity of the points balance and reward distribution.

Prevent re-entrancy attacks and other potential security vulnerabilities.

Solidity Code Example:

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract EventAmbassadorQuest {

    struct Quest {

        uint256 eventId;

        uint256 startDate;

        uint256 endDate;

        uint256 requiredInteractions;

        uint256 rewardPoints;

        bool isCompleted;

    }

    struct User {

        uint256 points;

        uint256 completedQuests;

        mapping(uint256 => bool) questCompleted;

    }

    struct Reward {

        string name;

        uint256 pointCost;

        bool isAvailable;

    }

    address public admin;

    mapping(address => User) public users;

    mapping(uint256 => Quest) public quests;

    mapping(uint256 => Reward) public rewards;

    address[] public userAddresses;

    event QuestCompleted(address indexed user, uint256 indexed questId, uint256 pointsAwarded);

    event RewardRedeemed(address indexed user, uint256 indexed rewardId, string rewardName);

    event RewardAdded(uint256 indexed rewardId, string rewardName, uint256 pointCost);

    event RewardUpdated(uint256 indexed rewardId, string rewardName, uint256 pointCost);

    event RewardRemoved(uint256 indexed rewardId);

    modifier onlyAdmin() {

        require(msg.sender == admin, "Only admin can perform this action");

        _;

    }

    constructor() {

        admin = msg.sender;

    }

    function createQuest(

        uint256 questId,

        uint256 eventId,

        uint256 startDate,

        uint256 endDate,

        uint256 requiredInteractions,

        uint256 rewardPoints

    ) external onlyAdmin {

        quests[questId] = Quest(eventId, startDate, endDate, requiredInteractions, rewardPoints, false);

    }

    function registerUser(address user) external onlyAdmin {

        if (users[user].completedQuests == 0) {

            userAddresses.push(user);

        }

    }

    function completeQuest(address user, uint256 questId) external onlyAdmin {

        require(!quests[questId].isCompleted, "Quest already completed");

        require(!users[user].questCompleted[questId], "User already completed this quest");

        users[user].points += quests[questId].rewardPoints;

        users[user].completedQuests += 1;

        users[user].questCompleted[questId] = true;

        quests[questId].isCompleted = true;

        emit QuestCompleted(user, questId, quests[questId].rewardPoints);

    }

    function addReward(uint256 rewardId, string memory name, uint256 pointCost) external onlyAdmin {

        rewards[rewardId] = Reward(name, pointCost, true);

        emit RewardAdded(rewardId, name, pointCost);

    }

    function updateReward(uint256 rewardId, string memory name, uint256 pointCost) external onlyAdmin {

        require(rewards[rewardId].isAvailable, "Reward does not exist");

        rewards[rewardId] = Reward(name, pointCost, true);

        emit RewardUpdated(rewardId, name, pointCost);

    }

    function removeReward(uint256 rewardId) external onlyAdmin {

        require(rewards[rewardId].isAvailable, "Reward does not exist");

        rewards[rewardId].isAvailable = false;

        emit RewardRemoved(rewardId);

    }

    function redeemReward(uint256 rewardId) external {

        require(rewards[rewardId].isAvailable, "Reward not available");

        require(users[msg.sender].points >= rewards[rewardId].pointCost, "Insufficient points");

        users[msg.sender].points -= rewards[rewardId].pointCost;

        emit RewardRedeemed(msg.sender, rewardId, rewards[rewardId].name);

    }

    function getLeaderboard(uint256 topN) external view returns (address[] memory, uint256[] memory) {

        require(topN <= userAddresses.length, "Requested topN exceeds number of users");

        address[] memory topUsers = new address[](topN);

        uint256[] memory topPoints = new uint256[](topN);

        for (uint256 i = 0; i < userAddresses.length; i++) {

            for (uint256 j = i + 1; j < userAddresses.length; j++) {

                if (users[userAddresses[j]].points > users[userAddresses[i]].points) {

                    address tempAddress = userAddresses[i];

                    userAddresses[i] = userAddresses[j];

                    userAddresses[j] = tempAddress;

                }

            }

        }

        for (uint256 i = 0; i < topN; i++) {

            topUsers[i] = userAddresses[i];

            topPoints[i] = users[userAddresses[i]].points;

        }

        return (topUsers, topPoints);

    }

}

Testing:

Ensure that users can redeem points for rewards correctly.

Verify that the points balance is updated accurately upon redemption.

Test admin functions for adding, updating, and removing rewards.

Validate that users cannot redeem rewards if they lack sufficient points.

Test edge cases such as attempting to redeem unavailable rewards and ensuring no points are deducted in such cases.

points: 1, 2, 3, 5, 8, 13, 21
@russlive215
@Fr0z0n3
@noireconnect2024
@wvwatson
@tierra-d
points:


could not connect to Central search. Analysis failed. version 3.1.0

P[ERROR] Could not connect to Central search. Analysis failed.
java.io.IOException: Finally failed connecting to Central search. Giving up after 5 tries.
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.fetchMavenArtifacts(CentralAnalyzer.java:288)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.analyzeDependency(CentralAnalyzer.java:198)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:136)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name
matching search.maven.org found.
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at org.owasp.dependencycheck.data.central.CentralSearch.searchSha1(CentralSearch.java:140)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.fetchMavenArtifacts(CentralAnalyzer.java:266)
Any Help Appreciated ,

@sinvinsin I apologize - I mixed your issue with a different issue with Central. It appears that you are facing an issue with the TLS connection as the above stack trace has:
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

It appears your keystore does not contain the necessary certs to successfully connect to Central. Take a look at this repo: https://github.com/jeremylong/InstallCert. It is a cloned repo that provides a tool to install the necessary certificates in a Java keystore.  Does that solve the problem?

@jeremylong, I'm seeing this same issue. I checked the readme instructions for InstallCert but not sure what is the access server for Central:
Access server, and retrieve certificate (accept default certificate 1)
java InstallCert [host]:[port]
Please advise. Thank you!

The base url for Central can be found here:
https://github.com/jeremylong/DependencyCheck/blob/aed1ec976fc0b28e1313a1a4ba5bdb25a70a8d50/core/src/main/resources/dependencycheck.properties#L84
So the install cert would be:
java InstallCert search.maven.org:443


Documentation: UPDATE Of Contributing.md #138

Hello ! @ratnesh-maurya,
I've made some enhancements to the project structure, including a dedicated section for project organization, a detailed pull request process, and clearer guidelines for issue reporting. I hope you find these changes beneficial.
Could you please add the labels "gesso-ext" and "hacktoberfest" and merge the pull request? Thank you!

Busy in some work will review it Tomorrow

Please add the labels . Thankyou !


Enhancement Send message to TG via console command

It would be very cool (and very useful) if there was an option to send a message from the server console to the linked Telegram chat (the same one where all messages are received).
For example, using /tgbridge send <Message to be sent to TG>.
Maybe I haven't looked well enough, but so far I haven't seen any plugin of this kind with such a feature.

I'm curious about what your use case for this is)

As an example, using it as scheduled commands.
In my case, it could be used as an additional notification before restarting the server.
Other use cases could include sending messages from other plugins that allow executing commands as console (MyCommand, event plugins, etc.).
For instance, creating tickets through MyCommand and then sending a message to Telegram.
If the sending command includes specifying the channel ID and group ID, it would further expand the possibilities, leaving room for imagination.


SingleTargetAnnotation is constrained to be subtype of deprecated Named

Type of issue:
Correctness issue
Description
Named is deprecated.
SingleTargetAnnotation is parmeterized to be [T <: Named].
I believe this should be changed to [T <: Target]
Also the scaladoc for NoTargetAnnotation should have it's reference to Named fixed.
Impact
No functional change. Just making recent API additions consistent

Not so sure this has no impact on existing code.
We currently have: sealed trait Target extends Named
As far as I understood when dealing with Target, Named is the legacy Target and is still in use in numerous place.
Most notably when annotating a chisel node I had to use the following:
case class MyAnnotation(target: InstanceId)
    extends ChiselAnnotation {
  def toFirrtl = MyFirAnnotation(target.toNamed)
}

Notice the target.toNamed: it would not work with SingleTargetAnnotation[T <: Target].
The point is that all legacy constructs using Named should migrate to Target including the InstanceId used in chisel.
trait InstanceId {
  def instanceName: String
  def pathName: String
  def parentPathName: String
  def parentModName: String
  /** Returns a FIRRTL Named that refers to this object in the elaborated hardware graph */
  def toNamed: Named
}

I far as I search for def toNamed in chisel source it would not be that difficult to upgrade its few but I am afraid that some side pieces of code would get broken along the way...
So although it is highly desirable, I guess the migration will take quite a while.
My conclusion is that it is not (currently) a firrtl issue but a chisel issue (and potentially other front-ends issue?)
I would label this issue low priority and API Modification.

Pr #1122 attempts to implement the conversion from Named to Target but has brought to light several issues:

serialization of annotations: we may need to support the old Named serialization since clients may have existing annotation files they want to use and existing ScalaTests use this (Named) format for annotation resources. This is easy,
DedupModules.buildRTLTags() generates module2Annotations by calling Annotation.getTargets() which returns Annotation[Target]-typed annotations of which there is currently only one: DontTouchAnnotation (the rest are Annotation[Named]). This logic breaks if every Annotation is of type Annotation[Target]. This may be harder, depending on the intended use of module2Annotations.


Indent(Tab)/Unindent(Shift + Tab) multiple lines based on selection

This pull request resolve issue https://github.com/kazzkiq/CodeFlask.js/issues/12 , and add multi-line indent feature to CodeFlask

Thanks!


osu-lazer{,-bin}: 2024.1009.1 -> 2024.1115.3

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

test needed: I cannot start osu-lazer (not -bin) on my laptop

osu-lazer-bin fails:

osu.AppImage> trying https://github.com/ppy/osu/releases/download/2024.1115.1/osu.AppImage
osu.AppImage>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
osu.AppImage>                                  Dload  Upload   Total   Spent    Left  Speed
osu.AppImage>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
osu.AppImage> curl: (22) The requested URL returned error: 404
osu.AppImage> error: cannot download osu.AppImage from any mirror

There's no AppImage in the release, maybe after the last release they got fed up with it and are no longer distributing it?
Also I'm curious how is osu-lazer running with SDL3 already. From the logs I see "SDL3 Initialized" and we have ppy.SDL3-CS nuget package, but there's only an SDL2 package in package.nix.

osu.AppImage> curl: (22) The requested URL returned error: 404

I did successfully built osu-lazer-bin before opening this PR, perhaps upstream removed the AppImage?
/nix/store/9qpc5n4z9a1m2343f7zzm51w0mc3zdpp-osu-lazer-bin-2024.1115.1

osu.AppImage> curl: (22) The requested URL returned error: 404

I did successfully built osu-lazer-bin before opening this PR, perhaps upstream removed the AppImage?
$ nix-build -A osu-lazer-bin
/nix/store/9qpc5n4z9a1m2343f7zzm51w0mc3zdpp-osu-lazer-bin-2024.1115.1

$ nix-build -A osu-lazer-bin.src
/nix/store/m6r12jxf1wppva2jsmns2791yjqrch14-osu.AppImage

If this is the case they probably found some issue in this release. Maybe it is better to hold up the update until upstream release a new version.

I did successfully built osu-lazer-bin before opening this PR, perhaps upstream removed the AppImage?

Yes, I just found out they removed it like an hour ago (partly) due to Velopack issues, but it shouldn't affect us as we disabled auto updates: https://discord.com/channels/188630481301012481/188630652340404224/1306977967444070500
Even after they release it, I think we should wait a few hours before merging in case they take it down again (last release that happened 3 times)

2024.1115.2 is out

Am I insane or the .appimage on the new release is on 2024.1009.1?

Am I insane or the .appimage on the new release is on 2024.1009.1?

@Guanran928 they couldn't fix the latest AppImage so they uploaded it from an older version

i’m going to add the app image from 1009 to the latest release
i’ve gotten three emails so far saying it’s missing
it 404s from the site

peppy, https://discord.com/channels/188630481301012481/188630652340404224/1307061352514326690

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 356157

x86_64-linux

:white_check_mark: 2 packages built:

osu-lazer
osu-lazer-bin

I just tested this PR and they got rid of the "newer version available" message.

Can you please squash the commits that update the same package? For example your commits could look like:

osu-lazer: 2024.1009.1 -> 2024.1115.3
osu-lazer-bin: 2024.1009.1 -> 2024.1115.3
osu-lazer{,-bin}: add Guanran928 as maintainer

Can you please squash the commits

Oops, didn't saw that...
Ofborg had been pretty slow recently, I think squashing it right now would cause Ofborg to re-eval this PR again.


ULP component: Fix FSM and RISCV being mutually exclusive at compile time

This is a fix for https://github.com/espressif/esp-idf/issues/12999, that allows both the FSM and RISCV ULP to be enabled simultaneously at compile time.
Should this PR get merged, this discussion https://github.com/adafruit/circuitpython/pull/9277/ and this issue https://github.com/adafruit/circuitpython/issues/8770 could be resolved.

It would be good to propose this in https://github.com/espressif/esp-idf as a solution to espressif#12999. That might encourage some movement on the upstream issue.

Yes, will do. I just assumed things might move faster here than upstream.

This makes sense to me. Would it make sense to add a help line warning that only one at a time can be used a run-time? But I'm not sure if/when the help line will show up.

Good idea! I made a suggestion for the help line. It shows up in menuconfig when pressing ? on the option.


All MySQL download URLs are failing

Hi,
When trying to set it up for the first time, I checked the downloaded gzip, changed the extension to HTML and it shows a Permanently Moved error with a link.
I think the download URLs need to be updated or else it will fail, or give instructions to manually setup if needed.
My machine is a MacOS Sierra, and selected both 5.6 and 5.7 for the test setup.
Thanks

hey guys... I want to do a PR for updating the configuration.
Can I please get contributor permissions?
Thanks!

@raulgd which version are you using ? we fixed this (https redirect) in the last version

2.1.1 which seems to be the latest.
Using this on my gradle script testCompile "com.wix:wix-embedded-mysql:2.1.1"

The fix is a one-liner for class DownloadConfigBuilder.java, did this on line 14
downloadPath().setDefault(new DownloadPath("https://cdn.mysql.com/archives/"));

2.1.4 is the latest
https was fixed 2.1.2, please upgrade and let us know if you still encounter any issues ?

Oh, sorry, 2.1.2 was what appeared to me from maven central, perhaps my index wasn't updated correctly, let me try it out right now

Yeah, version 2.1.4 worked! wow thanks!

Closing issue :)