UBSAN violation in ZlibCompressorImplTest.CallingChecksum

Plumbing ASAN/UBSAN down to zlib in #6061 yields traces such as:
[ RUN      ] ZlibCompressorImplTest.CallingChecksum
/build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy/external/com_github_madler_zlib/trees.c:873:42: runtime error: null pointer passed as argument 2, which is declared to never be null
/usr/include/string.h:43:28: note: nonnull attribute specified here
    #0 0x1b71dd9 in _tr_stored_block /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy/external/com_github_madler_zlib/trees.c:873:5
    #1 0x1b4dc71 in deflate /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy/external/com_github_madler_zlib/deflate.c:1025:17
    #2 0x1b2deb1 in Envoy::Compressor::ZlibCompressorImpl::deflateNext(long) /proc/self/cwd/source/common/compressor/zlib_compressor_impl.cc:59:22
    #3 0x1b2da8f in Envoy::Compressor::ZlibCompressorImpl::process(Envoy::Buffer::Instance&, long) /proc/self/cwd/source/common/compressor/zlib_compressor_impl.cc:78:10
    #4 0x1b2d8d4 in Envoy::Compressor::ZlibCompressorImpl::compress(Envoy::Buffer::Instance&, Envoy::Compressor::State) /proc/self/cwd/source/common/compressor/zlib_compressor_impl.cc:55:3
    #5 0x1a6faf0 in Envoy::Compressor::(anonymous namespace)::ZlibCompressorImplTester::compressThenFlush(Envoy::Buffer::OwnedImpl&) /proc/self/cwd/test/common/compressor/zlib_compressor_impl_test.cc:75:55
    #6 0x1a7075b in Envoy::Compressor::(anonymous namespace)::ZlibCompressorImplTest_CallingChecksum_Test::TestBody() /proc/self/cwd/test/common/compressor/zlib_compressor_impl_test.cc:132:14
    #7 0x478273e in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2424:10
    #8 0x473ceff in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2460:14
    #9 0x46f438b in testing::Test::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2499:5
    #10 0x46f6b56 in testing::TestInfo::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2675:11
    #11 0x46f86a0 in testing::TestSuite::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2803:28
    #12 0x472012e in testing::internal::UnitTestImpl::RunAllTests() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:5241:44
    #13 0x479254e in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2424:10
    #14 0x474704f in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:2460:14
    #15 0x471f116 in testing::UnitTest::Run() /proc/self/cwd/external/com_google_googletest/googletest/src/gtest.cc:4843:10
    #16 0x1b94866 in RUN_ALL_TESTS() /proc/self/cwd/external/com_google_googletest/googletest/include/gtest/gtest.h:2499:46
    #17 0x1b93a5e in Envoy::TestRunner::RunTests(int, char**) /proc/self/cwd/./test/test_runner.h:57:12
    #18 0x1b918b5 in main /proc/self/cwd/test/main.cc:39:10
    #19 0x7f49e863282f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
    #20 0x1991028 in _start (/build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy/bazel-out/k8-dbg/bin/test/common/compressor/compressor_test+0x1991028)

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy/external/com_github_madler_zlib/trees.c:873:42 in

Weirdly, in https://circleci.com/gh/envoyproxy/envoy/172899?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link, this didn't seem to cause any test failure, the respective test silently passed.

Now just have to wait for the next zlib release https://github.com/madler/zlib/pull/420#issuecomment-503283070

The last zlib release was January 15, 2017 so you might be waiting for a while @derekargueta. If you really need this you may have to pull in a zlib development branch commit vs. a release - https://github.com/madler/zlib/commit/723e928b84b0adac84cc11ec5c075a45e1a79903


explicit run-addon-operator-manager target to show it in make help …

…and to autocomplete

https://user-images.githubusercontent.com/5539202/124138472-f7a21700-da86-11eb-99de-cedcfc19ad80.mp4
What do you think?
Signed-off-by: Josh Gwosdz<EMAIL_ADDRESS>

Description should probably be
## Run cmd/addon-operator-manager against $KUBECONFIG.

/lgtm

@sugarraysam i cleaned up the target a little bit and marked the PR as ready - can you re-review pls? <3


EOS-22484: RC can't be re-elected after hctl shutdown

Jira issue: EOS-22484
As long as Consul is not stopped anymore during hctl shutdown, Consul
Session may be kept alive even if Hare cluster is down. The Consul
Session mechanism is used for RC leader election. In the described
situation in newly started Hare cluster there is no Hax process which
can consider itself as running at RC leader. In particular, this means
that there is no Hax process that would keep updating FS statistics in Consul KV.
When Consul sessions are destructed?

When Consul cluster is restarted. It was the case before --skip-consul-stop flag was added.
When any the checks registered as a part of contract of this Session start failing.
In case of RC leader session the contract is the health state of confd and hax processes.
NOTE: only "critical" state is a reason for session destruction

Consul monitors the health state of Hare component processes by means of
check-service script. It is written in a way so that if a systemd service
was stopped gracefully, its status will be "warning" (but not "critical").
Solution:
When hax starts, it should look for a stale RC leader session and
destroy it.
Signed-off-by: Konstantin Nekrasov<EMAIL_ADDRESS>

@knekrasov , kindly address the codacy issue regarding docstring.

kindly address the codacy issue regarding docstring.

@mssawant Sorry, it seems like it is impossible. Codacy configuration seems to be inconsistent. When I fix D212 warning, D213 is triggered and vice versa.
Rules D212 and D213 are mutually exclusive, but both of them seem to be enabled. This is similar to https://github.com/PyCQA/pydocstyle/issues/475
Just please have a look at these screenshots:

Deployment on 3N VM passed, verified the JIRA and updated JIRA with detailed testing logs @mssawant @knekrasov

@mssawant @knekrasov - JIRA logged against RE team - https://jts.seagate.com/browse/EOS-23252 for codacy issue.


[Feature Request] Add GitHub link to credential modal & dashboard

Describe the feature you'd like to request
Can we add a GitHub link/button both to the Credentials modal & somewhere on the dashboard?
In the Credentials modal there should be a button to get to the GitHub repo, but also an area some text to send people to the README. Right now, if you land on the page & you don't already know what you're doing, you get stuck in this modal being asked for a token, but there's nothing saying what the token is, how to get it, why you should care, etc. The README for this repo is the best place to find that information atm, so we should try to guide a user to this repo ("Not sure what to do next? The README for this Starter Kit explains how to get started" or something like this)
On the Dashboard, we should have a button that takes the user to the repo. We will have a live demo running, so we want users to be able to easily find the repo from the live demo.
Describe the solution you'd like
GitHub button
Describe alternatives you've considered
No response

Is there any way to populate the graphs to see how this would look? I created an account in tiny bird and a dashboard there too to be able to get past the log-in screen. But my charts are all empty. Pressed the "Generate data" button, but nothing happened.

@joaqo seems there is a big with the generator embedded in the UI.
You should be able to go to the Mockingbird UI (this is a UI for the data generator) https://mockingbird.tinybird.co/?schema=Log+Analytics+Starter+Kit&host=eu_gcp&token=&datasource=logs&eps=1 and generate some fake data for your charts. Make sure to hit the Tinybird settings in the top right, and add your Auth Token & select the correct region (EU/US).
I've raised an issue to fix the data generator embedded in the dashboard https://github.com/tinybirdco/log-analytics-starter-kit/issues/32

Hey, thanks a lot for replying.  Still, for some reason this log analytics repo is not displaying them when I run it locally. I think I'm setting the token and everything else correctly, so not sure what the issue is.

@joaqo can you try something for me - using the date picker, can you select a custom date range that covers 3 days, yesterday, today, and tomorrow (i.e. if today is the 12th, then pick 11, 12 & 13) and see if it displays todays data?

I found the issue! Turns out I had selected the wrong server. I knew I had to select the same server I selected on my tiny bird account, but it wasn't clear that the Host menu on the initial screen was actually selecting Europe vs USA. This is what you're prompted with:

It does say us in the server name, but its different from how its presented on the tiny bird site (Europe vs USA), so maybe that could be something to improve.
Anyways, thanks for the great repo!

@joaqo Thanks for the feedback - we'll look into the date picker some more!


Spaces inside JSX curly braces are removed

I use to write my JSX like this

  Bla bla bla

Note the spaces inside the className curly braces.
But it's formatted like this

  Bla bla bla

I find reading this with spaces easier. So, would that be possible to keep spaces if there are any ?

Is discussion about personal preference valuable? Just feels like bikeshedding.
The airbnb style guide prefers no spaces: https://github.com/airbnb/javascript/tree/master/react#spacing
The shopify style guide prefers no spaces:
https://github.com/Shopify/javascript/tree/master/react#2.3
The react docs don't use spaces:
https://facebook.github.io/react/docs/conditional-rendering.html
I feel like I see no spaces more commonly in community code than the reverse.

Yeah, for questions like this, we go with what we feel the majority of users expect. As noted in several other places, particularly https://github.com/jlongster/prettier/issues/40, this project is not aiming for people who want granular control over everything, because we believe it really doesn't matter. Whenever I find that I prefer one style but am forced to use another, within weeks I prefer the other style because that's what my brain is used to seeing. This is all subjective and we want to build a tool that helps people converge on a single(-ish) style that just works. (The "ish" is because we do have a few basic options)

@suchipi all the example you posted dont use space, but i have a strong feeling that this one does recommend: https://vuejs.org/v2/style-guide/#Quoted-attribute-values-strongly-recommended , i'm just writing my first app using jsx and this syntax className={className} is starting to hurt my eyes.... any change of at least having an option to enable it?


HTTP Error 502.5 - Process Failure

Hi! I have a .net core 2.0 app I try to publish to IIS 10
I have my webconfig like this
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\Core.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
</configuration>

I review and I have the dotnet.exe in this path, if I try in console dotnet Core.dll runs correctly in localhost:5000 but in IIS I geth this error
HTTP Error 502.5 - Process Failure
and in the event viewer I get this error
Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical root  'C:\inetpub\wwwroot' failed to start process with commandline ' ', ErrorCode =  '0x80070057 : 0.
why doesn't set anything in the comandline?

How are you publishing the application to IIS? Through Visual studio, commandline, etc? Based on that scenario, check our sample web.config as an example.

with visual studio with the folder path option I Have the webconfig like the sample and withd comand line runs correctly the user of the application pool and iste in iis has privileges

I had the same issue today. I found out, that my Azure Web App automatically updated the .net Core runtime to 2.0.3 so my 2.0.0 deployment didn't work anymore.
I had to update my local installed .net Core SDK to 2.0.3 too (https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.3.md)
I also updated the NuGet Package "Microsoft.AspNetCore.All" to 2.0.3
Hope this helps :)
Question to ASP.net Core Team: Will future updates be backwards compatible?

hi thank you I reinstall iis and works but today I have the same issue I update the project last week and yesterday the deploy has an error with the .net core version maybe in the future the team can works and don't mark a 503 error by the exact version of the .net core

@davidfowl

I ran through the same issue today and have fixed by changing web.config file.
https://stackoverflow.com/questions/38624453/asp-net-core-1-0-on-iis-error-502-5/48761913#48761913

I have the same issue when trying to deploy to a windows server 2008 machine, I have another cause of the error:

This will only be apparent when you manually try to run "dotnet" on the server machine.
(and maybe with the hint in the event log: "failed to start process with commandline 'dotnet'...")
After reading, it seems that something called Universal C Runtime needs to be installed on the machine.

I never was able to solve it on a move from 2.0.2 to 2.0.5 The only way I got out was to delete the account on azure and reinstall. And that took most of a day for one reason or another

Download .net core latest version and install this. Hope solving your problem.

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Update localStorage timers for new leveldb impl

Update the code that checks for localStorage size to take new levelDB implementation into account.

Decided to leave as is because the new format does not have a clear file name where the data goes. Instead we can use the size data as a hint if the levelDB migration was successful (-1) or not (>0).


Docs: Document 5037

Hey, and big thanks for sorbet! 👋
I'm experimenting with it in @Datadog's ddtrace gem and got a bit confused by error 5037 as I really couldn't see what was wrong.
As I was searching for older issues if anyone had reported this, it turns out that they did, multiple times (sorbet#3888, sorbet#2378, sorbet#1443). So I decided to sent a PR your way to add this to the main error documentation, so that others in the future don't lose time on this.
Hope this is reasonable, and let me know your feedback :)

Would you mind adding docs for any/all of these cases too:

also mentioning the case where the error is straightforward because there was a typo in the method name
mentioning the case where it can’t find the method because one method is a Singleton class method and one is an instance method
providing code snippets, so that people can see at a glance whether the error is actually relevant to the code they’re working with

thanks!

Thanks for the feedback. I hadn't considered that simple typos could of course trigger the same issue. I copied over a couple of items from error #7003 which I think generally talk about the case of "the method doesn't actually exist in the current class, or it exists and Sorbet can't see it".
I then added a code snippet for the aliasing from a parent class.
I did not explicitly call out the singleton example you suggested @jez , as I think the generic text I copied from #7003 already would cover all such cases, but let me know if you'd still prefer that I explicitly spell out that one case.

Hey! Anything missing on this one?


book: Link snippets to code examples on github

Also adds css so the links inherit the color
CC: @ebassi

Thanks, this is going to be very helpful!


pythonPackages.connexion

Motivation for this change
add the connexion library and dependencies to build nice Flask-API's with Nix
Things done
added clickclick, openapi-spec-validator, connexion

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@worldofpeace thanks for your feedback! I've switched the packages to fetch from GitHub. In some cases the tests fail, so I've disabled them - but they can be executed now. I've also updated the wrong link and added another optional dependency for connexion.

@worldofpeace thanks for your helpful feedback! I really appreciate it =)
Thanks for the tip with pytest -k, that worked out. I've updated the packages.

@elohmeier I'm seeing that they're some deps that are already in propagatedBuildInputs that are needed for testing that aren't in checkInputs in connexion.
I'm not sure if that was on purpose, but they should be declared as checkInputs if we need them for tests.
Also I think we're missing decorator.

https://github.com/NixOS/nixpkgs/pull/52580#discussion_r243776341
I've modified that part as you suggested. However there are a lot of unit tests failing if I'm trying to build it for Python 2.7 or Python 3.6. Should we disable the tests for that versions?

Can you paste the logs somewhere after this round of review?
Perhaps we're missing something.

Are there any updates on this pull request, please?

@worldofpeace Thanks for your feedback, I've updated my changes accordingly. I've also updated to the latest package versions.

@elohmeier, we've actually undergone an API change for python packaging since this change was authored.
We have a setup hook for running pytest

https://github.com/NixOS/nixpkgs/commit/f7e28bf5d8181926e600a222cb70180519d09726

so wherever a package uses pytest you should migrate like this
checkInputs = [
  pytestCheckHook # you should drop pytest from checkInputs as well
];

disabledTests = [
  "some_disabled_test_case"
];

@worldofpeace Thanks for the review and info, I've switched to the new API where possible.
I've also introduced a patch to deal with the aiohttp problem from upstream, which led to no regression in the enabled tests.

@worldofpeace Thanks for the review and info, I've switched to the new API where possible.
I've also introduced a patch to deal with the aiohttp problem from upstream, which led to no regression in the enabled tests.

Great, I'm going to build everything locally. Pretty sure we should be good to merge :+1:

Thanks @elohmeier :sparkles:


Warning when running out of dev

Is this related to the debugging? Is this expected?
➜  vscode git:(master) ./scripts/code.sh
[14339:0814/105534.059146:INFO:CONSOLE(231)] "%c[Extension Host] %cdebugger listening on port 5870", source: file:///home/joao/Work/vscode/out/vs/workbench/electron-browser/extensionHost.js (231)
[14339:0814/105534.246714:INFO:CONSOLE(159)] "Extension Host", source: file:///home/joao/Work/vscode/out/vs/workbench/electron-browser/extensionHost.js (159)
[14339:0814/105534.246806:INFO:CONSOLE(160)] "%cDebugger listening on port 5870.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
    chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=<IP_ADDRESS>:5870/48cfe639-8e82-4c4c-8f99-3ccf7994469b
", source: file:///home/joao/Work/vscode/out/vs/workbench/electron-browser/extensionHost.js (160)
[14339:0814/105534.246984:INFO:CONSOLE(161)] "console.groupEnd", source: file:///home/joao/Work/vscode/out/vs/workbench/electron-browser/extensionHost.js (161)

Yes, we always start the extensionhost in debug mode when running out of sources - I guess so you can attach later if needed. And it insists on printing that charming message.


Marquee on game select.

Is your feature request related to a problem? Please describe.
Not really a problem, but would be lovely after selecting a game, the related marquee is displayed fullscreen.
Describe the solution you'd like
When the game is selected and loaded the fullscreen can display related marquee till the mouse pointer is clicked on it in which case it will hide the marquee and how the webmenu once again.
Describe alternatives you've considered
Really nothing
Additional context
Something like this.
https://www.youtube.com/watch?v=DTg7XHteBTE

This is REALLY cool!
The implementation is quite easy as well.
With a quick search I've found some good sources of marquees and other arcade artwork.  Do you know if there is a public database of those kind of images?

Not sure where to get HD Marquee for all games, but here are a few: https://www.arcadeartwork.org/index.php?/category/37
MAME marquees are very low quality.
I am currently using my phone - maybe if we can choose between marquee and arcade poster / snapshots  since marquees wont look that good on a phone.


plot improvements

Plot MCC and more
Refactor plot_threshold_vs_track_info into a class

Codecov Report
Patch coverage: 25.80% and project coverage change: -0.36 :warning:

Comparison is base (d1cd3fc) 69.46% compared to head (9cb3272) 69.11%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #337      +/-   ##
==========================================
- Coverage   69.46%   69.11%   -0.36%
==========================================
  Files          48       48
  Lines        2682     2713      +31
==========================================
+ Hits         1863     1875      +12
- Misses        819      838      +19

Impacted Files
Coverage Δ

src/gnn_tracking/analysis/edge_classification.py
0.00% <0.00%> (ø)

src/gnn_tracking/utils/dictionaries.py
0.00% <0.00%> (ø)

src/gnn_tracking/metrics/binary_classification.py
97.00% <100.00%> (+0.40%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add support for external renders for code blocks

Just as you can specify an external render for a specific file, it would be cool to have an external render for a specific code block. This should be handled backend and the data feed to the external script would be the content of the code block instead of a complete file.
Code highligtning is currently handled frontend by javascript. Placing the external tool support in the backend would allow more possibilities on what is possible to do as it is not requiring javascript.
It could be an option whether the output shall still be in a code block.
A specific use case for this is plantuml (#3902). So with below code block everything from (including) @startuml to @enduml would be sent to the script that can generate a html code with an inline image of the uml.
```plantuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml
````

So goldmark has a chroma extension which behaves exactly like that

Related: https://github.com/go-gitea/gitea/issues/7729

So goldmark has a chroma extension which behaves exactly like that

Maybe we could enable it now since #12047 merged.

github seems to be planning to add support for mermaid in is markdown rendering. Would be great if gitea could match this, not because I personally have a use in mind but because it would keep compatability for those wanting to migrate to gitea from guthub.

mermaid has been supported.

mermaid got in and if you need some extra renderer you can inject custom JS to do so

@silverwind best would be to open a new issue and link to the upstream issue

Yeah maybe once I have a more concrete Idea. I think we can do better than having to instruct users to insert JavaScript into templates for PlantUML support.

https://github.com/go-gitea/gitea/issues/18272


Rewriting tests to use Jest

Fix for issue #18

Installed jest and ts-jest
Added the key 'jest' to package.json
Rewrote tests to use jest
Changed the 'test' script to use jest
Removed unneeded variables because of TypeScript
Removed 'mocha' and 'chai' from the dependency list

Sorry, forgot to remove mocha and chai, closing.

Hey, we agreed not to do this internally, sorry for the late feedback!


Update tagging schema for OpenHistoricalMap

This is not a feature request but something that would be critical for us to improve our vector tile schema and styles. The test bed work that @jeffreyameyer started is really useful. We need to update the OHM wiki with more specific tags that are used including relations and ideal geometries for each of these features.
Having that wiki would be fundamental to make sure they all are surfaced in the vector tiles and styled properly. We have a lot of control over how we design our vector tile schema.
The wiki should have:

All tags used and their geometry combinations, with examples
All relation definitions and member combinations, with examples

cc @danrademacher @batpad

@rwelty1889 - it might be time for our own wiki after all... I can only imagine what would happen if we started creating OHM tagging pages on the OSM wiki. They've been generous so far, but there are limits...
@geohacker - my only thought here would be that the OHM tags are exceptions to OSM tags & that the general rule would to have as few OHM-specific tagging practices as possible, in order to maintain compatibility with other styling tools, plugins, etc.


OpenBSD uses EISDIR for directory access

This is true at least for the most recent release of OpenBSD.
I'm not sure if FreeBSD and NetBSD still do not raise for
read(2) on directories.

@jeremyevans Thank you for the OpenBSD fixes!
Do you know if there is some automated CI of Ruby on OpenBSD?
I see only FreeBSD on https://rubyci.org/

Unfortunately, I don't think there is an automated CI for Ruby on OpenBSD.  I generally run tests for ruby  prereleases and releases on OpenBSD amd64, but there are a few specs that have to be commented out due to a known issue in OpenBSD when using FIFOs for data transfer between threads in the same process.  Additionally, OpenBSD's crypt(3) is non-standard and the related tests/specs fail.

I think it would be fine to add platform_is_not :opendbsd around the problematic specs, with a comment about why they don't work. And ideally also specs for platform_is :opendbsd if it applies.
Manually commenting specs should not be required :)


New code added in C programming language

I have added some new codes of DS in C folder

Hi, i would like to inform you that this repo doesnt follow the hacktoberfest 2021 norms. please update the topic and accept my PR.


Replace CDTs with Conda packages & cleanup yum_requirements.txt

Part of issue: https://github.com/conda-forge/cuda-feedstock/issues/28
Previously we used CDTs for libglvnd*. However this was since packaged in conda-forge and it would be better to depend on that package so users pull it in when installing. Especially so as this CDT is not provided on AlmaLinux 8. This makes that change. Also this change is being rolled out in conda-forge.
Cleans up yum_requirements.txt as well.

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

LGTM

LGTM

Thank you both! 🙏


Add files via upload

English labeled in rdfs had been added and corrected, chosen mereologies had been updated, IRIs from ontohgis had been changed (more about a change from PURL prefix to KUL prefix in ontohgis here: https://github.com/ontohgis/ontology).

Labels, IRIs, relations, and definitions had been updated successfully.


fix(utils): drop unused variant checkpoint

Please ensure your pull request adheres to the following guidelines:

[ ] make sure to link the related issues in this description
[ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues
Thanks for contributing!

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

v2.23.4
v2.23.4
GitHub release

Your semantic-release bot :package::rocket:


Mark and unmark tasks

Codecov Report

Merging #148 (cadcb34) into master (08e3b01) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #148      +/-   ##
============================================
- Coverage     67.89%   67.82%   -0.08%
  Complexity      585      585
============================================
  Files           104      106       +2
  Lines          1922     1924       +2
  Branches        240      240
============================================
  Hits           1305     1305
- Misses          539      541       +2
  Partials         78       78

Impacted Files
Coverage Δ

...taskbook/logic/commands/tasks/TaskMarkCommand.java
0.00% <0.00%> (ø)

...skbook/logic/commands/tasks/TaskUnmarkCommand.java
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Cannot create app/fn decom records

Description
Get an NPE when creating app/fn decomm records
Waltz Version
1.40
Steps to Reproduce
Open ratings editor for an app. Attempt to set an app/fn decomm date
Expected Result
Entered date is shown and app/fn is marked as retiring.
Actual Result
NullPointerException

Caused by trying to convert a null result set into a record.  This is when the code checks to see if an existing decomm record for the app/fn exists.
Therefore a workaround is to pre-create app/fn decom records as required.  Obviously this is labour intensive and not remotely viable long term.


Fixes broken suggestions, update manual, contributors and changelog.

Fixes #38

@edubkendo This should be good for a v0.15.1 !

Thanks for all your work on this plugin @alkama . I'll get back to rust eventually and it is really nice to know that such a great plugin will be waiting for me.

Hehe:) thanks for creating the plugin ! I didn't do much, really.

 I made a horrible typo in the readme... > "opened"...
How terribly ugly.
Will fix with next update.


If we choose to not use an image attr

Giving options if the person just want to have images in our cards

Just perfect! :) I was looking for this :+1:

👍 @CarlosRoig


ASCII script is broken

The heroku app used to create the ASCII message is down: http://asciime.herokuapp.com/

For future users, check this script using figlet.

Thanks for putting that package together!
This repository has been deprecated for awhile in favor of npm packages. We are in the process of finding scripts that have been extracted, and deprecating them over in https://github.com/github/hubot-scripts/issues/1641 so I added this script to the list.


Fix warnings on PHP 8.1

With, PHP 8.1 lack of a return type hint for a method of a child class, whose parent has return type hint is considered mismatch.
https://php.watch/versions/8.1/internal-method-return-types#no-return-type
Since standard classes and interfaces started adding typehings, errors like the following are produced:
PHP Deprecated: Return type of Violet\StreamingJsonEncoder\AbstractJsonEncoder::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

void type is only available since PHP 7.1 and mixed type requires PHP 8.0:
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.void
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.mixed
To preserve compatibility with PHP < 8.0, we need to add the attribute.

Codecov Report

Merging #4 (21fdb9f) into master (31661f6) will not change coverage.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              master        #4   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity       114       114
===========================================
  Files              4         4
  Lines            296       296
===========================================
  Hits             296       296

Impacted Files
Coverage Δ

src/AbstractJsonEncoder.php
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Thanks, I merged this via #6, since I needed to rebase it.


Fix: BasePath helper accepts argument, prepends with /

This PR

[x] makes use of the fact that the BasePath view helper actually accepts an argument, the name of the file to be prepended with the actual base path

Follows f1694ca.

:+1:


Let user provide files to be "read" in their prompt

Love Claude Dev, a lot of time saving potential.
My request is, instead of waiting on the AI response to "request" to read a file, why not let the user select files to add from a dropdown as they type? Will save on a lot of time and tokens.
Plus, since the AI only seems to have the file tree in the initial context, it does not actually have as much context as to what does what as the user does.
This change would be much appreciated!

Glad you're finding it useful!
Referencing files and websites is something I plan on adding in the future! Also maybe a @workspace to just send the recrusive files list from the getgo, although this would behave differently than other AI tools that traditionally use this to run a RAQ query.

In the most common case where all extant files in the project would fit into less that 1/2 memory, could just load them all by default.
Fallback being recursive filenames & asking claude to rank files in order of importance for the current task. 1/4 prompt to full files and 1/4 to summarized files.

Closing as this is now in the latest v1.9.4!


Serialize the API?

Is there some way to serialize the API produced by the sbol factory as python source code?
If not, that would be a great addition to the library.

There isn't currently a good way to do that.  There is however a verbose option which will tell you about the data model that is being generated.  This may provide some insight whether the ontology file is being interpreted and translated into an API correctly.
__factory__ = SBOLFactory(locals(),
                          posixpath.join(os.path.dirname(os.path.realpath(__file__)),
                                         'paml.ttl'),
                          'http://bioprotocols.org/paml#', verbose=True)

This outputs something like this:
SubProtocol
---------
	instance_of	Protocol	1	1

Protocol
------
	material	Component	0	inf
	activities	Activity	0	inf
	locations	Location	0	inf
	output	ProtocolPinSpecification	0	inf
	flows	Flow	0	inf
	input	ProtocolPinSpecification	0	inf

Which tells you each class, property, and cardinality of the property that is parsed from the OWL file and translated into a Python class definition.
The goo of a generated API is based on pySBOL3.  All the generated classes extend the core classes of that library.  So if you understand the patterns of pySBOL3, you will understand the generated API as well.

I was telling @jakebeal that my bias working in software is one of pessimism: always assume that it's not going to work for someone and think about how they are going to debug when it happens.
This applies double to code generation frameworks, because the programmer is typically completely helpless when things go wrong. Even monkey-patching is difficult if the API artifact is ephemeral.
In addition, having to constantly regenerate the API is going to incur an unnecessary startup cost.
I strongly urge you prioritize this enhancement for the SBOL factory.
/cc @danbryce

/cc @jgladwig


not all logstash patterns are supported

URL for relevant page?
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/logparser
"as well as supporting logstash's builtin patterns."
should be "as well as supporting most/many/some of logstash's builtin patterns."
What products and version are you using?
Telegraf v1.1.2 (git: release-1.1.0 3da3a2279108d02c2158782794532de7cd7deacd)
Where did you look before opening the issue?
https://github.com/influxdata/telegraf/issues/2302

Let's add what the limitation is related to lookahead/lookbehind into the logparser plugin.


Max Level problem

I dont know why my enchant can over max level.
it should have like lv.10 max enchant  but i can get to lv.20 even more than it mention

version : 1.19.2

admins can ignore the max level limit


Add change list-grid view test

Ready?

Coverage increased (+0.5%) to 68.293% when pulling 21a88dac402595207ca357d2de7e039044b2c1c7 on eatonphil:testing/list-grid-view-change into be71e54b65c4755ff500fe0c89e0e1edb405ea91 on linode:master.

Coverage increased (+0.5%) to 68.293% when pulling 6f1274520c03ac5b99a9eee9168c037f029a33c6 on eatonphil:testing/list-grid-view-change into be71e54b65c4755ff500fe0c89e0e1edb405ea91 on linode:master.

Yep.

thanks!


Next steps

[ ] Add citations where we've borrowed code to the README (e.g. the starter code for lowess came from that issue). Error on the side of giving too much credit to other people — always safer than having people mad at you.
[ ] Post about the library over on the seaborn repo under the Discussion tab saying we made this, citing the people from whom we've borrowed code (with an @), and asking for feedback, especially around (a) having this as a separate library (as opposed to rolling into seaborn.objects directly), and (b) how we're handling confidence intervals. I'm happy to write and post that if you want, but I think it should probably be you to get you full credit!

I'll work on that as soon as possible.
Thanks,
Ofosu

From: Nick Eubank @.>
Sent: Thursday, July 11, 2024 2:32 PM
To: Ofosu-Osei/seaborn_objects_recipes @.>
Cc: Subscribed @.***>
Subject: [Ofosu-Osei/seaborn_objects_recipes] Next steps (Issue #13)

Add citations where we've borrowed code to the README (e.g. the starter code for lowess came from that issue). Error on the side of giving too much credit to other people — always safer than having people mad at you.
Post about the library over on the seaborn repo under the Discussion tab saying we made this, citing the people from whom we've borrowed code (with an @), and asking for feedback, especially around (a) having this as a separate library (as opposed to rolling into seaborn.objects directly), and (b) how we're handling confidence intervals. I'm happy to write and post that if you want, but I think it should probably be you to get you full credit!

—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/Ofosu-Osei/seaborn_objects_recipes/issues/13__;!!OToaGQ!qUo6Q3UjQBpGWY1FfXFbv9NZd4hUwZwDlDejIDGrS1n9oOtPG41FnxPmhU6hyELJuBXWs7AZn5TFJgqQsb4MOhDNBGQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABVHEJIDZ2ON6JYAJ64XJ4LZL3FVHAVCNFSM6AAAAABKXQRZVSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDGOBUGE3TAMY__;!!OToaGQ!qUo6Q3UjQBpGWY1FfXFbv9NZd4hUwZwDlDejIDGrS1n9oOtPG41FnxPmhU6hyELJuBXWs7AZn5TFJgqQsb4Mb1LJDi4$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


not working on raspberry pi 2 ?

Hi,
I just tried to install your very promissing package on my raspberry pi 2 running raspbian after installing npm and nodejs by doing PORT=80 npm start in the folder I got with git clone https://github.com/YouTransfer/YouTransfer.git and I get this error :

PORT=80 npm start
<EMAIL_ADDRESS>start /home/USER/YouTransfer
gulp clean && gulp dist && node app.js
sh: 1: gulp: not found
npm ERR<EMAIL_ADDRESS>start: gulp clean && gulp dist && node app.js
npm ERR! sh "-c" "gulp clean && gulp dist && node app.js" failed with 127
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is most likely a problem with the youtransfer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp clean && gulp dist && node app.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls youtransfer
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 4.1.19-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/X11/npm" "start"
npm ERR! cwd /home/USER/YouTransfer
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message<EMAIL_ADDRESS>start: gulp clean && gulp dist && node app.js
npm ERR! message sh "-c" "gulp clean && gulp dist && node app.js" failed with 127
npm ERR! errno {}
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
npm WARN /usr/share/doc/nodejs/README.Debian
npm WARN
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/USER/YouTransfer/npm-debug.log
npm not ok

I am pretty noobish for all that is nodejs and selfhosting related but I had not read anywhere that it should or shouldn't be compatible with a raspberry pi so I wanted to try it. Do you think it isfeasible ? Do you want me to provide any kinds of other infos ?

@thiswillbeyourgithub: It should definitely work on your Raspberry Pi! However, you will need to run npm install first in the installation folder prior to running npm start. This will download the dependencies required for the application to work properly.

I just checked and indeed I missed the npm install instruction in the wiki. My bad :(
Okay so I had to update quite a lot using sudo npm cache clean -f && sudo npm install -g n && sudo n stable before seeing npm install succeed otherwise I had various errors much like this one failed to fetch from registry : XXX. Then I had to reboot and finally sudo PORT=80 npm start succeeded.
It doesn't work yet but I'll take it from there. Thanks a lot !


Correct build date that is shown on web page.

Maven always employs UTC time instead of local time.


Question for open vocab classes?

In this particular section of the paper "Synonym Averaged Embedding Generator (SAEG).
To obtain the text embeddings corresponding to each class
c ∈ C, we define T as set of all prompt templates, Si
as set of all synonyms for the i-th class Ci
in the dataset
and C as set of all classes, {C1, C2, . . . , C|C|}."
I would like to understand more about the set of classes C. Which set are you considering here to label the unknown boxes.

it solves the query, thank you for replying.


[HELP] How do you reuse an existing C widget

Hello, what is the most idiomatic way to use a C widget (like the one here).

You re-implement it in Rust?

Can't it be wrapped with a rust api type?

it can be, but that would require much more work then just writing the widget.

Well, it's how all the existing C widgets from GTK itself etc are made available in Rust. You can do exactly the same :)

Thanks for the help. After looking much closer.
I think having ffi bindings to the widget and converting between rust api types and ffi types using glib's [ToGlibPtr](https://gtk-rs.org/gtk-rs-core/git/docs/glib/translate/trait.ToGlibPtr.html) and [FromGlibPtrFull](https://gtk-rs.org/gtk-rs-core/git/docs/glib/translate/trait.FromGlibPtrFull.html) is a much more appropriate solution for my problem.


How to cache "/"?

Most of the guides online will tell you to set of your service worker cache like so (taken from the google airhorn pwa example):
self.addEventListener('install', function(e) {
 e.waitUntil(
   caches.open('airhorner').then(function(cache) {
     return cache.addAll([
       '/',
       '/index.html',
       '/index.html?homescreen=1',
       '/?homescreen=1',
       '/styles/main.css',
       '/scripts/main.min.js',
       '/sounds/airhorn.mp3'
     ]);
   })
 );
});

Notice that the first thing being added is '/', which caches the home page. What I can't figure out is how to get sw-precache to include this. I've been able to get it to successfully include every actual static file that I need, but not that open /.

Maintaining 4 different cached copies of the same underlying HTML file—/, /?homescreen=1, /index.html, and /index.html?homescreen=1—is not the best practice to emulate in a real-world application.
sw-precache handles that for you, via the directoryIndex option, which tells the service worker to treat requests for optional/path/to/ as if they were requests for optional/path/to/index.html. It defaults to index.html by default, which is normally what you want, so things should work out of the box.
There's another option in sw-precache, ignoreUrlParametersMatching, that would allow you to specify that the ?homescreen=1 parameter should be ignored when doing cache matching.
Using both of those options together, sw-precache will generate a service worker that keeps one copy of the underlying HTML file, and uses that cached copy to respond to any of those 4 possible request URLs.
(I've suggested using sw-precache for Airhorner in the past, but @PaulKinlan wants the project to demonstrate the use of a "vanilla" service worker.)

Maintaining 4 different cached copies of the same underlying HTML file—/, /?homescreen=1, /index.html, and /index.html?homescreen=1—is not the best practice to emulate in a real-world application.
sw-precache handles that for you, via the directoryIndex option, which tells the service worker to treat requests for optional/path/to/ as if they were requests for optional/path/to/index.html. It defaults to index.html by default, which is normally what you want, so things should work out of the box.
There's another option in sw-precache, ignoreUrlParametersMatching, that would allow you to specify that the ?homescreen=1 parameter should be ignored when doing cache matching.
Using both of those options together, sw-precache will generate a service worker that keeps one copy of the underlying HTML file, and uses that cached copy to respond to any of those 4 possible request URLs.
(I've suggested using sw-precache for Airhorner in the past, but @PaulKinlan wants the project to demonstrate the use of a "vanilla" service worker.)

@jeffposnick Sorry, but this does not address the issue that I'm having. Let me see if I can clarify:
I'm using sw-precache with this configuration:
swPrecache: {
  swFileName: 'service-worker.js',
  directoryIndex: '/',
  options: {
    stripPrefix: 'priv/static/',
    staticFileGlobs: ['priv/static/**/*.*']
  }
}

My application cache currently looks like this:

However, in order to get my app to render in offline mode, one of those entries must be
simply http://localhost:4000/ with no actual filename associated. I don't actually have a
index.html file to cache because my web framework is rendering HTML directly to / (which is a common pattern across many frameworks).
If I manually create a service worker to look like this:

self.addEventListener('install', function(e) {
  e.waitUntil(
    caches
      .open('vuechat')
      .then(cache => cache.addAll([
        '/',
        '/phoenix/live_reload/frame',
        '/service-worker.js',
        '/js/app.js',
        '/css/app.css',
        '/css/components.css',
        '/images/vuechat-logo.png',
        '/favicon.ico',
        '/browserconfig.xml',
        '/manifest.json',
        '/robots.txt',
        '/favicons/android-chrome-144x144.png',
        '/favicons/apple-touch-icon.png',
        '/favicons/favicon-16x16.png',
        '/favicons/favicon-32x32.png',
        '/favicons/favicon.ico',
        '/favicons/mstile-150x150.png',
        '/favicons/safari-pinned-tab.svg',
      ]))
 );
});

self.addEventListener('fetch', event => {
  event.respondWith(
    caches
      .match(event.request)
      .then(response => response || fetch(event.request))
  );
});

I get exactly the behavior that I'm expecting.
So, my question is, how do I get sw-precache to include http://localhost:4000/ as a part of the cached assets?

I should also note that if I go to the generated service-worker.js file, and add ["/", "12345678"], to the very beginning of var precacheConfig, I am able to load the page from the offline cache without a problem, and my cache becomes:

Note the first entry.

Gotcha.
What you describe is handled by the dynamicUrlToDependencies option, which allow you to map server-rendered (or "dynamic") URLs to the list of files that they depend on. That way if any of those dependencies change, sw-precache knows to expire the cached entry for / and to retrieve the updated version from the network.
You can see an example configuration at https://github.com/GoogleChrome/sw-precache/blob/master/app-shell-demo/gulpfile.babel.js#L127—it uses /shell as the server-rendered URL, so you'd just swap in / instead, and include the array of files that uniquely determine the output of / as the parameter's value.
See also https://github.com/GoogleChrome/sw-precache/issues/156 for some discussion around whether "dynamicUrlToDependencies" makes sense as a name, and whether it's surfaced properly in the documentation.

Ok, I think that puts me in the right direction, but I'm not having any luck with it. My config is now:
    swPrecache: {
      swFileName: 'service-worker.js',
      directoryIndex: '/',
      dynamicUrlToDependencies: {
        '/': [
          ...glob.sync('priv/static/**/*.js'),
          ...glob.sync('priv/static/**/*.css'),
          'web/templates/layout/app.html.eex',
          'web/templates/page/index.html.eex'
        ]
      },
      options: {
        stripPrefix: 'priv/static/',
        staticFileGlobs: ['priv/static/**/*.*']
      }
    }

However, I still don't see http://localhost:4000/ as a part of my cache.
You can take a look at my whole repo here if it helps: https://github.com/natecox/vuechat

haha, I was going to complain that I couldn't get it to work, and then realized I didn't have the dynamicUrlToDependencies inside the options block.
Working fine now, thanks!

But what if your dependencies have nested dependencies? In React we use composition a lot, so there's no guarantee that when my top-level component's hash doesn't change the HTML response is the same.

@janhoogeveen, if we're talking specifically about keeping the App Shell HTML up to date when using React to populate your content, the model that I've seen used successfully is to include just the basic placeholder where the DOM insertion will take place in the App Shell HTML, as in this example:
https://github.com/GoogleChrome/sw-precache/blob/master/app-shell-demo/src/views/index.handlebars#L17
Maybe there are scenarios in which you really need to include the HTML equivalent of your components' DOM encapsulated in your App Shell HTML, in which case yes, you'd have to list all of the files that contribute uniquely to that component's output as part of the dynamicUrlToDependencies configuration. But just including an insertion point seems to be sufficient for common use cases.
If you have more details about why that wouldn't work for your use case, it would help if you could file a new issue explaining what you're running into, and pointing to a sample repo/live deployment.

Thanks very much for your response @jeffposnick
Seems like just loading the template/app shell works fine as is indeed. I kind of forgot that by loading just the shell the JS can fill in everything with the cached JS assets afterwards. Works like a charm in my repo now.

@jeffposnick how to handle the cdn path ? specify https://cdn.com/ as webpack publicPath, the cache will be like below

#
Request
Response

0
https://cdn.com/index.html?_sw-...
OK

1
...
OK

But that's not what I want ,and the index.html cache won't work either. Cause the request url of index.html will be https://example/index.html. right ?
so how to fix this ?

See my response at https://github.com/goldhand/sw-precache-webpack-plugin/issues/79#issuecomment-305901511
I don't think hosting assets between a CDN and HTML + SW on a different server is a use case that we can easily support.

Query strings starting with utm_ are not cached by default.
I'm not aware of any way how to configure that without ejecting so I've just changed the start_url in manifest.json to ./index.html?utm_source=homescreen. I'm using a react-router package so when application loads, /index.html or this segment is immediately being replaced to / anyway.
See this SO question for more details.

What would be the problem with deifining index at runtimeCaching for example like
`
runtimeCaching: [
{
urlPattern: /a[[,
handler: "networkFirst"
}
`

@janokary How can you set runtimeCaching option?

Read here @piotr-cz
https://github.com/GoogleChrome/sw-precache/blob/master/sw-precache-and-sw-toolbox.md


Implement sorting functionality and add total_supply for Universe Ass…

Implement sorting functionality and add total_supply for Universe Asset Stats

Introduced ascending and descending sorting options for the Universe Asset Stats query.
Added 'total_supply' field to Universe Asset Stats, enhancing the available dataset.
Enhanced TestUniverseQuerySyncStatsSortingDirection to validate new sorting mechanisms and the inclusion of total_supply.
Optimized SQL for efficient sorting based on user-selected parameters.

Thanks very much for the PR! @jamaljsr will test shortly

tACK. I tested the functionality. LGTM 👌


Unknown function: startify#fortune#boxed

I get an error using startify#fortune#boxed
Error detected while processing /home/doc/.config/nvim/config/plugins/ss.vim:
line   35:
E117: Unknown function: startify#fortune#boxed
E116: Invalid arguments for function startify#pad

Here is my config
let s:vegeta = [
\ '                                 ,',
\ '                              ,   ,`|',
\ '                            ,/|.-`   \.',
\ '                         .-`  `       |.',
\ '                   ,  .-`              |',
\ '                  /|,`                 |`',
\ '                 / `                    |  ,',
\ '                /                       ,`/',
\ '             .  |          _              /',
\ '              \`` .-.    ,` `.           |',
\ '               \ /   \ /      \          /',
\ '                \|    V        |        |  ,',
\ '                 (           ) /.--.   ``"/',
\ '                 "b.`. ,` _.ee`` 6)|   ,-`',
\ '                   \"= --""  )   ` /.-`',
\ '                    \ / `---"   ."|`',
\ '                     \"..-    .`  |.',
\ '                      `-__..-`,`   |',
\ '                   __.) ` .-`/    /\._',
\ '              _.--`/----..--------. _.-""-._',
\ '           .-`_)   \.   /     __..-`     _.-`--.',
\ '          / -`/      """""""""         ,`-.   . `.',
\ '         | ` /                        /    `   `. \',
\ '         |   |                        |         | |',
\ '          \ . \                       |     \     |',
\ '         / `  | ,`               . -  \`.    |  / /',
\ '        / /   | |                      `/"--. -  /\',
\ '       | |     \ \                     /     \     |',
\ '       | \      | \                  .-|      |    |'
\ ]

let g:startify_custom_header =
    \ startify#pad(s:vegeta + startify#fortune#boxed())

let g:startify_session_dir =  $VARPATH.'/session'
let g:startify_files_number = 4

let g:startify_bookmarks = [{'z': '~/.zshrc'}]

let g:startify_lists = [
    \ { 'type' : 'dir',         'header' : ['   My most recently used files in the current directory:']},
    \ { 'type' : 'files',       'header' : ['   My most recently used files:']},
    \ { 'type' : 'sessions',    'header' : ['   These are my sessions:']},
    \ { 'type' : 'bookmarks',   'header' : ['   These are my bookmarks:']},
\ ]

let g:startify_skiplist = [
      \ 'COMMIT_EDITMSG',
      \ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc',
      \ 'bundle/.*/doc',
\ ]

Relevant information
Neovim Version: v0.4.3
Plugin Manager: minpac / native
When I replace
let g:startify_custom_header =
    \ startify#pad(s:vegeta + startify#fortune#boxed())

with
let g:startify_custom_header = s:vegeta

it works as expected.

Does the let g:startify_custom_header = ... line come before you add the plugin in your vimrc?
That's the only way I can reproduce this. Otherwise your config works for me as-is.

Vim-startify config is at the end of my config. I'm not sure if that would be a factor with minpac since vim is the one that ends up loading the plugin.
Putting it before that line I don't see vim-startify. Running it during runtime I do. Could this be related to splitting up my packages vim-startify config in different files?

It's strange because when I run neovim I get the errors but after pressing enter I get the cowsay quote version of startify with all of my bookmarks, lists, and everything else. So it seems like neovim is loading all of vim-startify minus the startify/fortune.vim

Yeah, it's most probably a sourcing order issue. As I said, when the path to the vim-startify folder is missing from :echo &rtp, then calling startify#fortune#...() will throw an error.
But you could try this:

Change s:vegeta to g:vegeta

Use a string for g:startify_custom_header:
let g:startify_custom_header = 'startify#pad(g:vegeta + startify#fortune#boxed())'

This way the actual functions won't get used until Startify is actually executed.

If there were Yelp Reviews for vim plugin authors you sir, would have 5 stars.
That fixed it. Thank you!

Hah, thanks. I'm glad it's working now!


Can Geometry be Send?

As asked by @ManeraKai in https://github.com/georust/gdal/issues/522#issuecomment-2081470118.
I don't see a reason for it to be !Send, but I might be missing something.

This too: https://gdal.org/user/multithreading.html

Those restrictions apply to the C and C++ ABI, and all languages bindings (unless they would take special precautions to serialize calls)

Rust does have Mutex to serialize calls.

I'd rather not add a mutex to every geometry (or worse, use a global one). Not to mention that you could still bypass it by getting the native handle.
Anyway, I see no reason for it.


Incorrect LocationOfInterest label in DataCollectionFragment

LocationOfInterest label in DataCollectionFragment should use the format described in:
https://github.com/google/ground-platform/issues/1242

Duplicate of https://github.com/google/ground-android/issues/2291


bug: TRPCClientError when pointing at local Mysql 8.1.0

Provide environment information
  System:
    OS: macOS 12.7.1
    CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
    Memory: 56.05 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 21.2.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.9.2 - ~/Library/pnpm/pnpm

Describe the bug
After cloning the repo and configuring the .env to use a local database Mysql 8.1.0
>>> tRPC Request from rsc by undefined
 << query  #1 post.all  {
  input: undefined,
  result:  [TRPCClientError: fetch failed] {
  meta: undefined,
  shape: undefined,
  data: undefined,
  name: 'TRPCClientError'
},
  elapsedMs: 116
}
 ⨯ TRPCClientError: fetch failed
    at eval (./src/trpc/server.ts:59:98)
Cause:  [TRPCError: fetch failed] {
  code: 'INTERNAL_SERVER_ERROR',
  name: 'TRPCError'
}
 ⨯ TRPCClientError: fetch failed
    at eval (./src/trpc/server.ts:59:98)
digest: "3067733176"

I would like to locally develop as I don't always have internet connection. I am having trouble getting a working solution.
Link to reproduction
N/A
To reproduce

Clone the repo.
Point the env at a local copy of MySQL

DB_HOST=localhost
DB_NAME='test'
DB_USERNAME=test
DB_PASSWORD=password

seed via pnpm db:push
pnpm dev at the root
Navigate to the nextjs app

Additional information

Nevermind I see the blurb about edge-bound. Sorry!

You can use https://github.com/mattrobenolt/ps-http-sim as a development layer to run planetscale http api connected to a local mysql database.
I've been using this for a project now lately and will probably add to this repo soon

@juliusmarminge
Thank you for going out of your way to share this on the closed issue. Much appreciated!

@juliusmarminge
Awesome tip on ps-http-sim. I have t3-turbo working locally for myself now. Cheers.


[FINE] Fix location of the v2v transform VM dialog

Fixed location of the VM dialog to conform to the sourcing settings found in Fine.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1467341

@miq-bot assign @gmcculloug


Boolean Inputs as icon no longer blue when enabled.

Checklist:

[ x] I updated to the latest version available
[ x] I cleared the cache of my browser

Release with the issue:
v3.0.0-rc.1
Last working release (if known):
Pre 3.0
Browser and Operating System:
Tablet and Chrome browser
Description of problem:
Previously, when I turned on a boolean input, the icon would turn to blue, which was very usefull to know if it was on or off.
In the new version, it stays white no matter the state.
It is not possible to use icon_template with boolean inputs.
I tried that as it was my first path of resolution
Javascript errors shown in the web inspector (if applicable):

Additional information:

This was already fixed in https://github.com/dermotduffy/frigate-hass-card/pull/362 (will be in the next release).


Responsive settings in data-slick element

Do responsive settings work in the data-slick element? Have tried several iterations and it doesn't seem to work.
Is this feature supported?

Not sure if there're any open issues about this, off the top of my head. You could make a reduced test case in a fiddle or codepen. Thanks.


feat(patient): initial feature

[x] create patient
[x] get all patients
[x] get patient by id
[x] update patient data
[x] soft delete patient data
[x] search patient by name or NIK

Testing add failed, reason:
{
  "meta": {
    "status": 400,
    "message": "Bad Request"
  },
  "data": "code=400, message=parsing time \"\\\"1997-08-10T10:00:00Z07:00\\\"\" as \"\\\"2006-01-02T15:04:05Z07:00\\\"\": cannot parse \"07:00\\\"\" as \"\\\"\", internal=parsing time \"\\\"1997-08-10T10:00:00Z07:00\\\"\" as \"\\\"2006-01-02T15:04:05Z07:00\\\"\": cannot parse \"07:00\\\"\" as \"\\\"\""
}


Missing null checking

Hi, it seems that msg could be NULL, dereferencing in Line 104.
https://github.com/openssl/openssl/blob/af16097febcd4fa31cd5fcd05ad09cf8b53659ea/crypto/cmp/cmp_util.c#L103-L104
Other places with NULL check:
https://github.com/openssl/openssl/blob/af16097febcd4fa31cd5fcd05ad09cf8b53659ea/crypto/cmp/cmp_util.c#L49-L54
https://github.com/openssl/openssl/blob/af16097febcd4fa31cd5fcd05ad09cf8b53659ea/crypto/cmp/cmp_util.c#L89-L91

@DDvO might be interested?

https://github.com/openssl/openssl/pull/19282


Update nova for vnc websocket vuln.

This updates the version of stable/juno we pull in, and adds a playbook
that can be used to fix JUST this nova issue.
Resolves CVE-2015-0259

Tested against trustytest, appears to work as expected.


Update JSON middleware to pretty-print JSON on stringify

https://github.com/drivly/api.cf/commit/bf679ffa13cf8dc7a4b1c5c0507d7ac1ef8a2f07


Add planning time, execution time metrics per task.

Want to keep track of planning time and policy execution time for each task so that we can plot a distribution of these times.
Because metrics is a dictionary from str -> float, this is a hacky approach for now per Tom's suggestion: we just make keys like "task10_planning_time" for each test task id. We can improve this later. I actually don't think we needed to do this hacky approach because the analysis scripts take in a list of keys to operate on, so we could just not include "planning_times" in that list of keys.
I will add the plotting script after we re-run the supercloud experiments with this enabled and get the data for it.

what's the latest with this? can we close this PR if we're not looking to merge it in the short term?


Error: TypeError [ERR_INVALID_URL]: Invalid URL

Hello team, we have been getting the similar error as mentioned in the https://github.com/SpectralOps/spectral-github-action/issues/9 whenver Dependabot open a PR to upgrade the packages. How do we resolve this issue permanently?
My Error:

Run spectralops/spectral-github-action@v4
with:
spectral-args: scan --ok --fail-on-error --exclude-tags=low,informational
env:
SPECTRAL_DSN:
Invalid URL
Waiting 16 seconds before trying again
Invalid URL
Error: TypeError [ERR_INVALID_URL]: Invalid URL

Hi @atul2387
Dependabot can't access Github actions secrets. you can see the solution here.


Double-click on JAR doesn't launch the application - Mac OS X

Issues 32 and 34 were merged and closed.  Those issues were for Windows.  The same issue is true for MAC OS X.  For Oracle JDK created JAR files, they are launched with "jar launcher.app" (15.0.1) found at /System/Library/CoreServices/Jar Launcher.app.  Minor inconvenience, but a difference.  I have found this with all AdoptOpenJDK releases on Mac OS X 10.14 and 10.13.

@todivefor any idea how this would be associated?

So I've created a .jar file on my mac and when I double click it, it opens with jar launcher app. That seems to be working for me.

Or is this to do with making jar launcher.app use adoptopenjdk Java rather than another vendor?

running a test build with this fix: https://github.com/AdoptOpenJDK/openjdk-installer/pull/95

@todivefor could you please confirm the fix for me by running the following commands making sure that the INPUT_DIRECTORY variable is set correctly:
INPUT_DIRECTORY=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk
/usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:1 string JNI" "${INPUT_DIRECTORY}/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:2 string BundledApp" "${INPUT_DIRECTORY}/Contents/Info.plist"

@gdams that did not work.  I first tried it just like you said and it seemed to work.  I then tried it on INPUT_DIRECTORY=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk and it did not work there.  I went back to adoptopenjdk-8.jdk and removed the above fix and re-tryed.  It worked, so my statement all AdoptOpenJDK releases was false.  Double click on 1.8.0_192-b12 works, but 11.0.3+7 does not.

hmmm okay, do you know if an Oracle Java 11 works with this?

I do not, but I can give it a try.

I tried this on Oracle Java 11, and the bottom line is it operates the same as AdoptOpenJDK 11 (cannot double click jar).  I can get both Oracle 11 and AdoptOpenJDK 11 to work if within Netbeans if I have Java Platform set to JDK 11 and Source/Binary Format set to JDK 8.  I don't understand this and posted this question on Superuser:
https://superuser.com/questions/1429769/netbeans-java-platform-and-source-binary-format-inconsistency

Thanks for your help. I'm thinking that I should probably land the change anyway to be consistent with Oracle and then we can do some further investigation.

I am not able to open the jar file in MAC OSX with java 11 LTS. Running the jar file with java command returns the following error Error: Could not find or load main class file.jar
Caused by: java.lang.ClassNotFoundException:
However it works in windows perfectly fine. Even I tried in linux env.

I don't know if this actually helps the issue, but one solution would be to create an extremely simple application in Automator that runs shell script java -jar "$@" when fed a jar file.
CatalinaJarLauncher.zip
You can then just use Get Info on any given jar to set this app as the default for opening jar files (the only side-effect of this is that the icons on jar files themselves will change, but if you don't mind that, this is a pretty good solution).
Here's a screenshot of the actual project in Automator:

Something changed going from 11.0.8_10 to <IP_ADDRESS>_1 and continues into 11.0.10_9. I have a jar file that I double click and worked until <IP_ADDRESS>_1. I started getting that the jar file needed to be installed in and run from the user's home directory. I just went back to 11.0.8_10. Now I installed 11.0.10_9 and got the same. I guess "jar launcher.app" executed from the directory in which it resided, but now does not. I can execute java -jar xxxxx.jar from within the directory, but double click does not. This is not a big deal, I can work around, just a change.

@todivefor could you please confirm the fix for me by running the following commands making sure that the INPUT_DIRECTORY variable is set correctly:
INPUT_DIRECTORY=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk
/usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:1 string JNI" "${INPUT_DIRECTORY}/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:2 string BundledApp" "${INPUT_DIRECTORY}/Contents/Info.plist"

Hey.
I had this same issue, came across this issues thread. Fresh install of Mac OS Big Sur with Adopt Open JDK 11.
$ java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
I adjusted INPUT_DIRECTORY. I can now launch .jar files with the stock JavaLauncher.app without issue.

@jwrb what did you adjust INPUT_DIRECTORY to be? Can you also send me your Info.plist

@jwrb I would be glad to test. How do I change INPUT_DIRECTORY?

@jwrb Nevermind
Ran:
PWRMacbookPro:~ userid$ INPUT_DIRECTORY=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk
PWRMacbookPro:~ userid$ /usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:1 string JNI" "${INPUT_DIRECTORY}/Contents/Info.plist"
PWRMacbookPro:~ userid$ /usr/libexec/PlistBuddy -c "Add :JavaVM:JVMCapabilities:2 string BundledApp" "${INPUT_DIRECTORY}/Contents/Info.plist"
PWRMacbookPro:~ userid$
Got same result.


Merge Opensaml4 to Jakarta EE branch

Merge Opensaml4 to Jakarta EE branch

@jimma fyi :)

@reta When I download this patch and apply it to the CXF-8371 branch I see a lot of compilation errors, e.g. in rt-transports-jms and transports-http. Am I doing something incorrectly? When I run the tests in cxf-rt-ws-security I see errors like:
java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceException
at org.apache.cxf.ws.security.wss4j.saml.StaxToDOMSamlTest.createService(StaxToDOMSamlTest.java:619)

@coheigea  These compilation failures are caused by the jakarta dependencies are missing. I simply excluded these modules and code/test in pom file like : https://github.com/jimma/cxf/commit/751f91e2c5ba53537720c1a282493010f14000ae

@reta When I download this patch and apply it to the CXF-8371 branch I see a lot of compilation errors, e.g. in rt-transports-jms and transports-http. Am I doing something incorrectly? When I run the tests in cxf-rt-ws-security I see errors like:

Yeah, we are slowly progressing but the branch is not fully buildable just yet (the jms was fixed by https://github.com/apache/cxf/pull/919 but we reverted that), excluding problematic modules would be a way to go for now (as @jimma suggested here [1]). I will share the command line today in the description for [2] how to build with modules excluded, sorry for that.
[1] https://github.com/apache/cxf/pull/927#issuecomment-1080423204
[2] https://github.com/apache/cxf/pull/912

@coheigea how to build hint:
mvn install -DskipITs=true -DskipTests=true -pl '!:cxf-rt-transports-jms,!:cxf-rt-transports-websocket,!:cxf-rt-rs-service-description-swagger,!:cxf-rt-rs-service-description-microprofile-openapi,!:cxf-java2swagger-plugin,!:cxf-wadl2java-plugin'

There dependency issues with org.apache.wss4 since some modules are not present in 3.0.0-SNAPSHOT:
[ERROR] Failed to execute goal on project cxf-rt-security-saml: Could not resolve dependencies for project org.apache.cxf:cxf-rt-security-saml:bundle:4.0.0-SNAPSHOT: Failure to find org.apache.wss4j:wss4j-ws-security-dom:jar:3.0.0-SNAPSHOT in https://repo.spring.io/milestone/ was cached in the local repository, resolution will not be reattempted until the update interval of spring.milestone has elapsed or updates are forced -> [Help 1]

@reta With the above command and this patch, I still see:
[ERROR] /Users/coheigea/src/apache/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/http/osgi/ServletExporter.java:[125,24] cannot access javax.servlet.Servlet
[ERROR]   class file for javax.servlet.Servlet not found

@coheigea  This can be resolved by @reta's another change https://github.com/apache/cxf/pull/929.

Thanks @jimma that's better. I get a compilation failure in the ws-security systests:
[ERROR] /Users/coheigea/src/apache/cxf/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/httpget/HTTPGetTest.java:[113,19] cannot access javax.ws.rs.client.InvocationCallback
[ERROR]   class file for javax.ws.rs.client.InvocationCallback not found
And in the STS systests:
[ERROR] /Users/coheigea/src/apache/cxf/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/rest/STSRESTTest.java:[766,39] incompatible types: javax.ws.rs.core.Response cannot be converted to jakarta.ws.rs.core.Response

@coheigea  It looks like the rs artifacts are not compiled. Please try to run mvn clean install -Pfastinstall under rt/rs to see if it helps.

@jimma cxf-rt-rs-client doesn't compile.

@coheigea  I'll work with @reta this week to add a "jakarta" profile or something else to get make the build work. At least make the -Pfastinstall profile work.@reta  WDYT?

@reta With the above command and this patch, I still see:
[ERROR] /Users/coheigea/src/apache/cxf/rt/transports/http/src/main/java/org/apache/cxf/transport/http/osgi/ServletExporter.java:[125,24] cannot access javax.servlet.Servlet [ERROR] class file for javax.servlet.Servlet not found

@coheigea just merged https://github.com/apache/cxf/pull/929 to fix that, thanks @jimma !

@coheigea I'll work with @reta this week to add a "jakarta" profile or something else to get make the build work. At least make the -Pfastinstall profile work.@reta WDYT?

Oh, the jakarta profile is active by default, but if -P specified, it should be added as well: -Pfastinstall,jakarta

@reta  I mean if it's possible that we can exclude these modules with jakarta profile instead of using a command line flag.
Then the -Pfastinstall,jakarta can work to build the artifacts.

@coheigea I'll work with @reta this week to add a "jakarta" profile or something else to get make the build work. At least make the -Pfastinstall profile work.@reta WDYT?

Oh, the jakarta profile is active by default, but if -P specified, it should be added as well: -Pfastinstall,jakarta

@reta I mean if it's possible that we can exclude these modules with jakarta profile instead of using a command line flag. Then the -Pfastinstall,jakarta can work to build the artifacts.

Ah I see, yeah, we can do that

sure @coheigea !

1. Update WSS4J in parent pom to 3.0.0-SNAPSHOT

It is already at 3.0.0-SNAPSHOT: https://github.com/reta/cxf/blob/opensaml4-jakartaee/parent/pom.xml#L232
 Failed to execute goal on project cxf-rt-security-saml: Could not resolve dependencies for project org.apache.cxf:cxf-rt-security-saml:bundle:4.0.0-SNAPSHOT: Could not find artifact org.apache.wss4j:wss4j-ws-security-dom:jar:3.0.0-SNAPSHOT

2. Change JacksonJsonProvider to jakarta.rs in services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/rest/cxf-rest-sts.xml

Done.

3. Same in ./sts/systests/advanced/src/test/resources/org/apache/cxf/systest/sts/custom/cxf-sts.xml

Done

4. Exclude xkms + sts itests temporarily.

Done.

@coheigea @reta  Are there other tasks to resolve in WSS4j 3.0.0 ? Shall we get the wss4j 3.0.0 out and include it in CXF ?

I found the cause for the last remaining (afaik) test failure, will fix next week.

@reta I fixed the final test failure with https://issues.apache.org/jira/browse/WSS-695. Just two minor things I noticed:

The Apache Snapshot repo needs to be added to the jakarta profile, as otherwise it won't find the WSS4J snapshots
There are references to the old Jackson provider in systests/rs-security on CXF-8371 that could be updated.

@reta I fixed the final test failure with https://issues.apache.org/jira/browse/WSS-695. Just two minor things I noticed:

The Apache Snapshot repo needs to be added to the jakarta profile, as otherwise it won't find the WSS4J snapshots
There are references to the old Jackson provider in systests/rs-security on CXF-8371 that could be updated.

@coheigea awesome, I will check the repository and Jackson provider shortly, thank you!


"Cristian" commune is listed in the drop-down menu

Description:
The commune is listed in the drop-down menu according to the law
Preconditions: the website (https://peviitor-ro.github.io/ui.orase/) is up and runing.
After every step delete the text you typed from the search bar.

Step 1
Type "Cristian" in the search bar.
Expected results
The location is listed in the drop-down menu as "Cristian, Brașov"


Adapting xla_legalize_to_linalg for using buffer assignment

In this PR, we implemented our proposed BufferAssignment in HLO-to-Linalg legalization pipeline. Please note that this PR must be merged after BufferAssignment PR since it cannot be built.

@dfki-ehna Can you please resolve conflicts? Thanks!


Question: Why choose fiddle rather than ffi?

Hi @kojix2
The ffi seems more idiomatic for Ruby, for example:
# ffi
attach_function :puts, [ :string ], :int

# fiddle
floor = Fiddle::Function.new(
          libm['floor'],
          [Fiddle::TYPE_DOUBLE],
          Fiddle::TYPE_DOUBLE
        )

As you can see, in ffi we write just symbols directly to represent C types.
So, I suspect there might be some technical reasons for the use of fiddle rather than ffi. What are them?

The reason for using Fiddle instead of Ruby-FFI for this project is not technical. It is because Ruby-FFI is a Ruby standard library and is expected to work on almost all environments where Ruby is installed. I think Ruby-FFI is better than Fiddle in the technical aspects.
libUI was created with school children in mind. Schools may not allow downloading or compiling of libraries. Ruby-FFI will only work if you can use libffi, compile C language extensions, and have an internet connection. Fiddle exchanging Ruby-FFI software with a friend on a USB stick would be easier. The idea of children programming in Ruby may sound strange today, but such a situation was possible in Japan until about 10 years ago.
In any case, Fiddle was chosen not because of technical reasons or my preference. It is because it works everywhere.

Also, I personally prefer Ruby-FFI, but the above comparison is not fair:
# FFI
attach_function :puts, [ :string ], :int

# Fiddle
extern "int puts(const char* s)"

I am glad to hear of such attempts.
About 2 years ago, I copied some of my work to Gitee, in case I lost access to GitHub from China and we might not have access to Chinese repositories either, LibUI is one of them. So you can get the LibUI source code from there if you need it. It may be a bit out of date.
https://gitee.com/kojix/LibUI


⚠ Turnos 24x7 has degraded performance

In 3c3aed1, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 5353 ms

Resolved: Turnos 24x7 performance has improved in 68f0b57.


Moved to bootstrap 3

Related #2047

Is the styling that I get with a fresh install correct? Seems like a big step backwards:

Positioning of avatar
Color of logout-button
Colors of sidebar
Right margins of list-table
Smaller screens get something like this:

Is there something wrong with my setup? Or is this still a work in progress? In that case: is there a way to get back to the old theme?


evt.oldIndex incorrect values

The onEnd callback is not working correctly with multiple levels of Sortable elements
onEnd: function(e){console.log('img', e.oldIndex, e.newIndex)}

http://output.jsbin.com/hedaqa (your demo page example)
or https://jsbin.com/bequva/edit?html,js,output
Whichever items you move in Group A, oldIndex will be the same, the index of GroupA in its container, instead of the oldIndex of the item in GroupA
Is it really a bug or an error from me?

+1
I have the same issue..

see my pull request

@cauburtin, yes, I watched it. This PR didn't fix my issue.

Can you give a jsbin/jsfiddle? and use

@cauburtin the dev version works well for me, thanks! When can we expect it to be included in a release? :)

@cauburtin, sorry I have no time for this.. I could say that I used multiple nested groups http://quick.as/4brvtbbn3


Translation into Welsh (Cymraeg)

Hi I'd like to translate this app into Welsh/Cymraeg (ISO 639-1 code 'cy').
I am registered on Weblate. Can an admin please add Cymraeg to the list of languages?
I'll be prioritising iOS but I'll take a look at the other platforms as well.
Thanks

As discuss here, all happen in weblate
Thanks for your contribution!


false checksum for sophia-package

Hi,
since sophia 6.5.1 the checksum in choco-package is broken.
currently for version 6.5.3
package-checksum: 9bae4d4c2fd9ded33dbf92b677c9027967e94774bf25b02dcdca90fe30444325
sophia-checksum: 95653FA8D7B48C33E09EBDBD52A5C2FFEB3A6816C1E6CE0E0A28B6CB3BB898B1
(from https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.5.3/SHA256SUM)
can you check this :)

Hi @dsan0815,
First of all, thank you for reporting this issue and sorry about the answer's delay.
Indeed, the version 6.5.1 and 6.5.3 suffers from this issue.
This is triggered when the software authors modify the release's assets after the chocolatey package has been created.
From the version 6.5.4 to the version 6.5.9 (the newest one to date), there is no issue in that regard.
So I have unlisted the problematic versions, as people probably have already moved to a more recent version.
If some people really needs those specific version, then, I'll re-create them :wink:
If that happens again, I'll hopefully notice your message sooner, in order to avoid this kind of "too-late-resolution" :smiling_face_with_tear:


Spell Checks not working

The following LinterTests related to spelling are not working:
Class categories
Class comments
Class names
Class variable names
There seem to be issues with normalization.

I think that is out of scope. They all rely on the RB spell checker there, which is not our domain. We should think about excluding them.


Just a question

How does the intel PT in kAFL notifies the AFL if  a new coverage has been hit ?

kAFL-Fuzzer/common/qemu.py has all the Qemu process interaction. The patched "Qemu-PT" reads the PT buffer from hardware and parses it to a bitmap. The bitmap is returned from send_payload() in qemu.py and checked by the caller in fuzzer/process/slave.py.


Add script to list messages that may be duplicates

I've wanted to search the codebase for duplicate i18n messages for a while, but it felt slightly complicated. I was randomly thinking about it and realized that it wouldn't be that hard. This PR adds a script along those lines, listing i18n messages that look like duplicates.
What has been done to verify that this works as intended?
When I ran the script, it flagged a number of false positives. However, it also successfully identified several duplicate messages: getodk/central#828.
Why is this the best possible solution? Were any other approaches considered?
The script doesn't list duplicates that it considers to be likely false positives. Maybe it'd be nice at some point to add a flag to list all duplicates that the script sees.
Before submitting this PR, please make sure you have:

[x] run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
[x] verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@ktuite, I've tagged you for review, but I think we can wait to review this until after the release goes out.


TypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>)

Expected Behavior
Bot doesn't crash
Actual Behavior
Bot crashes
Traceback (most recent call last):
  File "pokecli.py", line 502, in <module>
    main()
  File "pokecli.py", line 89, in main
    bot.tick()
  File "/usr/src/app/pokemongo_bot/__init__.py", line 434, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/usr/src/app/pokemongo_bot/cell_workers/evolve_pokemon.py", line 28, in work
    response_dict = self.api.get_inventory()
  File "/usr/src/app/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/usr/src/app/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/usr/src/app/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/usr/src/app/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/usr/src/app/src/pgoapi/pgoapi/rpc_api.py", line 126, in request
    request_proto = self._build_main_request(subrequests, player_position)
  File "/usr/src/app/src/pgoapi/pgoapi/rpc_api.py", line 216, in _build_main_request
    request.auth_info.token.contents = self._auth_provider.get_access_token()
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter
    new_value = type_checker.CheckValue(new_value)
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 176, in CheckValue
    raise TypeError(message)
TypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>)

Steps to Reproduce
It looks like an empty API response causes it
Other Information
OS: Docker
Git Commit: ff380cd0e07f225ad1ae2c739bea9f9f80e2f8ce
Python Version: whatever is in our docker container

This happened to me. Just wait or move the location and it should start working.

still happens with latest bot.

I also have this from time to time.


Make a simple custom EventEmitter

Thoughts
Recently I have been reading the book Async JavaScript about JS asynchronicity and JS event is one of the useful solutions to the problem. To get a deeper understanding of how events work, I create a custom EventEmitter which constains most of the working functionalities of Node EventEmitter. The source code is no more than 60 lines.
General ideas
The general idea is to have an object (this.handlers) to hold the mapping from event name(type: string) to its associated listeners/handlers(type: Array<Function>). When each event is triggerd, walk through the associated listeners/handlers and execute them.
class Emitter {
    constructor(){
        /**
         * keep mapping information。
         * e.g.
         *   {
         *      'event1': [fn1, fn2],
         *      'event2': [fn3, fn4, fn5]
         *   }
         */
        this.handlers = {};
    }
}

Some details about the methods
on - event binding
on(evt, handler) {
    this.handlers[evt] = this.handlers[evt] || [];
    let hdl = this.handlers[evt];
    hdl.push(handler);
    return this;
}

We don't check the duplicates when binding the handler for simplicity. That is to say, if you call on for the same function twice, then it will be called twice when the event is triggered. The method returns this to allow for method chaining。
off - event unbinding
removeListener(evt, handler) {
    this.handlers[evt] = this.handlers[evt] || [];
    let hdl = this.handlers[evt];
    let index = hdl.indexOf(handler);
    if(index >= 0) {
        hdl.splice(index, 1);
    }
    return this;
}

Note that here we compare the function reference with strict comparision when unbinding a function. Function in JavaScript is compared by their reference, same as how objects comparision works.
function f1() {
    console.log('hi');
}

function f2() {
    console.log('hi');
}

let f3 = f1;
console.log(f1 === f2); //false
console.log(f1 === f3); //true

once - binding, but only can be triggerd once
once(evt, handler) {
    this.handlers[evt] = this.handlers[evt] || [];
    let hdl = this.handlers[evt];
    hdl.push(function f(...args){
        handler.apply(this, args);
        this.removeListener(evt, f);
    });
    return this;
}

It works similarly with on method. But we need to wrap the handler with another function such that we can remove the binding once the handler is executed to achieve triggered only once.
emit - trigger event
emit(evt, ...args) {
    this.handlers[evt] = this.handlers[evt] || [];
    let hdl = this.handlers[evt];
    hdl.forEach((it) => {
        it.apply(this, args);
    });
    return this;
}

When an event is triggered, find all its associated handlers(i.e. this.handlers[evt]) and execute them.
eventNames - get the list of registered events which has active(i.e. not-empty) handlers
eventNames() {
    return Object.keys(this.handlers).reduce((arr, evt) => {
        if(this.listenerCount(evt)) {
            arr.push(evt);
        }
        return arr;
    }, []);
}

Here we don't simply return all the keys of the this.handlers , as some events can be binded with some handlers and then remove them afterwards. In the case, the event name exists as a valid key in this.handlers but without active handlers. E.g.
let server = new Emitter();
let fn = function(){};
server.on('connection', fn);
server.removeListener('connection', fn);
server.handlers.connection; //[]

Therefore, we need to filter out the events with empty hanlders. Here we use Array.prototype.reduce to make the code a little bit cleaner. There are many situations where reduce can be useful, such as computing the sum of an array:
function sumWithForEach(arr) { // with forEach
    let sum = 0;
    arr.forEach(it => {
        sum += it;
    })
    return sum;
}

function sumWithReduce(arr) { // with reduce
    return arr.reduce((sum, current) => {
        return sum + current;
    })
}

Reference

Async JavaScript

Notice

If you want to follow the latest news/articles for the series of reading notes, Please 「Watch」to Subscribe.

thank you so much for your effort, it quite helpful!